sqllogictest
Artifact Content
Not logged in

Artifact 28b6ed9d4bd7cf237426f0a5158d37d29a13c2b1:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 / col0 ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT ALL - tab0.col0 + tab0.col1 DIV - col0 FROM tab0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - tab0.col0 + tab0.col1 / - col0 FROM tab0
----
-27
-37
-90

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

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

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

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

query I rowsort
SELECT + col2 + - col1 * + col2 + col2 * col1 * + tab0.col1 AS col2 FROM tab0
----
241263
671662
9313

query I rowsort
SELECT ALL - col1 * + col1 * col1 + - col2 AS col1 FROM tab2
----
-205405
-29818
-4951

query I rowsort
SELECT DISTINCT - col0 * - col1 + - col0 AS col1 FROM tab1
----
576
75
960

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

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

query I rowsort
SELECT ALL - col1 * col1 * col1 + col0 AS col1 FROM tab0
----
-636032
-753482
-912638

onlyif mysql # use DIV operator for integer division
query I rowsort label-15
SELECT ALL - col2 DIV + col1 + col1 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL - col2 / + col1 + col1 FROM tab1
----
24
5
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + col1 col0 FROM tab0
----
258
273
291

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * col2 - + col2 col1 FROM tab2 AS cor0
----
1406
650
702

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-24
SELECT ALL - + col0 / col0 - - col1 col0 FROM tab2 AS cor0
----
16
30
58

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

query I rowsort
SELECT DISTINCT + + col0 * + col1 - - col0 * col0 AS col0 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT ALL - col2 + - col1 + cor0.col1 * col1 AS col2 FROM tab0 cor0
----
7277
8108
9311

query I rowsort
SELECT + col0 + + 66 * - col2 AS col2 FROM tab0 AS cor0
----
-2154
-31
-5323

query I rowsort
SELECT + + col2 + - col1 * 62 AS col0 FROM tab2 cor0
----
-1016
-1895
-3632

query I rowsort
SELECT + col0 + 0 AS col2 FROM tab0 AS cor0
----
24
35
89

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

query I rowsort
SELECT - col0 * - 61 FROM tab2 cor0
----
427
4758
4819

query I rowsort
SELECT - 60 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT col1 * 60 + - col0 AS col1 FROM tab1 AS cor0
----
1557
536
700

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col0 * + cor0.col1 col2 FROM tab2 AS cor0
----
1422
224
4680

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

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL - col2 / col2 FROM tab1 cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT ALL - col1 * col0 + col1 * - col2 - + col2 AS col1 FROM tab1
----
-1267
-1536
-2384

query I rowsort
SELECT - 98 + col0 AS col1 FROM tab2 cor0
----
-19
-20
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-42
SELECT cor0.col0 + + col2 DIV ( 63 + - col0 * 71 ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-42
SELECT cor0.col0 + + col2 / ( 63 + - col0 * 71 ) FROM tab1 AS cor0
----
3
64
80

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-47
SELECT ALL 78 DIV - cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to 5ead7eabbc138b30151bf17e19c52fb2

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL 78 / - cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to 5ead7eabbc138b30151bf17e19c52fb2

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

query I rowsort
SELECT DISTINCT + + col0 * - 84 + + ( - col2 + + col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
-3036
-3765
-8214

query I rowsort
SELECT ALL - col2 * 59 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-58
-858
1886

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

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

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

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

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

query I rowsort
SELECT - + col2 + 93 AS col0 FROM tab0 cor0
----
11
60
92

query I rowsort
SELECT - col0 * col0 - + 47 AS col2 FROM tab0 cor0
----
-1272
-623
-7968

query I rowsort
SELECT ALL col0 + + 93 * - 15 * - col0 AS col0 FROM tab0 AS cor0
----
124244
33504
48860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * 48 * - col1 + col0 * cor0.col0 col0 FROM tab0 AS cor0
----
355584
405409
452857

query I rowsort
SELECT + 67 + col2 * + ( col0 ) - col1 FROM tab2
----
2036
225
3052

query I rowsort
SELECT - 37 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-60
SELECT ALL - cor0.col1 + - CAST( + cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - cor0.col1 + - CAST ( + cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - col1 * 64 FROM tab0 AS cor0
----
-5504
-5824
-6208

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-63
SELECT 0 * col0 DIV + 85 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-63
SELECT 0 * col0 / + 85 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - tab0.col2 - + 6 AS col1 FROM tab0
----
-39
-7
-88

query I rowsort
SELECT DISTINCT - col1 * ( - tab1.col2 ) + tab1.col1 * col0 + - col1 FROM tab1
----
1200
1456
2275

onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT - col0 * 10 DIV col2 FROM tab1 AS cor0
----
-11
-8
0

skipif mysql # not compatible
query I rowsort label-66
SELECT - col0 * 10 / col2 FROM tab1 AS cor0
----
-11
-8
0

query I rowsort
SELECT + col0 + ( col0 ) * col0 FROM tab0 cor0
----
1260
600
8010

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

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col0 - col2 FROM tab0 AS cor0
----
-1191
-585
-7914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * col2 col0 FROM tab0
----
1
1089
6724

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

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 90 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618

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

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT tab2.col1 - - tab2.col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

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

query I rowsort
SELECT ALL + cor0.col1 + + ( - 31 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 30573a6680951e915281fad9a6afbea5

onlyif mysql # use DIV operator for integer division
query I rowsort label-76
SELECT ALL - 7 + col1 DIV - 64 FROM tab2 cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - 7 + col1 / - 64 FROM tab2 cor0
----
-7
-7
-7

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

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

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

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

query I rowsort
SELECT + col0 * + 20 FROM tab1
----
1280
1600
60

query I rowsort
SELECT ALL 57 + col2 FROM tab2
----
83
84
95

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-82
SELECT ALL + col2 * col1 DIV 10 + col0 AS col0 FROM tab2 AS cor0
----
143
231
90

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL + col2 * col1 / 10 + col0 AS col0 FROM tab2 AS cor0
----
143
231
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 * + col2 + + col0 col0 FROM tab1 AS cor0
----
-4101
-4268
-7216

onlyif mysql # use DIV operator for integer division
query I rowsort label-84
SELECT ALL col2 DIV col1 + + 18 FROM tab1 AS cor0
----
20
23
25

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL col2 / col1 + + 18 FROM tab1 AS cor0
----
20
23
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 * - col1 + - ( 70 * + col2 ) + + 30 * col2 col2 FROM tab1 AS cor0
----
-2730
-3330
-4425

query I rowsort
SELECT DISTINCT + 49 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
49

query I rowsort
SELECT DISTINCT - tab1.col1 * 81 + tab1.col2 FROM tab1
----
-2052
-753
-957

query I rowsort
SELECT DISTINCT - 17 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2
----
-17

query I rowsort
SELECT - col2 + - ( + col2 ) AS col1 FROM tab2
----
-52
-54
-76

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

query I rowsort
SELECT ALL col1 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + col2 - - col2 * 68 * - col0 FROM tab2 AS cor0
----
-12825
-137878
-204098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 43 col0 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT DISTINCT col2 + - ( - 96 ) * col2 FROM tab0 AS cor0
----
3201
7954
97

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

query I rowsort
SELECT + col2 + + 19 FROM tab0 AS cor0
----
101
20
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT DISTINCT col0 * + col1 + cor0.col2 DIV + ( col1 ) FROM tab1 AS cor0
----
1047
645
80

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT col0 * + col1 + cor0.col2 / + ( col1 ) FROM tab1 AS cor0
----
1047
645
80

query I rowsort
SELECT DISTINCT + - 38 + 29 - - col1 * col2 AS col2 FROM tab0 cor0
----
2829
7453
88

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

query I rowsort
SELECT 90 * - ( + col2 ) + col2 + + tab1.col1 * col1 FROM tab1
----
-4130
-4973
-8375

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

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

query I rowsort
SELECT - col1 * 3 FROM tab0 AS cor0
----
-258
-273
-291

query I rowsort
SELECT ALL - 80 + col2 - col1 AS col1 FROM tab2 AS cor0
----
-113
-59
-84

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

query I rowsort
SELECT ALL 20 * tab2.col0 FROM tab2
----
140
1560
1580

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

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

query I rowsort
SELECT ( - 28 ) * + col2 FROM tab0 AS cor0
----
-2296
-28
-924

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

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

query I rowsort
SELECT + col2 + - col1 + col2 * col0 AS col2 FROM tab1 AS cor0
----
190
3695
7763

query I rowsort
SELECT DISTINCT 99 + + ( + cor0.col1 ) * ( + col1 ) FROM tab2 AS cor0
----
1060
3580
388

query I rowsort
SELECT DISTINCT + + 39 AS col2 FROM tab2 AS cor0
----
39

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

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

query I rowsort
SELECT - + 65 * + col0 + - col0 * ( - col0 ) FROM tab2 AS cor0
----
-406
1014
1106

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

query I rowsort
SELECT DISTINCT 95 * + 44 FROM tab1, tab2 AS cor0
----
4180

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

query I rowsort
SELECT + col1 + 31 * + col0 FROM tab1 AS cor0
----
119
1994
2493

query I rowsort
SELECT - cor0.col1 * + 22 - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-3326
-3376
-871

query I rowsort
SELECT - col0 + 40 + - col1 * + col1 * + 47 AS col0 FROM tab2
----
-13622
-163645
-45134

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-124
SELECT col0 * + 62 + - col0 DIV col1 + col0 FROM tab0
----
1512
2205
5607

skipif mysql # not compatible
query I rowsort label-124
SELECT col0 * + 62 + - col0 / col1 + col0 FROM tab0
----
1512
2205
5607

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

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

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

query I rowsort
SELECT + col1 * 37 AS col1 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT DISTINCT + 58 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
58

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

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

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

query I rowsort
SELECT - col1 - 9 AS col2 FROM tab0 AS cor0
----
-100
-106
-95

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-134
SELECT col2 DIV ( col2 * + col2 ) + - col1 * col2 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-134
SELECT col2 / ( col2 * + col2 ) + - col1 * col2 FROM tab1
----
-1248
-1404
-570

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * ( 44 * + col2 ) + 55 col1 FROM tab2 AS cor0
----
28479
36883
67551

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

query I rowsort
SELECT - 66 * - cor0.col2 FROM tab0 AS cor0
----
2178
5412
66

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e

query I rowsort
SELECT + 96 + cor0.col1 * ( + col1 ) FROM tab1 AS cor0
----
196
265
772

query I rowsort
SELECT - col0 + col2 * - 41 FROM tab2 cor0
----
-1114
-1144
-1637

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

query I rowsort
SELECT 43 - col2 FROM tab1 AS cor0
----
-11
-14
-53

query I rowsort
SELECT 43 * + col0 AS col1 FROM tab0 AS cor0
----
1032
1505
3827

query I rowsort
SELECT DISTINCT - + 85 * - 6 AS col2 FROM tab1, tab0, tab1 AS cor0
----
510

query I rowsort
SELECT ALL + col2 * 25 * + tab2.col1 AS col2 FROM tab2
----
16150
20925
38350

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

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

query I rowsort
SELECT cor0.col2 * 22 AS col0 FROM tab2, tab0, tab0 cor0, tab1
----
81 values hashing to 0d11917c0d3aa821b91d01a04c2c8012

query I rowsort
SELECT + col1 * + col2 + tab2.col1 * - col0 * col2 FROM tab2
----
-118118
-5022
-50388

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

skipif mysql # not compatible
query I rowsort label-153
SELECT ( - col0 ) + - col1 / - tab2.col0 AS col1 FROM tab2
----
-3
-78
-79

query I rowsort
SELECT + 18 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298

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

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - + col1 + col2 / 22 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT ALL col2 * - 92 * col1 + cor0.col1 * + cor0.col1 + col0 FROM tab0 AS cor0
----
-253676
-678134
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-157
SELECT - + cor0.col2 DIV + col2 + + 91 AS col1 FROM tab0 AS cor0
----
90
90
90

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

query I rowsort
SELECT ALL + col1 * + 45 FROM tab2 AS cor0
----
1395
2655
765

onlyif mysql # use DIV operator for integer division
query I rowsort label-159
SELECT DISTINCT - cor0.col2 - + ( - col2 ) * col0 DIV + col1 AS col0 FROM tab0 cor0
----
-1
-2
-24

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT - cor0.col2 - + ( - col2 ) * col0 / + col1 AS col0 FROM tab0 cor0
----
-1
-2
-24

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

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

query I rowsort
SELECT cor0.col0 * + 41 AS col2 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT ALL cor0.col1 + - ( + col2 * col2 ) FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + 84 + - col2 + 4 AS col1 FROM tab0
----
55
6
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + col2 * + cor0.col0 * col2 col1 FROM tab2 cor0
----
114114
5130
52754

query I rowsort
SELECT col1 * - 79 + col2 + col1 * 15 AS col0 FROM tab0 AS cor0
----
-5471
-5742
-6207

query I rowsort
SELECT DISTINCT + col1 + 90 * col0 FROM tab1 AS cor0
----
296
5770
7213

query I rowsort
SELECT DISTINCT 23 * col1 - col0 FROM tab1
----
166
219
595

query I rowsort
SELECT 40 - - tab1.col1 FROM tab1
----
50
53
66

query I rowsort
SELECT ALL - + 34 FROM tab2 AS cor0
----
-34
-34
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-171
SELECT ( 28 ) + + col1 + col1 DIV - ( col1 ) FROM tab1 AS cor0
----
37
40
53

skipif mysql # not compatible
query I rowsort label-171
SELECT ( 28 ) + + col1 + col1 / - ( col1 ) FROM tab1 AS cor0
----
37
40
53

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

query I rowsort
SELECT DISTINCT + ( + 38 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT ALL col2 * - col0 + col2 + col0 FROM tab1 cor0
----
-105
-3527
-7504

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-175
SELECT - CAST( 88 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-2288
-2376
-3344

skipif mysql # not compatible
query I rowsort label-175
SELECT - CAST ( 88 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-2288
-2376
-3344

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

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

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

query I rowsort
SELECT - + 19 * - col2 + + col0 * ( 15 ) + + col1 FROM tab1 AS cor0
----
1097
2053
3037

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

query I rowsort
SELECT + + 2 + - 79 AS col1 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - 52 + + col1 AS col1 FROM tab1 AS cor0
----
-26
-39
-42

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 + + col0 + + col1 col1 FROM tab1 AS cor0
----
118
137
73

query I rowsort
SELECT ( col2 ) - col1 FROM tab2
----
-33
-4
21

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

query I rowsort
SELECT ALL + 93 AS col0 FROM tab1 cor0
----
93
93
93

query I rowsort
SELECT ALL + 21 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT - 51 * col1 FROM tab2 AS cor0
----
-1581
-3009
-867

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

query I rowsort
SELECT ALL + + col2 * - col1 + col0 * - col2 AS col2 FROM tab1 cor0
----
-1566
-4218
-8928

query I rowsort
SELECT - - col1 * 26 + + ( - cor0.col1 ) * + col2 * - cor0.col1 FROM tab0 AS cor0
----
11931
246304
681408

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

skipif mysql # not compatible
query I rowsort label-192
SELECT - col1 + col0 / - col0 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT + - col0 * - 98 FROM tab2 AS cor0
----
686
7644
7742

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-195
SELECT ALL + + col2 * 85 DIV - ( col0 ) + 12 FROM tab1 cor0
----
-1518
-63
-90

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + + col2 * 85 / - ( col0 ) + 12 FROM tab1 cor0
----
-1518
-63
-90

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-198
SELECT DISTINCT + col2 + + 82 DIV - col0 FROM tab2 AS cor0
----
16
25
37

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT + col2 + + 82 / - col0 FROM tab2 AS cor0
----
16
25
37

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

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

query I rowsort
SELECT ALL cor0.col0 * + ( 40 ) * col0 AS col1 FROM tab0 AS cor0
----
23040
316840
49000

query I rowsort
SELECT DISTINCT + + col0 * ( + 64 * + col1 ) + + 88 FROM tab0 AS cor0
----
132184
217368
518424

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

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

query I rowsort
SELECT - col0 * - 52 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT + tab1.col1 + 93 AS col2 FROM tab1
----
103
106
119

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT ALL + col1 + + col0 DIV + 7 AS col1 FROM tab0 AS cor0
----
102
103
89

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL + col1 + + col0 / + 7 AS col1 FROM tab0 AS cor0
----
102
103
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 + + col1 col0 FROM tab1 cor0
----
-3
-6
10

query I rowsort
SELECT - 60 + - col0 - col0 AS col0 FROM tab0 AS cor0
----
-108
-130
-238

query I rowsort
SELECT DISTINCT + 18 + col0 * ( - 99 + col1 ) AS col0 FROM tab0 AS cor0
----
-294
-52
-694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + - 34 * 52 * + col2 col1 FROM tab1 cor0
----
-100206
-168480
-94068

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

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

query I rowsort
SELECT + 0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL col2 + col2 + col1 * col1 AS col1 FROM tab0
----
7462
8445
9411

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

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

query I rowsort
SELECT ALL + + col1 + - col2 * - col2 FROM tab1 AS cor0
----
2942
3259
9229

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 * + col1 + + col1 col1 FROM tab1 AS cor0
----
1872
720
936

query I rowsort
SELECT ALL 61 * - col0 + col2 FROM tab2
----
-400
-4732
-4781

query I rowsort
SELECT - 86 + ( cor1.col1 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e16c05e4323235b0db9fb097c5a52ef7

query I rowsort
SELECT - tab1.col1 * ( col2 * - col2 + - col0 ) AS col1 FROM tab1
----
120848
33130
75894

onlyif mysql # use DIV operator for integer division
query I rowsort label-223
SELECT col1 DIV + ( + 4 ) + - col0 FROM tab0 AS cor0
----
-11
-3
-67

skipif mysql # not compatible
query I rowsort label-223
SELECT col1 / + ( + 4 ) + - col0 FROM tab0 AS cor0
----
-11
-3
-67

query I rowsort
SELECT + col1 * - col0 * + col1 - col0 AS col1 FROM tab0 AS cor0
----
-177528
-329350
-737098

query I rowsort
SELECT col2 * cor0.col1 - 76 AS col2 FROM tab2 AS cor0
----
1458
570
761

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

query I rowsort
SELECT DISTINCT - col1 + - 19 * col0 FROM tab0 cor0
----
-1782
-542
-762

query I rowsort
SELECT - 53 * 94 AS col1 FROM tab2 AS cor0
----
-4982
-4982
-4982

query I rowsort
SELECT DISTINCT 38 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
266
2964
3002

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

query I rowsort
SELECT 79 + 38 AS col1 FROM tab0
----
117
117
117

onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT DISTINCT - 55 DIV tab1.col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - 55 / tab1.col2 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 * + col2 + - col0 col2 FROM tab1 cor0
----
1941
1988
3376

query I rowsort
SELECT DISTINCT + 58 + col1 + col1 AS col2 FROM tab0 AS cor0
----
230
240
252

query I rowsort
SELECT + cor0.col2 * + 4 AS col2 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT + 3 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

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

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

query I rowsort
SELECT - 56 * - 6 AS col2 FROM tab1
----
336
336
336

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

query I rowsort
SELECT DISTINCT - col2 * 30 FROM tab1
----
-1620
-1710
-2880

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

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

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

query I rowsort
SELECT - ( 1 + col1 ) FROM tab1
----
-11
-14
-27

query I rowsort
SELECT 8 * col0 AS col2 FROM tab2
----
56
624
632

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * col1 - col2 * 32 col2 FROM tab0
----
5657
6340
9377

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

skipif mysql # not compatible
query I rowsort label-250
SELECT - 4 / - col0 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 20 ) - + col0 col1 FROM tab1
----
-44
-60
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab0.col1 * col1 ) col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - - col2 + 75 FROM tab1 AS cor0
----
129
132
171

query I rowsort
SELECT ALL col0 * col2 + - col2 * - col1 * + ( col0 ) FROM tab1 cor0
----
107520
40128
4374

query I rowsort
SELECT ALL + 41 * col0 AS col1 FROM tab2
----
287
3198
3239

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

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

query I rowsort
SELECT + col2 * + col0 * - col0 - col2 * + col2 AS col2 FROM tab2
----
-158860
-2052
-238602

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

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

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

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

query I rowsort
SELECT col0 + - 90 AS col0 FROM tab2 AS cor0
----
-11
-12
-83

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-264
SELECT DISTINCT - col1 DIV + 62 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT - col1 / + 62 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL ( - 58 ) + + col1 * col1 AS col2 FROM tab1 AS cor0
----
111
42
618

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab0 cor0
----
-53

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-269
SELECT DISTINCT + col0 DIV 61 - cor0.col2 col0 FROM tab2 AS cor0
----
-25
-27
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT + col0 / 61 - cor0.col2 col0 FROM tab2 AS cor0
----
-25
-27
-37

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 94 ) * col2 col2 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT ALL - - 38 * + col2 + col2 * 55 AS col2 FROM tab2 AS cor0
----
2418
2511
3534

query I rowsort
SELECT DISTINCT 92 * ( col2 * - col2 ) FROM tab0 AS cor0
----
-100188
-618608
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * - col2 + col1 * 48 col2 FROM tab1 AS cor0
----
-1584
-831
6

query I rowsort
SELECT + + col1 * + col2 * + 56 FROM tab2 AS cor0
----
36176
46872
85904

query I rowsort
SELECT DISTINCT 61 + - col1 AS col2 FROM tab0
----
-25
-30
-36

query I rowsort
SELECT - col0 - col0 * - ( + 69 ) AS col0 FROM tab0
----
1632
2380
6052

query I rowsort
SELECT ALL - 45 * col1 * col1 FROM tab1 AS cor0
----
-30420
-4500
-7605

query I rowsort
SELECT DISTINCT - 78 * - col1 + ( + col2 ) + - col2 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT - col0 * col2 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * ( col0 + col1 ) FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 + + 48 + - col0 AS col0 FROM tab2 AS cor0
----
1998
230
2971

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
87

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-290
SELECT + CAST( 98 * col1 AS SIGNED ) FROM tab0
----
8428
8918
9506

skipif mysql # not compatible
query I rowsort label-290
SELECT + CAST ( 98 * col1 AS INTEGER ) FROM tab0
----
8428
8918
9506

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

skipif mysql # not compatible
query I rowsort label-291
SELECT 11 / + col1 FROM tab2
----
0
0
0

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

query I rowsort
SELECT - 37 * col1 AS col2 FROM tab2 AS cor0
----
-1147
-2183
-629

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 * cor0.col0 + col0 * col1 AS col0 FROM tab0 AS cor0
----
16020
2640
4620

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

query I rowsort
SELECT ALL + 83 + col2 * col1 FROM tab1 AS cor0
----
1331
1487
653

query I rowsort
SELECT DISTINCT col2 + col1 * - col2 + - col1 FROM tab1 AS cor0
----
-1165
-1376
-523

query I rowsort
SELECT ( - 10 ) * - col0 AS col0 FROM tab1
----
30
640
800

query I rowsort
SELECT ALL 46 * - col0 + tab0.col0 FROM tab0
----
-1080
-1575
-4005

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * - CAST ( + col0 AS REAL ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 * - 59 + 19 FROM tab0 AS cor0
----
-5055
-5350
-5704

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 22 + - cor0.col1 FROM tab2 AS cor0
----
-39
-53
-81

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-318
SELECT DISTINCT CAST( - cor0.col0 AS SIGNED ) FROM tab2, tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT CAST ( - cor0.col0 AS INTEGER ) FROM tab2, tab0 AS cor0
----
-24
-35
-89

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 / col1 FROM tab2 WHERE NOT ( NULL ) = NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL BETWEEN NULL AND ( NULL ) ) AND NOT NULL IN ( col2 )
----

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

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

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

query I rowsort
SELECT DISTINCT + + ( + cor0.col1 ) * + ( - 54 ) FROM tab2 cor0
----
-1674
-3186
-918

onlyif mysql # use DIV operator for integer division
query I rowsort label-330
SELECT - - col1 * col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-330
SELECT - - col1 * col0 / - col1 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-333
SELECT DISTINCT - cor0.col0 DIV - col1 + 85 * cor0.col0 FROM tab1 AS cor0
----
255
5446
6806

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT - cor0.col0 / - col1 + 85 * cor0.col0 FROM tab1 AS cor0
----
255
5446
6806

query I rowsort
SELECT ALL + cor0.col1 * - 36 + + col1 - col0 AS col0 FROM tab0 AS cor0
----
-3034
-3274
-3430

query I rowsort
SELECT + ( - 3 ) FROM tab1, tab2, tab1 cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT - 10 * + 18 + cor0.col2 FROM tab0 AS cor0
----
-147
-179
-98

query I rowsort
SELECT ALL + ( 65 ) + col2 FROM tab2 AS cor0
----
103
91
92

query I rowsort
SELECT + cor0.col0 * cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 13db62c4f935162dbaa859c1d738cc13

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

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT 6 / - tab1.col1 FROM tab1, tab2 AS cor0
----
0

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

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

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

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

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

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

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

query I rowsort
SELECT cor0.col0 * - 2 + col0 * 33 * - col2 FROM tab2 AS cor0
----
-6251
-67080
-99224

query I rowsort
SELECT DISTINCT + 37 * 21 AS col1 FROM tab1
----
777

query I rowsort
SELECT ALL - 86 + + col1 AS col2 FROM tab2 AS cor0
----
-27
-55
-69

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

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

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

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

query I rowsort
SELECT DISTINCT + + 67 * - col1 + 13 + 54 AS col2 FROM tab0 AS cor0
----
-5695
-6030
-6432

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

query I rowsort
SELECT DISTINCT + 4 * + tab1.col0 AS col1 FROM tab1
----
12
256
320

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

query I rowsort
SELECT 73 + col0 * - ( + col1 + col0 ) AS col0 FROM tab2 AS cor0
----
-10613
-193
-7511

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT ALL - + col1 DIV col1 + - cor0.col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL - + col1 / col1 + - cor0.col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT ALL + col2 * + tab2.col2 * col1 + ( col0 ) * + col2 AS col1 FROM tab2
----
22788
27550
41912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-359
SELECT + CAST( 50 AS SIGNED ) * col0 FROM tab1
----
150
3200
4000

skipif mysql # not compatible
query I rowsort label-359
SELECT + CAST ( 50 AS INTEGER ) * col0 FROM tab1
----
150
3200
4000

query I rowsort
SELECT DISTINCT - col1 + 33 AS col1 FROM tab1
----
20
23
7

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

query I rowsort
SELECT 91 + col2 * col2 AS col2 FROM tab1 AS cor0
----
3007
3340
9307

query I rowsort
SELECT DISTINCT + 48 + + col2 * 26 FROM tab2 cor0
----
1036
724
750

query I rowsort
SELECT col1 * col1 + col2 * col0 * col2 FROM tab2 AS cor0
----
114365
56209
6064

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-366
SELECT + 51 DIV tab0.col1 + - 76 AS col1 FROM tab0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-366
SELECT + 51 / tab0.col1 + - 76 AS col1 FROM tab0
----
-76
-76
-76

query I rowsort
SELECT ( 92 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-368
SELECT + col0 * CAST( + col1 AS SIGNED ) + col1 + - 49 AS col2 FROM tab0
----
2101
3443
8141

skipif mysql # not compatible
query I rowsort label-368
SELECT + col0 * CAST ( + col1 AS INTEGER ) + col1 + - 49 AS col2 FROM tab0
----
2101
3443
8141

onlyif mysql # use DIV operator for integer division
query I rowsort label-369
SELECT DISTINCT 64 DIV ( + col2 ) + col0 FROM tab0 AS cor0
----
25
89
99

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT 64 / ( + col2 ) + col0 FROM tab0 AS cor0
----
25
89
99

query I rowsort
SELECT - col2 * col0 * - 25 + col2 * - col1 - + col2 FROM tab1
----
190656
2592
90573

query I rowsort
SELECT ALL col1 - - 13 * + col0 FROM tab0
----
1248
398
552

onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT DISTINCT + ( - 97 ) + tab0.col2 * 34 + + col0 DIV - col0 FROM tab0
----
-64
1024
2690

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT + ( - 97 ) + tab0.col2 * 34 + + col0 / - col0 FROM tab0
----
-64
1024
2690

query I rowsort
SELECT ALL - col0 + - cor0.col1 * - col1 * cor0.col2 AS col1 FROM tab2 cor0
----
10903
25940
90428

onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT - col1 + - 66 DIV col0 FROM tab1 AS cor0
----
-11
-13
-48

skipif mysql # not compatible
query I rowsort label-374
SELECT - col1 + - 66 / col0 FROM tab1 AS cor0
----
-11
-13
-48

query I rowsort
SELECT col2 * cor0.col2 * + col1 + - 29 * - 77 AS col2 FROM tab1 AS cor0
----
122041
34723
78049

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-378
SELECT col0 DIV col2 + col0 + col1 * + col0 AS col1 FROM tab1
----
1120
705
81

skipif mysql # not compatible
query I rowsort label-378
SELECT col0 / col2 + col0 + col1 * + col0 AS col1 FROM tab1
----
1120
705
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-379
SELECT - 22 DIV 61 + - col2 * 56 AS col2 FROM tab2
----
-1456
-1512
-2128

skipif mysql # not compatible
query I rowsort label-379
SELECT - 22 / 61 + - col2 * 56 AS col2 FROM tab2
----
-1456
-1512
-2128

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT DISTINCT - - cor0.col2 DIV col2 + + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT - - cor0.col2 / col2 + + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + - 73 + + col2 FROM tab1 AS cor0
----
-16
-19
23

query I rowsort
SELECT ALL + - col2 * 43 AS col1 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT DISTINCT + 62 * + col0 + + col2 * - 80 FROM tab0 AS cor0
----
-1042
-1152
2090

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-386
SELECT ALL col1 * + ( - col2 + - CAST ( col2 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-1140
-2496
-2808

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

query I rowsort
SELECT DISTINCT + col0 * + 38 + cor0.col1 FROM tab0 AS cor0
----
1427
3473
998

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

query I rowsort
SELECT ALL - - ( col2 ) * - col2 * col2 + ( col2 ) FROM tab1 AS cor0
----
-157410
-185136
-884640

query I rowsort
SELECT DISTINCT - + col1 + 76 AS col2 FROM tab0 AS cor0
----
-10
-15
-21

query I rowsort
SELECT DISTINCT - ( + 51 ) * - col1 FROM tab2 AS cor0
----
1581
3009
867

query I rowsort
SELECT - col0 - + 92 AS col0 FROM tab1 AS cor0
----
-156
-172
-95

query I rowsort
SELECT ALL 13 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT ALL - col2 * + 72 FROM tab1
----
-3888
-4104
-6912

query I rowsort
SELECT ( 93 ) FROM tab2, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL - 83 - - 93 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

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

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

query I rowsort
SELECT ALL + + col0 * col2 + col2 * col1 + cor0.col2 * col1 FROM tab2 cor0
----
1863
4294
5096

query I rowsort
SELECT ALL col1 * + col1 + col1 * 10 + cor0.col2 FROM tab1 AS cor0
----
257
395
990

query I rowsort
SELECT DISTINCT 35 * - col1 + col2 FROM tab2 cor0
----
-1058
-2039
-557

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT DISTINCT col1 DIV 59 + col0 - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT col1 / 59 + col0 - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

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

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT 93 + col0 * - 56 FROM tab0 cor0
----
-1251
-1867
-4891

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

query I rowsort
SELECT ALL + 81 + col2 AS col1 FROM tab2 AS cor0
----
107
108
119

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

query I rowsort
SELECT ALL 16 AS col0 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT 13 + + col0 AS col1 FROM tab2 AS cor0
----
20
91
92

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + - ( + col0 ) + + col0 * - col2 FROM tab0 cor0
----
-15668
-8212
-9479

query I rowsort
SELECT ALL - cor0.col2 + + col0 * col2 * - col2 FROM tab2 AS cor0
----
-114114
-5130
-52754

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

query I rowsort
SELECT - col2 + + cor0.col0 * cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
-288
-41017
-83296

query I rowsort
SELECT col0 * - ( - col2 + col0 ) FROM tab2 cor0
----
-3239
-4056
140

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT + - col0 DIV - col1 + + ( col2 + - ( col1 ) ) FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-420
SELECT + - col0 / - col1 + + ( col2 + - ( col1 ) ) FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * cor0.col1 col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT col2 * col2 + col1 * + col0 AS col1 FROM tab2 cor0
----
2787
5278
946

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

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

query I rowsort
SELECT - col2 * - 85 + col2 FROM tab2 AS cor0
----
2236
2322
3268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 91 * cor0.col0 col0 FROM tab0 AS cor0
----
111475
52416
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-426
SELECT - col1 + CAST( + 83 AS SIGNED ) FROM tab2 AS cor0
----
24
52
66

skipif mysql # not compatible
query I rowsort label-426
SELECT - col1 + CAST ( + 83 AS INTEGER ) FROM tab2 AS cor0
----
24
52
66

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-428
SELECT - ( - col1 ) DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-428
SELECT - ( - col1 ) / cor0.col1 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-429
SELECT + - 84 * - col0 DIV col0 + col0 DIV + col0 FROM tab1 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-429
SELECT + - 84 * - col0 / col0 + col0 / + col0 FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT 62 + col2 AS col2 FROM tab1
----
116
119
158

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

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

query I rowsort
SELECT ALL 12 * col2 + - col0 AS col1 FROM tab1
----
1072
620
645

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

skipif mysql # not compatible
query I rowsort label-434
SELECT + ( col1 ) + + col0 / tab1.col1 FROM tab1
----
16
19
26

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

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT + col1 + - col2 / 70 AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 7 + - cor0.col2 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
-36473
-4205
-99833

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

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

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

query I rowsort
SELECT ALL - col2 * col0 + - col1 - col1 * tab2.col0 FROM tab2
----
-4362
-437
-6689

query I rowsort
SELECT DISTINCT col2 - - col2 FROM tab0
----
164
2
66

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

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

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

query I rowsort
SELECT - col0 * col0 - col2 FROM tab2
----
-6110
-6279
-76

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

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE ( col2 + col1 * + col2 * col1 ) > col2 + col0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 - 87 col2 FROM tab0
----
-52
705
7211

query I rowsort
SELECT ( + col2 ) * col2 + + tab0.col0 * + tab0.col2 AS col2 FROM tab0
----
14022
1881
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 69 * col1 col0 FROM tab0 AS cor0
----
5934
6279
6693

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

query I rowsort
SELECT ALL 3 + + col2 AS col0 FROM tab1 AS cor0
----
57
60
99

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

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

query I rowsort
SELECT ALL + - col1 + col2 * - 42 FROM tab0 AS cor0
----
-139
-1472
-3535

query I rowsort
SELECT col2 + col2 + + col1 * - col2 * - col0 AS col1 FROM tab0 AS cor0
----
3397
664282
68178

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN - col2 AND NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-459
SELECT col2 - + col1 * + col1 / col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-460
SELECT cor0.col0 DIV col1 - col1 FROM tab2 AS cor0
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-460
SELECT cor0.col0 / col1 - col1 FROM tab2 AS cor0
----
-13
-31
-58

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab0.col1 - col1 col0 FROM tab0
----
7310
8190
9312

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

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

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

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

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

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

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

query I rowsort
SELECT - col0 * col2 + - col2 * - tab0.col2 * - col0 AS col1 FROM tab0
----
-26928
-605734
-70

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-478
SELECT DISTINCT + - 12 DIV + col1 col1 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT + - 12 / + col1 col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - col1 + col1 * + col2 + col2 FROM tab0 AS cor0
----
1
2785
7453

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

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

query I rowsort
SELECT - ( + col0 ) * col0 + 91 AS col2 FROM tab2 AS cor0
----
-5993
-6150
42

query I rowsort
SELECT 3 + + cor0.col1 * col2 - - ( col1 + - col1 ) AS col0 FROM tab2 AS cor0
----
1537
649
840

query I rowsort
SELECT DISTINCT + 53 + + col0 * col0 * 32 FROM tab1 AS cor0
----
131125
204853
341

query I rowsort
SELECT ALL - + ( cor0.col1 ) + cor0.col0 * + col2 + + col2 FROM tab2 AS cor0
----
185
1995
3023

query I rowsort
SELECT DISTINCT - 11 * + cor0.col0 + + col2 FROM tab1 AS cor0
----
-647
-784
21

query I rowsort
SELECT col0 + cor0.col1 * cor0.col1 + + col2 * + 66 FROM tab2 AS cor0
----
2750
2876
5275

query I rowsort
SELECT + + 6 * + col0 FROM tab2 AS cor0
----
42
468
474

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-489
SELECT DISTINCT CAST( 74 AS SIGNED ) + - col2 + col2 * - 48 AS col1 FROM tab1
----
-2572
-2719
-4630

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT CAST ( 74 AS INTEGER ) + - col2 + col2 * - 48 AS col1 FROM tab1
----
-2572
-2719
-4630

query I rowsort
SELECT ALL + ( col1 ) + tab2.col2 * col2 * tab2.col1 FROM tab2
----
22630
24565
39943

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

query I rowsort
SELECT ALL + + col0 * col0 + - 38 FROM tab1 AS cor0
----
-29
4058
6362

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

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

query I rowsort
SELECT + 71 * col1 AS col2 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT - - col2 + + col1 * 63 AS col1 FROM tab1 AS cor0
----
1692
687
915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 * col1 col1 FROM tab1 AS cor0
----
-1352
-520
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-498
SELECT DISTINCT + col2 + 91 DIV + tab1.col1 + col1 FROM tab1
----
116
76
83

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT + col2 + 91 / + tab1.col1 + col1 FROM tab1
----
116
76
83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) + col0 + 83 col2 FROM tab0
----
193
215
263

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

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

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

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

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

query I rowsort
SELECT + cor0.col0 + - 46 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8e1361bd83efe90dcdc197b719e32905

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

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

query I rowsort
SELECT DISTINCT - - col0 + - 41 * + 6 FROM tab0 cor0
----
-157
-211
-222

onlyif mysql # use DIV operator for integer division
query I rowsort label-508
SELECT + + col2 + 10 DIV 33 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-508
SELECT + + col2 + 10 / 33 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc

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

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

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL - - col0 + ( - col1 ) / col0 FROM tab2 cor0
----
3
78
79

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

query I rowsort
SELECT DISTINCT + - col2 * + 71 + 23 FROM tab2 AS cor0
----
-1823
-1894
-2675

query I rowsort
SELECT DISTINCT col2 + - 89 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
1253
2368
947

query I rowsort
SELECT ALL - col0 + ( col1 * + col0 ) + - col2 * col2 FROM tab1 AS cor0
----
-2673
-2841
-8256

query I rowsort
SELECT ALL + - col0 + 16 AS col1 FROM tab2 AS cor0
----
-62
-63
9

query I rowsort
SELECT ALL - col0 * ( + col0 ) + - col2 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76

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

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

query I rowsort
SELECT 79 * col2 * + cor0.col0 AS col1 FROM tab0 cor0
----
2765
576542
62568

query I rowsort
SELECT + + 55 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

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

query I rowsort
SELECT ALL tab1.col1 + col1 * + ( col0 ) AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT + col1 + + 76 FROM tab1
----
102
86
89

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

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

query I rowsort
SELECT + 38 + 13 FROM tab2 AS cor0
----
51
51
51

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

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL - col2 + + CAST ( col2 + tab0.col0 AS INTEGER ) * col1 AS col0 FROM tab0
----
15479
3491
4869

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

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

query I rowsort
SELECT ALL col2 + 51 FROM tab2
----
77
78
89

query I rowsort
SELECT DISTINCT - col1 + - tab1.col2 * col2 AS col1 FROM tab1
----
-2942
-3259
-9229

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

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

query I rowsort
SELECT ALL tab0.col0 * - 56 AS col1 FROM tab0
----
-1344
-1960
-4984

query I rowsort
SELECT DISTINCT + cor0.col2 + 23 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
105
24
56

query I rowsort
SELECT + 2 * tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 10977325261681ddca962e0a5d2b348b

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

query I rowsort
SELECT DISTINCT + col1 * col0 + + col2 * ( - 88 + + col0 ) FROM tab0 AS cor0
----
-48
3342
8181

query I rowsort
SELECT 56 + - col2 * + col2 FROM tab0 cor0
----
-1033
-6668
55

query I rowsort
SELECT ALL + col1 * + 50 FROM tab2 AS cor0
----
1550
2950
850

query I rowsort
SELECT 76 * + col0 + + col1 FROM tab1 AS cor0
----
254
4874
6093

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

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL + - col1 / - col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT ( col0 + + col1 ) * tab2.col1 FROM tab2
----
1178
1632
8083

query I rowsort
SELECT + col1 * - 17 FROM tab1
----
-170
-221
-442

query I rowsort
SELECT - - 66 + col1 AS col1 FROM tab1 AS cor0
----
76
79
92

query I rowsort
SELECT + col0 * 17 FROM tab2
----
119
1326
1343

query I rowsort
SELECT ALL + 22 AS col0 FROM tab2
----
22
22
22

query I rowsort
SELECT - + 47 + + col2 AS col1 FROM tab0 cor0
----
-14
-46
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 50 + cor0.col1 col0 FROM tab1 AS cor0
----
-24
-37
-40

query I rowsort
SELECT + + 81 + col0 * col1 * - cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
-13535
-2001
-6376

query I rowsort
SELECT col0 * col0 + ( col0 ) FROM tab1 cor0
----
12
4160
6480

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

query I rowsort
SELECT DISTINCT + ( - col1 ) + + col1 * - 68 FROM tab1 AS cor0
----
-1794
-690
-897

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

query I rowsort
SELECT - - 50 + - cor0.col1 FROM tab2 AS cor0
----
-9
19
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-555
SELECT + - col0 * col2 DIV + 82 + col2 AS col0 FROM tab2 AS cor0
----
2
2
25

skipif mysql # not compatible
query I rowsort label-555
SELECT + - col0 * col2 / + 82 + col2 AS col0 FROM tab2 AS cor0
----
2
2
25

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

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

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

query I rowsort
SELECT - col2 + - 51 * + col1 FROM tab1 AS cor0
----
-1380
-567
-759

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

query I rowsort
SELECT - 19 + + 18 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT - + col1 * 19 - col2 * cor0.col2 FROM tab1 AS cor0
----
-3410
-3439
-9463

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

query I rowsort
SELECT - 89 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT col1 * ( + 79 ) + col2 AS col2 FROM tab0 AS cor0
----
6827
7271
7664

onlyif mysql # use DIV operator for integer division
query I rowsort label-566
SELECT + col2 DIV col1 + - 67 - col0 AS col0 FROM tab2 AS cor0
----
-144
-145
-74

skipif mysql # not compatible
query I rowsort label-566
SELECT + col2 / col1 + - 67 - col0 AS col0 FROM tab2 AS cor0
----
-144
-145
-74

query I rowsort
SELECT ALL + cor0.col0 + 61 * col1 FROM tab0 AS cor0
----
5270
5640
5952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * ( - col0 ) + - col2 + col1 col2 FROM tab1 AS cor0
----
-19
4049
6317

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

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

query I rowsort
SELECT DISTINCT col1 + - ( 50 ) FROM tab0 AS cor0
----
36
41
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT ALL - col1 * ( + 15 + + col1 ) DIV 23 FROM tab0 AS cor0
----
-377
-419
-472

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL - col1 * ( + 15 + + col1 ) / 23 FROM tab0 AS cor0
----
-377
-419
-472

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

query I rowsort
SELECT DISTINCT col1 * col1 - 84 FROM tab1
----
16
592
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT - 37 - col0 DIV + col1 FROM tab0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-575
SELECT - 37 - col0 / + col1 FROM tab0
----
-37
-37
-37

query I rowsort
SELECT col2 + col2 + ( - tab2.col1 ) * tab2.col2 * + ( - 78 ) AS col0 FROM tab2
----
119704
50464
65340

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

query I rowsort
SELECT + 40 * + col1 FROM tab2
----
1240
2360
680

query I rowsort
SELECT DISTINCT - col0 + 57 FROM tab2
----
-21
-22
50

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

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

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

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

query I rowsort
SELECT tab1.col1 * - col1 + + 50 + col0 FROM tab1
----
-39
-623
14

query I rowsort
SELECT DISTINCT - col2 - - col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + + col0 + + cor0.col1 * + 76 FROM tab1 cor0
----
1068
1979
824

query I rowsort
SELECT DISTINCT + 24 * + col1 - + col0 * col2 AS col1 FROM tab1
----
-3408
-7368
462

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

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

query I rowsort
SELECT ALL col0 + col0 + col1 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT + 38 * cor0.col0 AS col2 FROM tab1 AS cor0
----
114
2432
3040

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

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

query I rowsort
SELECT 20 * col2 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT DISTINCT - col2 * col1 - 51 AS col2 FROM tab2 AS cor0
----
-1585
-697
-888

query I rowsort
SELECT - col0 + ( 29 * - col2 + ( 72 ) ) FROM tab1 AS cor0
----
-1497
-1645
-2792

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

query I rowsort
SELECT + - col1 + - ( + 98 ) FROM tab2 AS cor0
----
-115
-129
-157

query I rowsort
SELECT ALL + - cor0.col1 + 68 AS col0 FROM tab1 AS cor0
----
42
55
58

query I rowsort
SELECT ALL - cor0.col0 + 3 * - col1 FROM tab2 AS cor0
----
-100
-130
-255

query I rowsort
SELECT col1 * 5 AS col2 FROM tab1
----
130
50
65

query I rowsort
SELECT + col1 * + 53 FROM tab1 AS cor0
----
1378
530
689

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + + col2 - + ( 75 ) AS col0 FROM tab2 AS cor0
----
-37
-48
-49

query I rowsort
SELECT ALL + + col2 - 60 * col2 FROM tab2 AS cor0
----
-1534
-1593
-2242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 82 * - col0 col2 FROM tab0 cor0
----
1968
2870
7298

query I rowsort
SELECT + - 89 + 47 AS col0 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab0 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5

query I rowsort
SELECT ALL - 27 * col1 * - col0 FROM tab0 AS cor0
----
218673
55728
91665

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

query I rowsort
SELECT ALL - - col2 * + 95 * - col2 AS col0 FROM tab1 cor0
----
-277020
-308655
-875520

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

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

query I rowsort
SELECT - col0 + - cor0.col0 * + col0 FROM tab1 cor0
----
-12
-4160
-6480

query I rowsort
SELECT ALL + col0 * - col0 + - cor0.col0 + - 44 FROM tab2 AS cor0
----
-100
-6206
-6364

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

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL 53 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
2
4
5

query I rowsort
SELECT DISTINCT - - 64 AS col2 FROM tab0 AS cor0
----
64

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

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

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

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

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

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

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

query I rowsort
SELECT col1 * - ( 70 ) + col2 AS col1 FROM tab0 AS cor0
----
-5987
-6288
-6789

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

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

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

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 97 + col2 col2 FROM tab1 cor0
----
1027
1357
2576

query I rowsort
SELECT - col2 * col2 * col2 + - col0 FROM tab1 AS cor0
----
-157467
-185257
-884816

query I rowsort
SELECT + + ( - 87 ) * - col2 + col2 AS col0 FROM tab0 cor0
----
2904
7216
88

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

query I rowsort
SELECT - + 28 * col2 * + col0 AS col0 FROM tab2 AS cor0
----
-5292
-56784
-84056

onlyif mysql # use DIV operator for integer division
query I rowsort label-636
SELECT + 90 DIV + cor0.col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-636
SELECT + 90 / + cor0.col0 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT + + col2 - - col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col2 * col2 - 60 AS col2 FROM tab0 AS cor0
----
-59
1029
6664

query I rowsort
SELECT - 95 - 58 FROM tab2
----
-153
-153
-153

onlyif mysql # use DIV operator for integer division
query I rowsort label-640
SELECT 45 + + col1 * col1 DIV col2 AS col2 FROM tab1
----
46
46
57

skipif mysql # not compatible
query I rowsort label-640
SELECT 45 + + col1 * col1 / col2 AS col2 FROM tab1
----
46
46
57

query I rowsort
SELECT DISTINCT 89 + + 68 FROM tab0, tab1, tab0 cor0
----
157

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

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

query I rowsort
SELECT col0 * + 80 + tab2.col2 * + col0 FROM tab2
----
749
8268
9322

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab0
----
75

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

query I rowsort
SELECT ALL 60 + + col0 * col0 * col1 FROM tab1
----
294
41020
83260

query I rowsort
SELECT + col0 + col0 + col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT ALL + 56 + col1 FROM tab2 AS cor0
----
115
73
87

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

query I rowsort
SELECT ALL + - col2 * + 89 FROM tab1 AS cor0
----
-4806
-5073
-8544

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

query I rowsort
SELECT + + col0 + + 84 AS col0 FROM tab0 AS cor0
----
108
119
173

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

query I rowsort
SELECT + col1 * + 50 + - col0 FROM tab0 AS cor0
----
4276
4461
4815

onlyif mysql # use DIV operator for integer division
query I rowsort label-655
SELECT DISTINCT + tab2.col0 DIV 32 FROM tab2, tab1 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT + tab2.col0 / 32 FROM tab2, tab1 AS cor0
----
0
2

query I rowsort
SELECT - + col2 * 75 + + col1 AS col0 FROM tab1 cor0
----
-4024
-4265
-7187

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

skipif mysql # not compatible
query I rowsort label-657
SELECT + col1 / col0 + + col0 / col0 FROM tab2 AS cor0
----
1
1
5

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

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

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

query I rowsort
SELECT + - cor0.col2 * - col2 * + col0 - col0 AS col1 FROM tab1 AS cor0
----
207872
737200
8745

query I rowsort
SELECT + col1 + - 44 * col0 AS col1 FROM tab1 AS cor0
----
-106
-2806
-3507

query I rowsort
SELECT 49 + col2 * col1 FROM tab1 AS cor0
----
1297
1453
619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 + + col2 * + col0 col1 FROM tab1 AS cor0
----
230
3716
7748

query I rowsort
SELECT col0 * + ( col2 + + 38 * col1 ) AS col1 FROM tab1
----
27968
3126
47200

onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT ALL 92 - 48 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
88
89
91

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL 92 - 48 / cor0.col1 AS col1 FROM tab1 AS cor0
----
88
89
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * col0 * 49 col2 FROM tab0
----
-1715
-357602
-38808

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

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

query I rowsort
SELECT - 82 * - 65 FROM tab1 AS cor0
----
5330
5330
5330

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-671
SELECT ALL - col1 * col0 DIV col2 - ( + col0 ) AS col0 FROM tab1
----
-4
-75
-90

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL - col1 * col0 / col2 - ( + col0 ) AS col0 FROM tab1
----
-4
-75
-90

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

query I rowsort
SELECT 7 * - 14 FROM tab0 cor0
----
-98
-98
-98

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

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

query I rowsort
SELECT DISTINCT + ( 74 ) + - cor0.col1 * 96 AS col2 FROM tab0 AS cor0
----
-8182
-8662
-9238

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 28 * cor0.col2 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT col2 * + col2 - - 9 * col2 AS col1 FROM tab0 AS cor0
----
10
1386
7462

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

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

query I rowsort
SELECT + col2 + col2 - - 30 FROM tab1 AS cor0
----
138
144
222

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

query I rowsort
SELECT DISTINCT + col0 * + col1 - col2 * - col0 AS col1 FROM tab0 cor0
----
15397
2856
3430

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

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

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

query I rowsort
SELECT ALL + 77 FROM tab0, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

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

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c

query I rowsort
SELECT ALL - 30 + ( col2 ) * 9 FROM tab2 AS cor0
----
204
213
312

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

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL tab0.col2 * - CAST ( + tab0.col0 AS INTEGER ) AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL col1 * 41 * + cor0.col1 - - col2 FROM tab2 AS cor0
----
11887
142747
39428

query I rowsort
SELECT DISTINCT - col2 * 94 * + col1 AS col1 FROM tab0
----
-266772
-701428
-9118

onlyif mysql # use DIV operator for integer division
query I rowsort label-696
SELECT ALL - tab1.col0 DIV - 38 AS col0 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL - tab1.col0 / - 38 AS col0 FROM tab1
----
0
1
2

query I rowsort
SELECT ALL + col0 * - 93 + - col1 FROM tab1 AS cor0
----
-305
-5962
-7453

onlyif mysql # use DIV operator for integer division
query I rowsort label-698
SELECT + ( col1 ) DIV + col0 + + col2 AS col0 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-698
SELECT + ( col1 ) / + col0 + + col2 AS col0 FROM tab0
----
3
36
83

query I rowsort
SELECT - ( cor0.col0 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT - - 76 * + col2 AS col1 FROM tab1 AS cor0
----
4104
4332
7296

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-702
SELECT - cor0.col2 DIV + cor0.col0 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 14c7df8a3f9c602e7f96d58d7cbe0e39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-702
SELECT - cor0.col2 / + cor0.col0 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 14c7df8a3f9c602e7f96d58d7cbe0e39

query I rowsort
SELECT ALL ( 38 ) + col0 FROM tab0 AS cor0
----
127
62
73

query I rowsort
SELECT ALL col0 + - col2 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-248
-3429
-981

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

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

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

query I rowsort
SELECT DISTINCT + + 15 FROM tab2 cor0
----
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-708
SELECT ALL + + ( + col1 ) + - 99 DIV - cor0.col2 FROM tab0 AS cor0
----
196
89
92

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL + + ( + col1 ) + - 99 / - cor0.col2 FROM tab0 AS cor0
----
196
89
92

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

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

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT - ( col2 * - CAST ( col2 AS INTEGER ) ) + + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT - 16 + col0 AS col0 FROM tab1 AS cor0
----
-13
48
64

query I rowsort
SELECT ALL + col2 * col2 * col2 AS col1 FROM tab1 cor0
----
157464
185193
884736

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

query I rowsort
SELECT DISTINCT + + col1 + + 15 AS col0 FROM tab1 AS cor0
----
25
28
41

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 53 + col1 FROM tab0
----
139
144
150

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

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

query I rowsort
SELECT DISTINCT - col0 * + 85 * col1 + + col1 AS col0 FROM tab1 AS cor0
----
-54390
-6604
-88387

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 + col1 col0 FROM tab1
----
12
15
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-726
SELECT DISTINCT - col1 * col2 + + cor0.col2 DIV ( - col1 ) + + col2 FROM tab2 AS cor0
----
-1508
-610
-810

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT - col1 * col2 + + cor0.col2 / ( - col1 ) + + col2 FROM tab2 AS cor0
----
-1508
-610
-810

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

query I rowsort
SELECT ALL - + ( col1 ) * col1 - 37 * - col1 AS col1 FROM tab0 AS cor0
----
-4214
-4914
-5820

query I rowsort
SELECT + - cor1.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - 42 * - col1 FROM tab0
----
3612
3822
4074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col0 + - col1 ) col2 FROM tab2
----
-648
2356
494

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-733
SELECT + col1 + ( col1 ) DIV - col0 - col0 * 48 FROM tab0 AS cor0
----
-1069
-1585
-4182

skipif mysql # not compatible
query I rowsort label-733
SELECT + col1 + ( col1 ) / - col0 - col0 * 48 FROM tab0 AS cor0
----
-1069
-1585
-4182

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

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

query I rowsort
SELECT ALL 36 AS col2 FROM tab1
----
36
36
36

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

query I rowsort
SELECT + col2 + + col0 * + col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT - ( col0 ) * + col2 + 68 AS col1 FROM tab1
----
-3580
-7612
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col0 FROM tab2
----
26
27
38

query I rowsort
SELECT - tab2.col2 * tab2.col0 FROM tab2, tab0 cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f

query I rowsort
SELECT DISTINCT + + 40 + col1 + - col2 * + col1 FROM tab1 cor0
----
-1195
-1338
-520

query I rowsort
SELECT col0 * 16 * col2 FROM tab2 cor0
----
3024
32448
48032

query I rowsort
SELECT ALL - 61 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT DISTINCT - - 1 * ( col1 * + ( col2 ) ) - col2 * - col0 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT DISTINCT tab2.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 - ( col2 ) col1 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
17
31
59

query I rowsort
SELECT + + 79 AS col1 FROM tab2 cor0
----
79
79
79

query I rowsort
SELECT + 98 - - tab1.col2 * 49 FROM tab1
----
2744
2891
4802

query I rowsort
SELECT - 92 * + col0 - 47 FROM tab1
----
-323
-5935
-7407

query I rowsort
SELECT - ( + cor0.col1 ) * - 30 AS col1 FROM tab1 AS cor0
----
300
390
780

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

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

query I rowsort
SELECT ALL ( + cor0.col1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - - cor0.col0 + cor0.col1 * 90 * 88 FROM tab1 AS cor0
----
103040
205923
79264

query I rowsort
SELECT col2 + + 79 AS col2 FROM tab0 cor0
----
112
161
80

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

query I rowsort
SELECT ALL - col2 + 51 * - cor0.col1 - - cor0.col2 FROM tab0 AS cor0
----
-4386
-4641
-4947

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

query I rowsort
SELECT col0 + 34 * - col2 FROM tab0 AS cor0
----
-1098
-2699
1

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

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

query I rowsort
SELECT - col2 * + 26 AS col2 FROM tab0 AS cor0
----
-2132
-26
-858

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

query I rowsort
SELECT + 21 * cor0.col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT - 85 + + ( - col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
-182
-2923
-7547

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

query I rowsort
SELECT - ( 7 ) + + col0 AS col1 FROM tab0 AS cor0
----
17
28
82

query I rowsort
SELECT + + 64 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-770
SELECT ALL col0 DIV ( - col0 ) col1 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-770
SELECT ALL col0 / ( - col0 ) col1 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT 53 DIV - 45 FROM tab2, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-771
SELECT 53 / - 45 FROM tab2, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT + col0 * + 38 FROM tab2
----
266
2964
3002

query I rowsort
SELECT ALL + col2 * 84 + cor0.col2 FROM tab0 AS cor0
----
2805
6970
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT ALL col1 DIV - 32 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL col1 / - 32 AS col2 FROM tab1
----
0
0
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT - ( 35 ) DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-777
SELECT - ( 35 ) / col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT - ( - col1 ) + col0 * + 29 FROM tab0 AS cor0
----
1112
2672
782

onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT + ( cor0.col1 ) + - cor0.col0 * - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-779
SELECT + ( cor0.col1 ) + - cor0.col0 * - col1 / col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col0 * + ( - col0 ) * - 7 FROM tab1 cor0
----
28672
44800
63

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

query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1 WHERE NOT col0 <= ( NULL )
----

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

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

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL col1 / - col1 - + col0 FROM tab1
----
-4
-65
-81

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

query I rowsort
SELECT + col2 + - col1 * col0 + + tab1.col2 * col0 AS col0 FROM tab1
----
138
3065
6736

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT DISTINCT col2 DIV + col0 - col2 FROM tab1
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT col2 / + col0 - col2 FROM tab1
----
-36
-57
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-791
SELECT DISTINCT + col0 + col2 - col0 DIV col0 FROM tab1 AS cor0
----
120
175
56

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT + col0 + col2 - col0 / col0 FROM tab1 AS cor0
----
120
175
56

query I rowsort
SELECT + col0 + + col0 + col1 AS col0 FROM tab1
----
138
173
32

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

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

query I rowsort
SELECT ALL col0 * col0 - + col2 * + col2 AS col1 FROM tab2
----
-680
4797
5408

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

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

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

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

query I rowsort
SELECT ALL - col2 * col1 * + col1 + - col1 AS col0 FROM tab1
----
-16237
-36530
-5710

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

query I rowsort
SELECT + col1 + + col1 * col0 AS col2 FROM tab2 cor0
----
1360
248
4661

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

skipif mysql # not compatible
query I rowsort label-802
SELECT + cor0.col0 * + cor0.col0 + - col1 / col0 FROM tab1 AS cor0
----
1
4096
6400

query I rowsort
SELECT DISTINCT + col1 + col2 * - col1 + col1 FROM tab0
----
-2666
-7280
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-804
SELECT ALL col1 + tab2.col1 DIV col0 + col2 FROM tab2
----
55
62
85

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL col1 + tab2.col1 / col0 + col2 FROM tab2
----
55
62
85

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT + col1 * + col1 + + col1 - col0 DIV cor0.col2 col0 FROM tab1 AS cor0
----
109
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-806
SELECT + col1 * + col1 + + col1 - col0 / cor0.col2 col0 FROM tab1 AS cor0
----
109
182
702

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

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

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

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT - - col2 / cor0.col0 - - col1 FROM tab2 AS cor0
----
17
34
59

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-815
SELECT ALL - - col2 DIV 47 + + col2 AS col1 FROM tab1 cor0
----
55
58
98

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - - col2 / 47 + + col2 AS col1 FROM tab1 cor0
----
55
58
98

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

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

query I rowsort
SELECT ALL col2 * ( col2 * col2 ) - col1 FROM tab1 AS cor0
----
157438
185183
884723

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-820
SELECT col2 DIV + ( cor0.col1 ) + + col0 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-820
SELECT col2 / + ( cor0.col1 ) + + col0 FROM tab2 AS cor0
----
7
78
81

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 57 * + col0 * col0 + col0 + + tab2.col0 FROM tab2
----
2807
346944
355895

query I rowsort
SELECT + cor0.col2 * ( - col1 ) + - cor0.col0 * col0 FROM tab2 AS cor0
----
-6887
-7618
-886

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

query I rowsort
SELECT ALL col0 * - 66 AS col1 FROM tab1
----
-198
-4224
-5280

query I rowsort
SELECT ALL + col2 * col2 + + col2 * + col0 + - col1 AS col0 FROM tab2
----
2645
4429
887

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 + 76 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-2518
-4256
-6486

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

query I rowsort
SELECT ALL + col0 * + cor0.col1 + 40 AS col1 FROM tab0 AS cor0
----
2104
3435
8139

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

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 * + col1 + + col1 * + tab1.col0 col2 FROM tab1
----
100880
37120
4290

query I rowsort
SELECT ALL + 53 + col2 + + ( col1 + + col1 ) FROM tab1
----
130
159
175

query I rowsort
SELECT ALL - col1 * - col1 + + col1 * + 80 AS col0 FROM tab1
----
1209
2756
900

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

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

query I rowsort
SELECT ALL - 26 + tab0.col2 * col1 AS col1 FROM tab0
----
2812
71
7436

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

query I rowsort
SELECT ALL col1 * - col2 + col2 * + 33 FROM tab2 AS cor0
----
-676
54
608

query I rowsort
SELECT + 50 + col2 + cor0.col0 FROM tab0 cor0
----
107
221
86

query I rowsort
SELECT ALL - 6 + - cor0.col1 * + 50 AS col2 FROM tab1 AS cor0
----
-1306
-506
-656

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

query I rowsort
SELECT + - 60 * col0 + col1 FROM tab0 AS cor0
----
-1354
-2003
-5249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( 76 ) col2 FROM tab1
----
140
156
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-856
SELECT ALL ( + cor0.col2 ) + - CAST( 79 AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0326a0f112edd1c82cc3879db21d5605

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL ( + cor0.col2 ) + - CAST ( 79 AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0326a0f112edd1c82cc3879db21d5605

query I rowsort
SELECT 49 + - col0 FROM tab2 AS cor0
----
-29
-30
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 93 ) col0 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT ALL - col1 * + 57 FROM tab0
----
-4902
-5187
-5529

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

query I rowsort
SELECT 37 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

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

skipif mysql # not compatible
query I rowsort label-863
SELECT - + col1 / - 16 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 * 80 * + col0 col1 FROM tab0 AS cor0
----
-107520
-156800
-398720

query I rowsort
SELECT DISTINCT + col2 + 35 * col2 AS col1 FROM tab2 AS cor0
----
1368
936
972

query I rowsort
SELECT ALL - 49 + - cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 4b62449f03b0ffd44eb14e0819990385

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT col2 + col1 * - ( + col0 ) * + tab2.col1 AS col2 FROM tab2
----
-22793
-271492
-6700

query I rowsort
SELECT - - ( + col1 ) + ( 10 ) * + col1 AS col2 FROM tab2 cor0
----
187
341
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT ALL - col0 DIV + col0 + col0 * + col1 + - col0 col1 FROM tab2 AS cor0
----
1263
209
4523

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - col0 / + col0 + col0 * + col1 + - col0 col1 FROM tab2 AS cor0
----
1263
209
4523

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL cor0.col2 / 59 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT - col0 + + 97 FROM tab0 AS cor0
----
62
73
8

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

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

query I rowsort
SELECT ALL - 94 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

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

query I rowsort
SELECT col0 * 14 FROM tab2 cor0
----
1092
1106
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-883
SELECT - + col2 + CAST( - 14 AS SIGNED ) FROM tab1 AS cor0
----
-110
-68
-71

skipif mysql # not compatible
query I rowsort label-883
SELECT - + col2 + CAST ( - 14 AS INTEGER ) FROM tab1 AS cor0
----
-110
-68
-71

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

query I rowsort
SELECT ALL - 71 * col1 FROM tab1 cor0
----
-1846
-710
-923

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

query I rowsort
SELECT col0 * - 20 AS col2 FROM tab2
----
-140
-1560
-1580

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

query I rowsort
SELECT DISTINCT - col0 * 94 - + col1 * col1 FROM tab2 AS cor0
----
-10813
-1619
-7715

query I rowsort
SELECT ALL + ( - 17 ) FROM tab1 cor0
----
-17
-17
-17

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

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

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

skipif mysql # not compatible
query I rowsort label-892
SELECT col1 * col1 - + 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-893
SELECT - - ( + col1 ) + ( - col1 * col1 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col0 + + col1 * + 20 + col1 * col2 FROM tab2 cor0
----
1450
2636
907

query I rowsort
SELECT - cor0.col0 + - col1 - - col1 * - col2 FROM tab1 AS cor0
----
-1341
-1433
-644

query I rowsort
SELECT + + ( col2 ) * col2 + + 3 * + col2 * col0 FROM tab0 AS cor0
----
106
28618
3465

query I rowsort
SELECT + col1 + col2 - 60 AS col1 FROM tab1 AS cor0
----
20
49
7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-899
SELECT - cor0.col0 DIV col2 + col2 + + col0 * 98 FROM tab1 AS cor0
----
348
6328
7936

skipif mysql # not compatible
query I rowsort label-899
SELECT - cor0.col0 / col2 + col2 + + col0 * 98 FROM tab1 AS cor0
----
348
6328
7936

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

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

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

query I rowsort
SELECT ALL 84 * - col1 AS col1 FROM tab2 AS cor0
----
-1428
-2604
-4956

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-907
SELECT + - col1 DIV - col0 + + col2 AS col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-907
SELECT + - col1 / - col0 + + col2 AS col2 FROM tab0 AS cor0
----
3
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-908
SELECT ALL + col0 * col1 DIV + col1 + 87 + + col2 * 3 FROM tab0 AS cor0
----
125
210
422

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + col0 * col1 / + col1 + 87 + + col2 * 3 FROM tab0 AS cor0
----
125
210
422

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

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

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + - col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
1368
624
675

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

query I rowsort
SELECT ALL + col2 * + col1 + - 51 * + cor0.col0 FROM tab2 AS cor0
----
-2444
-3383
480

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

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

query I rowsort
SELECT ALL 99 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL - - ( + cor1.col1 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

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

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

query I rowsort
SELECT DISTINCT - col2 + col0 + 70 FROM tab0 AS cor0
----
104
61
77

query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab0 AS cor0
----
29

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

query I rowsort
SELECT ALL + cor0.col2 + col0 * - col0 + - ( - col1 + - col2 ) AS col1 FROM tab0 AS cor0
----
-1126
-424
-7666

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

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

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

query I rowsort
SELECT - col0 * - ( 32 ) AS col2 FROM tab2 cor0
----
224
2496
2528

query I rowsort
SELECT + col1 - + ( - col1 ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT col0 - - 11 AS col1 FROM tab1 AS cor0
----
14
75
91

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT + cor0.col0 DIV - 64 + - col0 * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8100

skipif mysql # not compatible
query I rowsort label-930
SELECT + cor0.col0 / - 64 + - col0 * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8100

query I rowsort
SELECT DISTINCT - cor0.col2 + - 74 FROM tab2 cor0
----
-100
-101
-112

query I rowsort
SELECT ALL - - 67 + + col0 FROM tab0 AS cor0
----
102
156
91

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

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

query I rowsort
SELECT ALL 56 + + ( col2 ) AS col1 FROM tab2
----
82
83
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-935
SELECT ( + col0 ) - cor0.col0 * 61 DIV col1 FROM tab2 AS cor0
----
-2
-204
-6

skipif mysql # not compatible
query I rowsort label-935
SELECT ( + col0 ) - cor0.col0 * 61 / col1 FROM tab2 AS cor0
----
-2
-204
-6

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( - col1 AS REAL ) + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

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

query I rowsort
SELECT + 39 - + col1 AS col1 FROM tab1 AS cor0
----
13
26
29

query I rowsort
SELECT DISTINCT + 80 + ( + col0 ) FROM tab2 AS cor0
----
158
159
87

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

skipif mysql # not compatible
query I rowsort label-940
SELECT + CAST ( + col0 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-9
34
7

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

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT - - col1 / + col0 + col2 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT DISTINCT col2 + ( col1 ) + col1 * 46 FROM tab2 AS cor0
----
1484
2799
837

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

query I rowsort
SELECT 15 + cor0.col1 AS col1 FROM tab1 AS cor0
----
25
28
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 92 - - col0 col0 FROM tab1 cor0
----
156
172
95

query I rowsort
SELECT 41 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
243 values hashing to 41a36cb645b32ee4314d66c764cd1bf9

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

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

query I rowsort
SELECT col0 * col0 - col1 FROM tab1 AS cor0
----
-17
4086
6387

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

query I rowsort
SELECT + + 96 + col1 FROM tab2 AS cor0
----
113
127
155

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

query I rowsort
SELECT DISTINCT + 48 * col2 AS col1 FROM tab2 AS cor0
----
1248
1296
1824

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

query I rowsort
SELECT cor0.col1 + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661

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

query I rowsort
SELECT DISTINCT ( 69 ) * - col0 * - 57 + col0 AS col0 FROM tab2
----
27538
306852
310786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * - col2 + tab1.col1 col0 FROM tab1
----
-1331
-730
-788

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

query I rowsort
SELECT ALL + - col2 + 54 FROM tab0 AS cor0
----
-28
21
53

query I rowsort
SELECT ALL - col0 * + 75 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT - col1 * ( 78 ) AS col1 FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT cor2.col1 - cor1.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 12dc39dc6ce038b25ac38a7c8475dd1f

query I rowsort
SELECT 84 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( 3 ) * col1 col0 FROM tab1 AS cor0
----
119
81
94

query I rowsort
SELECT ALL + col1 + - 80 FROM tab1 AS cor0
----
-54
-67
-70

query I rowsort
SELECT + 50 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT col1 * 73 + col0 AS col1 FROM tab1
----
1029
1901
794

query I rowsort
SELECT - 34 * + col2 FROM tab2
----
-1292
-884
-918

query I rowsort
SELECT 80 + + col1 * - 17 FROM tab2 AS cor0
----
-209
-447
-923

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

query I rowsort
SELECT col2 * - col2 + cor0.col1 AS col0 FROM tab2 cor0
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-973
SELECT - 41 * col0 + - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1070
-1532
-3740

skipif mysql # not compatible
query I rowsort label-973
SELECT - 41 * col0 + - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1070
-1532
-3740

query I rowsort
SELECT ALL col1 + 36 AS col1 FROM tab2 AS cor0
----
53
67
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-975
SELECT - CAST( 77 AS SIGNED ) * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1d5e9447b5fe06b87957fc8fb6085eef

skipif mysql # not compatible
query I rowsort label-975
SELECT - CAST ( 77 AS INTEGER ) * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1d5e9447b5fe06b87957fc8fb6085eef

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 + - cor0.col2 + cor0.col1 col0 FROM tab2 AS cor0
----
39
64
93

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

query I rowsort
SELECT col0 * + 32 + + col0 - + col2 FROM tab2 AS cor0
----
204
2548
2569

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

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

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

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

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL CAST ( + 81 AS INTEGER ) * - col2 AS col0 FROM tab0
----
-2673
-6642
-81

query I rowsort
SELECT - 70 * 32 FROM tab2
----
-2240
-2240
-2240

query I rowsort
SELECT DISTINCT col2 * 48 FROM tab0
----
1584
3936
48

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

query I rowsort
SELECT - 88 * col0 + 16 AS col2 FROM tab0 AS cor0
----
-2096
-3064
-7816

query I rowsort
SELECT - - 74 AS col0 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 22fe261d6995563c0767a5087aea05b1

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

query I rowsort
SELECT DISTINCT + 9 * col1 FROM tab0 cor0
----
774
819
873

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 - col1 * col1 col2 FROM tab1 cor0
----
-145
-652
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - 36 col2 FROM tab0
----
-53
1
12

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT DISTINCT + 25 + - tab0.col1 FROM tab0
----
-61
-66
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-996
SELECT ALL + 91 DIV tab1.col2 + col1 FROM tab1
----
11
13
27

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + 91 / tab1.col2 + col1 FROM tab1
----
11
13
27

query I rowsort
SELECT DISTINCT - 16 * - tab0.col2 + tab0.col2 FROM tab0
----
1394
17
561

query I rowsort
SELECT ALL 9 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

onlyif mysql # use DIV operator for integer division
query I rowsort label-999
SELECT DISTINCT 57 DIV col0 + 20 + - col2 FROM tab1
----
-15
-37
-76

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT 57 / col0 + 20 + - col2 FROM tab1
----
-15
-37
-76

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

query I rowsort
SELECT ALL 43 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

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

query I rowsort
SELECT - - cor0.col0 * col0 + ( - 71 ) AS col0 FROM tab1 AS cor0
----
-62
4025
6329

query I rowsort
SELECT - col0 + + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
4032
6
6320

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1006
SELECT ALL - CAST( - 38 AS SIGNED ) col1 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - CAST ( - 38 AS INTEGER ) col1 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL 3 + + 34 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

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

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

query I rowsort
SELECT DISTINCT 96 + - col2 AS col2 FROM tab2 AS cor0
----
58
69
70

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

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

query I rowsort
SELECT + - col2 + - col2 * col1 - col2 FROM tab0 AS cor0
----
-2904
-7626
-99

query I rowsort
SELECT col1 * - col2 + col2 - 54 FROM tab2 AS cor0
----
-1562
-662
-864

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

query I rowsort
SELECT 4 - - ( + col2 + cor0.col2 ) FROM tab0 AS cor0
----
168
6
70

query I rowsort
SELECT DISTINCT - + ( col1 ) + col0 + col0 AS col1 FROM tab0 AS cor0
----
-27
-38
87

query I rowsort
SELECT + col2 + - col2 * col2 AS col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT - col0 + 81 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1537
648
911

query I rowsort
SELECT DISTINCT + - col2 * - col1 + - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-1512
-2679
-7968

query I rowsort
SELECT - 18 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

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

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

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + col0 + col2 * + 75 AS col2 FROM tab1
----
4053
4339
7280

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

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

query I rowsort
SELECT DISTINCT + 53 * 74 FROM tab0 AS cor0
----
3922

query I rowsort
SELECT + col2 * col1 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1054
1989
6136

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

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

query I rowsort
SELECT + 79 * col2 AS col0 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT DISTINCT + 52 - - col0 AS col1 FROM tab0 cor0
----
141
76
87

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 - - cor0.col2 * ( col0 ) + 7 AS col0 FROM tab1 cor0
----
169
3655
7687

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

query I rowsort
SELECT 86 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL col1 + + 14 * 52 AS col1 FROM tab1
----
738
741
754

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

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

skipif mysql # not compatible
query I rowsort label-1038
SELECT - cor0.col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

query I rowsort
SELECT ALL + + col2 + + col2 * ( - ( - cor0.col2 ) ) FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL col0 * - 22 FROM tab1
----
-1408
-1760
-66

query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 + col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT DISTINCT + 12 + + cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
47
7310
804

query I rowsort
SELECT DISTINCT col1 + col0 * col0 AS col2 FROM tab0 cor0
----
1322
662
8012

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

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

query I rowsort
SELECT + 91 + - cor0.col2 * col0 AS col0 FROM tab1 cor0
----
-3557
-71
-7589

onlyif mysql # use DIV operator for integer division
query I rowsort label-1047
SELECT DISTINCT + ( - col1 ) DIV col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + ( - col1 ) / col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + cor0.col1 * + col0 * + 45 AS col2 FROM tab2 AS cor0
----
207090
60435
9765

query I rowsort
SELECT ALL - col0 + - col2 * col2 FROM tab2 cor0
----
-1523
-736
-754

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

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

query I rowsort
SELECT ALL + col1 * + col2 * ( col2 ) AS col0 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT 84 + - col1 AS col0 FROM tab0
----
-13
-2
-7

query I rowsort
SELECT DISTINCT 36 * - col0 * - col2 AS col1 FROM tab2
----
108072
6804
73008

query I rowsort
SELECT cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + + col2 * col2 col1 FROM tab2
----
2787
5278
946

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

query I rowsort
SELECT + col1 * 22 FROM tab1
----
220
286
572

query I rowsort
SELECT - col1 * col0 + col2 * cor0.col2 - col1 * - col1 AS col2 FROM tab0 AS cor0
----
6015
6421
6906

query I rowsort
SELECT DISTINCT - col0 * - 89 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT DISTINCT col0 * 56 AS col2 FROM tab2 AS cor0
----
392
4368
4424

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 77 * col0 + col2 FROM tab2 AS cor0
----
-512
-5980
-6045

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

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

query I rowsort
SELECT ALL - ( col1 ) + col2 * ( - col2 * + col2 ) FROM tab1 AS cor0
----
-157490
-185203
-884749

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

query I rowsort
SELECT DISTINCT + - ( - 45 ) * + col0 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT - col2 + 70 * - col1 AS col1 FROM tab1 AS cor0
----
-1006
-1874
-757

onlyif mysql # use DIV operator for integer division
query I rowsort label-1073
SELECT DISTINCT + col2 + + ( - col1 + - 92 ) DIV - 79 AS col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT + col2 + + ( - col1 + - 92 ) / - 79 AS col0 FROM tab2 AS cor0
----
27
28
39

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

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

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

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

query I rowsort
SELECT DISTINCT + - 86 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-112
-96
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 - 2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7e8dffc425e18ca149bfbd3d24ce71b0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 * + col0 col0 FROM tab1 AS cor0
----
-240
-5120
-6400

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

query I rowsort
SELECT ALL - cor1.col1 * 46 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7a30608625db52a5f7c81c556b0c503

query I rowsort
SELECT - 78 FROM tab0, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1083
SELECT ALL + col0 + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL + col0 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1084
SELECT col2 DIV 71 + - 5 FROM tab2 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-1084
SELECT col2 / 71 + - 5 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT 28 + - col1 FROM tab0 AS cor0
----
-58
-63
-69

query I rowsort
SELECT col0 + + col0 * - 56 AS col1 FROM tab2
----
-385
-4290
-4345

query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 * - col1 FROM tab0 cor0
----
-7363
-8199
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor2.col1 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

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

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

query I rowsort
SELECT - 81 * - col0 + + col2 + - cor0.col1 FROM tab1 cor0
----
271
5231
6563

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) + - 26 col1 FROM tab0 AS cor0
----
-2
63
9

query I rowsort
SELECT + + 82 * col1 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT ALL + 38 + tab2.col2 AS col2 FROM tab2
----
64
65
76

query I rowsort
SELECT col2 * 53 + col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-43
1696
4337

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 * col0 col2 FROM tab0
----
2376
3465
8811

query I rowsort
SELECT ALL + - ( + tab0.col2 ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL + 52 + tab1.col2 AS col0 FROM tab1
----
106
109
148

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

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

query I rowsort
SELECT ALL col0 + + col0 * - col0 AS col0 FROM tab1
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1102
SELECT ALL - col2 * tab2.col1 + + col2 DIV tab2.col1 FROM tab2
----
-1534
-644
-837

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL - col2 * tab2.col1 + + col2 / tab2.col1 FROM tab2
----
-1534
-644
-837

query I rowsort
SELECT col2 - + col0 * + col0 AS col0 FROM tab1 cor0
----
-4039
-6304
45

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

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

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

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

query I rowsort
SELECT - col1 * - col2 * - col1 AS col2 FROM tab0
----
-244068
-679042
-9409

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

query I rowsort
SELECT - - cor0.col2 + col2 + + col2 FROM tab2 AS cor0
----
114
78
81

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

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

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

query I rowsort
SELECT col0 * + col0 + col2 + - tab1.col0 AS col1 FROM tab1
----
4089
60
6416

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

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

query I rowsort
SELECT col0 - - col0 * col0 * col2 AS col0 FROM tab0
----
1260
19032
649611

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

query I rowsort
SELECT DISTINCT - col2 - - tab2.col2 * col0 AS col2 FROM tab2
----
162
2002
2964

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NULL NOT IN ( + cor0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 - col0 * + col1 col0 FROM tab2
----
-1381
-244
-4628

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

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

query I rowsort
SELECT ALL - 65 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

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

query I rowsort
SELECT DISTINCT - - 65 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
-428
-5044
-5097

query I rowsort
SELECT ALL + ( + col2 ) * col2 * col1 + - col0 - - col2 * + col1 FROM tab0 AS cor0
----
159
619257
96468

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

query I rowsort
SELECT ALL + 48 FROM tab0 cor0
----
48
48
48

query I rowsort
SELECT ALL + ( + 29 ) AS col0 FROM tab2
----
29
29
29

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab2
----
30

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1131
SELECT ( col0 ) + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-1131
SELECT ( col0 ) + col2 / - col0 AS col0 FROM tab0 AS cor0
----
23
35
89

query I rowsort
SELECT + 53 + col1 AS col0 FROM tab2 AS cor0
----
112
70
84

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

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

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

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

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

query I rowsort
SELECT - col2 + - 90 * + col2 * - col2 FROM tab1
----
262386
292353
829344

query I rowsort
SELECT DISTINCT 76 * - col1 FROM tab1
----
-1976
-760
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * ( col1 ) + - 8 - - col2 col2 FROM tab2 AS cor0
----
1552
676
856

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

query I rowsort
SELECT DISTINCT - 36 * 37 + + col1 FROM tab0 AS cor0
----
-1235
-1241
-1246

query I rowsort
SELECT 80 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to 2815a2e064e1815ac3a10bcd8b0ab19c

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * + cor0.col0 col0 FROM tab0 AS cor0
----
168
245
623

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

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

query I rowsort
SELECT DISTINCT - + 67 + col1 FROM tab0 AS cor0
----
19
24
30

query I rowsort
SELECT ALL 26 - - col0 AS col0 FROM tab2 AS cor0
----
104
105
33

query I rowsort
SELECT - col1 + col2 * - 83 AS col1 FROM tab0 AS cor0
----
-180
-2825
-6897

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT ALL + col1 - col2 DIV - cor0.col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL + col1 - col2 / - cor0.col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT 21 + col2 AS col0 FROM tab1 cor0
----
117
75
78

query I rowsort
SELECT DISTINCT + 62 * col2 * 40 AS col2 FROM tab0 AS cor0
----
203360
2480
81840

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

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

query I rowsort
SELECT ALL 97 - + col0 * + 86 * + col1 FROM tab1 AS cor0
----
-54943
-6611
-89343

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

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

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

query I rowsort
SELECT + 89 + - 36 - - col1 FROM tab2
----
112
70
84

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

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

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

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

query I rowsort
SELECT 13 + col0 AS col2 FROM tab2 AS cor0
----
20
91
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1163
SELECT DISTINCT - ( tab1.col2 ) DIV col2 - + col1 DIV col1 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT - ( tab1.col2 ) / col2 - + col1 / col1 FROM tab1
----
-2

query I rowsort
SELECT ALL col2 * ( col0 ) - - col1 * ( - col1 + col2 ) FROM tab2 AS cor0
----
3359
65
81

query I rowsort
SELECT DISTINCT + col1 * 17 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT ALL + col1 + ( 65 ) AS col1 FROM tab1 AS cor0
----
75
78
91

query I rowsort
SELECT ALL - col1 + + col0 * + ( + col0 * + cor0.col2 ) FROM tab1 AS cor0
----
233462
460
614387

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

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

query I rowsort
SELECT DISTINCT + - col0 * 52 + + cor0.col2 FROM tab1 AS cor0
----
-102
-3271
-4064

query I rowsort
SELECT + cor0.col2 * col1 + 36 AS col2 FROM tab1 AS cor0
----
1284
1440
606

query I rowsort
SELECT col0 * col1 + col2 * col2 AS col2 FROM tab0 cor0
----
14823
3153
3396

query I rowsort
SELECT + + col1 * 49 AS col0 FROM tab1 AS cor0
----
1274
490
637

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

query I rowsort
SELECT ALL - - 24 * + col2 AS col2 FROM tab1 AS cor0
----
1296
1368
2304

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

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

query I rowsort
SELECT DISTINCT - + 76 * col1 AS col2 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT + 85 * + cor0.col0 FROM tab1 AS cor0
----
255
5440
6800

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

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

skipif mysql # not compatible
query I rowsort label-1181
SELECT - CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

query I rowsort
SELECT 67 * - col0 * col0 AS col0 FROM tab1 AS cor0
----
-274432
-428800
-603

query I rowsort
SELECT - + col1 * ( col0 + + col2 ) FROM tab0 AS cor0
----
-15561
-3492
-4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-1188
SELECT - ( 68 ) DIV - col2 AS col0 FROM tab0 AS cor0
----
0
2
68

skipif mysql # not compatible
query I rowsort label-1188
SELECT - ( 68 ) / - col2 AS col0 FROM tab0 AS cor0
----
0
2
68

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1190
SELECT DISTINCT - CAST( 21 + col2 AS SIGNED ) col0 FROM tab0
----
-103
-22
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - CAST ( 21 + col2 AS INTEGER ) col0 FROM tab0
----
-103
-22
-54

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

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

query I rowsort
SELECT ALL 99 * col1 + - 4 * + 23 * - col2 FROM tab0
----
11550
16553
9695

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

query I rowsort
SELECT 41 - - cor0.col0 FROM tab0 AS cor0
----
130
65
76

query I rowsort
SELECT DISTINCT + + 13 * - col0 + + 71 FROM tab2 AS cor0
----
-20
-943
-956

query I rowsort
SELECT ALL - 76 - + col2 AS col1 FROM tab0 AS cor0
----
-109
-158
-77

query I rowsort
SELECT - 51 + cor0.col1 AS col0 FROM tab1 cor0
----
-25
-38
-41

query I rowsort
SELECT DISTINCT + 77 + col1 FROM tab0 AS cor0
----
163
168
174

query I rowsort
SELECT - col1 * tab2.col2 + + tab2.col0 * col0 AS col2 FROM tab2
----
-788
4550
5595

query I rowsort
SELECT 89 + col1 * + 50 AS col2 FROM tab1
----
1389
589
739

query I rowsort
SELECT ALL col1 * col2 + - col2 + + col1 AS col0 FROM tab1 AS cor0
----
1165
1376
523

query I rowsort
SELECT + col2 * - 49 FROM tab0
----
-1617
-4018
-49

query I rowsort
SELECT + col2 * cor0.col0 + 16 AS col1 FROM tab0 AS cor0
----
51
7314
808

onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT DISTINCT - + col2 DIV - col1 + 59 * col0 FROM tab1 AS cor0
----
179
3781
4727

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - + col2 / - col1 + 59 * col0 FROM tab1 AS cor0
----
179
3781
4727

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

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

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

query I rowsort
SELECT col0 * + ( col2 ) + cor0.col2 - - col2 AS col0 FROM tab0 cor0
----
37
7462
858

query I rowsort
SELECT + - col1 + 19 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-15
-43
-99

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1212
SELECT col2 DIV - col1 - - col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3000

skipif mysql # not compatible
query I rowsort label-1212
SELECT col2 / - col1 - - col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3000

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

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

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

query I rowsort
SELECT DISTINCT col2 + + ( col2 ) * 88 FROM tab1 AS cor0
----
4806
5073
8544

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

skipif mysql # not compatible
query I rowsort label-1216
SELECT - CAST ( - col2 AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT 79 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1327
1483
649

query I rowsort
SELECT + ( 17 ) FROM tab2 AS cor0
----
17
17
17

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

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

query I rowsort
SELECT col2 * - col0 + 57 FROM tab0
----
-7241
-735
22

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

query I rowsort
SELECT tab0.col1 + + col1 * - ( - ( col0 ) ) * 25 FROM tab0
----
202566
51686
84972

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

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

query I rowsort
SELECT DISTINCT + col1 + - col1 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 89 * + col0 FROM tab0 AS cor0
----
-2136
-3115
-7921

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

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

query I rowsort
SELECT + - 73 * - col1 FROM tab0 AS cor0
----
6278
6643
7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * col2 col1 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT - 67 + - cor1.col2 * - 55 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0e5ddeed6ee355e97f94617ce7c338a4

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + 75 + + 93 - col2 col1 FROM tab2 AS cor0
----
2017
2091
2905

onlyif mysql # use DIV operator for integer division
query I rowsort label-1235
SELECT + - col1 + 52 DIV col1 AS col1 FROM tab1 cor0
----
-24
-5
-9

skipif mysql # not compatible
query I rowsort label-1235
SELECT + - col1 + 52 / col1 AS col1 FROM tab1 cor0
----
-24
-5
-9

query I rowsort
SELECT + col0 * + cor0.col1 + 92 FROM tab1 AS cor0
----
1132
170
732

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

query I rowsort
SELECT - cor0.col0 * - 24 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 182512d38a96190618e6b11bf97ef9f2

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

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

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

query I rowsort
SELECT DISTINCT - ( 87 ) AS col1 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL + + 66 * 72 FROM tab0 AS cor0
----
4752
4752
4752

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

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - CAST ( 6 AS INTEGER ) FROM tab2 AS cor0
----
-6
-6
-6

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

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

query I rowsort
SELECT ALL ( col0 ) - - col2 * - 40 AS col2 FROM tab2 cor0
----
-1073
-1441
-962

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

query I rowsort
SELECT ALL - - 98 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-101920
-62720
-7644

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

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 88 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

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

query I rowsort
SELECT ALL 63 * 20 FROM tab1, tab0 cor0
----
9 values hashing to ec72c852c38f30b78ecb2b2dd9b13f0f

query I rowsort
SELECT + 79 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to da0116d31b8af0da9f685c090d378baf

query I rowsort
SELECT ALL + 57 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * col1 * 68 col0 FROM tab1
----
38760
84864
95472

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

query I rowsort
SELECT + 72 * - 27 + + col2 AS col1 FROM tab2
----
-1906
-1917
-1918

query I rowsort
SELECT DISTINCT cor0.col0 + + 70 * col1 AS col2 FROM tab0 cor0
----
6044
6459
6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * 65 col0 FROM tab0 AS cor0
----
-1560
-2275
-5785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col0 + - col2 col0 FROM tab2 AS cor0
----
-1381
-244
-4628

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

query I rowsort
SELECT - 69 * - ( col2 ) * col1 FROM tab1 AS cor0
----
39330
86112
96876

query I rowsort
SELECT ALL + 63 + col0 FROM tab0
----
152
87
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1266
SELECT col1 + col2 * + ( + col0 ) + col1 * col1 DIV + col2 FROM tab1
----
200
3659
7694

skipif mysql # not compatible
query I rowsort label-1266
SELECT col1 + col2 * + ( + col0 ) + col1 * col1 / + col2 FROM tab1
----
200
3659
7694

query I rowsort
SELECT - 74 AS col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT + - 8 * col0 + col0 FROM tab1 cor0
----
-21
-448
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT ALL col2 * col2 + - col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
1444
676
726

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL col2 * col2 + - col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
1444
676
726

query I rowsort
SELECT ALL - - col2 + col2 + cor0.col2 * 75 AS col2 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT 54 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1273
SELECT ALL - col2 DIV + 31 - + col2 FROM tab0 AS cor0
----
-1
-34
-84

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL - col2 / + 31 - + col2 FROM tab0 AS cor0
----
-1
-34
-84

query I rowsort
SELECT + col2 + + 12 AS col1 FROM tab2 AS cor0
----
38
39
50

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

query I rowsort
SELECT ALL + - col0 + 30 AS col0 FROM tab2 AS cor0
----
-48
-49
23

query I rowsort
SELECT DISTINCT + - col2 * col0 + - col1 + col2 AS col1 FROM tab2 AS cor0
----
-193
-2061
-2981

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

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

query I rowsort
SELECT DISTINCT col1 + + 52 * - 29 FROM tab2 cor0
----
-1449
-1477
-1491

query I rowsort
SELECT ALL - col0 * + 68 FROM tab0 AS cor0
----
-1632
-2380
-6052

query I rowsort
SELECT - cor0.col1 + cor0.col2 * 96 AS col0 FROM tab0 AS cor0
----
-1
3082
7781

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1283
SELECT DISTINCT + 21 + col1 DIV - col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT + 21 + col1 / - col1 FROM tab2
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + tab0.col0 * ( + col1 + - col2 ) col2 FROM tab0
----
1239
3359
719

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

query I rowsort
SELECT DISTINCT + col0 + ( + 37 ) * cor0.col1 FROM tab1 AS cor0
----
434
561
965

query I rowsort
SELECT - cor0.col1 * + 90 FROM tab1 cor0
----
-1170
-2340
-900

query I rowsort
SELECT ALL col0 * col2 + col0 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-533
1430
1637

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1291
SELECT ALL + col0 + 74 DIV cor0.col0 FROM tab0 AS cor0
----
27
37
89

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL + col0 + 74 / cor0.col0 FROM tab0 AS cor0
----
27
37
89

query I rowsort
SELECT + col2 * - 1 AS col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col1 * ( - col0 ) * col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT + col2 * col2 * col0 - col1 FROM tab0 AS cor0
----
-62
26050
598345

query I rowsort
SELECT col0 + + col1 * cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT + 52 + + 91 FROM tab0 AS cor0
----
143
143
143

query I rowsort
SELECT + col2 * - ( + 38 ) FROM tab0
----
-1254
-3116
-38

query I rowsort
SELECT col1 * col2 + col1 * col1 * col0 + 46 * col0 FROM tab1 AS cor0
----
18448
3570
9914

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

query I rowsort
SELECT DISTINCT + - 3 FROM tab0 AS cor0
----
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1301
SELECT + + col2 + col0 DIV 86 + col1 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-1301
SELECT + + col2 + col0 / 86 + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 * col0 + col1 * col0 AS col0 FROM tab0 AS cor0
----
15397
2856
3430

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

query I rowsort
SELECT - - col0 * + col0 + col0 + col2 AS col2 FROM tab1 AS cor0
----
4217
6576
66

query I rowsort
SELECT + 59 + 95 FROM tab1
----
154
154
154

query I rowsort
SELECT + 60 * col1 + - col2 AS col2 FROM tab1
----
1506
543
684

query I rowsort
SELECT ALL + col0 * - col2 * ( + tab1.col2 ) + - col0 FROM tab1
----
-208000
-737360
-8751

query I rowsort
SELECT ALL tab0.col0 * - col2 + - 75 AS col1 FROM tab0
----
-110
-7373
-867

query I rowsort
SELECT DISTINCT - - 2 * 57 - - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
140
141
152

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - ( col2 ) * + CAST ( - col1 AS REAL ) FROM tab1
----
1248
1404
570

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

query I rowsort
SELECT + 18 - cor0.col0 AS col0 FROM tab0 cor0
----
-17
-6
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-1313
SELECT ALL - ( col0 ) DIV ( 6 ) FROM tab2 cor0
----
-1
-13
-13

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - ( col0 ) / ( 6 ) FROM tab2 cor0
----
-1
-13
-13

query I rowsort
SELECT col0 * + tab2.col1 * 24 FROM tab2
----
110448
32232
5208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * 81 col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2667c5c958c48c6387ee5f6af382b244

onlyif mysql # use DIV operator for integer division
query I rowsort label-1316
SELECT - - CAST( - 32 AS SIGNED ) * col2 DIV - cor0.col1 AS col2 FROM tab0 cor0
----
0
12
28

skipif mysql # not compatible
query I rowsort label-1316
SELECT - - CAST ( - 32 AS INTEGER ) * col2 / - cor0.col1 AS col2 FROM tab0 cor0
----
0
12
28

query I rowsort
SELECT - - col0 + 28 * + col2 AS col0 FROM tab1 cor0
----
1515
1660
2768

query I rowsort
SELECT 56 + col2 FROM tab0 AS cor0
----
138
57
89

query I rowsort
SELECT DISTINCT tab0.col2 * + col1 * 84 AS col2 FROM tab0
----
238392
626808
8148

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

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

query I rowsort
SELECT + - 89 - col0 FROM tab2 AS cor0
----
-167
-168
-96

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1326
SELECT + col1 * CAST( 22 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1298
374
682

skipif mysql # not compatible
query I rowsort label-1326
SELECT + col1 * CAST ( 22 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1298
374
682

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1327
SELECT col1 * CAST ( col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1328
SELECT 22 * col2 DIV col2 + ( + col1 ) * + col0 AS col2 FROM tab1
----
100
1062
662

skipif mysql # not compatible
query I rowsort label-1328
SELECT 22 * col2 / col2 + ( + col1 ) * + col0 AS col2 FROM tab1
----
100
1062
662

query I rowsort
SELECT DISTINCT 42 * - col2 * - col1 FROM tab1
----
23940
52416
58968

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

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

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

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

query I rowsort
SELECT 59 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT col2 * tab0.col2 * tab0.col2 AS col2 FROM tab0
----
1
35937
551368

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

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

query I rowsort
SELECT col0 + + 89 * 8 AS col1 FROM tab0 AS cor0
----
736
747
801

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

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

query I rowsort
SELECT 26 + col0 FROM tab0 AS cor0
----
115
50
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1340
SELECT ALL - CAST( + 24 AS SIGNED ) + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-21
40
56

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL - CAST ( + 24 AS INTEGER ) + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-21
40
56

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

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

query I rowsort
SELECT 57 * col2 FROM tab0
----
1881
4674
57

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

query I rowsort
SELECT 78 * col1 FROM tab2
----
1326
2418
4602

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

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

query I rowsort
SELECT - 24 + + tab2.col0 * + col1 + ( - tab2.col2 ) AS col1 FROM tab2
----
1281
166
4552

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 87 ) col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT + + 75 + + col1 * + col2 AS col1 FROM tab2 cor0
----
1609
721
912

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

query I rowsort
SELECT - - col0 + col1 * 64 FROM tab2 AS cor0
----
1167
1991
3854

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1354
SELECT ALL + + col2 * + CAST( col2 AS SIGNED ) + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL + + col2 * + CAST ( col2 AS INTEGER ) + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT col0 * 29 FROM tab0 cor0
----
1015
2581
696

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * + col2 col2 FROM tab0
----
2904
7216
88

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

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

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

query I rowsort
SELECT ALL + - 47 * - col1 + - col2 FROM tab0 AS cor0
----
4009
4195
4558

query I rowsort
SELECT DISTINCT 82 * col0 AS col1 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT + + 90 + + col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1253
-127
-4512

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

query I rowsort
SELECT DISTINCT + 33 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
33

query I rowsort
SELECT DISTINCT + col1 + col1 + + col1 AS col1 FROM tab0
----
258
273
291

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

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL col0 + col1 / col1 AS col2 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT + ( col2 + col0 ) * + 36 AS col2 FROM tab0
----
1296
2052
6156

query I rowsort
SELECT DISTINCT + ( col2 ) * 30 AS col2 FROM tab0 AS cor0
----
2460
30
990

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

query I rowsort
SELECT + - 60 * - col2 AS col2 FROM tab0 cor0
----
1980
4920
60

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

query I rowsort
SELECT DISTINCT 40 * col1 FROM tab1
----
1040
400
520

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

skipif mysql # not compatible
query I rowsort label-1374
SELECT - col2 / 92 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT col1 - - col1 * tab1.col1 FROM tab1
----
110
182
702

skipif mysql # not compatible
query I rowsort
SELECT tab0.col1 / - CAST ( + col1 AS REAL ) FROM tab0
----
-1
-1
-1

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

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

query I rowsort
SELECT - 74 - - 94 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT DISTINCT - 85 + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-83
-85

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT - 85 + col2 / col1 AS col0 FROM tab2 AS cor0
----
-83
-85

query I rowsort
SELECT col2 + col1 - - 42 AS col1 FROM tab0
----
140
161
215

query I rowsort
SELECT - tab2.col2 * - tab2.col0 + - 77 + col1 FROM tab2
----
143
2010
2942

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

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

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

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

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

query I rowsort
SELECT DISTINCT 77 * + col2 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT - 24 * col1 FROM tab0
----
-2064
-2184
-2328

query I rowsort
SELECT - col2 + - 7 FROM tab2 AS cor0
----
-33
-34
-45

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1391
SELECT ALL + cor0.col1 + - cor0.col0 * col0 DIV - CAST( - 78 AS SIGNED ) FROM tab2 AS cor0
----
-19
-63
31

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL + cor0.col1 + - cor0.col0 * col0 / - CAST ( - 78 AS INTEGER ) FROM tab2 AS cor0
----
-19
-63
31

query I rowsort
SELECT ALL + ( col2 ) + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + 66 * 14 FROM tab2 AS cor0
----
924

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1397
SELECT ALL - ( col0 ) + - col2 DIV - col1 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL - ( col0 ) + - col2 / - col1 FROM tab1 AS cor0
----
-1
-59
-73

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

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

query I rowsort
SELECT ALL + ( - 35 * - col1 ) AS col2 FROM tab1
----
350
455
910

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

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

query I rowsort
SELECT ALL - 3 + + col1 AS col2 FROM tab0
----
83
88
94

query I rowsort
SELECT DISTINCT 90 + 0 AS col2 FROM tab0
----
90

query I rowsort
SELECT - - 54 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT ALL - + 63 + + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2853
3186
9153

onlyif mysql # use DIV operator for integer division
query I rowsort label-1405
SELECT DISTINCT - col0 DIV + 19 + cor0.col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2839
-7466
-98

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT - col0 / + 19 + cor0.col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2839
-7466
-98

query I rowsort
SELECT DISTINCT + 50 FROM tab2, tab1 cor0
----
50

query I rowsort
SELECT DISTINCT + ( - 22 ) * col2 + - 95 FROM tab1 AS cor0
----
-1283
-1349
-2207

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

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

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

query I rowsort
SELECT ALL - cor0.col2 * - col1 + ( ( - col1 ) + ( - 10 ) ) FROM tab2 cor0
----
1465
619
796

query I rowsort
SELECT - col0 * cor0.col2 + 1 FROM tab1 AS cor0
----
-161
-3647
-7679

query I rowsort
SELECT 13 + + col2 FROM tab2 AS cor0
----
39
40
51

query I rowsort
SELECT DISTINCT col1 * col2 + col1 * - ( tab0.col0 * - col1 ) FROM tab0
----
180342
329412
744471

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

query I rowsort
SELECT col0 + col0 + - 42 FROM tab1 cor0
----
-36
118
86

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1417
SELECT col0 * CAST ( NULL AS REAL ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1419
SELECT DISTINCT - col0 * cor0.col2 DIV - col0 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT - col0 * cor0.col2 / - col0 FROM tab2 cor0
----
26
27
38

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

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

query I rowsort
SELECT - col1 + 44 * + col2 AS col1 FROM tab0 AS cor0
----
-53
1366
3517

query I rowsort
SELECT - cor0.col2 * col2 * 29 FROM tab2 AS cor0
----
-19604
-21141
-41876

query I rowsort
SELECT ALL - col2 + col0 - - 96 FROM tab2 AS cor0
----
137
148
76

query I rowsort
SELECT DISTINCT - col2 - ( + 4 * col0 ) FROM tab0 AS cor0
----
-129
-141
-438

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 * + 80 col0 FROM tab0 cor0
----
-17
2554
6469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1427
SELECT - - col0 * - CAST( + 87 AS SIGNED ) FROM tab0 AS cor0
----
-2088
-3045
-7743

skipif mysql # not compatible
query I rowsort label-1427
SELECT - - col0 * - CAST ( + 87 AS INTEGER ) FROM tab0 AS cor0
----
-2088
-3045
-7743

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

query I rowsort
SELECT + cor0.col0 * 85 + col2 FROM tab2 AS cor0
----
622
6656
6753

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

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

query I rowsort
SELECT + col2 * + col0 * tab1.col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL 36 + - col1 AS col1 FROM tab1
----
10
23
26

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

query I rowsort
SELECT DISTINCT col1 + 51 FROM tab1 cor0
----
61
64
77

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

query I rowsort
SELECT DISTINCT - col1 * ( 97 * col2 ) AS col2 FROM tab2 AS cor0
----
-148798
-62662
-81189

query I rowsort
SELECT ALL + cor0.col2 - ( - ( - col0 ) ) * col0 * + col0 AS col1 FROM tab2 AS cor0
----
-316
-474526
-493001

query I rowsort
SELECT ALL col1 * ( - col1 ) FROM tab2 cor0
----
-289
-3481
-961

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

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

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

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

query I rowsort
SELECT + + 77 + + col1 FROM tab0 AS cor0
----
163
168
174

query I rowsort
SELECT + col0 + - ( - col0 * 85 + - ( - col1 ) ) FROM tab1 AS cor0
----
232
5494
6867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

skipif mysql # not compatible
query I rowsort label-1446
SELECT CAST ( + 40 AS INTEGER ) * - col1 - + col2 AS col2 FROM tab0 AS cor0
----
-3473
-3722
-3881

query I rowsort
SELECT + 50 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
176
3210
4013

query I rowsort
SELECT 44 * col0 FROM tab0 AS cor0
----
1056
1540
3916

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1449
SELECT - col2 / - col1 col2 FROM tab2
----
0
0
2

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1451
SELECT DISTINCT - tab1.col2 + 15 DIV 19 AS col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT - tab1.col2 + 15 / 19 AS col1 FROM tab1
----
-54
-57
-96

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

skipif mysql # not compatible
query I rowsort label-1452
SELECT - - CAST ( - 11 AS INTEGER ) * - col2 * - col2 - + col0 FROM tab0 AS cor0
----
-12003
-46
-74053

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1454
SELECT + 50 * 15 + col1 DIV col1 FROM tab1 AS cor0
----
751
751
751

skipif mysql # not compatible
query I rowsort label-1454
SELECT + 50 * 15 + col1 / col1 FROM tab1 AS cor0
----
751
751
751

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

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

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

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

query I rowsort
SELECT + 70 + - cor0.col1 FROM tab0 AS cor0
----
-16
-21
-27

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

query I rowsort
SELECT col2 + + cor0.col1 * + col1 - + col1 FROM tab0 AS cor0
----
7343
8272
9313

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

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

query I rowsort
SELECT + 11 - col2 FROM tab2
----
-15
-16
-27

query I rowsort
SELECT + ( - col1 ) + + col2 * + col0 * tab0.col1 + + col1 * + col2 AS col2 FROM tab0
----
3395
671489
70864

query I rowsort
SELECT col1 * - col1 * tab0.col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL - 14 * + col0 FROM tab0
----
-1246
-336
-490

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

query I rowsort
SELECT ALL 2 + col2 FROM tab0
----
3
35
84

query I rowsort
SELECT col0 + cor0.col1 * + col1 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT + col0 * + col1 + tab0.col2 + col2 * - col0 AS col1 FROM tab0
----
1305
3361
883

query I rowsort
SELECT DISTINCT + cor0.col1 + 87 FROM tab2 AS cor0
----
104
118
146

query I rowsort
SELECT 48 + - 95 + - col0 * + col2 FROM tab2
----
-2075
-236
-3049

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

query I rowsort
SELECT DISTINCT + 40 + + col1 AS col2 FROM tab0
----
126
131
137

query I rowsort
SELECT DISTINCT col1 * col2 + col0 - tab0.col2 AS col0 FROM tab0
----
131
2829
7469

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

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

skipif mysql # not compatible
query I rowsort label-1478
SELECT + col0 * 42 / - col0 FROM tab2
----
-42
-42
-42

query I rowsort
SELECT - 53 + 94 + + col0 * col0 AS col1 FROM tab1
----
4137
50
6441

query I rowsort
SELECT - col0 * col2 * tab0.col0 + col0 AS col2 FROM tab0
----
-1190
-18984
-649433

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

query I rowsort
SELECT ALL + 67 + + col2 AS col1 FROM tab2 AS cor0
----
105
93
94

query I rowsort
SELECT 30 FROM tab0, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT col2 * 4 + col2 + col1 FROM tab2 AS cor0
----
166
189
207

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

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

query I rowsort
SELECT - col2 * 89 + col2 FROM tab1
----
-4752
-5016
-8448

query I rowsort
SELECT ALL - col0 + - 93 FROM tab1 cor0
----
-157
-173
-96

query I rowsort
SELECT DISTINCT col1 * col1 - - col1 FROM tab2 AS cor0
----
306
3540
992

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1490
SELECT col2 - CAST( + cor0.col2 + + col2 AS SIGNED ) DIV col2 AS col2 FROM tab1 AS cor0
----
52
55
94

skipif mysql # not compatible
query I rowsort label-1490
SELECT col2 - CAST ( + cor0.col2 + + col2 AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
52
55
94

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL + + col2 + + col1 / - col0 col1 FROM tab0 AS cor0
----
-1
30
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT + 81 DIV 78 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-1492
SELECT + 81 / 78 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + col2 * 37 * - col2 FROM tab1
----
-107892
-120213
-340992

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1495
SELECT - col1 * + 72 + col1 DIV col2 col1 FROM tab1 AS cor0
----
-1872
-720
-936

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1495
SELECT - col1 * + 72 + col1 / col2 col1 FROM tab1 AS cor0
----
-1872
-720
-936

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1498
SELECT DISTINCT - col1 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT - col1 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-20
-26
-52

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

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

query I rowsort
SELECT - ( + 23 ) + col0 FROM tab0 AS cor0
----
1
12
66

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1503
SELECT DISTINCT + - 94 + col2 DIV - col2 + + cor0.col0 * 53 DIV col0 AS col2 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT + - 94 + col2 / - col2 + + cor0.col0 * 53 / col0 AS col2 FROM tab0 AS cor0
----
-42

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col0 + + 73 * col0 AS col2 FROM tab0 AS cor0
----
13795
2544
2590

query I rowsort
SELECT DISTINCT 72 * + col1 * col1 FROM tab1
----
12168
48672
7200

query I rowsort
SELECT ALL 45 - col2 FROM tab2
----
18
19
7

query I rowsort
SELECT DISTINCT 37 * col1 AS col2 FROM tab2
----
1147
2183
629

query I rowsort
SELECT + col1 * - 83 + col0 FROM tab1 AS cor0
----
-2155
-766
-999

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

skipif mysql # not compatible
query I rowsort label-1513
SELECT - col0 * col1 / - col0 AS col2 FROM tab0 AS cor0
----
86
91
97

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

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

query I rowsort
SELECT + 30 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - + cor0.col1 + - 22 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 79bd459078b6223d760c19e9071475c5

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

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

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

query I rowsort
SELECT + - cor0.col2 + + col1 * - 53 FROM tab0 AS cor0
----
-4591
-4905
-5142

query I rowsort
SELECT DISTINCT + ( 55 ) FROM tab2
----
55

query I rowsort
SELECT DISTINCT + 5 * + 45 + - col0 AS col2 FROM tab0 AS cor0
----
136
190
201

query I rowsort
SELECT - + ( col1 ) * col2 + + col0 * - 51 * col1 FROM tab2 AS cor0
----
-11904
-236236
-69139

onlyif mysql # use DIV operator for integer division
query I rowsort label-1523
SELECT + + col2 * 1 DIV - col0 + + col1 * col0 FROM tab1 AS cor0
----
1039
60
640

skipif mysql # not compatible
query I rowsort label-1523
SELECT + + col2 * 1 / - col0 + + col1 * col0 FROM tab1 AS cor0
----
1039
60
640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 + + col2 ) col2 FROM tab0
----
164
2
66

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1527
SELECT DISTINCT col2 * cor0.col0 + 62 DIV + col0 FROM tab2 AS cor0
----
197
2028
3002

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT col2 * cor0.col0 + 62 / + col0 FROM tab2 AS cor0
----
197
2028
3002

query I rowsort
SELECT - col2 + + col1 + + 64 FROM tab2 AS cor0
----
43
68
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 97 col0 FROM tab1
----
-5238
-5529
-9312

query I rowsort
SELECT 38 * col1 FROM tab1
----
380
494
988

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1533
SELECT - col1 + + 61 DIV - col0 FROM tab0 AS cor0
----
-88
-91
-98

skipif mysql # not compatible
query I rowsort label-1533
SELECT - col1 + + 61 / - col0 FROM tab0 AS cor0
----
-88
-91
-98

query I rowsort
SELECT + + col1 * - 47 + - col0 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1268
-745
2203

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

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

query I rowsort
SELECT DISTINCT - col2 + - col1 - col1 * - col1 * col2 AS col0 FROM tab2
----
10927
25889
90421

query I rowsort
SELECT - 37 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-13
-2
52

query I rowsort
SELECT + col2 + - col2 * col2 FROM tab1
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-1540
SELECT col0 DIV + col0 + col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-1540
SELECT col0 / + col0 + col0 FROM tab2
----
79
8
80

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1542
SELECT DISTINCT - + col1 * - cor0.col0 DIV + col0 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT - + col1 * - cor0.col0 / + col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + col2 * col1 + + 16 * + col0 + col1 FROM tab1 AS cor0
----
1478
1604
2541

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

query I rowsort
SELECT 72 + 78 FROM tab0, tab2 AS cor0
----
9 values hashing to 3be1163443bad1a5685b4d7d207b1d61

query I rowsort
SELECT + col0 * - 78 FROM tab1 AS cor0
----
-234
-4992
-6240

query I rowsort
SELECT - ( - col1 ) * + col1 * 15 - col2 FROM tab2 AS cor0
----
14388
4297
52189

query I rowsort
SELECT cor0.col0 + - ( col1 + - col2 ) * - ( + col0 ) AS col1 FROM tab2 cor0
----
-1580
2652
35

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

query I rowsort
SELECT DISTINCT + cor0.col1 + + 24 FROM tab1, tab1 AS cor0
----
34
37
50

query I rowsort
SELECT + - col1 + 61 FROM tab1 AS cor0
----
35
48
51

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

query I rowsort
SELECT DISTINCT - col1 * 22 AS col2 FROM tab1 cor0
----
-220
-286
-572

onlyif mysql # use DIV operator for integer division
query I rowsort label-1554
SELECT DISTINCT + + 14 DIV + 79 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT + + 14 / + 79 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + - 56 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ALL 51 AS col1 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT ALL 59 + col2 FROM tab1
----
113
116
155

query I rowsort
SELECT + - col2 + 99 * col0 AS col2 FROM tab0 AS cor0
----
2343
3464
8729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col2 * - col0 col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - col2 * 37 + - col0 FROM tab0 AS cor0
----
-1245
-3123
-72

query I rowsort
SELECT + - 15 AS col2 FROM tab2 AS cor0
----
-15
-15
-15

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

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

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

query I rowsort
SELECT ALL - col2 * + 28 + col1 AS col1 FROM tab2 AS cor0
----
-1047
-669
-725

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

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

query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab0
----
-2

query I rowsort
SELECT DISTINCT + - 89 * col1 + + 0 FROM tab1 AS cor0
----
-1157
-2314
-890

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

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

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

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

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

query I rowsort
SELECT ALL 51 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

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

query I rowsort
SELECT - ( 43 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT DISTINCT + 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT - - 67 + cor1.col2 * cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2fef3f5530f9675884edd0012090ca35

onlyif mysql # use DIV operator for integer division
query I rowsort label-1580
SELECT ALL col1 DIV CAST( - col1 AS SIGNED ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL col1 / CAST ( - col1 AS INTEGER ) FROM tab2
----
-1
-1
-1

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

query I rowsort
SELECT ALL + col1 * - ( col1 ) AS col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL + col2 * 6 FROM tab2
----
156
162
228

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - col1
----

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

query I rowsort
SELECT DISTINCT + col0 + - col2 * col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1155
-1375
-496

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 - col0 col2 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT DISTINCT col2 + col0 * col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-329
-77
26

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT col2 + col0 * col0 / - col1 AS col0 FROM tab2 AS cor0
----
-329
-77
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 - col1 col1 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1594
SELECT ALL + col1 + col0 DIV col2 - col2 * - col1 FROM tab0 AS cor0
----
229
2924
7554

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + col1 + col0 / col2 - col2 * - col1 FROM tab0 AS cor0
----
229
2924
7554

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT col2 <> ( NULL )
----

query I rowsort
SELECT col2 + col2 - + col0 FROM tab0 cor0
----
-33
42
75

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

query I rowsort
SELECT col0 + + col2 - + col0 * - col1 FROM tab0 AS cor0
----
2121
3431
8270

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT NULL IN ( cor0.col0 )
----

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * col1 + - col1 FROM tab1 AS cor0
----
1235
1378
560

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

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

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

query I rowsort
SELECT DISTINCT + tab0.col2 + col2 FROM tab0 WHERE NOT NULL IN ( col0 )
----

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

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

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

query I rowsort
SELECT col2 + + col0 * ( - col0 ) FROM tab0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 + - ( col1 ) ) col1 FROM tab0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1619
SELECT DISTINCT + cor0.col2 * col2 + + CAST( cor0.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + cor0.col2 * col2 + + CAST ( cor0.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1482
702
756

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

query I rowsort
SELECT ALL - col2 * + col2 * col2 AS col1 FROM tab1
----
-157464
-185193
-884736

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 + col2 * - col2 col2 FROM tab2
----
-1382
-657
-753

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

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

skipif mysql # not compatible
query I rowsort label-1625
SELECT + col1 * tab1.col2 + col1 / + col1 FROM tab1
----
1249
1405
571

query I rowsort
SELECT ALL col0 * col1 * + col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col1 * col1 * col0 AS col2 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL tab0.col2 * col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col0 + tab1.col1 * - col0 AS col1 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * tab2.col1 AS col2 FROM tab2 WHERE NOT col1 + - col1 * col1 + col2 > + col1
----
1534
646
837

query I rowsort
SELECT DISTINCT tab0.col0 * - col2 * - col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT col2 + col2 * + col1 AS col0 FROM tab0
----
2871
7544
98

query I rowsort
SELECT tab2.col1 AS col0 FROM tab2 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL tab0.col2 * + tab0.col2 AS col1 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * - col1 col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - tab1.col2 * + col1 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + tab1.col0 * col1 - + col2 AS col0 FROM tab1
----
24
583
944

query I rowsort
SELECT DISTINCT - col1 + + tab0.col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 * col0 col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT col0 * - col0 - col1 * - col0 FROM tab1
----
-3456
-5360
69

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 + - col0 AND col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1643
SELECT - tab0.col2 * col0 DIV col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1643
SELECT - tab0.col2 * col0 / col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT col2 * - col2 + - tab1.col0 AS col1 FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT col1 - col0 FROM tab0 WHERE ( - col2 + - col2 ) IN ( col0 + col1 * col1 )
----

query I rowsort
SELECT col1 / - col2 FROM tab1 WHERE NOT NULL > - col2 + + col2 * + col0 * - col1
----

query I rowsort
SELECT tab0.col2 / col0 + col0 * col0 FROM tab0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 BETWEEN - col0 AND ( col1 * - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * + col1 NOT IN ( + col0 )
----

query I rowsort
SELECT ALL + ( tab1.col2 + - col0 ) AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL 98 FROM tab2, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # use DIV operator for integer division
query I rowsort label-1652
SELECT + tab1.col1 DIV 37 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1652
SELECT + tab1.col1 / 37 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT DISTINCT col2 + col2 + col1 FROM tab2 AS cor0
----
111
85
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1655
SELECT - + col1 * col1 * col1 + col1 DIV col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

skipif mysql # not compatible
query I rowsort label-1655
SELECT - + col1 * col1 * col1 + col1 / col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT 76 + - col2 FROM tab1 cor0
----
-20
19
22

query I rowsort
SELECT ALL 75 AS col0 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT + col1 + 71 * - col0 * + col1 AS col1 FROM tab1
----
-45430
-5512
-73827

query I rowsort
SELECT col0 * - 82 + col0 FROM tab0
----
-1944
-2835
-7209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( - col0 ) * - col1 col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT col1 - - 35 FROM tab2
----
52
66
94

query I rowsort
SELECT + + col0 * + col1 - 4 AS col2 FROM tab1 AS cor0
----
1036
636
74

query I rowsort
SELECT - col0 + + col2 + - tab1.col0 * col0 FROM tab1
----
-4103
-6384
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1664
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) - - col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col0 - 21 AS col2 FROM tab2
----
-100
-28
-99

query I rowsort
SELECT DISTINCT col1 - + 51 * col2 FROM tab0
----
-1597
-4091
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col2 FROM tab0
----
-66
-66
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT DISTINCT col1 DIV + 18 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT col1 / + 18 FROM tab1
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1669
SELECT ALL - cor0.col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL - cor0.col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + col0 * 78 AS col2 FROM tab2 AS cor0
----
573
6110
6200

query I rowsort
SELECT DISTINCT - 64 + col0 FROM tab0 AS cor0
----
-29
-40
25

query I rowsort
SELECT ALL col0 * 91 * tab1.col0 FROM tab1
----
372736
582400
819

query I rowsort
SELECT DISTINCT - 30 FROM tab1, tab0, tab2 AS cor0
----
-30

query I rowsort
SELECT + col1 * col0 + + col1 * tab0.col2 AS col2 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT 44 * cor0.col0 AS col1 FROM tab2 cor0
----
308
3432
3476

query I rowsort
SELECT ALL + cor0.col2 * 82 FROM tab1, tab1 AS cor0
----
9 values hashing to fc7359fa9c53f4074f332f1ba2279a33

query I rowsort
SELECT col2 * + col0 * 89 FROM tab2 AS cor0
----
16821
180492
267178

query I rowsort
SELECT + col1 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL 15 + cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to fd3fee578828a482d5cd14e7a5c91f44

query I rowsort
SELECT + + 84 FROM tab2, tab0, tab0 cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT cor0.col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-1682
SELECT ( col1 ) DIV 92 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT ( col1 ) / 92 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1683
SELECT + - col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1683
SELECT + - col0 / col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT + + 47 * col1 DIV - col0 FROM tab2 AS cor0
----
-10
-208
-35

skipif mysql # not compatible
query I rowsort label-1684
SELECT + + 47 * col1 / - col0 FROM tab2 AS cor0
----
-10
-208
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT ALL + col2 DIV - col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL + col2 / - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - 57 AS col2 FROM tab0 cor0
----
4902
5187
5529

query I rowsort
SELECT cor0.col0 + 44 FROM tab0 AS cor0
----
133
68
79

query I rowsort
SELECT DISTINCT col2 * - 15 AS col0 FROM tab0 AS cor0
----
-1230
-15
-495

query I rowsort
SELECT - col2 + - 55 AS col2 FROM tab2
----
-81
-82
-93

query I rowsort
SELECT + cor0.col0 * 53 AS col2 FROM tab2 AS cor0
----
371
4134
4187

query I rowsort
SELECT DISTINCT - col2 + ( col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1693
SELECT DISTINCT - - col2 + 36 DIV 13 col1 FROM tab1 AS cor0
----
56
59
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT - - col2 + 36 / 13 col1 FROM tab1 AS cor0
----
56
59
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1694
SELECT DISTINCT + + cor0.col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + + cor0.col0 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * 20 + - 83 * col0 col0 FROM tab0 AS cor0
----
-2472
-3605
-9167

query I rowsort
SELECT - col0 + 8 * + col2 AS col2 FROM tab2 AS cor0
----
130
209
225

query I rowsort
SELECT - + col1 * + col1 * - cor0.col0 + - col1 * + col0 FROM tab2 AS cor0
----
21488
266916
6510

query I rowsort
SELECT - 54 * + cor0.col0 FROM tab1 AS cor0
----
-162
-3456
-4320

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

query I rowsort
SELECT ALL + + 35 AS col2 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT ALL cor0.col1 + 72 * + cor0.col2 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-103951
-48613
-52457

query I rowsort
SELECT ALL 15 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
111
69
72

query I rowsort
SELECT + + col0 + - col0 * col0 * 16 AS col2 FROM tab2 AS cor0
----
-777
-97266
-99777

query I rowsort
SELECT + - 88 + col1 * - col1 * cor0.col1 FROM tab1 AS cor0
----
-1088
-17664
-2285

query I rowsort
SELECT ALL + col1 * + col0 + col2 * 4 FROM tab2 AS cor0
----
1495
325
4706

query I rowsort
SELECT DISTINCT - 38 + - col1 - + cor0.col0 AS col0 FROM tab2 AS cor0
----
-134
-175
-76

query I rowsort
SELECT - - ( + cor0.col1 ) + col2 + - 39 FROM tab2 AS cor0
----
16
19
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( + col2 ) col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + col1 + col2 + 82 * col1 col0 FROM tab1 AS cor0
----
1447
2410
3590

query I rowsort
SELECT ALL + - ( col1 ) * + col2 + 81 FROM tab2 AS cor0
----
-1453
-565
-756

query I rowsort
SELECT DISTINCT + 32 * - col2 FROM tab1 cor0
----
-1728
-1824
-3072

query I rowsort
SELECT DISTINCT + - 48 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
-1119
-1679
-4190

query I rowsort
SELECT col2 * col1 - - col0 * - ( + 18 ) FROM tab1
----
-192
-582
1350

query I rowsort
SELECT ALL + 50 FROM tab0, tab1 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to b834e2084022ca341153dd05ef833c6b

query I rowsort
SELECT ( + 10 ) * col0 FROM tab1 AS cor0
----
30
640
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1716
SELECT 14 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1716
SELECT 14 / - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1717
SELECT DISTINCT + ( col1 ) * cor0.col2 + - 81 DIV + 10 FROM tab1 cor0
----
1240
1396
562

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT + ( col1 ) * cor0.col2 + - 81 / + 10 FROM tab1 cor0
----
1240
1396
562

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - ( - col1 ) ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col2 + - col0 * - 71 AS col0 FROM tab0
----
1737
2486
6401

query I rowsort
SELECT ALL col0 * 2 * + col0 AS col2 FROM tab1
----
12800
18
8192

query I rowsort
SELECT + 94 FROM tab1, tab0 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1722
SELECT DISTINCT - + CAST( + ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT - + CAST ( + ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - cor0.col1 - - col1 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + ( 10 ) + col1 AS col0 FROM tab2 AS cor0
----
27
41
69

query I rowsort
SELECT ALL - - col2 * 69 + + cor0.col1 - 84 FROM tab0 AS cor0
----
2279
5665
82

query I rowsort
SELECT ALL + ( ( col2 ) ) + + 50 FROM tab0 AS cor0
----
132
51
83

query I rowsort
SELECT - + cor0.col0 * ( 89 ) AS col2 FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT DISTINCT - 73 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-73

query I rowsort
SELECT ALL - 79 AS col1 FROM tab2 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL + - col0 + + col0 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col2 * col1 + - col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT 42 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - col1 + - col1 * - col1 FROM tab1 cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col1 col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - - col1 + col1 * + 5 AS col2 FROM tab2 cor0
----
102
186
354

query I rowsort
SELECT ALL - + cor0.col1 + col0 * - 56 FROM tab1 AS cor0
----
-194
-3594
-4493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1739
SELECT ALL col0 * CAST( - 30 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
-183
-2314
-2332

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL col0 * CAST ( - 30 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
-183
-2314
-2332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 50 col0 FROM tab0 AS cor0
----
-1200
-1750
-4450

query I rowsort
SELECT col2 * + 15 + col1 FROM tab2 AS cor0
----
436
449
587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
86

query I rowsort
SELECT DISTINCT - + col1 + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1744
SELECT col2 * - cor0.col0 * + ( col2 + + CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-1262554
-3430
-94248

skipif mysql # not compatible
query I rowsort label-1744
SELECT col2 * - cor0.col0 * + ( col2 + + CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-1262554
-3430
-94248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab1, tab2 AS cor0, tab0 cor1, tab2, tab2 AS cor2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col1 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - col1 + + 80 AS col2 FROM tab2
----
21
49
63

query I rowsort
SELECT - 2 * - col1 AS col2 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 40 * col0 AS col0 FROM tab0 AS cor0
----
1400
3560
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT 45 DIV col0 AS col2 FROM tab1
----
0
0
15

skipif mysql # not compatible
query I rowsort label-1751
SELECT 45 / col0 AS col2 FROM tab1
----
0
0
15

query I rowsort
SELECT col2 + 16 * 24 FROM tab0 AS cor0
----
385
417
466

query I rowsort
SELECT ALL ( - col2 + - tab0.col2 ) FROM tab0
----
-164
-2
-66

query I rowsort
SELECT ALL - ( 18 ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1755
SELECT ALL - col2 DIV - col2 + + tab1.col0 * 7 FROM tab1
----
22
449
561

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL - col2 / - col2 + + tab1.col0 * 7 FROM tab1
----
22
449
561

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1756
SELECT ALL + CAST( 25 AS SIGNED ) * col1 FROM tab1 cor0
----
250
325
650

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL + CAST ( 25 AS INTEGER ) * col1 FROM tab1 cor0
----
250
325
650

query I rowsort
SELECT DISTINCT + 88 + - 38 + - col0 * - cor0.col2 FROM tab1 AS cor0
----
212
3698
7730

query I rowsort
SELECT DISTINCT - + col2 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - - 59 AS col1 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + col0 * col2 * + col1 - - col1 FROM tab1 AS cor0
----
36490
4238
99853

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + ( + col1 ) AS REAL ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT 46 * + col1 FROM tab1 AS cor0
----
1196
460
598

query I rowsort
SELECT - ( - 98 ) + - cor0.col2 FROM tab2 AS cor0
----
60
71
72

query I rowsort
SELECT DISTINCT + col2 * col2 - + col2 * - 7 FROM tab2 AS cor0
----
1710
858
918

query I rowsort
SELECT DISTINCT + col2 * + col0 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - - 8 * - col1 AS col2 FROM tab2 AS cor0
----
-136
-248
-472

query I rowsort
SELECT ALL + 33 + col1 AS col1 FROM tab2 AS cor0
----
50
64
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + col0 col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1771
SELECT ALL - col0 + + col2 DIV col0 + 19 * + col1 * + ( - col1 ) FROM tab1 AS cor0
----
-12829
-1964
-3290

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - col0 + + col2 / col0 + 19 * + col1 * + ( - col1 ) FROM tab1 AS cor0
----
-12829
-1964
-3290

query I rowsort
SELECT - 38 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT ALL + ( tab1.col0 * col1 ) FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col2 FROM tab1
----
65
65
65

query I rowsort
SELECT DISTINCT ( 67 + - col1 ) * - col2 * col2 FROM tab0
----
161376
20691
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1776
SELECT - col1 * + CAST( col1 AS SIGNED ) + col2 * 7 AS col0 FROM tab1 AS cor0
----
-298
299
503

skipif mysql # not compatible
query I rowsort label-1776
SELECT - col1 * + CAST ( col1 AS INTEGER ) + col2 * 7 AS col0 FROM tab1 AS cor0
----
-298
299
503

query I rowsort
SELECT ALL + col0 * 61 AS col0 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT + col2 + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - - col1 * col0 * + cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT - + col1 + col0 * col1 FROM tab2 cor0
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1781
SELECT + + col1 + CAST( - 7 * col1 AS SIGNED ) FROM tab1 AS cor0
----
-156
-60
-78

skipif mysql # not compatible
query I rowsort label-1781
SELECT + + col1 + CAST ( - 7 * col1 AS INTEGER ) FROM tab1 AS cor0
----
-156
-60
-78

query I rowsort
SELECT DISTINCT + tab2.col2 * + 9 - 5 FROM tab2, tab0 cor0
----
229
238
337

query I rowsort
SELECT - col0 + ( col1 ) * - cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1784
SELECT DISTINCT col1 DIV - 2 FROM tab0 cor0
----
-43
-45
-48

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT col1 / - 2 FROM tab0 cor0
----
-43
-45
-48

query I rowsort
SELECT ALL col1 * 12 AS col0 FROM tab1
----
120
156
312

query I rowsort
SELECT - - col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - - col2 + + ( + col2 ) FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1788
SELECT + + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT + + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + 5 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b176c65c1e64e0787e1861a64085e08f

query I rowsort
SELECT DISTINCT - col1 * + col0 + - 94 FROM tab1
----
-1134
-172
-734

query I rowsort
SELECT ALL - - ( col2 ) * col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - col1 + - 92 AS col1 FROM tab0 AS cor0
----
-178
-183
-189

query I rowsort
SELECT + 20 * col0 * - col2 AS col2 FROM tab2 AS cor0
----
-3780
-40560
-60040

query I rowsort
SELECT ALL + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col2 * 80 * + col0 + col2 * tab0.col1 FROM tab0
----
-2703
-576378
-60522

query I rowsort
SELECT ALL col2 * + col2 + 32 FROM tab2
----
1476
708
761

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1797
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 cor0
----
NULL

query I rowsort
SELECT - 58 - cor0.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2be57073a12c9f445ccd74ae227712be

query I rowsort
SELECT DISTINCT col1 + - 96 * + col0 FROM tab1
----
-262
-6134
-7667

query I rowsort
SELECT ALL - col0 + col2 * + col2 FROM tab2
----
1365
598
722

query I rowsort
SELECT + tab0.col0 + - 65 FROM tab0
----
-30
-41
24

query I rowsort
SELECT ALL - 44 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT ALL + col2 + + col1 * + cor0.col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - + 13 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-202
-2041
-3015

query I rowsort
SELECT + 27 + - col0 + col1 FROM tab1 AS cor0
----
-27
-40
50

query I rowsort
SELECT + - col1 * + 82 FROM tab0 AS cor0
----
-7052
-7462
-7954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 * col2 col1 FROM tab0 AS cor0
----
-2343
-5822
-71

query I rowsort
SELECT - + col0 * + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - 15 * col1 FROM tab0 AS cor0
----
-1290
-1365
-1455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col0 col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ( col1 ) + 21 AS col1 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT DISTINCT + 30 + col0 FROM tab0 AS cor0
----
119
54
65

query I rowsort
SELECT - - col0 + + cor0.col2 - - col1 * - col1 FROM tab2 AS cor0
----
-172
-3377
-927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + col0 col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - + col0 * col2 + 14 AS col0 FROM tab1 AS cor0
----
-148
-3634
-7666

query I rowsort
SELECT DISTINCT - cor0.col2 + 90 FROM tab2 AS cor0
----
52
63
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-1817
SELECT col2 DIV + col1 + 7 * - col2 FROM tab2 AS cor0
----
-182
-189
-264

skipif mysql # not compatible
query I rowsort label-1817
SELECT col2 / + col1 + 7 * - col2 FROM tab2 AS cor0
----
-182
-189
-264

query I rowsort
SELECT DISTINCT col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col2 + col1 + col1 AS col0 FROM tab1
----
106
122
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1820
SELECT ALL col0 * - CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL col0 * - CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + + col0 + - cor0.col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT - col0 + + col2 * - 97 AS col2 FROM tab0 AS cor0
----
-132
-3225
-8043

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1823
SELECT CAST( 47 AS SIGNED ) FROM tab0, tab1 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif mysql # not compatible
query I rowsort label-1823
SELECT CAST ( 47 AS INTEGER ) FROM tab0, tab1 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + + col0 + ( - col0 ) * col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT + ( cor1.col0 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - - cor0.col0 * 2 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + - col1 + + ( - 97 ) * col2 FROM tab0 AS cor0
----
-194
-3287
-8045

onlyif mysql # use DIV operator for integer division
query I rowsort label-1828
SELECT DISTINCT + - 87 DIV col1 + col0 FROM tab1 AS cor0
----
0
56
74

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT + - 87 / col1 + col0 FROM tab1 AS cor0
----
0
56
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1829
SELECT ALL + ( col0 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL + ( col0 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 2 + col2 FROM tab0 AS cor0
----
-1
31
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1831
SELECT ALL + col2 * col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL + col2 * col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 6 * - col1 AS col1 FROM tab1 cor0
----
-156
-60
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1833
SELECT DISTINCT - cor0.col0 * col0 + col1 * col2 DIV col1 FROM tab1 AS cor0
----
-4039
-6304
45

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT - cor0.col0 * col0 + col1 * col2 / col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT - col2 * col0 - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - 21 + - col1 * col1 FROM tab1 AS cor0
----
-121
-190
-697

query I rowsort
SELECT + 15 - - 29 FROM tab1
----
44
44
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT + ( 38 ) DIV cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1837
SELECT + ( 38 ) / cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ( col0 ) * col1 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - + 26 - + ( - col0 + + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
152
22
44

query I rowsort
SELECT DISTINCT - ( 51 ) AS col2 FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab0 AS cor0
----
88

query I rowsort
SELECT - 8 + + col0 * col0 + + col2 FROM tab1 AS cor0
----
4145
55
6488

query I rowsort
SELECT DISTINCT - cor0.col1 * + 15 AS col2 FROM tab1 AS cor0
----
-150
-195
-390

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1844
SELECT - 68 * - col1 + + col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT - 68 * - col1 + + col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 24 * + tab0.col1 + + col2 FROM tab0
----
2097
2266
2329

query I rowsort
SELECT DISTINCT + 25 + - col0 AS col0 FROM tab2
----
-53
-54
18

query I rowsort
SELECT DISTINCT - 73 + + ( col1 ) FROM tab0
----
13
18
24

query I rowsort
SELECT ALL - 66 * 89 + col0 FROM tab1
----
-5794
-5810
-5871

query I rowsort
SELECT 65 + + col1 * - col1 + + col1 AS col1 FROM tab1
----
-25
-585
-91

query I rowsort
SELECT + ( 78 ) + col2 AS col1 FROM tab1 AS cor0
----
132
135
174

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1851
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 / + col0 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 / + col0 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 72 AS col2 FROM tab2 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 16 + - 19 FROM tab2 cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT - col1 * + ( cor0.col1 ) + 22 FROM tab1 AS cor0
----
-147
-654
-78

query I rowsort
SELECT - 14 * + tab2.col2 AS col1 FROM tab2
----
-364
-378
-532

query I rowsort
SELECT ALL - ( - tab1.col0 + col2 ) * + col2 AS col1 FROM tab1
----
-1536
-2754
399

query I rowsort
SELECT - 63 * col1 FROM tab2
----
-1071
-1953
-3717

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 + + cor0.col2 * 67 FROM tab2 AS cor0
----
1998
3770
5548

query I rowsort
SELECT + + 94 + col0 FROM tab1 AS cor0
----
158
174
97

query I rowsort
SELECT + + 4 * - col0 + + ( col1 ) FROM tab0 AS cor0
----
-10
-265
-43

query I rowsort
SELECT - - 40 + - col0 FROM tab1 cor0
----
-24
-40
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT DISTINCT 0 * col0 DIV col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT 0 * col0 / col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 col1 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1865
SELECT + col2 + col2 DIV ( + 52 ) FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-1865
SELECT + col2 + col2 / ( + 52 ) FROM tab0 AS cor0
----
1
33
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT + ( col0 ) * - col1 + + col0 DIV + col1 FROM tab0 cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-1866
SELECT + ( col0 ) * - col1 + + col0 / + col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + 13 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT + col2 * 15 * col1 AS col0 FROM tab0 cor0
----
111930
1455
42570

query I rowsort
SELECT DISTINCT - col1 + 66 FROM tab2 AS cor0
----
35
49
7

query I rowsort
SELECT - col2 * - col2 + - col1 AS col1 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT + + col1 * 18 AS col1 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT DISTINCT col2 * - 79 * + 31 FROM tab0
----
-200818
-2449
-80817

onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT ALL - col1 DIV CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - col1 / CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1874
SELECT + - col0 DIV 33 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-1874
SELECT + - col0 / 33 FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT DISTINCT tab0.col1 * + col0 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT cor0.col1 + 18 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
116
1649
713

query I rowsort
SELECT - col1 * ( col2 * + col2 ) + + col2 * + 98 FROM tab1 AS cor0
----
-110400
-26904
-70524

query I rowsort
SELECT - col0 * + col2 - + tab0.col1 * - tab0.col2 FROM tab0
----
164
2046
62

query I rowsort
SELECT col1 * 98 * - col2 AS col1 FROM tab0 AS cor0
----
-278124
-731276
-9506

query I rowsort
SELECT ( col0 ) + col2 * ( col1 ) FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL ( col0 ) * col1 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT ( col0 ) * - tab0.col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + 28 * + col1 AS col2 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab0, tab0 cor0
----
-7

query I rowsort
SELECT ALL + col2 * + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL + + 5 AS col1 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT ALL - + 16 + col1 FROM tab0 AS cor0
----
70
75
81

query I rowsort
SELECT DISTINCT - + ( + 11 ) * col1 FROM tab0 AS cor0
----
-1001
-1067
-946

query I rowsort
SELECT + 54 + col1 * col2 FROM tab2
----
1588
700
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-1890
SELECT - col2 * col0 - - col1 DIV col2 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-1890
SELECT - col2 * col0 - - col1 / col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col1 - - tab1.col2 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 * 9 + 43 col2 FROM tab0 AS cor0
----
-60473
-9758
34

query I rowsort
SELECT col1 - cor0.col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - - 39 - - col2 * col2 AS col1 FROM tab2 AS cor0
----
1483
715
768

query I rowsort
SELECT ALL + col0 * col1 * - col0 + - 4 AS col2 FROM tab2 AS cor0
----
-106101
-1523
-358960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + 72 col0 FROM tab2, tab2 AS cor0
----
150
151
79

query I rowsort
SELECT + 38 * - cor0.col1 - 66 * + col0 FROM tab2 AS cor0
----
-1640
-5860
-7390

onlyif mysql # use DIV operator for integer division
query I rowsort label-1898
SELECT ALL + - col2 DIV + ( 54 ) FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + - col2 / + ( 54 ) FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col0 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - cor0.col1 col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - col0 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * + 63 AS col0 FROM tab0 AS cor0
----
2079
5166
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT - - cor0.col2 DIV col0 + col2 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2098
3396
8181

skipif mysql # not compatible
query I rowsort label-1903
SELECT - - cor0.col2 / col0 + col2 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2098
3396
8181

query I rowsort
SELECT + - col0 * - 78 * - cor0.col0 FROM tab2 AS cor0
----
-3822
-474552
-486798

query I rowsort
SELECT DISTINCT + col2 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - + 49 AS col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT tab2.col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT ALL col1 DIV col1 col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL col1 / col1 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 + 57 AS col1 FROM tab1 AS cor0
----
-23
-7
54

query I rowsort
SELECT DISTINCT + - col0 + col1 + 14 AS col2 FROM tab2 AS cor0
----
-48
-5
38

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 12 col1 FROM tab1 AS cor0
----
-52
-68
9

query I rowsort
SELECT ALL - col2 * 72 - col0 FROM tab2 AS cor0
----
-1950
-1951
-2815

query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + col1 * - ( + cor0.col1 ) + col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL - - col1 + 45 * + col1 AS col1 FROM tab0 cor0
----
3956
4186
4462

query I rowsort
SELECT + col1 * ( + 64 ) - cor0.col1 * col2 FROM tab2 AS cor0
----
1147
2242
442

query I rowsort
SELECT + - col1 * + 57 + col0 FROM tab1 AS cor0
----
-1479
-506
-661

query I rowsort
SELECT - col1 - 19 AS col1 FROM tab2
----
-36
-50
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1921
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - col2 + 87 * - col1 - col0 AS col2 FROM tab0
----
-7539
-8088
-8475

query I rowsort
SELECT ALL col1 + - ( - tab2.col0 ) AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT + 23 + - col0 AS col1 FROM tab0 AS cor0
----
-1
-12
-66

query I rowsort
SELECT + - cor0.col0 + 34 AS col0 FROM tab2 AS cor0
----
-44
-45
27

query I rowsort
SELECT DISTINCT - ( 3 ) * col1 FROM tab0 cor0
----
-258
-273
-291

query I rowsort
SELECT DISTINCT 8 + col0 AS col0 FROM tab0 AS cor0
----
32
43
97

query I rowsort
SELECT + ( + col2 ) + col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 + ( + tab0.col2 ) col0 FROM tab0, tab2 AS cor0
----
-16
16
65

query I rowsort
SELECT col1 * 50 * col0 AS col2 FROM tab2
----
10850
230100
67150

query I rowsort
SELECT DISTINCT + col0 + 66 FROM tab2
----
144
145
73

query I rowsort
SELECT DISTINCT tab0.col0 + - ( + 50 ) * col1 FROM tab0
----
-4276
-4461
-4815

query I rowsort
SELECT + 10 * col2 AS col1 FROM tab1 cor0
----
540
570
960

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 - + 29 * - col1 AS col0 FROM tab1 cor0
----
290
377
754

query I rowsort
SELECT - cor0.col2 + - col1 * 84 * + 99 AS col1 FROM tab1 cor0
----
-108204
-216270
-83217

onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT DISTINCT - - 59 - col0 DIV col1 col0 FROM tab2 AS cor0
----
55
58
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT - - 59 - col0 / col1 col0 FROM tab2 AS cor0
----
55
58
59

query I rowsort
SELECT DISTINCT - + col0 + - col1 AS col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT - cor0.col2 * col0 * - ( col1 ) AS col0 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT ALL cor0.col0 + col2 * 25 FROM tab2 AS cor0
----
1029
682
728

query I rowsort
SELECT + tab0.col1 + ( col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT ALL 74 * col0 AS col2 FROM tab0
----
1776
2590
6586

onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT DISTINCT + 45 DIV - ( + col2 * col0 ) FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT + 45 / - ( + col2 * col0 ) FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col0 col2 FROM tab0
----
2
62
62

query I rowsort
SELECT + cor0.col0 * + 13 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c737fae611fbaaae9b8443a8e6bdd21a

query I rowsort
SELECT ALL - 6 + + col2 AS col2 FROM tab1
----
48
51
90

query I rowsort
SELECT DISTINCT col2 * col1 - 24 * + col1 FROM tab1
----
330
780
936

query I rowsort
SELECT - - col2 + col2 * - col0 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 - - col1 * col0 AS col2 FROM tab0 cor0
----
14823
3153
3396

onlyif mysql # use DIV operator for integer division
query I rowsort label-1950
SELECT ALL + 77 * + col1 + - ( cor0.col1 ) + cor0.col0 * ( 50 ) DIV col0 FROM tab2 AS cor0
----
1342
2406
4534

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL + 77 * + col1 + - ( cor0.col1 ) + cor0.col0 * ( 50 ) / col0 FROM tab2 AS cor0
----
1342
2406
4534

query I rowsort
SELECT DISTINCT - - 10 + col2 AS col0 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT ALL 4 * + col1 AS col1 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT DISTINCT + - 58 FROM tab1 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL col0 * + col2 + col2 AS col1 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT col2 DIV col2 + - col0 + col2 AS col2 FROM tab0
----
-33
-6
10

skipif mysql # not compatible
query I rowsort label-1956
SELECT col2 / col2 + - col0 + col2 AS col2 FROM tab0
----
-33
-6
10

query I rowsort
SELECT DISTINCT tab2.col2 + - col2 FROM tab2
----
0

query I rowsort
SELECT ALL - col1 * - col1 + + col1 + - col1 AS col2 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1959
SELECT ALL + cor0.col1 DIV col1 + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL + cor0.col1 / col1 + col2 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 + - col2 col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL col1 + col2 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - - col0 * col1 + - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - - col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col1 * col1 + - col0 * col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
10634
26404
657803

onlyif mysql # use DIV operator for integer division
query I rowsort label-1965
SELECT DISTINCT col0 + col0 DIV col1 + - col1 DIV - col0 AS col1 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT col0 + col0 / col1 + - col1 / - col0 AS col1 FROM tab0
----
27
37
90

query I rowsort
SELECT - + col2 + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT col1 + col0 * + col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * - col0 + - col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT - 11 + + col2 FROM tab2 cor0
----
15
16
27

query I rowsort
SELECT ALL + col1 - - col1 * - col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - col1 * col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) + + col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * col0 + col2 FROM tab0 AS cor0
----
1261
633
8092

query I rowsort
SELECT - col0 * - cor0.col1 - col0 AS col0 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT ALL ( col2 * col0 + + col0 ) FROM tab0
----
70
7387
816

query I rowsort
SELECT - col2 - - tab2.col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + col1 IN ( col1 )
----
1
33
82

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 < NULL
----

query I rowsort
SELECT - col2 + col1 * col1 * + tab2.col2 FROM tab2
----
10944
25920
90480

onlyif mysql # use DIV operator for integer division
query I rowsort label-1982
SELECT DISTINCT col2 + col1 DIV col0 AS col2 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT col2 + col1 / col0 AS col2 FROM tab0
----
3
36
83

query I rowsort
SELECT ALL - tab1.col1 + + col0 AS col1 FROM tab1
----
-23
54
67

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL tab2.col1 * + col1 + col0 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT tab0.col0 - col1 FROM tab0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col1 * col0 col0 FROM tab1
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT col1 DIV col1 + col0 col1 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1990
SELECT col1 / col1 + col0 col1 FROM tab1
----
4
65
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) > NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE ( col2 ) <= col0
----
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1993
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT 18 * + cor0.col1 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT ALL col2 + + col0 AS col1 FROM tab2 WHERE - col0 IN ( - col1 * - col0 + + col0 )
----

query I rowsort
SELECT + tab1.col0 + - tab1.col0 - + tab1.col2 * - col0 AS col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT ALL col1 DIV col0 + - tab1.col1 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL col1 / col0 + - tab1.col1 FROM tab1
----
-10
-13
-18

query I rowsort
SELECT ALL - tab0.col1 + + tab0.col1 * - col0 * - col0 AS col0 FROM tab0
----
118728
49450
720720

query I rowsort
SELECT ALL - col2 * tab2.col2 + + col2 AS col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT col2 - - col1 * - col2 FROM tab0
----
-2805
-7380
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * col0 > col1
----

query I rowsort
SELECT col1 * tab2.col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL > ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2006
SELECT ALL - col2 DIV + col2 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL - col2 / + col2 AS col1 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) >= NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col1 FROM tab2 WHERE NOT ( - col1 ) NOT IN ( tab2.col0 )
----

query I rowsort
SELECT + tab2.col0 + + col0 * col1 FROM tab2
----
1422
224
4680

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT ALL - 73 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - 73 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - cor0.col2 + + cor0.col0 * + 5 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cbcfcb248ac99b2a9a7a053af4575b3b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2014
SELECT 17 DIV col0 + ( - col0 + col2 ) AS col2 FROM tab2 AS cor0
----
-41
-52
22

skipif mysql # not compatible
query I rowsort label-2014
SELECT 17 / col0 + ( - col0 + col2 ) AS col2 FROM tab2 AS cor0
----
-41
-52
22

query I rowsort
SELECT + - cor0.col0 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL col1 - + 48 FROM tab0
----
38
43
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-2017
SELECT DISTINCT tab1.col2 DIV + 58 FROM tab1, tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT tab1.col2 / + 58 FROM tab1, tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL - col2 + tab0.col0 AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT - tab2.col2 * col1 AS col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2020
SELECT DISTINCT col2 DIV 33 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT col2 / 33 FROM tab2
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2021
SELECT - ( + 24 ) * col2 + + CAST( col0 * col0 AS SIGNED ) + col2 * col1 AS col0 FROM tab0 AS cor0
----
1298
13415
2622

skipif mysql # not compatible
query I rowsort label-2021
SELECT - ( + 24 ) * col2 + + CAST ( col0 * col0 AS INTEGER ) + col2 * col1 AS col0 FROM tab0 AS cor0
----
1298
13415
2622

query I rowsort
SELECT + col0 + col2 * cor0.col0 * - col0 - col0 * cor0.col1 FROM tab0 AS cor0
----
-21048
-4585
-657532

onlyif mysql # use DIV operator for integer division
query I rowsort label-2023
SELECT col0 DIV + col0 + col1 DIV col2 + 45 FROM tab1 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2023
SELECT col0 / + col0 + col1 / col2 + 45 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-2024
SELECT + col1 DIV + 11 + + col2 col0 FROM tab2 AS cor0
----
29
31
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2024
SELECT + col1 / + 11 + + col2 col0 FROM tab2 AS cor0
----
29
31
39

query I rowsort
SELECT + - ( - col1 ) + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + - ( - ( col1 ) ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col2 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2028
SELECT ALL + + ( - 8 ) DIV - cor0.col0 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
164
3648
7680

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL + + ( - 8 ) / - cor0.col0 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
164
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2029
SELECT - col1 DIV - 74 + - col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2029
SELECT - col1 / - 74 + - col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT ALL - cor0.col1 * 81 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT ALL + - cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 * col1 * cor0.col1 + ( - 60 ) * cor0.col1 * + 74 - col2 FROM tab0 AS cor0
----
-137805
-421272
274920

query I rowsort
SELECT DISTINCT 0 + - 55 AS col2 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT 37 * - col0 + + col0 AS col2 FROM tab0
----
-1260
-3204
-864

query I rowsort
SELECT + col1 + 59 * + col2 + ( - col0 ) * col0 FROM tab2
----
-3982
-4491
1575

query I rowsort
SELECT - ( + 95 ) FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL - - 37 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
54
68
96

query I rowsort
SELECT DISTINCT 71 + + col2 FROM tab0 AS cor0
----
104
153
72

query I rowsort
SELECT ALL ( + 16 ) + + cor0.col1 * + 81 FROM tab0 AS cor0
----
6982
7387
7873

onlyif mysql # use DIV operator for integer division
query I rowsort label-2040
SELECT ALL - 27 + col1 DIV - 98 FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL - 27 + col1 / - 98 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + - col1 + - col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + - 87 + - col1 FROM tab2 AS cor0
----
-104
-118
-146

onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT + col0 + col1 DIV - 11 AS col0 FROM tab0 AS cor0
----
17
27
81

skipif mysql # not compatible
query I rowsort label-2043
SELECT + col0 + col1 / - 11 AS col0 FROM tab0 AS cor0
----
17
27
81

query I rowsort
SELECT - ( - col2 ) + + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL - - col2 * col1 + cor0.col2 * col2 FROM tab0 cor0
----
14186
3927
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2046
SELECT col2 * col1 DIV 15 AS col2 FROM tab1 AS cor0
----
38
83
93

skipif mysql # not compatible
query I rowsort label-2046
SELECT col2 * col1 / 15 AS col2 FROM tab1 AS cor0
----
38
83
93

query I rowsort
SELECT ALL - col0 * cor0.col2 + ( + col0 ) FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - 80 + + col2 - - col2 AS col2 FROM tab0
----
-14
-78
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2049
SELECT + CAST( NULL AS SIGNED ) * + col1 / - tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT + CAST ( NULL AS INTEGER ) * + col1 / - tab0.col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab1.col2 - + col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT - col2 * + col2 + ( col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT - col2 + col1 * 10 AS col2 FROM tab0 AS cor0
----
827
828
969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2053
SELECT ALL - col0 + CAST( NULL AS SIGNED ) * + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col1 + - 67 FROM tab1 AS cor0
----
-77
-80
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( col0 ) col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - + col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - - col0 - - col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + - col0 * 46 AS col1 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT DISTINCT + col0 * col1 + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - cor0.col0 * - col2 * 53 FROM tab0 AS cor0
----
1855
386794
41976

query I rowsort
SELECT 33 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT - col2 * tab1.col0 AS col0 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT DISTINCT - 92 DIV col1 + tab2.col1 AS col2 FROM tab2
----
12
29
58

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT - 92 / col1 + tab2.col1 AS col2 FROM tab2
----
12
29
58

query I rowsort
SELECT col1 - col1 * ( + col1 ) AS col0 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT col1 * - 87 AS col2 FROM tab0 AS cor0
----
-7482
-7917
-8439

query I rowsort
SELECT DISTINCT + - col2 + 14 * col1 AS col1 FROM tab2 AS cor0
----
200
407
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT ALL + col0 * - col1 + col1 DIV + col1 FROM tab2 AS cor0
----
-1342
-216
-4601

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + col0 * - col1 + col1 / + col1 FROM tab2 AS cor0
----
-1342
-216
-4601

onlyif mysql # use DIV operator for integer division
query I rowsort label-2068
SELECT DISTINCT 85 DIV + col0 + col2 + - col0 FROM tab2 AS cor0
----
-40
-51
32

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT 85 / + col0 + col2 + - col0 FROM tab2 AS cor0
----
-40
-51
32

query I rowsort
SELECT ALL col0 + ( - cor0.col0 ) + cor0.col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 58 FROM tab0, tab0 AS cor0, tab2 cor1
----
58

query I rowsort
SELECT 66 + tab1.col1 FROM tab1
----
76
79
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT ALL col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL col2 / col2 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2073
SELECT DISTINCT - tab1.col2 DIV 32 AS col1 FROM tab1, tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT - tab1.col2 / 32 AS col1 FROM tab1, tab2 AS cor0
----
-1
-3

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-2075
SELECT ALL col0 * cor0.col2 DIV + col0 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL col0 * cor0.col2 / + col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + col1 + 23 * + col0 FROM tab2 AS cor0
----
1834
1853
192

query I rowsort
SELECT ALL - 32 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

query I rowsort
SELECT + + cor0.col0 + - 59 AS col1 FROM tab2 AS cor0
----
-52
19
20

query I rowsort
SELECT ALL - col2 * 87 AS col0 FROM tab0 cor0
----
-2871
-7134
-87

query I rowsort
SELECT col1 * col1 - col0 * cor0.col0 FROM tab0 AS cor0
----
360
6820
8184

query I rowsort
SELECT + col2 * col1 * - col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ( 62 ) FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT - + col1 * col0 + - col1 + 50 AS col0 FROM tab0 AS cor0
----
-2100
-3442
-8140

query I rowsort
SELECT DISTINCT + - col2 + + cor0.col1 + col0 * cor0.col2 * 16 AS col2 FROM tab0 AS cor0
----
116777
12725
656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( + col2 ) col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + - col2 + + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + 83 * col2 * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
235468
619255
7954

query I rowsort
SELECT ALL - ( - 95 ) + col2 FROM tab2 AS cor0
----
121
122
133

query I rowsort
SELECT DISTINCT - 44 * - col1 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT DISTINCT 32 + - 76 FROM tab0 AS cor0
----
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT - 17 + + col0 DIV - col2 FROM tab0 AS cor0
----
-17
-18
-52

skipif mysql # not compatible
query I rowsort label-2091
SELECT - 17 + + col0 / - col2 FROM tab0 AS cor0
----
-17
-18
-52

query I rowsort
SELECT ALL col0 * + col1 * col2 + col0 * col1 FROM tab2 AS cor0
----
124254
52377
6076

query I rowsort
SELECT ALL col2 + 21 * + col0 FROM tab1 AS cor0
----
117
1401
1776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2094
SELECT CAST( NULL AS SIGNED ) + 57 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2094
SELECT CAST ( NULL AS INTEGER ) + 57 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL 96 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ALL + 69 AS col2 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab1 AS cor0
----
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2098
SELECT CAST( + tab0.col2 AS SIGNED ) * + tab0.col2 + + 3 FROM tab0
----
1092
4
6727

skipif mysql # not compatible
query I rowsort label-2098
SELECT CAST ( + tab0.col2 AS INTEGER ) * + tab0.col2 + + 3 FROM tab0
----
1092
4
6727

query I rowsort
SELECT + 84 * + col1 AS col1 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT - col1 * 23 AS col2 FROM tab2 cor0
----
-1357
-391
-713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col0 FROM tab0, tab2 AS cor0
----
15

query I rowsort
SELECT DISTINCT + cor0.col0 * ( - cor0.col2 ) + + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-2103
SELECT ALL + col0 + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL + col0 + col1 / col0 AS col2 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT ALL ( - tab2.col0 ) FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - tab1.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to dfa045d32be2560cc04bdf05f139dc3c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2106
SELECT ALL 45 DIV col0 AS col1 FROM tab2
----
0
0
6

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL 45 / col0 AS col1 FROM tab2
----
0
0
6

query I rowsort
SELECT 7 + col0 AS col2 FROM tab1 AS cor0
----
10
71
87

query I rowsort
SELECT - col0 + - cor0.col0 * - col1 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-2109
SELECT - + col0 DIV + col0 - + col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-2109
SELECT - + col0 / + col0 - + col2 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT + 32 + + 56 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT ALL ( 98 ) AS col1 FROM tab1
----
98
98
98

query I rowsort
SELECT - col0 * - 82 AS col1 FROM tab1
----
246
5248
6560

query I rowsort
SELECT ( col2 ) * col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + cor0.col2 + - ( + cor0.col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2115
SELECT + + ( + 75 ) + col2 DIV + col0 FROM tab1 AS cor0
----
75
76
93

skipif mysql # not compatible
query I rowsort label-2115
SELECT + + ( + 75 ) + col2 / + col0 FROM tab1 AS cor0
----
75
76
93

query I rowsort
SELECT + 82 FROM tab2, tab2 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT col2 * - 34 AS col0 FROM tab2
----
-1292
-884
-918

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 + - ( col2 ) * cor0.col0 FROM tab0 AS cor0
----
-7289
-739
61

query I rowsort
SELECT - - col1 - - 91 FROM tab0 AS cor0
----
177
182
188

query I rowsort
SELECT DISTINCT cor0.col0 + + ( col0 ) * col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + col0 * - col2 - 61 FROM tab0 AS cor0
----
-7359
-853
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2123
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) / + col1 + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) / + col1 + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2124
SELECT ALL + cor0.col1 * CAST( + col0 AS SIGNED ) - + col0 FROM tab2 cor0
----
1264
210
4524

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL + cor0.col1 * CAST ( + col0 AS INTEGER ) - + col0 FROM tab2 cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + + col0 * 22 FROM tab0 AS cor0
----
1958
528
770

query I rowsort
SELECT ALL + cor0.col1 + col2 + - 44 * - cor0.col0 FROM tab0 AS cor0
----
1175
1638
4089

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2128
SELECT - col2 - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT - col2 - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - - col2 * - 1 + + col1 - + col2 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT ALL - col1 + 74 AS col1 FROM tab2 AS cor0
----
15
43
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2132
SELECT DISTINCT - cor0.col1 * CAST( NULL AS SIGNED ) + - col1 * col0 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT - cor0.col1 * CAST ( NULL AS INTEGER ) + - col1 * col0 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col1 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL 20 + col1 AS col2 FROM tab1 AS cor0
----
30
33
46

query I rowsort
SELECT DISTINCT + col1 + - 95 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1222
-2444
-940

query I rowsort
SELECT 28 + - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ce01b8d97a3e09bf37863235b0fe81f4

query I rowsort
SELECT ALL col1 + + 51 * col1 * - col1 FROM tab0
----
-377110
-422240
-479762

query I rowsort
SELECT ALL - col0 - + ( 10 ) * col1 FROM tab1
----
-164
-210
-263

onlyif mysql # use DIV operator for integer division
query I rowsort label-2139
SELECT ALL - 74 * - col1 + col1 DIV cor0.col1 col1 FROM tab2 AS cor0
----
1259
2295
4367

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL - 74 * - col1 + col1 / cor0.col1 col1 FROM tab2 AS cor0
----
1259
2295
4367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2141
SELECT ALL - col0 * - col0 + + col0 DIV col1 col1 FROM tab1 AS cor0
----
4102
6406
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - col0 * - col0 + + col0 / col1 col1 FROM tab1 AS cor0
----
4102
6406
9

query I rowsort
SELECT + 1 * col2 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 56 * - cor0.col0 FROM tab0 AS cor0
----
1344
1960
4984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col2 FROM tab1
----
81
81
81

query I rowsort
SELECT + + 44 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2146
SELECT ALL + CAST( NULL AS SIGNED ) + + 56 col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + CAST ( NULL AS INTEGER ) + + 56 col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 65 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 62fe7b8eb6ce8c547418f08ea8ada1fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 col0 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col1 col0 FROM tab2 cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53

query I rowsort
SELECT + 54 FROM tab0, tab2 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT ALL + - cor1.col2 + + 78 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to abb2ca3dd1d9185339a49e61fc4456b6

query I rowsort
SELECT + 56 + col1 AS col0 FROM tab0
----
142
147
153

query I rowsort
SELECT + 33 + col0 * + 66 FROM tab1
----
231
4257
5313

query I rowsort
SELECT - - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT + tab0.col0 DIV ( col1 ) + col0 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2156
SELECT + tab0.col0 / ( col1 ) + col0 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL 72 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT col0 * + ( 58 * - col1 ) FROM tab2 AS cor0
----
-12586
-266916
-77894

query I rowsort
SELECT ALL - col1 * - 46 + col0 * col1 AS col1 FROM tab0 AS cor0
----
12285
6020
7857

query I rowsort
SELECT ALL + 61 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT + ( - 39 ) * - col2 FROM tab2
----
1014
1053
1482

query I rowsort
SELECT ALL + col2 * col0 + col2 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT ( - col2 * + col2 ) + tab1.col2 AS col2 FROM tab1
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2164
SELECT DISTINCT 96 DIV + col1 + col1 + 57 * tab2.col2 FROM tab2
----
1542
1573
2188

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT 96 / + col1 + col1 + 57 * tab2.col2 FROM tab2
----
1542
1573
2188

query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2166
SELECT DISTINCT tab0.col0 DIV + tab0.col1 + - col2 * col2 * + 11 + col1 FROM tab0
----
-11893
-73873
86

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT tab0.col0 / + tab0.col1 + - col2 * col2 * + 11 + col1 FROM tab0
----
-11893
-73873
86

query I rowsort
SELECT DISTINCT + 10 + col1 * col0 AS col1 FROM tab0
----
2074
3405
8109

query I rowsort
SELECT ALL - col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-2169
SELECT ALL col1 DIV 71 - - col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL col1 / 71 - - col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col2 * - col0 * col1 + - col2 AS col1 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT + - cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2172
SELECT ALL CAST( col2 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL CAST ( col2 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col2 * + col0 + + col0 AS col2 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + ( + col1 ) * 79 AS col1 FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT ALL 41 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2176
SELECT - - col0 * col0 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
4032
6
6320

skipif mysql # not compatible
query I rowsort label-2176
SELECT - - col0 * col0 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL + - 93 * - cor0.col1 * + col1 FROM tab1 AS cor0
----
15717
62868
9300

query I rowsort
SELECT DISTINCT - - col0 * + col0 + + 27 AS col2 FROM tab2 AS cor0
----
6111
6268
76

query I rowsort
SELECT DISTINCT - - 16 + - col1 FROM tab0 AS cor0
----
-70
-75
-81

query I rowsort
SELECT DISTINCT - - ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col0 * 48 AS col1 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT + 85 * col1 AS col0 FROM tab2 AS cor0
----
1445
2635
5015

query I rowsort
SELECT + + col0 * - 46 + col1 FROM tab0 AS cor0
----
-1018
-1513
-4003

query I rowsort
SELECT - ( - tab2.col1 + - col0 ) AS col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT - col2 DIV - col1 + col2 * + col1 FROM tab1 AS cor0
----
1255
1406
575

skipif mysql # not compatible
query I rowsort label-2185
SELECT - col2 / - col1 + col2 * + col1 FROM tab1 AS cor0
----
1255
1406
575

query I rowsort
SELECT col2 + + 98 AS col2 FROM tab2 AS cor0
----
124
125
136

query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT tab0.col2 * + ( col2 ) AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + col2 * + 25 FROM tab1 AS cor0
----
-1350
-1425
-2400

query I rowsort
SELECT - + col1 * 19 FROM tab2 AS cor0
----
-1121
-323
-589

query I rowsort
SELECT col0 * 43 AS col0 FROM tab2 AS cor0
----
301
3354
3397

query I rowsort
SELECT DISTINCT + - col0 + - 34 AS col0 FROM tab1 AS cor0
----
-114
-37
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT + - col2 * ( 97 ) + - col1 DIV CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-194
-3203
-7955

skipif mysql # not compatible
query I rowsort label-2194
SELECT + - col2 * ( 97 ) + - col1 / CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-194
-3203
-7955

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col1 * ( col0 ) AS col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * + 81 col1 FROM tab2
----
2106
2187
3078

query I rowsort
SELECT - 58 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT DISTINCT - col2 + 73 - col2 AS col0 FROM tab0
----
-91
7
71

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab1, tab0 AS cor0
----
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT tab1.col2 DIV + ( + ( + col1 ) ) + ( + col0 ) DIV col2 AS col0 FROM tab1
----
2
6
7

skipif mysql # not compatible
query I rowsort label-2201
SELECT tab1.col2 / + ( + ( + col1 ) ) + ( + col0 ) / col2 AS col0 FROM tab1
----
2
6
7

query I rowsort
SELECT col0 * 92 FROM tab1
----
276
5888
7360

query I rowsort
SELECT - col1 - ( + 73 + + col2 ) AS col1 FROM tab2
----
-128
-131
-158

query I rowsort
SELECT DISTINCT + col2 + - 16 * - col0 + - 44 FROM tab0
----
1462
373
517

query I rowsort
SELECT ( col2 ) * + cor0.col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + col2 + + 7 * col1 FROM tab2 AS cor0
----
157
244
439

query I rowsort
SELECT - + col2 + + col1 * col0 AS col1 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + col1 + 67 AS col0 FROM tab1
----
77
80
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) + col0 col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + - ( col2 ) * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col1 * - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT + - ( col2 ) * col0 * col2 + 36 FROM tab2 AS cor0
----
-114040
-5067
-52692

query I rowsort
SELECT - 74 * col2 + col2 FROM tab0 AS cor0
----
-2409
-5986
-73

query I rowsort
SELECT DISTINCT - col0 - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + - col2 * cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + cor0.col2 * + 27 * - col2 FROM tab1 AS cor0
----
-248832
-78732
-87723

query I rowsort
SELECT - cor0.col1 * col1 * cor0.col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT - col1 DIV 11 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-2218
SELECT - col1 / 11 FROM tab2 AS cor0
----
-1
-2
-5

query I rowsort
SELECT DISTINCT ( col1 + 28 ) * col2 AS col0 FROM tab2
----
1593
1710
2262

query I rowsort
SELECT - 69 AS col0 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT - 5 AS col1 FROM tab1 cor0
----
-5
-5
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2222
SELECT - cor0.col2 + CAST( NULL AS SIGNED ) / - ( col0 ) - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT - cor0.col2 + CAST ( NULL AS INTEGER ) / - ( col0 ) - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + 30 * + col2 AS col1 FROM tab2 AS cor0
----
5670
60840
90060

query I rowsort
SELECT + - col1 - - col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + col2 + col2 + + 10 FROM tab2 cor0
----
62
64
86

query I rowsort
SELECT ALL - col0 + + col0 * col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ( - ( + col1 ) ) * 77 + 8 FROM tab1 AS cor0
----
-1994
-762
-993

query I rowsort
SELECT DISTINCT + + 28 + col0 AS col0 FROM tab0 AS cor0
----
117
52
63

query I rowsort
SELECT DISTINCT + + 89 * - 56 AS col2 FROM tab0 AS cor0
----
-4984

query I rowsort
SELECT DISTINCT 78 * + col1 FROM tab0 AS cor0
----
6708
7098
7566

onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT - col0 + + 5 DIV col0 FROM tab1 cor0
----
-2
-64
-80

skipif mysql # not compatible
query I rowsort label-2231
SELECT - col0 + + 5 / col0 FROM tab1 cor0
----
-2
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2232
SELECT + - 43 DIV 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT + - 43 / 96 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * + col0 + - col0 FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2234
SELECT DISTINCT - - col2 DIV + col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT - - col2 / + col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT + + cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2236
SELECT cor0.col1 / - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2236
SELECT cor0.col1 / - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 38 * - col0 AS col1 FROM tab2 AS cor0
----
266
2964
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT 89 DIV + col1 AS col2 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-2238
SELECT 89 / + col1 AS col2 FROM tab1 AS cor0
----
3
6
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2239
SELECT ALL - col0 * col2 DIV - cor0.col0 col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL - col0 * col2 / - cor0.col0 col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 29 + col2 * col0 FROM tab0 AS cor0
----
6
7269
763

query I rowsort
SELECT ALL 81 * - col0 + col2 + + col2 AS col0 FROM tab1 AS cor0
----
-135
-5070
-6288

query I rowsort
SELECT - ( col2 * col0 ) AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + ( 95 ) FROM tab0, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + col0 + - 44 AS col2 FROM tab2
----
-37
34
35

query I rowsort
SELECT ALL - cor1.col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT + col2 * + col1 * + col2 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT DISTINCT - col0 + + col1 DIV col0 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT - col0 + + col1 / col0 FROM tab0 AS cor0
----
-21
-33
-88

query I rowsort
SELECT DISTINCT - + col2 + col2 FROM tab2 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2249
SELECT ALL + 52 DIV + tab2.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 05b92884b421f1624b8b21ae91927918

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + 52 / + tab2.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 05b92884b421f1624b8b21ae91927918

query I rowsort
SELECT ALL - 84 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT ALL - 95 * - col1 FROM tab0 cor0
----
8170
8645
9215

query I rowsort
SELECT ALL - 96 + - col1 FROM tab0 AS cor0
----
-182
-187
-193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col0 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + - col0 * + 76 + + col1 FROM tab1 AS cor0
----
-202
-4854
-6067

query I rowsort
SELECT - cor0.col1 * + 89 + col1 AS col1 FROM tab2 cor0
----
-1496
-2728
-5192

query I rowsort
SELECT ALL col2 * + 16 + col0 FROM tab2
----
439
494
687

query I rowsort
SELECT DISTINCT + col2 * + col1 + 92 FROM tab1
----
1340
1496
662

query I rowsort
SELECT DISTINCT col1 + - ( col1 * col2 ) AS col0 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT - col1 * 20 - col2 AS col0 FROM tab0
----
-1753
-1902
-1941

query I rowsort
SELECT col1 + + 70 FROM tab2
----
101
129
87

query I rowsort
SELECT DISTINCT - col0 - 12 FROM tab2 AS cor0
----
-19
-90
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2262
SELECT ALL - CAST( NULL AS SIGNED ) * ( + col0 ) + col0 * + col0 + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + col0 ) + col0 * + col0 + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * col0 * + col0 col0 FROM tab1 cor0
----
288
41017
83296

query I rowsort
SELECT 40 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 col0 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - col0 + - col2 * - col2 AS col1 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT ALL + + 4 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1538
650
841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 65 col0 FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL - 64 - - col2 AS col1 FROM tab1 AS cor0
----
-10
-7
32

query I rowsort
SELECT ALL - ( col2 ) * col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT 60 * - col0 AS col1 FROM tab0
----
-1440
-2100
-5340

query I rowsort
SELECT + 31 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) * + col2 + - col0 - - col1 * - col1 col0 FROM tab1
----
-3413
-3595
-9465

onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT ALL + tab1.col2 - - col0 DIV + col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + tab1.col2 - - col0 / + col2 FROM tab1
----
54
58
96

query I rowsort
SELECT ALL col0 + - 46 * + col2 * col1 AS col0 FROM tab1 AS cor0
----
-26156
-57328
-64581

query I rowsort
SELECT - col2 + + ( + col1 ) - - col1 * - col2 FROM tab0 AS cor0
----
-1
-2785
-7453

query I rowsort
SELECT DISTINCT - 34 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2278
SELECT col1 + + col1 * - col2 DIV + col2 + col1 DIV col0 AS col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2278
SELECT col1 + + col1 * - col2 / + col2 + col1 / col0 AS col1 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col0 col1 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2280
SELECT DISTINCT col0 * - col0 + - col0 + tab0.col0 DIV - col2 AS col2 FROM tab0
----
-1295
-600
-8011

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT col0 * - col0 + - col0 + tab0.col0 / - col2 AS col2 FROM tab0
----
-1295
-600
-8011

query I rowsort
SELECT + col0 + + tab0.col0 + + tab0.col0 FROM tab0
----
105
267
72

query I rowsort
SELECT DISTINCT - col0 * + col2 + 90 AS col1 FROM tab2
----
-1938
-2912
-99

query I rowsort
SELECT DISTINCT + + col0 * - 26 * col0 FROM tab2 cor0
----
-1274
-158184
-162266

query I rowsort
SELECT col0 + - 2 * - col1 AS col2 FROM tab1 AS cor0
----
106
55
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2285
SELECT ALL col0 DIV ( col0 ) AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL col0 / ( col0 ) AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2286
SELECT ALL + col1 + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL + col1 + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col1 + + col0 * 71 * col1 AS col2 FROM tab0 AS cor0
----
146630
241142
575120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col2 FROM tab1
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT + col1 DIV + col1 + ( + col1 ) * col1 * - tab1.col0 + col2 AS col2 FROM tab1
----
-13423
-1973
-6342

skipif mysql # not compatible
query I rowsort label-2289
SELECT + col1 / + col1 + ( + col1 ) * col1 * - tab1.col0 + col2 AS col2 FROM tab1
----
-13423
-1973
-6342

query I rowsort
SELECT col2 * 95 AS col0 FROM tab0
----
3135
7790
95

query I rowsort
SELECT + + col0 + col2 * ( col1 ) - - col2 AS col0 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT ALL + col1 * + 4 - col1 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT DISTINCT col0 + col0 * 35 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT + cor0.col2 + 71 FROM tab2 AS cor0
----
109
97
98

query I rowsort
SELECT DISTINCT + col2 + 58 FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT ALL - col2 * 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 * 61 AS col2 FROM tab1 AS cor0
----
-183
-3904
-4880

onlyif mysql # use DIV operator for integer division
query I rowsort label-2298
SELECT col0 DIV - 11 FROM tab2 AS cor0
----
-7
-7
0

skipif mysql # not compatible
query I rowsort label-2298
SELECT col0 / - 11 FROM tab2 AS cor0
----
-7
-7
0

query I rowsort
SELECT ALL + + col1 * col2 * - cor0.col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col0 + col0 * col0 FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT DISTINCT + col0 DIV + 63 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + col0 / + 63 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - cor0.col1 + - ( col2 ) FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab2
----
-11

query I rowsort
SELECT 62 * + col1 + - col2 FROM tab0 AS cor0
----
5299
5560
6013

query I rowsort
SELECT DISTINCT - - ( - col2 ) + cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 90 * col1 * - 92 FROM tab0
----
712080
753480
803160

query I rowsort
SELECT + ( - col2 ) * 97 * col0 AS col0 FROM tab0
----
-3395
-707906
-76824

query I rowsort
SELECT DISTINCT - + cor0.col1 + 88 AS col0 FROM tab0, tab2 AS cor0
----
29
57
71

query I rowsort
SELECT + 39 AS col1 FROM tab0 cor0
----
39
39
39

query I rowsort
SELECT + col1 + + col0 * + col0 * + col2 AS col0 FROM tab0 AS cor0
----
1322
19094
649613

onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT ALL tab1.col2 * + col1 DIV col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL tab1.col2 * + col1 / col1 FROM tab1
----
54
57
96

query I rowsort
SELECT - 32 + + col1 AS col0 FROM tab1 AS cor0
----
-19
-22
-6

query I rowsort
SELECT - - col1 + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT col0 * col1 - - col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + + 64 col1 FROM tab0 AS cor0
----
115
115
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + cor0.col2 - - 5 AS col0 FROM tab1 AS cor0
----
101
59
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT DISTINCT + col0 + - 66 + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-42
-66
22

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT + col0 + - 66 + col0 / - col2 AS col2 FROM tab0 AS cor0
----
-42
-66
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2319
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col2 + 18 FROM tab2 AS cor0
----
-1516
-628
-819

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col2 + 18 FROM tab2 AS cor0
----
-1516
-628
-819

query I rowsort
SELECT ALL + cor0.col2 - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 93 + + col2 AS col2 FROM tab0 AS cor0
----
126
175
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2322
SELECT col1 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-2322
SELECT col1 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - col0 * cor0.col2 - + col2 * + col2 FROM tab1 AS cor0
----
-16896
-3078
-6897

query I rowsort
SELECT - + 73 * col1 - col0 * col2 FROM tab2 AS cor0
----
-2452
-4243
-6335

onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT ALL + col2 * 10 - - col1 DIV - col0 FROM tab0
----
327
8
819

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + col2 * 10 - - col1 / - col0 FROM tab0
----
327
8
819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2326
SELECT - CAST( NULL AS SIGNED ) * + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2326
SELECT - CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + 65 * - ( - col2 ) AS col0 FROM tab0 cor0
----
2145
5330
65

query I rowsort
SELECT DISTINCT + + col2 * + col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL 90 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830

query I rowsort
SELECT - col2 * + col1 * - 65 + - 49 AS col0 FROM tab2 AS cor0
----
41941
54356
99661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - - 6 AS col1 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT + col1 * + col0 + - ( - col1 ) * + col0 FROM tab1 AS cor0
----
1280
156
2080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 * col0 col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - cor0.col1 * + col1 - - ( + 49 ) FROM tab2 AS cor0
----
-240
-3432
-912

query I rowsort
SELECT DISTINCT ( 28 ) * - col2 FROM tab1
----
-1512
-1596
-2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col0 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col1 * + col2 * col2 + + 87 + - col0 * - col0 FROM tab2 AS cor0
----
-18220
-22463
-33713

query I rowsort
SELECT - col1 * - col1 + 9 + - col0 AS col1 FROM tab0 cor0
----
7381
8201
9383

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT DISTINCT + 2 DIV + 39 AS col2 FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT + 2 / + 39 AS col2 FROM tab0, tab1 AS cor0
----
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237

query I rowsort
SELECT ALL col0 * + 57 AS col0 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT + col1 * - 32 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT ALL + 9 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab0, tab0 AS cor0
----
-79

query I rowsort
SELECT + 38 * + col0 * + col0 FROM tab1 AS cor0
----
155648
243200
342

query I rowsort
SELECT DISTINCT col0 * + col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + cor0.col0 - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c22e7a33a1d8d55a5f7224b3cf03e3bc

query I rowsort
SELECT - - col1 + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + + 11 FROM tab2 AS cor0
----
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2353
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab1 cor1, tab1 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab1 cor1, tab1 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + ( 26 ) AS col0 FROM tab2 AS cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 + col2 * col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 + col0 col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - ( - cor0.col2 ) AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col0 - 36 AS col2 FROM tab2 AS cor0
----
-29
42
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2359
SELECT DISTINCT tab0.col1 / CAST( NULL AS DECIMAL ) + col0 col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT tab0.col1 / CAST ( NULL AS REAL ) + col0 col2 FROM tab0
----
NULL

query I rowsort
SELECT col0 + - 42 AS col2 FROM tab1
----
-39
22
38

query I rowsort
SELECT DISTINCT col1 + 95 * + tab1.col1 AS col0 FROM tab1
----
1248
2496
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - ( col0 ) col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - col0 ) + - col0 * - col1 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT ALL cor0.col2 * col0 * + col1 + + col0 FROM tab2 cor0
----
119730
51113
5866

query I rowsort
SELECT ALL + 44 * - 79 + + col1 * + 38 AS col0 FROM tab0 AS cor0
----
-18
-208
210

query I rowsort
SELECT ALL - - 39 + + col0 FROM tab0 AS cor0
----
128
63
74

query I rowsort
SELECT ALL col1 + col1 * col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT + col0 + 8 AS col2 FROM tab2
----
15
86
87

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 DISTINCT - col1 + col2 + + col2 col0 FROM tab2
----
-7
23
59

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a

query I rowsort
SELECT 0 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - + cor0.col2 + + col1 * col2 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + col2 * + 52 FROM tab2 AS cor0
----
1352
1404
1976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2375
SELECT ALL - CAST( ( + col1 ) AS SIGNED ) * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL - CAST ( ( + col1 ) AS INTEGER ) * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2376
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 80 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 80 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + col2 + + col2 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT + ( col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - 76 - + col1 AS col2 FROM tab1
----
-102
-86
-89

query I rowsort
SELECT - 20 - col2 * 75 FROM tab1 AS cor0
----
-4070
-4295
-7220

query I rowsort
SELECT - - cor0.col1 * col0 - - col2 * + col1 FROM tab2 cor0
----
1054
1989
6136

query I rowsort
SELECT DISTINCT 31 * + col0 FROM tab2 AS cor0
----
217
2418
2449

query I rowsort
SELECT DISTINCT - col2 + col0 + + col0 * - cor0.col2 AS col2 FROM tab0 cor0
----
-1
-7291
-801

query I rowsort
SELECT 27 + + col1 * 50 FROM tab2 AS cor0
----
1577
2977
877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + + ( col1 ) - cor0.col0 * cor0.col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT cor0.col1 FROM tab0, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT DISTINCT col0 * ( - 11 ) FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT ALL - 90 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT - + col2 + + col1 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL + col2 * + ( col0 ) AS col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT DISTINCT - col1 DIV 43 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT - col1 / 43 AS col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT col0 * - 7 FROM tab2
----
-49
-546
-553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 col1 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col1 + col2 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + + col2 * + 44 FROM tab2 AS cor0
----
1144
1188
1672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2397
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * - 3 FROM tab2
----
-114
-78
-81

query I rowsort
SELECT ALL + col0 + ( + col0 * col0 ) FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + + col2 * - col0 + ( col0 + + col0 ) FROM tab0 cor0
----
-7120
-744
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2401
SELECT ALL + col2 DIV + 33 - col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-87

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + col2 / + 33 - col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-87

query I rowsort
SELECT ALL + - col2 + - 61 * 36 AS col2 FROM tab2 AS cor0
----
-2222
-2223
-2234

query I rowsort
SELECT - col0 * ( 4 ) AS col0 FROM tab2 AS cor0
----
-28
-312
-316

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT - + col2 + 56 DIV col0 FROM tab1 AS cor0
----
-36
-57
-96

skipif mysql # not compatible
query I rowsort label-2404
SELECT - + col2 + 56 / col0 FROM tab1 AS cor0
----
-36
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2405
SELECT ALL - col0 DIV 34 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - col0 / 34 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - col0 * col1 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT + - col1 DIV ( 59 ) + - col1 col1 FROM tab0 cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2407
SELECT + - col1 / ( 59 ) + - col1 col1 FROM tab0 cor0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT + col1 * ( col0 ) + col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT ALL - - col2 + col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL - - col0 * - ( + col2 ) * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-2411
SELECT DISTINCT col0 + + col0 DIV + 2 FROM tab1 cor0
----
120
4
96

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT col0 + + col0 / + 2 FROM tab1 cor0
----
120
4
96

query I rowsort
SELECT - 98 * + cor0.col1 FROM tab1 cor0
----
-1274
-2548
-980

query I rowsort
SELECT ALL + ( + col1 ) * - col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT 52 * - col0 * - cor0.col1 FROM tab2 AS cor0
----
11284
239304
69836

query I rowsort
SELECT + 22 * - 91 * - col2 FROM tab1 cor0
----
108108
114114
192192

query I rowsort
SELECT ALL 76 * + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 012fb40cd5a7b6d4b1192f9744e7efd2

query I rowsort
SELECT DISTINCT + tab0.col1 * + col0 + - ( col0 ) AS col2 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL + + cor0.col0 * - cor0.col2 + + 96 * + 48 FROM tab0 AS cor0
----
-2690
3816
4573

query I rowsort
SELECT DISTINCT + col0 * + col0 + 31 + + col0 FROM tab2 AS cor0
----
6193
6351
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2421
SELECT ALL - + 69 * + col2 + - CAST( 67 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-101
-2320
-5636

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - + 69 * + col2 + - CAST ( 67 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-101
-2320
-5636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 * col2 col1 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL + col0 + col0 - + ( - col1 ) * col1 FROM tab0 AS cor0
----
7444
8459
9479

query I rowsort
SELECT + 60 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT - 83 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT ALL col1 - + col0 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2428
SELECT + - col0 + - col1 DIV 32 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2428
SELECT + - col0 + - col1 / 32 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2429
SELECT 31 DIV + col2 + col2 FROM tab0
----
32
33
82

skipif mysql # not compatible
query I rowsort label-2429
SELECT 31 / + col2 + col2 FROM tab0
----
32
33
82

query I rowsort
SELECT + col0 * cor0.col0 * + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + col1 + - tab0.col1 + tab0.col0 * 96 FROM tab0
----
2304
3360
8544

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 + + tab2.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - col0 + - col2 * 67 * col1 + + cor0.col0 FROM tab0 AS cor0
----
-190146
-499954
-6499

query I rowsort
SELECT - ( col2 ) + + 39 AS col1 FROM tab0 AS cor0
----
-43
38
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2438
SELECT + ( + col2 ) DIV 9 + col2 - - col2 * col2 FROM tab0 AS cor0
----
1125
2
6815

skipif mysql # not compatible
query I rowsort label-2438
SELECT + ( + col2 ) / 9 + col2 - - col2 * col2 FROM tab0 AS cor0
----
1125
2
6815

query I rowsort
SELECT + - 4 * col2 FROM tab2 cor0
----
-104
-108
-152

onlyif mysql # use DIV operator for integer division
query I rowsort label-2440
SELECT DISTINCT col1 DIV ( 79 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT col1 / ( 79 ) FROM tab0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2441
SELECT ALL + - col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL + - col2 / col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT - + 59 + cor0.col2 * - col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1284
-19067
-649581

onlyif mysql # use DIV operator for integer division
query I rowsort label-2443
SELECT - col1 + + 53 * - col1 + col2 DIV + col1 FROM tab2 cor0
----
-1674
-3186
-916

skipif mysql # not compatible
query I rowsort label-2443
SELECT - col1 + + 53 * - col1 + col2 / + col1 FROM tab2 cor0
----
-1674
-3186
-916

query I rowsort
SELECT - 68 + + col2 AS col2 FROM tab0 AS cor0
----
-35
-67
14

query I rowsort
SELECT - col1 * - col0 - - col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + + col1 + col0 * col2 - 99 FROM tab0 AS cor0
----
33
7290
779

query I rowsort
SELECT - + col0 * ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT 28 * - 97 FROM tab1, tab0 AS cor0
----
-2716

query I rowsort
SELECT + ( 8 ) * col0 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT - 30 * + col1 AS col2 FROM tab0 AS cor0
----
-2580
-2730
-2910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 43 * - col2 * col2 col2 FROM tab2 AS cor0
----
29068
31347
62092

query I rowsort
SELECT + col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( col2 ) col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + + ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2455
SELECT ALL CAST( NULL AS SIGNED ) + + 12 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL CAST ( NULL AS INTEGER ) + + 12 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2456
SELECT DISTINCT - col1 * - col0 + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT - col1 * - col0 + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + 1 col1 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + col2 + - col1 * ( + cor0.col0 ) AS col2 FROM tab2 cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col2 * col2 col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT + col0 + col1 - - col2 AS col0 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT + 0 * cor0.col2 * col1 + col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 72 + - col2 FROM tab1 AS cor0
----
-24
15
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col0 - + col0 col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 32 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL - + col1 * col1 * - ( col2 ) FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT col1 + + cor0.col0 * ( + 7 ) * col0 FROM tab2 AS cor0
----
374
42647
43704

query I rowsort
SELECT DISTINCT cor0.col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - col1 + col2 * col1 * 27 - - col0 AS col2 FROM tab2 AS cor0
----
17504
22575
41437

query I rowsort
SELECT + ( + 44 ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT + col2 * + ( + col2 ) + col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT cor0.col0 * + 98 AS col2 FROM tab2 AS cor0
----
686
7644
7742

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 + col1 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT - col0 * 1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col2 - 96 AS col0 FROM tab1 AS cor0
----
-150
-153
-192

query I rowsort
SELECT col2 * 90 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT - col2 * col2 + cor0.col2 * - col2 AS col2 FROM tab0 cor0
----
-13448
-2
-2178

query I rowsort
SELECT ALL - col0 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - 23 + 74 AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - - col0 + 19 FROM tab2 AS cor0
----
26
97
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 39 - col0 col1 FROM tab1
----
1011
326
427

query I rowsort
SELECT ALL - + ( - col2 ) * col1 + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - col1 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * + ( col2 ) col0 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + - col2 + - col1 * - col2 * 89 FROM tab0 AS cor0
----
252549
664036
8632

query I rowsort
SELECT ALL + + col1 + + col0 + - ( 21 * - col1 ) FROM tab0 AS cor0
----
1916
2091
2169

query I rowsort
SELECT DISTINCT + col1 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2488
SELECT DISTINCT col1 + + col1 DIV col0 + - col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
100
90
93

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT col1 + + col1 / col0 + - col1 / - col1 AS col2 FROM tab0 AS cor0
----
100
90
93

query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 + 15 FROM tab1 AS cor0
----
108
44
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2490
SELECT + - 13 + - col2 DIV col0 FROM tab1 cor0
----
-13
-14
-31

skipif mysql # not compatible
query I rowsort label-2490
SELECT + - 13 + - col2 / col0 FROM tab1 cor0
----
-13
-14
-31

query I rowsort
SELECT DISTINCT - col2 * col1 + 5 AS col0 FROM tab0 AS cor0
----
-2833
-7457
-92

query I rowsort
SELECT ALL + col2 * - col1 - + tab0.col1 AS col0 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT + 27 * col1 + + col2 FROM tab2
----
1619
497
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2494
SELECT CAST( NULL AS SIGNED ) + col2 + tab0.col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT CAST ( NULL AS INTEGER ) + col2 + tab0.col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2495
SELECT ALL col1 * + col2 + ( - col1 ) DIV col2 AS col2 FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL col1 * + col2 + ( - col1 ) / col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - 25 - col0 * ( + col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-22856
-271543
-6752

query I rowsort
SELECT - col2 - - col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col2 * col0 * - ( + 93 ) AS col1 FROM tab2
----
-17577
-188604
-279186

query I rowsort
SELECT ALL + 72 + col2 FROM tab2
----
110
98
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2500
SELECT - 85 DIV col0 + ( col2 ) col1 FROM tab0 AS cor0
----
-1
30
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2500
SELECT - 85 / col0 + ( col2 ) col1 FROM tab0 AS cor0
----
-1
30
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT + col0 * col2 + - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
34
7216
759

skipif mysql # not compatible
query I rowsort label-2501
SELECT + col0 * col2 + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + + col1 * col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col2 * - col2 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
-22606
-24627
-39962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * 43 + 12 * tab0.col0 col2 FROM tab0
----
-1085
-2759
-744

query I rowsort
SELECT 6 * - col2 + col0 * + col2 FROM tab0
----
29
594
6806

query I rowsort
SELECT - ( + 40 ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT - + 24 - col0 * + col1 * col1 FROM tab2 AS cor0
----
-22855
-271542
-6751

query I rowsort
SELECT col0 + - 57 AS col1 FROM tab0
----
-22
-33
32

query I rowsort
SELECT + col0 + ( col1 ) * + tab1.col0 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2510
SELECT DISTINCT - col0 + ( col1 ) DIV col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT - col0 + ( col1 ) / col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + ( 21 ) * + cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 538bda1615f9b3883cb275251946d347

query I rowsort
SELECT DISTINCT col1 - - 21 AS col0 FROM tab2
----
38
52
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 21 col2 FROM tab2
----
-546
-567
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-2514
SELECT + col1 DIV cor0.col1 + col0 + col1 * - col0 FROM tab0 AS cor0
----
-2039
-3359
-8009

skipif mysql # not compatible
query I rowsort label-2514
SELECT + col1 / cor0.col1 + col0 + col1 * - col0 FROM tab0 AS cor0
----
-2039
-3359
-8009

onlyif mysql # use DIV operator for integer division
query I rowsort label-2515
SELECT + col0 + col0 DIV col1 + + col2 * + col0 FROM tab2 AS cor0
----
196
2107
3085

skipif mysql # not compatible
query I rowsort label-2515
SELECT + col0 + col0 / col1 + + col2 * + col0 FROM tab2 AS cor0
----
196
2107
3085

query I rowsort
SELECT DISTINCT - ( + col1 ) - - col0 AS col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT col2 * - col0 - col0 * 86 FROM tab2 AS cor0
----
-791
-8736
-9796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 * - ( col0 ) col1 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT DISTINCT - tab2.col2 * + cor0.col1 + + 61 FROM tab2, tab0 AS cor0
----
9 values hashing to c59a100dd39b624cce6d89c16fed16ce

query I rowsort
SELECT + 49 FROM tab1, tab0 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL + - 87 + 83 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - 61 * - col1 + cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1003
-306
1674

query I rowsort
SELECT ALL - col1 * + 24 FROM tab1 AS cor0
----
-240
-312
-624

query I rowsort
SELECT cor0.col0 + col2 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 75 + cor0.col1 AS col1 FROM tab1 AS cor0
----
101
85
88

query I rowsort
SELECT - + 7 * + ( - col1 + ( cor0.col1 ) ) * col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - ( 52 ) * cor0.col1 + - 26 AS col2 FROM tab2 AS cor0
----
1586
3042
858

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab0, tab1 AS cor0
----
10

query I rowsort
SELECT col2 * cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT 72 + col2 FROM tab2 AS cor0
----
110
98
99

query I rowsort
SELECT - - col1 + + col1 + + col2 FROM tab1 cor0
----
106
122
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2532
SELECT - cor0.col1 + cor0.col1 DIV + 56 FROM tab2 AS cor0
----
-17
-31
-58

skipif mysql # not compatible
query I rowsort label-2532
SELECT - cor0.col1 + cor0.col1 / + 56 FROM tab2 AS cor0
----
-17
-31
-58

query I rowsort
SELECT - col0 + col2 - col1 AS col1 FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT + 31 + + col0 FROM tab0 AS cor0
----
120
55
66

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab0, tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT col2 * + col2 + col1 FROM tab1 cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2538
SELECT - col1 DIV col0 + + tab0.col0 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-2538
SELECT - col1 / col0 + + tab0.col0 FROM tab0
----
21
33
88

query I rowsort
SELECT col0 + + tab1.col0 * col1 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2540
SELECT tab0.col1 + col0 DIV col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2540
SELECT tab0.col1 + col0 / col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - + col0 * col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col1 + 51 * + col2 AS col1 FROM tab0 AS cor0
----
12463
9079
9460

query I rowsort
SELECT ALL col1 * + 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * 82 + cor0.col0 AS col1 FROM tab2 AS cor0
----
581
6474
6557

onlyif mysql # use DIV operator for integer division
query I rowsort label-2545
SELECT ( cor0.col2 ) DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2545
SELECT ( cor0.col2 ) / - col1 FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2546
SELECT ALL - + CAST( NULL AS SIGNED ) * ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL - + CAST ( NULL AS INTEGER ) * ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 29 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1277
-1433
-599

query I rowsort
SELECT ALL + 0 * col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - + 53 + - ( col0 ) * - ( - col1 ) FROM tab1 cor0
----
-1093
-131
-693

query I rowsort
SELECT - 34 * + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-19380
-42432
-47736

query I rowsort
SELECT - ( 36 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT ALL - 99 * - cor1.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4f657cec83a6e73f11cb04838110fa26

query I rowsort
SELECT DISTINCT 28 * - 6 + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-135
-167
-86

query I rowsort
SELECT DISTINCT - - cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96

query I rowsort
SELECT ALL 46 * 3 AS col2 FROM tab2
----
138
138
138

query I rowsort
SELECT ALL 5 * tab0.col1 AS col0 FROM tab0
----
430
455
485

query I rowsort
SELECT ALL + - col1 + 75 * + cor0.col1 * col1 FROM tab1 cor0
----
12662
50674
7490

query I rowsort
SELECT 21 * 12 FROM tab1
----
252
252
252

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col2 col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - - 55 * col1 AS col2 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT DISTINCT + col1 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - - ( col1 ) + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - 82 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT ALL + col2 + + col2 + - 3 AS col0 FROM tab2
----
49
51
73

query I rowsort
SELECT + 7 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + cor0.col0 * 66 * col1 FROM tab0 cor0
----
136224
224070
534534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + ( cor0.col1 ) col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * col2 + + 9 AS col2 FROM tab2 AS cor0
----
-1525
-637
-828

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2571
SELECT col0 + ( col0 ) * col2 * + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
26160
598525
70

skipif mysql # not compatible
query I rowsort label-2571
SELECT col0 + ( col0 ) * col2 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
26160
598525
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2572
SELECT DISTINCT - col0 DIV ( col1 ) AS col0 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT - col0 / ( col1 ) AS col0 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT - col1 * 40 FROM tab2 cor0
----
-1240
-2360
-680

query I rowsort
SELECT - col0 + ( cor0.col1 ) AS col2 FROM tab0 cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2575
SELECT - CAST( col0 AS SIGNED ) - + col2 * CAST( + 52 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-189760
-399440
-8427

skipif mysql # not compatible
query I rowsort label-2575
SELECT - CAST ( col0 AS INTEGER ) - + col2 * CAST ( + 52 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-189760
-399440
-8427

onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT + col2 DIV + col0 + - col1 col0 FROM tab2 AS cor0
----
-17
-28
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2576
SELECT + col2 / + col0 + - col1 col0 FROM tab2 AS cor0
----
-17
-28
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * col1 col0 FROM tab0 AS cor0
----
8428
8918
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 + + col0 col1 FROM tab1 AS cor0
----
145
161
84

query I rowsort
SELECT DISTINCT - + col0 + ( + col1 ) * 63 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
178684
469926
5979

query I rowsort
SELECT ALL - col1 - - 40 FROM tab1 cor0
----
14
27
30

query I rowsort
SELECT - 86 + col0 AS col1 FROM tab1 AS cor0
----
-22
-6
-83

query I rowsort
SELECT + - col1 * + col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - 76 * col0 AS col1 FROM tab0 AS cor0
----
-1824
-2660
-6764

query I rowsort
SELECT DISTINCT - + 80 * + col1 AS col2 FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT 30 * col0 AS col0 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT col2 * col2 * + col1 AS col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT col1 + col0 * 97 * col1 AS col1 FROM tab0
----
200294
329412
785694

query I rowsort
SELECT DISTINCT col1 * ( tab1.col0 ) + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT - tab2.col2 * col0 + tab2.col2 * tab2.col2 * col0 + col2 AS col0 FROM tab2
----
111112
4941
50726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2591
SELECT - col2 + CAST( + col1 AS SIGNED ) + + col1 AS col1 FROM tab0
----
100
139
193

skipif mysql # not compatible
query I rowsort label-2591
SELECT - col2 + CAST ( + col1 AS INTEGER ) + + col1 AS col1 FROM tab0
----
100
139
193

query I rowsort
SELECT ALL + col1 * col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2593
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + 11 + col0 AS col0 FROM tab2 AS cor0
----
11

query I rowsort
SELECT - - col2 * col0 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col0 * - 36 AS col0 FROM tab0 cor0
----
-1260
-3204
-864

query I rowsort
SELECT ALL - col0 + - col0 + + col0 * + col2 FROM tab0 AS cor0
----
-35
7120
744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2598
SELECT ALL + - CAST( NULL AS SIGNED ) * - ( - col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + - CAST ( NULL AS INTEGER ) * - ( - col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col0 ) * col0 - 30 FROM tab1 AS cor0
----
-21
4066
6370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 24 col0 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT - + ( - col1 ) * - col2 + 17 AS col1 FROM tab0 AS cor0
----
-2821
-7445
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 99 ) + col1 col1 FROM tab0 AS cor0
----
-13
-2
-8

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + ( - col2 ) AS REAL ) + - 17 + + col0 FROM tab0 AS cor0
----
154
19
40

query I rowsort
SELECT DISTINCT - - col2 * col1 + col0 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) * + col2 + - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT 64 + + 17 FROM tab2 AS cor0
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2607
SELECT DISTINCT + col0 DIV - 57 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + col0 / - 57 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 44 AS REAL ) + col0 AS col0 FROM tab0 cor0
----
133
68
79

query I rowsort
SELECT - 9 * col2 - + col2 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT col2 + - col2 + - 3 FROM tab2
----
-3
-3
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2611
SELECT col2 + col0 DIV + col1 AS col1 FROM tab2
----
27
27
42

skipif mysql # not compatible
query I rowsort label-2611
SELECT col2 + col0 / + col1 AS col1 FROM tab2
----
27
27
42

query I rowsort
SELECT ALL + col1 * 48 - col0 FROM tab0
----
4104
4279
4621

query I rowsort
SELECT + col0 - - 14 AS col1 FROM tab2
----
21
92
93

query I rowsort
SELECT DISTINCT 40 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1129
41
6764

query I rowsort
SELECT DISTINCT + ( - col2 ) + + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

skipif mysql # not compatible
query I rowsort
SELECT ( + col1 ) + + ( col1 ) * col0 * - CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT DISTINCT + 61 * - col1 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-5222
-5462
-5882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 * - cor0.col2 col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL 28 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * col0 + + col0 * + col0 col1 FROM tab2
----
13416
13667
707

query I rowsort
SELECT DISTINCT + col2 * col0 + 27 FROM tab0 AS cor0
----
62
7325
819

query I rowsort
SELECT + col0 * + col2 + - ( + col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL - ( + col1 ) * 8 * col1 FROM tab0 AS cor0
----
-59168
-66248
-75272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + + col1 col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2625
SELECT DISTINCT 58 DIV + col0 FROM tab2
----
0
8

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT 58 / + col0 FROM tab2
----
0
8

query I rowsort
SELECT + - 93 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT + cor0.col0 * 18 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT DISTINCT col0 * + col2 * + col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - tab1.col2 * - col1 * - col0 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + 6 + - col2 AS col2 FROM tab2
----
-20
-21
-32

query I rowsort
SELECT ALL + col0 + 50 AS col2 FROM tab1 AS cor0
----
114
130
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2632
SELECT ALL - cor0.col0 + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - cor0.col0 + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2633
SELECT DISTINCT + col0 DIV + col1 - + 30 AS col1 FROM tab2 AS cor0
----
-26
-29
-30

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT + col0 / + col1 - + 30 AS col1 FROM tab2 AS cor0
----
-26
-29
-30

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL col2 * - 64 AS col0 FROM tab1 AS cor0
----
-3456
-3648
-6144

query I rowsort
SELECT + + 1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT ALL tab1.col1 + - col2 DIV tab1.col1 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL tab1.col1 + - col2 / tab1.col1 FROM tab1
----
24
5
6

query I rowsort
SELECT ( - 73 ) FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 2931474b870c05694e446771031a6949

query I rowsort
SELECT + 79 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT DISTINCT - 67 FROM tab0, tab1 AS cor0
----
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT DISTINCT 32 DIV tab1.col0 AS col1 FROM tab1, tab2 cor0
----
0
10

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT 32 / tab1.col0 AS col1 FROM tab1, tab2 cor0
----
0
10

query I rowsort
SELECT DISTINCT - 34 + col0 * col2 FROM tab2 AS cor0
----
155
1994
2968

query I rowsort
SELECT - col1 * col0 + col2 * + col1 FROM tab1 cor0
----
-70
1326
208

query I rowsort
SELECT DISTINCT 94 * + col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
2342
3387
8457

query I rowsort
SELECT ALL - 57 * col2 AS col1 FROM tab0
----
-1881
-4674
-57

query I rowsort
SELECT DISTINCT col1 * col1 - + col0 AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT - 0 * + cor0.col0 * - 77 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( + col2 ) * col0 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + ( 29 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
203
2262
2291

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2650
SELECT - CAST( 42 AS SIGNED ) FROM tab2 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-2650
SELECT - CAST ( 42 AS INTEGER ) FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2651
SELECT - col2 * + col1 DIV + cor0.col1 + - col0 * col2 FROM tab0 AS cor0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort label-2651
SELECT - col2 * + col1 / + cor0.col1 + - col0 * col2 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT col1 * col1 DIV col0 FROM tab0 AS cor0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-2652
SELECT col1 * col1 / col0 FROM tab0 AS cor0
----
268
308
93

query I rowsort
SELECT + ( col1 ) + - 34 FROM tab0 AS cor0
----
52
57
63

query I rowsort
SELECT - - 87 FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * ( col2 ) - - col1 col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + ( col2 ) * - tab1.col2 * + col0 + - tab1.col0 * 94 FROM tab1
----
-213952
-744800
-9030

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col2 FROM tab2, tab2 AS cor0
----
51

query I rowsort
SELECT ALL + col1 * - cor0.col1 + col2 * + ( col2 * col0 ) - - ( col2 ) FROM tab1 AS cor0
----
207893
737207
8126

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2659
SELECT - col2 * - CAST( col2 + + col1 AS SIGNED ) * col2 FROM tab1
----
1004544
217683
233280

skipif mysql # not compatible
query I rowsort label-2659
SELECT - col2 * - CAST ( col2 + + col1 AS INTEGER ) * col2 FROM tab1
----
1004544
217683
233280

query I rowsort
SELECT DISTINCT - col0 + col1 * col1 * - ( 98 ) AS col0 FROM tab0 AS cor0
----
-724832
-811627
-922117

query I rowsort
SELECT - col2 + ( col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - 28 + col0 AS col2 FROM tab0 AS cor0
----
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2663
SELECT DISTINCT CAST( + 87 AS SIGNED ) * - col1 + - col0 FROM tab2
----
-1558
-2704
-5211

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT CAST ( + 87 AS INTEGER ) * - col1 + - col0 FROM tab2
----
-1558
-2704
-5211

query I rowsort
SELECT ALL - col1 * + ( col2 ) + - 90 AS col1 FROM tab2
----
-1624
-736
-927

query I rowsort
SELECT ALL - col2 + - ( + tab1.col2 ) AS col1 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT - 87 AS col0 FROM tab2
----
-87
-87
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2667
SELECT + CAST( + col2 * col1 AS SIGNED ) AS col0 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-2667
SELECT + CAST ( + col2 * col1 AS INTEGER ) AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col1 + + 64 * col1 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT 70 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT + - col2 + + col1 * col0 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT col0 * tab0.col0 * - tab0.col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT 22 * - col1 FROM tab2
----
-1298
-374
-682

query I rowsort
SELECT 28 AS col0 FROM tab0, tab2 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2674
SELECT - 2 DIV - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT - 2 / - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 + col0 * col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - col0 + ( cor0.col2 ) AS col1 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2677
SELECT - col2 + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2677
SELECT - col2 + col0 / col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2678
SELECT ALL + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - cor0.col1 - - cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + col2 + col1 * - ( col2 ) * col2 + col0 FROM tab0 AS cor0
----
-61
-611713
-93597

query I rowsort
SELECT + col2 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT ( - col0 ) * 61 AS col0 FROM tab2
----
-427
-4758
-4819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - ( col1 ) col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + - ( col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - col0 + + 13 AS col0 FROM tab1 cor0
----
-51
-67
10

query I rowsort
SELECT - - col2 * col2 + col1 - col2 AS col1 FROM tab0 AS cor0
----
1142
6733
97

query I rowsort
SELECT ALL + col1 * - 59 FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT ALL + 67 * col1 FROM tab2
----
1139
2077
3953

query I rowsort
SELECT ALL - 29 * - col0 AS col0 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT ALL + col0 - 33 FROM tab0 AS cor0
----
-9
2
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT DISTINCT col0 DIV + cor0.col1 + + cor0.col2 * cor0.col1 * + 3 + - 40 FROM tab0 AS cor0
----
22346
251
8474

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT col0 / + cor0.col1 + + cor0.col2 * cor0.col1 * + 3 + - 40 FROM tab0 AS cor0
----
22346
251
8474

query I rowsort
SELECT ALL - col0 * + 43 AS col1 FROM tab2 AS cor0
----
-301
-3354
-3397

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL col2 - col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2695
SELECT - cor0.col0 DIV CAST( 61 AS SIGNED ) AS col2 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2695
SELECT - cor0.col0 / CAST ( 61 AS INTEGER ) AS col2 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT col1 + col1 * + tab0.col2 AS col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + - col2 * 99 * col2 FROM tab0 AS cor0
----
-107811
-665676
-99

query I rowsort
SELECT DISTINCT col2 * - ( 45 ) FROM tab2 AS cor0
----
-1170
-1215
-1710

query I rowsort
SELECT ALL - - cor0.col0 * ( + cor0.col1 ) * col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT + cor0.col2 + 35 FROM tab2 AS cor0
----
61
62
73

query I rowsort
SELECT + - cor0.col1 + + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * + col1 + col1 * + col0 + - col0 col0 FROM tab0 WHERE NULL NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 + col0 / + col1 ) <= ( + col1 )
----
7
31
27

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col0 + + tab2.col1 * + col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * - col0 col0 FROM tab1
----
-162
-3648
-7680

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + col1 + col2 * + col1 * col2 NOT IN ( col1 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 + col2 ) NOT IN ( col2 + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL col0 + - col1 * + col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + col0 - - tab2.col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT col0 * tab0.col0 + + col1 * col1 FROM tab0
----
10634
16202
7972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL col0 * col2 + tab2.col2 AS col2 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT - tab0.col0 + - col2 DIV - col2 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2715
SELECT - tab0.col0 + - col2 / - col2 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT + 26 * col2 + - col2 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT + ( + 67 ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT DISTINCT - 98 * col1 FROM tab2 AS cor0
----
-1666
-3038
-5782

onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT ALL 52 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-52
0

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL 52 / - cor0.col2 FROM tab0 AS cor0
----
-1
-52
0

query I rowsort
SELECT DISTINCT + - 13 AS col2 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT - - 12 * - col0 FROM tab1 AS cor0
----
-36
-768
-960

query I rowsort
SELECT col1 * col0 + col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT tab1.col2 * + col0 * tab1.col1 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL col2 * col0 * col2 AS col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col1 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL + col1 * col2 + col1 AS col2 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-2728
SELECT ALL - 69 DIV + col2 col1 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - 69 / + col2 col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL + cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT DISTINCT + - 54 DIV - col2 col2 FROM tab0 AS cor0
----
0
1
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT + - 54 / - col2 col2 FROM tab0 AS cor0
----
0
1
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-2731
SELECT - col0 * + col0 + + ( 37 ) DIV + cor0.col1 + + 70 FROM tab1 AS cor0
----
-4023
-6328
62

skipif mysql # not compatible
query I rowsort label-2731
SELECT - col0 * + col0 + + ( 37 ) / + cor0.col1 + + 70 FROM tab1 AS cor0
----
-4023
-6328
62

query I rowsort
SELECT 83 * - col1 FROM tab0 cor0
----
-7138
-7553
-8051

query I rowsort
SELECT ALL + + 98 * - col1 FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT DISTINCT + 75 * cor0.col0 + + col0 AS col0 FROM tab1 cor0
----
228
4864
6080

query I rowsort
SELECT - 53 AS col0 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT + 47 FROM tab1, tab0 AS cor0
----
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2737
SELECT DISTINCT tab0.col0 + + 67 * col0 * CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT tab0.col0 + + 67 * col0 * CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2738
SELECT 11 DIV tab0.col2 + + col1 FROM tab0
----
108
86
91

skipif mysql # not compatible
query I rowsort label-2738
SELECT 11 / tab0.col2 + + col1 FROM tab0
----
108
86
91

query I rowsort
SELECT + 85 + + tab1.col0 * + tab1.col1 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 5588df1e8eeaa4a57c6e738528274073

query I rowsort
SELECT + tab2.col2 * col0 + + ( - 54 ) FROM tab2
----
135
1974
2948

query I rowsort
SELECT col1 * + col1 - ( col1 ) AS col0 FROM tab1
----
156
650
90

query I rowsort
SELECT ALL - col2 + + 61 AS col1 FROM tab1 AS cor0
----
-35
4
7

query I rowsort
SELECT + ( - 97 ) * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2414
-3492
-8724

query I rowsort
SELECT ALL + + 87 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT + + ( ( col1 ) ) - - ( + ( col2 ) * - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT DISTINCT + - cor0.col1 DIV col0 + cor0.col2 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT + - cor0.col1 / col0 + cor0.col2 FROM tab0 AS cor0
----
-1
30
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 - - col2 * col0 col0 FROM tab2
----
378
4056
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-2748
SELECT ALL - col1 * tab0.col0 + col0 DIV col1 AS col1 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - col1 * tab0.col0 + col0 / col1 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT col0 * col0 + - col2 * 18 FROM tab1
----
-963
3070
4672

query I rowsort
SELECT ALL + ( ( - col2 ) ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT tab0.col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT col2 + 95 AS col1 FROM tab2
----
121
122
133

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col2 + + 93 AS col0 FROM tab2
----
2121
282
3095

query I rowsort
SELECT ( tab1.col2 ) + tab1.col1 + ( + col1 ) * + col1 FROM tab1
----
167
278
756

query I rowsort
SELECT 83 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT tab1.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - - 21 + + col2 AS col2 FROM tab0 AS cor0
----
103
22
54

query I rowsort
SELECT DISTINCT - + 84 - - cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2832
3165
9132

onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT DISTINCT + + CAST( + 62 AS SIGNED ) DIV col0 + + ( + col0 ) FROM tab0 AS cor0
----
26
36
89

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT + + CAST ( + 62 AS INTEGER ) / col0 + + ( + col0 ) FROM tab0 AS cor0
----
26
36
89

query I rowsort
SELECT + col2 + 18 FROM tab2 cor0
----
44
45
56

query I rowsort
SELECT col0 - + 2 FROM tab1 AS cor0
----
1
62
78

query I rowsort
SELECT - 51 + col2 * cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
-16
26085
598385

onlyif mysql # use DIV operator for integer division
query I rowsort label-2764
SELECT col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2764
SELECT col1 / + col0 AS col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + col2 * - cor0.col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + cor0.col2 * col2 * col2 AS col0 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT - 87 * + col2 FROM tab0
----
-2871
-7134
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 7 * cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 6604aa09cd518bc08234c526c74561f6

query I rowsort
SELECT - col1 + + cor0.col2 - + col2 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 - col0 col0 FROM tab1 AS cor0
----
-150
-166
-89

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1, tab0 cor0
----
86
91
97

query I rowsort
SELECT + ( col0 ) - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 + - tab1.col1 * col1 col2 FROM tab1
----
-598
540
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT ( - col2 ) DIV + col0 + col1 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-2776
SELECT ( - col2 ) / + col0 + col1 FROM tab2
----
17
28
59

query I rowsort
SELECT + col0 * + ( col1 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT 89 * ( col2 ) FROM tab2
----
2314
2403
3382

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab1
----
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 * col1 - col0 AND NULL
----

query I rowsort
SELECT col1 * cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 < + col2
----

query I rowsort
SELECT DISTINCT col2 + + col2 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT ALL cor0.col2 * col2 * col2 + col2 FROM tab0 AS cor0 WHERE col0 + col2 IN ( col1 - - col2 * - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2785
SELECT col2 - cor0.col0 DIV + col0 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-2785
SELECT col2 - cor0.col0 / + col0 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT DISTINCT + col1 * - col1 - col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT DISTINCT tab1.col1 + + col2 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT + col0 + col0 * col0 * - col2 FROM tab0
----
-1190
-18984
-649433

query I rowsort
SELECT + tab0.col2 * col0 + + col2 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL + col2 + + col2 * col0 AS col0 FROM tab1
----
216
3705
7776

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 / col0 > NULL
----

query I rowsort
SELECT + col1 * col1 + + col2 FROM tab1
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-2793
SELECT col2 DIV col1 - col1 * + col2 AS col1 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-2793
SELECT col2 / col1 - col1 * + col2 AS col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + + col0 col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL + col2 + + col0 - + col1 * + col1 * - col2 FROM tab1
----
16400
36561
5821

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col1 + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2798
SELECT ALL - col2 DIV col1 AS col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL - col2 / col1 AS col1 FROM tab2
----
-2
0
0

query I rowsort
SELECT DISTINCT tab1.col1 * col1 + + col0 * col1 - + col0 * col1 * + tab1.col1 FROM tab1
----
-12311
-1274
-5660

query I rowsort
SELECT - col2 + - col0 + col0 AS col2 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2801
SELECT DISTINCT - col0 DIV tab1.col0 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - col0 / tab1.col0 AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col0 * col1 * col0 + - tab2.col2 + - col1 * col0 * - col1 AS col2 FROM tab2
----
128890
630448
8219

onlyif mysql # use DIV operator for integer division
query I rowsort label-2803
SELECT tab0.col1 * col2 DIV + col1 + col1 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-2803
SELECT tab0.col1 * col2 / + col1 + col1 FROM tab0
----
119
173
98

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 AS cor0 WHERE ( NULL ) BETWEEN cor0.col2 AND NULL
----

query I rowsort
SELECT col1 - - col2 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT col2 * col2 * - cor0.col0 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + cor0.col0 col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + + col0 * 80 AS col1 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT DISTINCT - 58 FROM tab0 cor0
----
-58

query I rowsort
SELECT DISTINCT + cor0.col1 * - 79 * col2 + - col1 AS col0 FROM tab1 AS cor0
----
-110942
-45040
-98605

query I rowsort
SELECT - + 25 * col1 FROM tab0 AS cor0
----
-2150
-2275
-2425

query I rowsort
SELECT - ( + 62 ) + - col2 AS col1 FROM tab2 AS cor0
----
-100
-88
-89

query I rowsort
SELECT ALL - col1 * ( - tab2.col2 + - col0 ) FROM tab2
----
1054
1989
6136

query I rowsort
SELECT 73 + col1 AS col2 FROM tab0
----
159
164
170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2815
SELECT ALL - col1 * - col1 * + CAST( NULL AS SIGNED ) - 95 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL - col1 * - col1 * + CAST ( NULL AS INTEGER ) - 95 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + col0 - - col2 FROM tab1
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * + col0 col0 FROM tab0
----
1680
2450
6230

query I rowsort
SELECT ALL - 43 - + tab2.col0 * + col2 AS col1 FROM tab2
----
-2071
-232
-3045

query I rowsort
SELECT + col2 * + col0 * col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL - - col1 * - ( col2 ) * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - cor0.col2 * + col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-2822
SELECT ALL 36 - + col0 DIV - col1 FROM tab1
----
36
42
42

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL 36 - + col0 / - col1 FROM tab1
----
36
42
42

query I rowsort
SELECT DISTINCT col0 + + col1 + + col0 * 70 FROM tab0
----
1790
2582
6410

query I rowsort
SELECT - - 4 + col1 + - col1 * cor0.col0 FROM tab2 AS cor0
----
-1322
-182
-4539

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 10 * col1 AS col1 FROM tab1 AS cor0
----
100
130
260

onlyif mysql # use DIV operator for integer division
query I rowsort label-2827
SELECT tab0.col0 * - col2 + + col1 DIV - tab0.col0 + - tab0.col0 * - col0 AS col2 FROM tab0
----
-219
1188
622

skipif mysql # not compatible
query I rowsort label-2827
SELECT tab0.col0 * - col2 + + col1 / - tab0.col0 + - tab0.col0 * - col0 AS col2 FROM tab0
----
-219
1188
622

query I rowsort
SELECT - + cor0.col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col2 * - ( col2 ) + - cor0.col1 * + col0 FROM tab1 AS cor0
----
2609
2838
8176

query I rowsort
SELECT col1 + tab1.col1 + col2 AS col0 FROM tab1
----
106
122
77

query I rowsort
SELECT tab1.col1 + 31 * - tab1.col1 AS col1 FROM tab1
----
-300
-390
-780

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
-27

query I rowsort
SELECT - col0 - + col2 * col1 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - + col2 + col0 * cor0.col0 FROM tab2 cor0
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-2835
SELECT DISTINCT + col1 + + cor0.col0 DIV - col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT + col1 + + cor0.col0 / - col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT - col1 * + col0 + ( + col1 + 75 ) * col2 FROM tab1 cor0
----
4205
5376
7408

query I rowsort
SELECT + cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + 7 col1 FROM tab1 AS cor0
----
-47
-50
-89

query I rowsort
SELECT ALL + - col1 + col1 + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col0 + 24 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT + col0 * cor0.col1 * col0 + col2 AS col2 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT ALL col2 + + col2 * col2 * + col2 FROM tab1 AS cor0
----
157518
185250
884832

query I rowsort
SELECT DISTINCT col1 - 82 AS col2 FROM tab1 AS cor0
----
-56
-69
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2844
SELECT col2 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT col2 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col0 * ( - ( - cor0.col1 ) ) FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2846
SELECT + + cor0.col1 DIV ( + col0 ) + + col2 + col1 * + col0 AS col2 FROM tab2 cor0
----
1381
248
4628

skipif mysql # not compatible
query I rowsort label-2846
SELECT + + cor0.col1 / ( + col0 ) + + col2 + col1 * + col0 AS col2 FROM tab2 cor0
----
1381
248
4628

query I rowsort
SELECT col0 + 91 * - 30 - + col2 * + ( 46 * + col2 ) FROM tab0 cor0
----
-2741
-311945
-52800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2848
SELECT col2 * col1 + + col0 DIV + ( col2 ) AS col2 FROM tab0 AS cor0
----
132
2838
7463

skipif mysql # not compatible
query I rowsort label-2848
SELECT col2 * col1 + + col0 / + ( col2 ) AS col2 FROM tab0 AS cor0
----
132
2838
7463

query I rowsort
SELECT - col1 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT - - 29 * 83 + col1 FROM tab1 AS cor0
----
2417
2420
2433

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2851
SELECT + ( + 0 ) + col0 * + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT + ( + 0 ) + col0 * + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT + col2 + 49 DIV - col2 col2 FROM tab1 cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2852
SELECT + col2 + 49 / - col2 col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - col0 + - 17 AS col1 FROM tab0
----
-106
-41
-52

query I rowsort
SELECT + - 36 FROM tab1 cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col2 + - cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + + col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - - 93 * - col0 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT - 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL 65 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - + col2 * col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - tab2.col1 + tab2.col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT cor0.col2 - + ( col1 * col2 ) AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + col0 + col2 * - tab2.col2 AS col1 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 * + 38 FROM tab1 AS cor0
----
-138624
-291840
-6156

query I rowsort
SELECT ALL + 21 * col1 * + ( + 65 ) + + cor0.col2 FROM tab1 AS cor0
----
13707
17841
35544

query I rowsort
SELECT ALL - cor0.col1 + - col2 + col1 FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 + col2 col1 FROM tab2 AS cor0
----
18
6
7

query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab2 AS cor0
----
73

query I rowsort
SELECT - col2 * col0 - - 86 AS col1 FROM tab1 AS cor0
----
-3562
-7594
-76

query I rowsort
SELECT DISTINCT - 14 + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1357
-231
-4616

query I rowsort
SELECT ALL - col2 + + col0 * ( col0 ) FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT - col1 * - 86 AS col2 FROM tab2
----
1462
2666
5074

query I rowsort
SELECT col2 * - 33 AS col2 FROM tab2
----
-1254
-858
-891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 - tab2.col1 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 773ba5cace8a7d36bd64dd8fb384bdc8

query I rowsort
SELECT - ( cor1.col2 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + col1 * col2 * tab0.col1 AS col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT + 37 + col0 * col0 AS col0 FROM tab0 cor0
----
1262
613
7958

onlyif mysql # use DIV operator for integer division
query I rowsort label-2880
SELECT ALL + tab0.col1 DIV col2 + CAST( col2 AS SIGNED ) col2 FROM tab0
----
35
83
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + tab0.col1 / col2 + CAST ( col2 AS INTEGER ) col2 FROM tab0
----
35
83
98

query I rowsort
SELECT ALL 5 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT - 33 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948

onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT ALL col1 DIV - ( + col1 ) - col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL col1 / - ( + col1 ) - col1 FROM tab1
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT ALL - col0 - - col0 DIV - col0 AS col1 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - col0 - - col0 / - col0 AS col1 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT DISTINCT + + 96 AS col1 FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT col2 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col2 ) + col0 col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT - + col1 * 76 * col0 FROM tab0 AS cor0
----
-156864
-258020
-615524

query I rowsort
SELECT ALL + + col1 + - col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - + col1 * col2 * 90 - 41 FROM tab0 cor0
----
-255461
-671621
-8771

query I rowsort
SELECT + + 53 * col2 + col2 AS col1 FROM tab0 AS cor0
----
1782
4428
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-2892
SELECT DISTINCT - - col2 * col1 DIV 18 FROM tab0 AS cor0
----
157
414
5

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT - - col2 * col1 / 18 FROM tab0 AS cor0
----
157
414
5

query I rowsort
SELECT 89 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT 63 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2895
SELECT + col1 + + ( col1 ) DIV + col0 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-2895
SELECT + col1 + + ( col1 ) / + col0 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT ALL - 70 + col1 * - col1 FROM tab0 AS cor0
----
-7466
-8351
-9479

query I rowsort
SELECT DISTINCT + + col2 + + col1 AS col2 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2898
SELECT ALL - - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL - - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + col0 * + 73 AS col2 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT DISTINCT + ( col1 ) * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - + 76 AS col0 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT + col1 * col2 + + col0 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + tab1.col1 * + col2 col0 FROM tab1
----
1152
1350
513

query I rowsort
SELECT - tab1.col0 * ( ( tab1.col1 ) + - 50 ) FROM tab1
----
2560
2960
72

query I rowsort
SELECT DISTINCT - col0 + ( - col2 ) + + col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col1 * + col0 + - col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT ALL + col1 * col1 * - col0 + tab0.col0 + col1 FROM tab0
----
-177394
-329183
-736829

onlyif mysql # use DIV operator for integer division
query I rowsort label-2908
SELECT ALL col2 DIV col0 + col0 AS col2 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL col2 / col0 + col0 AS col2 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT - col1 - col2 * - 71 FROM tab0 AS cor0
----
-26
2257
5731

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + col2 + col0 * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL + 97 * col2 + - ( + 10 + - col0 ) FROM tab1 AS cor0
----
5231
5583
9382

query I rowsort
SELECT DISTINCT 3 + col0 AS col1 FROM tab0
----
27
38
92

query I rowsort
SELECT DISTINCT col2 * - col1 * + 1 + - col2 AS col0 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT 14 * col1 + + col0 FROM tab1
----
204
262
367

query I rowsort
SELECT DISTINCT - 91 + + col2 + col1 FROM tab1
----
-11
-24
18

query I rowsort
SELECT - 52 * - col2 FROM tab2
----
1352
1404
1976

query I rowsort
SELECT ALL + - cor0.col0 + col0 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 * + 23 * col2 AS col0 FROM tab2 cor0
----
-14858
-19251
-35282

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2921
SELECT - - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT - - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col2 * - col0 + - col0 FROM tab1
----
-208000
-737360
-8751

query I rowsort
SELECT col0 * - col0 * tab0.col1 FROM tab0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT DISTINCT - 99 + col0 DIV col1 + + col2 * + tab1.col2 FROM tab1
----
2817
3156
9123

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT - 99 + col0 / col1 + + col2 * + tab1.col2 FROM tab1
----
2817
3156
9123

query I rowsort
SELECT + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2926
SELECT - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT - - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 28 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1315
-189
-4574

query I rowsort
SELECT ALL ( ( + col1 ) ) + - col0 AS col2 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2929
SELECT DISTINCT - col1 + + col2 - - col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT - col1 + + col2 - - col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 + + col0 * col0 * - 26 col2 FROM tab2 AS cor0
----
-1220
-158132
-162190

query I rowsort
SELECT DISTINCT - - ( 25 ) FROM tab2 AS cor0
----
25

query I rowsort
SELECT DISTINCT + 32 + col1 - - col0 FROM tab0 cor0
----
142
164
212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( col2 ) ) * col0 col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2934
SELECT ALL CAST( + cor0.col2 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL CAST ( + cor0.col2 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL col0 + + col0 * + cor0.col0 + cor0.col2 AS col1 FROM tab1 cor0
----
4217
6576
66

query I rowsort
SELECT - - 75 * col0 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT ALL col2 * + 56 FROM tab2
----
1456
1512
2128

query I rowsort
SELECT col1 - 45 AS col0 FROM tab1
----
-19
-32
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT + col1 * col2 + - col1 DIV + col1 FROM tab2
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-2939
SELECT + col1 * col2 + - col1 / + col1 FROM tab2
----
1533
645
836

query I rowsort
SELECT - 86 AS col2 FROM tab2, tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 1ef7453f3d4bc7d93f06fc98b5d59841

query I rowsort
SELECT + col2 * 78 FROM tab2
----
2028
2106
2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2942
SELECT DISTINCT - CAST( col2 AS SIGNED ) + + col2 * - 82 FROM tab1 AS cor0
----
-4482
-4731
-7968

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + + col2 * - 82 FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT ALL col1 + - col0 - col2 * cor0.col0 * - col0 FROM tab1 AS cor0
----
233418
509
614333

query I rowsort
SELECT - + col0 * 88 + col0 AS col0 FROM tab0 AS cor0
----
-2088
-3045
-7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + 36 ) + - col1 * col1 * col2 col2 FROM tab2 AS cor0
----
-11018
-25983
-90542

query I rowsort
SELECT + col1 * + col2 + - col0 AS col0 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT + 87 * col2 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT ALL - ( col1 ) - col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - 69 AS col0 FROM tab1
----
-69
-69
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2950
SELECT DISTINCT CAST( + 76 AS SIGNED ) * col1 AS col0 FROM tab2
----
1292
2356
4484

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT CAST ( + 76 AS INTEGER ) * col1 AS col0 FROM tab2
----
1292
2356
4484

query I rowsort
SELECT DISTINCT tab1.col2 * - tab1.col1 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col2 FROM tab2
----
-16

query I rowsort
SELECT - - 85 * col0 AS col0 FROM tab1 cor0
----
255
5440
6800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2954
SELECT col2 - col1 * 77 DIV col1 FROM tab1 cor0
----
-20
-23
19

skipif mysql # not compatible
query I rowsort label-2954
SELECT col2 - col1 * 77 / col1 FROM tab1 cor0
----
-20
-23
19

query I rowsort
SELECT - col2 + col0 * ( col2 * col2 ) AS col0 FROM tab0 AS cor0
----
26103
34
598354

query I rowsort
SELECT + col1 * + cor0.col1 * + ( + col0 + + col1 ) FROM tab1 AS cor0
----
15717
19604
7400

query I rowsort
SELECT DISTINCT 28 * + col0 * - col0 - + 45 * col2 AS col0 FROM tab1 AS cor0
----
-117253
-183520
-2682

query I rowsort
SELECT DISTINCT - 37 * col0 FROM tab1 AS cor0
----
-111
-2368
-2960

query I rowsort
SELECT - col1 - + col0 * + 92 FROM tab0 AS cor0
----
-2294
-3317
-8279

onlyif mysql # use DIV operator for integer division
query I rowsort label-2960
SELECT ALL col1 DIV - col0 + + col2 * col2 + + col1 FROM tab1 AS cor0
----
2934
3259
9229

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL col1 / - col0 + + col2 * col2 + + col1 FROM tab1 AS cor0
----
2934
3259
9229

query I rowsort
SELECT col2 - + col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT + + col0 * col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT col0 * CAST( col0 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
1225
19008
649522

skipif mysql # not compatible
query I rowsort label-2963
SELECT col0 * CAST ( col0 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL + col0 * col1 + col0 AS col2 FROM tab0 cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2965
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + - col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - 24 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT DISTINCT cor0.col0 * - 71 * col0 FROM tab1 AS cor0
----
-290816
-454400
-639

onlyif mysql # use DIV operator for integer division
query I rowsort label-2968
SELECT - + col0 DIV 66 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2968
SELECT - + col0 / 66 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL + 3 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # use DIV operator for integer division
query I rowsort label-2970
SELECT DISTINCT + 41 DIV ( col0 ) FROM tab1 AS cor0
----
0
13

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT + 41 / ( col0 ) FROM tab1 AS cor0
----
0
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-2971
SELECT col2 DIV + 51 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2971
SELECT col2 / + 51 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL col2 + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2973
SELECT - CAST( NULL AS SIGNED ) + col2 / + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT - CAST ( NULL AS INTEGER ) + col2 / + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 36 + col1 FROM tab0 AS cor0
----
122
127
133

query I rowsort
SELECT DISTINCT + - ( - col0 ) + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL 5 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * + col0 col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - col0 * col2 + + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - + col2 * - 34 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL cor0.col1 * ( col2 * - col1 ) + + 63 FROM tab2 cor0
----
-10919
-25884
-90443

query I rowsort
SELECT - 86 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT - 34 - - cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f3d03bcef19de47a1286e7743cfae6eb

onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT - tab2.col0 - 79 DIV + col0 AS col0 FROM tab2
----
-18
-79
-80

skipif mysql # not compatible
query I rowsort label-2984
SELECT - tab2.col0 - 79 / + col0 AS col0 FROM tab2
----
-18
-79
-80

query I rowsort
SELECT + col1 * - ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 58 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - 67 * col0 AS col1 FROM tab1 AS cor0
----
-201
-4288
-5360

query I rowsort
SELECT ALL 90 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b

query I rowsort
SELECT col1 * 72 AS col2 FROM tab1
----
1872
720
936

query I rowsort
SELECT DISTINCT + col1 + + tab2.col1 FROM tab2
----
118
34
62

query I rowsort
SELECT + + col0 * + cor0.col0 + - 25 FROM tab2 AS cor0
----
24
6059
6216

query I rowsort
SELECT + 1 * col2 + - 58 * + ( col1 ) FROM tab2 AS cor0
----
-1771
-3396
-948

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col1 * col2 + - col0 * + col0 FROM tab1
----
-12832
-7174
1233

query I rowsort
SELECT col0 + 76 * col0 * + tab0.col1 AS col0 FROM tab0
----
156888
258055
615613

query I rowsort
SELECT - - col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - col2 * + 67 + - col2 FROM tab0 cor0
----
-2244
-5576
-68

query I rowsort
SELECT col0 * ( - 54 ) + col2 AS col2 FROM tab1
----
-108
-3399
-4224

query I rowsort
SELECT ALL - col0 * col0 * col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL + cor0.col1 * - ( + ( + col2 ) ) * ( + 14 ) FROM tab2 AS cor0
----
-11718
-21476
-9044

query I rowsort
SELECT + + cor0.col2 + + 30 FROM tab0 AS cor0
----
112
31
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT DISTINCT - col2 + - col2 DIV + 30 FROM tab0 AS cor0
----
-1
-34
-84

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT - col2 + - col2 / + 30 FROM tab0 AS cor0
----
-1
-34
-84

query I rowsort
SELECT DISTINCT 81 * + ( col1 ) + col1 * col1 AS col0 FROM tab1
----
1222
2782
910

query I rowsort
SELECT ( + 95 ) AS col2 FROM tab1
----
95
95
95

query I rowsort
SELECT col0 * 89 AS col1 FROM tab2
----
623
6942
7031

query I rowsort
SELECT - + 86 AS col1 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT col1 - - 21 FROM tab0 AS cor0
----
107
112
118

query I rowsort
SELECT DISTINCT + ( 0 ) * col2 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 + 8 + + col2 col0 FROM tab0 AS cor0
----
41
9
90

query I rowsort
SELECT + col0 * cor0.col2 + + ( 12 ) AS col1 FROM tab0 cor0
----
47
7310
804

query I rowsort
SELECT + - 40 AS col2 FROM tab2 cor0
----
-40
-40
-40

query I rowsort
SELECT ALL - + col2 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + - 78 * + col1 AS col0 FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT ALL + 11 * col0 * - ( + col0 ) + + col2 * col0 + col0 AS col0 FROM tab0 AS cor0
----
-13405
-5520
-79744

query I rowsort
SELECT ALL + ( + col1 ) * col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT - - 17 * - tab0.col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 5f7955bbdedc592819a66ce59bbd5fbc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 col0 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3017
SELECT col1 DIV col0 + - 9 FROM tab0 AS cor0
----
-6
-7
-8

skipif mysql # not compatible
query I rowsort label-3017
SELECT col1 / col0 + - 9 FROM tab0 AS cor0
----
-6
-7
-8

query I rowsort
SELECT ALL + 80 AS col2 FROM tab0
----
80
80
80

query I rowsort
SELECT col1 + + col1 * - ( - col0 ) FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col0 * - tab0.col0 + - col1 FROM tab0
----
1128
490
7830

query I rowsort
SELECT col2 + + col2 + + col1 FROM tab0
----
152
255
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE NOT NULL IN ( col2 - col0 * col1 )
----

query I rowsort
SELECT col0 * col2 * col2 AS col0 FROM tab2
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-3024
SELECT DISTINCT col0 DIV - col0 + - col0 + - col0 FROM tab0
----
-179
-49
-71

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT col0 / - col0 + - col0 + - col0 FROM tab0
----
-179
-49
-71

query I rowsort
SELECT col2 + col1 - - tab0.col2 * - tab0.col2 AS col0 FROM tab0
----
-6551
-970
97

query I rowsort
SELECT DISTINCT col1 + col0 + - tab2.col2 FROM tab2
----
11
111
58

query I rowsort
SELECT DISTINCT - col2 * - col2 + - col2 + col1 FROM tab0
----
1142
6733
97

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3029
SELECT DISTINCT + tab0.col1 + tab0.col1 DIV + col2 + col2 * col1 FROM tab0
----
291
2926
7554

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT + tab0.col1 + tab0.col1 / + col2 + col2 * col1 FROM tab0
----
291
2926
7554

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT tab0.col1 DIV col2 + - col1 FROM tab0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT tab0.col1 / col2 + - col1 FROM tab0
----
-84
-90
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT ALL tab2.col0 DIV - col1 + col2 + + col0 FROM tab2
----
103
113
34

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL tab2.col0 / - col1 + col2 + + col0 FROM tab2
----
103
113
34

query I rowsort
SELECT - col0 * col0 + col2 FROM tab0 WHERE - col2 NOT BETWEEN + tab0.col1 * col2 AND ( col0 )
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT tab1.col0 + + col2 FROM tab1
----
121
176
57

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col2 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 + col0 * - col1 col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + 50 * col2 - 58 FROM tab1 AS cor0
----
2642
2792
4742

query I rowsort
SELECT DISTINCT + + col2 + + col1 + + col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT ALL - + 30 * col1 + - 80 * col1 FROM tab2 AS cor0
----
-1870
-3410
-6490

onlyif mysql # use DIV operator for integer division
query I rowsort label-3040
SELECT col2 DIV + col0 + col2 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-3040
SELECT col2 / + col0 + col2 FROM tab2
----
26
30
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3041
SELECT - - 25 * col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT - - 25 * col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col1 AS col2 FROM tab1 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT DISTINCT col1 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT col1 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT DISTINCT col1 + tab1.col1 * col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab1 WHERE NOT NULL NOT IN ( - col1 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 * + col2 col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT ALL col0 + + cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT + cor0.col0 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT DISTINCT - col2 + col2 * - col0 AS col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - col1 + col0 * col1 AS col2 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT - tab0.col1 + + col1 * + col2 AS col2 FROM tab0
----
0
2752
7371

query I rowsort
SELECT col2 - col2 * col1 FROM tab1
----
-1152
-1350
-513

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 NOT IN ( - tab1.col0 + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT - tab0.col0 DIV + col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3056
SELECT - tab0.col0 / + col0 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT tab2.col0 + + col1 + tab2.col2 FROM tab2
----
134
163
65

query I rowsort
SELECT col1 + + col0 AS col0 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col1 + col2 FROM tab2 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT + cor0.col2 + - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 92ef426526338653e88acd4aba639c47

query I rowsort
SELECT + col0 + 55 FROM tab0 AS cor0
----
144
79
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT DISTINCT + 67 + col2 DIV + col0 col1 FROM tab2 cor0
----
67
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT + 67 + col2 / + col0 col1 FROM tab2 cor0
----
67
70

query I rowsort
SELECT DISTINCT + tab2.col1 * - col0 * - col2 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - 13 + cor0.col0 * - 90 + - cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to b5c0c78f34bf2d098527ce418eb9b411

query I rowsort
SELECT - cor0.col0 * col0 + - cor0.col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT - col1 * + col1 * + col1 + + col1 + - ( col1 ) AS col2 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT col1 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + 19 + + col2 * col2 FROM tab0
----
1108
20
6743

query I rowsort
SELECT DISTINCT + 42 * + col2 AS col0 FROM tab0
----
1386
3444
42

query I rowsort
SELECT 40 * col2 AS col2 FROM tab2
----
1040
1080
1520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3071
SELECT ALL + 41 * col0 + CAST( + col1 AS SIGNED ) col1 FROM tab1
----
149
2634
3293

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL + 41 * col0 + CAST ( + col1 AS INTEGER ) col1 FROM tab1
----
149
2634
3293

skipif mysql # not compatible
query I rowsort
SELECT col1 + col0 * - CAST ( + col0 AS REAL ) FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT - col1 * ( + col0 ) * col2 AS col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - col1 + 24 FROM tab2 AS cor0
----
-35
-7
7

query I rowsort
SELECT - cor0.col1 + + ( - 43 ) FROM tab0 AS cor0
----
-129
-134
-140

query I rowsort
SELECT ALL + col0 + + ( + cor0.col0 ) * col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - - cor0.col2 + - ( col1 ) FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT col2 + 49 DIV col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3078
SELECT col2 + 49 / col1 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - col1 + cor0.col1 * col0 AS col2 FROM tab2 cor0
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3080
SELECT - CAST( col2 * col1 AS SIGNED ) col0 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3080
SELECT - CAST ( col2 * col1 AS INTEGER ) col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - 10 * col0 * - col2 AS col1 FROM tab0
----
350
72980
7920

query I rowsort
SELECT - 96 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1438
550
741

query I rowsort
SELECT ALL + col2 + + cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-3085
SELECT DISTINCT - cor0.col2 DIV - col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT - cor0.col2 / - col0 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 56 * + col2 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT + - cor0.col2 + + col0 * - col0 AS col1 FROM tab2 cor0
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col0 FROM tab0
----
87

query I rowsort
SELECT DISTINCT - 86 - - cor0.col1 FROM tab1 AS cor0
----
-60
-73
-76

query I rowsort
SELECT ALL + + 54 * col1 + - col1 FROM tab2 cor0
----
1643
3127
901

onlyif mysql # use DIV operator for integer division
query I rowsort label-3092
SELECT ALL + cor0.col1 + col0 * col0 DIV cor0.col1 AS col0 FROM tab2 cor0
----
162
32
384

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL + cor0.col1 + col0 * col0 / cor0.col1 AS col0 FROM tab2 cor0
----
162
32
384

query I rowsort
SELECT + col1 + - col2 * cor0.col0 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3094
SELECT - col0 - - CAST( NULL AS SIGNED ) * - 66 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT - col0 - - CAST ( NULL AS INTEGER ) * - 66 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT DISTINCT - col0 + col2 DIV + tab2.col1 FROM tab2
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - col0 + col2 / + tab2.col1 FROM tab2
----
-7
-77
-78

query I rowsort
SELECT col2 * 41 + col0 FROM tab2 AS cor0
----
1114
1144
1637

onlyif mysql # use DIV operator for integer division
query I rowsort label-3097
SELECT DISTINCT + cor0.col0 + - col1 DIV cor0.col1 FROM tab2 cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT + cor0.col0 + - col1 / cor0.col1 FROM tab2 cor0
----
6
77
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT + + col2 + - 67 DIV - ( cor0.col1 ) FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3098
SELECT + + col2 + - 67 / - ( cor0.col1 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + col1 + cor0.col0 * 50 AS col0 FROM tab1 AS cor0
----
176
3210
4013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( + col2 ) * col0 col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3101
SELECT col2 + + col0 DIV 89 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3101
SELECT col2 + + col0 / 89 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col2 * col0 * - 49 FROM tab1
----
-178752
-376320
-7938

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL + col1 + + col1 * + col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - 94 * ( col0 ) AS col2 FROM tab1 cor0
----
-282
-6016
-7520

onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT DISTINCT + col1 DIV + 18 AS col0 FROM tab0
----
4
5

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT + col1 / + 18 AS col0 FROM tab0
----
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * ( 83 ) col1 FROM tab1
----
1079
2158
830

query I rowsort
SELECT - cor0.col2 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc

onlyif mysql # use DIV operator for integer division
query I rowsort label-3110
SELECT ALL + + cor0.col1 + + col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + + cor0.col1 + + col0 / + col0 AS col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL - - col0 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - col2 + col0 * col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col2 - + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3115
SELECT ALL - + col1 DIV + col0 + - col2 * + cor0.col1 FROM tab1 cor0
----
-1248
-1412
-570

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL - + col1 / + col0 + - col2 * + cor0.col1 FROM tab1 cor0
----
-1248
-1412
-570

query I rowsort
SELECT ALL - cor0.col1 * col2 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3117
SELECT DISTINCT + col0 DIV col1 + - col1 * col0 + col1 * + col2 FROM tab0 AS cor0
----
-3298
-637
774

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT + col0 / col1 + - col1 * col0 + col1 * + col2 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT ALL + col1 * + col0 - col2 AS col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL - col2 - - tab1.col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT - tab2.col2 DIV + col0 + - col0 AS col1 FROM tab2
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-3120
SELECT - tab2.col2 / + col0 + - col0 AS col1 FROM tab2
----
-10
-78
-79

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-3122
SELECT ALL + col0 DIV + col1 + col1 DIV - col0 + col1 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + col0 / + col1 + col1 / - col0 + col1 FROM tab0
----
83
90
95

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = col0 / - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 * + col0 col0 FROM tab0
----
2031
3394
8017

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 / - col0 + - col1 AND ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 + col0 col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT col0 + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT - col0 * col2 * + col0 + col1 + col1 * - col2 AS col2 FROM tab1
----
-1864
-234032
-615635

query I rowsort
SELECT - col0 * tab1.col1 * col0 AS col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT - col0 * - col1 - - col0 * - col0 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT col1 * col2 + + col2 * - col2 AS col2 FROM tab2
----
-798
108
858

query I rowsort
SELECT + 98 - col1 AS col0 FROM tab2
----
39
67
81

query I rowsort
SELECT col1 + col2 + + col1 AS col0 FROM tab0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT DISTINCT - col1 DIV - tab1.col1 + - col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT - col1 / - tab1.col1 + - col2 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT DISTINCT col2 * + col1 + + col2 * - col0 AS col0 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT col1 * col0 + + tab0.col2 AS col0 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT col2 * col0 + col1 * col1 DIV + col1 AS col2 FROM tab2
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-3137
SELECT col2 * col0 + col1 * col1 / + col1 AS col2 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-3138
SELECT DISTINCT tab1.col0 + col2 DIV tab1.col1 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT tab1.col0 + col2 / tab1.col1 FROM tab1
----
5
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - cor0.col1 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3140
SELECT DISTINCT + - col0 * + col1 + + col2 DIV col0 FROM tab0 AS cor0
----
-2063
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT + - col0 * + col1 + + col2 / col0 FROM tab0 AS cor0
----
-2063
-3395
-8099

query I rowsort
SELECT DISTINCT - - col0 * col1 + - cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col0 - col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf

query I rowsort
SELECT col1 * 79 + + 92 AS col0 FROM tab2
----
1435
2541
4753

query I rowsort
SELECT DISTINCT + - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + - cor0.col0 + + col1 + col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col0 * ( col1 ) + cor0.col2 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT 78 * + col0 AS col1 FROM tab1
----
234
4992
6240

query I rowsort
SELECT col0 + - col0 * tab1.col1 AS col0 FROM tab1
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + + col1 col2 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT + 49 + - col0 * tab1.col2 * + col1 AS col1 FROM tab1
----
-36431
-4163
-99791

query I rowsort
SELECT DISTINCT + + 66 * 92 FROM tab2 AS cor0
----
6072

query I rowsort
SELECT ALL ( 34 ) * + col1 FROM tab0
----
2924
3094
3298

query I rowsort
SELECT ALL 90 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT ALL - CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 96 + + 14 FROM tab1 AS cor0
----
110
110
110

query I rowsort
SELECT ALL - ( + 83 ) FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT ALL - 87 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
-7
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 2 + + col2 col1 FROM tab2 cor0
----
24
25
36

query I rowsort
SELECT ALL + ( + col0 ) * - 89 FROM tab2 AS cor0
----
-623
-6942
-7031

query I rowsort
SELECT DISTINCT - - col0 * - col1 * + 98 FROM tab2 cor0
----
-131614
-21266
-450996

query I rowsort
SELECT 71 + col2 AS col1 FROM tab1
----
125
128
167

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3164
SELECT DISTINCT + col1 * - col0 + + col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + col1 * - col0 + + col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col0 FROM tab2 cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + col0 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col0 * + col2 * ( 63 ) FROM tab2 AS cor0
----
-11907
-127764
-189126

query I rowsort
SELECT - 93 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT DISTINCT - + col2 * col1 * - 2 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT - col2 * col2 + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT - col1 + - ( + 11 ) + + col2 * col0 AS col1 FROM tab2 AS cor0
----
147
1958
2974

onlyif mysql # use DIV operator for integer division
query I rowsort label-3172
SELECT + - col0 DIV + 95 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT + - col0 / + 95 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3173
SELECT + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3173
SELECT + col2 / + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 79 * - tab1.col0 FROM tab1
----
-237
-5056
-6320

query I rowsort
SELECT col1 + col2 * 96 + col1 FROM tab2 AS cor0
----
2614
2654
3682

query I rowsort
SELECT ALL 14 * - col0 FROM tab0
----
-1246
-336
-490

query I rowsort
SELECT DISTINCT + col0 * - col1 * 34 AS col1 FROM tab0
----
-115430
-275366
-70176

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT ALL - col0 DIV + col2 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - col0 / + col2 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3179
SELECT - 46 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-46
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT - 46 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-46
0

query I rowsort
SELECT col2 - col0 * col1 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3181
SELECT ALL 11 * col1 + - col0 DIV 85 FROM tab2 cor0
----
187
341
649

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL 11 * col1 + - col0 / 85 FROM tab2 cor0
----
187
341
649

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - 16 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2900
3233
9200

query I rowsort
SELECT ALL + ( - 60 ) * col1 FROM tab0 AS cor0
----
-5160
-5460
-5820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3186
SELECT + CAST( col2 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-3186
SELECT + CAST ( col2 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * + col0 col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - col1 - 92 FROM tab0 AS cor0
----
-178
-183
-189

onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT ALL - + col2 DIV - 28 + + col0 FROM tab2 cor0
----
7
78
80

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - + col2 / - 28 + + col0 FROM tab2 cor0
----
7
78
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3190
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 - cor0.col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 - cor0.col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( - col1 ) + - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3192
SELECT DISTINCT tab1.col1 + col1 DIV 75 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT tab1.col1 + col1 / 75 FROM tab1
----
10
13
26

query I rowsort
SELECT + cor0.col2 + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3194
SELECT col0 + - ( + col0 ) * - col0 + CAST( - col2 + + col0 AS SIGNED ) * + ( - col2 ) AS col2 FROM tab2
----
4762
4810
596

skipif mysql # not compatible
query I rowsort label-3194
SELECT col0 + - ( + col0 ) * - col0 + CAST ( - col2 + + col0 AS INTEGER ) * + ( - col2 ) AS col2 FROM tab2
----
4762
4810
596

query I rowsort
SELECT DISTINCT 43 AS col0 FROM tab0
----
43

query I rowsort
SELECT ALL - + col0 * - cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - - ( cor0.col0 ) - - col1 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT - col2 * + ( ( col1 ) * + col2 ) FROM tab1
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3199
SELECT + 96 + + cor0.col2 DIV + col2 FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-3199
SELECT + 96 + + cor0.col2 / + col2 FROM tab0 AS cor0
----
97
97
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3200
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 78 * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 78 * - col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + col2 * - col2 + tab1.col2 - col2 * + col0 AS col1 FROM tab1
----
-16800
-3024
-6840

query I rowsort
SELECT ALL - col1 * + ( ( - col2 ) ) + 26 AS col0 FROM tab0
----
123
2864
7488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col0 col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + col2 * + col0 + + col0 + col0 FROM tab1
----
168
3776
7840

query I rowsort
SELECT ALL + 21 + 15 AS col2 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT 81 - - 72 FROM tab1 AS cor0
----
153

query I rowsort
SELECT + ( + col1 ) * col1 + cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL + 25 + + 28 * + col2 FROM tab2 cor0
----
1089
753
781

query I rowsort
SELECT DISTINCT col0 * col1 - col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT - - 13 * col0 * col2 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
2080
47414
99827

query I rowsort
SELECT ALL - 29 + col0 FROM tab1 AS cor0
----
-26
35
51

query I rowsort
SELECT ALL + - 63 * col2 FROM tab0 AS cor0
----
-2079
-5166
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col1 FROM tab2 AS cor0
----
39
39
39

query I rowsort
SELECT 22 * - col0 FROM tab2
----
-154
-1716
-1738

onlyif mysql # use DIV operator for integer division
query I rowsort label-3216
SELECT - ( col0 ) DIV ( 14 ) + col0 * + col1 + - col2 DIV + col0 FROM tab0
----
2062
3393
8093

skipif mysql # not compatible
query I rowsort label-3216
SELECT - ( col0 ) / ( 14 ) + col0 * + col1 + - col2 / + col0 FROM tab0
----
2062
3393
8093

query I rowsort
SELECT + 52 + - cor0.col2 FROM tab1 AS cor0
----
-2
-44
-5

query I rowsort
SELECT - - 26 * + cor0.col0 AS col1 FROM tab0 cor0
----
2314
624
910

query I rowsort
SELECT - - col2 * + col0 - col0 * col1 AS col1 FROM tab1 cor0
----
3008
6640
84

query I rowsort
SELECT - col2 + + 58 * + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-37177
-4578
-60416

query I rowsort
SELECT - - cor0.col0 + 50 - + col2 AS col1 FROM tab0 AS cor0
----
41
57
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT cor0.col0 + - col1 - + col1 DIV + col0 AS col1 FROM tab1 cor0
----
-31
54
67

skipif mysql # not compatible
query I rowsort label-3222
SELECT cor0.col0 + - col1 - + col1 / + col0 AS col1 FROM tab1 cor0
----
-31
54
67

query I rowsort
SELECT DISTINCT + col2 + + ( ( - col1 ) ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - + cor0.col0 * - ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3225
SELECT + col2 + CAST( col2 AS SIGNED ) * + col1 - + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT + col2 + CAST ( col2 AS INTEGER ) * + col1 - + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col1 * + ( + 13 ) + col2 * col2 AS col0 FROM tab0 AS cor0
----
1262
2207
7907

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3227
SELECT DISTINCT - - col0 + + CAST( - ( + col2 ) AS SIGNED ) * - ( + col1 ) FROM tab1 AS cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT - - col0 + + CAST ( - ( + col2 ) AS INTEGER ) * - ( + col1 ) FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - col0 * col1 + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

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 ALL + col1 + 86 AS col0 FROM tab0 AS cor0
----
172
177
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col2 + col1 col2 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3232
SELECT DISTINCT + col1 * CAST( + col2 AS SIGNED ) + col2 FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT + col1 * CAST ( + col2 AS INTEGER ) + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL col1 * - 34 * - cor0.col2 + col0 + + 85 FROM tab0 AS cor0
----
253882
3418
96601

query I rowsort
SELECT - - col1 + col2 * col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + 28 * + 80 * + cor0.col2 FROM tab1 AS cor0
----
120960
127680
215040

query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 + cor0.col0 * + 95 * col2 AS col2 FROM tab2 AS cor0
----
17766
190632
282188

query I rowsort
SELECT + ( + col0 ) - col2 * - col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col1 - + 88 * + 97 AS col0 FROM tab0
----
-8439
-8445
-8450

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT DISTINCT col2 * + col0 + 13 * - col0 * col2 AS col2 FROM tab0 AS cor0
----
-420
-87576
-9504

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3241
SELECT DISTINCT - col2 * - col0 * + CAST( 53 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
1854
386712
41943

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - col2 * - col0 * + CAST ( 53 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
1854
386712
41943

query I rowsort
SELECT DISTINCT - ( col0 ) + 87 * ( + cor0.col0 ) AS col2 FROM tab2 cor0
----
602
6708
6794

query I rowsort
SELECT DISTINCT - + col2 * col2 + col0 + 61 FROM tab0 AS cor0
----
-1004
-6574
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3244
SELECT ALL 75 - + col0 * CAST( + col0 + - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1115
-548
291

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL 75 - + col0 * CAST ( + col0 + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1115
-548
291

query I rowsort
SELECT DISTINCT 83 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3246
SELECT ALL - CAST( + 45 AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - CAST ( + 45 AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT 95 AS col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT 3 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT - 59 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

query I rowsort
SELECT ALL + cor0.col1 + - 12 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b0e52fb454ef17bd47fe71c65db3e579

query I rowsort
SELECT DISTINCT + + 75 * ( - col0 ) + - ( + col1 ) * - col0 AS col1 FROM tab1 cor0
----
-147
-4160
-4960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3252
SELECT DISTINCT - CAST( col0 AS SIGNED ) + col0 + col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + col0 + col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 19 + ( col1 ) FROM tab1 AS cor0
----
29
32
45

query I rowsort
SELECT ALL + 66 * + 16 FROM tab1 AS cor0
----
1056
1056
1056

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * + col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL ( - col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col2 * + col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT - - 90 * - ( col1 * + 50 + + col0 ) FROM tab1 AS cor0
----
-117270
-50760
-65700

query I rowsort
SELECT + col1 + + col2 * - 64 AS col1 FROM tab0
----
-2026
-5157
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3260
SELECT + CAST( NULL AS DECIMAL ) + col0 * col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT + CAST ( NULL AS REAL ) + col0 * col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 - ( + col0 * + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - cor0.col1 col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col2 - ( cor0.col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + - tab2.col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ( 79 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + col1 + - tab1.col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + tab1.col0 * ( - col2 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + col0 * col1 + + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + 49 col2 FROM tab0 AS cor0
----
135
140
146

onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT DISTINCT - - col0 + col2 DIV col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - - col0 + col2 / col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL + col1 + 37 FROM tab1 AS cor0
----
47
50
63

query I rowsort
SELECT ALL 22 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT tab2.col2 * tab2.col2 * + col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL + 65 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + col1 + ( - col2 ) * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + col2 * - 52 FROM tab0
----
-1716
-4264
-52

query I rowsort
SELECT - + col0 + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT 54 * - 16 + col2 FROM tab2 AS cor0
----
-826
-837
-838

query I rowsort
SELECT + 66 - cor0.col2 FROM tab0 AS cor0
----
-16
33
65

query I rowsort
SELECT cor0.col2 * - ( + 66 ) + cor0.col0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to dc806c5df587d17303d05fcf1124cea3

query I rowsort
SELECT - ( - tab1.col1 * col2 ) AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + 59 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
1593
2242

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT - + col1 - col1 DIV col2 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-3284
SELECT - + col1 - col1 / col2 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT + - cor0.col1 + 67 * + col1 AS col2 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT + col0 + 43 AS col1 FROM tab0 AS cor0
----
132
67
78

query I rowsort
SELECT DISTINCT + ( col2 ) * - ( - col1 + - col2 * col1 ) FROM tab0
----
194
619346
96492

query I rowsort
SELECT - - 54 + + col0 - cor0.col2 FROM tab1 AS cor0
----
3
38
61

query I rowsort
SELECT cor0.col1 * 91 FROM tab2, tab2 AS cor0
----
9 values hashing to 3bb8b0ae7730338f8d9e91a83d5538a6

query I rowsort
SELECT + col0 * cor0.col1 + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL col1 * - col2 + 84 * col2 FROM tab0 AS cor0
----
-13
-574
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT ALL 69 DIV col0 - - ( + col0 ) AS col0 FROM tab1
----
26
65
80

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL 69 / col0 - - ( + col0 ) AS col0 FROM tab1
----
26
65
80

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab2, tab1, tab2 AS cor0
----
34

query I rowsort
SELECT + - col0 * - 27 AS col2 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT + + col2 * 48 * col1 AS col1 FROM tab2 AS cor0
----
31008
40176
73632

query I rowsort
SELECT DISTINCT + col1 + 73 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-193
-4662
-5827

query I rowsort
SELECT 98 * col1 + 54 * - col0 AS col2 FROM tab2
----
-2600
1570
2660

query I rowsort
SELECT + 43 * - col2 FROM tab0
----
-1419
-3526
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT - 83 DIV col2 + + col2 * - 42 FROM tab1 AS cor0
----
-2269
-2395
-4032

skipif mysql # not compatible
query I rowsort label-3300
SELECT - 83 / col2 + + col2 * - 42 FROM tab1 AS cor0
----
-2269
-2395
-4032

query I rowsort
SELECT DISTINCT tab2.col0 + + col0 + - 8 FROM tab2
----
148
150
6

query I rowsort
SELECT DISTINCT 65 + 0 FROM tab0 AS cor0
----
65

query I rowsort
SELECT + 97 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT + col0 + - 96 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
686
7644
7742

query I rowsort
SELECT DISTINCT + - cor0.col1 + 7 * col2 * + 95 AS col1 FROM tab0 AS cor0
----
21859
54439
568

query I rowsort
SELECT DISTINCT + - ( - 1 ) * + col2 * 46 - col1 AS col2 FROM tab2 AS cor0
----
1137
1211
1731

query I rowsort
SELECT ALL 54 - + col1 FROM tab1 AS cor0
----
28
41
44

query I rowsort
SELECT DISTINCT + col0 * - col2 + + col0 * 73 FROM tab2 AS cor0
----
2765
322
3666

query I rowsort
SELECT - ( 87 ) AS col0 FROM tab1 AS cor0
----
-87
-87
-87

query I rowsort
SELECT - 21 AS col0 FROM tab0 cor0
----
-21
-21
-21

query I rowsort
SELECT - col1 + - tab0.col2 * - tab0.col0 AS col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT col0 * ( + col2 ) + - col1 * col2 * col0 FROM tab1
----
-32832
-4050
-92160

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 7ccb6e2515d95809a8c30b73a5cf5f46

query I rowsort
SELECT 24 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad

query I rowsort
SELECT - 13 AS col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to d1ee13c6e23ea99b2cf17e8ca7cf45ee

query I rowsort
SELECT col2 - col2 * - 31 AS col1 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT ALL 34 + col0 FROM tab0 cor0
----
123
58
69

query I rowsort
SELECT - 35 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-3115
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3319
SELECT DISTINCT + col2 * col2 + + col2 DIV col0 AS col0 FROM tab2 cor0
----
1444
676
732

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + col2 * col2 + + col2 / col0 AS col0 FROM tab2 cor0
----
1444
676
732

query I rowsort
SELECT 89 - 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT + - ( - col0 ) + - 68 AS col2 FROM tab2 cor0
----
-61
10
11

query I rowsort
SELECT + col2 + cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 0 + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 47 * cor0.col2 * 36 AS col0 FROM tab0 AS cor0
----
-138744
-1692
-55836

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - ( + col1 ) + + ( col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * - col0 + 93 FROM tab0 AS cor0
----
-699
-7205
58

query I rowsort
SELECT ALL + 79 * + col0 - cor0.col1 AS col1 FROM tab0 AS cor0
----
1810
2668
6940

onlyif mysql # use DIV operator for integer division
query I rowsort label-3330
SELECT ALL col2 DIV 44 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL col2 / 44 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 + - 25 FROM tab2
----
-8
34
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3332
SELECT col1 + - CAST( NULL AS SIGNED ) * + ( col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT col1 + - CAST ( NULL AS INTEGER ) * + ( col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + col1 * cor0.col2 col0 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3334
SELECT + col1 * - ( + col0 * col0 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT + col1 * - ( + col0 * col0 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 + col0 * 95 FROM tab1 AS cor0
----
259
6070
7587

query I rowsort
SELECT DISTINCT + col0 * ( col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + col1 + - col1 * 48 FROM tab2 AS cor0
----
-1457
-2773
-799

query I rowsort
SELECT ALL + cor0.col1 * col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - col1 * 7 + cor0.col0 * col0 * - col2 + col2 * - col1 FROM tab1 AS cor0
----
-2072
-234112
-615739

query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT - col2 * - ( - col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort
SELECT ALL - 66 * - col0 + + cor0.col2 * CAST ( col0 AS REAL ) + col0 AS col1 FROM tab1 AS cor0
----
13040
363
7936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3343
SELECT CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3343
SELECT CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col0 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 97 + col1 FROM tab0 AS cor0
----
-11
-6
0

query I rowsort
SELECT + col1 * + 26 * col1 AS col0 FROM tab2 AS cor0
----
24986
7514
90506

query I rowsort
SELECT + - 12 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL 85 FROM tab1, tab0 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - col1 * col2 * col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - + 88 AS col1 FROM tab2 cor0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 + col1 col0 FROM tab2 AS cor0
----
44
58
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 59 * + col0 col0 FROM tab1
----
151
3766
4707

query I rowsort
SELECT - col1 * - col0 + - ( + 65 ) FROM tab0 AS cor0
----
1999
3330
8034

query I rowsort
SELECT + 66 + - tab1.col1 FROM tab1
----
40
53
56

query I rowsort
SELECT - col0 + col1 - col2 * cor0.col0 * col1 FROM tab2 AS cor0
----
-119671
-51096
-5835

query I rowsort
SELECT - - col1 * col0 * col2 + col0 - - cor0.col1 FROM tab1 AS cor0
----
36554
4241
99933

query I rowsort
SELECT - - col0 + cor0.col0 + + col2 AS col0 FROM tab2 cor0
----
182
196
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col0 col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + col1 * + col1 + ( + 32 ) AS col0 FROM tab0 AS cor0
----
7428
8313
9441

query I rowsort
SELECT ALL - 62 * - col0 AS col2 FROM tab1 cor0
----
186
3968
4960

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab0 AS cor0
----
59

query I rowsort
SELECT ALL + - col0 + - 17 * 75 AS col1 FROM tab1 cor0
----
-1278
-1339
-1355

onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT - cor0.col1 * col1 DIV ( col1 + 1 ) AS col2 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-3363
SELECT - cor0.col1 * col1 / ( col1 + 1 ) AS col2 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT ALL + cor0.col2 + 38 * + col2 AS col2 FROM tab1 AS cor0
----
2106
2223
3744

onlyif mysql # use DIV operator for integer division
query I rowsort label-3365
SELECT - + col0 DIV - 90 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3365
SELECT - + col0 / - 90 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 + 32 * col1 AS col2 FROM tab0 cor0
----
2838
3003
3201

query I rowsort
SELECT DISTINCT - 61 + col0 * + col1 * col0 FROM tab0 AS cor0
----
118764
49475
720750

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-3369
SELECT DISTINCT + col1 + + col1 + + cor0.col1 DIV col0 FROM tab1 AS cor0
----
20
26
60

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT + col1 + + col1 + + cor0.col1 / col0 FROM tab1 AS cor0
----
20
26
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT DISTINCT + col0 + + 71 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
106
26
89

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT + col0 + + 71 / cor0.col2 AS col2 FROM tab0 AS cor0
----
106
26
89

query I rowsort
SELECT DISTINCT col1 * 84 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT ALL + - col2 + - 66 FROM tab1 cor0
----
-120
-123
-162

onlyif mysql # use DIV operator for integer division
query I rowsort label-3373
SELECT 61 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
61

skipif mysql # not compatible
query I rowsort label-3373
SELECT 61 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
61

query I rowsort
SELECT ALL ( col0 ) * + col1 - - tab1.col0 AS col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL col1 + 36 AS col1 FROM tab2
----
53
67
95

query I rowsort
SELECT ALL col2 + + col2 + - tab2.col0 AS col0 FROM tab2
----
-26
-3
47

query I rowsort
SELECT + col1 + col2 * col1 - 91 FROM tab1 AS cor0
----
1170
1339
489

query I rowsort
SELECT - - col2 + + col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - col2 + + 83 AS col1 FROM tab1
----
-13
26
29

query I rowsort
SELECT + col1 * + tab1.col2 AS col2 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * + col0 col1 FROM tab0
----
1824
2660
6764

query I rowsort
SELECT ALL ( col1 ) * - col2 + + col0 + + tab1.col1 FROM tab1
----
-1155
-1375
-496

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab2, tab1 AS cor0
----
79

query I rowsort
SELECT - ( col1 ) * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - 88 FROM tab2, tab0, tab1 AS cor0
----
88

query I rowsort
SELECT ALL ( col1 ) * - col1 AS col2 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3387
SELECT 66 DIV + tab1.col1 FROM tab1
----
2
5
6

skipif mysql # not compatible
query I rowsort label-3387
SELECT 66 / + tab1.col1 FROM tab1
----
2
5
6

query I rowsort
SELECT ALL col2 - col2 * col1 * col1 AS col0 FROM tab2
----
-10944
-25920
-90480

query I rowsort
SELECT col1 * - col2 + ( - col2 ) * col0 FROM tab0 cor0
----
-132
-14760
-3630

query I rowsort
SELECT ALL - col2 * ( + col1 ) * + col1 AS col0 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT - + 21 * + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-153258
-16632
-735

query I rowsort
SELECT ALL + col0 * 17 AS col2 FROM tab1
----
1088
1360
51

query I rowsort
SELECT ALL + 36 * + 16 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 947b06b35fc8a3e412ba76444a850730

query I rowsort
SELECT - col0 * 90 FROM tab1
----
-270
-5760
-7200

query I rowsort
SELECT ALL 6 * 14 * + tab2.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1ff3e722835b8bcfd8482f4633931910

query I rowsort
SELECT DISTINCT - + 48 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-13
-24
41

query I rowsort
SELECT - 35 * ( col1 ) FROM tab0 AS cor0
----
-3010
-3185
-3395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3398
SELECT - CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3398
SELECT - CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( ( col2 ) ) * 58 FROM tab1 AS cor0
----
-3132
-3306
-5568

onlyif mysql # use DIV operator for integer division
query I rowsort label-3400
SELECT ALL - col2 DIV ( + 44 * col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - col2 / ( + 44 * col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT cor0.col2 * - ( - ( col0 ) ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col2 * 16 * col1 FROM tab2 AS cor0
----
-10336
-13392
-24544

onlyif mysql # use DIV operator for integer division
query I rowsort label-3403
SELECT + col2 DIV + ( col0 ) col2 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3403
SELECT + col2 / + ( col0 ) col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL col0 + + ( - 86 ) * col2 FROM tab1 cor0
----
-4641
-4838
-8176

query I rowsort
SELECT + col0 * - col1 * col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3406
SELECT - - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT - - CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3407
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + + 7 * col2 AS col0 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT ALL + ( col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 40 + col1 + + col1 FROM tab2 AS cor0
----
102
158
74

query I rowsort
SELECT DISTINCT - 94 * cor0.col0 FROM tab2 AS cor0
----
-658
-7332
-7426

onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT ALL col2 * col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
-104
-18
-8

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL col2 * col2 / - col0 AS col1 FROM tab2 AS cor0
----
-104
-18
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT + col2 * col2 + col1 DIV cor0.col0 + 2 FROM tab2 AS cor0
----
1446
678
735

skipif mysql # not compatible
query I rowsort label-3413
SELECT + col2 * col2 + col1 / cor0.col0 + 2 FROM tab2 AS cor0
----
1446
678
735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * col0 col2 FROM tab1 cor0
----
288
6144
7680

query I rowsort
SELECT ALL 60 + col2 * - col0 FROM tab1 AS cor0
----
-102
-3588
-7620

query I rowsort
SELECT col2 * + 18 + tab2.col1 FROM tab2
----
517
527
701

query I rowsort
SELECT - col1 + 68 AS col2 FROM tab1
----
42
55
58

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 62 - 91 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL - col0 * - col0 + 65 FROM tab0 AS cor0
----
1290
641
7986

query I rowsort
SELECT - cor0.col1 * col1 + + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL - col1 + col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - + 0 * col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 * - col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3426
SELECT ALL CAST( + col0 AS SIGNED ) FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL CAST ( + col0 AS INTEGER ) FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + 89 AS col2 FROM tab1
----
89
89
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3428
SELECT col2 * - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT col2 * - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col2 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT ALL - col2 * col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT + + col1 * - ( - col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col0 + col2 + col2 AS col0 FROM tab1 AS cor0
----
105
112
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 + - col2 col2 FROM tab2
----
-11
-12
-23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3434
SELECT col0 * col0 + - CAST( 96 AS SIGNED ) AS col0 FROM tab0
----
1129
480
7825

skipif mysql # not compatible
query I rowsort label-3434
SELECT col0 * col0 + - CAST ( 96 AS INTEGER ) AS col0 FROM tab0
----
1129
480
7825

query I rowsort
SELECT ALL 7 + col2 * - 21 FROM tab2
----
-539
-560
-791

query I rowsort
SELECT + tab0.col1 + col0 * 34 AS col1 FROM tab0
----
1287
3117
902

query I rowsort
SELECT + col1 * - col1 * - tab1.col0 + col1 AS col2 FROM tab1
----
13533
2054
6410

onlyif mysql # use DIV operator for integer division
query I rowsort label-3438
SELECT col1 DIV col1 + ( - 48 ) AS col2 FROM tab2
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-3438
SELECT col1 / col1 + ( - 48 ) AS col2 FROM tab2
----
-47
-47
-47

query I rowsort
SELECT 42 * col0 - - ( col2 ) FROM tab2
----
321
3302
3356

query I rowsort
SELECT col1 + + ( col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT ALL + col0 * + col1 + 43 AS col0 FROM tab0 AS cor0
----
2107
3438
8142

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3442
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) + col2 * - cor0.col2 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) + col2 * - cor0.col2 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT ALL - col0 + + 48 DIV + col0 + + col2 AS col0 FROM tab0 AS cor0
----
-33
-7
11

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - col0 + + 48 / + col0 + + col2 AS col0 FROM tab0 AS cor0
----
-33
-7
11

query I rowsort
SELECT DISTINCT - col1 * - col0 + - 79 * col2 FROM tab0 AS cor0
----
-543
1621
3316

query I rowsort
SELECT + col2 * - 12 AS col1 FROM tab1 AS cor0
----
-1152
-648
-684

query I rowsort
SELECT DISTINCT - col1 * 48 FROM tab0 AS cor0
----
-4128
-4368
-4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-3447
SELECT ALL - col1 DIV ( col1 ) + + cor0.col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL - col1 / ( col1 ) + + cor0.col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT 52 * tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to da4cd6148e4259481d89d5ed19a2691d

query I rowsort
SELECT DISTINCT 52 * tab0.col0 + col1 FROM tab0
----
1334
1917
4719

query I rowsort
SELECT ALL - ( col2 ) + - col0 FROM tab2
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3451
SELECT DISTINCT CAST( 46 AS SIGNED ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT CAST ( 46 AS INTEGER ) FROM tab1
----
46

query I rowsort
SELECT - col1 * + col1 * + col1 + + cor0.col1 FROM tab0 AS cor0
----
-635970
-753480
-912576

query I rowsort
SELECT ALL - - cor0.col0 + col2 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + + col2 * col2 - - col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL - + 46 * + cor0.col0 + - col2 * cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-103520
-39424
-4350

query I rowsort
SELECT ALL + 71 * - 68 FROM tab2, tab1 AS cor0
----
9 values hashing to 9440a63e155df0f374952029b27288c6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL 53 * col1 AS col1 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT - ( + 78 + tab0.col2 ) * - 2 FROM tab0
----
158
222
320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 60 - col0 col1 FROM tab0 AS cor0
----
-149
-84
-95

query I rowsort
SELECT cor0.col2 * - col2 - - col2 * col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col0 + col2 FROM tab1 cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3463
SELECT - - 59 * - col0 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT - - 59 * - col0 - - CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 83 ) col0 FROM tab1
----
83
83
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3465
SELECT + CAST( col1 AS SIGNED ) + col1 * - col0 FROM tab0
----
-1978
-3298
-8008

skipif mysql # not compatible
query I rowsort label-3465
SELECT + CAST ( col1 AS INTEGER ) + col1 * - col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + + 44 * + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 62963a171dd365dedaed66ffecc9964e

query I rowsort
SELECT cor0.col0 + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + 69 + col1 * col2 FROM tab1 AS cor0
----
1317
1473
639

query I rowsort
SELECT ALL 42 * - col2 FROM tab0 AS cor0
----
-1386
-3444
-42

query I rowsort
SELECT col1 - + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT + col2 * col0 DIV + ( + col0 ) - col0 col1 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3471
SELECT + col2 * col0 / + ( + col0 ) - col0 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 27 + col0 AS col0 FROM tab1 AS cor0
----
107
30
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3473
SELECT ALL + col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT DISTINCT + cor0.col2 DIV + 74 + - 56 FROM tab0 cor0
----
-55
-56

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + cor0.col2 / + 74 + - 56 FROM tab0 cor0
----
-55
-56

query I rowsort
SELECT ALL + col0 * - col1 + + ( col0 ) FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL col1 * col1 - 45 FROM tab0 AS cor0
----
7351
8236
9364

query I rowsort
SELECT ALL - ( - 93 ) AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to bed80270d2bd273301f8ff63d7ef9f43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT ALL 83 + + col1 DIV col1 FROM tab1 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL 83 + + col1 / col1 FROM tab1 AS cor0
----
84
84
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3479
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - 57 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - 57 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 27 + 49 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT col1 * + col0 * col0 FROM tab0 AS cor0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - 69 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3484
SELECT - CAST( NULL AS DECIMAL ) * col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT - CAST ( NULL AS REAL ) * col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 + col2 * col2 col0 FROM tab1 AS cor0
----
2873
3206
9173

query I rowsort
SELECT ALL + ( cor0.col1 ) + + col2 * 69 FROM tab2 AS cor0
----
1853
1894
2639

query I rowsort
SELECT + col2 + + 53 * col1 FROM tab0 AS cor0
----
4591
4905
5142

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3488
SELECT + - ( 98 ) * + col0 * CAST( + 4 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2744
-30576
-30968

skipif mysql # not compatible
query I rowsort label-3488
SELECT + - ( 98 ) * + col0 * CAST ( + 4 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2744
-30576
-30968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3489
SELECT CAST( col0 AS SIGNED ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3489
SELECT CAST ( col0 AS INTEGER ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3490
SELECT + 29 + col2 * - col2 + ( - col0 ) DIV + col0 FROM tab2 cor0
----
-1416
-648
-701

skipif mysql # not compatible
query I rowsort label-3490
SELECT + 29 + col2 * - col2 + ( - col0 ) / + col0 FROM tab2 cor0
----
-1416
-648
-701

query I rowsort
SELECT DISTINCT - 93 AS col2 FROM tab0 cor0
----
-93

query I rowsort
SELECT DISTINCT - 90 * - col1 AS col2 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT cor0.col0 + col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT 62 * - col1 FROM tab2 AS cor0
----
-1054
-1922
-3658

query I rowsort
SELECT + - 43 * - col1 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT - col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT DISTINCT + cor0.col2 + - col1 - 58 DIV + 11 AS col1 FROM tab2 AS cor0
----
-38
-9
16

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT + cor0.col2 + - col1 - 58 / + 11 AS col1 FROM tab2 AS cor0
----
-38
-9
16

query I rowsort
SELECT ALL 69 * 81 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 8a55862607da665d0929675d389922a5

query I rowsort
SELECT - + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + - cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - col1 * - col2 + - 96 AS col1 FROM tab1 AS cor0
----
1152
1308
474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col2 + + 71 col2 FROM tab2 AS cor0
----
-1463
-575
-766

query I rowsort
SELECT - col1 - + col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + - tab1.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + 9 FROM tab0, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT - + 28 AS col2 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT + ( + cor0.col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3508
SELECT + CAST( ( - col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3508
SELECT + CAST ( ( - col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 26 FROM tab0, tab1 cor0
----
26

query I rowsort
SELECT ALL col1 + col0 * 2 FROM tab0
----
134
167
269

query I rowsort
SELECT DISTINCT + + col0 * cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - col1 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * col2 col0 FROM tab2 AS cor0
----
2262
2349
3306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 + col0 * - col1 col1 FROM tab1 AS cor0
----
-1012
-50
-612

query I rowsort
SELECT DISTINCT - col2 + 91 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-7289
-734
55

query I rowsort
SELECT ALL col0 * + ( + cor0.col0 ) + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL - - col2 * col1 + 0 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT cor0.col1 + + 95 AS col0 FROM tab1 AS cor0
----
105
108
121

query I rowsort
SELECT + 14 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT ALL + col1 * ( - col2 ) + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT DISTINCT cor0.col1 + ( 79 ) * col1 + + cor0.col1 FROM tab1 cor0
----
1053
2106
810

query I rowsort
SELECT DISTINCT - cor0.col2 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col1 * - 44 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-25080
-54912
-61776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT + 14 * + col1 + col1 DIV + 25 col2 FROM tab1
----
140
182
365

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3524
SELECT + 14 * + col1 + col1 / + 25 col2 FROM tab1
----
140
182
365

query I rowsort
SELECT DISTINCT tab1.col0 * - 74 * + col0 + col0 + col0 * + col2 * col1 FROM tab1
----
-266560
-373680
3549

query I rowsort
SELECT - 93 * + 54 AS col0 FROM tab2
----
-5022
-5022
-5022

query I rowsort
SELECT 54 + + 82 * col1 FROM tab1 AS cor0
----
1120
2186
874

query I rowsort
SELECT DISTINCT col0 * 11 FROM tab0 cor0
----
264
385
979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 * + cor0.col0 col2 FROM tab0 AS cor0
----
-1152
-1680
-4272

onlyif mysql # use DIV operator for integer division
query I rowsort label-3530
SELECT DISTINCT cor0.col2 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT cor0.col2 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 41 * col0 AS col0 FROM tab2 cor0
----
-287
-3198
-3239

query I rowsort
SELECT DISTINCT + + cor0.col0 * - cor0.col1 + 97 FROM tab1 AS cor0
----
-543
-943
19

query I rowsort
SELECT - col1 * + col0 * - col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col1 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + ( - col0 ) + cor0.col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT - - col1 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - - 14 * + col2 AS col1 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT 58 * tab2.col1 FROM tab2
----
1798
3422
986

query I rowsort
SELECT ALL - + cor0.col0 * col0 - col1 * col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT DISTINCT 86 + col1 * col1 FROM tab0 cor0
----
7482
8367
9495

query I rowsort
SELECT ALL + + col1 * - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3542
SELECT DISTINCT + + 3 DIV - col2 + col1 AS col0 FROM tab0 AS cor0
----
86
91
94

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + + 3 / - col2 + col1 AS col0 FROM tab0 AS cor0
----
86
91
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT 35 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3543
SELECT 35 / cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col2 * - 73 col0 FROM tab0 AS cor0
----
490852
73
79497

onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT col0 DIV col1 + col1 * col1 FROM tab2 cor0
----
293
3482
961

skipif mysql # not compatible
query I rowsort label-3545
SELECT col0 / col1 + col1 * col1 FROM tab2 cor0
----
293
3482
961

query I rowsort
SELECT + col2 + + ( - 97 ) * col0 AS col0 FROM tab2 AS cor0
----
-652
-7540
-7625

onlyif mysql # use DIV operator for integer division
query I rowsort label-3547
SELECT col0 DIV ( ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3547
SELECT col0 / ( ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT col0 * - col1 * 79 + col1 + - col0 FROM tab1
----
-50614
-6139
-82227

query I rowsort
SELECT cor0.col2 + ( 95 ) FROM tab0 AS cor0
----
128
177
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3550
SELECT + col2 * col0 DIV + col1 FROM tab0 AS cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-3550
SELECT + col2 * col0 / + col1 FROM tab0 AS cor0
----
0
80
9

query I rowsort
SELECT - 28 + cor0.col0 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 62bb0dfb62eba9188ea9e7e60d5d05a1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT ALL col0 + + col1 DIV 38 AS col2 FROM tab2
----
7
79
79

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL col0 + + col1 / 38 AS col2 FROM tab2
----
7
79
79

query I rowsort
SELECT + - 18 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT col0 + + col1 + - col2 FROM tab2
----
11
111
58

query I rowsort
SELECT DISTINCT 95 * + col0 + - col1 FROM tab2 cor0
----
634
7351
7488

query I rowsort
SELECT DISTINCT col2 * - col2 * col0 + + 28 FROM tab1 AS cor0
----
-207908
-737252
-8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3557
SELECT ALL + col2 + ( - cor0.col2 * + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL + col2 + ( - cor0.col2 * + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 47 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL - - col0 + col2 + - col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + ( - col1 ) * col0 + - 27 FROM tab1 AS cor0
----
-105
-1067
-667

query I rowsort
SELECT DISTINCT 16 + + col1 AS col1 FROM tab1 AS cor0
----
26
29
42

query I rowsort
SELECT ALL - col2 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT + col2 DIV col0 - + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1247
-1386
-570

skipif mysql # not compatible
query I rowsort label-3563
SELECT + col2 / col0 - + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1247
-1386
-570

query I rowsort
SELECT DISTINCT - - col1 * col1 + cor0.col0 AS col0 FROM tab2 cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * + col1 + - cor0.col1 * + 74 + - col2 * - col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
2210
35100
97838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3566
SELECT ALL + CAST( NULL AS SIGNED ) * - 1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + CAST ( NULL AS INTEGER ) * - 1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 83 ) * + cor0.col0 - col0 * 65 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT col2 + 12 * col2 FROM tab1
----
1248
702
741

query I rowsort
SELECT + 97 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( col0 * col0 ) col1 FROM tab2
----
18
6025
6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 9 * + col0 * col2 col1 FROM tab1
----
1461
32896
69200

query I rowsort
SELECT ALL - cor0.col1 * tab2.col2 AS col2 FROM tab2, tab0 cor0, tab0, tab2 AS cor1
----
81 values hashing to 1409187431d4b3cf121842dcf41d147f

query I rowsort
SELECT DISTINCT + 26 + - tab0.col2 FROM tab0
----
-56
-7
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-3574
SELECT + col1 * + col2 + col0 * ( + col2 ) DIV + cor0.col0 - + 81 AS col1 FROM tab2 AS cor0
----
1479
603
783

skipif mysql # not compatible
query I rowsort label-3574
SELECT + col1 * + col2 + col0 * ( + col2 ) / + cor0.col0 - + 81 AS col1 FROM tab2 AS cor0
----
1479
603
783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3575
SELECT ALL CAST( NULL AS SIGNED ) * col1 * + col2 + col2 + + col1 * col2 * 80 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL CAST ( NULL AS INTEGER ) * col1 * + col2 + col2 + + col1 * col2 * 80 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT + col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3576
SELECT + col0 / + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - ( - 19 ) AS col2 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT ALL + tab2.col0 + col2 + col1 * 17 FROM tab2
----
1107
406
561

query I rowsort
SELECT DISTINCT - col1 + 30 AS col2 FROM tab0
----
-56
-61
-67

query I rowsort
SELECT + col2 * 14 * + col2 AS col1 FROM tab0 AS cor0
----
14
15246
94136

onlyif mysql # use DIV operator for integer division
query I rowsort label-3581
SELECT + col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3581
SELECT + col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT col2 + - col1 * 25 AS col2 FROM tab0 AS cor0
----
-2117
-2193
-2424

query I rowsort
SELECT - - cor0.col1 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + 54 FROM tab2, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + + col2 AS col2 FROM tab1 cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3586
SELECT ALL + - col2 + - ( col2 ) * col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL + - col2 + - ( col2 ) * col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * 35 AS col2 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT - cor0.col2 + + cor0.col0 * 14 FROM tab1 AS cor0
----
-12
1024
839

onlyif mysql # use DIV operator for integer division
query I rowsort label-3589
SELECT - tab2.col1 DIV - col0 + col0 + - col2 FROM tab2
----
-16
41
52

skipif mysql # not compatible
query I rowsort label-3589
SELECT - tab2.col1 / - col0 + col0 + - col2 FROM tab2
----
-16
41
52

query I rowsort
SELECT - col0 * + 36 FROM tab2
----
-252
-2808
-2844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3591
SELECT + - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT + - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 36 * col1 + col1 AS col0 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-71

query I rowsort
SELECT + - col0 + - cor0.col1 * ( col2 ) FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3595
SELECT ALL - col1 DIV - col1 - ( + col0 + - col2 ) FROM tab1 AS cor0
----
-6
17
52

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL - col1 / - col1 - ( + col0 + - col2 ) FROM tab1 AS cor0
----
-6
17
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT DISTINCT + - col2 + - col0 * CAST( NULL AS DECIMAL ) - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT + - col2 + - col0 * CAST ( NULL AS REAL ) - col0 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3597
SELECT - - col0 DIV + cor0.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-3597
SELECT - - col0 / + cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 5 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

query I rowsort
SELECT - 87 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT + - 30 AS col2 FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3601
SELECT DISTINCT + 66 * - col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + 66 * - col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col2 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT + 20 * - 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d0fc6ca2ef4f3b185faf3eb002f09083

query I rowsort
SELECT 89 * col2 AS col2 FROM tab2 AS cor0
----
2314
2403
3382

query I rowsort
SELECT 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + 54 * col1 AS col1 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT - col0 * - 82 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT - + cor0.col2 * col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT col0 + + 7 FROM tab0
----
31
42
96

query I rowsort
SELECT ALL + col0 * + col0 + + col2 + col0 * + col2 FROM tab0 AS cor0
----
1261
1401
15301

query I rowsort
SELECT ALL col2 + + ( cor0.col2 * + col2 ) AS col1 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3614
SELECT DISTINCT - cor0.col0 + 38 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT - cor0.col0 + 38 / col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3615
SELECT ALL CAST( + col0 AS SIGNED ) col2 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL CAST ( + col0 AS INTEGER ) col2 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3616
SELECT col1 * - 61 + col0 * - CAST( NULL AS SIGNED ) + + col1 * col0 / col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT col1 * - 61 + col0 * - CAST ( NULL AS INTEGER ) + + col1 * col0 / col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3617
SELECT - cor0.col2 DIV 30 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT - cor0.col2 / 30 AS col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - 32 * + col0 AS col0 FROM tab2 cor0
----
-224
-2496
-2528

query I rowsort
SELECT - col2 * cor0.col1 + col2 * cor0.col0 FROM tab2 cor0
----
-648
2356
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-3620
SELECT - col2 DIV col2 + - 87 FROM tab1 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-3620
SELECT - col2 / col2 + - 87 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT - col0 + col2 * - 99 FROM tab0 AS cor0
----
-134
-3291
-8207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - cor0.col1 col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - 83 * + col0 * tab1.col2 FROM tab1
----
-13446
-302784
-637440

query I rowsort
SELECT + 44 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL 2 * col0 * col2 FROM tab2
----
378
4056
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-3626
SELECT tab1.col0 + + col1 + tab1.col1 DIV CAST( 57 AS SIGNED ) AS col0 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-3626
SELECT tab1.col0 + + col1 + tab1.col1 / CAST ( 57 AS INTEGER ) AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT 36 FROM tab0, tab2 cor0
----
36

query I rowsort
SELECT DISTINCT + ( + 66 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - 30 + 80 * col1 FROM tab2 AS cor0
----
1330
2450
4690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * ( - col0 ) - col2 col2 FROM tab1
----
-4153
-63
-6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT - col2 + + col1 * - col0 + - col0 DIV col2 AS col0 FROM tab0
----
-2097
-3431
-8182

skipif mysql # not compatible
query I rowsort label-3633
SELECT - col2 + + col1 * - col0 + - col0 / col2 AS col0 FROM tab0
----
-2097
-3431
-8182

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT ALL ( col0 ) DIV - col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL ( col0 ) / - col0 AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3635
SELECT 50 + - 52 DIV - col0 AS col0 FROM tab2
----
50
50
57

skipif mysql # not compatible
query I rowsort label-3635
SELECT 50 + - 52 / - col0 AS col0 FROM tab2
----
50
50
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT ALL 73 + col2 DIV - col2 FROM tab0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL 73 + col2 / - col2 FROM tab0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col1 FROM tab1
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + col2 col1 FROM tab1 cor0
----
120
78
81

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab1, tab2 cor2
----
3645 values hashing to 57708840c4ff70ecdca82ffd05259432

query I rowsort
SELECT ( - col1 ) * - col1 + + cor0.col1 + + cor0.col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1430
2106
680

query I rowsort
SELECT DISTINCT 16 * + tab0.col0 * 34 + col2 * col1 - 41 * col0 FROM tab0
----
14910
17702
52229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * - col1 col0 FROM tab0
----
-5676
-6006
-6402

query I rowsort
SELECT DISTINCT + ( col0 * 71 ) FROM tab0
----
1704
2485
6319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - 29 * - col2 col0 FROM tab2 AS cor0
----
1023
676
776

query I rowsort
SELECT + col2 * - 50 - + cor0.col0 * - cor0.col0 FROM tab2 AS cor0
----
-1301
4341
4784

query I rowsort
SELECT DISTINCT - - col0 + + 35 FROM tab2 cor0
----
113
114
42

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col2 + col1 + cor0.col1 AS col2 FROM tab0 cor0
----
291
3010
7644

onlyif mysql # use DIV operator for integer division
query I rowsort label-3649
SELECT ALL + + col0 DIV cor0.col2 - 20 * + col2 AS col1 FROM tab0 AS cor0
----
-1639
-660
15

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL + + col0 / cor0.col2 - 20 * + col2 AS col1 FROM tab0 AS cor0
----
-1639
-660
15

query I rowsort
SELECT - col2 + 73 AS col1 FROM tab1 AS cor0
----
-23
16
19

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 ALL + + col0 * col2 + + cor0.col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
3008
6640
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT DISTINCT + + col1 DIV col1 + + col1 * col1 FROM tab1 cor0
----
101
170
677

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT + + col1 / col1 + + col1 * col1 FROM tab1 cor0
----
101
170
677

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3655
SELECT ALL col0 * - CAST( col2 AS SIGNED ) * - col1 col0 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL col0 * - CAST ( col2 AS INTEGER ) * - col1 col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + + col0 - + 83 AS col1 FROM tab0 AS cor0
----
-48
-59
6

query I rowsort
SELECT ALL + col1 * + col1 + col0 + col1 AS col1 FROM tab2 AS cor0
----
3618
385
999

query I rowsort
SELECT col0 * col1 + 69 * col1 FROM tab1 AS cor0
----
1330
1872
1937

query I rowsort
SELECT ALL - + col0 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - col0 * - cor0.col0 * cor0.col1 - - col0 FROM tab0 AS cor0
----
118860
49560
720900

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 + col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3662
SELECT DISTINCT + - col1 DIV + 52 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-289
-3482
-961

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + - col1 / + 52 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-289
-3482
-961

query I rowsort
SELECT DISTINCT + col1 * + 57 + col0 FROM tab0
----
4926
5276
5564

query I rowsort
SELECT DISTINCT col1 + - col0 * col1 AS col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 + - col1 + - col1 FROM tab2
----
-40
-55
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3666
SELECT - col1 DIV - ( - col1 + col0 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3666
SELECT - col1 / - ( - col1 + col0 ) FROM tab1
----
-1
0
0

query I rowsort
SELECT + tab0.col2 + - 5 * col1 AS col1 FROM tab0
----
-373
-397
-484

query I rowsort
SELECT DISTINCT col2 + - 30 AS col2 FROM tab2 AS cor0
----
-3
-4
8

query I rowsort
SELECT DISTINCT + col1 + - ( + ( col0 ) ) * + col2 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - - col0 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + + 4 + col1 col1 FROM tab0 AS cor0
----
102
123
177

query I rowsort
SELECT DISTINCT + - col0 * - 7 AS col0 FROM tab0 AS cor0
----
168
245
623

query I rowsort
SELECT 55 + 68 + + cor0.col2 FROM tab2 AS cor0
----
149
150
161

query I rowsort
SELECT + + 86 * col2 + col1 AS col2 FROM tab2 AS cor0
----
2295
2353
3285

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col0 * - col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - + 46 + + 71 * col2 * - col0 - 15 * col1 AS col2 FROM tab0 cor0
----
-3986
-519569
-57568

query I rowsort
SELECT ALL + + ( - 37 ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT ALL + ( - col2 ) * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + + ( - col0 ) + + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - 98 * + col2 FROM tab0 cor0
----
-3234
-8036
-98

query I rowsort
SELECT DISTINCT + 99 + cor0.col1 FROM tab0 AS cor0
----
185
190
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 * col0 col0 FROM tab0 cor0
----
2376
3465
8811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col2 FROM tab1, tab0 cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT + col2 + + 62 + col0 FROM tab2
----
166
179
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3685
SELECT ALL + col1 DIV col1 + + 55 + col2 * ( 28 ) AS col2 FROM tab2
----
1120
784
812

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + col1 / col1 + + 55 + col2 * ( 28 ) AS col2 FROM tab2
----
1120
784
812

query I rowsort
SELECT ALL - col0 * col0 * col0 + col2 FROM tab1 AS cor0
----
-262087
-511904
27

query I rowsort
SELECT DISTINCT - col0 + + col0 * col0 FROM tab0 cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - col1 * - col1 + - ( 77 ) FROM tab1 AS cor0
----
23
599
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * + col2 col0 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT ALL + col0 + col2 * - cor0.col2 AS col1 FROM tab1 cor0
----
-2913
-3185
-9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 * cor0.col1 + + 89 col1 FROM tab2 AS cor0
----
1210
412
678

query I rowsort
SELECT 5 * cor0.col1 * - ( col2 ) FROM tab1 AS cor0
----
-2850
-6240
-7020

onlyif mysql # use DIV operator for integer division
query I rowsort label-3694
SELECT - 80 DIV + col0 FROM tab1 AS cor0
----
-1
-1
-26

skipif mysql # not compatible
query I rowsort label-3694
SELECT - 80 / + col0 FROM tab1 AS cor0
----
-1
-1
-26

query I rowsort
SELECT ( 76 ) - - col1 AS col0 FROM tab2
----
107
135
93

query I rowsort
SELECT 24 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - 10 * - cor0.col1 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT - 20 * - col1 * + 26 AS col0 FROM tab1 AS cor0
----
13520
5200
6760

query I rowsort
SELECT ALL 55 FROM tab1 cor0
----
55
55
55

query I rowsort
SELECT - + cor0.col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 81 ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col2 FROM tab2
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3703
SELECT + CAST( ( - col0 ) AS SIGNED ) * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-3703
SELECT + CAST ( ( - col0 ) AS INTEGER ) * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - - col1 + - 73 * - col1 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab2, tab2 AS cor0
----
-45

query I rowsort
SELECT ( - col1 ) * col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT col2 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT col1 + - col2 * 54 * - col2 FROM tab1 AS cor0
----
157490
175456
497677

query I rowsort
SELECT - 7 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-168
-245
-623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab2.col2 * col1 ) col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + ( tab2.col0 ) AS col2 FROM tab2, tab0, tab1 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3712
SELECT + col1 * CAST( NULL AS SIGNED ) + col0 / - cor0.col0 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-3712
SELECT + col1 * CAST ( NULL AS INTEGER ) + col0 / - cor0.col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * 66 AS col1 FROM tab1 AS cor0
----
1716
660
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3715
SELECT ALL + + col1 DIV + col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + + col1 / + col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + - col0 + ( 6 ) FROM tab2 AS cor0
----
-1
-72
-73

query I rowsort
SELECT - col1 * - col2 + + 85 FROM tab0 AS cor0
----
182
2923
7547

query I rowsort
SELECT ALL - 7 + + col2 + - col2 AS col0 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT - col2 * ( + col2 ) - col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT - col2 * - 22 AS col2 FROM tab2
----
572
594
836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3721
SELECT DISTINCT - - col2 * - cor0.col0 + - col1 * + CAST( + ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-3748
-7849
-838

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT - - col2 * - cor0.col0 + - col1 * + CAST ( + ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-3748
-7849
-838

query I rowsort
SELECT 71 * col2 + - col2 AS col0 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT ALL 8 + col1 FROM tab1 AS cor0
----
18
21
34

query I rowsort
SELECT DISTINCT - 28 * cor0.col0 + col0 FROM tab2 AS cor0
----
-189
-2106
-2133

query I rowsort
SELECT - ( 66 ) + + col0 * col0 AS col1 FROM tab1 AS cor0
----
-57
4030
6334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 * - cor0.col2 col1 FROM tab2 AS cor0
----
442
459
646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * col1 col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col0 + + 80 AS col0 FROM tab2 AS cor0
----
158
159
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 * + col0 col1 FROM tab2 AS cor0
----
-126
-1404
-1422

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3730
SELECT - CAST( NULL AS SIGNED ) * ( - col0 ) + col1 * + cor0.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-3730
SELECT - CAST ( NULL AS INTEGER ) * ( - col0 ) + col1 * + cor0.col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab2, tab1 AS cor0
----
-4

query I rowsort
SELECT - 5 FROM tab1, tab2 cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT + tab0.col2 * + col2 - - col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT - 68 * - tab0.col2 FROM tab0
----
2244
5576
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT - ( 8 ) DIV col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3735
SELECT - ( 8 ) / col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) * + tab2.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
-1003
-1829
-289
-3481
-527
-961

query I rowsort
SELECT ALL 58 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT col1 + - col0 DIV col2 FROM tab0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-3738
SELECT col1 + - col0 / col2 FROM tab0
----
62
86
90

query I rowsort
SELECT col1 + - 2 AS col2 FROM tab1 AS cor0
----
11
24
8

query I rowsort
SELECT ALL col0 - col0 * 19 AS col1 FROM tab2
----
-126
-1404
-1422

query I rowsort
SELECT DISTINCT + col0 * + 71 - - col1 FROM tab2
----
528
5597
5626

query I rowsort
SELECT ALL - col2 * cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - cor0.col1 * col0 + 48 * - cor0.col2 FROM tab1 AS cor0
----
-2670
-3376
-5648

query I rowsort
SELECT + - col2 + + col2 * - col0 FROM tab1 cor0
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col0 * col1 col0 FROM tab2 cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 + - col2 col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 - col1 * + col2 col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT DISTINCT + col0 + col2 * + col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ( + 19 ) FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT - col1 + + col1 * col2 - col2 AS col1 FROM tab1 cor0
----
1139
1324
503

query I rowsort
SELECT + col1 - cor0.col1 * 87 FROM tab0 AS cor0
----
-7396
-7826
-8342

query I rowsort
SELECT ALL - - 82 * + col0 * 15 FROM tab2 AS cor0
----
8610
95940
97170

onlyif mysql # use DIV operator for integer division
query I rowsort label-3753
SELECT DISTINCT - cor0.col1 + + cor0.col1 DIV + 10 col0 FROM tab0 AS cor0
----
-78
-82
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - cor0.col1 + + cor0.col1 / + 10 col0 FROM tab0 AS cor0
----
-78
-82
-88

query I rowsort
SELECT DISTINCT + 21 AS col1 FROM tab0 AS cor0
----
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3755
SELECT - 33 * - col0 * 67 + col1 + col0 DIV col0 FROM tab1 cor0
----
141515
176894
6660

skipif mysql # not compatible
query I rowsort label-3755
SELECT - 33 * - col0 * 67 + col1 + col0 / col0 FROM tab1 cor0
----
141515
176894
6660

query I rowsort
SELECT ALL ( col1 ) * 4 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT ALL + col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - - col1 + cor0.col1 - + 9 AS col0 FROM tab2 AS cor0
----
109
25
53

query I rowsort
SELECT DISTINCT - + 17 + col0 * col2 FROM tab1 cor0
----
145
3631
7663

query I rowsort
SELECT ALL - - cor0.col0 * + col0 + 41 AS col2 FROM tab0 AS cor0
----
1266
617
7962

query I rowsort
SELECT ALL + cor0.col2 * + cor0.col0 - ( - col0 * col2 ) AS col0 FROM tab0 cor0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT ALL + cor0.col0 + col2 DIV - 97 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + cor0.col0 + col2 / - 97 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3763
SELECT DISTINCT + col2 DIV 38 AS col2 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT + col2 / 38 AS col2 FROM tab1 AS cor0
----
1
2

query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
86

query I rowsort
SELECT ALL - col1 + + 33 AS col2 FROM tab0 AS cor0
----
-53
-58
-64

query I rowsort
SELECT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT col2 * - col2 + 20 + + tab1.col1 FROM tab1
----
-2870
-3219
-9183

query I rowsort
SELECT DISTINCT - col0 - col2 AS col1 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT - tab0.col0 + + col1 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT + ( col2 ) * 34 AS col1 FROM tab1
----
1836
1938
3264

onlyif mysql # use DIV operator for integer division
query I rowsort label-3771
SELECT DISTINCT - 84 DIV - col1 + col1 FROM tab1 cor0
----
18
19
29

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT - 84 / - col1 + col1 FROM tab1 cor0
----
18
19
29

query I rowsort
SELECT ALL + - col2 * + cor0.col1 + cor0.col2 * col1 * + col1 FROM tab2 AS cor0
----
10336
25110
88972

onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT DISTINCT 75 DIV - 26 + col0 AS col1 FROM tab1 AS cor0
----
1
62
78

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT 75 / - 26 + col0 AS col1 FROM tab1 AS cor0
----
1
62
78

query I rowsort
SELECT + - col1 + + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-3775
SELECT DISTINCT + 19 DIV - col1 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT + 19 / - col1 FROM tab2 cor0
----
-1
0

query I rowsort
SELECT ALL + col2 * 29 + - col0 FROM tab2 AS cor0
----
1023
676
776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT ALL col0 DIV - 31 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL col0 / - 31 FROM tab0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + - 96 * - cor0.col1 + col0 FROM tab1 cor0
----
1024
1328
2499

query I rowsort
SELECT DISTINCT tab1.col1 * + 6 * col0 FROM tab1
----
3840
468
6240

query I rowsort
SELECT 77 - - col2 AS col0 FROM tab2
----
103
104
115

onlyif mysql # use DIV operator for integer division
query I rowsort label-3781
SELECT - col2 * 2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3781
SELECT - col2 * 2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ( - 96 ) * col0 + ( + 10 ) FROM tab0
----
-2294
-3350
-8534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col1 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT - col0 * - col1 + + 32 AS col2 FROM tab0 cor0
----
2096
3427
8131

query I rowsort
SELECT col1 + ( col2 ) AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT ( 32 + + col1 ) FROM tab1
----
42
45
58

query I rowsort
SELECT 61 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT - 20 + col0 FROM tab2
----
-13
58
59

query I rowsort
SELECT DISTINCT ( 95 ) AS col2 FROM tab0
----
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT col0 DIV col0 + col0 * + col0 + col1 AS col0 FROM tab2
----
6144
6259
81

skipif mysql # not compatible
query I rowsort label-3790
SELECT col0 / col0 + col0 * + col0 + col1 AS col0 FROM tab2
----
6144
6259
81

query I rowsort
SELECT ALL + col0 + - col2 * + col2 * col0 + tab2.col0 FROM tab2
----
-113918
-5089
-52572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col1 FROM tab0
----
171
36
57

query I rowsort
SELECT 1 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc

onlyif mysql # use DIV operator for integer division
query I rowsort label-3794
SELECT - - col1 + - col1 DIV 76 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3794
SELECT - - col1 + - col1 / 76 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + 24 AS col1 FROM tab1 AS cor0
----
-1224
-1380
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col2 FROM tab2 AS cor0
----
57

query I rowsort
SELECT - 69 * col2 FROM tab1 AS cor0
----
-3726
-3933
-6624

query I rowsort
SELECT ALL + + col1 + - col1 * - 17 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT + col1 * 82 FROM tab1
----
1066
2132
820

query I rowsort
SELECT - tab1.col1 * + col0 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + col0 * + tab2.col1 AS col2 FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3802
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col2 * - 69 AS col2 FROM tab1
----
-3726
-3933
-6624

query I rowsort
SELECT - col0 + + ( col1 ) AS col1 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 45 - + col1 * cor0.col0 col1 FROM tab2 AS cor0
----
-1092
2212
98

query I rowsort
SELECT col0 + 21 FROM tab1 AS cor0
----
101
24
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 - - col0 col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT - 94 AS col1 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT ALL + ( - col2 ) * + col0 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + - 22 - col1 * col1 AS col1 FROM tab1 AS cor0
----
-122
-191
-698

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - + col1 + + cor0.col0 * + col0 FROM tab1 cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT - + col2 * col1 + col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + 87 - cor0.col1 * col1 * - ( col1 ) FROM tab2 AS cor0
----
205466
29878
5000

query I rowsort
SELECT DISTINCT col0 * - ( - col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3816
SELECT CAST( 1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3816
SELECT CAST ( 1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT 22 * - 87 FROM tab0 AS cor0
----
-1914
-1914
-1914

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col0 AS REAL ) * + col0 + 31 AS col2 FROM tab1 AS cor0
----
40
4127
6431

query I rowsort
SELECT DISTINCT col1 + 20 * + col1 * col2 AS col0 FROM tab2
----
12937
16771
30739

query I rowsort
SELECT - - col2 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 5 * col2 + + col2 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - + 67 + - 98 AS col2 FROM tab1 AS cor0
----
-165
-165
-165

onlyif mysql # use DIV operator for integer division
query I rowsort label-3824
SELECT + - col1 DIV - col2 + + cor0.col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-3824
SELECT + - col1 / - col2 + + cor0.col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3825
SELECT ALL + tab1.col0 - col2 DIV - tab1.col2 AS col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + tab1.col0 - col2 / - tab1.col2 AS col2 FROM tab1
----
4
65
81

query I rowsort
SELECT col0 - - col2 * col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL col0 * + col2 + - col0 AS col1 FROM tab1
----
159
3584
7600

query I rowsort
SELECT tab1.col1 * - col0 * tab1.col0 AS col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + col0 / - col0 AS col0 FROM tab0 WHERE NULL = + col2
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT col1 - - cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + col2 + col1 * col0 + - col1 FROM tab1 AS cor0
----
106
1123
687

query I rowsort
SELECT DISTINCT + col2 - - col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - tab1.col1 - - col1 * col1 AS col1 FROM tab1
----
156
650
90

query I rowsort
SELECT - col0 FROM tab2 WHERE + col2 IN ( - tab2.col1 + col2 )
----

query I rowsort
SELECT - cor0.col0 - col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + col0 * - col1 * col0 - - col2 FROM tab1
----
-180
-40903
-83104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 + + col1 col1 FROM tab1
----
106
55
84

query I rowsort
SELECT ALL col0 + + col2 + col0 AS col2 FROM tab0
----
260
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 * col1 col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT col0 * col0 + - col1 * - col1 * + tab0.col2 FROM tab0
----
10634
244644
686963

query I rowsort
SELECT col1 + col0 + col0 * + col2 FROM tab0
----
167
7478
902

query I rowsort
SELECT ALL + col1 * + col2 FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL col2 + + col2 + - col1 FROM tab0
----
-20
-95
73

query I rowsort
SELECT ALL col2 * - tab1.col2 + + tab1.col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT col0 * + col2 * col0 + + col1 AS col1 FROM tab2
----
1354
158243
237175

query I rowsort
SELECT DISTINCT tab0.col0 * - tab0.col1 + col0 * tab0.col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col2 * col1 * col0 AS col0 FROM tab2
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col1 FROM tab2 AS cor0
----
1534
646
837

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE cor0.col0 IN ( col0 + col1 ) OR NOT ( NULL ) IN ( cor0.col1 )
----

query I rowsort
SELECT col0 * col2 + tab2.col0 / col1 FROM tab2 WHERE NOT col1 + col1 * col0 > NULL
----

query I rowsort
SELECT + col1 * + col0 + - cor0.col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3853
SELECT cor0.col1 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3853
SELECT cor0.col1 / - col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT + col1 * col2 - - col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT cor0.col1 * col0 - + col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + col2 + col0 * tab2.col1 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3857
SELECT col2 + - col2 DIV + tab0.col2 AS col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3857
SELECT col2 + - col2 / + tab0.col2 AS col2 FROM tab0
----
0
32
81

query I rowsort
SELECT DISTINCT - tab0.col1 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col2 + - col2 * col0 * col0 FROM tab2
----
-1296
-158158
-237120

query I rowsort
SELECT DISTINCT - tab2.col2 + - col2 * - col0 * - col1 FROM tab2
----
-119678
-51072
-5886

query I rowsort
SELECT - - cor0.col1 * - 51 AS col1 FROM tab2 AS cor0
----
-1581
-3009
-867

query I rowsort
SELECT col2 * 40 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT + + col2 * - col2 * - 69 FROM tab2 AS cor0
----
46644
50301
99636

query I rowsort
SELECT ALL - 91 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT DISTINCT col1 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - col1 * ( + col1 ) * - col0 FROM tab2 cor0
----
22831
271518
6727

skipif mysql # not compatible
query I rowsort
SELECT + + col0 * + CAST ( + ( col2 ) + - col2 * - 24 AS REAL ) AS col1 FROM tab1 AS cor0
----
192000
4050
91200

query I rowsort
SELECT DISTINCT col0 * ( - col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + + ( col1 ) * + col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3870
SELECT - col2 * + CAST( col0 AS SIGNED ) FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3870
SELECT - col2 * + CAST ( col0 AS INTEGER ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3872
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) - - 41 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) - - 41 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3873
SELECT 88 DIV 94 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-3873
SELECT 88 / 94 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 WHERE NOT ( col0 ) IN ( - col0 + + col1 * col1 )
----
-86
-91
-97

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT ( col0 * col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 + - col0 * col1 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3877
SELECT DISTINCT + col0 + + col0 DIV - col1 AS col2 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT + col0 + + col0 / - col1 AS col2 FROM tab1
----
3
58
74

query I rowsort
SELECT - tab0.col0 * - col1 * col2 FROM tab0 WHERE ( NULL ) <= col2 - tab0.col2
----

query I rowsort
SELECT col1 + - col0 * col0 * + 29 AS col0 FROM tab2 AS cor0
----
-1390
-176377
-180972

query I rowsort
SELECT 7 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT col2 * col0 * col1 + col1 FROM tab2
----
119711
51051
5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT col1 DIV ( col2 ) + col2 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-3882
SELECT col1 / ( col2 ) + col2 FROM tab0
----
35
83
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col0 FROM tab0, tab1 cor0
----
60

query I rowsort
SELECT 82 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT col2 * 52 * col1 - col2 AS col0 FROM tab1 AS cor0
----
29583
64800
72954

query I rowsort
SELECT col2 + 94 * 21 FROM tab1 AS cor0
----
2028
2031
2070

query I rowsort
SELECT DISTINCT col2 + - 57 AS col2 FROM tab1 AS cor0
----
-3
0
39

query I rowsort
SELECT DISTINCT col2 + ( 20 * col1 + - col0 ) AS col2 FROM tab0 cor0
----
1729
1813
1906

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3889
SELECT DISTINCT - CAST( col2 AS SIGNED ) + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT 43 + + col1 FROM tab1 AS cor0
----
53
56
69

query I rowsort
SELECT ALL cor0.col2 + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col1 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + 85 - + cor0.col2 * - col2 AS col2 FROM tab2 cor0
----
1529
761
814

query I rowsort
SELECT - 66 * - col0 * + col2 - - col0 AS col2 FROM tab1 AS cor0
----
10695
240832
506960

query I rowsort
SELECT - col2 * col2 - + col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL - cor0.col2 + 31 * cor0.col0 FROM tab1 AS cor0
----
1927
2384
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3897
SELECT DISTINCT + 7 DIV 95 - + col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT + 7 / 95 - + col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col2 * - ( - cor0.col1 ) + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT col2 + + 73 AS col2 FROM tab0 AS cor0
----
106
155
74

query I rowsort
SELECT ALL col1 * - col2 * col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ( 48 ) AS col1 FROM tab2 cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 8 * col0 col1 FROM tab1 cor0
----
24
512
640

query I rowsort
SELECT + col2 * + cor0.col0 * col1 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT + col2 + + tab1.col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT tab2.col0 * - 31 * + col0 FROM tab2
----
-1519
-188604
-193471

query I rowsort
SELECT DISTINCT - tab1.col2 * - ( - tab1.col1 ) AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL 29 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT ALL + + 96 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - col2 * col2 * + col2 AS col0 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL + + col0 + - ( + col0 ) FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col0 col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL - col2 + - 1 * + cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + + col1 * col0 + + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - 24 * - tab1.col0 + + col2 AS col0 FROM tab1
----
126
1593
2016

query I rowsort
SELECT DISTINCT 80 * col2 * - 64 FROM tab1
----
-276480
-291840
-491520

query I rowsort
SELECT ALL + ( - cor0.col0 ) AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3917
SELECT DISTINCT + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + col0 / - col0 AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3918
SELECT ALL col1 + col0 * - col2 + - col0 DIV col0 FROM tab2
----
-159
-1970
-2986

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL col1 + col0 * - col2 + - col0 / col0 FROM tab2
----
-159
-1970
-2986

query I rowsort
SELECT - - col0 + - col2 AS col2 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT DISTINCT col1 DIV col2 col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT col1 / col2 col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT ALL + col2 + col1 * col1 DIV + cor0.col0 FROM tab2 AS cor0
----
164
41
70

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL + col2 + col1 * col1 / + cor0.col0 FROM tab2 AS cor0
----
164
41
70

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE ( NULL ) > cor0.col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col0 ) + + col1 + - col0 * - col1 col2 FROM tab0 AS cor0
----
2174
3527
8279

query I rowsort
SELECT ALL ( + col2 ) * + col0 - col0 AS col1 FROM tab1
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-3925
SELECT + 67 DIV + tab1.col0 AS col2 FROM tab1
----
0
1
22

skipif mysql # not compatible
query I rowsort label-3925
SELECT + 67 / + tab1.col0 AS col2 FROM tab1
----
0
1
22

query I rowsort
SELECT col0 * - tab0.col1 + + col0 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col1 * + col0 + + col2 AS col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT 13 * tab0.col0 * + tab0.col1 + col2 FROM tab0
----
105369
26865
44136

onlyif mysql # use DIV operator for integer division
query I rowsort label-3929
SELECT tab1.col2 DIV + 28 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3929
SELECT tab1.col2 / + 28 FROM tab1
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 32 ) + + col1 col2 FROM tab1
----
42
45
58

query I rowsort
SELECT col2 + col2 + - col0 * col0 FROM tab0
----
-1223
-510
-7757

query I rowsort
SELECT 92 * + 25 * - col2 + col0 + col0 AS col1 FROM tab1
----
-124194
-130972
-220640

query I rowsort
SELECT ( + tab1.col0 ) * col0 AS col1 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 77 + col1 col0 FROM tab2 AS cor0
----
-18
-46
-60

query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL + col2 - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( col0 + + col2 ) * col2 FROM tab2
----
2704
4446
918

query I rowsort
SELECT DISTINCT + + ( col2 ) * - col0 + + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - 40 * col2 + col1 * - col0 * + cor0.col1 FROM tab2 AS cor0
----
-24351
-272558
-7807

onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT ( col2 ) + + col0 DIV - col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-3940
SELECT ( col2 ) + + col0 / - col2 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT DISTINCT 73 * - col0 FROM tab2 AS cor0
----
-511
-5694
-5767

onlyif mysql # use DIV operator for integer division
query I rowsort label-3942
SELECT - - col1 + + col2 * col2 DIV col1 + col2 DIV cor0.col0 FROM tab1 AS cor0
----
156
334
722

skipif mysql # not compatible
query I rowsort label-3942
SELECT - - col1 + + col2 * col2 / col1 + col2 / cor0.col0 FROM tab1 AS cor0
----
156
334
722

query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 * col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT + ( col0 ) * - ( col2 ) + + col0 - 63 AS col2 FROM tab2 AS cor0
----
-2013
-245
-2986

query I rowsort
SELECT + col1 + - cor0.col1 - 76 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT col2 * + col1 * - 45 + + cor0.col0 * + col0 * col0 FROM tab2 AS cor0
----
-37322
405522
463969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - col0 * col0 + - col2 + - col0 FROM tab0 AS cor0
----
-1261
-633
-8092

query I rowsort
SELECT ALL 37 - tab2.col1 FROM tab2
----
-22
20
6

query I rowsort
SELECT + 90 * 90 FROM tab0 AS cor0
----
8100
8100
8100

query I rowsort
SELECT + ( - 87 ) * col2 FROM tab0 cor0
----
-2871
-7134
-87

query I rowsort
SELECT - + ( + 21 ) AS col2 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT 0 * col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( 22 ) * - col2 FROM tab2
----
-572
-594
-836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * - col2 col2 FROM tab1
----
-4752
-5016
-8448

query I rowsort
SELECT - 47 AS col0 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 905cbd63e2561d7f32ce36091d5b526a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3957
SELECT DISTINCT - CAST( - 79 * + col0 AS SIGNED ) FROM tab1
----
237
5056
6320

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - CAST ( - 79 * + col0 AS INTEGER ) FROM tab1
----
237
5056
6320

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - - 64 AS col0 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT ALL col1 + col2 * + ( col0 ) FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3961
SELECT ALL + ( col2 ) * - CAST( NULL AS SIGNED ) + + col1 - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + ( col2 ) * - CAST ( NULL AS INTEGER ) + + col1 - col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT ALL - 22 * col2 + - col0 DIV ( col2 ) - + col0 FROM tab0 AS cor0
----
-1894
-750
-92

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - 22 * col2 + - col0 / ( col2 ) - + col0 FROM tab0 AS cor0
----
-1894
-750
-92

query I rowsort
SELECT ALL + col0 + - col0 * col1 + col0 FROM tab1 AS cor0
----
-512
-72
-880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3964
SELECT DISTINCT + col2 + + cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT + col2 + + cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 + + col1 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) * 41 FROM tab0 cor0
----
1353
3362
41

query I rowsort
SELECT cor0.col1 + + col1 FROM tab2 cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT - + col0 * col0 DIV - col2 FROM tab0 cor0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-3968
SELECT - + col0 * col0 / - col2 FROM tab0 cor0
----
1225
17
96

query I rowsort
SELECT + + col1 * - col1 + 20 * + col0 - + 66 FROM tab1 AS cor0
----
-682
1114
1365

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query I rowsort
SELECT - - cor0.col1 + 90 FROM tab2 AS cor0
----
107
121
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * 54 col1 FROM tab1 AS cor0
----
-2916
-3078
-5184

query I rowsort
SELECT - cor0.col0 * - ( ( + col2 ) ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col2 * 30 FROM tab0 AS cor0
----
-2460
-30
-990

query I rowsort
SELECT DISTINCT 7 * col1 FROM tab2
----
119
217
413

onlyif mysql # use DIV operator for integer division
query I rowsort label-3976
SELECT - cor0.col1 DIV 77 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3976
SELECT - cor0.col1 / 77 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3977
SELECT - - cor0.col2 DIV + 43 + + col1 FROM tab1 AS cor0
----
11
15
27

skipif mysql # not compatible
query I rowsort label-3977
SELECT - - cor0.col2 / + 43 + + col1 FROM tab1 AS cor0
----
11
15
27

query I rowsort
SELECT + col2 * + col0 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + + 18 * + col2 FROM tab1 AS cor0
----
1026
1728
972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3980
SELECT ALL + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - col0 * 80 FROM tab1 AS cor0
----
-240
-5120
-6400

query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
25

query I rowsort
SELECT DISTINCT - ( 20 ) + + col2 FROM tab2 AS cor0
----
18
6
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * + col2 * cor0.col1 col1 FROM tab2 AS cor0
----
-119730
-51113
-5866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col2 FROM tab0, tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT + col0 * 15 AS col0 FROM tab2
----
105
1170
1185

query I rowsort
SELECT - 22 FROM tab2, tab2 cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT DISTINCT - col1 * + col1 + + tab1.col0 * + col2 AS col1 FROM tab1
----
-514
3548
7511

onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT - col1 DIV 37 FROM tab0 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3989
SELECT - col1 / 37 FROM tab0 cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 FROM tab1 cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3993
SELECT DISTINCT + - col2 DIV + 9 FROM tab0 AS cor0
----
-3
-9
0

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT + - col2 / + 9 FROM tab0 AS cor0
----
-3
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 * - col1 col2 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3995
SELECT + ( - col0 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT + ( - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab1.col0 * tab1.col0 AS col1 FROM tab1, tab0 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL 3 + - tab0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 442738b6f9002eedf3e08cf5a1318ce1

query I rowsort
SELECT ALL + col1 * - col1 * col2 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT col1 + col2 * col2 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4000
SELECT ALL - - col2 * + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - - col2 * + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * + 44 * + col2 FROM tab0 AS cor0
----
-124872
-328328
-4268

query I rowsort
SELECT - 19 + ( col0 ) + + ( col0 ) AS col2 FROM tab0
----
159
29
51

query I rowsort
SELECT 60 - - col0 FROM tab2
----
138
139
67

query I rowsort
SELECT DISTINCT 33 + 42 AS col0 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort
SELECT CAST ( cor0.col2 AS REAL ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col1 - 27 * + col1 FROM tab2 AS cor0
----
-1534
-442
-806

query I rowsort
SELECT 64 + + col0 AS col0 FROM tab1 cor0
----
128
144
67

query I rowsort
SELECT ALL - col1 * - col2 + col0 + 39 AS col1 FROM tab0 AS cor0
----
171
2901
7590

query I rowsort
SELECT + 22 + col2 AS col1 FROM tab0 cor0
----
104
23
55

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * - ( 97 ) + - col1 FROM tab2 AS cor0
----
-1666
-3038
-5782

query I rowsort
SELECT ALL - ( + col0 ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + col1 col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - col2 * col2 + col2 * + col0 AS col2 FROM tab2 cor0
----
-540
1352
1558

query I rowsort
SELECT DISTINCT + 39 + + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
125
130
136

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 * CAST ( col0 AS REAL ) + - col1 - + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-19670
-2547
-657534

query I rowsort
SELECT - + col2 + col2 * - col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + ( col2 ) * - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 44 col1 FROM tab2 AS cor0
----
44

query I rowsort
SELECT - - col2 + - col0 * 75 - + col2 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT + + cor0.col2 * + cor0.col1 + - 0 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + + col2 * + col1 * 38 AS col1 FROM tab2 AS cor0
----
24548
31806
58292

query I rowsort
SELECT - col0 * col1 + - col1 + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
2998
58
6627

onlyif mysql # use DIV operator for integer division
query I rowsort label-4023
SELECT ALL - + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - + col1 / col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT ALL + - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL + - col0 / - col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + - ( - ( - col2 ) ) * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT cor0.col2 * col0 + col0 * col0 * col0 - cor0.col2 FROM tab1 cor0
----
135
265735
519584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4028
SELECT DISTINCT CAST( NULL AS SIGNED ) * 74 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 74 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
NULL

query I rowsort
SELECT DISTINCT - + 95 + col1 FROM tab1 AS cor0
----
-69
-82
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4030
SELECT - col2 DIV - 63 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4030
SELECT - col2 / - 63 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4031
SELECT ALL - 59 + + col1 DIV col0 FROM tab1
----
-51
-59
-59

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL - 59 + + col1 / col0 FROM tab1
----
-51
-59
-59

query I rowsort
SELECT - 17 + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-117
-186
-693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 22 col1 FROM tab2 AS cor0
----
-22
-22
-22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4034
SELECT CAST( NULL AS SIGNED ) * - col0 + col1 + - col2 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT CAST ( NULL AS INTEGER ) * - col0 + col1 + - col2 * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 39 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT ( ( col1 ) ) * - col0 AS col1 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 + + col0 col1 FROM tab1
----
-22
39
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4038
SELECT DISTINCT + col0 + - col0 DIV + col2 AS col0 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT + col0 + - col0 / + col2 AS col0 FROM tab1
----
3
63
80

query I rowsort
SELECT - col1 - col2 AS col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT - cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4041
SELECT col2 DIV - ( - col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4041
SELECT col2 / - ( - col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT tab2.col0 + + col0 AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT + 15 * tab2.col1 FROM tab2
----
255
465
885

query I rowsort
SELECT col2 * + ( 39 ) AS col2 FROM tab0 cor0
----
1287
3198
39

query I rowsort
SELECT DISTINCT + 50 * - col2 FROM tab1 AS cor0
----
-2700
-2850
-4800

query I rowsort
SELECT DISTINCT col2 * + col0 * + tab1.col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - + ( - col1 ) * + col1 * col1 AS col0 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT - 67 + col1 * col1 FROM tab0 AS cor0
----
7329
8214
9342

query I rowsort
SELECT ALL + + 3 + col0 AS col2 FROM tab0 AS cor0
----
27
38
92

query I rowsort
SELECT DISTINCT col2 * col1 * 21 AS col1 FROM tab2
----
13566
17577
32214

query I rowsort
SELECT - col1 * - col1 + - 44 * 89 FROM tab0 AS cor0
----
3480
4365
5493

query I rowsort
SELECT 9 * col0 FROM tab2
----
63
702
711

query I rowsort
SELECT ALL - col2 + - col2 * - tab0.col2 AS col2 FROM tab0
----
0
1056
6642

query I rowsort
SELECT + 25 * - col2 * ( + cor0.col2 ) FROM tab1 AS cor0
----
-230400
-72900
-81225

query I rowsort
SELECT cor0.col0 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + col0 * - 43 + - col2 FROM tab1
----
-183
-2809
-3536

query I rowsort
SELECT DISTINCT + 48 + col0 FROM tab1
----
112
128
51

query I rowsort
SELECT ( - col2 ) * col1 * - 81 FROM tab2
----
124254
52326
67797

query I rowsort
SELECT - - col0 + - cor0.col1 * 87 + + col1 AS col1 FROM tab0 cor0
----
-7372
-7737
-8307

onlyif mysql # use DIV operator for integer division
query I rowsort label-4060
SELECT DISTINCT + + 53 DIV - col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT + + 53 / - col1 FROM tab0 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4061
SELECT + ( + col0 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT + ( + col0 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 - ( + cor1.col1 ) col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2107f3330e60f38d1eaa2f040554679e

query I rowsort
SELECT ALL - col1 * col2 * col1 FROM tab1
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * 9 * col1 + col0 * 30 + 53 col2 FROM tab1 AS cor0
----
11813
7733
845

onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT ALL col1 + cor0.col1 DIV col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL col1 + cor0.col1 / col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + col0 + 51 AS col2 FROM tab2 AS cor0
----
129
130
58

query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab2 cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 63 ) col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT DISTINCT ( - col2 ) * 69 + - col2 AS col0 FROM tab0
----
-2310
-5740
-70

query I rowsort
SELECT - tab2.col1 - - 79 FROM tab2, tab1 AS cor0
----
9 values hashing to 429439f7417caf3302a7e62dd8d1ff2b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT ALL + + col2 DIV col0 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL + + col2 / col0 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT DISTINCT - col1 * - 69 + - col0 + col2 AS col2 FROM tab2 AS cor0
----
1132
2159
4019

query I rowsort
SELECT DISTINCT - col1 + ( + col2 ) * col0 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4074
SELECT - + col0 * - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-4074
SELECT - + col0 * - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - cor0.col1 + - ( - col1 ) * + col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT + col0 + 13 FROM tab0 AS cor0
----
102
37
48

query I rowsort
SELECT DISTINCT + + cor0.col2 * - col1 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + - cor0.col0 * - 41 FROM tab2 cor0
----
287
3198
3239

onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT + col1 DIV + 58 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4079
SELECT + col1 / + 58 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT + col1 DIV - 34 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT + col1 / - 34 AS col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 + col0 + col1 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT - col2 * - col1 * + col2 - col2 * + tab0.col0 FROM tab0
----
604586
62
92862

query I rowsort
SELECT + + col2 + - col1 * + col0 + 12 * - col0 AS col0 FROM tab0 cor0
----
-2319
-3814
-9085

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab2
----
-14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4085
SELECT - - CAST( + col0 AS SIGNED ) * - col2 - - CAST( col1 * - col1 AS SIGNED ) FROM tab0 AS cor0
----
-15579
-8188
-9444

skipif mysql # not compatible
query I rowsort label-4085
SELECT - - CAST ( + col0 AS INTEGER ) * - col2 - - CAST ( col1 * - col1 AS INTEGER ) FROM tab0 AS cor0
----
-15579
-8188
-9444

query I rowsort
SELECT - ( 50 ) * - col0 - ( - 25 ) * - col0 AS col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT + cor0.col1 + + 76 FROM tab1 cor0
----
102
86
89

query I rowsort
SELECT - - ( col1 ) - - col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT 40 * col2 + - col1 + + col0 FROM tab1 AS cor0
----
2137
2334
3907

query I rowsort
SELECT + col1 * 5 - - col2 AS col2 FROM tab1 AS cor0
----
107
161
184

query I rowsort
SELECT + + col2 * col2 - - col0 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4092
SELECT ALL - CAST( 66 AS SIGNED ) FROM tab0 AS cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - CAST ( 66 AS INTEGER ) FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 * + col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - - col0 + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4095
SELECT - col0 * - col0 * + col0 + - CAST( NULL AS SIGNED ) * + cor0.col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT - col0 * - col0 * + col0 + - CAST ( NULL AS INTEGER ) * + cor0.col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4096
SELECT DISTINCT - 26 DIV col0 AS col1 FROM tab1 cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT - 26 / col0 AS col1 FROM tab1 cor0
----
-8
0

query I rowsort
SELECT ALL 40 + cor0.col1 AS col0 FROM tab0 AS cor0
----
126
131
137

query I rowsort
SELECT ALL - - 63 * col1 AS col1 FROM tab0 AS cor0
----
5418
5733
6111

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4099
SELECT - - ( col1 ) + - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT - - ( col1 ) + - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * 35 * cor0.col2 AS col2 FROM tab0 AS cor0
----
235340
35
38115

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4101
SELECT + + ( 88 ) * - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + + ( 88 ) * - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4102
SELECT ALL + ( col0 ) DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL + ( col0 ) / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 29 AS col2 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT - - ( col2 ) * col0 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - - ( + 2 ) * + col0 + + col1 AS col2 FROM tab0 cor0
----
134
167
269

query I rowsort
SELECT ALL - col0 * col0 - col1 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT ALL col2 * + 48 + + col0 AS col2 FROM tab1
----
2595
2800
4688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4108
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - + 16 AS col2 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT col0 * + 33 FROM tab0 AS cor0
----
1155
2937
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4111
SELECT ALL - CAST( NULL AS DECIMAL ) + 76 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL - CAST ( NULL AS REAL ) + 76 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col2 ) + tab0.col0 + + 2 AS col2 FROM tab0
----
173
38
59

query I rowsort
SELECT DISTINCT + ( 32 ) * + col2 AS col2 FROM tab2
----
1216
832
864

query I rowsort
SELECT - + 43 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
126
57
633

query I rowsort
SELECT - 63 * + cor0.col0 * - col2 FROM tab0 AS cor0
----
2205
459774
49896

query I rowsort
SELECT DISTINCT 1 FROM tab2, tab1 cor0
----
1

query I rowsort
SELECT ALL ( - ( cor0.col0 ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col2 + col1 FROM tab0 AS cor0
----
-2719
-7289
1

query I rowsort
SELECT col1 * + 32 - cor0.col1 AS col2 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT DISTINCT - col2 * col0 + - ( + cor0.col1 ) * cor0.col0 FROM tab2 AS cor0
----
-406
-4345
-6630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4121
SELECT 60 - + col0 DIV - 29 FROM tab0
----
60
61
63

skipif mysql # not compatible
query I rowsort label-4121
SELECT 60 - + col0 / - 29 FROM tab0
----
60
61
63

query I rowsort
SELECT ALL col2 + + 23 * + col1 AS col2 FROM tab0
----
2011
2175
2232

query I rowsort
SELECT - col1 + ( - 32 ) FROM tab1
----
-42
-45
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( + col2 ) + col2 col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL - col2 * - 83 + 65 FROM tab0 AS cor0
----
148
2804
6871

query I rowsort
SELECT ALL cor0.col0 * 19 FROM tab1 AS cor0
----
1216
1520
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + 97 col1 FROM tab2 AS cor0
----
-1649
-3007
-5723

onlyif mysql # use DIV operator for integer division
query I rowsort label-4128
SELECT ALL - - col1 DIV CAST( + col2 AS SIGNED ) + col0 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - - col1 / CAST ( + col2 AS INTEGER ) + col0 FROM tab0 AS cor0
----
132
26
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 * - col1 + + col0 * col1 col1 FROM tab2 AS cor0
----
12325
26164
95108

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col2 + tab0.col1 * + col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL col2 * col1 + col2 AS col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT DISTINCT - col2 * + col2 * - col0 + col1 FROM tab1 AS cor0
----
207946
737293
8774

query I rowsort
SELECT ALL + col2 - + col1 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4135
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - - col1 + ( col1 ) AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + col2 * + ( 90 ) + col2 AS col1 FROM tab1 AS cor0
----
4914
5187
8736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4138
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 - - ( col2 ) AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4140
SELECT + CAST( NULL AS SIGNED ) - ( col1 + + 82 ) / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT + CAST ( NULL AS INTEGER ) - ( col1 + + 82 ) / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * col2 - col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + - col0 + - col1 * col2 * - 40 FROM tab0 cor0
----
113496
298391
3845

query I rowsort
SELECT + + 16 * + cor0.col0 FROM tab1 cor0
----
1024
1280
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4144
SELECT + cor0.col0 / - CAST( NULL AS SIGNED ) + - 80 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4144
SELECT + cor0.col0 / - CAST ( NULL AS INTEGER ) + - 80 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + - ( - col2 ) col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 * col0 col2 FROM tab1 AS cor0
----
-1408
-1760
-66

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) + 63 FROM tab1 AS cor0
----
-1
-17
60

query I rowsort
SELECT DISTINCT - 17 + col0 * cor0.col2 FROM tab2 AS cor0
----
172
2011
2985

query I rowsort
SELECT + col0 * - ( col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col0 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL col0 * - col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT - col2 - 75 FROM tab1 AS cor0
----
-129
-132
-171

query I rowsort
SELECT ALL + - col0 + + 24 FROM tab2 AS cor0
----
-54
-55
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4154
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4154
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ( - tab2.col0 * - 65 ) FROM tab2
----
455
5070
5135

query I rowsort
SELECT DISTINCT 57 * col1 AS col2 FROM tab2
----
1767
3363
969

query I rowsort
SELECT - 5 + col0 AS col1 FROM tab1
----
-2
59
75

query I rowsort
SELECT 37 FROM tab1, tab0, tab2 cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT + col1 + + col0 - col0 AS col2 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4160
SELECT ALL - col1 DIV col2 + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL - col1 / col2 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT cor0.col2 * + col0 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
132
26222
598527

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - col2 )
----

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE tab0.col1 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col2 + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 * + col1 * col2 + col2 >= NULL
----

query I rowsort
SELECT DISTINCT col2 + col0 * + col0 * col0 FROM tab0 cor0
----
13857
42876
705051

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT ( NULL ) < col2
----

query I rowsort
SELECT col0 AS col0 FROM tab1 cor0 WHERE NULL <= col2
----

query I rowsort
SELECT DISTINCT cor0.col2 + - col0 * col2 * col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + cor0.col0 - cor0.col1 col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + col0 - - col2 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + - col0 * + col1 + + col0 + + col0 FROM tab1 AS cor0
----
-512
-72
-880

query I rowsort
SELECT DISTINCT + + col2 - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT col1 + col0 * + col0 + col2 * col0 * col1 FROM tab2
----
125795
57292
5939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * - col1 col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT - 48 * - col0 + - 93 AS col2 FROM tab2 AS cor0
----
243
3651
3699

onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT - col1 * cor0.col0 + col0 DIV col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4177
SELECT - col1 * cor0.col0 + col0 / col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col1 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT col0 * - col0 - col2 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT col0 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + col0 + - col0 * - col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL <> col2
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4184
SELECT 72 + col2 - + CAST( NULL AS DECIMAL ) * - ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT 72 + col2 - + CAST ( NULL AS REAL ) * - ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 85 * col2 + + col2 * + col1 FROM tab1 AS cor0
----
5415
5994
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col2 * col1 + 37 AS col2 FROM tab1 cor0
----
1285
1441
607

query I rowsort
SELECT ALL + 25 + col1 FROM tab1 cor0
----
35
38
51

query I rowsort
SELECT - col1 + col2 - col1 FROM tab2 AS cor0
----
-35
-92
4

query I rowsort
SELECT ALL + col1 * 52 * + 98 + col0 FROM tab2 AS cor0
----
157983
300742
86711

query I rowsort
SELECT ALL + col0 * 60 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT ALL + 85 + - col0 FROM tab0
----
-4
50
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT - ( + col1 ) DIV 11 + + col0 * col0 FROM tab2
----
47
6079
6240

skipif mysql # not compatible
query I rowsort label-4193
SELECT - ( + col1 ) / 11 + + col0 * col0 FROM tab2
----
47
6079
6240

query I rowsort
SELECT 28 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

onlyif mysql # use DIV operator for integer division
query I rowsort label-4195
SELECT ALL - col0 DIV + col1 + - col2 AS col1 FROM tab2
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - col0 / + col1 + - col2 AS col1 FROM tab2
----
-27
-27
-42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4196
SELECT col2 * - cor0.col2 + + CAST( NULL AS SIGNED ) * - 66 * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT col2 * - cor0.col2 + + CAST ( NULL AS INTEGER ) * - 66 * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 51 + col1 * col2 AS col2 FROM tab1
----
1299
1455
621

query I rowsort
SELECT 69 + + tab1.col1 * + col0 FROM tab1
----
1109
147
709

query I rowsort
SELECT ALL col1 + col0 + - 58 AS col1 FROM tab2
----
-20
38
79

query I rowsort
SELECT DISTINCT col0 * tab0.col2 * - tab0.col1 + - 51 FROM tab0
----
-3446
-664169
-68163

query I rowsort
SELECT ALL tab2.col0 - - tab2.col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + tab2.col2 + + col0 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT tab2.col0 * col1 - + col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT DISTINCT - tab2.col1 * col0 AS col0 FROM tab2 WHERE NOT col2 * col0 > ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + col0 + col0 AND col0
----

query I rowsort
SELECT col1 + col0 + col2 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL col1 * col1 * col1 - col1 FROM tab1
----
17550
2184
990

query I rowsort
SELECT + col0 * + tab2.col1 - col2 AS col1 FROM tab2
----
1305
190
4576

query III rowsort
SELECT * FROM tab2 WHERE + tab2.col1 - col0 * col1 NOT IN ( + col0 * col0 * col0 + col0 + tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT * FROM tab2 WHERE col1 < NULL
----

query I rowsort
SELECT col0 * col0 + col2 * col0 AS col1 FROM tab1
----
14080
171
7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-4213
SELECT ALL - tab0.col2 * tab0.col1 * col1 + - tab0.col2 DIV + col2 + col2 FROM tab0
----
-244036
-678961
-9409

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - tab0.col2 * tab0.col1 * col1 + - tab0.col2 / + col2 + col2 FROM tab0
----
-244036
-678961
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT ALL col1 * tab0.col2 DIV col0 FROM tab0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL col1 * tab0.col2 / col0 FROM tab0
----
118
2
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4215
SELECT ALL - tab2.col0 + + col2 DIV - col0 + + col0 * col1 DIV col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL - tab2.col0 + + col2 / - col0 + + col0 * col1 / col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT col0 * + col1 * col1 AS col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - col1 + tab1.col2 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT col1 + + col1 * col0 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL + col1 + + col0 * + col1 * col1 FROM tab2
----
22848
271577
6758

query I rowsort
SELECT + col2 - tab0.col2 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * col2 - tab0.col1 col2 FROM tab0
----
0
2752
7371

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 99 + - col0 AS col1 FROM tab1
----
19
35
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4225
SELECT - 92 DIV + col2 AS col0 FROM tab0
----
-1
-2
-92

skipif mysql # not compatible
query I rowsort label-4225
SELECT - 92 / + col2 AS col0 FROM tab0
----
-1
-2
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 * + cor0.col0 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 74cbabf2e3b3d0becc1b7a0f237217af

query I rowsort
SELECT DISTINCT 83 FROM tab1, tab0, tab2 AS cor0
----
83

query I rowsort
SELECT ALL - col0 * - tab2.col0 + - 64 FROM tab2
----
-15
6020
6177

query I rowsort
SELECT col0 * - col1 * 42 AS col0 FROM tab0
----
-142590
-340158
-86688

query I rowsort
SELECT + 17 + col1 * cor0.col1 FROM tab0 AS cor0
----
7413
8298
9426

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4232
SELECT ALL + col2 DIV col1 + + 11 FROM tab1 AS cor0
----
13
16
18

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + col2 / col1 + + 11 FROM tab1 AS cor0
----
13
16
18

query I rowsort
SELECT - col0 * ( + col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col1 * - col0 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2609
2838
8176

query I rowsort
SELECT - col2 * + col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL + - col2 + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 45 col1 FROM tab2 AS cor0
----
-14
14
28

query I rowsort
SELECT - + col1 - + 96 FROM tab2 cor0
----
-113
-127
-155

skipif mysql # not compatible
query I rowsort
SELECT ALL + - col1 + CAST ( col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col1 - ( - 79 ) AS col0 FROM tab0 cor0
----
-12
-18
-7

query I rowsort
SELECT ALL - col2 * - col2 + col0 * + col0 FROM tab0 AS cor0
----
1226
14645
1665

onlyif mysql # use DIV operator for integer division
query I rowsort label-4242
SELECT + - col1 DIV cor0.col0 + + 47 * - col0 FROM tab1 AS cor0
----
-149
-3008
-3760

skipif mysql # not compatible
query I rowsort label-4242
SELECT + - col1 / cor0.col0 + + 47 * - col0 FROM tab1 AS cor0
----
-149
-3008
-3760

query I rowsort
SELECT - - col1 * cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + ( + col2 ) col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4245
SELECT ALL - + col2 * - col2 + - 88 + - col0 DIV col2 FROM tab0 AS cor0
----
-122
1001
6635

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - + col2 * - col2 + - 88 + - col0 / col2 FROM tab0 AS cor0
----
-122
1001
6635

query I rowsort
SELECT DISTINCT 49 * - tab1.col2 + - tab1.col0 AS col2 FROM tab1
----
-2649
-2857
-4784

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4247
SELECT + col2 * - CAST( NULL AS SIGNED ) + 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT + col2 * - CAST ( NULL AS INTEGER ) + 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 37 col0 FROM tab0 AS cor0
----
126
61
72

query I rowsort
SELECT col1 * - col0 + ( - 69 ) + + col0 FROM tab1
----
-1029
-144
-645

onlyif mysql # use DIV operator for integer division
query I rowsort label-4250
SELECT ALL + - col1 + ( col2 ) * 27 DIV col1 FROM tab1 cor0
----
143
186
30

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + - col1 + ( col2 ) * 27 / col1 FROM tab1 cor0
----
143
186
30

query I rowsort
SELECT ALL col1 * - 70 + col2 FROM tab1 AS cor0
----
-1766
-643
-814

query I rowsort
SELECT DISTINCT col2 + + 12 * + cor0.col1 FROM tab1 AS cor0
----
177
252
366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 - col2 col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - 57 * - col2 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT DISTINCT 2 * col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - 24 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT - - ( - col1 ) + + col0 * + 46 FROM tab1 AS cor0
----
112
2934
3667

query I rowsort
SELECT ALL - 19 + col2 * + col2 + 9 * - col1 * + col1 FROM tab0 AS cor0
----
-65494
-67824
-84699

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4259
SELECT - - CAST( NULL AS DECIMAL ) + - col2 / cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT - - CAST ( NULL AS REAL ) + - col2 / cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col0 + 26 FROM tab1
----
35
4122
6426

query I rowsort
SELECT ALL - col0 * - 93 * - col0 FROM tab2 AS cor0
----
-4557
-565812
-580413

query I rowsort
SELECT DISTINCT - + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT + - 81 DIV + 45 AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4263
SELECT + - 81 / + 45 AS col1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 13 FROM tab1, tab1 cor0
----
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4265
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4265
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + - col0 * col1 - + col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT ALL col2 - - col0 DIV 13 FROM tab0 AS cor0
----
3
34
88

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL col2 - - col0 / 13 FROM tab0 AS cor0
----
3
34
88

query I rowsort
SELECT + col0 + - col1 * + tab1.col1 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT 31 + + col1 FROM tab1
----
41
44
57

query I rowsort
SELECT - 54 * col1 * + col1 FROM tab0 AS cor0
----
-399384
-447174
-508086

query I rowsort
SELECT - - cor0.col2 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 80 + col0 * col2 col0 FROM tab0 AS cor0
----
-45
712
7218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * col0 col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4274
SELECT ALL CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 30 * col2 * + col2 FROM tab1 AS cor0
----
-276480
-87480
-97470

query I rowsort
SELECT 48 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4277
SELECT ( tab1.col0 ) + + col1 DIV col2 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4277
SELECT ( tab1.col0 ) + + col1 / col2 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT ( 65 + col1 * + col0 ) AS col0 FROM tab2
----
1408
282
4667

query I rowsort
SELECT ALL + tab0.col2 * col2 AS col1 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + 21 AS col1 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT col0 * + cor0.col2 AS col0 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4283
SELECT DISTINCT + col2 + - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT + col2 + - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * col0 + ( cor0.col1 ) + col0 AS col2 FROM tab1 AS cor0
----
191
3722
7773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col1 + + cor0.col0 * col0 col0 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT DISTINCT - ( + col1 ) + - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + ( - 47 ) * col1 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT ALL - ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - ( - col1 ) * + cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - - col0 + 98 FROM tab2 AS cor0
----
105
176
177

query I rowsort
SELECT 75 FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT - col2 DIV 47 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT - col2 / 47 FROM tab0
----
-1
0
0

query I rowsort
SELECT - ( col1 ) * - col0 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - ( col2 ) * col0 + - ( 37 ) * - col2 * col1 FROM tab0 AS cor0
----
104214
268796
3554

query I rowsort
SELECT + - 19 * cor0.col0 FROM tab0 AS cor0
----
-1691
-456
-665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col0 FROM tab2 cor0
----
-89
-89
-89

query I rowsort
SELECT - cor0.col0 * + col2 + + col2 AS col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col2 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT + - ( - col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 * - col0 * 61 FROM tab1
----
39040
4758
63440

query I rowsort
SELECT DISTINCT + - 26 AS col1 FROM tab0 cor0
----
-26

query I rowsort
SELECT ALL + 37 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT 45 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4305
SELECT - col2 * col0 * - col0 + cor0.col0 * - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1134
156156
234156

skipif mysql # not compatible
query I rowsort label-4305
SELECT - col2 * col0 * - col0 + cor0.col0 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1134
156156
234156

query I rowsort
SELECT + col0 * 44 + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
11378
1637
3894

query I rowsort
SELECT - - col1 - + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 - + 29 FROM tab0 AS cor0
----
-111
-30
-62

query I rowsort
SELECT + col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + + col0 * - 41 AS col1 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT + col0 * ( + 18 ) + - col0 * 7 AS col0 FROM tab2 AS cor0
----
77
858
869

query I rowsort
SELECT DISTINCT + - col0 + + cor0.col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL col0 - 48 AS col0 FROM tab2 AS cor0
----
-41
30
31

query I rowsort
SELECT + + col2 * - cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT + col2 + + ( 61 ) FROM tab0 AS cor0
----
143
62
94

query I rowsort
SELECT ALL ( col2 ) * + col1 * + col1 AS col0 FROM tab1 cor0
----
16224
36504
5700

query I rowsort
SELECT col1 * - cor0.col2 + + cor0.col2 * col0 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT ALL + - 74 AS col2 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT - col1 - col0 * - col1 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) * - tab2.col0 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 897f7ed602fc86364e8d474cab107f0c

query I rowsort
SELECT - col2 * + col2 - col1 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL - 58 + col1 + - col1 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT - cor0.col0 + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL col1 + 55 + - col1 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) - - col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4327
SELECT DISTINCT col1 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT col1 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT - col2 DIV 25 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4328
SELECT - col2 / 25 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col1 * + 12 * - col2 AS col1 FROM tab1
----
-14976
-16848
-6840

query I rowsort
SELECT DISTINCT col2 + + col2 * - ( cor0.col1 * - col1 + - col0 * + col0 ) FROM tab0 AS cor0
----
10635
1328646
263109

query I rowsort
SELECT DISTINCT col0 + + cor0.col2 + ( 56 ) FROM tab2 AS cor0
----
160
173
90

query I rowsort
SELECT - col1 + - col1 + - 4 * col0 AS col0 FROM tab1 AS cor0
----
-276
-346
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4333
SELECT ALL - col0 * - cor0.col0 + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
35
4106
6413

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL - col0 * - cor0.col0 + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + 86 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7052
-86

query I rowsort
SELECT DISTINCT - 19 + - col2 AS col1 FROM tab1 cor0
----
-115
-73
-76

query I rowsort
SELECT + - 69 + - cor0.col0 + + ( + col0 ) * col2 AS col2 FROM tab0 cor0
----
-69
699
7140

onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT + col1 * cor0.col2 DIV col2 col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4337
SELECT + col1 * cor0.col2 / col2 col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + 21 + cor0.col0 FROM tab2 AS cor0
----
100
28
99

query I rowsort
SELECT DISTINCT - 19 + + col2 AS col1 FROM tab2 AS cor0
----
19
7
8

query I rowsort
SELECT + - ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 40 + - 30 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT ( + col1 ) + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - - cor0.col2 + col0 * 41 * col1 AS col0 FROM tab0 AS cor0
----
139196
332141
84657

query I rowsort
SELECT DISTINCT - + ( + col1 ) + - col0 * + col0 * + col0 FROM tab2 AS cor0
----
-374
-474611
-493056

query I rowsort
SELECT ALL col2 + + col1 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT 38 * col1 + col1 AS col0 FROM tab0 cor0
----
3354
3549
3783

onlyif mysql # use DIV operator for integer division
query I rowsort label-4347
SELECT 80 DIV - col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT 80 / - col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4348
SELECT ALL - + 68 + + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL - + 68 + + col1 / col2 AS col1 FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL + ( col2 ) * col2 + - cor0.col1 AS col0 FROM tab0 cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + - ( col0 ) * - col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) + + col1 * - col0 col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL col0 * + ( + 55 ) + - col0 * - col1 + + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
20915
3960
6545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 85 + col1 col1 FROM tab1 AS cor0
----
-1092
-2184
-840

query I rowsort
SELECT col1 * - ( cor0.col1 ) + - cor0.col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col1 + - 62 * col1 col0 FROM tab2 AS cor0
----
-1705
289
944

query I rowsort
SELECT DISTINCT + col0 - col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT cor0.col2 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
1427
617
698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + ( - 5 ) col0 FROM tab1 AS cor0
----
21
5
8

query I rowsort
SELECT + + cor0.col2 * - col1 + + cor0.col1 AS col2 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT - + col2 * ( 33 * col0 ) FROM tab2 AS cor0
----
-6237
-66924
-99066

query I rowsort
SELECT ALL - - col0 + + col2 * + 45 * col1 FROM tab2 AS cor0
----
29149
37672
69108

onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT ALL col0 DIV - 71 AS col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL col0 / - 71 AS col1 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT cor0.col2 + col0 * col0 FROM tab2 cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4364
SELECT - + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4364
SELECT - + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 45 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1579
691
882

query I rowsort
SELECT DISTINCT + col2 * col2 + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL ( - 50 ) + col0 AS col0 FROM tab2 AS cor0
----
-43
28
29

query I rowsort
SELECT DISTINCT + ( - col2 ) * + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + ( col2 ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + 32 + col2 * + cor0.col0 + ( - col0 + - col1 ) AS col2 FROM tab0 AS cor0
----
-65
714
7150

query I rowsort
SELECT DISTINCT col1 + tab1.col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL col1 + - 73 AS col1 FROM tab2
----
-14
-42
-56

query I rowsort
SELECT ALL 59 * 23 * + col1 + - col2 + cor0.col2 FROM tab2 AS cor0
----
23069
42067
80063

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 + - col0 col2 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT + col0 * - col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT 82 * - col0 * - col1 AS col0 FROM tab1 AS cor0
----
52480
6396
85280

query I rowsort
SELECT ALL - + 63 * - col0 FROM tab1 AS cor0
----
189
4032
5040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT ( + col1 ) * col0 + + 48 DIV + 21 AS col2 FROM tab0 AS cor0
----
2066
3397
8101

skipif mysql # not compatible
query I rowsort label-4378
SELECT ( + col1 ) * col0 + + 48 / + 21 AS col2 FROM tab0 AS cor0
----
2066
3397
8101

query I rowsort
SELECT + cor0.col0 + ( - col1 * - 96 ) FROM tab1 AS cor0
----
1024
1328
2499

query I rowsort
SELECT - cor0.col2 * + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + cor0.col2 * + col1 col0 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 54 * col0 col1 FROM tab2 AS cor0
----
-2646
-328536
-337014

query I rowsort
SELECT 38 FROM tab2, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - 42 * - col0 * + 14 FROM tab2 cor0
----
4116
45864
46452

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4386
SELECT col1 DIV ( - col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT col1 / ( - col2 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4387
SELECT col2 DIV + col0 - - ( + col2 * col0 ) FROM tab1 AS cor0
----
180
3648
7681

skipif mysql # not compatible
query I rowsort label-4387
SELECT col2 / + col0 - - ( + col2 * col0 ) FROM tab1 AS cor0
----
180
3648
7681

query I rowsort
SELECT col1 * - 22 AS col2 FROM tab0 cor0
----
-1892
-2002
-2134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 57 * - 72 col1 FROM tab1 cor0
----
-4024
-4040
-4101

query I rowsort
SELECT col2 * 78 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
227502
253479
718944

query I rowsort
SELECT + 42 + - tab0.col2 * 32 + col0 * col0 FROM tab0
----
-438
1235
5339

query I rowsort
SELECT DISTINCT 26 + + col1 + + col1 FROM tab0
----
198
208
220

onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT col1 * - col1 + + 63 DIV col0 AS col2 FROM tab0
----
-7394
-8281
-9408

skipif mysql # not compatible
query I rowsort label-4393
SELECT col1 * - col1 + + 63 / col0 AS col2 FROM tab0
----
-7394
-8281
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-4394
SELECT ALL - tab1.col2 DIV ( + col0 + tab1.col0 ) AS col2 FROM tab1
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - tab1.col2 / ( + col0 + tab1.col0 ) AS col2 FROM tab1
----
-9
0
0

query I rowsort
SELECT col1 * + 53 + ( tab1.col1 + col1 ) AS col0 FROM tab1
----
1430
550
715

query I rowsort
SELECT tab2.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - - col0 * 0 + + ( + col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - + ( col2 ) + - col0 FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4399
SELECT DISTINCT + col1 * col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT + col1 * col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 90 AS col1 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4401
SELECT - 89 * cor0.col2 + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT - 89 * cor0.col2 + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-4403
SELECT DISTINCT + col1 DIV - col2 col0 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT + col1 / - col2 col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + 89 + - col2 AS col0 FROM tab1 AS cor0
----
-7
32
35

query I rowsort
SELECT ALL - - cor0.col0 * 77 - 47 AS col2 FROM tab2 AS cor0
----
492
5959
6036

query I rowsort
SELECT 93 * col0 + col0 + col1 AS col0 FROM tab2
----
689
7391
7443

query I rowsort
SELECT - 75 * col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT ALL - 76 + - col0 FROM tab1 AS cor0
----
-140
-156
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4409
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col1 * col0 col2 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col1 * col0 col2 FROM tab1 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4410
SELECT CAST( NULL AS SIGNED ) + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT CAST ( NULL AS INTEGER ) + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT - ( + ( + tab1.col1 ) ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + 22 * + 87 AS col1 FROM tab2
----
1914

query I rowsort
SELECT + col1 + 95 FROM tab2
----
112
126
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT ALL ( 45 ) DIV col0 AS col0 FROM tab1
----
0
0
15

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL ( 45 ) / col0 AS col0 FROM tab1
----
0
0
15

query I rowsort
SELECT DISTINCT - 56 * col1 FROM tab2
----
-1736
-3304
-952

query I rowsort
SELECT ALL - tab2.col2 * - col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ( 42 ) + col0 FROM tab2 AS cor0
----
120
121
49

query I rowsort
SELECT ALL - col0 + + cor0.col1 * + col1 * col2 AS col2 FROM tab0 AS cor0
----
244044
678953
9374

query I rowsort
SELECT - cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - ( - col2 ) * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT ALL + - col1 DIV - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + - col1 / - col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 71 * + col1 FROM tab1
----
1846
710
923

query I rowsort
SELECT DISTINCT + ( - col2 ) * + 45 + col2 FROM tab2 AS cor0
----
-1144
-1188
-1672

onlyif mysql # use DIV operator for integer division
query I rowsort label-4425
SELECT DISTINCT ( - col2 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT ( - col2 ) / - col2 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 68 FROM tab1 AS cor0
----
68

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-4428
SELECT ALL - + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4429
SELECT ALL + CAST( NULL AS SIGNED ) * + 95 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + CAST ( NULL AS INTEGER ) * + 95 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 + 12 FROM tab1 cor0
----
108
66
69

query I rowsort
SELECT col1 * + col2 * 94 FROM tab0
----
266772
701428
9118

onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT ALL col2 * + col0 + + col0 DIV + col1 AS col1 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL col2 * + col0 + + col0 / + col1 AS col1 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 * ( + col0 ) col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col1 - - col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4435
SELECT DISTINCT + - col0 DIV + CAST( + col2 AS SIGNED ) + col1 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT + - col0 / + CAST ( + col2 AS INTEGER ) + col1 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT col2 + col0 * + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-13791
-42874
-704887

query I rowsort
SELECT ALL - - 8 + - col1 FROM tab0 AS cor0
----
-78
-83
-89

query I rowsort
SELECT DISTINCT + cor0.col1 * + 60 * col2 AS col1 FROM tab1 AS cor0
----
34200
74880
84240

query I rowsort
SELECT ALL - col0 + 64 AS col1 FROM tab1 AS cor0
----
-16
0
61

query I rowsort
SELECT DISTINCT - col0 * + col0 + + cor0.col0 - - col1 FROM tab2 AS cor0
----
-11
-5947
-6145

query I rowsort
SELECT ALL - ( + col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + - ( col0 ) * - col2 * - 3 AS col1 FROM tab0 AS cor0
----
-105
-21894
-2376

query I rowsort
SELECT DISTINCT + + col2 + col0 * - col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4444
SELECT ALL + ( + col0 ) + - col0 + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + ( + col0 ) + - col0 + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4445
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4445
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 + 70 FROM tab2
----
108
96
97

query I rowsort
SELECT DISTINCT 18 * ( + col2 ) - - 50 FROM tab0 cor0
----
1526
644
68

query I rowsort
SELECT + col0 * col1 * col2 + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
3360
664029
68088

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col1 + ( + col1 ) * col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT - col0 + + tab1.col2 + col1 * + 20 FROM tab1
----
193
276
571

onlyif mysql # use DIV operator for integer division
query I rowsort label-4452
SELECT - 7 DIV + col1 + - col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4452
SELECT - 7 / + col1 + - col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL + col0 * - 57 AS col0 FROM tab2
----
-399
-4446
-4503

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4454
SELECT + CAST( + ( + col0 ) AS SIGNED ) * col1 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-4454
SELECT + CAST ( + ( + col0 ) AS INTEGER ) * col1 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + - col1 col0 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT ALL + col1 + - tab2.col0 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT + ( 44 ) * + col2 + - ( col1 ) * - col0 FROM tab0
----
11707
3439
3516

query I rowsort
SELECT - 31 + col0 * + col0 FROM tab2
----
18
6053
6210

query I rowsort
SELECT 26 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT ALL + + col1 * + col0 + - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT col0 + col1 * + ( col1 * - col2 ) + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-16157
-36527
-5646

query I rowsort
SELECT DISTINCT - col2 * - col1 * - 98 FROM tab0
----
-278124
-731276
-9506

query I rowsort
SELECT ALL - 17 * - 48 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 48462613363f2c740d5a7ef5958a64ae

query I rowsort
SELECT + + 42 + + col2 AS col1 FROM tab1 AS cor0
----
138
96
99

query I rowsort
SELECT ALL 97 + col0 * 68 + - col2 FROM tab2 cor0
----
5375
5431
546

query I rowsort
SELECT DISTINCT + 48 * - col0 AS col1 FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT col1 * + col0 AS col2 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT ALL - col1 DIV + col0 + ( + cor0.col0 ) FROM tab2 cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - col1 / + col0 + ( + cor0.col0 ) FROM tab2 cor0
----
3
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4470
SELECT + ( col1 ) DIV - ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4470
SELECT + ( col1 ) / - ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + ( col1 ) * + 41 + col2 AS col2 FROM tab1 AS cor0
----
1120
467
629

query I rowsort
SELECT tab0.col2 * 51 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 40969e2f53cd2fdc45fa258406264bbb

query I rowsort
SELECT - 6 * - col2 FROM tab0
----
198
492
6

query I rowsort
SELECT col1 * + tab0.col2 * + ( + 50 ) AS col2 FROM tab0
----
141900
373100
4850

query I rowsort
SELECT - + 14 - col1 AS col0 FROM tab0 AS cor0
----
-100
-105
-111

query I rowsort
SELECT ALL + 63 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
37
50
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-4478
SELECT cor0.col2 DIV 73 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-4478
SELECT cor0.col2 / 73 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT + col2 + - 99 + col1 FROM tab0 AS cor0
----
-1
20
74

query I rowsort
SELECT - - col1 + - col1 * - col0 * col0 AS col1 FROM tab1 cor0
----
260
40970
83213

query I rowsort
SELECT + + col2 * - cor0.col2 + 97 * col1 FROM tab1 cor0
----
-2279
-394
-7955

query I rowsort
SELECT ALL - cor0.col0 * col0 + col1 * col0 FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT - 20 * - col0 FROM tab1 AS cor0
----
1280
1600
60

query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 - + col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL 45 - + col2 FROM tab0 AS cor0
----
-37
12
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4486
SELECT ALL + CAST( NULL AS SIGNED ) * - 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + CAST ( NULL AS INTEGER ) * - 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col0 ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col1 + 4 FROM tab0 AS cor0
----
101
90
95

query I rowsort
SELECT col1 + col1 * cor0.col0 * - col1 FROM tab2 AS cor0
----
-22814
-271459
-6696

query I rowsort
SELECT + + ( + 97 ) * cor0.col1 FROM tab0 AS cor0
----
8342
8827
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4491
SELECT - - CAST( col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4491
SELECT - - CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 - + col2 col1 FROM tab1 AS cor0
----
-22
-25
-64

query I rowsort
SELECT + - ( cor0.col0 ) + ( + col0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4494
SELECT - ( col0 ) DIV col2 + - 67 FROM tab0
----
-102
-67
-68

skipif mysql # not compatible
query I rowsort label-4494
SELECT - ( col0 ) / col2 + - 67 FROM tab0
----
-102
-67
-68

query I rowsort
SELECT ( 33 ) * - col0 AS col1 FROM tab0
----
-1155
-2937
-792

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab2 cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab1 AS cor2
----
54
57
96

query I rowsort
SELECT + - col0 * 48 AS col2 FROM tab2 cor0
----
-336
-3744
-3792

query I rowsort
SELECT ALL + - col0 * - col2 + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT - + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 54 + - col2 * col2 - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1298
-1404
-2834

query I rowsort
SELECT DISTINCT + 87 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-7515
-7999
-8440

query I rowsort
SELECT DISTINCT + 68 * cor0.col2 * + 83 AS col0 FROM tab0, tab1 AS cor0
----
304776
321708
541824

query I rowsort
SELECT + 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f

query I rowsort
SELECT + 18 * + col0 * - 83 AS col1 FROM tab0 AS cor0
----
-132966
-35856
-52290

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 50c4b0a13fc95d13442dcf4b04857ce8

query I rowsort
SELECT - col2 * col0 + col1 * + col1 * col1 FROM tab1 AS cor0
----
-2648
-5483
17414

skipif mysql # not compatible
query I rowsort
SELECT cor1.col0 * - CAST ( 26 AS REAL ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 727176b535e36370f08c4d6340937b1d

query I rowsort
SELECT 17 * tab0.col1 FROM tab0
----
1462
1547
1649

query I rowsort
SELECT - col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + + 65 * + col0 * 27 FROM tab0 AS cor0
----
156195
42120
61425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col2 * - col0 col0 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( + col2 ) - + col0 col2 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT + col0 * 40 AS col2 FROM tab0 cor0
----
1400
3560
960

query I rowsort
SELECT col1 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + tab1.col1 + + tab1.col2 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d091f4383dddbc092261e593dd3c3dac

query I rowsort
SELECT - 70 * col1 FROM tab2
----
-1190
-2170
-4130

query I rowsort
SELECT col1 * - tab2.col2 + col2 + - 9 * + col0 AS col2 FROM tab2
----
-1319
-2210
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col0 * + col2 * - col0 + cor0.col2 * ( col1 ) * - col0 + col1 FROM tab2 AS cor0
----
-277777
-288175
-7151

query I rowsort
SELECT - - col1 * 5 AS col0 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT DISTINCT cor0.col1 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4522
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT DISTINCT col2 + + col2 * 19 FROM tab2
----
520
540
760

query I rowsort
SELECT col0 + + tab2.col2 * + col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT col2 * 53 * tab1.col0 FROM tab1
----
193344
407040
8586

query I rowsort
SELECT ALL col0 * col1 * + 67 AS col2 FROM tab2
----
14539
308334
89981

query I rowsort
SELECT + tab0.col1 - tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * 89 + - 57 FROM tab0 AS cor0
----
7597
8042
8576

query I rowsort
SELECT DISTINCT - cor0.col2 + 65 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
3453
3584
6064

query I rowsort
SELECT - tab0.col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT ALL 39 FROM tab2, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT + col0 + + col1 / + col0 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT + col0 + + col1 / + col0 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col2 - col1 FROM tab0
----
-100
-139
-193

query I rowsort
SELECT ALL 47 AS col0 FROM tab2
----
47
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4535
SELECT col1 DIV col1 - - col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4535
SELECT col1 / col1 - - col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT + 24 + + col1 FROM tab2 cor0
----
41
55
83

query I rowsort
SELECT + + col1 * + col1 - col2 AS col2 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT DISTINCT + + 21 - col2 * - col0 FROM tab0 cor0
----
56
7319
813

onlyif mysql # use DIV operator for integer division
query I rowsort label-4539
SELECT - + 67 + - cor0.col0 DIV - 96 FROM tab1 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-4539
SELECT - + 67 + - cor0.col0 / - 96 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT ALL ( col2 ) + ( cor0.col1 * - col1 ) FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT + cor0.col2 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT + col1 * - cor0.col1 + + ( - 53 ) + + col0 FROM tab0 AS cor0
----
-7425
-8245
-9427

query I rowsort
SELECT ALL + - col1 + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col1 * col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL cor0.col2 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4546
SELECT DISTINCT col2 * col2 * CAST( - col0 + + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
13448
62
67518

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT col2 * col2 * CAST ( - col0 + + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
13448
62
67518

query I rowsort
SELECT ALL + 87 + + col1 AS col0 FROM tab2 AS cor0
----
104
118
146

query I rowsort
SELECT ALL + - col1 - - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab1, tab2 AS cor0
----
38

query I rowsort
SELECT ALL + - 47 * - cor0.col1 - + col2 AS col2 FROM tab2 AS cor0
----
1430
2747
761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) * + col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + 69 + - col0 - col2 FROM tab2 AS cor0
----
-103
-173
-186

query I rowsort
SELECT ALL + - 94 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT 81 * col1 + + 22 AS col0 FROM tab2 AS cor0
----
1399
2533
4801

onlyif mysql # use DIV operator for integer division
query I rowsort label-4556
SELECT DISTINCT + col0 DIV + ( + col2 ) + col1 col0 FROM tab1
----
11
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT + col0 / + ( + col2 ) + col1 col0 FROM tab1
----
11
13
26

query I rowsort
SELECT - + col0 + - col0 * ( 77 ) * - col1 FROM tab0 AS cor0
----
158904
261380
623534

query I rowsort
SELECT + 7 * col0 + tab2.col2 FROM tab2
----
572
591
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4559
SELECT CAST( NULL AS SIGNED ) * tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT CAST ( NULL AS INTEGER ) * tab2.col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 75 * - 16 + col0 * col1 FROM tab0
----
3264
4595
9299

query I rowsort
SELECT ALL 65 + + tab0.col2 FROM tab0
----
147
66
98

query I rowsort
SELECT + 80 + 35 AS col1 FROM tab2
----
115
115
115

query I rowsort
SELECT + - col0 * 27 AS col2 FROM tab2 AS cor0
----
-189
-2106
-2133

onlyif mysql # use DIV operator for integer division
query I rowsort label-4564
SELECT + col2 DIV - 26 FROM tab1 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-4564
SELECT + col2 / - 26 FROM tab1 AS cor0
----
-2
-2
-3

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 * col2 + - 18 * cor0.col2 * - col0 FROM tab2 AS cor0
----
3213
34476
51034

skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * CAST ( ( col0 ) AS REAL ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col0 * + col2 * - col0 - - tab2.col2 FROM tab2
----
-1296
-158158
-237120

query I rowsort
SELECT - 93 * col0 + ( col0 + col2 ) AS col0 FROM tab1
----
-222
-5831
-7264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 * col0 col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + tab1.col0 - ( + col2 ) FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL col2 * + ( + col0 ) + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - + col1 * col2 + - 72 AS col2 FROM tab1 cor0
----
-1320
-1476
-642

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4575
SELECT ALL + + cor0.col0 + + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + + cor0.col0 + + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - col2 + - col2 + col2 * col1 FROM tab1
----
1056
1296
456

onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT DISTINCT col0 + - 13 DIV 85 AS col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT col0 + - 13 / 85 AS col1 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT ALL - col0 + 42 DIV 42 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - col0 + 42 / 42 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT col0 - 14 * - col2 AS col2 FROM tab1 AS cor0
----
1424
759
862

query I rowsort
SELECT + - 21 + 92 FROM tab1 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 + col1 col2 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 51 * tab0.col1 + tab0.col0 col1 FROM tab0
----
-144714
-380473
-4912

onlyif mysql # use DIV operator for integer division
query I rowsort label-4583
SELECT - - tab0.col0 DIV tab0.col2 + tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 37a9151a88ea1b4326b8c97d888660e8

skipif mysql # not compatible
query I rowsort label-4583
SELECT - - tab0.col0 / tab0.col2 + tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 37a9151a88ea1b4326b8c97d888660e8

query I rowsort
SELECT ALL - cor1.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT - col2 DIV - cor0.col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4585
SELECT - col2 / - cor0.col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL + + col1 * - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT tab0.col0 * 98 FROM tab0
----
2352
3430
8722

query I rowsort
SELECT + col2 * col1 * col2 - cor0.col1 FROM tab1 AS cor0
----
119795
32480
75790

onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT + + 65 DIV col0 - - cor0.col0 FROM tab1 cor0
----
24
65
80

skipif mysql # not compatible
query I rowsort label-4589
SELECT + + 65 / col0 - - cor0.col0 FROM tab1 cor0
----
24
65
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4590
SELECT DISTINCT + col2 * col2 + - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1406
650
702

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT + col2 * col2 + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT col0 + + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT 50 * col2 AS col2 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT DISTINCT + 56 + col2 FROM tab2 AS cor0
----
82
83
94

query I rowsort
SELECT DISTINCT - col0 * col2 - ( cor0.col2 ) FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col2 FROM tab0 cor0
----
59
59
59

query I rowsort
SELECT DISTINCT col0 * 89 FROM tab1 AS cor0
----
267
5696
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT DISTINCT + cor0.col2 * + col2 + + col2 DIV col0 FROM tab0 AS cor0
----
1
1090
6724

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT + cor0.col2 * + col2 + + col2 / col0 FROM tab0 AS cor0
----
1
1090
6724

query I rowsort
SELECT + col0 + 99 FROM tab1 AS cor0
----
102
163
179

query I rowsort
SELECT ALL col0 * - col2 * + col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + col0 * ( 88 ) FROM tab1 AS cor0
----
264
5632
7040

query I rowsort
SELECT ALL + 95 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4602
SELECT + + col1 + - CAST( NULL AS SIGNED ) * col1 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT + + col1 + - CAST ( NULL AS INTEGER ) * col1 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab1.col2 * cor0.col0 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to aeeeb4bec4be16eaf92fcfb414a1ef1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4604
SELECT - ( cor0.col1 ) + col2 DIV - 25 col0 FROM tab2 AS cor0
----
-18
-32
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4604
SELECT - ( cor0.col1 ) + col2 / - 25 col0 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT ALL 68 + col0 FROM tab1
----
132
148
71

query I rowsort
SELECT DISTINCT - ( - col2 ) + + ( - col2 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT 23 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT 24 + + col0 + col0 FROM tab1
----
152
184
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4609
SELECT + col2 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-4609
SELECT + col2 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL 34 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # use DIV operator for integer division
query I rowsort label-4611
SELECT ALL + col1 + + ( ( col1 ) ) + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL + col1 + + ( ( col1 ) ) + col2 / col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + col0 * - 65 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-12292
-131898
-195209

query I rowsort
SELECT col1 + + cor0.col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col0 * 16 FROM tab2 cor0
----
-112
-1248
-1264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * 67 + col0 * - col0 col2 FROM tab2 cor0
----
-11310
-11534
-518

query I rowsort
SELECT + 6 FROM tab2, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4617
SELECT CAST( NULL AS SIGNED ) + tab0.col2 * - col0 - - 50 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT CAST ( NULL AS INTEGER ) + tab0.col2 * - col0 - - 50 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4618
SELECT + CAST( NULL AS SIGNED ) * - col1 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT + CAST ( NULL AS INTEGER ) * - col1 * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab0.col2 * tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908

query I rowsort
SELECT ALL col1 - - 81 AS col0 FROM tab1
----
107
91
94

query I rowsort
SELECT - cor0.col2 + col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT col2 - - 9 AS col2 FROM tab1 AS cor0
----
105
63
66

query I rowsort
SELECT + + ( + 17 ) * - col2 + 57 AS col0 FROM tab0 AS cor0
----
-1337
-504
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT col1 DIV + cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-4624
SELECT col1 / + cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT - col0 + col2 * - 86 AS col0 FROM tab1 cor0
----
-4647
-4966
-8336

query I rowsort
SELECT + - col0 * + col1 * - 6 AS col0 FROM tab2 AS cor0
----
1302
27612
8058

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4627
SELECT DISTINCT - - ( col0 ) * + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT - - ( col0 ) * + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL col0 + col1 * cor0.col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + - 77 + col1 + col2 * col0 AS col1 FROM tab1 AS cor0
----
111
3581
7616

query I rowsort
SELECT DISTINCT col2 + + col0 - col1 * - ( col2 ) FROM tab1 AS cor0
----
1424
1461
691

query I rowsort
SELECT - 89 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + + cor0.col2 * col1 - - col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + - col0 * - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - 28 + col2 AS col2 FROM tab0 AS cor0
----
-27
5
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - - col0 col1 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4637
SELECT DISTINCT - col2 + + col1 DIV - col2 AS col1 FROM tab0 cor0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT - col2 + + col1 / - col2 AS col1 FROM tab0 cor0
----
-35
-83
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4638
SELECT - - col2 * - cor0.col1 + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-4638
SELECT - - col2 * - cor0.col1 + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * 37 + - ( + col2 ) + + ( + col2 ) col2 FROM tab0 cor0
----
1221
3034
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-4640
SELECT DISTINCT + col0 * col0 + + 31 DIV + col1 FROM tab2
----
50
6084
6242

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT + col0 * col0 + + 31 / + col1 FROM tab2
----
50
6084
6242

query I rowsort
SELECT + 69 * col2 * - ( col1 * col1 ) AS col0 FROM tab1
----
-1119456
-2518776
-393300

query I rowsort
SELECT - 42 * col2 FROM tab0
----
-1386
-3444
-42

query I rowsort
SELECT ALL - + 92 AS col1 FROM tab2 AS cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col2 FROM tab1 AS cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * 15 col1 FROM tab0 AS cor0
----
-1290
-1365
-1455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col1 FROM tab1 AS cor0
----
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT ALL - + 64 DIV cor0.col1 + + col1 FROM tab2 AS cor0
----
14
29
58

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - + 64 / cor0.col1 + + col1 FROM tab2 AS cor0
----
14
29
58

query I rowsort
SELECT ALL + - 5 * - 11 AS col2 FROM tab1 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT - + col0 DIV col2 + 95 FROM tab1 AS cor0
----
94
95
95

skipif mysql # not compatible
query I rowsort label-4650
SELECT - + col0 / col2 + 95 FROM tab1 AS cor0
----
94
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col1 FROM tab0 cor0
----
92
92
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT DISTINCT + ( tab2.col0 ) - - tab2.col2 DIV 10 AS col0 FROM tab2
----
80
82
9

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT + ( tab2.col0 ) - - tab2.col2 / 10 AS col0 FROM tab2
----
80
82
9

query I rowsort
SELECT + 71 FROM tab0, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL ( + col1 ) * - col1 * - col1 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT ALL + ( - 56 ) AS col0 FROM tab1
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + col0 + + tab0.col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + + col1 * - 24 + + col0 AS col1 FROM tab2 cor0
----
-1338
-329
-737

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4658
SELECT DISTINCT - + col1 * CAST( col2 AS SIGNED ) + + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT - + col1 * CAST ( col2 AS INTEGER ) + + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT col0 - 26 FROM tab2 AS cor0
----
-19
52
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + + col2 col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT ALL + col2 * + col1 * col1 + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
244069
679043
9410

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + col2 * + col1 * col1 + col1 / col1 AS col0 FROM tab0 AS cor0
----
244069
679043
9410

query I rowsort
SELECT ALL - col1 * - tab0.col0 AS col1 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * col1 col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT + 36 DIV col0 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-4664
SELECT + 36 / col0 FROM tab2 AS cor0
----
0
0
5

query I rowsort
SELECT DISTINCT - col1 * col1 + 56 FROM tab1 AS cor0
----
-113
-44
-620

query I rowsort
SELECT + - ( col1 ) * ( col1 + col1 ) * - col2 FROM tab0 AS cor0
----
1358084
18818
488136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 39 col2 FROM tab0 AS cor0
----
47
52
58

query I rowsort
SELECT ALL cor0.col1 * col2 + + 36 * + cor0.col0 FROM tab2 cor0
----
1089
3490
4342

onlyif mysql # use DIV operator for integer division
query I rowsort label-4669
SELECT - col1 DIV CAST( - 88 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT - col1 / CAST ( - 88 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * + tab1.col0 AS col1 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col1 col2 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT + col2 - + col1 AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT + ( + 2 ) FROM tab0 AS cor0
----
2
2
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4675
SELECT ( - ( - col1 ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT ( - ( - col1 ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 81 * - col2 + cor0.col0 FROM tab0 cor0
----
116
2697
6731

query I rowsort
SELECT - 95 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT + col2 + + col0 * col0 DIV - col2 FROM tab1 AS cor0
----
-14
30
54

skipif mysql # not compatible
query I rowsort label-4678
SELECT + col2 + + col0 * col0 / - col2 FROM tab1 AS cor0
----
-14
30
54

query I rowsort
SELECT ALL tab2.col1 * tab2.col1 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 66d12b13327233058113a26801f3f4bd

query I rowsort
SELECT tab0.col1 * tab0.col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - col1 * - cor0.col1 * + col1 + cor0.col2 * + col0 + - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
17660
4008
8837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + - col1 col0 FROM tab1 cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT col1 * + col1 * - tab1.col2 AS col2 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT CAST( + col2 + - col2 AS SIGNED ) * col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4684
SELECT CAST ( + col2 + - col2 AS INTEGER ) * col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 96 * col0 * + tab0.col0 AS col1 FROM tab0
----
117600
55296
760416

onlyif mysql # use DIV operator for integer division
query I rowsort label-4686
SELECT + col1 + - col1 DIV col2 + 12 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
1970
43786
92173

skipif mysql # not compatible
query I rowsort label-4686
SELECT + col1 + - col1 / col2 + 12 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
1970
43786
92173

query I rowsort
SELECT - ( + col1 ) + + col1 * - col0 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT tab1.col0 + - tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1c0f12b2ac8c8b522b92205460500f94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 * col0 col1 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT + col2 + - 83 * - col1 AS col1 FROM tab2 AS cor0
----
1449
2600
4923

query I rowsort
SELECT + 57 * col1 + col2 FROM tab0 AS cor0
----
4935
5269
5530

query I rowsort
SELECT ALL col2 + - ( - col1 ) FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4693
SELECT ALL 51 * - col2 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL 51 * - col2 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT + ( - col2 ) - - col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4695
SELECT - ( col1 ) * + col1 * CAST( NULL AS SIGNED ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4695
SELECT - ( col1 ) * + col1 * CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * ( + 2 * + col2 ) FROM tab1
----
1140
2496
2808

query I rowsort
SELECT 26 + - ( col0 + col0 * - col0 ) FROM tab2
----
6032
6188
68

query I rowsort
SELECT DISTINCT col0 + - col1 * - col1 FROM tab1
----
164
249
679

query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT - - cor0.col2 * - cor0.col1 * col1 + ( + col1 ) FROM tab0 cor0
----
-243982
-678951
-9312

query I rowsort
SELECT + cor0.col0 * + 31 + cor0.col0 FROM tab1 AS cor0
----
2048
2560
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4702
SELECT DISTINCT ( + col0 ) * col2 + + ( - col0 ) + tab1.col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT ( + col0 ) * col2 + + ( - col0 ) + tab1.col1 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + 39 + col1 FROM tab2 AS cor0
----
56
70
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col0 FROM tab0
----
26

query I rowsort
SELECT ALL 38 AS col2 FROM tab2
----
38
38
38

query I rowsort
SELECT DISTINCT - - col0 * + 30 AS col0 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT col1 + 26 * - col1 AS col1 FROM tab1 AS cor0
----
-250
-325
-650

query I rowsort
SELECT - 76 + col1 AS col0 FROM tab1 AS cor0
----
-50
-63
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4709
SELECT + col0 * 1 DIV + col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4709
SELECT + col0 * 1 / + col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * 98 + ( col1 ) - + tab0.col0 AS col0 FROM tab0
----
160
3296
8038

onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT + tab0.col0 * col1 DIV + col1 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4711
SELECT + tab0.col0 * col1 / + col1 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + + col2 + col0 + col0 AS col2 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT 0 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL + col0 + - ( + 26 + cor0.col1 ) * ( 11 ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
37446
4396
73008

query I rowsort
SELECT + col0 * + ( 80 + col2 ) FROM tab2 AS cor0
----
749
8268
9322

query I rowsort
SELECT DISTINCT + + col1 * - 6 FROM tab0 cor0
----
-516
-546
-582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4718
SELECT DISTINCT col1 + + CAST( col0 AS SIGNED ) * col2 FROM tab1 AS cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT col1 + + CAST ( col0 AS INTEGER ) * col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4719
SELECT ALL + + col1 * ( col0 ) DIV col2 AS col1 FROM tab1 cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + + col1 * ( col0 ) / col2 AS col1 FROM tab1 cor0
----
1
10
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT DISTINCT + col0 + - 76 DIV + 64 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT + col0 + - 76 / + 64 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT col2 + + 40 FROM tab0
----
122
41
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4722
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) / col2 - col0 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) / col2 - col0 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + + col2 * 75 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT DISTINCT - - col0 * + 52 - + col0 AS col0 FROM tab1 AS cor0
----
153
3264
4080

query I rowsort
SELECT - - 95 + col0 AS col2 FROM tab0 AS cor0
----
119
130
184

query I rowsort
SELECT - ( col1 ) - col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + - ( - col0 ) * col2 * col1 + col0 * - col1 FROM tab2 cor0
----
115050
49691
5642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 62 + col0 col0 FROM tab1 AS cor0
----
-59
18
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4729
SELECT CAST( NULL AS SIGNED ) - + col2 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT CAST ( NULL AS INTEGER ) - + col2 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 * + 60 + + col0 FROM tab2 AS cor0
----
1627
1638
2359

query I rowsort
SELECT DISTINCT col0 + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT col0 * col2 + - col1 - + col2 AS col1 FROM tab1 cor0
----
3581
7571
82

query I rowsort
SELECT ALL - col0 - ( - col1 + - col1 ) AS col2 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT ALL - + ( - cor0.col1 ) + col2 * cor0.col0 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT DISTINCT - - col2 + + col1 * - col1 DIV - col1 FROM tab0 cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT - - col2 + + col1 * - col1 / - col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL ( col2 + + col0 ) AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - col2 * + col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - 24 * + col2 AS col0 FROM tab2 cor0
----
-624
-648
-912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4739
SELECT DISTINCT + cor0.col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + cor0.col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT ALL + - col0 * col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + col0 * col0 + col2 + col2 FROM tab0 AS cor0
----
1227
642
8085

onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT DISTINCT - col2 * + col2 + cor0.col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-2915
-3248
-9215

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT - col2 * + col2 + cor0.col0 / col0 AS col0 FROM tab1 AS cor0
----
-2915
-3248
-9215

query I rowsort
SELECT ALL col2 + col2 * + ( - col1 ) AS col2 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT - col0 + - col1 * + col2 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT + 63 * - col0 + - col0 FROM tab2
----
-448
-4992
-5056

query I rowsort
SELECT + col2 * - col2 - 24 * col0 * + col1 FROM tab0
----
-201100
-50625
-81481

query I rowsort
SELECT col2 * col2 + col1 * col1 AS col0 FROM tab2
----
1690
1733
4157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4748
SELECT - col1 * col1 + CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT - col1 * col1 + CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col1 + + col0 AS col2 FROM tab1
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 col2 FROM tab2, tab0 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col2 + col1 + + col0 FROM tab2
----
134
163
65

query I rowsort
SELECT DISTINCT col1 * + col0 + - col2 * col2 FROM tab1
----
-2609
-2838
-8176

query I rowsort
SELECT - - cor0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 30 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT col0 + + col1 DIV - col2 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-4755
SELECT col0 + + col1 / - col2 FROM tab0 AS cor0
----
-62
22
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * + 33 + + col0 col1 FROM tab0 AS cor0
----
1113
2795
68

query I rowsort
SELECT ALL - cor0.col2 * col2 FROM tab2 cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4758
SELECT - - col1 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4758
SELECT - - col1 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + - col1 col0 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL - 32 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4761
SELECT ALL col2 * tab2.col0 DIV ( tab2.col0 + ( + 12 ) ) FROM tab2
----
22
32
9

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL col2 * tab2.col0 / ( tab2.col0 + ( + 12 ) ) FROM tab2
----
22
32
9

query I rowsort
SELECT col2 + - col0 * 86 AS col1 FROM tab1
----
-204
-5447
-6784

onlyif mysql # use DIV operator for integer division
query I rowsort label-4763
SELECT ALL - col0 DIV + ( cor0.col0 ) + + col2 * - 94 - 14 FROM tab0 AS cor0
----
-109
-3117
-7723

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - col0 / + ( cor0.col0 ) + + col2 * - 94 - 14 FROM tab0 AS cor0
----
-109
-3117
-7723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4764
SELECT DISTINCT + col1 + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT + col1 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - col1 * + ( 30 ) AS col1 FROM tab0 AS cor0
----
-2580
-2730
-2910

query I rowsort
SELECT ALL - - col0 * cor0.col2 * + col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT 63 DIV - 14 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-4767
SELECT 63 / - 14 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - 49 * + col1 FROM tab2 AS cor0
----
-1519
-2891
-833

query I rowsort
SELECT - + ( 19 ) FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL - 53 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-27
-40
-43

query I rowsort
SELECT ALL 23 AS col2 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4773
SELECT - 4 * - col0 DIV col0 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4773
SELECT - 4 * - col0 / col0 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT ALL + - 22 * - 16 + + col1 * col2 FROM tab0 cor0
----
3190
449
7814

query I rowsort
SELECT DISTINCT col0 + + 32 FROM tab2 AS cor0
----
110
111
39

query I rowsort
SELECT DISTINCT col2 + ( + col0 ) * ( + 3 ) AS col1 FROM tab1 AS cor0
----
249
336
63

query I rowsort
SELECT col0 * 98 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT ALL - col2 + col0 * col1 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT - 35 * col0 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT - - cor0.col2 * + 44 + + col1 FROM tab2 AS cor0
----
1203
1219
1689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + - col2 col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - + cor0.col0 + - col0 AS col0 FROM tab1 cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col0 FROM tab0
----
-16
-16
-16

query I rowsort
SELECT + + col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + - 28 * col1 + ( col2 ) FROM tab1 AS cor0
----
-223
-268
-674

query I rowsort
SELECT - 33 + col1 FROM tab0 AS cor0
----
53
58
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT - col0 * ( + ( + col0 ) ) + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT col0 + + col0 - col1 AS col0 FROM tab0 AS cor0
----
-27
-38
87

query I rowsort
SELECT DISTINCT + + col0 + 70 * - col2 + + col0 AS col2 FROM tab0 AS cor0
----
-2262
-5562
0

query I rowsort
SELECT - - col0 * col0 + - 50 FROM tab0 AS cor0
----
1175
526
7871

query I rowsort
SELECT + col0 * - ( 34 ) + col1 AS col2 FROM tab1 cor0
----
-2166
-2707
-76

query I rowsort
SELECT ALL 77 + - col2 AS col1 FROM tab2
----
39
50
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + cor0.col0 - col2 col2 FROM tab2 AS cor0
----
-47
26
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT - + col2 DIV col2 + col2 + + cor0.col2 * - col2 AS col1 FROM tab0 cor0
----
-1
-1057
-6643

skipif mysql # not compatible
query I rowsort label-4795
SELECT - + col2 / col2 + col2 + + cor0.col2 * - col2 AS col1 FROM tab0 cor0
----
-1
-1057
-6643

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4796
SELECT + col2 * CAST( + col0 AS SIGNED ) + + col0 - col2 FROM tab2 AS cor0
----
169
2080
3043

skipif mysql # not compatible
query I rowsort label-4796
SELECT + col2 * CAST ( + col0 AS INTEGER ) + + col0 - col2 FROM tab2 AS cor0
----
169
2080
3043

query I rowsort
SELECT - + 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT - tab0.col0 * col0 AS col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT DISTINCT cor0.col2 * - col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT cor0.col2 * - col1 / + col1 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + cor0.col0 * cor0.col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col1 + col2 * + col2 FROM tab1 AS cor0
----
2890
3239
9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) - + 68 col1 FROM tab1 AS cor0
----
-122
-125
-164

query I rowsort
SELECT col2 * + cor0.col0 + + col2 * col0 FROM tab0 cor0
----
14596
1584
70

query I rowsort
SELECT ALL col0 * ( cor0.col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - + col2 * + 83 * col0 + col2 FROM tab2 AS cor0
----
-15660
-168298
-249128

onlyif mysql # use DIV operator for integer division
query I rowsort label-4807
SELECT DISTINCT - - col1 DIV + col1 + - col1 * col0 * cor0.col1 col0 FROM tab2 cor0
----
-22830
-271517
-6726

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT - - col1 / + col1 + - col1 * col0 * cor0.col1 col0 FROM tab2 cor0
----
-22830
-271517
-6726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4808
SELECT + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 * col2 + 15 * + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1539
-62010
-97248

query I rowsort
SELECT col1 + - ( + 72 + col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-2418
-2550
-8791

query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + cor0.col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT ALL + - cor0.col1 * col0 * - col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + + col0 * col0 + 85 * - col0 AS col2 FROM tab1 AS cor0
----
-1344
-246
-400

query I rowsort
SELECT + + cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col1 * + 55 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT DISTINCT - + cor0.col2 + + col2 * + 40 * - col1 AS col2 FROM tab1 AS cor0
----
-22857
-50016
-56214

query I rowsort
SELECT DISTINCT col0 * + 10 * col0 + col2 * col1 * col1 AS col2 FROM tab2 cor0
----
151346
26437
73392

query I rowsort
SELECT DISTINCT - col1 * col1 - + col1 FROM tab0
----
-7482
-8372
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4819
SELECT DISTINCT + col2 - + tab1.col2 * - col1 DIV col1 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT + col2 - + tab1.col2 * - col1 / col1 FROM tab1
----
108
114
192

query I rowsort
SELECT - - 72 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT + - 16 * ( + col2 ) FROM tab1 AS cor0
----
-1536
-864
-912

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * + col1 + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - + 13 * - 3 + - col1 AS col0 FROM tab2 AS cor0
----
-20
22
8

query I rowsort
SELECT - col2 * - 67 * + col2 AS col2 FROM tab1 AS cor0
----
195372
217683
617472

query I rowsort
SELECT + ( ( + col1 ) ) * 18 * col1 FROM tab1 AS cor0
----
12168
1800
3042

query I rowsort
SELECT + 22 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( - col1 AS REAL ) + col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - + col0 * 67 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT ALL - cor0.col2 * 51 FROM tab1 AS cor0
----
-2754
-2907
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col0 FROM tab0 AS cor0
----
28

query I rowsort
SELECT ALL + cor2.col1 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

query I rowsort
SELECT ( - 92 ) AS col1 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT - - col0 * 60 FROM tab0 AS cor0
----
1440
2100
5340

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4835
SELECT CAST( NULL AS SIGNED ) * 67 - tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT CAST ( NULL AS INTEGER ) * 67 - tab2.col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4837
SELECT DISTINCT - - col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT - - col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT 31 * + col2 * col0 + col0 FROM tab2
----
5866
62946
93141

query I rowsort
SELECT 58 - - ( col1 ) FROM tab2
----
117
75
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4840
SELECT col2 DIV + col0 + tab1.col1 * + col0 FROM tab1
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-4840
SELECT col2 / + col0 + tab1.col1 * + col0 FROM tab1
----
1041
640
96

query I rowsort
SELECT ALL - 83 * - col1 FROM tab0 AS cor0
----
7138
7553
8051

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4843
SELECT ALL - 46 * col0 DIV - col1 FROM tab0 AS cor0
----
12
16
44

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - 46 * col0 / - col1 FROM tab0 AS cor0
----
12
16
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT DISTINCT - + col0 * col2 + ( - col2 ) DIV col2 FROM tab0 AS cor0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - + col0 * col2 + ( - col2 ) / col2 FROM tab0 AS cor0
----
-36
-7299
-793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4846
SELECT + col2 + + cor0.col2 DIV col1 AS col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4846
SELECT + col2 + + cor0.col2 / col1 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + + ( col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT DISTINCT - - col0 DIV + col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - - col0 / + col0 FROM tab1 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 + tab1.col0 * tab1.col2 col2 FROM tab1
----
191
3722
7773

query I rowsort
SELECT ALL - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT 64 * cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c751ea51c226889015445e4eb03cbacd

query I rowsort
SELECT - col2 + - 67 FROM tab1 AS cor0
----
-121
-124
-163

onlyif mysql # use DIV operator for integer division
query I rowsort label-4853
SELECT - cor0.col1 + - cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-4853
SELECT - cor0.col1 + - cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT DISTINCT - cor0.col1 * + ( col0 ) - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT cor0.col2 DIV + 78 - 39 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4855
SELECT cor0.col2 / + 78 - 39 / col2 AS col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT DISTINCT col0 DIV cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT col0 / cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
27
28
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4857
SELECT col1 + + col2 DIV 70 + col2 * col1 FROM tab0
----
194
2924
7554

skipif mysql # not compatible
query I rowsort label-4857
SELECT col1 + + col2 / 70 + col2 * col1 FROM tab0
----
194
2924
7554

query I rowsort
SELECT - 38 + + col2 AS col1 FROM tab1
----
16
19
58

query I rowsort
SELECT - - ( - 24 ) * + col2 * - col2 + - col1 + - cor0.col1 FROM tab2 AS cor0
----
16106
17434
34622

query I rowsort
SELECT DISTINCT + 75 + cor0.col0 * col1 FROM tab1 AS cor0
----
1115
153
715

query I rowsort
SELECT DISTINCT - + 42 AS col1 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT ALL - + col1 * 73 FROM tab0 AS cor0
----
-6278
-6643
-7081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4863
SELECT ALL col0 * + col1 + + ( - col2 * + CAST( NULL AS SIGNED ) + 61 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL col0 * + col1 + + ( - col2 * + CAST ( NULL AS INTEGER ) + 61 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 82 FROM tab2 cor0
----
-82
-82
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4865
SELECT DISTINCT + + col1 + CAST( + col0 AS SIGNED ) * - col1 AS col1 FROM tab2 cor0
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT + + col1 + CAST ( + col0 AS INTEGER ) * - col1 AS col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL + col1 * 80 + col0 AS col1 FROM tab1 AS cor0
----
1120
2083
864

query I rowsort
SELECT DISTINCT + + col1 + - ( - 90 ) + + col1 FROM tab1 AS cor0
----
110
116
142

query I rowsort
SELECT + - col2 * cor0.col1 + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

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-4870
SELECT col1 + - CAST( ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-4870
SELECT col1 + - CAST ( ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT - 56 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT + + 7 + + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
169
3655
7687

query I rowsort
SELECT - 74 * - col1 FROM tab1
----
1924
740
962

onlyif mysql # use DIV operator for integer division
query I rowsort label-4875
SELECT + cor0.col2 DIV - 73 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif mysql # not compatible
query I rowsort label-4875
SELECT + cor0.col2 / - 73 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 721682d0719de924079c33bd72eef789

query I rowsort
SELECT col1 + - col1 + col1 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4877
SELECT - - 30 + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4877
SELECT - - 30 + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + + 96 AS col0 FROM tab0 AS cor0
----
96

query I rowsort
SELECT - cor0.col2 * - col1 + + col1 AS col0 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT ALL - - 14 + + col1 AS col1 FROM tab0 AS cor0
----
100
105
111

onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT DISTINCT - + ( - col1 ) + - 60 DIV + 62 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - + ( - col1 ) + - 60 / + 62 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 21 * + col2 AS col2 FROM tab1
----
1134
1197
2016

query I rowsort
SELECT DISTINCT - 2 FROM tab1 cor0
----
-2

query I rowsort
SELECT ALL + col2 * - ( - col2 ) * col0 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-4885
SELECT ALL + - col2 + + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL + - col2 + + col1 / col2 AS col0 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT 48 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT 64 * tab2.col0 AS col2 FROM tab2
----
448
4992
5056

onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT + tab2.col2 DIV + col0 + col0 + + tab2.col2 FROM tab2
----
104
117
37

skipif mysql # not compatible
query I rowsort label-4888
SELECT + tab2.col2 / + col0 + col0 + + tab2.col2 FROM tab2
----
104
117
37

query I rowsort
SELECT + - 35 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT cor1.col1 * + cor0.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
9 values hashing to 73681df8216070e2d6c1ade2e7109825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4891
SELECT DISTINCT col0 + CAST( + col1 + - col2 AS SIGNED ) col0 FROM tab1
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT col0 + CAST ( + col1 + - col2 AS INTEGER ) col0 FROM tab1
----
-25
-3
17

query I rowsort
SELECT + 33 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT + + col1 * - 67 FROM tab0 AS cor0
----
-5762
-6097
-6499

query I rowsort
SELECT ALL + 92 * - col1 AS col2 FROM tab2
----
-1564
-2852
-5428

query I rowsort
SELECT ALL ( - col2 + col2 ) FROM tab2
----
0
0
0

query I rowsort
SELECT - - cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4897
SELECT + col0 + - col2 * + CAST( - col2 + - col2 AS SIGNED ) FROM tab2 AS cor0
----
1430
1465
2967

skipif mysql # not compatible
query I rowsort label-4897
SELECT + col0 + - col2 * + CAST ( - col2 + - col2 AS INTEGER ) FROM tab2 AS cor0
----
1430
1465
2967

query I rowsort
SELECT + - cor0.col1 + - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + col2 * col2 + 69 FROM tab2 cor0
----
1513
745
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + col0 col0 FROM tab2 AS cor0
----
11
82
83

query I rowsort
SELECT + - 71 + col0 FROM tab0 AS cor0
----
-36
-47
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT 72 DIV cor0.col2 - CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
169
88
91

skipif mysql # not compatible
query I rowsort label-4902
SELECT 72 / cor0.col2 - CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
169
88
91

query I rowsort
SELECT - - ( - col0 ) * - col1 - col2 AS col0 FROM tab0 cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + tab2.col2 * - col1 col2 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT col1 - col0 * - col0 * col1 FROM tab2
----
106114
1550
359015

query I rowsort
SELECT col2 * col0 + col2 * - col1 AS col2 FROM tab2
----
-648
2356
494

query I rowsort
SELECT - col0 + col0 * + col0 FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-4908
SELECT ALL + - col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL + - col0 / col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL col1 * - cor0.col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - cor0.col0 * col2 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4912
SELECT ALL - - col2 DIV col0 + - col1 col2 FROM tab2 AS cor0
----
-17
-28
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - - col2 / col0 + - col1 col2 FROM tab2 AS cor0
----
-17
-28
-59

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col1 + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT + col2 DIV col1 AS col0 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4914
SELECT + col2 / col1 AS col0 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col2 * cor0.col0 col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - col2 * - col2 - cor0.col1 AS col0 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4918
SELECT DISTINCT col1 + + col0 + col2 DIV + col1 FROM tab2 AS cor0
----
137
38
98

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT col1 + + col0 + col2 / + col1 FROM tab2 AS cor0
----
137
38
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4919
SELECT DISTINCT - + col1 DIV col0 + cor0.col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT - + col1 / col0 + cor0.col0 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT ALL + tab1.col2 + - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 57 + col2 AS col1 FROM tab1 AS cor0
----
111
114
153

query I rowsort
SELECT ALL - - col2 + col0 * cor0.col0 FROM tab0 AS cor0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 * col2 col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + col2 * col2 + + col2 * - cor0.col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4925
SELECT DISTINCT + col2 * cor0.col1 DIV col2 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT + col2 * cor0.col1 / col2 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL col2 * col1 + + col1 * tab0.col1 FROM tab0
----
10234
15743
9506

query I rowsort
SELECT DISTINCT col1 * tab1.col1 + col0 * col2 AS col0 FROM tab1
----
3748
7849
838

query I rowsort
SELECT - 53 * - col0 FROM tab2
----
371
4134
4187

query I rowsort
SELECT DISTINCT + col0 + - col0 * col1 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT col2 + + col0 * + col0 AS col0 FROM tab2
----
6110
6279
76

query III rowsort
SELECT * FROM tab0 WHERE NOT ( tab0.col1 ) <= ( + tab0.col1 )
----

query I rowsort
SELECT DISTINCT col1 * + col1 + col2 AS col0 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT col2 * tab0.col1 + - tab0.col2 * - col0 + col0 * - col1 * col2 FROM tab0
----
-3263
-64482
-649358

query I rowsort
SELECT col2 * + tab1.col1 + col2 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col0 FROM tab0 WHERE NULL IN ( col2 + + tab0.col1 )
----

query I rowsort
SELECT ALL - col2 * col0 + - col0 - - col1 AS col1 FROM tab2
----
-165
-2047
-3064

query I rowsort
SELECT ALL + col2 * + col2 * col2 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT ALL col2 + col0 + - tab0.col2 FROM tab0
----
24
35
89

query III rowsort
SELECT * FROM tab1 WHERE col0 + + col1 IN ( + tab1.col0 )
----

query I rowsort
SELECT col1 - + col0 * col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT ALL + col0 + tab1.col0 FROM tab1
----
128
160
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + col0 <= NULL
----

query I rowsort
SELECT ALL col2 * col2 + + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL NOT IN ( col0 - + col0 )
----

query I rowsort
SELECT DISTINCT col0 * col2 + + col1 * - col1 FROM tab1
----
-514
3548
7511

query I rowsort
SELECT - tab0.col1 * tab0.col2 AS col0 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT DISTINCT col2 + - col1 DIV col2 AS col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT col2 + - col1 / col2 AS col2 FROM tab0
----
-96
31
81

query I rowsort
SELECT DISTINCT col0 * + tab0.col2 + + col1 * + col1 AS col2 FROM tab0
----
15579
8188
9444

query I rowsort
SELECT + col0 * tab1.col2 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + col0 * + col2 * - tab2.col1 AS col1 FROM tab2 WHERE NULL >= - col0 + + col0
----

query I rowsort
SELECT col0 * - col0 + cor0.col1 - + col0 FROM tab2 AS cor0
----
-25
-6103
-6303

onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT ALL col2 DIV + col0 AS col1 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL col2 / + col0 AS col1 FROM tab2 cor0
----
0
0
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 * tab0.col0 + + col2 AS col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL tab2.col0 - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * col0 * col1 FROM tab0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + tab1.col2 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NULL IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col0 + col1 * col1 * + tab2.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT tab0.col2 * col0 DIV + col0 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4961
SELECT tab0.col2 * col0 / + col0 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - tab1.col2 + + col0 + + col1 AS col2 FROM tab1
----
-25
-3
17

query I rowsort
SELECT - col0 * - col0 AS col1 FROM tab0 WHERE ( NULL ) IN ( col2 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - col1 col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col1 * + col1 * + col0 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-4966
SELECT - cor0.col2 * col0 + col0 DIV cor0.col0 - col0 FROM tab0 cor0
----
-69
-7386
-815

skipif mysql # not compatible
query I rowsort label-4966
SELECT - cor0.col2 * col0 + col0 / cor0.col0 - col0 FROM tab0 cor0
----
-69
-7386
-815

onlyif mysql # use DIV operator for integer division
query I rowsort label-4967
SELECT cor0.col0 DIV col1 + - col0 FROM tab1 AS cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-4967
SELECT cor0.col0 / col1 + - col0 FROM tab1 AS cor0
----
-3
-58
-74

query I rowsort
SELECT - col0 + col2 - col1 AS col1 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT DISTINCT - - col0 + cor0.col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col1 ) + - col0 col2 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT - + col2 * col1 DIV col1 + ( + ( cor0.col2 ) ) DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-4971
SELECT - + col2 * col1 / col1 + ( + ( cor0.col2 ) ) / col0 AS col0 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT ALL + - cor0.col2 * - 14 + col1 FROM tab0 AS cor0
----
111
1239
548

query I rowsort
SELECT - 73 AS col2 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to b6d4a8c1826477f660e7b977a0d1fdd7

query I rowsort
SELECT + ( 87 ) * + col0 + cor0.col1 AS col0 FROM tab2 cor0
----
640
6845
6890

query I rowsort
SELECT - - ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT DISTINCT + - 92 * col1 + - col2 DIV + 22 FROM tab2 AS cor0
----
-1565
-2853
-5429

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT + - 92 * col1 + - col2 / + 22 FROM tab2 AS cor0
----
-1565
-2853
-5429

query I rowsort
SELECT - ( 72 ) + col2 * + 82 FROM tab1 AS cor0
----
4356
4602
7800

query I rowsort
SELECT ALL 64 FROM tab1 cor0
----
64
64
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT DISTINCT - col1 DIV - col1 + - col0 + - 80 AS col0 FROM tab1 AS cor0
----
-143
-159
-82

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT - col1 / - col1 + - col0 + - 80 AS col0 FROM tab1 AS cor0
----
-143
-159
-82

query I rowsort
SELECT DISTINCT - col0 + ( - col2 + col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-547
1274
1479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * + col0 col1 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT ALL + 24 - 1 FROM tab2 AS cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 87 + col2 * - 50 col2 FROM tab1 AS cor0
----
-11760
-2961
-8418

onlyif mysql # use DIV operator for integer division
query I rowsort label-4984
SELECT + 53 + col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-4984
SELECT + 53 + col2 / - col1 AS col2 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT - col2 - col0 * col2 * - col0 AS col1 FROM tab2 cor0
----
1296
158158
237120

query I rowsort
SELECT DISTINCT + col2 + + 10 AS col2 FROM tab1 AS cor0
----
106
64
67

query I rowsort
SELECT DISTINCT cor0.col1 - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab2, tab0 cor0
----
-21

query I rowsort
SELECT - + cor0.col2 + ( + col2 + col1 ) * + col2 FROM tab1 AS cor0
----
10368
3762
4266

query I rowsort
SELECT 71 FROM tab1, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col1 * + ( cor0.col0 ) + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
-176712
-329280
-729711

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4992
SELECT - 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-4992
SELECT - 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 ALL col2 + + col0 + col1 col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ALL + col0 - + 72 FROM tab1 AS cor0
----
-69
-8
8

query I rowsort
SELECT - 17 * 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c9fd3f4806505692fee2664411327e7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 + + col2 col2 FROM tab2
----
20
21
32

query I rowsort
SELECT ALL - ( col1 + - col2 ) AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT + col1 + ( + col1 ) AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL + col0 * 92 + - col2 FROM tab2
----
617
7150
7230

query I rowsort
SELECT 17 - cor0.col1 FROM tab1 AS cor0
----
-9
4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * - ( + col0 ) col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col2 + + ( col2 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL col2 * + ( col1 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 * + col1 + ( - col2 ) FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL + col0 * col1 + + 74 AS col2 FROM tab0
----
2138
3469
8173

query I rowsort
SELECT tab0.col0 * + col0 + - col2 * - col0 + 93 AS col1 FROM tab0
----
1353
1461
15312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5007
SELECT ALL col2 * CAST( - 91 AS SIGNED ) + + col1 FROM tab1
----
-4888
-5177
-8723

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL col2 * CAST ( - 91 AS INTEGER ) + + col1 FROM tab1
----
-4888
-5177
-8723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 46 col0 FROM tab0 AS cor0
----
3956
4186
4462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 - col2 * col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT tab0.col1 * ( - col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT tab2.col2 * ( - tab2.col2 ) FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col2 AS REAL ) FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * col2 col0 FROM tab1
----
1404
1482
2496

query I rowsort
SELECT - 52 + cor0.col1 - col1 AS col2 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT - - 61 * + col1 + cor0.col1 FROM tab1 AS cor0
----
1612
620
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5017
SELECT 61 DIV - 65 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5017
SELECT 61 / - 65 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - - col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT 99 * - col1 * col2 + + tab0.col0 FROM tab0
----
-280938
-738649
-9568

query I rowsort
SELECT col0 * + col0 + + tab0.col2 FROM tab0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col2 FROM tab1
----
84
84
84

query I rowsort
SELECT 40 + col2 FROM tab1 AS cor0
----
136
94
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col0 FROM tab0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col0 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5025
SELECT + + col0 DIV - 55 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5025
SELECT + + col0 / - 55 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5026
SELECT - col0 DIV - 90 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5026
SELECT - col0 / - 90 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + ( ( col0 ) ) + + ( 18 ) FROM tab1 cor0
----
1058
658
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT DISTINCT cor0.col1 + ( - cor0.col1 ) DIV col2 + - col1 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT cor0.col1 + ( - cor0.col1 ) / col2 + - col1 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + - cor0.col1 * + ( - ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT cor0.col2 * - 84 AS col1 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT + col0 * ( col0 ) * + col1 AS col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT - 4 * + col1 + col2 + - col0 FROM tab2
----
-104
-109
-288

query I rowsort
SELECT ALL col0 + tab0.col1 + - ( col1 + - col0 ) FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + col1 * ( col2 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 * - ( - col0 ) * + col2 AS col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL 35 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT + tab0.col2 * col1 - ( - col0 ) FROM tab0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL 32 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT + col2 * col2 * + col2 + col2 AS col1 FROM tab1
----
157518
185250
884832

query I rowsort
SELECT tab2.col2 * 65 + tab2.col2 FROM tab2
----
1716
1782
2508

query I rowsort
SELECT - + col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col1 * 25 AS col0 FROM tab2
----
-1475
-425
-775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5046
SELECT - 14 * + tab1.col2 + + col0 * + 12 / 59 + - col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT - 14 * + tab1.col2 + + col0 * + 12 / 59 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5047
SELECT ( - col1 ) * tab0.col1 DIV - 38 + + ( + col2 ) FROM tab0
----
227
248
299

skipif mysql # not compatible
query I rowsort label-5047
SELECT ( - col1 ) * tab0.col1 / - 38 + + ( + col2 ) FROM tab0
----
227
248
299

query I rowsort
SELECT col2 + + 45 - - col0 * - 50 * - col0 FROM tab1
----
204902
320141
549

query I rowsort
SELECT DISTINCT + 25 - - col1 AS col0 FROM tab2
----
42
56
84

query I rowsort
SELECT + ( - 47 ) * - col2 FROM tab2
----
1222
1269
1786

onlyif mysql # use DIV operator for integer division
query I rowsort label-5051
SELECT - col2 DIV + ( col2 ) AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5051
SELECT - col2 / + ( col2 ) AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab1
----
87

query I rowsort
SELECT 80 * - col2 - col1 FROM tab1 AS cor0
----
-4346
-4570
-7693

query I rowsort
SELECT + 38 + - col1 * + col1 FROM tab0 AS cor0
----
-7358
-8243
-9371

query I rowsort
SELECT + ( col0 ) * col1 - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + - 75 * col1 + cor0.col0 FROM tab1 AS cor0
----
-1947
-686
-895

query I rowsort
SELECT ALL col0 - - col1 AS col1 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT ALL + col1 DIV + tab1.col2 + col1 - + col0 AS col0 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL + col1 / + tab1.col2 + col1 - + col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT ( - col2 ) * - col1 * + 30 + tab1.col2 - col1 FROM tab1
----
17147
37523
42148

query I rowsort
SELECT 30 + col0 + col2 FROM tab0
----
201
66
87

query I rowsort
SELECT + ( + col2 ) + + 83 AS col1 FROM tab1 AS cor0
----
137
140
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * + cor0.col0 col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT 32 + - col0 DIV + col2 FROM tab1 AS cor0
----
31
32
32

skipif mysql # not compatible
query I rowsort label-5063
SELECT 32 + - col0 / + col2 FROM tab1 AS cor0
----
31
32
32

query I rowsort
SELECT DISTINCT - 33 * cor0.col2 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT ALL + col0 + tab1.col2 + + 66 AS col0 FROM tab1
----
123
187
242

query I rowsort
SELECT DISTINCT - col1 + col0 + - col2 AS col2 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT cor0.col0 + col1 - col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + + 10 + - col1 AS col1 FROM tab0 cor0
----
-76
-81
-87

query I rowsort
SELECT + - ( + col0 ) + 94 AS col1 FROM tab1 AS cor0
----
14
30
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5070
SELECT ALL - - col0 + col0 DIV - ( - col1 + - col1 ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL - - col0 + col0 / - ( - col1 + - col1 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 10 AS col1 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-5072
SELECT - 69 + + cor0.col2 DIV 4 AS col2 FROM tab0 AS cor0
----
-49
-61
-69

skipif mysql # not compatible
query I rowsort label-5072
SELECT - 69 + + cor0.col2 / 4 AS col2 FROM tab0 AS cor0
----
-49
-61
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5073
SELECT DISTINCT + 50 + cor0.col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + 50 + cor0.col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - col2 * 82 * 5 AS col1 FROM tab0 AS cor0
----
-13444
-313
-33529

onlyif mysql # use DIV operator for integer division
query I rowsort label-5075
SELECT - 38 DIV - col2 AS col1 FROM tab0 AS cor0
----
0
1
38

skipif mysql # not compatible
query I rowsort label-5075
SELECT - 38 / - col2 AS col1 FROM tab0 AS cor0
----
0
1
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT DISTINCT - col0 DIV + col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - col0 / + col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL + 38 AS col0 FROM tab1 cor0
----
38
38
38

query I rowsort
SELECT + col1 + col1 * - 62 * 51 FROM tab1 AS cor0
----
-31610
-41093
-82186

query I rowsort
SELECT DISTINCT col0 + col2 + + ( - col0 ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 * + col2 + 84 * + ( col1 ) * + col1 AS col2 FROM tab1
----
11649
23412
59700

query I rowsort
SELECT ALL + tab0.col0 + + col0 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT + 40 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT DISTINCT - - col1 * + col2 + - 94 FROM tab0 cor0
----
2744
3
7368

query I rowsort
SELECT + - col0 - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5085
SELECT DISTINCT - - col2 DIV col2 + + col0 DIV - 56 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT - - col2 / col2 + + col0 / - 56 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + 76 - + col1 AS col1 FROM tab2 AS cor0
----
17
45
59

query I rowsort
SELECT + + col1 + 10 FROM tab2 AS cor0
----
27
41
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5088
SELECT DISTINCT + - col1 * + CAST( - 48 AS SIGNED ) * - col2 AS col1 FROM tab1 cor0
----
-27360
-59904
-67392

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT + - col1 * + CAST ( - 48 AS INTEGER ) * - col2 AS col1 FROM tab1 cor0
----
-27360
-59904
-67392

query I rowsort
SELECT + col0 + col2 + 92 FROM tab0 AS cor0
----
128
149
263

query I rowsort
SELECT cor0.col0 + 46 * + 22 + col0 AS col1 FROM tab2 AS cor0
----
1026
1168
1170

query I rowsort
SELECT DISTINCT - col0 + 47 FROM tab0 cor0
----
-42
12
23

query I rowsort
SELECT col1 * + 79 + - col2 AS col2 FROM tab1 cor0
----
2000
733
931

query I rowsort
SELECT ALL + + col0 * col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - col1 + - ( - col2 ) FROM tab1 cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5095
SELECT 88 DIV - col0 + 96 * ( col2 * CAST( + ( col1 ) AS SIGNED ) ) + 29 AS col2 FROM tab1
----
119836
134784
54748

skipif mysql # not compatible
query I rowsort label-5095
SELECT 88 / - col0 + 96 * ( col2 * CAST ( + ( col1 ) AS INTEGER ) ) + 29 AS col2 FROM tab1
----
119836
134784
54748

query I rowsort
SELECT - - col1 * 30 AS col1 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT + col0 * col2 - + cor0.col2 * col1 FROM tab0 cor0
----
-164
-2046
-62

query I rowsort
SELECT DISTINCT + 68 + col2 FROM tab2 AS cor0
----
106
94
95

query I rowsort
SELECT ALL + 70 + - col1 * + col1 * + col2 AS col0 FROM tab0 AS cor0
----
-243998
-678972
-9339

query I rowsort
SELECT - + 21 * - 84 AS col2 FROM tab2 AS cor0
----
1764
1764
1764

query I rowsort
SELECT DISTINCT col2 * 16 + col1 FROM tab2 AS cor0
----
463
475
625

onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT ALL - col1 + 8 DIV cor0.col0 col0 FROM tab2 AS cor0
----
-17
-30
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL - col1 + 8 / cor0.col0 col0 FROM tab2 AS cor0
----
-17
-30
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col1 FROM tab2 AS cor0
----
-26
-27
-38

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

onlyif mysql # use DIV operator for integer division
query I rowsort label-5105
SELECT ALL + cor0.col0 + + col1 DIV - col0 FROM tab1 cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + cor0.col0 + + col1 / - col0 FROM tab1 cor0
----
-5
64
80

query I rowsort
SELECT DISTINCT + ( col0 ) + col2 * 18 AS col1 FROM tab2 cor0
----
493
546
763

query I rowsort
SELECT + 55 * - 18 * - col0 FROM tab1 AS cor0
----
2970
63360
79200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5108
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col0 ) + + col0 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT DISTINCT - col0 * - 23 * + col2 + 14 AS col2 FROM tab1 cor0
----
176654
3740
83918

query I rowsort
SELECT ALL + col1 + - 19 FROM tab0 cor0
----
67
72
78

query I rowsort
SELECT - + 27 + + col0 AS col2 FROM tab2 cor0
----
-20
51
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5113
SELECT ALL ( - col0 ) * - col2 - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL ( - col0 ) * - col2 - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL + col1 * + cor0.col0 * + cor0.col0 + - col2 AS col2 FROM tab0 AS cor0
----
118824
49503
720729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5115
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5116
SELECT ALL + CAST( + 11 AS SIGNED ) + col0 AS col2 FROM tab1 cor0
----
14
75
91

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + CAST ( + 11 AS INTEGER ) + col0 AS col2 FROM tab1 cor0
----
14
75
91

query I rowsort
SELECT DISTINCT - - 60 * + col2 - + col2 AS col1 FROM tab2 AS cor0
----
1534
1593
2242

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 AS REAL ) * col1 * - 80 + + 25 FROM tab1 AS cor0
----
-51175
-6215
-83175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col1 FROM tab0 AS cor0
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 - col1 * ( col2 ) col0 FROM tab1 AS cor0
----
-1139
-1324
-503

query I rowsort
SELECT DISTINCT col2 * ( - tab2.col0 ) FROM tab2
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5122
SELECT ALL + col2 * CAST( 60 AS SIGNED ) + col1 * col0 FROM tab2
----
1837
3623
6162

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL + col2 * CAST ( 60 AS INTEGER ) + col1 * col0 FROM tab2
----
1837
3623
6162

query I rowsort
SELECT - tab0.col2 * 54 FROM tab0
----
-1782
-4428
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) * col2 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col1 * 46 + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-1615
-3784
-4742

query I rowsort
SELECT + col2 * + col0 + col1 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
-243276
-671744
-9374

query I rowsort
SELECT col0 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - 71 + 19 AS col0 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + cor0.col2 * cor0.col0 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - 40 - 33 AS col1 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + - ( + col0 ) + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT 62 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
121
79
93

query I rowsort
SELECT ALL + + col1 + - cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT - - cor0.col1 * col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + col2 * + ( + col0 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + - col2 * 28 AS col2 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT ALL col2 + 89 + col1 FROM tab0 AS cor0
----
187
208
262

query I rowsort
SELECT ALL + 83 + - cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 1b74b9dea11d59a93402128a4431de3a

query I rowsort
SELECT ALL - + col0 * col0 * col2 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab1
----
63

query I rowsort
SELECT col1 + - col2 * cor0.col0 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - cor0.col1 * - 62 - col1 FROM tab1 AS cor0
----
1586
610
793

onlyif mysql # use DIV operator for integer division
query I rowsort label-5143
SELECT DISTINCT col1 + + 79 DIV - ( - cor0.col0 * 84 ) FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT col1 + + 79 / - ( - cor0.col0 * 84 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - 0 * col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 * - ( col1 + 90 ) FROM tab0 AS cor0
----
-15136
-16471
-18139

query I rowsort
SELECT + + 28 * 21 * col0 AS col0 FROM tab1 AS cor0
----
1764
37632
47040

query I rowsort
SELECT DISTINCT + - 77 * - col0 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT - 61 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL - 6 + + col1 AS col2 FROM tab2 AS cor0
----
11
25
53

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 07504092eb64a26979c0bde05f7718cb

query I rowsort
SELECT + + col1 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * 62 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b0d929bc33239b4eb782aa704e06f6b7

query I rowsort
SELECT - 25 + + col2 * 6 AS col1 FROM tab2 AS cor0
----
131
137
203

query I rowsort
SELECT - + col0 * col1 * - cor0.col1 + col0 FROM tab2 cor0
----
22910
271596
6734

query I rowsort
SELECT + ( col2 ) + col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT 7 AS col1 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL col0 - - col1 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5158
SELECT DISTINCT col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 * - col1 + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2609
2838
8176

query I rowsort
SELECT + 47 * + col0 AS col2 FROM tab2
----
329
3666
3713

query I rowsort
SELECT ALL - 21 + col2 FROM tab0
----
-20
12
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5162
SELECT ALL + col0 DIV - 7 + col2 + + cor0.col0 FROM tab0 AS cor0
----
159
31
54

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL + col0 / - 7 + col2 + + cor0.col0 FROM tab0 AS cor0
----
159
31
54

query I rowsort
SELECT DISTINCT - + col0 * - 55 - + col2 FROM tab1 cor0
----
111
3463
4304

query I rowsort
SELECT col1 * + cor0.col0 - - col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT - + 57 * + col2 + col0 * + cor0.col1 - col0 DIV col1 FROM tab0 AS cor0
----
183
3338
3425

skipif mysql # not compatible
query I rowsort label-5165
SELECT - + 57 * + col2 + col0 * + cor0.col1 - col0 / col1 FROM tab0 AS cor0
----
183
3338
3425

query I rowsort
SELECT DISTINCT + 64 FROM tab2, tab2 AS cor0
----
64

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab2, tab1 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + ( - 4 ) AS col0 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT - - 81 * + 8 - cor0.col2 AS col0 FROM tab1 AS cor0
----
552
591
594

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5170
SELECT cor0.col1 + - CAST( + 82 AS SIGNED ) + cor0.col1 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to ab5dfb5a76f5107a63b2e38b79f686e5

skipif mysql # not compatible
query I rowsort label-5170
SELECT cor0.col1 + - CAST ( + 82 AS INTEGER ) + cor0.col1 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to ab5dfb5a76f5107a63b2e38b79f686e5

query I rowsort
SELECT ALL col1 * col1 * - tab2.col0 + + 73 * col1 * + tab2.col1 AS col1 FROM tab2
----
-1734
-17405
63426

onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT ALL + 93 * + col2 DIV - col2 + - ( 62 ) * col1 FROM tab1
----
-1705
-713
-899

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL + 93 * + col2 / - col2 + - ( 62 ) * col1 FROM tab1
----
-1705
-713
-899

query I rowsort
SELECT ALL col0 * col1 + - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT - - col2 * col2 * 31 AS col1 FROM tab1 AS cor0
----
100719
285696
90396

query I rowsort
SELECT ALL + col1 * cor0.col2 - - col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + col0 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5177
SELECT DISTINCT - col1 * col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT - col1 * col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 41 * + col0 + + 53 FROM tab2 AS cor0
----
-234
-3145
-3186

query I rowsort
SELECT - col0 * 61 FROM tab0
----
-1464
-2135
-5429

query I rowsort
SELECT DISTINCT ( col1 ) + col2 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT col2 + - 42 AS col0 FROM tab0
----
-41
-9
40

query I rowsort
SELECT ALL col1 * col1 + - col2 * ( - tab2.col0 * + col1 ) AS col2 FROM tab2
----
123133
51323
6820

query I rowsort
SELECT ALL + 44 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT ALL col1 DIV - ( col2 * + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL col1 / - ( col2 * + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + col2 * + 8 * + col0 FROM tab0 cor0
----
281
58466
6369

query I rowsort
SELECT ALL col2 + 88 AS col1 FROM tab0 AS cor0
----
121
170
89

query I rowsort
SELECT + - col1 + 39 * - col2 * + col2 FROM tab1 AS cor0
----
-113750
-126721
-359437

query I rowsort
SELECT col2 - - col0 * col2 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT col0 * col2 - col2 * + tab2.col2 FROM tab2
----
-540
1352
1558

query I rowsort
SELECT col1 * - ( 27 ) + col2 FROM tab1
----
-213
-255
-648

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab1, tab0 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5193
SELECT DISTINCT - cor0.col0 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - cor0.col0 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col2 * ( + 99 ) FROM tab2 AS cor0
----
-2574
-2673
-3762

query I rowsort
SELECT + col0 - + 46 FROM tab1 AS cor0
----
-43
18
34

query I rowsort
SELECT + col0 * ( 58 ) + + col2 FROM tab2
----
433
4550
4620

query I rowsort
SELECT DISTINCT col0 * 14 FROM tab1
----
1120
42
896

query I rowsort
SELECT col0 * + col1 + - col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT ALL + col2 + col2 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT - col0 * 29 FROM tab2 AS cor0
----
-203
-2262
-2291

onlyif mysql # use DIV operator for integer division
query I rowsort label-5201
SELECT 21 DIV 18 FROM tab1, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-5201
SELECT 21 / 18 FROM tab1, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT ALL + col1 * CAST( col0 + col1 AS SIGNED ) * - tab0.col2 AS col0 FROM tab0
----
-12804
-1343160
-312180

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + col1 * CAST ( col0 + col1 AS INTEGER ) * - tab0.col2 AS col0 FROM tab0
----
-12804
-1343160
-312180

query I rowsort
SELECT ALL 61 AS col2 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT + 37 + col2 AS col0 FROM tab1 AS cor0
----
133
91
94

query I rowsort
SELECT ALL + - 86 * - col0 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT ALL + - 3 * 45 AS col2 FROM tab0 AS cor0
----
-135
-135
-135

query I rowsort
SELECT + cor0.col0 * + col1 + col1 - col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ( + col0 ) * - col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - + 18 AS col2 FROM tab2 cor0
----
-18
-18
-18

query I rowsort
SELECT - 28 AS col2 FROM tab0 cor0
----
-28
-28
-28

query I rowsort
SELECT ALL + 93 * + 54 * - col2 FROM tab0 AS cor0
----
-165726
-411804
-5022

query I rowsort
SELECT + + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - col2 + col0 * col2 - col1 AS col2 FROM tab0 AS cor0
----
-63
673
7125

query I rowsort
SELECT - col2 * 38 + - cor0.col2 * 73 + - col0 AS col0 FROM tab2 AS cor0
----
-2964
-3004
-4297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + + 23 * col0 AS col0 FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT DISTINCT + 54 + + col0 FROM tab0 AS cor0
----
143
78
89

query I rowsort
SELECT - 23 + - col2 FROM tab2 AS cor0
----
-49
-50
-61

query I rowsort
SELECT ALL col2 * col1 * ( - col2 * - col0 ) + - 30 FROM tab1 AS cor0
----
2079330
227418
9584610

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5221
SELECT - + col1 * - cor0.col0 + CAST( NULL AS SIGNED ) * - ( - col0 ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT - + col1 * - cor0.col0 + CAST ( NULL AS INTEGER ) * - ( - col0 ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 16 - col1 FROM tab2 AS cor0
----
-33
-47
-75

query I rowsort
SELECT - - 69 * col2 FROM tab2 AS cor0
----
1794
1863
2622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + - 78 col2 FROM tab2 AS cor0
----
-1421
-295
-4680

query I rowsort
SELECT ALL + cor0.col1 * + col0 + - ( col1 ) FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT ALL + 19 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-16
-5
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT DISTINCT - - ( col2 ) * - col1 + - col0 DIV col1 col1 FROM tab2 AS cor0
----
-1535
-650
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - - ( col2 ) * - col1 + - col0 / col1 col1 FROM tab2 AS cor0
----
-1535
-650
-837

query I rowsort
SELECT ALL - ( col0 ) * ( + cor0.col0 ) FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT DISTINCT - col0 DIV col0 + col0 AS col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT - col0 / col0 + col0 AS col2 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT DISTINCT + - 64 * - col0 + col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT ALL - col2 + col0 * col1 AS col2 FROM tab2 cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + 57 * ( col0 ) col2 FROM tab1 AS cor0
----
174
3712
4640

onlyif mysql # use DIV operator for integer division
query I rowsort label-5233
SELECT - col1 DIV + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5233
SELECT - col1 / + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 37 * - cor0.col1 + col2 FROM tab2 AS cor0
----
-1120
-2157
-591

query I rowsort
SELECT DISTINCT - ( - col0 ) * col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT 93 + col0 * col2 AS col0 FROM tab1
----
255
3741
7773

query I rowsort
SELECT - cor0.col1 * 29 - + col1 AS col1 FROM tab1 AS cor0
----
-300
-390
-780

query I rowsort
SELECT DISTINCT - 89 * col2 FROM tab1 AS cor0
----
-4806
-5073
-8544

query I rowsort
SELECT ALL - col2 * 72 * - col0 AS col0 FROM tab2
----
13608
146016
216144

onlyif mysql # use DIV operator for integer division
query I rowsort label-5240
SELECT + 20 DIV 62 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT + 20 / 62 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 FROM tab2, tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5242
SELECT + col2 DIV col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-5242
SELECT + col2 / col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT col2 * + ( col1 ) AS col1 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5244
SELECT ALL + col2 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL + col2 / CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 75 ) FROM tab1 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 + - col1 AS REAL ) FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + tab1.col1 * 12 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 20e99b3671400d7356e2e71b6c1fd6c8

query I rowsort
SELECT ALL 1 * - col0 FROM tab0
----
-24
-35
-89

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ( + 44 + col1 ) * tab2.col0 AS col2 FROM tab2
----
4819
525
8034

query I rowsort
SELECT col0 * + 1 AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL 80 + + col0 * col1 + - col2 FROM tab2
----
1385
270
4656

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0, tab0 AS cor1
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2

query I rowsort
SELECT 79 * + col0 + col0 FROM tab2 cor0
----
560
6240
6320

query I rowsort
SELECT 76 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-2
-564
-964

query I rowsort
SELECT + 73 + tab1.col2 AS col0 FROM tab1
----
127
130
169

query I rowsort
SELECT + 90 * cor0.col2 * - col0 FROM tab0 AS cor0
----
-3150
-656820
-71280

query I rowsort
SELECT - 25 * + col0 + + ( col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
1464
2520
5874

query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
8

query I rowsort
SELECT + - col2 + 63 FROM tab2 AS cor0
----
25
36
37

query I rowsort
SELECT col0 * + ( col1 ) + + cor0.col1 AS col0 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + + ( + 90 ) * + col0 + 30 FROM tab1 AS cor0
----
300
5790
7230

onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT DISTINCT + + ( col2 ) DIV - cor0.col0 + col1 * col2 FROM tab2 AS cor0
----
1534
646
834

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + + ( col2 ) / - cor0.col0 + col1 * col2 FROM tab2 AS cor0
----
1534
646
834

query I rowsort
SELECT + ( col0 ) + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + 2 + col1 FROM tab1 AS cor0
----
12
15
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-5266
SELECT DISTINCT + 0 + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT + 0 + col2 / + col2 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - + cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - tab1.col1 * - ( - col0 ) FROM tab1
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col0 * col1 * - 44 AS col0 FROM tab2
----
-202488
-59092
-9548

query I rowsort
SELECT DISTINCT + 0 * - col1 FROM tab1
----
0

query I rowsort
SELECT ALL - col1 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + + col1 * col2 * col1 + + col1 * col0 * - col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-636
2784
34479

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - col0 + col1 * + col1 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT DISTINCT + col0 + - col0 DIV + col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT + col0 + - col0 / + col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT DISTINCT + - col2 + - col0 * + col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL + 99 + col2 FROM tab2 AS cor0
----
125
126
137

query I rowsort
SELECT DISTINCT - 1 + - col2 FROM tab0 cor0
----
-2
-34
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT ALL + cor0.col2 + + col2 DIV col2 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL + cor0.col2 + + col2 / col2 FROM tab1 cor0
----
55
58
97

query I rowsort
SELECT DISTINCT col1 * cor0.col1 * - col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL - + col1 + col1 * + col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + + col0 * col2 * + cor0.col0 - - col2 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT ALL col0 * + col0 * - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-260
-40970
-83213

query I rowsort
SELECT DISTINCT + + col1 * col2 + - col0 + col2 AS col1 FROM tab1 AS cor0
----
1264
1455
563

onlyif mysql # use DIV operator for integer division
query I rowsort label-5287
SELECT - cor0.col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5287
SELECT - cor0.col0 / col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col0 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col0 * col1 + + col0 - + col0 * + col0 * col0 AS col0 FROM tab2 AS cor0
----
-119
-469872
-491617

query I rowsort
SELECT - - col0 + col2 - col2 AS col2 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * ( - col2 ) + col0 col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + ( col2 ) + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col0 FROM tab1 cor0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col1 FROM tab2
----
77
77
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5295
SELECT CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( + 71 ) + col0 * col0 AS col0 FROM tab1 AS cor0
----
4167
6471
80

query I rowsort
SELECT ALL + ( cor0.col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col1 + 41 * - col2 FROM tab0 AS cor0
----
-1267
-3271
56

query I rowsort
SELECT DISTINCT + 73 + col0 AS col1 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT DISTINCT - col0 * - col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT ALL 56 * + 50 AS col2 FROM tab0
----
2800
2800
2800

onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT DISTINCT - 55 DIV - col0 FROM tab1
----
0
18

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT - 55 / - col0 FROM tab1
----
0
18

query I rowsort
SELECT DISTINCT - col1 * + col1 * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5304
SELECT ALL cor0.col1 DIV col1 + col1 + col0 AS col0 FROM tab0 AS cor0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL cor0.col1 / col1 + col1 + col0 AS col0 FROM tab0 AS cor0
----
111
133
181

query I rowsort
SELECT ALL + col0 - + col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col2 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - col0 + 42 AS col0 FROM tab1
----
-22
-38
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT - tab0.col0 DIV - 30 + - tab0.col2 FROM tab0
----
-33
-80
0

skipif mysql # not compatible
query I rowsort label-5308
SELECT - tab0.col0 / - 30 + - tab0.col2 FROM tab0
----
-33
-80
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5309
SELECT DISTINCT CAST( - 44 AS SIGNED ) AS col0 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT CAST ( - 44 AS INTEGER ) AS col0 FROM tab0
----
-44

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab1
----
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col2 IN ( col2 * col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 * col0 AS col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT col1 - + col2 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( + cor0.col2 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( col0 * + col2 ) AND col2 + col0
----

query I rowsort
SELECT - tab1.col0 + - tab1.col2 * col1 AS col2 FROM tab1
----
-1328
-1407
-634

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * col1 col0 FROM tab0
----
-7396
-8281
-9409

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5319
SELECT ALL + col2 DIV + col0 + + col2 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL + col2 / + col0 + + col2 FROM tab0
----
1
34
82

query I rowsort
SELECT - col0 + + col2 + + col0 * - col1 FROM tab1
----
-1024
-27
-647

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( tab0.col2 + - col0 )
----

query I rowsort
SELECT DISTINCT - col0 + col1 * col0 FROM tab1 WHERE ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT + col0 + - col0 * + col1 AS col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + col2 + col1 / col2 FROM tab2 WHERE col0 NOT IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT DISTINCT + col2 * col2 DIV col2 + tab1.col1 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT + col2 * col2 / col2 + tab1.col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT + col0 * - col0 + col1 AS col2 FROM tab2 cor0
----
-18
-6025
-6224

query I rowsort
SELECT + tab0.col2 + - col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT ALL - col2 DIV + col2 + + col1 DIV + col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - col2 / + col2 + + col1 / + col2 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT col0 - + col1 * + col1 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT - - col0 + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-5331
SELECT + + col2 * col0 DIV - cor0.col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5331
SELECT + + col2 * col0 / - cor0.col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL col0 + col1 + col0 FROM tab2
----
175
215
45

query I rowsort
SELECT DISTINCT col1 + - col0 * col0 * - tab2.col0 AS col2 FROM tab2
----
374
474611
493056

query I rowsort
SELECT DISTINCT + col0 + + col2 * + col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NULL IN ( + col1 )
----

query I rowsort
SELECT + cor0.col1 FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND NULL OR ( col0 ) <> NULL
----

query I rowsort
SELECT + cor0.col1 * + col2 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT - + col1 + - col1 FROM tab2 cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5339
SELECT - + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5339
SELECT - + col0 / + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + cor0.col2 + + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT - col0 * col2 * col1 + + cor0.col1 FROM tab1 cor0
----
-36470
-4186
-99827

query I rowsort
SELECT ALL col0 * col2 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - + cor0.col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT col2 + + col2 * + col2 * col0 FROM tab2 AS cor0
----
114114
5130
52754

query I rowsort
SELECT ALL tab2.col1 + col2 + + col2 * - col2 FROM tab2
----
-1389
-591
-671

query I rowsort
SELECT - col2 + 35 AS col1 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT ( - 58 ) FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT col0 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - - col0 + + col0 * - col2 AS col2 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT + - ( col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col0 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 93 * - col2 FROM tab0 AS cor0
----
-3069
-7626
-93

query I rowsort
SELECT DISTINCT + 92 FROM tab2, tab2 cor0
----
92

query I rowsort
SELECT - + 46 + col2 FROM tab1 AS cor0
----
11
50
8

query I rowsort
SELECT - col0 + - col2 * + 65 AS col0 FROM tab2 AS cor0
----
-1762
-1768
-2549

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT ALL - 75 * col0 + + col0 DIV - ( cor0.col2 ) col2 FROM tab1 AS cor0
----
-225
-4801
-6000

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - 75 * col0 + + col0 / - ( cor0.col2 ) col2 FROM tab1 AS cor0
----
-225
-4801
-6000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5358
SELECT DISTINCT 4 + col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT 4 + col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + ( col0 ) * + 77 FROM tab2 cor0
----
-539
-6006
-6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - cor0.col1 col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab2.col0 * col1 + ( - 94 ) * col2 col1 FROM tab2
----
19259
269074
4189

query I rowsort
SELECT + col2 * + cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT + + col0 - + col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
3
63
80

skipif mysql # not compatible
query I rowsort label-5363
SELECT + + col0 - + col0 / + col2 AS col2 FROM tab1 AS cor0
----
3
63
80

query I rowsort
SELECT + col2 * col1 + - ( col2 ) FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + col2 + + cor0.col1 * - col2 * + 13 AS col1 FROM tab0 AS cor0
----
-1260
-36861
-96924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - ( + col2 ) col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + 35 * col0 AS col1 FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT - - col0 + - col1 * col0 + - col1 * + col0 FROM tab2 AS cor0
----
-2607
-427
-9126

query I rowsort
SELECT ALL + col2 * + col0 * 11 + col0 AS col2 FROM tab1 AS cor0
----
1785
40192
84560

query I rowsort
SELECT - + cor0.col0 * - 6 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT ALL col2 + 38 FROM tab2 AS cor0
----
64
65
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - cor0.col0 * - col0 col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT col2 * + col1 * 40 FROM tab0 AS cor0
----
113520
298480
3880

query I rowsort
SELECT DISTINCT + col2 * + 95 AS col1 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT - col2 * 99 + cor0.col1 FROM tab1 AS cor0
----
-5320
-5633
-9491

query I rowsort
SELECT - col1 * + ( + 95 ) AS col0 FROM tab0 AS cor0
----
-8170
-8645
-9215

query I rowsort
SELECT DISTINCT tab0.col0 * tab0.col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - 61 AS col1 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT DISTINCT - col0 + + 59 * - col2 + + col2 FROM tab1
----
-3135
-3370
-5648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + col1 col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT - col0 + + col2 - col1 * col0 FROM tab2
----
-1384
-197
-4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-5382
SELECT ALL + col2 DIV col1 + - tab0.col0 + - tab0.col1 FROM tab0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL + col2 / col1 + - tab0.col0 + - tab0.col1 FROM tab0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + - ( col2 ) col1 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5384
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 60 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 60 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT ALL col0 + + col1 DIV - col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL col0 + + col1 / - col0 FROM tab0 AS cor0
----
21
33
88

query I rowsort
SELECT - 9 * - ( - col1 * 9 + + col1 ) AS col1 FROM tab1 AS cor0
----
-1872
-720
-936

query I rowsort
SELECT ALL 13 - tab0.col0 FROM tab0
----
-11
-22
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT ALL - col0 - col2 DIV - 55 FROM tab1
----
-3
-63
-79

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - col0 - col2 / - 55 FROM tab1
----
-3
-63
-79

query I rowsort
SELECT ALL tab1.col2 + - col1 * - ( col1 ) - + col1 * col0 AS col1 FROM tab1
----
-483
-775
652

query I rowsort
SELECT - 5 - - tab2.col1 * - 65 * - 27 AS col1 FROM tab2
----
103540
29830
54400

query I rowsort
SELECT 6 * col2 AS col1 FROM tab1 cor0
----
324
342
576

query I rowsort
SELECT col1 * + col1 + - ( col0 ) - cor0.col2 AS col2 FROM tab2 AS cor0
----
172
3377
927

onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT ( col1 ) DIV - 98 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5393
SELECT ( col1 ) / - 98 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) AS col2 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5395
SELECT DISTINCT + col0 * cor0.col0 * + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + col0 * cor0.col0 * + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 57 + col1 AS col1 FROM tab1 AS cor0
----
-31
-44
-47

query I rowsort
SELECT - + 7 + col1 AS col2 FROM tab0 AS cor0
----
79
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 66 col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + - 58 + + col2 + - col2 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + col2 * + 20 - tab2.col0 * - tab2.col1 * + 95 AS col1 FROM tab2
----
128345
21155
437710

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963

query I rowsort
SELECT ALL - 32 + col0 FROM tab1 AS cor0
----
-29
32
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

query I rowsort
SELECT + cor0.col1 + - col0 * 99 AS col1 FROM tab1 AS cor0
----
-271
-6326
-7907

query I rowsort
SELECT DISTINCT - 37 + - col0 AS col2 FROM tab1 cor0
----
-101
-117
-40

query I rowsort
SELECT + 39 + col1 * - col2 FROM tab0 AS cor0
----
-2799
-58
-7423

query I rowsort
SELECT ALL 24 * cor0.col2 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT ALL col0 + - col2 + ( - col0 ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL tab0.col0 + - col0 * 38 FROM tab0
----
-1295
-3293
-888

query I rowsort
SELECT col1 * ( col1 ) - - tab2.col1 AS col2 FROM tab2
----
306
3540
992

query I rowsort
SELECT DISTINCT + col0 * + 87 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT DISTINCT + - col1 * - 15 - 96 * col1 AS col1 FROM tab1 AS cor0
----
-1053
-2106
-810

query I rowsort
SELECT DISTINCT col0 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + ( + col1 ) * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + 27 + 7 + + col2 AS col1 FROM tab1 AS cor0
----
130
88
91

query I rowsort
SELECT ALL + col2 * col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col1 * col2 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - - col0 * 41 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT DISTINCT 94 * 42 AS col0 FROM tab1 AS cor0
----
3948

query I rowsort
SELECT DISTINCT 45 + col2 * col0 AS col0 FROM tab0 AS cor0
----
7343
80
837

query I rowsort
SELECT DISTINCT + - col1 * - 63 + cor0.col0 * 56 FROM tab1 AS cor0
----
1806
4214
5299

query I rowsort
SELECT ALL 26 * col2 * col0 + 57 + 99 * col0 AS col0 FROM tab1 AS cor0
----
101241
207657
4566

query I rowsort
SELECT - ( + 8 ) AS col2 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL - col0 * + col2 + tab2.col2 * col2 * + col2 FROM tab2
----
15548
19494
51870

query I rowsort
SELECT + + 77 * + cor0.col2 + - col0 + + col1 FROM tab0 AS cor0
----
139
2603
6316

query I rowsort
SELECT - ( + 83 ) + - col0 * + col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-299
-3788
-7859

query I rowsort
SELECT ALL + col1 + - 9 FROM tab1 AS cor0
----
1
17
4

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL 29 * ( col1 ) + col2 + col0 FROM tab1 AS cor0
----
411
553
811

query I rowsort
SELECT DISTINCT - ( 9 ) * col2 * 29 AS col0 FROM tab1 AS cor0
----
-14094
-14877
-25056

query I rowsort
SELECT ALL - col2 + - col1 * + col2 - - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + ( - ( - col1 ) ) AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + col1 * col2 * col1 + col0 FROM tab1 AS cor0
----
16304
36507
5764

query I rowsort
SELECT ( + ( col0 ) ) * + col1 * + col0 + tab2.col2 FROM tab2
----
106135
1546
358982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - tab2.col2 * - col2 col1 FROM tab2
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5439
SELECT - CAST( NULL AS SIGNED ) / - col2 + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT - CAST ( NULL AS INTEGER ) / - col2 + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 64 + col2 * col0 AS col1 FROM tab2
----
2092
253
3066

query I rowsort
SELECT DISTINCT col2 * + ( - col2 * + col0 + + ( cor0.col2 ) ) FROM tab1 cor0
----
-204687
-5832
-728064

query I rowsort
SELECT DISTINCT - col0 - + ( - col1 ) FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5443
SELECT + col2 DIV - col1 - 87 AS col0 FROM tab0 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-5443
SELECT + col2 / - col1 - 87 AS col0 FROM tab0 AS cor0
----
-87
-87
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5444
SELECT - col1 + + CAST( 97 AS SIGNED ) * + col0 - + col2 FROM tab2 AS cor0
----
621
7481
7608

skipif mysql # not compatible
query I rowsort label-5444
SELECT - col1 + + CAST ( 97 AS INTEGER ) * + col0 - + col2 FROM tab2 AS cor0
----
621
7481
7608

query I rowsort
SELECT ALL - + cor0.col1 * ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT cor0.col0 + 41 FROM tab1 AS cor0
----
105
121
44

query I rowsort
SELECT DISTINCT + - col0 + 85 AS col0 FROM tab0 AS cor0
----
-4
50
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col1 + col0 * - col0 col2 FROM tab0 AS cor0
----
-1093
-466
-7741

query I rowsort
SELECT - - col2 - + 99 FROM tab1 AS cor0
----
-3
-42
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 + tab1.col1 col0 FROM tab1
----
106
122
77

query I rowsort
SELECT DISTINCT + tab0.col0 * col2 + - tab0.col2 - col1 AS col2 FROM tab0
----
-63
673
7125

query I rowsort
SELECT col0 + - col1 * + col1 * + 20 FROM tab2
----
-19213
-5701
-69542

query I rowsort
SELECT col0 + 31 FROM tab1
----
111
34
95

query I rowsort
SELECT ALL col0 * 47 FROM tab1 cor0
----
141
3008
3760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5455
SELECT ALL - + cor0.col2 DIV + col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - + cor0.col2 / + col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - + col2 * col0 * - col0 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col2 - 93 * - col0 col1 FROM tab2 AS cor0
----
1488
7993
8788

query I rowsort
SELECT ALL 16 * - 29 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1773ffa529b68062a323cffd9c7492c4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5459
SELECT + col0 DIV - 62 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT + col0 / - 62 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - ( + col0 ) * 43 + - 22 FROM tab0 AS cor0
----
1010
1483
3805

query I rowsort
SELECT - col2 + col1 * + ( - col1 ) * col0 AS col2 FROM tab0 AS cor0
----
-177537
-329316
-737091

query I rowsort
SELECT - + col1 * - col2 * - col2 - - 67 FROM tab2 AS cor0
----
-22532
-24481
-39817

query I rowsort
SELECT - ( - col0 ) * col1 + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + ( col2 * - col1 + tab2.col1 ) FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT + cor0.col0 + - cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col0 * 65 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-37440
-514865
-79625

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5467
SELECT - + col1 + CAST( NULL AS SIGNED ) * - col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT - + col1 + CAST ( NULL AS INTEGER ) * - col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5468
SELECT DISTINCT col2 DIV + col0 AS col0 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT col2 / + col0 AS col0 FROM tab2
----
0
3

query I rowsort
SELECT ALL col0 * - ( + 0 ) + + col2 AS col0 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col1 FROM tab1 WHERE NULL = + col2 / + col2
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND col1 * + col2 * col1
----

query I rowsort
SELECT ALL col0 * col0 + col2 AS col0 FROM tab1
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT DISTINCT col2 * tab1.col2 + col2 DIV col0 FROM tab1
----
2934
3249
9217

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT col2 * tab1.col2 + col2 / col0 FROM tab1
----
2934
3249
9217

onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT DISTINCT tab0.col0 * col0 DIV tab0.col0 + col0 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT tab0.col0 * col0 / tab0.col0 + col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL col2 * + tab1.col0 - col2 * col0 * col0 AS col1 FROM tab1
----
-229824
-324
-606720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 - col0 col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT ALL - col2 + col1 * - col2 AS col2 FROM tab0 WHERE - col0 IN ( - col1 - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + + col0 col1 FROM tab1 WHERE NOT NULL IN ( col0 + + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5479
SELECT 73 DIV col0 AS col0 FROM tab0 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5479
SELECT 73 / col0 AS col0 FROM tab0 cor0
----
0
2
3

query I rowsort
SELECT ALL + 36 AS col1 FROM tab1, tab2 cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to f3516e4f0cd257678cfc181cd438fd01

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 + - col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query III rowsort label-5482
SELECT DISTINCT * FROM tab2 WHERE + col2 + - col2 IN ( - col1 DIV - col0 )
----
78
59
26
79
17
38

skipif mysql # not compatible
query III rowsort label-5482
SELECT DISTINCT * FROM tab2 WHERE + col2 + - col2 IN ( - col1 / - col0 )
----
78
59
26
79
17
38

query I rowsort
SELECT tab0.col2 FROM tab0 WHERE NULL > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT col1 DIV - col2 + col1 col1 FROM tab0
----
0
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5484
SELECT col1 / - col2 + col1 col1 FROM tab0
----
0
84
90

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( tab1.col1 * col1 )
----

query I rowsort
SELECT - col2 * + col0 / tab0.col0 - - col2 AS col1 FROM tab0 WHERE NOT col0 + + col2 > col0
----

query I rowsort
SELECT ALL + col0 + col2 * col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT - - col2 * + col0 - cor0.col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + cor0.col1 * - cor0.col2 - ( - col1 ) FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - 64 * col2 FROM tab1 AS cor0
----
-3456
-3648
-6144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT - + 27 * col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT - + 27 * col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT col1 + + col2 * 40 AS col0 FROM tab2 AS cor0
----
1099
1111
1537

query I rowsort
SELECT ALL - ( - col0 ) * + col2 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col2 + col1 * 85 AS col1 FROM tab1 AS cor0
----
1201
2264
907

query I rowsort
SELECT DISTINCT - 33 + + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
2
7265
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5497
SELECT DISTINCT + + col1 / - col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT + + col1 / - col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 * + col2 + col1 * col2 * col0 FROM tab2 AS cor0
----
120328
52478
6588

onlyif mysql # use DIV operator for integer division
query I rowsort label-5499
SELECT + ( + col1 ) DIV col0 + tab2.col0 AS col0 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-5499
SELECT + ( + col1 ) / col0 + tab2.col0 AS col0 FROM tab2
----
11
78
79

query I rowsort
SELECT ALL + tab2.col0 - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 - cor0.col1 * + col2 * + ( 53 ) AS col2 FROM tab2 AS cor0
----
-34276
-44388
-81328

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 * - col1 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT - ( 87 ) * + col0 + - col0 * + col2 AS col0 FROM tab2
----
-798
-8814
-9875

query I rowsort
SELECT + 41 * col1 AS col2 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT col1 + 13 * + 78 AS col0 FROM tab2 AS cor0
----
1031
1045
1073

query I rowsort
SELECT DISTINCT - cor0.col2 * ( - col1 * col2 ) FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT + col2 * + 3 AS col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT DISTINCT cor0.col1 - - 16 * ( col2 ) DIV 78 FROM tab1 cor0
----
21
32
37

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT cor0.col1 - - 16 * ( col2 ) / 78 FROM tab1 cor0
----
21
32
37

query I rowsort
SELECT - col0 * - cor0.col2 + - cor0.col2 AS col1 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT ALL - + col0 + + ( 44 ) AS col0 FROM tab2 AS cor0
----
-34
-35
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5512
SELECT ALL - tab2.col1 DIV - col0 + 33 FROM tab2
----
33
33
37

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - tab2.col1 / - col0 + 33 FROM tab2
----
33
33
37

query I rowsort
SELECT DISTINCT + + col2 + + ( col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col0 * + 40 + ( col0 ) * + ( + 46 ) AS col0 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT ALL col1 + ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5516
SELECT + col2 DIV ( col2 ) + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5516
SELECT + col2 / ( col2 ) + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5519
SELECT - cor0.col2 * - 89 + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
4807
5074
8545

skipif mysql # not compatible
query I rowsort label-5519
SELECT - cor0.col2 * - 89 + col1 / + col1 AS col2 FROM tab1 AS cor0
----
4807
5074
8545

query I rowsort
SELECT - col0 + ( + tab0.col0 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
-89

query I rowsort
SELECT ALL + tab0.col0 * - tab0.col2 + cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to d277fe23f7a0dc3719fb6cba4feb73f2

query I rowsort
SELECT DISTINCT + + col0 * + 55 * + col2 + col2 * + 66 AS col1 FROM tab0 AS cor0
----
1991
406802
45738

query I rowsort
SELECT DISTINCT col1 * col2 + + col0 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * - col0 col0 FROM tab2
----
-287
-3198
-3239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + 28 col1 FROM tab1
----
79
79
79

query I rowsort
SELECT DISTINCT + 18 - - col2 FROM tab0
----
100
19
51

query I rowsort
SELECT - 68 * + col0 FROM tab0
----
-1632
-2380
-6052

query I rowsort
SELECT ALL + col1 + col0 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
2150
3492
8190

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-5531
SELECT ALL col1 * + col1 DIV 1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL col1 * + col1 / 1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + cor0.col2 - - col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + col1 - + col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT col1 * cor0.col1 + 97 AS col1 FROM tab2 AS cor0
----
1058
3578
386

query I rowsort
SELECT + tab2.col1 + + tab2.col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT 0 * + col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 10 * col0 FROM tab2
----
70
780
790

query I rowsort
SELECT - col0 + 79 FROM tab0 cor0
----
-10
44
55

query I rowsort
SELECT - cor0.col2 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT + col2 * 53 AS col2 FROM tab0
----
1749
4346
53

query I rowsort
SELECT + col1 * 1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT - col0 * - 23 AS col2 FROM tab0 AS cor0
----
2047
552
805

onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT + cor0.col0 + + 17 DIV - col1 AS col2 FROM tab1 AS cor0
----
3
63
79

skipif mysql # not compatible
query I rowsort label-5543
SELECT + cor0.col0 + + 17 / - col1 AS col2 FROM tab1 AS cor0
----
3
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5544
SELECT + col0 * col0 DIV ( col0 ) + + 19 FROM tab2 AS cor0
----
26
97
98

skipif mysql # not compatible
query I rowsort label-5544
SELECT + col0 * col0 / ( col0 ) + + 19 FROM tab2 AS cor0
----
26
97
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * - 82 col1 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT - + col2 * + 47 AS col2 FROM tab1 AS cor0
----
-2538
-2679
-4512

onlyif mysql # use DIV operator for integer division
query I rowsort label-5547
SELECT - tab1.col1 DIV - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b42d26ae99e9c53a883dc8143c58ac7a

skipif mysql # not compatible
query I rowsort label-5547
SELECT - tab1.col1 / - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b42d26ae99e9c53a883dc8143c58ac7a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT DISTINCT + col0 * cor0.col1 + col0 DIV + col0 + + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-3455
-5359
70

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT + col0 * cor0.col1 + col0 / + col0 + + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-3455
-5359
70

query I rowsort
SELECT - - 35 + col0 AS col2 FROM tab1 AS cor0
----
115
38
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5550
SELECT ALL - + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL - + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT - CAST( + col1 AS SIGNED ) DIV + col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5551
SELECT - CAST ( + col1 AS INTEGER ) / + col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 6 FROM tab1, tab0 cor0
----
6

query I rowsort
SELECT DISTINCT - + ( - col0 ) + - col2 * 8 FROM tab1 AS cor0
----
-392
-429
-688

query I rowsort
SELECT + 85 * - col1 + 3 FROM tab2 AS cor0
----
-1442
-2632
-5012

query I rowsort
SELECT - 40 + col2 AS col0 FROM tab1 AS cor0
----
14
17
56

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab0 AS cor0
----
77

query I rowsort
SELECT DISTINCT col0 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - col2 + col1 * + col1 * col0 AS col2 FROM tab1
----
13424
1974
6343

onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT + 27 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 27 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + tab0.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT ( 67 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) * + col1 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ( col1 ) * - col2 + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT ALL + cor1.col1 * + cor0.col2 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to beb2df893579871bcb51459c78b13f94

query I rowsort
SELECT - 25 - - col2 FROM tab2 AS cor0
----
1
13
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5566
SELECT DISTINCT + col2 * CAST( 91 AS SIGNED ) + col0 AS col1 FROM tab1
----
4917
5251
8816

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT + col2 * CAST ( 91 AS INTEGER ) + col0 AS col1 FROM tab1
----
4917
5251
8816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5567
SELECT CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 1 + 93 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT tab1.col0 + + tab1.col0 * + col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL + col2 - - 19 FROM tab1
----
115
73
76

query I rowsort
SELECT + ( 54 ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT 21 * col1 AS col0 FROM tab0
----
1806
1911
2037

query I rowsort
SELECT col1 + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col2 * col0 * 9 AS col0 FROM tab0 AS cor0
----
315
65682
7128

onlyif mysql # use DIV operator for integer division
query I rowsort label-5575
SELECT + col0 DIV tab1.col1 + col1 FROM tab1
----
16
19
26

skipif mysql # not compatible
query I rowsort label-5575
SELECT + col0 / tab1.col1 + col1 FROM tab1
----
16
19
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5576
SELECT + CAST( NULL AS SIGNED ) * 36 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5576
SELECT + CAST ( NULL AS INTEGER ) * 36 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5577
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT - + col0 * ( + 15 ) AS col1 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT ALL 49 * 47 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3cf6dc3b818401311b49e018b81645bb

query I rowsort
SELECT cor0.col2 * + col2 * col0 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT + + cor0.col2 * - col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - - cor0.col2 * ( 26 + - col0 ) AS col0 FROM tab2 AS cor0
----
-1352
-2014
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( + 50 ) col1 FROM tab2
----
128
129
57

skipif mysql # not compatible
query I rowsort
SELECT - col0 - + CAST ( + col0 AS REAL ) AS col1 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT - col2 * ( - col1 ) + col1 FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5586
SELECT cor0.col2 DIV - ( 34 ) FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5586
SELECT cor0.col2 / - ( 34 ) FROM tab2 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + ( col1 * tab2.col0 ) col1 FROM tab2
----
-106097
-1519
-358956

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

onlyif mysql # use DIV operator for integer division
query I rowsort label-5589
SELECT col1 DIV 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT col1 / 61 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2 AS cor0
----
94

query I rowsort
SELECT DISTINCT 48 + - 12 AS col0 FROM tab1 AS cor0
----
36

query I rowsort
SELECT ALL - - 98 + - 45 AS col2 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5593
SELECT + CAST( + col2 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-5593
SELECT + CAST ( + col2 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - col0 * + col0 + - col1 * - 19 * - col2 FROM tab2 cor0
----
-15952
-18515
-35230

query I rowsort
SELECT + 63 * + col2 + col1 FROM tab2 AS cor0
----
1697
1732
2411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 + 75 col2 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - tab2.col0 * ( - col2 + - col2 ) FROM tab2
----
378
4056
6004

query I rowsort
SELECT col1 + - col2 * - col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + ( + 9 ) FROM tab2 cor0
----
9

query I rowsort
SELECT DISTINCT + + 14 FROM tab2 cor0
----
14

query I rowsort
SELECT ( 65 ) * + col2 FROM tab1 cor0
----
3510
3705
6240

query I rowsort
SELECT + + 66 * col0 + + 97 FROM tab1 AS cor0
----
295
4321
5377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + + col0 col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + + 35 + col1 * + col2 col1 FROM tab0 AS cor0
----
14795
167
3665

query I rowsort
SELECT ALL col1 + + col1 * + 33 AS col1 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT + + 1 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - + 82 * col0 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT ALL - col2 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL + + col2 * cor0.col0 + col0 FROM tab2 cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5611
SELECT + col0 * - cor0.col1 + + CAST( col2 * - col2 AS SIGNED ) FROM tab2 AS cor0
----
-2787
-5278
-946

skipif mysql # not compatible
query I rowsort label-5611
SELECT + col0 * - cor0.col1 + + CAST ( col2 * - col2 AS INTEGER ) FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT ALL - col1 + col2 * 64 AS col2 FROM tab1 AS cor0
----
3430
3638
6131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - + col2 * col2 * - col0 + - col1 * 21 FROM tab1 cor0
----
207726
737007
8202

query I rowsort
SELECT ALL col0 + - 80 FROM tab2 AS cor0
----
-1
-2
-73

query I rowsort
SELECT col1 * + col1 * - col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT + 28 * - col2 AS col1 FROM tab1
----
-1512
-1596
-2688

query I rowsort
SELECT ALL - - ( col2 ) * col0 - 32 * + 4 FROM tab1 AS cor0
----
34
3520
7552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col2 + col2 * - col0 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 - col0 col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + ( + col1 ) + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT 29 + 87 AS col2 FROM tab2 AS cor0
----
116

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( + col1 ) AS col0 FROM tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col0 + col1 col2 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - col1 + col0 + + col2 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT ( + tab2.col2 ) * col2 + + tab2.col0 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL - 78 + - col0 * col1 FROM tab0 AS cor0
----
-2142
-3473
-8177

query I rowsort
SELECT ALL - 78 + - 20 FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + 82 - + cor0.col0 FROM tab2 AS cor0
----
3
4
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5631
SELECT ALL CAST( NULL AS SIGNED ) + + 83 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL CAST ( NULL AS INTEGER ) + + 83 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 28 ) AS col2 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - - col1 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 54 col0 FROM tab1 AS cor0
----
-1404
-540
-702

query I rowsort
SELECT ( + 35 ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
124
59
70

query I rowsort
SELECT DISTINCT - + 22 * col1 * col1 AS col0 FROM tab0 AS cor0
----
-162712
-182182
-206998

query I rowsort
SELECT ALL - - col2 * - col1 * - col0 + ( + 88 ) AS col2 FROM tab2 AS cor0
----
119740
51122
5947

query I rowsort
SELECT 78 + - col0 AS col0 FROM tab0 AS cor0
----
-11
43
54

query I rowsort
SELECT DISTINCT + ( + 34 ) * col1 AS col0 FROM tab1 AS cor0
----
340
442
884

query I rowsort
SELECT + col0 + col2 + + ( + col1 ) * col0 * col2 AS col2 FROM tab0 AS cor0
----
3431
664289
68169

onlyif mysql # use DIV operator for integer division
query I rowsort label-5641
SELECT + col0 * col0 DIV + 60 + col2 + + col1 FROM tab1 AS cor0
----
135
215
80

skipif mysql # not compatible
query I rowsort label-5641
SELECT + col0 * col0 / + 60 + col2 + + col1 FROM tab1 AS cor0
----
135
215
80

query I rowsort
SELECT ( 68 * - col0 ) + - tab0.col0 FROM tab0
----
-1656
-2415
-6141

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 + - col0 AS REAL ) * + col1 * - 70 AS col1 FROM tab0
----
1146600
662200
896280

query I rowsort
SELECT + col1 + tab2.col0 + col1 FROM tab2
----
113
196
69

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT ALL - col2 * 71 AS col2 FROM tab1 AS cor0
----
-3834
-4047
-6816

query I rowsort
SELECT DISTINCT + - col2 * - col0 + + 42 AS col0 FROM tab0 cor0
----
7340
77
834

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5648
SELECT DISTINCT + col1 + CAST( col1 AS SIGNED ) * cor0.col1 * 89 FROM tab2 AS cor0
----
25738
309868
85560

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT + col1 + CAST ( col1 AS INTEGER ) * cor0.col1 * 89 FROM tab2 AS cor0
----
25738
309868
85560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 7 col0 FROM tab2 AS cor0
----
24
38
66

query I rowsort
SELECT ALL + - 51 FROM tab2, tab2 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ALL - + ( cor0.col2 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # use DIV operator for integer division
query I rowsort label-5652
SELECT ALL + + col0 * col0 + col0 * - col2 + 60 * col0 DIV cor0.col2 FROM tab0 AS cor0
----
-173
3290
688

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL + + col0 * col0 + col0 * - col2 + 60 * col0 / cor0.col2 FROM tab0 AS cor0
----
-173
3290
688

query I rowsort
SELECT DISTINCT - col2 - + tab2.col0 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL col0 - 0 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT - col1 + ( 39 ) + + col1 * - col0 DIV col0 FROM tab1
----
-13
13
19

skipif mysql # not compatible
query I rowsort label-5655
SELECT - col1 + ( 39 ) + + col1 * - col0 / col0 FROM tab1
----
-13
13
19

query I rowsort
SELECT DISTINCT + col2 * col2 - tab2.col0 * col2 FROM tab2
----
-1352
-1558
540

onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT DISTINCT - col1 * col0 DIV + col2 - + col0 col0 FROM tab0
----
-187
-3430
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT - col1 * col0 / + col2 - + col0 col0 FROM tab0
----
-187
-3430
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5658
SELECT + CAST( NULL AS SIGNED ) * + 22 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5658
SELECT + CAST ( NULL AS INTEGER ) * + 22 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * 44 - - tab0.col1 col0 FROM tab0
----
3956
4186
4462

query I rowsort
SELECT + col1 * - 17 FROM tab0
----
-1462
-1547
-1649

onlyif mysql # use DIV operator for integer division
query I rowsort label-5661
SELECT + col1 DIV ( col2 * + col1 ) - - ( + col2 ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5661
SELECT + col1 / ( col2 * + col1 ) - - ( + col2 ) FROM tab1
----
54
57
96

query I rowsort
SELECT + col2 + ( - col1 ) + - col1 AS col0 FROM tab0
----
-100
-139
-193

query I rowsort
SELECT DISTINCT - - col2 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5664
SELECT + - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT + - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 64 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT - col2 DIV + col2 col1 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5666
SELECT - col2 / + col2 col1 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * col2 col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT ALL 32 * + col2 + col2 AS col1 FROM tab0
----
1089
2706
33

query I rowsort
SELECT ALL col2 * col1 + + col1 + col1 FROM tab2
----
1652
680
899

query I rowsort
SELECT ALL + col1 * col2 + - col0 * + col2 AS col1 FROM tab2
----
-2356
-494
648

query I rowsort
SELECT DISTINCT col2 + - col0 * - col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab0, tab2 AS cor0
----
32

query I rowsort
SELECT + ( + col1 ) - col2 * + 11 FROM tab2 AS cor0
----
-227
-266
-401

query I rowsort
SELECT DISTINCT col2 * - col1 + cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT col2 DIV - tab1.col2 + 25 * + col0 AS col0 FROM tab1
----
1599
1999
74

skipif mysql # not compatible
query I rowsort label-5675
SELECT col2 / - tab1.col2 + 25 * + col0 AS col0 FROM tab1
----
1599
1999
74

query I rowsort
SELECT DISTINCT - cor0.col1 * - 14 AS col1 FROM tab0, tab0 AS cor0
----
1204
1274
1358

query I rowsort
SELECT DISTINCT + - col2 + + col2 * + col0 * + col2 AS col1 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT - ( - col0 ) * col1 * + 69 + - col1 + 59 AS col2 FROM tab1 cor0
----
44209
5415
71806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5679
SELECT DISTINCT tab2.col1 * - col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT tab2.col1 * - col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL + col2 * ( 67 * cor0.col0 ) + col2 * - col2 AS col2 FROM tab2 AS cor0
----
11934
135200
199690

query I rowsort
SELECT DISTINCT + col0 + 32 AS col2 FROM tab2 AS cor0
----
110
111
39

query I rowsort
SELECT cor0.col1 * col2 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT ALL col2 DIV ( - col1 * cor0.col0 + + col1 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL col2 / ( - col1 * cor0.col0 + + col1 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - col0 * + 44 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT + - col0 + + col1 * - col1 FROM tab2 AS cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-5687
SELECT - + col1 DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5687
SELECT - + col1 / + col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 * - 99 AS col2 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT 9 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT DISTINCT col0 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-30

query I rowsort
SELECT + col0 - - 73 FROM tab0 cor0
----
108
162
97

query I rowsort
SELECT ALL - - col2 * col0 - + col2 AS col0 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT - 48 * col2 FROM tab1
----
-2592
-2736
-4608

query I rowsort
SELECT DISTINCT + + col1 + 78 AS col1 FROM tab1 AS cor0
----
104
88
91

query I rowsort
SELECT ALL + col0 + + 28 AS col1 FROM tab2 cor0
----
106
107
35

query I rowsort
SELECT - ( - 33 ) * col0 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT cor0.col1 * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - - col2 * - col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5700
SELECT col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-5700
SELECT col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + tab2.col0 * - col2 + + 84 FROM tab2
----
-105
-1944
-2918

query I rowsort
SELECT - 84 * + ( col2 ) AS col2 FROM tab0
----
-2772
-6888
-84

query I rowsort
SELECT - + col2 * - 36 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
1274
133
3043

query I rowsort
SELECT - 3 * 84 FROM tab1 cor0
----
-252
-252
-252

query I rowsort
SELECT - + col2 * - 35 AS col1 FROM tab0 cor0
----
1155
2870
35

query I rowsort
SELECT - 56 AS col0 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab1, tab2, tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 + - 60 col2 FROM tab2
----
-144
-144
-144

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + - col1 + - col1 * - col0 + 62 AS col2 FROM tab2 AS cor0
----
1388
248
4605

query I rowsort
SELECT col2 * + col2 * - col1 FROM tab1 cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab1, tab2 cor0, tab0 AS cor1
----
7
78
79

query I rowsort
SELECT ALL - col1 * 61 + - col1 * 89 AS col1 FROM tab1
----
-1500
-1950
-3900

query I rowsort
SELECT ALL - - 66 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + 38 * col2 AS col0 FROM tab1 AS cor0
----
2052
2166
3648

query I rowsort
SELECT DISTINCT - 41 * - col0 FROM tab2 cor0
----
287
3198
3239

query I rowsort
SELECT + 21 * + col0 AS col2 FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT DISTINCT + + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col2 * + col2 * 54 FROM tab0 AS cor0
----
363096
54
58806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * + cor1.col0 + 45 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-424
-5181
-5248

query I rowsort
SELECT ALL + tab1.col1 - - 45 * col2 * - col1 FROM tab1
----
-25640
-56147
-63154

query I rowsort
SELECT + col0 + ( ( + col1 ) ) - ( col0 * col0 ) FROM tab0 AS cor0
----
-1093
-466
-7741

query I rowsort
SELECT - col1 - ( cor0.col1 ) FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5724
SELECT - col1 + + CAST( 64 AS SIGNED ) FROM tab2 AS cor0
----
33
47
5

skipif mysql # not compatible
query I rowsort label-5724
SELECT - col1 + + CAST ( 64 AS INTEGER ) FROM tab2 AS cor0
----
33
47
5

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 + - 61 * + col1 FROM tab0 AS cor0
----
-5222
-5462
-5882

onlyif mysql # use DIV operator for integer division
query I rowsort label-5727
SELECT col0 * ( + ( + col0 ) ) DIV col0 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5727
SELECT col0 * ( + ( + col0 ) ) / col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + 88 * + col0 FROM tab1 cor0
----
264
5632
7040

query I rowsort
SELECT - ( 83 ) FROM tab2 AS cor0
----
-83
-83
-83

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

query I rowsort
SELECT DISTINCT + - 94 + - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-104
-107
-120

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + 85 + + col1 * col0 FROM tab2 AS cor0
----
1428
302
4687

query I rowsort
SELECT DISTINCT - + 13 FROM tab2 AS cor0
----
-13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5735
SELECT col0 * CAST( NULL AS DECIMAL ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT col0 * CAST ( NULL AS REAL ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - 38 * 54 AS col1 FROM tab2
----
-121068
-34884
-63612

query I rowsort
SELECT ALL + 9 FROM tab1, tab2 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + tab0.col2 + ( col1 ) FROM tab0
----
119
173
98

query I rowsort
SELECT + 3 * - col1 FROM tab0 AS cor0
----
-258
-273
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col2 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT col1 * + 73 AS col2 FROM tab0
----
6278
6643
7081

query I rowsort
SELECT - col2 + tab1.col0 * + col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT + col1 * 73 + col1 FROM tab2
----
1258
2294
4366

onlyif mysql # use DIV operator for integer division
query I rowsort label-5744
SELECT DISTINCT - col0 * 10 DIV + cor0.col0 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT - col0 * 10 / + cor0.col0 FROM tab1 AS cor0
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT DISTINCT + col0 DIV + tab2.col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT + col0 / + tab2.col1 FROM tab2
----
0
1
4

query I rowsort
SELECT ALL col1 * 55 AS col2 FROM tab2
----
1705
3245
935

query I rowsort
SELECT - col1 + 93 AS col0 FROM tab0
----
-4
2
7

query I rowsort
SELECT + - ( + col0 ) + + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5749
SELECT DISTINCT + ( + 87 ) DIV + col0 AS col1 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT + ( + 87 ) / + col0 AS col1 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT ( - col1 ) + + cor0.col2 - - col1 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + ( + ( cor0.col1 ) ) + + col2 * + 56 FROM tab0 AS cor0
----
153
1934
4683

query I rowsort
SELECT + + 49 * - col2 + cor0.col1 + - col2 FROM tab0 AS cor0
----
-1564
-4009
47

query I rowsort
SELECT ALL + ( + 61 ) AS col1 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT - 69 + - col1 FROM tab2
----
-100
-128
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col1 * + col1 + - col1 col1 FROM tab0 AS cor0
----
635970
753480
912576

query I rowsort
SELECT - - col2 * + cor0.col2 * cor0.col1 + col0 FROM tab0 AS cor0
----
132
611973
93678

query I rowsort
SELECT DISTINCT col2 * - 26 - cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-123
-3696
-9594

query I rowsort
SELECT + col2 - + 89 FROM tab0 AS cor0
----
-56
-7
-88

query I rowsort
SELECT DISTINCT + - col2 + - 92 AS col2 FROM tab1 AS cor0
----
-146
-149
-188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col1 FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL + - 27 * 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 91132c149f81dc68388e05e0f58a5682

query I rowsort
SELECT ALL - col2 + col0 * + 34 AS col0 FROM tab1 cor0
----
2119
2624
48

query I rowsort
SELECT DISTINCT + - cor0.col0 + col0 * 80 AS col0 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT col0 * + col0 + + 35 + cor0.col0 FROM tab1 AS cor0
----
4195
47
6515

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + cor0.col2 col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5766
SELECT + - col1 + col1 + CAST( - col2 AS SIGNED ) DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5766
SELECT + - col1 + col1 + CAST ( - col2 AS INTEGER ) / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col1 col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - + ( col1 ) * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - col0 * col2 + col0 * + 56 FROM tab0 AS cor0
----
-2314
1925
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * col2 col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - 11 * + cor0.col0 * - col0 FROM tab2 AS cor0
----
539
66924
68651

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + + ( - col1 ) * - 93 AS col1 FROM tab2 AS cor0
----
11571
2932
7822

query I rowsort
SELECT ALL col0 + + 55 * 0 * - col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + cor0.col1 + 64 AS col2 FROM tab2 AS cor0
----
123
81
95

query I rowsort
SELECT - + 31 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5776
SELECT ALL + col0 * + CAST( NULL AS DECIMAL ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL + col0 * + CAST ( NULL AS REAL ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 - + col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5778
SELECT DISTINCT - cor0.col2 * CAST( NULL AS SIGNED ) + 64 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT - cor0.col2 * CAST ( NULL AS INTEGER ) + 64 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + 30 * col2 FROM tab1 AS cor0
----
1566
1653
2784

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5780
SELECT ALL + + col1 * CAST( col1 AS SIGNED ) + col0 FROM tab1 cor0
----
164
249
679

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL + + col1 * CAST ( col1 AS INTEGER ) + col0 FROM tab1 cor0
----
164
249
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5781
SELECT - + col2 * - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT - + col2 * - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 40 * col0 AS col1 FROM tab1
----
120
2560
3200

query I rowsort
SELECT - - col0 * col0 + col2 AS col1 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT col0 + cor0.col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col2 FROM tab1, tab0 cor0
----
15

query I rowsort
SELECT - ( ( + col1 ) ) * + col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 6 ) col1 FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT - col1 * col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT 44 * - tab2.col1 + tab2.col0 * + col1 * - col2 + col2 FROM tab2
----
-122222
-51744
-7196

query I rowsort
SELECT ALL + col2 + - 76 * col2 AS col2 FROM tab2
----
-1950
-2025
-2850

query I rowsort
SELECT DISTINCT - col2 * + 24 + + col0 FROM tab2
----
-546
-641
-833

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5793
SELECT + ( col2 ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT + ( col2 ) * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( cor0.col1 ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL col1 + col0 * - ( col1 ) + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-15470
-3395
-4816

query I rowsort
SELECT DISTINCT + 44 * - col2 AS col0 FROM tab1 cor0
----
-2376
-2508
-4224

query I rowsort
SELECT DISTINCT - - col0 - - col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + col2 - col1 * + col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5799
SELECT col0 - + col0 DIV - col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-5799
SELECT col0 - + col0 / - col1 FROM tab1
----
3
70
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + col2 col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - col1 * + tab1.col1 + col1 - - col2 * col1 AS col2 FROM tab1
----
1092
480
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 * + col2 col0 FROM tab2
----
162
2002
2964

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + col0 * - col1 * col2 AS col1 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT ALL col1 * tab1.col0 * - col1 FROM tab1
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col2 * col0 FROM tab1 WHERE ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT col0 * col1 AS col0 FROM tab1 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL tab0.col2 + tab0.col2 FROM tab0
----
164
2
66

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + - col1 * - col0 AS col2 FROM tab1
----
1120
704
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( col1 )
----

query I rowsort
SELECT ALL + ( + col2 ) + + col2 * - col1 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5814
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + 96 FROM tab1 cor0
----
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5816
SELECT ALL + ( cor0.col0 ) * + CAST( NULL AS SIGNED ) * - 51 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL + ( cor0.col0 ) * + CAST ( NULL AS INTEGER ) * - 51 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - - cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - tab2.col2 - + tab2.col0 * - tab2.col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT col1 + + tab2.col1 * - col2 - col2 AS col2 FROM tab2
----
-1501
-667
-833

query I rowsort
SELECT - col1 + col0 * col1 + col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT - col2 + + col0 FROM tab0 AS cor0 WHERE ( + col1 + col2 ) < ( NULL )
----

query I rowsort
SELECT ALL - col0 + + col0 * col1 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT col2 * col1 * + col0 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + col0 - col0 * col2 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT col2 + - tab0.col1 * + tab0.col2 AS col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0 WHERE ( + col0 * - col2 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col0 IN ( - tab2.col1 * - col0 )
----

query I rowsort
SELECT col2 * + tab1.col0 + tab1.col2 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL col2 + - col2 * col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL - + ( - 92 ) - cor0.col0 * ( - ( - col0 ) * - 29 ) FROM tab1 AS cor0
----
118876
185692
353

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 89 * col1 AS col1 FROM tab1 AS cor0
----
-1157
-2314
-890

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 31 AS REAL ) * - col1 - - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1153
-232
917

query I rowsort
SELECT 41 + + col2 FROM tab1 AS cor0
----
137
95
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5835
SELECT - + CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5835
SELECT - + CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 12 + + col2 * + col1 * col0 + col1 AS col1 FROM tab2 AS cor0
----
119723
51063
5902

query I rowsort
SELECT ALL col2 - + col0 * col2 AS col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + col0 * 29 AS col2 FROM tab2 AS cor0
----
203
2262
2291

query I rowsort
SELECT 9 * + 16 FROM tab2 AS cor0
----
144
144
144

query I rowsort
SELECT ALL - 38 + col1 FROM tab1 AS cor0
----
-12
-25
-28

query I rowsort
SELECT - col0 * col0 - col1 * + col2 AS col0 FROM tab2
----
-6887
-7618
-886

query I rowsort
SELECT ALL + 87 + + col1 AS col0 FROM tab1
----
100
113
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 + - col2 col1 FROM tab1
----
43
622
73

query I rowsort
SELECT DISTINCT - col2 * + col0 * - cor0.col2 FROM tab1 cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col2 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT + ( col0 ) + cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - 30 * col1 + 77 + - col1 AS col0 FROM tab2 cor0
----
-1752
-450
-884

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + cor0.col1 * - cor0.col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + ( + col0 ) + tab2.col2 * col2 AS col0 FROM tab2
----
1523
736
754

query I rowsort
SELECT - 48 + 2 FROM tab1
----
-46
-46
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT - col1 DIV tab2.col1 + - col2 + + col1 * col0 FROM tab2
----
1304
189
4575

skipif mysql # not compatible
query I rowsort label-5852
SELECT - col1 / tab2.col1 + - col2 + + col1 * col0 FROM tab2
----
1304
189
4575

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5853
SELECT ALL CAST( - ( col2 ) AS SIGNED ) + - col1 FROM tab0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL CAST ( - ( col2 ) AS INTEGER ) + - col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT col2 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col2 + - 61 FROM tab1 AS cor0
----
-4
-7
35

query I rowsort
SELECT - - col1 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL + 76 * col1 AS col2 FROM tab0
----
6536
6916
7372

query I rowsort
SELECT + + 16 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL 30 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 - + 96 col0 FROM tab0
----
1
2742
7366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 75 + ( col2 ) * + col0 - + col2 col1 FROM tab0
----
109
13366
3234

query I rowsort
SELECT DISTINCT + - col1 - ( + col2 ) * col0 * 20 AS col0 FROM tab1 AS cor0
----
-153613
-3266
-72970

query I rowsort
SELECT ALL col2 * + ( col2 + cor0.col1 * ( - ( cor0.col1 ) ) ) AS col2 FROM tab1 AS cor0
----
-2451
-33588
-7008

query I rowsort
SELECT ALL - col0 * - ( 19 ) + col2 FROM tab1 AS cor0
----
111
1273
1616

query I rowsort
SELECT ALL + - col2 + col2 * 94 AS col0 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT DISTINCT - + col0 - col2 * 9 AS col1 FROM tab0 AS cor0
----
-321
-44
-827

query I rowsort
SELECT DISTINCT - 48 * - 63 FROM tab2, tab2 AS cor0
----
3024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - - col2 col0 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT - + col1 + + col2 DIV + col2 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5869
SELECT - + col1 + + col2 / + col2 FROM tab1 AS cor0
----
-12
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5870
SELECT - col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5870
SELECT - col1 / - col0 AS col1 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT 36 * + tab0.col2 + col2 * 14 AS col2 FROM tab0
----
1650
4100
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col2 FROM tab0
----
89
89
89

query I rowsort
SELECT DISTINCT + 93 * cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
128
3093
7715

onlyif mysql # use DIV operator for integer division
query I rowsort label-5874
SELECT ALL + - col0 DIV col2 - cor0.col0 * col0 FROM tab0 AS cor0
----
-1260
-576
-7922

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL + - col0 / col2 - cor0.col0 * col0 FROM tab0 AS cor0
----
-1260
-576
-7922

query I rowsort
SELECT DISTINCT + col1 * col0 * col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 69 col1 FROM tab2
----
10
38
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col2 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL - - col1 * + col2 + + 91 FROM tab0 AS cor0
----
188
2929
7553

query I rowsort
SELECT DISTINCT 99 + cor0.col2 FROM tab0 AS cor0
----
100
132
181

query I rowsort
SELECT DISTINCT + 71 + col0 - ( - 75 ) AS col2 FROM tab1 AS cor0
----
149
210
226

query I rowsort
SELECT - 74 * + col1 AS col0 FROM tab0 AS cor0
----
-6364
-6734
-7178

query I rowsort
SELECT ALL col0 + cor0.col2 - ( col0 ) AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5884
SELECT ALL + + col0 + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + + col0 + col2 / - col1 AS col2 FROM tab1 AS cor0
----
1
59
73

query I rowsort
SELECT DISTINCT col1 + + 93 * - tab1.col0 + col0 FROM tab1
----
-250
-5878
-7347

query I rowsort
SELECT col2 * 40 + 12 AS col0 FROM tab1 cor0
----
2172
2292
3852

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5887
SELECT ALL CAST( - 76 AS SIGNED ) 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-5887
SELECT ALL CAST ( - 76 AS INTEGER ) col2 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT - - ( col0 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + ( 63 ) * col1 AS col1 FROM tab2 AS cor0
----
1071
1953
3717

query I rowsort
SELECT DISTINCT + + 30 FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT tab0.col1 * 13 AS col1 FROM tab0
----
1118
1183
1261

query I rowsort
SELECT ALL 94 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT - - col0 * + 22 FROM tab0 AS cor0
----
1958
528
770

query I rowsort
SELECT ALL + col0 * 23 + + col2 FROM tab2 AS cor0
----
1820
1855
188

query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + - col2 + + 33 FROM tab1 AS cor0
----
-21
-24
-63

query I rowsort
SELECT col1 + 16 FROM tab1 cor0
----
26
29
42

query I rowsort
SELECT col0 * 0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 33 * - col0 - col2 AS col1 FROM tab2 AS cor0
----
204
2548
2569

query I rowsort
SELECT col1 + 17 AS col1 FROM tab1 AS cor0
----
27
30
43

query I rowsort
SELECT + ( 71 ) * - col1 AS col1 FROM tab1 cor0
----
-1846
-710
-923

query I rowsort
SELECT - col1 + 87 + + cor0.col2 * ( cor0.col0 ) FROM tab0 AS cor0
----
25
7294
793

query I rowsort
SELECT cor0.col2 + col2 * + cor0.col0 * 0 AS col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5904
SELECT ALL - - CAST( 35 AS SIGNED ) FROM tab0 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL - - CAST ( 35 AS INTEGER ) FROM tab0 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + + col1 * + 25 * col1 FROM tab0 AS cor0
----
184900
207025
235225

query I rowsort
SELECT - 73 * col2 * col0 FROM tab2 AS cor0
----
-13797
-148044
-219146

query I rowsort
SELECT ALL 11 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT DISTINCT col1 * + col1 * - tab0.col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT 37 + cor0.col0 * 23 FROM tab2 AS cor0
----
1831
1854
198

query I rowsort
SELECT ALL + cor0.col0 - + 34 * col2 AS col1 FROM tab0 AS cor0
----
-1098
-2699
1

query I rowsort
SELECT ALL cor0.col2 + + ( + col2 ) * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1224
-18975
-649440

query I rowsort
SELECT ALL - + col2 * col0 - + col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + col0 + + col0 * 49 AS col0 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT DISTINCT + - col2 + col2 * col1 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT + col1 + - ( + 96 ) FROM tab0 cor0
----
-10
-5
1

query I rowsort
SELECT ( + 55 ) + cor0.col0 + 80 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 513f5d4729bcd6abf800322175f6f8a6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5918
SELECT + CAST( NULL AS SIGNED ) * 13 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5918
SELECT + CAST ( NULL AS INTEGER ) * 13 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 + ( - 27 ) FROM tab1
----
-1
-14
-17

query I rowsort
SELECT - 18 + - 59 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT + + col2 + - 51 AS col0 FROM tab1 AS cor0
----
3
45
6

query I rowsort
SELECT + 75 * 7 + col2 FROM tab2 AS cor0
----
551
552
563

query I rowsort
SELECT DISTINCT - 16 FROM tab0, tab0 AS cor0
----
-16

onlyif mysql # use DIV operator for integer division
query I rowsort label-5924
SELECT - col0 DIV 30 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5924
SELECT - col0 / 30 FROM tab0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT 11 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT col0 * + col1 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - col2 + col1 * col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL + col0 + + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 - - 35 col0 FROM tab2
----
52
66
94

query I rowsort
SELECT + col2 * col2 * + 95 + col2 FROM tab2
----
137218
64246
69282

query I rowsort
SELECT ALL tab0.col1 * col1 + col2 AS col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ALL col1 + - col1 * + col1 AS col0 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab0
----
-29

query I rowsort
SELECT ( + 62 ) FROM tab2
----
62
62
62

query I rowsort
SELECT ALL - 4 * - col1 AS col2 FROM tab1
----
104
40
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5937
SELECT - ( + 87 ) + cor0.col0 * col0 DIV 62 FROM tab2 AS cor0
----
-87
11
13

skipif mysql # not compatible
query I rowsort label-5937
SELECT - ( + 87 ) + cor0.col0 * col0 / 62 FROM tab2 AS cor0
----
-87
11
13

query I rowsort
SELECT 56 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
-4816
-5096
-5432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 15 * col1 col1 FROM tab1 AS cor0
----
10140
1500
2535

query I rowsort
SELECT DISTINCT ( col0 * col0 ) AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + 90 * - col1 + + cor0.col1 - - 22 AS col2 FROM tab1 AS cor0
----
-1135
-2292
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 - + cor0.col1 * - 17 col1 FROM tab0 AS cor0
----
1462
1547
1649

query I rowsort
SELECT + - col0 * col0 + col2 + - col0 * col2 FROM tab1 AS cor0
----
-117
-13984
-7687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * - cor0.col2 col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT 84 + + col1 + - 42 AS col2 FROM tab1 AS cor0
----
52
55
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col2 FROM tab0 cor0
----
7
7
7

query I rowsort
SELECT - - col1 + + col1 - - col1 AS col1 FROM tab1 AS cor0
----
30
39
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT ALL 23 * col1 + - ( + 36 ) DIV + col2 AS col0 FROM tab1
----
230
299
598

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL 23 * col1 + - ( + 36 ) / + col2 AS col0 FROM tab1
----
230
299
598

onlyif mysql # use DIV operator for integer division
query I rowsort label-5949
SELECT + 55 DIV col1 FROM tab2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5949
SELECT + 55 / col1 FROM tab2
----
0
1
3

query I rowsort
SELECT DISTINCT + 1 + col1 + cor0.col2 FROM tab1 AS cor0
----
110
68
81

query I rowsort
SELECT ALL - col0 * cor0.col2 * col2 + - cor0.col0 FROM tab0 AS cor0
----
-26160
-598525
-70

query I rowsort
SELECT ALL - + col2 * col1 * cor0.col2 AS col2 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT + col1 * + col2 * - col0 + + col0 AS col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT 9 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT DISTINCT - + col1 DIV + col0 AS col1 FROM tab1 cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT - + col1 / + col0 AS col1 FROM tab1 cor0
----
-8
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5956
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - col0 * 18 AS col2 FROM tab2 AS cor0
----
-119
-1326
-1343

onlyif mysql # use DIV operator for integer division
query I rowsort label-5958
SELECT DISTINCT - col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT - col0 / col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5959
SELECT col2 + + col1 + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
56
59
86

skipif mysql # not compatible
query I rowsort label-5959
SELECT col2 + + col1 + col1 / + col1 AS col0 FROM tab2 AS cor0
----
56
59
86

query I rowsort
SELECT ALL cor0.col2 * - ( + col1 * - col1 ) + col0 * - cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-268450
-95115
24428

query I rowsort
SELECT - - 6 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT ALL tab1.col2 + - tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a

query I rowsort
SELECT ALL cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ( col2 ) * 41 FROM tab0
----
1353
3362
41

query I rowsort
SELECT ALL - cor0.col2 * col1 + + col1 * + 81 + col2 FROM tab1 cor0
----
-99
297
756

query I rowsort
SELECT ALL + 65 + + col1 + + col1 FROM tab0 AS cor0
----
237
247
259

query I rowsort
SELECT - 7 * 36 FROM tab0 AS cor0
----
-252
-252
-252

query I rowsort
SELECT ALL col1 * + col1 - - col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - - tab2.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 48 + col2 AS col1 FROM tab1 AS cor0
----
102
105
144

query I rowsort
SELECT ALL + 23 AS col2 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL - col0 * + ( - col2 ) + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL 45 * col0 + + col2 FROM tab0 AS cor0
----
1113
1576
4087

query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - cor0.col2 + col0 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT + ( 80 ) FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT tab1.col0 + + 28 FROM tab1
----
108
31
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - 87 col2 FROM tab1 AS cor0
----
-141
-144
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5980
SELECT + - col1 + + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5980
SELECT + - col1 + + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - + 43 + col1 FROM tab0 AS cor0
----
43
48
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5983
SELECT CAST( NULL AS SIGNED ) * + 23 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5983
SELECT CAST ( NULL AS INTEGER ) * + 23 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5984
SELECT CAST( NULL AS SIGNED ) * col0 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT CAST ( NULL AS INTEGER ) * col0 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - ( 91 ) AS col2 FROM tab0
----
-2
-56
-67

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab0, tab2 AS cor0
----
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5987
SELECT DISTINCT + col0 * + col0 DIV tab1.col0 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT + col0 * + col0 / tab1.col0 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + - 71 * col1 - col2 * + col1 * + col2 AS col2 FROM tab2 AS cor0
----
-24800
-25755
-44073

query I rowsort
SELECT DISTINCT - col0 * col0 - - col2 AS col0 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT - - col2 * col1 + + 91 FROM tab2 AS cor0
----
1625
737
928

query I rowsort
SELECT - 30 * + col0 + col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1171
-2659
-5821

onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT ALL col1 - 57 DIV col2 FROM tab0
----
40
85
91

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL col1 - 57 / col2 FROM tab0
----
40
85
91

query I rowsort
SELECT ( + col1 * col1 ) AS col0 FROM tab1
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 85 ) col0 FROM tab1
----
-85
-85
-85

query I rowsort
SELECT - 59 * + col2 + - col1 FROM tab0
----
-156
-2033
-4929

query I rowsort
SELECT 28 * - col1 FROM tab2 cor0
----
-1652
-476
-868

query I rowsort
SELECT + col1 * 97 FROM tab1
----
1261
2522
970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5998
SELECT CAST( col1 AS SIGNED ) * - col2 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-5998
SELECT CAST ( col1 AS INTEGER ) * - col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5999
SELECT + ( 40 ) + col1 DIV + ( + col0 ) + col1 AS col1 FROM tab2
----
57
75
99

skipif mysql # not compatible
query I rowsort label-5999
SELECT + ( 40 ) + col1 / + ( + col0 ) + col1 AS col1 FROM tab2
----
57
75
99

query I rowsort
SELECT col1 + + 37 * col2 + + 25 AS col0 FROM tab1
----
2049
2144
3590

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT + col0 * + col2 + - col0 * + tab2.col2 * col1 FROM tab2
----
-117624
-48032
-5670

query I rowsort
SELECT + + 68 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - 59 * - col0 AS col2 FROM tab1
----
177
3776
4720

query I rowsort
SELECT ALL + - 95 * - col1 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
195
2392
310

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + 57 - - col1 * - col0 FROM tab1 AS cor0
----
-21
-583
-983

query I rowsort
SELECT ALL - col1 + - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL 3 * + col1 * + tab1.col2 + tab1.col1 * col1 * + col0 FROM tab1
----
17264
6240
8110

query I rowsort
SELECT + + col1 * 85 + + col2 FROM tab1 AS cor0
----
1201
2264
907

query I rowsort
SELECT col2 - + col1 * col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - col1 * - ( - col0 ) + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL ( + col0 ) * col0 + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL col0 * - col2 * - col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL - col1 - - col2 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT - - col0 * + cor0.col2 + + col1 * - col0 FROM tab0 cor0
----
-1272
-3360
-801

query I rowsort
SELECT col0 * + 65 + cor0.col0 FROM tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT col0 + ( - ( col1 ) ) * - col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - col1 + - ( cor0.col0 ) FROM tab0 cor0
----
-110
-132
-180

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab1 AS cor3
----
13122 values hashing to d9c3b2f425c31a1eee7c498304ad7ff8

query I rowsort
SELECT ALL + 8 FROM tab0, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT + col0 + - col1 * cor0.col0 * 80 AS col2 FROM tab1 AS cor0
----
-51136
-6237
-83120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6023
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 92 * - col0 + col2 * cor0.col0 FROM tab1 cor0
----
15040
438
9536

query I rowsort
SELECT DISTINCT - 75 * col2 AS col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT ALL - 68 DIV 46 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL - 68 / 46 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col2 * col2 * + cor0.col0 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT 18 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT 18 / col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 * - cor0.col2 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - 99 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT - col2 * ( col0 ) * col0 + + 92 FROM tab2 AS cor0
----
-1231
-158092
-237066

query I rowsort
SELECT + col1 * 78 - col1 AS col2 FROM tab2 cor0
----
1309
2387
4543

query I rowsort
SELECT 27 + cor0.col1 FROM tab0 AS cor0
----
113
118
124

onlyif mysql # use DIV operator for integer division
query I rowsort label-6034
SELECT + + 37 + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
37
38
55

skipif mysql # not compatible
query I rowsort label-6034
SELECT + + 37 + col2 / col0 AS col0 FROM tab1 AS cor0
----
37
38
55

query I rowsort
SELECT ALL - 0 * 17 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6037
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col1 * + ( 58 ) + - col2 AS col1 FROM tab2 AS cor0
----
-16800
-201924
-55765

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col1 * + ( 58 ) + - col2 AS col1 FROM tab2 AS cor0
----
-16800
-201924
-55765

onlyif mysql # use DIV operator for integer division
query I rowsort label-6038
SELECT DISTINCT - col2 + - col2 DIV col0 FROM tab2 cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT - col2 + - col2 / col0 FROM tab2 cor0
----
-26
-30
-38

query I rowsort
SELECT DISTINCT cor0.col1 - + col2 AS col2 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6040
SELECT ALL col2 DIV - 47 + cor0.col2 + - 6 col2 FROM tab0 AS cor0
----
-5
27
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL col2 / - 47 + cor0.col2 + - 6 col2 FROM tab0 AS cor0
----
-5
27
75

query I rowsort
SELECT + 76 * + ( + col2 ) AS col0 FROM tab2 cor0
----
1976
2052
2888

onlyif mysql # use DIV operator for integer division
query I rowsort label-6042
SELECT ALL - 67 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL - 67 / col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

query I rowsort
SELECT col0 + col1 + 1 FROM tab2 AS cor0
----
138
39
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6044
SELECT ALL col1 * + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL col1 * + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col2 * cor0.col0 col2 FROM tab2 AS cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 col1 FROM tab1, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 4f17f941ddb7d7f35d93196515cfe0f2

query I rowsort
SELECT DISTINCT - col1 - col1 * - col2 AS col0 FROM tab1
----
1235
1378
560

query I rowsort
SELECT 52 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT + - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + 7 + col2 * cor0.col2 col0 FROM tab1 AS cor0
----
2801
2895
8656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6051
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6051
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT + 14 AS col0 FROM tab0, tab2 AS cor0
----
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6053
SELECT - col2 + CAST( 62 AS SIGNED ) FROM tab1 AS cor0
----
-34
5
8

skipif mysql # not compatible
query I rowsort label-6053
SELECT - col2 + CAST ( 62 AS INTEGER ) FROM tab1 AS cor0
----
-34
5
8

query I rowsort
SELECT DISTINCT + col0 * + 64 * - col0 FROM tab0
----
-36864
-506944
-78400

query I rowsort
SELECT col2 + ( col2 ) * ( ( col0 ) ) FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT + - col1 * + 22 * col1 + col2 FROM tab0 AS cor0
----
-162679
-182100
-206997

query I rowsort
SELECT cor2.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT + 35 + - col0 FROM tab2 AS cor0
----
-43
-44
28

query I rowsort
SELECT 89 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 * - col2 col2 FROM tab2
----
1482
1539
2166

query I rowsort
SELECT ALL - ( tab0.col2 ) + 81 FROM tab0, tab2 AS cor0
----
9 values hashing to b1298e1596a5d9eda6321f88b2662e38

query I rowsort
SELECT ALL - col0 * cor0.col2 + col0 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + + cor0.col2 + - col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 - - col0 col2 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT 38 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6066
SELECT ALL + CAST( NULL AS SIGNED ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL + CAST ( NULL AS INTEGER ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - col1 - - col1 * - 56 FROM tab0 AS cor0
----
-4816
-5096
-5432

query I rowsort
SELECT ALL - col2 * col0 + col2 AS col1 FROM tab0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT DISTINCT - 55 + tab0.col1 DIV 55 + - col2 FROM tab0
----
-136
-55
-87

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT - 55 + tab0.col1 / 55 + - col2 FROM tab0
----
-136
-55
-87

query I rowsort
SELECT ALL - 64 + col0 + col1 AS col1 FROM tab2
----
-26
32
73

query I rowsort
SELECT - col2 - tab0.col1 * - 77 AS col0 FROM tab0
----
6589
6925
7468

query I rowsort
SELECT ALL + 87 + - col2 AS col2 FROM tab0
----
5
54
86

query I rowsort
SELECT 9 * cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
11025
5184
71289

query I rowsort
SELECT ALL - + col0 + + col1 * - col1 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL - col0 * 76 * col0 AS col0 FROM tab0 cor0
----
-43776
-601996
-93100

query I rowsort
SELECT DISTINCT cor0.col2 * col0 * - ( col0 ) + + col0 * col1 * col1 FROM tab2 AS cor0
----
-214327
113334
5404

onlyif mysql # use DIV operator for integer division
query I rowsort label-6077
SELECT col2 DIV 39 + col2 + - col1 * - 45 AS col2 FROM tab0 AS cor0
----
3903
4179
4366

skipif mysql # not compatible
query I rowsort label-6077
SELECT col2 / 39 + col2 + - col1 * - 45 AS col2 FROM tab0 AS cor0
----
3903
4179
4366

query I rowsort
SELECT col1 * 14 FROM tab0 AS cor0
----
1204
1274
1358

query I rowsort
SELECT + col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT col1 * - ( + col1 ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col0 + ( 75 ) * - col1 AS col1 FROM tab0 AS cor0
----
-6426
-6736
-7240

query I rowsort
SELECT DISTINCT - col0 * + col1 * 55 FROM tab1 AS cor0
----
-35200
-4290
-57200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 40 col2 FROM tab1 cor0
----
104
120
43

query I rowsort
SELECT ALL - col2 * + cor0.col0 FROM tab0 cor0
----
-35
-7298
-792

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-6086
SELECT DISTINCT + col1 + col2 DIV col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT + col1 + col2 / col1 FROM tab2
----
19
31
59

query I rowsort
SELECT ALL - tab2.col2 * col1 + col0 * col1 FROM tab2
----
-620
3068
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6088
SELECT col1 DIV + 21 + - 28 * col1 FROM tab1 AS cor0
----
-280
-364
-727

skipif mysql # not compatible
query I rowsort label-6088
SELECT col1 / + 21 + - 28 * col1 FROM tab1 AS cor0
----
-280
-364
-727

query I rowsort
SELECT + col2 + + col0 + - col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT ALL 3 * + tab0.col0 FROM tab0
----
105
267
72

query I rowsort
SELECT DISTINCT - 73 + - ( - col2 ) FROM tab1
----
-16
-19
23

query I rowsort
SELECT col1 * col2 + - col0 + tab1.col1 * col1 AS col1 FROM tab1
----
1337
2077
606

query I rowsort
SELECT ALL - col2 * ( col0 ) + - col0 + tab2.col1 * col1 AS col2 FROM tab2
----
-2792
1375
765

query I rowsort
SELECT ALL 23 + 76 AS col2 FROM tab1
----
99
99
99

query I rowsort
SELECT + ( col2 + col1 ) AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + 7 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL - 22 + - col2 + - col1 AS col2 FROM tab2
----
-107
-77
-80

query I rowsort
SELECT - - col1 * col2 - - col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6099
SELECT ALL + CAST( col0 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL + CAST ( col0 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab0, tab0 cor0
----
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6101
SELECT - CAST( + col1 AS SIGNED ) + - col2 AS col2 FROM tab2 cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-6101
SELECT - CAST ( + col1 AS INTEGER ) + - col2 AS col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT - + col0 - col2 * col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + col2 * 28 * col0 FROM tab2 AS cor0
----
5292
56784
84056

query I rowsort
SELECT ALL + + 83 * col2 + - col2 AS col2 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT DISTINCT - + 41 * + col1 AS col2 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT - - 17 - + 69 AS col1 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + 14 * col1 AS col2 FROM tab0 AS cor0
----
1204
1274
1358

query I rowsort
SELECT - + cor0.col0 + col2 * - cor0.col1 * col1 FROM tab2 cor0
----
-11061
-25954
-90584

query I rowsort
SELECT ALL + - cor0.col1 * + col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 + col0 * col2 col0 FROM tab0 AS cor0
----
129
7392
886

query I rowsort
SELECT ALL + ( col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - + 97 FROM tab2 AS cor0
----
-97

query I rowsort
SELECT + - col2 + col2 * col1 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT 98 * col0 FROM tab2 AS cor0
----
686
7644
7742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 + col1 * + col2 col0 FROM tab1 AS cor0
----
1333
1489
655

query I rowsort
SELECT ALL ( - 57 * - col1 ) + col1 * + col2 FROM tab0
----
12649
5626
7740

query I rowsort
SELECT ALL - col2 + ( tab2.col2 ) * - col2 * - tab2.col1 FROM tab2
----
22572
24510
39858

query I rowsort
SELECT ALL - ( col2 ) + - col0 + tab0.col0 AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL col0 * col2 + - col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT 82 + - col1 AS col0 FROM tab0 AS cor0
----
-15
-4
-9

query I rowsort
SELECT + col1 * cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - col1 + - 46 FROM tab2 AS cor0
----
-105
-63
-77

query I rowsort
SELECT DISTINCT - col0 - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + col0 - + col1 FROM tab1 AS cor0
----
-32
-4042
-6333

query I rowsort
SELECT ALL - cor0.col0 + ( + 49 ) AS col1 FROM tab0 cor0
----
-40
14
25

query I rowsort
SELECT ALL - + col1 + + col0 * - col1 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
-2633
-59
1642

query I rowsort
SELECT ALL - col2 + + col0 * 53 FROM tab2 AS cor0
----
344
4108
4149

query I rowsort
SELECT DISTINCT - col0 * col2 * - cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT DISTINCT + - col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - col1 * + 96 + + col1 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT ALL - col2 * 24 FROM tab2 AS cor0
----
-624
-648
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( cor0.col2 ) col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + - 78 * col2 FROM tab1 cor0
----
-4212
-4446
-7488

query I rowsort
SELECT + - col2 * - cor0.col2 * + col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT - tab1.col2 + col0 * - col1 * + col1 FROM tab1
----
-13616
-2082
-6457

query I rowsort
SELECT DISTINCT - col0 + - tab2.col1 AS col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col1 * + col1 FROM tab0
----
-6604
-9374
-983

query I rowsort
SELECT DISTINCT - tab1.col1 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
-10
-13
-26

query I rowsort
SELECT tab1.col0 * + col2 FROM tab1 WHERE NOT NULL >= col1 * col0 + col2
----

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL + - col1 * col1 + - col1 * + col1 * - col1 FROM tab0 AS cor0
----
628660
745290
903264

onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT DISTINCT - - col1 + - col2 DIV + cor0.col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT - - col1 + - col2 / + cor0.col1 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT ALL - col0 * + col0 * + col2 AS col0 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT ALL col2 DIV - tab2.col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL col2 / - tab2.col1 FROM tab2
----
-2
0
0

query I rowsort
SELECT - + cor0.col1 * col2 * - col0 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - cor0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL col0 * + col2 * col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT col2 * + col2 + + cor0.col2 * col0 FROM tab1 AS cor0
----
16896
3078
6897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col0 * - col2 col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL + col2 * - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - 59 + col1 * 17 FROM tab2 AS cor0
----
230
468
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT + - 9 DIV col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6153
SELECT + - 9 / col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 63 + cor0.col0 * col2 AS col0 FROM tab1 cor0
----
225
3711
7743

query I rowsort
SELECT DISTINCT - 62 * col1 AS col1 FROM tab0 AS cor0
----
-5332
-5642
-6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-6156
SELECT - + cor0.col2 DIV + ( col1 ) FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6156
SELECT - + cor0.col2 / + ( col1 ) FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + - 35 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 cor2
----
-35

query I rowsort
SELECT ALL col0 + + 70 AS col1 FROM tab2 AS cor0
----
148
149
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6159
SELECT DISTINCT col2 * + 26 + col0 + col1 DIV col1 FROM tab1 AS cor0
----
1408
1547
2577

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT col2 * + 26 + col0 + col1 / col1 FROM tab1 AS cor0
----
1408
1547
2577

query I rowsort
SELECT - - col1 * - col2 + + col0 - col2 FROM tab2 AS cor0
----
-1482
-605
-857

query I rowsort
SELECT DISTINCT ( - col1 ) * 38 FROM tab1
----
-380
-494
-988

query I rowsort
SELECT - + 29 AS col0 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT col0 * + ( - col2 * col1 ) FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - ( 71 ) FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT cor1.col2 * + 89 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
4806
5073
8544

query I rowsort
SELECT DISTINCT 80 + 82 AS col1 FROM tab1 AS cor0
----
162

query I rowsort
SELECT + ( - cor0.col1 ) + - col2 * col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT + - 28 * - col1 FROM tab2 AS cor0
----
1652
476
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 * col1 + - ( 60 + + col1 ) col0 FROM tab2 AS cor0
----
-1505
-2695
-5075

query I rowsort
SELECT ALL - + 67 + + col2 FROM tab2 AS cor0
----
-29
-40
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - - col0 * col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL + col0 + - col1 * + 9 FROM tab1 cor0
----
-231
-26
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + 59 col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to dab3af8cb1d425509e8d830b2ed4206c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT ALL + CAST( col1 AS SIGNED ) DIV - tab2.col0 AS col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL + CAST ( col1 AS INTEGER ) / - tab2.col0 AS col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT ALL col0 + + 72 AS col2 FROM tab2
----
150
151
79

query I rowsort
SELECT - col0 * col0 + + 3 FROM tab0 AS cor0
----
-1222
-573
-7918

query I rowsort
SELECT DISTINCT + col2 + col1 + - cor0.col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + - col0 * + col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT 82 FROM tab2, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT ALL + cor0.col1 * col0 + + ( - cor0.col2 * col0 ) AS col1 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT + 53 * col0 + + col1 AS col1 FROM tab1
----
185
3402
4253

query I rowsort
SELECT DISTINCT + 14 * + 50 * + col2 + - col2 AS col1 FROM tab1
----
37746
39843
67104

onlyif mysql # use DIV operator for integer division
query I rowsort label-6187
SELECT col2 + - tab1.col2 DIV + 30 AS col0 FROM tab1
----
53
56
93

skipif mysql # not compatible
query I rowsort label-6187
SELECT col2 + - tab1.col2 / + 30 AS col0 FROM tab1
----
53
56
93

query I rowsort
SELECT 55 AS col2 FROM tab2 cor0
----
55
55
55

query I rowsort
SELECT ALL - 30 * col0 FROM tab1 AS cor0
----
-1920
-2400
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6190
SELECT DISTINCT + col2 * - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT + col2 * - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 91 * + col0 AS col2 FROM tab1
----
-273
-5824
-7280

query I rowsort
SELECT 17 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT - col2 - + 37 AS col1 FROM tab2
----
-63
-64
-75

query I rowsort
SELECT ALL + col1 + - ( + tab0.col1 ) - col1 FROM tab0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6195
SELECT + col2 * - CAST( + col2 AS SIGNED ) + + col1 * col0 FROM tab0
----
1375
3394
975

skipif mysql # not compatible
query I rowsort label-6195
SELECT + col2 * - CAST ( + col2 AS INTEGER ) + + col1 * col0 FROM tab0
----
1375
3394
975

query I rowsort
SELECT - col2 + + col1 * col1 - col1 AS col2 FROM tab0
----
7277
8108
9311

onlyif mysql # use DIV operator for integer division
query I rowsort label-6197
SELECT - col1 DIV - CAST( col2 AS SIGNED ) + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6197
SELECT - col1 / - CAST ( col2 AS INTEGER ) + col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT col0 * + col2 DIV tab0.col2 + + col1 + 61 FROM tab0
----
171
193
241

skipif mysql # not compatible
query I rowsort label-6198
SELECT col0 * + col2 / tab0.col2 + + col1 + 61 FROM tab0
----
171
193
241

query I rowsort
SELECT - 16 + col2 * + col2 * + col1 FROM tab1 AS cor0
----
119792
32474
75800

query I rowsort
SELECT + + cor0.col1 + - 61 FROM tab0 AS cor0
----
25
30
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6201
SELECT DISTINCT + CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT + CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 88 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to 00f4aded8ec5b6d9904061ce3da09e20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6203
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6204
SELECT DISTINCT + 0 + + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT + 0 + + col2 / col0 AS col2 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT ALL - - 28 * - ( col2 ) * - col2 FROM tab0 AS cor0
----
188272
28
30492

onlyif mysql # use DIV operator for integer division
query I rowsort label-6206
SELECT + 68 DIV - 75 + col0 * 85 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
54400
6630
88400

skipif mysql # not compatible
query I rowsort label-6206
SELECT + 68 / - 75 + col0 * 85 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
54400
6630
88400

query I rowsort
SELECT col1 + 46 * + cor0.col0 FROM tab0 AS cor0
----
1190
1707
4185

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab2 AS cor0
----
94

query I rowsort
SELECT ALL + 5 * col2 FROM tab1 cor0
----
270
285
480

query I rowsort
SELECT 4 + 0 * col2 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + ( - col0 ) * col0 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT - col0 DIV - col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6212
SELECT - col0 / - col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - ( - ( - col0 ) ) * - 22 + 3 * col1 AS col1 FROM tab1 AS cor0
----
1438
144
1799

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - cor0.col0 col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT ALL - ( ( + col2 ) ) DIV col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - ( ( + col2 ) ) / col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( + 75 ) FROM tab2, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 3384246e49f3e69ba32c165b88111fee

query I rowsort
SELECT + 90 * col0 FROM tab1
----
270
5760
7200

query I rowsort
SELECT ALL tab0.col1 * 74 + + tab0.col0 FROM tab0
----
6388
6823
7213

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT ALL CAST( + col1 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL CAST ( + col1 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT 29 DIV + col1 AS col0 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6221
SELECT 29 / + col1 AS col0 FROM tab1
----
1
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6222
SELECT col2 - - cor0.col1 DIV col0 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-6222
SELECT col2 - - cor0.col1 / col0 FROM tab0 cor0
----
3
36
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6223
SELECT ALL + col0 * col0 + col0 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL + col0 * col0 + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6224
SELECT + 90 + + col0 DIV - col1 FROM tab2 AS cor0
----
86
89
90

skipif mysql # not compatible
query I rowsort label-6224
SELECT + 90 + + col0 / - col1 FROM tab2 AS cor0
----
86
89
90

query I rowsort
SELECT DISTINCT - col2 - + ( col1 ) AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - tab0.col0 + tab0.col2 + 69 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 40b3fa4da9ce1d5a2127f1e75489bba6

query I rowsort
SELECT col2 + - tab0.col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT cor0.col0 + 79 FROM tab1, tab1 AS cor0
----
9 values hashing to 64cd424bdcae28a63ef41eb19d10e1c0

query I rowsort
SELECT ALL + col2 + col0 * 65 FROM tab0 cor0
----
1593
2276
5867

query I rowsort
SELECT ALL + ( - cor0.col2 ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT - col0 + - 31 * + 13 FROM tab1 AS cor0
----
-406
-467
-483

query I rowsort
SELECT ALL + - col2 * - 46 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT ALL - col0 * 6 * + col1 FROM tab2 cor0
----
-1302
-27612
-8058

onlyif mysql # use DIV operator for integer division
query I rowsort label-6235
SELECT ALL - col2 DIV + 99 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL - col2 / + 99 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT ALL + + col2 + - 0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col2 * col1 + + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT ALL col2 * 91 AS col1 FROM tab2 AS cor0
----
2366
2457
3458

onlyif mysql # use DIV operator for integer division
query I rowsort label-6240
SELECT cor0.col1 DIV + col0 col1 FROM tab1 cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6240
SELECT cor0.col1 / + col0 col1 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT - col0 + + 46 * - 53 AS col1 FROM tab0 AS cor0
----
-2462
-2473
-2527

query I rowsort
SELECT ALL - 88 + - cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 56f4df02747323c7d561dfff94149c5f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6243
SELECT + + 22 + + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
22
23
26

skipif mysql # not compatible
query I rowsort label-6243
SELECT + + 22 + + col0 / col1 AS col1 FROM tab2 AS cor0
----
22
23
26

query I rowsort
SELECT 9 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT DISTINCT - col0 * 2 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT ( - 92 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 * col1 col2 FROM tab1 AS cor0
----
-30
-39
-78

query I rowsort
SELECT - ( 21 ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1722
-21
-693

query I rowsort
SELECT ALL ( + col0 ) + col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6250
SELECT - ( col0 ) * col0 DIV - 85 FROM tab2 AS cor0
----
0
71
73

skipif mysql # not compatible
query I rowsort label-6250
SELECT - ( col0 ) * col0 / - 85 FROM tab2 AS cor0
----
0
71
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6251
SELECT DISTINCT + - ( + col1 ) DIV + col0 + - col0 * - 10 FROM tab1 AS cor0
----
22
640
800

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT + - ( + col1 ) / + col0 + - col0 * - 10 FROM tab1 AS cor0
----
22
640
800

query I rowsort
SELECT + - 13 + col1 * - col2 FROM tab1 AS cor0
----
-1261
-1417
-583

query I rowsort
SELECT - 33 * + col2 + - col1 FROM tab0 AS cor0
----
-1175
-130
-2797

query I rowsort
SELECT DISTINCT - 49 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-1090
-1618
-4270

query I rowsort
SELECT + - cor0.col2 + cor0.col0 * ( - 69 * + col0 ) FROM tab1 AS cor0
----
-282681
-441696
-675

query I rowsort
SELECT - - col0 * col1 + col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT + - 65 * - col1 AS col1 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT + col1 + - col0 + col2 * + col0 FROM tab0 AS cor0
----
7300
854
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6259
SELECT ALL 84 * col2 / CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL 84 * col2 / CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT - 64 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-64

query I rowsort
SELECT ALL cor0.col1 + 17 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f7e0608ed56a82c00f40fa50531c6fbf

query I rowsort
SELECT ALL - ( - 29 * + tab1.col2 ) AS col2 FROM tab1
----
1566
1653
2784

query I rowsort
SELECT ALL - col1 * col0 + + 92 * col0 * - col0 AS col0 FROM tab2 AS cor0
----
-4725
-564330
-575515

query I rowsort
SELECT ALL - + cor0.col0 - - col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT col0 + + col2 * + col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + cor0.col1 + + col0 + ( ( - col0 ) * 35 ) AS col2 FROM tab2 AS cor0
----
-207
-2593
-2669

query I rowsort
SELECT - ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - 26 + tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 20cf7db9645cb08dd9248b9166f184b0

query I rowsort
SELECT ALL 7 + - ( col0 ) FROM tab2
----
-71
-72
0

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT ALL + 88 DIV - 20 + - col1 + - 11 FROM tab2
----
-32
-46
-74

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + 88 / - 20 + - col1 + - 11 FROM tab2
----
-32
-46
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 + tab0.col2 col2 FROM tab2, tab1, tab1 AS cor0, tab0
----
141
60
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6274
SELECT + col1 + cor0.col0 * CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2150
3492
8190

skipif mysql # not compatible
query I rowsort label-6274
SELECT + col1 + cor0.col0 * CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - - 69 + col2 FROM tab2 AS cor0
----
107
95
96

query I rowsort
SELECT DISTINCT + - ( + cor0.col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * + col0 + 44 AS col1 FROM tab1 AS cor0
----
260
3749
7820

query I rowsort
SELECT ALL col2 * + cor0.col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - + ( col1 ) + col1 * col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
22814
271459
6696

query I rowsort
SELECT + - col0 + col0 * ( 15 ) AS col2 FROM tab0 AS cor0
----
1246
336
490

query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT col1 + ( + col0 ) - + tab1.col1 AS col0 FROM tab1
----
3
64
80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to d752a38ff42b067eedd12ad6c3f9365e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT - - col2 * col1 * + col1 + - col2 DIV + ( - col1 ) FROM tab0 AS cor0
----
244068
679042
9409

skipif mysql # not compatible
query I rowsort label-6284
SELECT - - col2 * col1 * + col1 + - col2 / + ( - col1 ) FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + col2 - ( - col1 ) * col2 AS col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT col0 + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col1 + - 30 FROM tab0 AS cor0
----
56
61
67

query I rowsort
SELECT - cor0.col2 * 96 + cor0.col1 * + col0 * 49 FROM tab1 AS cor0
----
-1362
25888
41744

query I rowsort
SELECT + col2 * 58 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT DISTINCT - ( + ( cor0.col2 ) ) + + col1 * col1 FROM tab0 AS cor0
----
7363
8199
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 76 ) * col0 col2 FROM tab2 AS cor0
----
532
5928
6004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6292
SELECT CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 74 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 22fe261d6995563c0767a5087aea05b1

query I rowsort
SELECT ALL - 3 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
30
39
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT ALL + col0 * cor0.col2 + - col0 DIV - col0 col2 FROM tab1 AS cor0
----
163
3649
7681

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + col0 * cor0.col2 + - col0 / - col0 col2 FROM tab1 AS cor0
----
163
3649
7681

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT ALL - 69 DIV 8 FROM tab0 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - 69 / 8 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL - + col1 * col0 + + col0 * 14 FROM tab0 cor0
----
-1728
-2905
-6853

query I rowsort
SELECT + col1 + - 81 FROM tab0 AS cor0
----
10
16
5

query I rowsort
SELECT DISTINCT - 71 + - 96 AS col2 FROM tab1 AS cor0
----
-167

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 + ( ( col2 ) ) * col1 * - col2 + col2 AS col0 FROM tab2
----
-23409
-25156
-41392

query I rowsort
SELECT DISTINCT - + 84 * + 49 AS col0 FROM tab1 AS cor0
----
-4116

query I rowsort
SELECT + ( col1 ) * col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6303
SELECT ALL + col0 + ( - col1 ) DIV cor0.col2 AS col0 FROM tab0 cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL + col0 + ( - col1 ) / cor0.col2 AS col0 FROM tab0 cor0
----
-62
22
88

query I rowsort
SELECT ALL ( + 48 ) FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + ( + 86 ) * + col1 AS col2 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT DISTINCT ( col0 ) * - col0 + ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + - col2 * col1 - + col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT 28 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
110
29
61

query I rowsort
SELECT ALL + col0 * + 95 AS col0 FROM tab1 AS cor0
----
285
6080
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-6310
SELECT - col1 + 72 DIV - col2 FROM tab0 AS cor0
----
-169
-88
-91

skipif mysql # not compatible
query I rowsort label-6310
SELECT - col1 + 72 / - col2 FROM tab0 AS cor0
----
-169
-88
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT DISTINCT 39 DIV + col0 FROM tab2 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT 39 / + col0 FROM tab2 cor0
----
0
5

query I rowsort
SELECT - col1 * - col0 * - cor0.col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT 39 * - col2 FROM tab2 AS cor0
----
-1014
-1053
-1482

query I rowsort
SELECT 80 + - col2 AS col2 FROM tab0
----
-2
47
79

query I rowsort
SELECT DISTINCT col2 * col0 + col2 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL - col1 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + - col1 + + col1 * 70 AS col2 FROM tab0 AS cor0
----
10088
14378
7998

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + 33 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL - - col2 * - 47 + + col1 + - col2 AS col2 FROM tab0 AS cor0
----
-1498
-3845
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 + - col2 - col2 * 66 AS col1 FROM tab2 AS cor0
----
-2418
-2538
-3990

query I rowsort
SELECT + col1 + - 19 FROM tab2
----
-2
12
40

query I rowsort
SELECT DISTINCT - tab1.col2 - - 54 AS col1 FROM tab1
----
-3
-42
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6325
SELECT - - 90 + - col1 * col0 * + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
36570
4302
99930

skipif mysql # not compatible
query I rowsort label-6325
SELECT - - 90 + - col1 * col0 * + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
36570
4302
99930

query I rowsort
SELECT + 70 + + col2 * col0 * 28 AS col0 FROM tab1 AS cor0
----
102214
215110
4606

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col2 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + tab0.col1 + col0 + col2 FROM tab0
----
133
143
262

query I rowsort
SELECT - col0 + ( - col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL + col0 + 50 FROM tab2 AS cor0
----
128
129
57

query I rowsort
SELECT + cor0.col0 + + col1 AS col1 FROM tab2 cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6332
SELECT col2 + CAST( col2 * - col0 AS SIGNED ) AS col0 FROM tab1
----
-108
-3591
-7584

skipif mysql # not compatible
query I rowsort label-6332
SELECT col2 + CAST ( col2 * - col0 AS INTEGER ) AS col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT col2 * - tab0.col0 + - col0 AS col1 FROM tab0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT col1 DIV 63 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6334
SELECT col1 / 63 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 2 FROM tab1, tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT - col2 + + col1 * col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ( 16 ) AS col1 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT col1 + + col2 * + tab2.col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL + + tab1.col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + 35 * col2 AS col1 FROM tab2 AS cor0
----
1330
910
945

onlyif mysql # use DIV operator for integer division
query I rowsort label-6341
SELECT ALL - col2 DIV col0 col1 FROM tab2
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL - col2 / col0 col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT + tab2.col0 * + 47 - + col0 * - col0 AS col0 FROM tab2
----
378
9750
9954

query I rowsort
SELECT DISTINCT col2 * col2 + 15 AS col2 FROM tab1
----
2931
3264
9231

query I rowsort
SELECT - ( - col0 ) * - col0 * col2 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + + col2 * col1 + col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT + col0 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6347
SELECT - col0 * CAST( NULL AS SIGNED ) * 8 + tab0.col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT - col0 * CAST ( NULL AS INTEGER ) * 8 + tab0.col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + ( col1 ) AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT 41 * col1 * - col2 + - 80 AS col0 FROM tab2 cor0
----
-26566
-34397
-62974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 + + col2 col1 FROM tab2 AS cor0
----
21
22
33

query I rowsort
SELECT ALL col0 * - col0 - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * col2 col2 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT + 59 * - col2 FROM tab2 AS cor0
----
-1534
-1593
-2242

query I rowsort
SELECT DISTINCT - col2 * col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - - cor0.col1 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + ( col1 ) * cor0.col0 + col2 * - col1 * col1 FROM tab2 AS cor0
----
-25730
-85904
-9639

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col0 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT 1 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT 19 + + col1 * + col0 FROM tab2 AS cor0
----
1362
236
4621

query I rowsort
SELECT + + 4 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT - tab0.col0 * - col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col2 * col2 - col0 * + 16 AS col0 FROM tab1 AS cor0
----
2225
2868
7936

query I rowsort
SELECT DISTINCT + + cor0.col0 + 36 FROM tab2, tab2 AS cor0
----
114
115
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT - col0 DIV + col0 + - col1 AS col2 FROM tab2 cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-6364
SELECT - col0 / + col0 + - col1 AS col2 FROM tab2 cor0
----
-18
-32
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT 93 * + tab2.col1 FROM tab2
----
1581
2883
5487

query I rowsort
SELECT + - col2 + col0 * - ( col1 ) * col1 AS col0 FROM tab0 AS cor0
----
-177537
-329316
-737091

query I rowsort
SELECT + 90 * + col0 + - cor0.col2 FROM tab0 AS cor0
----
2127
3149
7928

query I rowsort
SELECT + + cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + 2 * col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + - cor0.col0 + col2 * - 1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + 3 + - col2 AS col0 FROM tab2 AS cor0
----
-23
-24
-35

query I rowsort
SELECT DISTINCT + 92 + cor0.col1 * + col1 FROM tab1 cor0
----
192
261
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6374
SELECT ALL col1 - - col1 * CAST( - col2 AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
-119795
-32480
-75790

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL col1 - - col1 * CAST ( - col2 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
-119795
-32480
-75790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col0 * - ( - col2 ) col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - col1 * col1 + 77 AS col0 FROM tab2 AS cor0
----
-212
-3404
-884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col1 col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + col1 * - ( col0 * col0 ) + cor0.col2 + - col2 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT + col0 * - 79 - + col1 AS col0 FROM tab1 AS cor0
----
-263
-5066
-6333

query I rowsort
SELECT ALL tab0.col2 * 51 FROM tab0
----
1683
4182
51

query I rowsort
SELECT + cor0.col2 + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - col2 * + 17 FROM tab2 cor0
----
-442
-459
-646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 80 col1 FROM tab0 AS cor0
----
-166
-171
-177

query I rowsort
SELECT col1 * 35 FROM tab2 AS cor0
----
1085
2065
595

query I rowsort
SELECT col2 * - 15 FROM tab2 AS cor0
----
-390
-405
-570

query I rowsort
SELECT + 92 + + col2 * - col2 FROM tab0 AS cor0
----
-6632
-997
91

query I rowsort
SELECT - col1 * - 35 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT DISTINCT + col1 * - 86 + - col1 FROM tab2
----
-1479
-2697
-5133

query I rowsort
SELECT col2 + 66 AS col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT + cor0.col2 + + 47 FROM tab2 AS cor0
----
73
74
85

query I rowsort
SELECT DISTINCT - + cor0.col0 + - cor0.col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT + - col0 * - col1 + + 83 AS col0 FROM tab1 AS cor0
----
1123
161
723

onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT + cor0.col1 + col2 DIV cor0.col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-6393
SELECT + cor0.col1 + col2 / cor0.col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL col1 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - - col1 * - 65 * cor0.col1 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-17442
-221663
-62248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + tab1.col2 col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL col1 - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + ( 43 + col2 ) FROM tab0 AS cor0
----
109
207
45

query I rowsort
SELECT + - 46 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT - col1 * 22 AS col2 FROM tab2
----
-1298
-374
-682

query I rowsort
SELECT DISTINCT 24 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
24

query I rowsort
SELECT DISTINCT ( - col2 ) + ( col2 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT tab0.col0 * 38 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f9ce05faf477b6ca05ac63c2b1b0530b

query I rowsort
SELECT DISTINCT - 98 - col2 * - 38 FROM tab0
----
-60
1156
3018

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 72 + + col2 FROM tab0 AS cor0
----
105
154
73

query I rowsort
SELECT ALL cor0.col1 + + cor0.col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col2 * col0 * - ( + col0 * + col0 ) FROM tab2 AS cor0
----
-12338352
-18735482
-9261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col0 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT - + col0 * col0 * col1 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - + 60 * - cor0.col0 AS col1 FROM tab0 cor0
----
1440
2100
5340

query I rowsort
SELECT + col1 + - col2 * + col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT DISTINCT + - 38 * col1 DIV 67 FROM tab2 AS cor0
----
-17
-33
-9

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT + - 38 * col1 / 67 FROM tab2 AS cor0
----
-17
-33
-9

query I rowsort
SELECT DISTINCT - - cor0.col2 * + ( + col2 ) * + col1 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6415
SELECT + col2 DIV + 85 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6415
SELECT + col2 / + 85 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col2 * - ( ( col1 ) ) AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - - cor0.col2 + col2 - - col1 AS col1 FROM tab1 cor0
----
124
134
205

query I rowsort
SELECT ALL + col2 - - col2 * col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + col2 * - cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT col0 + col2 - col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL - - cor0.col1 * ( col0 ) * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL - - 86 AS col1 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT + col1 * col2 + col2 * - ( - col1 ) AS col2 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT DISTINCT + 67 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2211
5494
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6425
SELECT CAST( ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6425
SELECT CAST ( ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col1 + + 48 FROM tab2
----
107
65
79

query I rowsort
SELECT ALL ( cor0.col2 ) + col2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col2 AS REAL ) * col1 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - col2 * - 42 FROM tab2 cor0
----
-1092
-1134
-1596

query I rowsort
SELECT DISTINCT 7 + - col1 AS col0 FROM tab0 AS cor0
----
-79
-84
-90

query I rowsort
SELECT 24 * - col1 AS col2 FROM tab1 AS cor0
----
-240
-312
-624

onlyif mysql # use DIV operator for integer division
query I rowsort label-6432
SELECT + - col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6432
SELECT + - col2 / col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6433
SELECT CAST( NULL AS SIGNED ) * + cor0.col0 * - cor0.col2 + 82 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6433
SELECT CAST ( NULL AS INTEGER ) * + cor0.col0 * - cor0.col2 + 82 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - tab0.col0 ) * tab0.col0 col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - 66 + col2 AS col2 FROM tab1 AS cor0
----
-12
-9
30

query I rowsort
SELECT - - 20 + col1 AS col0 FROM tab1 AS cor0
----
30
33
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 69 ) col0 FROM tab2
----
69

query I rowsort
SELECT - tab1.col0 * - ( - col1 ) + col2 FROM tab1
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6440
SELECT ALL CAST( + col1 + + col0 AS SIGNED ) AS col0 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL CAST ( + col1 + + col0 AS INTEGER ) AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ( 29 ) FROM tab2
----
29
29
29

query I rowsort
SELECT DISTINCT + tab1.col0 * - col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - col2 + - col1 + - ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-124
-134
-205

query I rowsort
SELECT - col2 * col2 + 75 FROM tab1 cor0
----
-2841
-3174
-9141

query I rowsort
SELECT + col2 * + col2 + + 46 + col1 * col0 AS col0 FROM tab1 cor0
----
10302
3040
3935

query I rowsort
SELECT - col0 + - col2 * - cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
611795
62
93630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT + col0 + col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-6447
SELECT + col0 + col0 / cor0.col1 AS col1 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT ALL - + cor0.col0 + + col2 * col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT + - col2 * ( - col2 * + col1 ) + col2 AS col0 FROM tab2 AS cor0
----
22626
24586
39910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6450
SELECT DISTINCT col2 * CAST( ( - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT col2 * CAST ( ( - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - 25 * - cor0.col2 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 4eb0abec54c1f4b900ce137796f96cee

query I rowsort
SELECT - 71 + - cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 50cc44521b41adb40fa06cb593bd34b6

query I rowsort
SELECT 36 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT + - col0 * + 59 FROM tab1 AS cor0
----
-177
-3776
-4720

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT + col2 * + cor0.col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-6456
SELECT + col2 * + cor0.col1 / - col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - + 51 + - col1 AS col0 FROM tab2 cor0
----
-110
-68
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6458
SELECT - 92 DIV - col0 FROM tab1 AS cor0
----
1
1
30

skipif mysql # not compatible
query I rowsort label-6458
SELECT - 92 / - col0 FROM tab1 AS cor0
----
1
1
30

query I rowsort
SELECT ALL + - 49 * col2 + col1 FROM tab0 AS cor0
----
-1531
-3927
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 - col1 * + 81 col2 FROM tab0 AS cor0
----
-7008
-7413
-7899

query I rowsort
SELECT 93 * col1 + cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
10836
15925
9118

query I rowsort
SELECT - col1 + cor0.col0 * - ( - 8 ) FROM tab0 AS cor0
----
106
183
621

query I rowsort
SELECT ( col1 ) - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL 3 + - col0 * + col0 + col1 AS col2 FROM tab1
----
-4083
-6384
20

query I rowsort
SELECT ALL - col1 + col0 + + 96 FROM tab2
----
115
158
72

query I rowsort
SELECT ALL 50 + col0 * col2 AS col1 FROM tab0
----
7348
842
85

query I rowsort
SELECT col1 * - 14 * 81 + + col1 AS col1 FROM tab1 AS cor0
----
-11330
-14729
-29458

query I rowsort
SELECT - col0 + 2 * col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6469
SELECT cor0.col2 DIV 31 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
290
3481
961

skipif mysql # not compatible
query I rowsort label-6469
SELECT cor0.col2 / 31 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
290
3481
961

query I rowsort
SELECT - col2 * ( + col0 ) FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 84 * col2 AS col0 FROM tab1
----
4536
4788
8064

query I rowsort
SELECT col1 + + col1 * col1 + - col2 FROM tab2
----
268
3514
965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + - col2 col1 FROM tab0
----
34
7216
759

query I rowsort
SELECT ALL + + col2 + col2 * col2 FROM tab2 AS cor0
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col2 * col1 col0 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT - col0 - col0 DIV + col0 AS col0 FROM tab0 cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6476
SELECT - col0 - col0 / + col0 AS col0 FROM tab0 cor0
----
-25
-36
-90

query I rowsort
SELECT 26 * tab0.col1 * - col2 AS col1 FROM tab0
----
-194012
-2522
-73788

query I rowsort
SELECT + cor0.col2 * - col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - - col0 + col0 * - cor0.col1 FROM tab2 cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-6480
SELECT DISTINCT col0 DIV - col2 + col2 * col2 FROM tab0
----
-34
1089
6723

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT col0 / - col2 + col2 * col2 FROM tab0
----
-34
1089
6723

query I rowsort
SELECT ALL col1 * col0 + + col0 AS col1 FROM tab0
----
2088
3430
8188

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 - col1 + - col1 - + col1 * - col0 col1 FROM tab0
----
1892
3201
7917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 * col0 col1 FROM tab1
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT tab0.col1 DIV - tab0.col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6485
SELECT tab0.col1 / - tab0.col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT - col2 + tab2.col0 AS col0 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col0 * col0 col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab0
----
8

query I rowsort
SELECT + + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col0 FROM tab1
----
-53

query I rowsort
SELECT DISTINCT ( 53 + + col0 ) AS col2 FROM tab1
----
117
133
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6492
SELECT ALL - tab1.col1 DIV + tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL - tab1.col1 / + tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 * col1 * col0 col1 FROM tab2
----
170274
49691
8029

query I rowsort
SELECT + 87 FROM tab1, tab2 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col0 FROM tab0
----
69
69
69

query I rowsort
SELECT - col0 * + col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT - col0 + + col0 * + col0 * col0 + 54 AS col1 FROM tab2
----
390
474528
493014

query I rowsort
SELECT ( 68 ) * col2 FROM tab2
----
1768
1836
2584

query I rowsort
SELECT + 33 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) FROM tab0, tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6501
SELECT - CAST( 19 + cor1.col1 AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 23bb6be3978ea6d42b43202fab234e7d

skipif mysql # not compatible
query I rowsort label-6501
SELECT - CAST ( 19 + cor1.col1 AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 23bb6be3978ea6d42b43202fab234e7d

query I rowsort
SELECT ALL + 27 * cor0.col0 FROM tab2 cor0
----
189
2106
2133

query I rowsort
SELECT DISTINCT ( + col0 ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 91 + + ( + cor0.col1 * cor0.col0 ) + + col1 FROM tab1 AS cor0
----
1144
195
741

query I rowsort
SELECT ALL - ( + col0 ) + + col0 * 38 * 17 AS col0 FROM tab2 AS cor0
----
4515
50310
50955

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col0 + - col0 * 61 FROM tab2 AS cor0
----
-434
-4836
-4898

onlyif mysql # use DIV operator for integer division
query I rowsort label-6508
SELECT ALL 60 DIV + cor0.col0 FROM tab2 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL 60 / + cor0.col0 FROM tab2 AS cor0
----
0
0
8

query I rowsort
SELECT - + 25 + - col0 AS col2 FROM tab2 AS cor0
----
-103
-104
-32

query I rowsort
SELECT - ( + col0 ) * - ( - 55 ) + col1 - + ( - col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-543
-6259
-7330

query I rowsort
SELECT ALL - col2 - col2 * ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT col2 * 77 + - col2 - + ( 39 ) FROM tab1
----
4065
4293
7257

query I rowsort
SELECT + col1 * + col0 - col0 AS col1 FROM tab1
----
576
75
960

query I rowsort
SELECT - col2 * col0 + - col2 + - col0 FROM tab2
----
-2132
-223
-3119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * tab1.col2 * cor0.col0 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1b009baef482adbc6a255d6df9defd1c

query I rowsort
SELECT DISTINCT - 24 * - ( + col1 * - col0 ) - col1 FROM tab2
----
-110507
-32249
-5239

query I rowsort
SELECT DISTINCT col2 * - 60 - col0 FROM tab0
----
-2004
-5009
-95

query I rowsort
SELECT DISTINCT 9 - - 12 AS col1 FROM tab0
----
21

query I rowsort
SELECT DISTINCT - col2 * - col1 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - col1 * + col0 + - cor0.col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + col1 + - ( + 79 ) * col0 AS col0 FROM tab0 AS cor0
----
-1810
-2668
-6940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6523
SELECT - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 34 * col0 FROM tab1 AS cor0
----
-124032
-261120
-5508

query I rowsort
SELECT - - col2 + + ( + ( col1 ) ) * 20 AS col0 FROM tab0 AS cor0
----
1753
1902
1941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col1 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6527
SELECT DISTINCT + col2 * cor0.col1 DIV ( - col0 * + ( - ( + col2 ) ) + + col1 ) col0 FROM tab1 AS cor0
----
0
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT + col2 * cor0.col1 / ( - col0 * + ( - ( + col2 ) ) + + col1 ) col0 FROM tab1 AS cor0
----
0
7

query I rowsort
SELECT DISTINCT - col0 * 2 + + col1 * - cor0.col1 FROM tab1 cor0
----
-228
-329
-682

query I rowsort
SELECT ALL col2 + 43 AS col2 FROM tab2 AS cor0
----
69
70
81

query I rowsort
SELECT DISTINCT - cor0.col0 * + 40 + + col2 FROM tab0 AS cor0
----
-1399
-3478
-927

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6531
SELECT ALL cor0.col1 / - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL cor0.col1 / - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6532
SELECT - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6532
SELECT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + cor0.col0 + 57 + col2 * col0 * col0 AS col0 FROM tab0 cor0
----
1317
19089
649668

query I rowsort
SELECT DISTINCT + col0 * col0 + col2 * + 48 * 31 AS col0 FROM tab0 AS cor0
----
129937
2713
49680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 97 - + cor0.col2 * - col0 * + ( + col2 * + cor0.col0 ) col0 FROM tab0 AS cor0
----
1322
53260901
627361

query I rowsort
SELECT DISTINCT - + col2 * - col1 + - col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + + col2 + + ( - col1 ) FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 + - 11 + - col0 col1 FROM tab2 AS cor0
----
-22
-23
49

query I rowsort
SELECT + 51 + col2 AS col2 FROM tab1 AS cor0
----
105
108
147

query I rowsort
SELECT DISTINCT + - col2 + - cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - 40 + + col0 AS col2 FROM tab2 AS cor0
----
-33
38
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6542
SELECT - + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6542
SELECT - + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 19 * col0 + col0 - - col1 AS col1 FROM tab1 AS cor0
----
1290
1613
86

query I rowsort
SELECT ALL + 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6545
SELECT 47 DIV - tab2.col1 + + tab2.col2 - - col1 AS col1 FROM tab2
----
53
57
85

skipif mysql # not compatible
query I rowsort label-6545
SELECT 47 / - tab2.col1 + + tab2.col2 - - col1 AS col1 FROM tab2
----
53
57
85

query I rowsort
SELECT DISTINCT 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
14

query I rowsort
SELECT cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + + ( - col2 ) + - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + col2 - col2 * - cor0.col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 * col1 FROM tab0 AS cor0
----
-2262
1128
459

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6551
SELECT ALL + + 62 * - col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + + 62 * - col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 26 + col2 * + 62 + + 0 AS col0 FROM tab2
----
1638
1700
2382

onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT ALL col0 + + col0 + col0 DIV + col0 FROM tab1 cor0
----
129
161
7

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL col0 + + col0 + col0 / + col0 FROM tab1 cor0
----
129
161
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 * cor0.col0 col0 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + col1 * 12 AS col2 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT ALL + + col1 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6558
SELECT + col1 + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT + col1 + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT cor0.col1 + cor0.col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - ( col2 ) + + col1 * + cor0.col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT 87 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT DISTINCT - col0 - col0 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab1, tab1 AS cor0
----
7

query I rowsort
SELECT ALL 75 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col0 + ( + col0 ) col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + cor0.col0 + + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6568
SELECT - col0 * - CAST( col2 AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400

skipif mysql # not compatible
query I rowsort label-6568
SELECT - col0 * - CAST ( col2 AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT DISTINCT - 69 DIV + col0 AS col1 FROM tab2 cor0
----
-9
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT - 69 / + col0 AS col1 FROM tab2 cor0
----
-9
0

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab2, tab2 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( tab2.col2 ) col1 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL + ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + ( + ( + col1 ) ) FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 85 col0 FROM tab2 AS cor0
----
595
6630
6715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6575
SELECT ALL CAST( + 7 AS SIGNED ) FROM tab0 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL CAST ( + 7 AS INTEGER ) FROM tab0 AS cor0
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6576
SELECT DISTINCT 10 DIV + ( + col0 ) FROM tab1 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT 10 / + ( + col0 ) FROM tab1 cor0
----
0
3

query I rowsort
SELECT ALL + ( - col0 ) * - cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
17
31
59

query I rowsort
SELECT + ( col0 ) * 18 AS col1 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT ALL - + 46 * col2 - - col0 * col2 AS col0 FROM tab1 AS cor0
----
-2322
1026
3264

query I rowsort
SELECT DISTINCT - 35 FROM tab2 cor0
----
-35

query I rowsort
SELECT + - 22 - col1 FROM tab1 AS cor0
----
-32
-35
-48

query I rowsort
SELECT ( + col2 ) + col1 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT + col2 + - 87 FROM tab2
----
-49
-60
-61

query I rowsort
SELECT + 96 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ALL - ( col2 + - col1 ) * + 70 * col2 FROM tab1
----
-105840
-187530
-557760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6587
SELECT DISTINCT ( 43 ) DIV - col0 AS col1 FROM tab2
----
-6
0

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT ( 43 ) / - col0 AS col1 FROM tab2
----
-6
0

query I rowsort
SELECT - col2 + + col1 * col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
23

query I rowsort
SELECT - 81 FROM tab2, tab0 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6591
SELECT + col1 * ( - col0 ) + col1 - - col2 DIV + col0 FROM tab2 AS cor0
----
-1326
-183
-4543

skipif mysql # not compatible
query I rowsort label-6591
SELECT + col1 * ( - col0 ) + col1 - - col2 / + col0 FROM tab2 AS cor0
----
-1326
-183
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6592
SELECT col2 * col1 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6592
SELECT col2 * col1 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * + 85 + col2 FROM tab1 AS cor0
----
-201
-5383
-6704

onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT + col2 DIV 12 AS col1 FROM tab2 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-6594
SELECT + col2 / 12 AS col1 FROM tab2 AS cor0
----
2
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT - col2 DIV + 34 + 21 * col1 * + ( + 44 ) FROM tab0 AS cor0
----
79464
84082
89628

skipif mysql # not compatible
query I rowsort label-6595
SELECT - col2 / + 34 + 21 * col1 * + ( + 44 ) FROM tab0 AS cor0
----
79464
84082
89628

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col1 * col1 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT col0 * + col1 * - tab1.col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col1 * - 36 AS col0 FROM tab0 AS cor0
----
-3096
-3276
-3492

onlyif mysql # use DIV operator for integer division
query I rowsort label-6599
SELECT + - ( - col0 ) DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6599
SELECT + - ( - col0 ) / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6600
SELECT - col1 DIV + tab1.col0 AS col2 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6600
SELECT - col1 / + tab1.col0 AS col2 FROM tab1
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT DISTINCT - col2 - + col2 * tab1.col2 DIV - col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT - col2 - + col2 * tab1.col2 / - col2 AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + tab0.col0 > NULL
----

query I rowsort
SELECT ALL col0 + tab2.col1 * + col1 AS col2 FROM tab2
----
3559
368
968

query I rowsort
SELECT col0 + tab0.col0 + col0 * - col2 FROM tab0
----
-7120
-744
35

query I rowsort
SELECT tab2.col1 + col2 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT col2 + col0 * col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT tab1.col2 - col2 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col2 >= NULL
----

query I rowsort
SELECT - col2 * - col1 * col2 + - col0 FROM tab0
----
611795
62
93630

query I rowsort
SELECT col0 * tab1.col1 * - col1 + + col1 FROM tab1
----
-13507
-2002
-6390

query I rowsort
SELECT DISTINCT - col0 + - col1 + tab1.col0 FROM tab1
----
-10
-13
-26

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( + col1 + col0 ) AND NULL
----

query I rowsort
SELECT ALL + col2 + - col0 + - col2 AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col0 * col1 + + tab1.col2 AS col1 FROM tab1
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-6615
SELECT ALL - col1 DIV tab0.col0 + - col1 AS col0 FROM tab0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - col1 / tab0.col0 + - col1 AS col0 FROM tab0
----
-89
-92
-99

query I rowsort
SELECT col2 FROM tab0 WHERE + col1 IN ( + col2 + - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT ALL + col2 DIV - col2 + tab0.col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL + col2 / - col2 + tab0.col0 FROM tab0
----
23
34
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 + col2 / col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6619
SELECT col1 - col1 DIV col2 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6619
SELECT col1 - col1 / col2 AS col1 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT + cor0.col1 * col1 * + col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT - col0 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + tab0.col2 + col2 * col0 + col1 * - col0 FROM tab0
----
-1239
-3359
-719

query I rowsort
SELECT cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - + col1 * cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + col1 * + col0 * + col1 + col1 * + col2 FROM tab0 AS cor0
----
180342
329412
744471

query I rowsort
SELECT cor0.col2 * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-6628
SELECT ALL col2 DIV - col1 AS col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL col2 / - col1 AS col1 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * col1 col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL col0 + col2 + - col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - col2 + - col2 + + col1 AS col0 FROM tab2
----
-23
-59
7

query I rowsort
SELECT DISTINCT col0 * - 13 * - col2 + - col0 * - 50 FROM tab0 AS cor0
----
11496
2205
99324

query I rowsort
SELECT ALL + col2 + - 38 AS col2 FROM tab0 cor0
----
-37
-5
44

query I rowsort
SELECT ALL + - col0 * 1 + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - col0 + - col1 * col2 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT + - col1 * 2 + + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-13
-151
-66

query I rowsort
SELECT DISTINCT + + cor0.col1 * ( + col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + - col1 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT - cor0.col2 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6640
SELECT + col0 * 74 DIV + 81 FROM tab1 AS cor0
----
2
58
73

skipif mysql # not compatible
query I rowsort label-6640
SELECT + col0 * 74 / + 81 FROM tab1 AS cor0
----
2
58
73

query I rowsort
SELECT DISTINCT - col0 + + 88 AS col1 FROM tab0 AS cor0
----
-1
53
64

query I rowsort
SELECT DISTINCT col0 + - col0 * 29 * - cor0.col2 + - 25 AS col2 FROM tab1 AS cor0
----
105831
222775
4676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 col1 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 + + col2 + - 14 FROM tab0
----
-21
-48
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6645
SELECT ALL + col1 + CAST( NULL AS SIGNED ) + 16 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) + 16 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * - ( + col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab2 AS cor2, tab1
----
13122 values hashing to 3d882f0d0d9890fffc4ff8b82d0d0691

onlyif mysql # use DIV operator for integer division
query I rowsort label-6648
SELECT + cor0.col2 DIV col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6648
SELECT + cor0.col2 / col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col0 * - 30 AS col1 FROM tab0 cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT 20 * cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
1180
340
620

query I rowsort
SELECT DISTINCT col0 * + tab1.col0 + col1 * col1 + tab1.col2 FROM tab1
----
4253
6665
739

onlyif mysql # use DIV operator for integer division
query I rowsort label-6652
SELECT ALL - col1 DIV - col2 + col2 + + col1 AS col2 FROM tab0
----
121
174
195

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - col1 / - col2 + col2 + + col1 AS col2 FROM tab0
----
121
174
195

onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT DISTINCT - col0 DIV col0 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT - col0 / col0 AS col1 FROM tab1
----
-1

query I rowsort
SELECT + cor0.col1 * - col1 * 53 - + cor0.col0 FROM tab0 AS cor0
----
-392012
-438982
-498712

onlyif mysql # use DIV operator for integer division
query I rowsort label-6655
SELECT col1 - cor0.col0 * col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-6655
SELECT col1 - cor0.col0 * col2 / col0 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT col2 - - col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - - cor0.col0 + col2 * + cor0.col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6658
SELECT ALL ( - col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL ( - col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col0 * col0 * col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT tab0.col0 * + col1 * tab0.col0 + tab0.col0 * col2 * col1 FROM tab0
----
117648
122220
1384929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + tab1.col0 * col2 col1 FROM tab1
----
233472
486
614400

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + - col0 IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6663
SELECT ALL tab1.col2 DIV col1 + col2 + col0 FROM tab1
----
126
183
59

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL tab1.col2 / col1 + col2 + col0 FROM tab1
----
126
183
59

query I rowsort
SELECT + col2 * - col2 + + col1 * col0 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT DISTINCT col1 * + tab1.col1 + col0 + col1 FROM tab1
----
174
262
705

query I rowsort
SELECT ALL col1 + - col2 * col0 + col0 AS col2 FROM tab0
----
-682
-7118
97

query I rowsort
SELECT - col0 * col2 * - col0 AS col1 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL 58 * tab2.col0 + ( + col1 ) AS col2 FROM tab2
----
437
4583
4599

onlyif mysql # use DIV operator for integer division
query I rowsort label-6669
SELECT ALL 36 DIV + cor0.col1 AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to eff82df49d5880477456e4901e030e04

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL 36 / + cor0.col1 AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to eff82df49d5880477456e4901e030e04

onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT col1 + + col0 * + col0 * col1 + col0 * 32 DIV ( - col0 ) AS col1 FROM tab0
----
118890
49590
720870

skipif mysql # not compatible
query I rowsort label-6670
SELECT col1 + + col0 * + col0 * col1 + col0 * 32 / ( - col0 ) AS col1 FROM tab0
----
118890
49590
720870

query I rowsort
SELECT ALL - + 57 + col0 * col1 * col0 FROM tab1 AS cor0
----
177
40903
83143

query I rowsort
SELECT DISTINCT - ( col1 ) + + cor0.col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL col2 * col2 - + col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 - ( + 7 + col0 ) AS col1 FROM tab2 AS cor0
----
-203
-2113
-3088

query I rowsort
SELECT + - 88 + - col2 * col0 FROM tab0 AS cor0
----
-123
-7386
-880

query I rowsort
SELECT ( - 41 ) AS col2 FROM tab2 cor0
----
-41
-41
-41

query I rowsort
SELECT - 41 * - col0 FROM tab2 AS cor0
----
287
3198
3239

onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT CAST( 78 AS SIGNED ) + + cor0.col1 DIV col2 AS col0 FROM tab1 AS cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-6679
SELECT CAST ( 78 AS INTEGER ) + + cor0.col1 / col2 AS col0 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT col0 * ( col1 ) + - col0 AS col1 FROM tab1
----
576
75
960

query I rowsort
SELECT - col1 + col2 * 7 AS col1 FROM tab2
----
123
158
249

query I rowsort
SELECT - ( 1 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT 41 * cor1.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c75535f82540722edd01b5f3e3246f31

query I rowsort
SELECT ALL + ( + cor0.col2 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT - col2 * 99 + - col2 FROM tab2 AS cor0
----
-2600
-2700
-3800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + - col2 * - ( col2 ) + - col2 * col1 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT + col1 - ( - col1 * col2 ) FROM tab1
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6689
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + + col2 + - 70 FROM tab0 AS cor0
----
-37
-69
12

query I rowsort
SELECT DISTINCT - 44 * col0 + + col2 + + ( + col1 ) * col1 FROM tab1 AS cor0
----
-2659
-3255
598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 + + col2 * 16 col2 FROM tab0
----
1314
18
530

query I rowsort
SELECT + 36 * - col1 * 79 + + 83 FROM tab2 AS cor0
----
-167713
-48265
-88081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6695
SELECT - + 22 * col2 - CAST( - col2 + + col2 AS SIGNED ) * - 10 FROM tab1 AS cor0
----
-1188
-1254
-2112

skipif mysql # not compatible
query I rowsort label-6695
SELECT - + 22 * col2 - CAST ( - col2 + + col2 AS INTEGER ) * - 10 FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT + col0 + - cor0.col2 * col0 * col0 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT ALL - - col0 * - 57 AS col0 FROM tab2 AS cor0
----
-399
-4446
-4503

query I rowsort
SELECT DISTINCT + col1 * ( 71 ) AS col2 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT + col0 * - col2 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - - col1 + cor0.col2 * col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ( + col0 ) * 67 FROM tab2
----
469
5226
5293

query I rowsort
SELECT + 81 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + 1 + - cor0.col2 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT ALL - col1 * cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6705
SELECT ( col1 ) DIV ( col1 ) AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6705
SELECT ( col1 ) / ( col1 ) AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT 20 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT cor0.col2 + + 94 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8c55f2bb0261b3a787b0c948756d169b

query I rowsort
SELECT - 24 + tab1.col2 FROM tab1
----
30
33
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 56 col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT 96 * tab1.col1 - - col1 * + 32 AS col0 FROM tab1
----
1280
1664
3328

query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab1, tab0, tab0 cor0
----
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT ALL - col2 DIV + cor0.col0 + 85 FROM tab0 AS cor0
----
84
85
85

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - col2 / + cor0.col0 + 85 FROM tab0 AS cor0
----
84
85
85

query I rowsort
SELECT + ( cor1.col2 ) FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT 8 * cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cab8512e8432e71d5f577d7d048e5a49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6715
SELECT - col1 * 66 * + tab0.col2 - - tab0.col2 DIV - ( col0 + col0 ) AS col0 FROM tab0
----
-187308
-492492
-6402

skipif mysql # not compatible
query I rowsort label-6715
SELECT - col1 * 66 * + tab0.col2 - - tab0.col2 / - ( col0 + col0 ) AS col0 FROM tab0
----
-187308
-492492
-6402

onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT col2 + 1 + ( col0 ) DIV col2 col1 FROM tab0
----
34
37
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6716
SELECT col2 + 1 + ( col0 ) / col2 col1 FROM tab0
----
34
37
84

query I rowsort
SELECT ALL + ( - col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 + - 90 FROM tab1
----
-64
-77
-80

query I rowsort
SELECT ALL - col0 * col0 * - ( col2 ) + + col1 AS col0 FROM tab2
----
1354
158243
237175

query I rowsort
SELECT - col0 + 72 + - col0 FROM tab0 AS cor0
----
-106
2
24

query I rowsort
SELECT - col0 * 50 + col0 - + tab0.col1 * + col1 AS col1 FROM tab0
----
-11124
-12642
-8572

query I rowsort
SELECT DISTINCT col1 - ( 51 ) FROM tab2
----
-20
-34
8

query I rowsort
SELECT DISTINCT col0 + 21 * - col1 * - col2 AS col2 FROM tab1
----
12034
26288
29487

query I rowsort
SELECT ALL - tab2.col0 + - 15 FROM tab2
----
-22
-93
-94

query I rowsort
SELECT - tab0.col2 * - ( - ( + col1 ) ) AS col0 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT tab0.col1 DIV + 89 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6726
SELECT tab0.col1 / + 89 FROM tab0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6727
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT 65 + + col1 FROM tab0 AS cor0
----
151
156
162

query I rowsort
SELECT + + 39 + col0 FROM tab2 cor0
----
117
118
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6730
SELECT - - CAST( col2 AS SIGNED ) + - cor0.col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6730
SELECT - - CAST ( col2 AS INTEGER ) + - cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - 94 ) * col2 FROM tab1 AS cor0
----
-5076
-5358
-9024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + - col2 col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT - 93 + + col0 FROM tab0 AS cor0
----
-4
-58
-69

query I rowsort
SELECT - col1 + 35 FROM tab0 AS cor0
----
-51
-56
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col0 FROM tab2 AS cor0
----
41

query I rowsort
SELECT DISTINCT ( - 17 ) FROM tab2 AS cor0
----
-17

query I rowsort
SELECT ALL - + col1 * - 36 + col0 AS col1 FROM tab0 AS cor0
----
3120
3365
3527

query I rowsort
SELECT ALL - cor0.col2 - col1 AS col1 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - 20 + + 5 AS col1 FROM tab2
----
-15
-15
-15

query I rowsort
SELECT ALL ( 27 ) AS col1 FROM tab0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 + + tab0.col0 col1 FROM tab0
----
19
30
84

query I rowsort
SELECT ALL 64 + - col0 FROM tab1
----
-16
0
61

query I rowsort
SELECT ALL ( + 21 ) * cor0.col2 AS col2 FROM tab0 cor0
----
1722
21
693

query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 + + col2 * + col2 FROM tab2 AS cor0
----
-1352
-1558
540

query I rowsort
SELECT ALL - + 44 * col0 + - col1 - + ( - col1 * col1 ) FROM tab2 AS cor0
----
-10
-3204
622

onlyif mysql # use DIV operator for integer division
query I rowsort label-6746
SELECT ALL - - col2 * col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL - - col2 * col1 / cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab0 cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - cor0.col0 * 55 AS col0 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT DISTINCT - - 75 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-7
42
74

query I rowsort
SELECT DISTINCT + col2 * col2 * ( col1 ) FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - col2 * - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + 53 * - col1 + + col2 FROM tab2 AS cor0
----
-1616
-3101
-863

query I rowsort
SELECT ALL + + 38 + - col1 FROM tab1 cor0
----
12
25
28

query I rowsort
SELECT - ( col0 ) * 61 FROM tab0 AS cor0
----
-1464
-2135
-5429

query I rowsort
SELECT + ( - col2 ) * col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL tab2.col0 * cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3bf51d387ba44128cb3ec1426ea3afc8

query I rowsort
SELECT 9 * + col0 AS col0 FROM tab0
----
216
315
801

query I rowsort
SELECT + col0 * + col1 + + 75 AS col1 FROM tab2 AS cor0
----
1418
292
4677

query I rowsort
SELECT - col2 + + col2 * 72 * + 58 FROM tab0 AS cor0
----
137775
342350
4175

query I rowsort
SELECT ALL - col0 * - ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + - col2 * ( + col1 ) FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6763
SELECT - + cor0.col2 DIV 21 AS col0 FROM tab1 AS cor0
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-6763
SELECT - + cor0.col2 / 21 AS col0 FROM tab1 AS cor0
----
-2
-2
-4

query I rowsort
SELECT DISTINCT - col0 * + ( + cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col2 * + 36 AS col2 FROM tab1 AS cor0
----
1944
2052
3456

query I rowsort
SELECT col2 + - ( - col2 ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL 6 * col1 AS col2 FROM tab2
----
102
186
354

query I rowsort
SELECT ALL + col2 * col0 + + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
15397
2856
3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT - cor0.col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6770
SELECT - cor0.col0 / - col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + col2 * ( - col0 * col0 ) AS col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT + ( 12 ) AS col1 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT - - col1 - 36 FROM tab0 AS cor0
----
50
55
61

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab2, tab2 AS cor0
----
78

query I rowsort
SELECT + 97 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT + + 63 * col1 AS col2 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT - + col2 * 74 + col0 AS col0 FROM tab1 AS cor0
----
-3993
-4154
-7024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab2
----
88
88
88

query I rowsort
SELECT + 71 * - 61 AS col2 FROM tab2 cor0
----
-4331
-4331
-4331

query I rowsort
SELECT DISTINCT 57 FROM tab1, tab1 AS cor0
----
57

query I rowsort
SELECT + + 94 * - col0 FROM tab1 AS cor0
----
-282
-6016
-7520

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-6783
SELECT DISTINCT + + 7 DIV - col1 + + col0 * - col1 + + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + + 7 / - col1 + + col0 * - col1 + + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + ( col1 ) * + col0 * ( + col0 ) AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + + 83 AS col0 FROM tab0, tab2, tab1 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * 66 col1 FROM tab0
----
4026
4026
4026

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT DISTINCT 42 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT 42 / + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 47 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT ALL cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 77 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL - + cor0.col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - - 20 + - col2 FROM tab0 AS cor0
----
-13
-62
19

query I rowsort
SELECT + cor1.col2 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9f4d33c2594156f40c1a77ce18b06bc3

query I rowsort
SELECT + 11 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + cor0.col0 col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c3106673b5165f666b99e75c964d6287

query I rowsort
SELECT - + col1 + col0 AS col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + col0 * - ( col1 ) AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL tab2.col2 * ( col1 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT - col2 + - 36 * + col1 FROM tab2 AS cor0
----
-1143
-2150
-650

query I rowsort
SELECT col0 + col2 * - col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT - col2 + - 69 * col0 AS col0 FROM tab1 AS cor0
----
-261
-4473
-5616

query I rowsort
SELECT - 50 * col1 + cor0.col1 FROM tab1 AS cor0
----
-1274
-490
-637

query I rowsort
SELECT - - 37 + 81 FROM tab0 AS cor0
----
118
118
118

query I rowsort
SELECT - - col1 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT cor0.col2 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 col2 FROM tab2 AS cor0
----
61

query I rowsort
SELECT + + col0 * - col1 * col2 + ( cor0.col2 ) - - col2 FROM tab0 AS cor0
----
-3393
-663954
-68046

query I rowsort
SELECT DISTINCT col1 + - tab1.col0 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + col1 + 71 AS col1 FROM tab2 AS cor0
----
102
130
88

query I rowsort
SELECT + + 57 FROM tab2 cor0
----
57
57
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6811
SELECT ALL + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - cor0.col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * - 6 col2 FROM tab2 AS cor0
----
-159
-328
-64

query I rowsort
SELECT ALL - col0 + - 73 AS col0 FROM tab1 cor0
----
-137
-153
-76

query I rowsort
SELECT - col2 * - 14 + - col1 FROM tab0 AS cor0
----
-83
1057
376

query I rowsort
SELECT ALL - col2 * + 96 FROM tab2 AS cor0
----
-2496
-2592
-3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * 54 * + col0 col0 FROM tab1 AS cor0
----
221184
345600
486

query I rowsort
SELECT ALL + col1 + 10 * col1 FROM tab1 cor0
----
110
143
286

query I rowsort
SELECT DISTINCT tab0.col1 + 2 FROM tab0
----
88
93
99

query I rowsort
SELECT col1 + 95 + - col2 AS col1 FROM tab1
----
12
48
67

query I rowsort
SELECT ALL - col0 * - col2 * col2 FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6822
SELECT DISTINCT - CAST( 29 AS SIGNED ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - CAST ( 29 AS INTEGER ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT + + col1 * 76 + col2 + col0 FROM tab0 AS cor0
----
6593
7087
7408

query I rowsort
SELECT col0 * ( col2 ) + + 96 + 84 FROM tab0 AS cor0
----
215
7478
972

query I rowsort
SELECT ( col2 ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT 23 - cor1.col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 72989d1fcc02e5d4dcbb9c98d1bab1f2

query I rowsort
SELECT ALL col0 + - ( + ( col0 ) ) * + 49 AS col1 FROM tab2
----
-336
-3744
-3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * 2 col2 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL 84 FROM tab1, tab0 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - tab1.col0 * - 27 * col0 + col2 * col2 FROM tab1
----
113841
182016
3159

query I rowsort
SELECT DISTINCT 43 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
43

query I rowsort
SELECT DISTINCT - + col0 * + col1 + + cor0.col0 * col0 FROM tab2 cor0
----
-168
1482
4898

query I rowsort
SELECT ALL ( - col1 ) + - col2 AS col2 FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6834
SELECT ALL col2 * - col0 / + CAST( NULL AS SIGNED ) + - col1 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL col2 * - col0 / + CAST ( NULL AS INTEGER ) + - col1 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 64 * col2 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT ALL + - col1 + col1 + + 29 * 66 FROM tab0 AS cor0
----
1914
1914
1914

query I rowsort
SELECT ALL - 41 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6838
SELECT + - 39 - col1 * CAST( NULL AS SIGNED ) 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-6838
SELECT + - 39 - col1 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col0 + col2 * - 70 + + ( col0 ) * + CAST ( col2 AS REAL ) * + col1 FROM tab1 cor0
----
32554
435
93200

query I rowsort
SELECT DISTINCT + col0 * col0 * col1 + + cor0.col1 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
-5208
83266
87438

query I rowsort
SELECT ( col1 * col1 ) AS col1 FROM tab2
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6843
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6843
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - 5 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

query I rowsort
SELECT - col0 + col2 * 70 * + col0 + + col1 FROM tab1
----
11363
255306
537533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 82 * - col1 col0 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT - col0 - - col1 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT col1 + - col1 + + col1 * - col1 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6849
SELECT + 11 DIV col2 + - col1 FROM tab0
----
-86
-86
-91

skipif mysql # not compatible
query I rowsort label-6849
SELECT + 11 / col2 + - col1 FROM tab0
----
-86
-86
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT + col2 DIV tab0.col1 - + col0 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6850
SELECT + col2 / tab0.col1 - + col0 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + tab1.col0 * + 21 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0e72c3fbfe7aeb1b384e83444c2391b4

query I rowsort
SELECT ALL 11 * + col1 FROM tab0
----
1001
1067
946

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT ALL - - col0 * 51 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
1310
1882
4630

query I rowsort
SELECT DISTINCT - col1 * - col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL + - cor0.col1 - 94 AS col1 FROM tab1 cor0
----
-104
-107
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 92 - ( col0 * 2 ) col0 FROM tab0 AS cor0
----
7864
8194
8854

query I rowsort
SELECT ALL - col0 + - 89 FROM tab0 AS cor0
----
-113
-124
-178

query I rowsort
SELECT - + col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( + 97 * col1 ) col2 FROM tab0 AS cor0
----
-8318
-8738
-9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6861
SELECT ALL col2 + - CAST( col2 AS SIGNED ) * - col1 AS col0 FROM tab2 cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL col2 + - CAST ( col2 AS INTEGER ) * - col1 AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + + col0 - + col2 * col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6863
SELECT + + col2 * - CAST( - 95 AS SIGNED ) - col2 FROM tab0 AS cor0
----
3102
7708
94

skipif mysql # not compatible
query I rowsort label-6863
SELECT + + col2 * - CAST ( - 95 AS INTEGER ) - col2 FROM tab0 AS cor0
----
3102
7708
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6864
SELECT DISTINCT - + col1 * col0 + col0 + CAST( + 47 AS SIGNED ) AS col2 FROM tab1 cor0
----
-28
-529
-913

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT - + col1 * col0 + col0 + CAST ( + 47 AS INTEGER ) AS col2 FROM tab1 cor0
----
-28
-529
-913

query I rowsort
SELECT DISTINCT 82 * + cor0.col2 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT DISTINCT - col2 * 73 AS col2 FROM tab2 AS cor0
----
-1898
-1971
-2774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 24 ) + - cor0.col1 * col2 col1 FROM tab1 AS cor0
----
-1272
-1428
-594

query I rowsort
SELECT col1 * col0 * - col2 + + col2 + - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - 29 * + col2 AS col0 FROM tab2 cor0
----
-1102
-754
-783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 37 col0 FROM tab1 cor0
----
-27
-43
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT ALL - col2 + - col2 * col0 * - 59 FROM tab2 AS cor0
----
11124
119626
177080

query I rowsort
SELECT DISTINCT - 73 * - col1 AS col1 FROM tab2 AS cor0
----
1241
2263
4307

query I rowsort
SELECT ALL - + 97 + - col2 FROM tab0 AS cor0
----
-130
-179
-98

query I rowsort
SELECT ALL + + cor0.col0 * + cor0.col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 * + 67 col1 FROM tab0 AS cor0
----
2244
5576
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col0 FROM tab2, tab1 AS cor0
----
27

query I rowsort
SELECT 80 + - col2 FROM tab2
----
42
53
54

query I rowsort
SELECT + col2 * col1 * col0 + col0 * col2 FROM tab2 AS cor0
----
121680
54036
6048

query I rowsort
SELECT + ( + col0 ) - + col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + 0 * 15 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 + + col1 * + col1 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT - ( - col1 + - col2 ) * + col1 FROM tab0
----
10234
15743
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6885
SELECT CAST( - 32 * col2 AS SIGNED ) AS col1 FROM tab1
----
-1728
-1824
-3072

skipif mysql # not compatible
query I rowsort label-6885
SELECT CAST ( - 32 * col2 AS INTEGER ) AS col1 FROM tab1
----
-1728
-1824
-3072

query I rowsort
SELECT 29 + + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3f80ed1b7f1f2a908cbc11228837bedb

query I rowsort
SELECT col1 * col0 + + cor0.col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + 55 AS col2 FROM tab1 AS cor0
----
55
55
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6889
SELECT - col0 * col1 + col0 DIV + 82 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-6889
SELECT - col0 * col1 + col0 / + 82 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col1 + - col2 * - 43 FROM tab0 cor0
----
140
1505
3617

query I rowsort
SELECT - 2 + + col1 AS col1 FROM tab1 AS cor0
----
11
24
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * + col0 col0 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT col1 DIV CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6893
SELECT col1 / CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + + col0 * col0 + + col2 * - col2 * ( col1 ) FROM tab0 AS cor0
----
-603963
-93078
1128

onlyif mysql # use DIV operator for integer division
query I rowsort label-6895
SELECT tab0.col0 DIV 75 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6895
SELECT tab0.col0 / 75 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT - - cor0.col0 * + 89 FROM tab0 AS cor0
----
2136
3115
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 + - ( + col1 ) col2 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT + col2 * 67 + col2 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT + 62 - tab1.col0 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to ec55851d455ec01c52dae9763a485ccd

query I rowsort
SELECT DISTINCT + col2 * + 15 FROM tab1
----
1440
810
855

onlyif mysql # use DIV operator for integer division
query I rowsort label-6901
SELECT - cor0.col2 DIV col2 + + col0 AS col0 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-6901
SELECT - cor0.col2 / col2 + + col0 AS col0 FROM tab1 cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6902
SELECT cor0.col2 + cor0.col0 DIV cor0.col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6902
SELECT cor0.col2 + cor0.col0 / cor0.col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT DISTINCT - - 25 + + 59 AS col1 FROM tab0 cor0
----
84

query I rowsort
SELECT + 73 + 56 AS col2 FROM tab2 AS cor0
----
129
129
129

query I rowsort
SELECT - 18 * - col2 + + col0 * ( - col0 ) FROM tab0 AS cor0
----
-1207
-6445
18

query I rowsort
SELECT - - 70 * - 66 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-152460
-378840
-4620

query I rowsort
SELECT - ( - 95 ) * col2 + cor0.col1 FROM tab2 AS cor0
----
2529
2596
3627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6908
SELECT - CAST( col2 AS SIGNED ) + - cor0.col0 * 18 - ( - col2 ) * 32 col1 FROM tab0 AS cor0
----
-599
591
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6908
SELECT - CAST ( col2 AS INTEGER ) + - cor0.col0 * 18 - ( - col2 ) * 32 col1 FROM tab0 AS cor0
----
-599
591
940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6909
SELECT - CAST( NULL AS SIGNED ) * + col1 - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT - CAST ( NULL AS INTEGER ) * + col1 - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 83 + col0 * + col0 FROM tab1 AS cor0
----
4179
6483
92

query I rowsort
SELECT ALL + col0 * 95 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT ALL + - 24 + + col0 + col1 AS col0 FROM tab1 AS cor0
----
5
50
69

query I rowsort
SELECT ALL - col1 + 21 AS col2 FROM tab2 AS cor0
----
-10
-38
4

query I rowsort
SELECT - - cor0.col1 + col2 * col0 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - 23 * col0 AS col1 FROM tab2 AS cor0
----
-161
-1794
-1817

query I rowsort
SELECT DISTINCT + col2 + col0 * - cor0.col2 * - col2 FROM tab1 AS cor0
----
207993
737376
8802

query I rowsort
SELECT - cor0.col2 * col0 * - ( - 90 ) AS col1 FROM tab0 AS cor0
----
-3150
-656820
-71280

query I rowsort
SELECT + - 75 * col0 AS col0 FROM tab2 AS cor0
----
-525
-5850
-5925

onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT DISTINCT - 28 DIV + col1 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT - 28 / + col1 FROM tab1 AS cor0
----
-1
-2

query I rowsort
SELECT 8 AS col1 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT ALL - ( 72 ) + tab2.col1 + 44 FROM tab2
----
-11
3
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 + ( + col0 ) col1 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT DISTINCT - - col1 + ( - 5 ) FROM tab1 AS cor0
----
21
5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * cor0.col2 + + col0 col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT tab0.col0 * 53 AS col2 FROM tab0
----
1272
1855
4717

query I rowsort
SELECT ALL col0 * 44 FROM tab2
----
308
3432
3476

query I rowsort
SELECT DISTINCT + - tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL 50 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT 28 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT tab2.col1 + - col1 + col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6933
SELECT ALL col1 DIV - tab1.col0 + - col1 col0 FROM tab1
----
-10
-13
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL col1 / - tab1.col0 + - col1 col0 FROM tab1
----
-10
-13
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6934
SELECT ALL col2 + - col1 DIV col2 AS col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL col2 + - col1 / col2 AS col2 FROM tab0
----
-96
31
81

query I rowsort
SELECT ALL tab1.col1 + - tab1.col2 * col0 FROM tab1
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - tab1.col0 + col1 * col0 + + col2 AS col0 FROM tab1 WHERE NULL IN ( + col1 * - col2 )
----

query I rowsort
SELECT ALL + - col2 * col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col0 ) OR NULL NOT BETWEEN ( NULL ) AND col2 * + col0 * + col1 + - col0
----

query I rowsort
SELECT DISTINCT + col2 + col0 + - col2 * col2 FROM tab1 AS cor0
----
-2859
-3128
-9040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 - cor0.col0 col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL tab0.col1 - + col2 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT col2 - + col2 * + tab2.col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + - cor0.col2 + col1 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6945
SELECT col2 + - col2 DIV col1 AS col1 FROM tab2
----
26
27
36

skipif mysql # not compatible
query I rowsort label-6945
SELECT col2 + - col2 / col1 AS col1 FROM tab2
----
26
27
36

query I rowsort
SELECT DISTINCT col0 * - col0 + col2 * + col2 AS col0 FROM tab0 cor0
----
-1197
-1224
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col1 * col0 col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - col0 + + col1 * + col1 AS col2 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT cor0.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 - col1 + cor0.col1 * - cor0.col1 col0 FROM tab1 AS cor0
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 + - col1 col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col2 - col0 AS col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL - col1 * + col0 * - col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT - - cor0.col1 * + col0 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - col2 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL - 98 * col0 FROM tab2 AS cor0
----
-686
-7644
-7742

query I rowsort
SELECT - ( 31 ) FROM tab2, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT col2 * + col0 + col0 AS col2 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + + col0 col1 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 - + col1 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ( col1 + 46 * - col2 ) FROM tab0
----
-1432
-3681
51

query I rowsort
SELECT 80 + col1 AS col0 FROM tab2
----
111
139
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - + col2 * 68 + + col2 AS col2 FROM tab2 AS cor0
----
-1742
-1809
-2546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * 21 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2354fbaf46e1fc99dfe1a3f3636dca29

query I rowsort
SELECT ALL tab0.col0 * + col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + col2 * col0 * col2 + + col1 AS col1 FROM tab0
----
132
26222
598527

query I rowsort
SELECT ALL + col2 + col0 + col0 * + col0 FROM tab0
----
1261
633
8092

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( col2 )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col0 + col0 NOT BETWEEN - col1 - tab1.col2 AND NULL
----

query I rowsort
SELECT ALL - col1 * col0 * + tab1.col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE ( col1 * - col1 + + col2 * + col1 + + col2 ) BETWEEN NULL AND ( - col0 + + col0 + - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND + col2 * + col1
----

query I rowsort
SELECT col0 + + tab0.col1 * col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT + col2 * tab1.col1 + + col0 + col0 * tab1.col1 FROM tab1
----
1274
1485
2368

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NULL BETWEEN ( + col0 * col2 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT ALL - col1 DIV tab2.col0 - - col2 * - col2 col1 FROM tab2
----
-1444
-676
-733

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL - col1 / tab2.col0 - - col2 * - col2 col1 FROM tab2
----
-1444
-676
-733

query I rowsort
SELECT DISTINCT + col1 * + tab2.col1 * col2 AS col1 FROM tab2
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT DISTINCT col1 + - col2 DIV - tab0.col0 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT col1 + - col2 / - tab0.col0 FROM tab0
----
87
91
97

query III rowsort
SELECT * FROM tab2 WHERE + col2 * col0 < NULL
----

query I rowsort
SELECT col0 / - tab0.col1 AS col0 FROM tab0 WHERE NOT - col2 >= ( NULL )
----

query I rowsort
SELECT ALL col1 * col2 + col0 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT - col2 * - col0 + + col1 AS col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL col1 + + col1 AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT col2 + - col2 FROM tab1 WHERE NULL BETWEEN col1 * + col2 - + col0 AND + col2
----

query I rowsort
SELECT + tab1.col0 + col0 - - col0 FROM tab1
----
192
240
9

query I rowsort
SELECT DISTINCT col0 * tab1.col1 * tab1.col0 + col2 + - col2 * - col2 FROM tab1
----
3204
44266
92512

query I rowsort
SELECT DISTINCT col2 + + tab1.col2 * - col2 AS col1 FROM tab1
----
-2862
-3192
-9120

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) <= NULL
----

query I rowsort
SELECT ALL + tab1.col2 + col1 * col0 AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT + col2 - 23 FROM tab1 AS cor0
----
31
34
73

query I rowsort
SELECT + col1 * + 0 + col0 FROM tab2 cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab1.col0 ) col1 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + col1 * - 74 + 78 FROM tab1 AS cor0
----
-1846
-662
-884

query I rowsort
SELECT + col2 + + ( col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - - cor0.col1 - - cor0.col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col2 + 18 * col1 FROM tab1 AS cor0
----
237
330
522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT col0 + ( - col2 ) * - col0 AS col0 FROM tab1 cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 13 col2 FROM tab0 cor0
----
-1066
-13
-429

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7003
SELECT ALL CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - - 14 AS col1 FROM tab2 AS cor0
----
14

query I rowsort
SELECT 34 * tab2.col0 - - cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to dee270e8930509189d842aa291833a2e

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7007
SELECT DISTINCT - + col0 DIV - col2 + - col0 DIV col2 col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT - + col0 / - col2 + - col0 / col2 col2 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7008
SELECT - col0 - col2 * - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT - col0 - col2 * - CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * ( col1 ) col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - col2 + - col0 * + col0 FROM tab1 cor0
----
-4153
-63
-6496

query I rowsort
SELECT + + 78 * cor0.col0 * - col2 FROM tab0 AS cor0
----
-2730
-569244
-61776

query I rowsort
SELECT col2 * + col2 - + ( 82 ) FROM tab2
----
1362
594
647

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7014
SELECT - col0 + col2 * CAST( col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7014
SELECT - col0 + col2 * CAST ( col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * 80 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT ALL - ( - col1 ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + col1 * + col1 * col2 FROM tab0 AS cor0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 * + col1 col2 FROM tab2 cor0
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7019
SELECT col2 * CAST( NULL AS SIGNED ) - 7 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT col2 * CAST ( NULL AS INTEGER ) - 7 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 23 - + col1 FROM tab0 AS cor0
----
1956
466
708

onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT ( col1 ) DIV CAST( - col0 AS SIGNED ) + - col1 * - tab2.col2 FROM tab2
----
1534
646
833

skipif mysql # not compatible
query I rowsort label-7021
SELECT ( col1 ) / CAST ( - col0 AS INTEGER ) + - col1 * - tab2.col2 FROM tab2
----
1534
646
833

query I rowsort
SELECT 95 * + 92 AS col0 FROM tab1 AS cor0
----
8740
8740
8740

onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT 69 + col0 * - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
133
149
72

skipif mysql # not compatible
query I rowsort label-7023
SELECT 69 + col0 * - col1 / - col1 AS col0 FROM tab1 AS cor0
----
133
149
72

query I rowsort
SELECT col1 * + 52 FROM tab0
----
4472
4732
5044

query I rowsort
SELECT DISTINCT + cor0.col2 * tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd

query I rowsort
SELECT ALL + ( 44 ) AS col2 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-7027
SELECT - 34 - + cor0.col1 DIV - 17 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

skipif mysql # not compatible
query I rowsort label-7027
SELECT - 34 - + cor0.col1 / - 17 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL - + 8 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL 58 + + col0 FROM tab2 AS cor0
----
136
137
65

query I rowsort
SELECT + - col0 + col2 * + ( + col0 + - col0 ) * col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - + 78 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ALL - - cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - 41 * + col1 AS col0 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT ALL + tab1.col1 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + cor1.col2 * - 35 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0be47d113262ddff34eb5a85968d4ced

query I rowsort
SELECT ALL col2 + + tab2.col0 * col0 * col2 + col0 * - col2 FROM tab2
----
1161
156182
234194

query I rowsort
SELECT ALL - + col0 * col0 + col1 FROM tab1 cor0
----
-4086
-6387
17

query I rowsort
SELECT - 91 + 6 FROM tab0, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # use DIV operator for integer division
query I rowsort label-7040
SELECT ALL + col1 + 44 DIV + col1 FROM tab2 cor0
----
19
32
59

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL + col1 + 44 / + col1 FROM tab2 cor0
----
19
32
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT ALL - - 94 + 10 DIV col2 FROM tab1 cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - - 94 + 10 / col2 FROM tab1 cor0
----
94
94
94

query I rowsort
SELECT DISTINCT + 24 + col0 + - col2 AS col2 FROM tab0
----
15
31
58

query I rowsort
SELECT DISTINCT - col0 + tab0.col1 * col1 AS col0 FROM tab0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-7044
SELECT ALL - + col1 + - col0 * col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL - + col1 + - col0 * col2 / - col0 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - 14 FROM tab2, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to a58fbac92f43bc63036f08d7bd355007

query I rowsort
SELECT col1 * 65 AS col1 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT DISTINCT + + col2 + + col1 AS col0 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7048
SELECT + 4 * + col1 + + CAST( 37 AS SIGNED ) * - col2 AS col2 FROM tab0
----
-2670
-877
351

skipif mysql # not compatible
query I rowsort label-7048
SELECT + 4 * + col1 + + CAST ( 37 AS INTEGER ) * - col2 AS col2 FROM tab0
----
-2670
-877
351

onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT DISTINCT col2 DIV - col0 + col0 col0 FROM tab2
----
4
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT col2 / - col0 + col0 col0 FROM tab2
----
4
78
79

query I rowsort
SELECT ALL - tab2.col1 * + col1 + col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT 60 * - col1 - 36 FROM tab1
----
-1596
-636
-816

query I rowsort
SELECT ALL + col1 + + col0 * + ( col1 ) AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col2 * cor0.col0 * + col2 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT 8 + + col2 AS col2 FROM tab1 cor0
----
104
62
65

query I rowsort
SELECT + + 6 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col0 * col2 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT - col1 * 53 AS col2 FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT ALL + - col1 * + ( 31 * + col2 ) + ( 73 ) + - col0 FROM tab2 AS cor0
----
-20032
-25881
-47559

query I rowsort
SELECT ALL col0 * - 88 + col0 AS col1 FROM tab1 AS cor0
----
-261
-5568
-6960

query I rowsort
SELECT col0 + 44 FROM tab0 AS cor0
----
133
68
79

query I rowsort
SELECT col1 * col1 + + col2 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7064
SELECT DISTINCT + col1 * CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT + col1 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - col0 - + ( col2 * col1 ) AS col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT col0 * col1 + + 62 AS col0 FROM tab2
----
1405
279
4664

query I rowsort
SELECT DISTINCT + col0 * - ( - col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - col2 + + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
1224
543
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-7069
SELECT DISTINCT - col0 DIV CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT - col0 / CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col1 * 40 * - col0 AS col1 FROM tab0 AS cor0
----
-135800
-323960
-82560

query I rowsort
SELECT ALL - + col0 * col1 + ( col0 ) AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + col0 * - 46 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col2 + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT col2 * + ( - tab0.col0 ) AS col2 FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7076
SELECT - + CAST( ( + col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7076
SELECT - + CAST ( ( + col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col2 + ( + cor0.col0 ) FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7078
SELECT + CAST( NULL AS SIGNED ) * + col2 + + col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7078
SELECT + CAST ( NULL AS INTEGER ) * + col2 + + col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT col2 * - 85 FROM tab2
----
-2210
-2295
-3230

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab1, tab2 cor0
----
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT - + 49 DIV cor0.col1 AS col0 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7082
SELECT - + 49 / cor0.col1 AS col0 FROM tab2 cor0
----
-1
-2
0

query I rowsort
SELECT + cor0.col2 * + col1 + + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT DISTINCT + col1 DIV cor0.col2 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT + col1 / cor0.col2 AS col0 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7085
SELECT - - col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7085
SELECT - - col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - ( + col0 ) * 19 FROM tab1 AS cor0
----
-1216
-1520
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7087
SELECT ALL - - 74 DIV col1 FROM tab2 cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL - - 74 / col1 FROM tab2 cor0
----
1
2
4

query I rowsort
SELECT - col0 * col2 - - 97 AS col0 FROM tab1 AS cor0
----
-3551
-65
-7583

query I rowsort
SELECT ALL + 96 + col2 * + col2 FROM tab2 AS cor0
----
1540
772
825

query I rowsort
SELECT col0 * + col2 + + col2 + + col1 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT ALL + + col0 * col2 * cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + col0 - col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + ( + 34 ) * col1 - col2 AS col1 FROM tab0
----
2891
3012
3297

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7095
SELECT - col2 DIV - col1 + - col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7095
SELECT - col2 / - col1 + - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 58 * + col1 AS col2 FROM tab2
----
1798
3422
986

query I rowsort
SELECT col2 * - col1 + - col2 * - 61 FROM tab1
----
1890
2907
4608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + col1 col1 FROM tab1
----
78
81
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7099
SELECT 3 * col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT 3 * col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + cor0.col0 ) * 3 FROM tab1 AS cor0
----
-192
-240
-9

query I rowsort
SELECT cor0.col0 * col0 + - ( - col2 ) FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT 45 * col0 + ( + tab0.col2 ) * col1 + + ( ( col1 ) ) * col0 * 79 FROM tab0
----
166974
269877
651288

query I rowsort
SELECT ( col2 ) * + col2 * + 83 AS col0 FROM tab2 AS cor0
----
119852
56108
60507

query I rowsort
SELECT - - col0 + - col2 * col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + 25 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT - 45 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
-10
7253
747

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7107
SELECT + col2 * - col2 - CAST( - 22 + - cor0.col1 AS SIGNED ) * + col2 FROM tab1 cor0
----
-1425
-324
-5856

skipif mysql # not compatible
query I rowsort label-7107
SELECT + col2 * - col2 - CAST ( - 22 + - cor0.col1 AS INTEGER ) * + col2 FROM tab1 cor0
----
-1425
-324
-5856

query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL - 75 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT DISTINCT 39 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2103
3434
8138

query I rowsort
SELECT + - 9 + col0 * col1 AS col1 FROM tab1 AS cor0
----
1031
631
69

query I rowsort
SELECT ALL - - 55 AS col0 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT + - col2 * col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7114
SELECT + col1 * col2 + + ( - ( col0 ) ) DIV + ( - col2 ) + cor0.col2 FROM tab0 AS cor0
----
133
2871
7545

skipif mysql # not compatible
query I rowsort label-7114
SELECT + col1 * col2 + + ( - ( col0 ) ) / + ( - col2 ) + cor0.col2 FROM tab0 AS cor0
----
133
2871
7545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + ( + col1 ) col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT ALL + col1 + - col2 * - 97 FROM tab1 AS cor0
----
5264
5539
9325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col2 col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 * + col1 * col1 - col2 col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-7119
SELECT + 37 DIV cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7119
SELECT + 37 / cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + 15 * + col2 AS col0 FROM tab1
----
1440
810
855

query I rowsort
SELECT - col1 * tab0.col1 - col1 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT col0 - + tab1.col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT + + 1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT cor0.col2 * - 10 + - col2 AS col1 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT col0 + 60 FROM tab2 AS cor0
----
138
139
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col0 FROM tab0, tab0 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL - 85 * cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 59974cdb875dc2b02b24b24871e7ec14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7128
SELECT cor0.col2 * CAST( col0 AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-7128
SELECT cor0.col2 * CAST ( col0 AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - col2 * col0 + ( col2 ) AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + + col0 * - ( + col2 ) * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7131
SELECT - col2 * + CAST( - col0 AS SIGNED ) FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-7131
SELECT - col2 * + CAST ( - col0 AS INTEGER ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - col0 - - col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + - 53 * - col1 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT DISTINCT + col2 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7135
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7136
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + + col2 col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - tab1.col0 + col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 2 * - 56 AS col1 FROM tab0
----
-112
-112
-112

query I rowsort
SELECT ALL + ( + 16 ) * + col2 + col2 AS col0 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT DISTINCT 29 * col1 AS col1 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT DISTINCT - + col2 + 57 FROM tab2 AS cor0
----
19
30
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7142
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 * + col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 * + col1 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7143
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 * cor0.col2 + CAST( col0 + col0 AS SIGNED ) * - ( - col2 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 * cor0.col2 + CAST ( col0 + col0 AS INTEGER ) * - ( - col2 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7144
SELECT ALL - CAST( - col0 AS SIGNED ) + col2 * + col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
26160
598525
70

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL - CAST ( - col0 AS INTEGER ) + col2 * + col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT - 9 * col1 AS col0 FROM tab0 AS cor0
----
-774
-819
-873

query I rowsort
SELECT - - 4 + col2 AS col2 FROM tab1 cor0
----
100
58
61

query I rowsort
SELECT col2 * - col2 + - 66 * + 19 - col1 AS col2 FROM tab0 AS cor0
----
-1352
-2429
-8069

query I rowsort
SELECT + cor0.col0 + col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT cor0.col2 + cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
9 values hashing to 8d15ca9b890db6bb93b9a05b04326ed3

query I rowsort
SELECT DISTINCT + + col1 + - ( 82 ) AS col2 FROM tab1 AS cor0
----
-56
-69
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-7151
SELECT ALL col1 DIV + ( col2 + col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL col1 / + ( col2 + col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 * + 86 + col0 AS col0 FROM tab2 cor0
----
2314
2329
3347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * - col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col2 * col2 * col2 FROM tab0 AS cor0
----
-1
-35937
-551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ( - col1 ) + 66 FROM tab2 cor0
----
35
49
7

query I rowsort
SELECT ALL + - 79 + - col2 AS col0 FROM tab2 AS cor0
----
-105
-106
-117

query I rowsort
SELECT ALL + cor0.col2 * col2 * - 52 AS col0 FROM tab2 AS cor0
----
-35152
-37908
-75088

query I rowsort
SELECT ALL - col1 + col2 + col2 AS col0 FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT + 68 * - col2 AS col1 FROM tab0 AS cor0
----
-2244
-5576
-68

query I rowsort
SELECT ALL + - 3 + - col1 FROM tab0 AS cor0
----
-100
-89
-94

query I rowsort
SELECT col0 * col1 + ( col2 ) AS col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) * - 54 AS col0 FROM tab0 AS cor0
----
-1296
-1890
-4806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7164
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 68 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 68 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 12 + - col1 + col0 * 32 AS col0 FROM tab2
----
205
2449
2523

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7166
SELECT DISTINCT CAST( - col0 AS SIGNED ) + col1 * - col2 + + col0 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + col1 * - col2 + + col0 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7167
SELECT ALL + CAST( NULL AS SIGNED ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + col2 * + 49 + + col1 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT + - 88 AS col0 FROM tab2 cor0
----
-88
-88
-88

query I rowsort
SELECT + col2 + + cor0.col2 + col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT col2 * tab1.col1 + 45 FROM tab1
----
1293
1449
615

query I rowsort
SELECT cor1.col2 * + 69 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b3ca073f7dfc7033ccbb2e2cf6ac7ec6

query I rowsort
SELECT + ( - col0 ) * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 91 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT ALL col2 - ( col0 ) FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT + 4 + 62 AS col2 FROM tab0 AS cor0
----
66

query I rowsort
SELECT - 75 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
525
5850
5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 - cor0.col2 col1 FROM tab1 AS cor0
----
-49
-52
-91

query I rowsort
SELECT DISTINCT 61 * col2 FROM tab2 cor0
----
1586
1647
2318

query I rowsort
SELECT col2 + - 2 + col1 * 55 AS col2 FROM tab0 AS cor0
----
4761
5085
5334

query I rowsort
SELECT DISTINCT + - 88 * 62 FROM tab1 AS cor0
----
-5456

query I rowsort
SELECT ALL + 56 + ( + col1 ) FROM tab2
----
115
73
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7183
SELECT + CAST( col2 AS SIGNED ) * + col0 + - col1 FROM tab0
----
-62
706
7207

skipif mysql # not compatible
query I rowsort label-7183
SELECT + CAST ( col2 AS INTEGER ) * + col0 + - col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + 70 * col1 + col1 FROM tab1
----
1846
710
923

onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT - col0 DIV + 24 - + col2 AS col2 FROM tab0 cor0
----
-2
-34
-85

skipif mysql # not compatible
query I rowsort label-7185
SELECT - col0 / + 24 - + col2 AS col2 FROM tab0 cor0
----
-2
-34
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7186
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 + col1 / + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 + col1 / + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 75 * + 30 + - col0 AS col1 FROM tab1 cor0
----
-2253
-2314
-2330

onlyif mysql # use DIV operator for integer division
query I rowsort label-7188
SELECT DISTINCT + cor0.col0 + col1 * col0 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-3360
-38
-9

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT + cor0.col0 + col1 * col0 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-3360
-38
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7189
SELECT DISTINCT - + CAST( ( + col2 ) AS SIGNED ) + 33 + + 98 FROM tab2 AS cor0
----
104
105
93

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - + CAST ( ( + col2 ) AS INTEGER ) + 33