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(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT DISTINCT - 82 + + 51 * 13 * + COUNT( * ) FROM tab1
----
1907

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT - 82 + + 51 * 13 * + COUNT ( * ) FROM tab1
----
1907

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL COUNT( * ) * + 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
288

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL COUNT ( * ) * + 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
288

query I rowsort
SELECT DISTINCT ( + ( + - col0 ) ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 + - col0 / - col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + ( - ( + + ( - - col0 ) ) ) FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT + + SUM( col1 ) col0 FROM tab0 cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6
SELECT + + SUM ( col1 ) col0 FROM tab0 cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7
SELECT - - 38 * - CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) * - - ( 8 ) AS col1 FROM tab1 AS cor0
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-7
SELECT - - 38 * - CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) * - - ( 8 ) AS col1 FROM tab1 AS cor0
----
NULL
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8
SELECT - col0 AS col1 FROM tab2 WHERE NOT - - CAST( + 69 AS SIGNED ) * - col0 / - 82 / col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-8
SELECT - col0 AS col1 FROM tab2 WHERE NOT - - CAST ( + 69 AS INTEGER ) * - col0 / - 82 / col0 >= NULL
----

query II rowsort
SELECT 8 AS col0, + col2 + - col0 * - 62 AS col0 FROM tab1
----
8
3258
8
5329
8
5710

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= col2 + - col0
----

query I rowsort
SELECT ALL 90 * + + col0 AS col2 FROM tab1
----
4590
7650
8190

query II rowsort
SELECT + col2, - 41 + 64 FROM tab1
----
59
23
68
23
96
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-13
SELECT DISTINCT + COUNT( * ) * - + ( + 40 ) + - 0 + - 59 DIV - 46 AS col1 FROM tab1 cor0
----
-119

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT + COUNT ( * ) * - + ( + 40 ) + - 0 + - 59 / - 46 AS col1 FROM tab1 cor0
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-14
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-14
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 22 * col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT + COUNT( * ) + - 78 + - SUM( - + col2 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-16
SELECT + COUNT ( * ) + - 78 + - SUM ( - + col2 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT ALL - 37 + ( - - MAX( col0 ) ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL - 37 + ( - - MAX ( col0 ) ) FROM tab2 AS cor0
----
38

query I rowsort
SELECT 31 + - 85 AS col1 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE - 41 = col0 / - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT ( + col0 ) DIV 52 col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-20
SELECT ( + col0 ) / 52 col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
0
1
1

query I rowsort
SELECT ALL + col0 + 11 AS col0 FROM tab0 AS cor0
----
108
26
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 79 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT DISTINCT + COUNT( * ) * + 12 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + COUNT ( * ) * + 12 FROM tab2
----
36

query I rowsort
SELECT ALL + col0 + + 71 * - + col1 * - col0 - + - col0 + - - col1 * + 54 FROM tab0
----
131025
7135
90669

query II rowsort
SELECT ALL - 98 AS col1, - col2 FROM tab1
----
-98
-59
-98
-68
-98
-96

query III rowsort
SELECT * FROM tab0 WHERE col0 <= - col0
----

query I rowsort
SELECT ( + col1 ) - + col0 AS col1 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-28
SELECT - ( + col1 ) * - CAST( NULL AS DECIMAL ) - - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 97 * + - 47 + col0 AS col2 FROM tab0 AS cor0
----
-4462
-4472
-4544

query I rowsort
SELECT + + 83 * - + col0 + - - col1 AS col0 FROM tab2 AS cor0
----
-3767
-5235
-6158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-31
SELECT DISTINCT - COUNT( ALL - CAST( - + col0 AS SIGNED ) ) DIV - - 8 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT - COUNT ( ALL - CAST ( - + col0 AS INTEGER ) ) / - - 8 AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT col1 AS col2, ( - - col0 ) AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT - col2 * col2 - col1 AS col2 FROM tab2 AS cor0
----
-1677
-3431
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + + COUNT( ALL col0 ) * + 84 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-34
SELECT + + COUNT ( ALL col0 ) * + 84 FROM tab2 AS cor0
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + col1 AS col1, col1 + + col2 col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 4 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ALL + - SUM( - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL + - SUM ( - col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT - col1 * + col1 * + col0 + - ( 64 ) FROM tab0 AS cor0
----
-161
-38431
-98479

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-40
SELECT ALL - 20 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + col1 col1 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + 71 * - col1 NOT BETWEEN + col2 AND - ( 21 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT ALL col2 DIV col0 * - col0 * col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL col2 / col0 * - col0 * col2 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + 93 * - 17 * + col2 AS col2, - 23 FROM tab0
----
-156519
-23
-15810
-23
-74307
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT - + COUNT( * ) AS col0 FROM tab2 WHERE NOT + 15 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-47
SELECT - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + 15 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 + col2 * col0 + - 98 + + 36 * + 48 AS col0 FROM tab0 AS cor0
----
11332
2382
2510

query I rowsort
SELECT - ( ( 20 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - - col2 FROM tab0 WHERE ( col2 IS NOT NULL )
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-51
SELECT + COUNT( * ) col0, + ( + COUNT( * ) ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-51
SELECT + COUNT ( * ) col0, + ( + COUNT ( * ) ) AS col1 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT + + MIN( DISTINCT - 94 ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-52
SELECT + + MIN ( DISTINCT - 94 ) FROM tab2 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-53
SELECT DISTINCT COUNT( * ) AS col1, - 67 FROM tab1 AS cor0
----
3
-67

skipif mysql # not compatible
query II rowsort label-53
SELECT DISTINCT COUNT ( * ) AS col1, - 67 FROM tab1 AS cor0
----
3
-67

query II rowsort
SELECT DISTINCT - 51 + - - 8 * + col0 AS col2, - 54 AS col0 FROM tab2 AS cor0
----
317
-54
461
-54
549
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-55
SELECT DISTINCT + + 62 DIV + 46 + col1 AS col1, 71 + col0 - - col1 FROM tab2 AS cor0
----
52
168
68
213
78
212

skipif mysql # not compatible
query II rowsort label-55
SELECT DISTINCT + + 62 / + 46 + col1 AS col1, 71 + col0 - - col1 FROM tab2 AS cor0
----
52
168
68
213
78
212

query I rowsort
SELECT ( col1 ) - + ( col1 ) * - col2 FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT 78 + + + 86 * 68 AS col0 FROM tab2
----
5926
5926
5926

query I rowsort
SELECT + - 62 - + 11 FROM tab2 WHERE col0 * col0 NOT IN ( - col1 + - col1 * 64, col2 )
----
-73
-73
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-59
SELECT ALL COUNT( * ) - - CAST( NULL AS SIGNED ) * + - COUNT( * ) + + MAX( DISTINCT + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL COUNT ( * ) - - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + + MAX ( DISTINCT + col0 ) FROM tab2
----
NULL

query I rowsort
SELECT 30 * + col2 + - col0 FROM tab0
----
1395
213
2873

query II rowsort
SELECT + col0 * - ( col1 ) * 24 - - - 88 + col1 + col2 + + - col0 * col1 * - 72 AS col1, col2 FROM tab1
----
20376
59
205323
68
34294
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT ALL + col1 * + + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + col1 * + + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - + col1 AND NULL
----

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

query I rowsort
SELECT ( + - 21 ) * - + col1 AS col0 FROM tab0 AS cor0
----
1701
21
441

query I rowsort
SELECT + 77 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= 19
----

query I rowsort
SELECT DISTINCT + - 26 * col2 FROM tab2 cor0
----
-1040
-1508
-598

query I rowsort
SELECT ALL - col0 * + + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT + col0 * 2 AS col1 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL 9 * + col1 AS col1 FROM tab2
----
459
603
693

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT 92 + + COUNT( * ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-70
SELECT 92 + + COUNT ( * ) FROM tab1
----
95

query I rowsort
SELECT ALL 76 * - + col0 AS col1 FROM tab2
----
-3496
-4864
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT MIN( ALL - col2 ) + + COUNT( * ) AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-72
SELECT MIN ( ALL - col2 ) + + COUNT ( * ) AS col2 FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-73
SELECT ALL col2 DIV - CAST( - - 38 AS SIGNED ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL col2 / - CAST ( - - 38 AS INTEGER ) FROM tab0
----
-1
-2
0

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

query II rowsort
SELECT ALL - 99, - col2 AS col0 FROM tab1 AS cor0
----
-99
-59
-99
-68
-99
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL COUNT( * ) AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL COUNT ( * ) AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + col1, col0 - + 72 FROM tab1 AS cor0
----
14
-21
47
19
5
13

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT DISTINCT + MAX( DISTINCT 14 ) col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-78
SELECT DISTINCT + MAX ( DISTINCT 14 ) col1 FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT ALL - 54 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL - 54 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 + - col1 + + col0 AS col1 FROM tab2 AS cor0
----
-28
-50
-53

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

query I rowsort
SELECT + col0 + 23 AS col2 FROM tab2 AS cor0
----
69
87
98

onlyif mysql # DIV for integer division: 
query I rowsort label-83
SELECT - + 94 + + 67 DIV - ( col1 ) AS col1 FROM tab2 AS cor0
----
-94
-95
-95

skipif mysql # not compatible
query I rowsort label-83
SELECT - + 94 + + 67 / - ( col1 ) AS col1 FROM tab2 AS cor0
----
-94
-95
-95

query I rowsort
SELECT + - col2 + col0 * - ( col1 ) AS col2 FROM tab0 cor0
----
-1262
-1837
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT col1 * + 61 + - col2 DIV col2 FROM tab0 AS cor0
----
1280
4940
60

skipif mysql # not compatible
query I rowsort label-85
SELECT col1 * + 61 + - col2 / col2 FROM tab0 AS cor0
----
1280
4940
60

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - ( + + col2 ) / col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN + col0 AND - + 38
----

query I rowsort
SELECT ALL + ( - 81 ) FROM tab0 WHERE NOT NULL IS NULL OR NOT NULL BETWEEN ( col1 ) + - 93 AND - col2 - ( - ( - - col0 ) ) + + - ( col1 ) * - 40 + col0
----

query I rowsort
SELECT ALL + col2 + + 69 AS col0 FROM tab1
----
128
137
165

query I rowsort
SELECT col1 * - col2 - col0 + - + col2 * + - col0 FROM tab0
----
-3117
573
9407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-91
SELECT ALL - AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-92
SELECT * FROM tab1 cor0 WHERE NOT col0 >= - ( - col1 ) + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-92
SELECT * FROM tab1 cor0 WHERE NOT col0 >= - ( - col1 ) + - CAST ( NULL AS REAL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT ALL + COUNT( + 69 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-94
SELECT ALL + COUNT ( + 69 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-95
SELECT + - 84 * + - col0 + - 0 + - + col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-95
SELECT + - 84 * + - col0 + - 0 + - + col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-96
SELECT * FROM tab1 AS cor0 WHERE NOT - 32 / CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-96
SELECT * FROM tab1 AS cor0 WHERE NOT - 32 / CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT 97 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
194
2124
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT - COUNT( * ) * COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-98
SELECT - COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 6 * + - 73 * 87 col1, + 90 AS col1 FROM tab0
----
-38106
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT DISTINCT col1 FROM tab2 WHERE NOT - CAST( col2 AS SIGNED ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT col1 FROM tab2 WHERE NOT - CAST ( col2 AS INTEGER ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL + MIN( col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL + MIN ( col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT COUNT( * ) * 54 AS col0 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-102
SELECT COUNT ( * ) * 54 AS col0 FROM tab2
----
162

query III rowsort
SELECT * FROM tab0 WHERE NOT - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT + 39 DIV - col1 AS col2 FROM tab0
----
-1
-39
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-105
SELECT + MAX( ALL col2 ) DIV + SUM( ALL col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-105
SELECT + MAX ( ALL col2 ) / + SUM ( ALL col2 ) FROM tab2
----
0

query I rowsort
SELECT - col2 + - col2 + col1 FROM tab0
----
-13
-197
1

query I rowsort
SELECT ALL + 75 + + 50 AS col1 FROM tab2 AS cor0
----
125
125
125

query I rowsort
SELECT - col1 + + col0 * + + col0 FROM tab0 AS cor0
----
144
7548
9408

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + + col1 - - col1 * - col1 col1 FROM tab2 AS cor0
----
-2629
-4498
-5966

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 30 AND NULL
----

query I rowsort
SELECT col2 + - 37 FROM tab1 cor0
----
22
31
59

query I rowsort
SELECT DISTINCT col2 - - 67 * - - col0 FROM tab2 AS cor0
----
3105
4328
5083

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + - 34 + + col2 IS NULL
----

query I rowsort
SELECT + col1 + - col0 + - + col0 AS col1 FROM tab1
----
-135
-165
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT DISTINCT + COUNT( * ) * + 78 * + COUNT( * ) * - 66 AS col1 FROM tab0
----
-46332

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT + COUNT ( * ) * + 78 * + COUNT ( * ) * - 66 AS col1 FROM tab0
----
-46332

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT DISTINCT + + MAX( DISTINCT - + 64 ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT + + MAX ( DISTINCT - + 64 ) FROM tab1 AS cor0
----
-64

query I rowsort
SELECT + 9 * - col0 + col0 + 93 AS col0 FROM tab0 cor0
----
-27
-603
-683

query I rowsort
SELECT + - col1 FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-121
SELECT + col0, - col2 - + CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-121
SELECT + col0, - col2 - + CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + 87 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) + - col2 FROM tab2 AS cor0 WHERE ( + col1 IS NULL )
----

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

query I rowsort
SELECT DISTINCT 78 + - 35 AS col1 FROM tab2 AS cor0
----
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 - 68 / col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - + 83 AS col2 FROM tab1 AS cor0
----
-32
2
8

query I rowsort
SELECT + col1 * + 98 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IN ( - col1, + col2 * col1 )
----
-1
2048
7891

query I rowsort
SELECT col1 + - 52 FROM tab1 AS cor0
----
-38
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL + 29 + - + COUNT( * ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + 29 + - + COUNT ( * ) FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT + 40 + + COUNT( * ) AS col0 FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-130
SELECT + 40 + + COUNT ( * ) AS col0 FROM tab2 cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-131
SELECT + col1 * + col2 + - + 97 - - col1 + - col1 * + + col0 * col2 DIV CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
1975
628
7423

skipif mysql # not compatible
query I rowsort label-131
SELECT + col1 * + col2 + - + 97 - - col1 + - col1 * + + col0 * col2 / CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
1975
628
7423

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

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT + col1 DIV - col2 + - + col1 col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-133
SELECT + col1 / - col2 + - + col1 col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT col1 * - CAST( NULL AS SIGNED ) + - + 78 + col1 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + 34 * + col2 FROM tab0
----
1598
3366
340

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-136
SELECT ALL - ( + + col2 ), + 40 col1 FROM tab2 WHERE NOT CAST( 70 AS SIGNED ) + ( 95 ) * + 59 * col2 IS NULL
----
-23
40
-40
40
-58
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-136
SELECT ALL - ( + + col2 ), + 40 col1 FROM tab2 WHERE NOT CAST ( 70 AS INTEGER ) + ( 95 ) * + 59 * col2 IS NULL
----
-23
40
-40
40
-58
40

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT + + MAX( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-137
SELECT + + MAX ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT ALL - MAX( DISTINCT + col1 ) * + 31 * - + 56 AS col1, COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 + 3 + ( - + col1 ) IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL - MAX ( DISTINCT + col1 ) * + 31 * - + 56 AS col1, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 + 3 + ( - + col1 ) IS NOT NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT DISTINCT - - COUNT( DISTINCT - 39 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-139
SELECT DISTINCT - - COUNT ( DISTINCT - 39 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query II rowsort
SELECT - col0 * + + col0 + + 71 AS col0, col2 * - 52 AS col2 FROM tab1
----
-2530
-4992
-7154
-3068
-8210
-3536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-141
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 97 - + - col1 + + + col0 AS col0 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-142
SELECT DISTINCT * FROM tab2 WHERE NOT ( 17 * - col0 * + col0 / + 66 * col2 - CAST( col2 AS SIGNED ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-142
SELECT DISTINCT * FROM tab2 WHERE NOT ( 17 * - col0 * + col0 / + 66 * col2 - CAST ( col2 AS INTEGER ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT + - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-143
SELECT + - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT 48 * - 68 AS col2 FROM tab2 AS cor0
----
-3264
-3264
-3264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col0, - col2 + - 25 AS col1 FROM tab1 AS cor0
----
-14
-121
-47
-93
-5
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT + MAX( + 83 ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-146
SELECT + MAX ( + 83 ) FROM tab1 AS cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-147
SELECT ALL + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT DISTINCT - ( + 52 ) * + COUNT( * ) AS col0 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT - ( + 52 ) * + COUNT ( * ) AS col0 FROM tab2
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 89 < + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + - col1 / - col1 + + 37 + - - 4 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-151
SELECT CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-151
SELECT CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-152
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col0 * - CAST( NULL AS SIGNED ) * 92 AND ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-152
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col0 * - CAST ( NULL AS INTEGER ) * 92 AND ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-153
SELECT ALL + col2 DIV - col2 col0 FROM tab0
----
-1
-1
-1

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

query I rowsort
SELECT ALL col2 * + - 44 FROM tab1
----
-2596
-2992
-4224

query II rowsort
SELECT col1, + col1 AS col2 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-156
SELECT 69 AS col1, + COUNT( * ) + + 64 * COUNT( * ) DIV MAX( - + ( 81 ) ) FROM tab0
----
69
1

skipif mysql # not compatible
query II rowsort label-156
SELECT 69 AS col1, + COUNT ( * ) + + 64 * COUNT ( * ) / MAX ( - + ( 81 ) ) FROM tab0
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT DISTINCT - ( - COUNT( 21 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-157
SELECT DISTINCT - ( - COUNT ( 21 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 12
----

query II rowsort
SELECT DISTINCT ( - - col2 ), col1 AS col2 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT + col1 * + - 26 FROM tab1
----
-1222
-130
-364

query I rowsort
SELECT ALL - col2 * - col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 68 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT DISTINCT - - 38 + + - MAX( ALL - - 24 ) + - 6 * + 3 * + 90 * - 46 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
223574

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT - - 38 + + - MAX ( ALL - - 24 ) + - 6 * + 3 * + 90 * - 46 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
223574

query II rowsort
SELECT + 26 AS col0, col2 + + 48 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
26
106
26
71
26
88

query I rowsort
SELECT ALL - 61 + col1 AS col2 FROM tab2 AS cor0
----
-10
16
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 79 + - 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-167
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT DISTINCT MIN( ALL + 54 ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT MIN ( ALL + 54 ) AS col0 FROM tab2
----
54

query I rowsort
SELECT ALL 99 + + - ( + + col2 ) + - - ( ( - col1 ) ) FROM tab0
----
-1
-29
68

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT DISTINCT col1 DIV col2 + + col1 + - + col2 FROM tab2
----
10
30
38

skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT col1 / col2 + + col1 + - + col2 FROM tab2
----
10
30
38

query I rowsort
SELECT 53 + 4 FROM tab1
----
57
57
57

query I rowsort
SELECT 61 + + + ( + - 27 ) FROM tab2
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT + col0 * + 57 + - col2 * col2 DIV + col0 FROM tab2
----
2611
3623
4231

skipif mysql # not compatible
query I rowsort label-173
SELECT + col0 * + 57 + - col2 * col2 / + col0 FROM tab2
----
2611
3623
4231

query I rowsort
SELECT 2 + + col1 AS col0 FROM tab2
----
53
69
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-175
SELECT ALL - + col1 + col1 / 80 * col2 - + - col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 76 + - 32 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT - col2 * + col2 * - + col2 * + col2 * + col2 + + col2 + + col0 FROM tab2 AS cor0
----
102400104
6436412
656356901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-178
SELECT DISTINCT COUNT( * ) DIV 4 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT COUNT ( * ) / 4 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-179
SELECT DISTINCT + 40 DIV SUM( 27 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT + 40 / SUM ( 27 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT 90 * col1 - col1 * 35 FROM tab1 WHERE NOT col1 * - 9 + col1 IN ( col1 * ( - col0 ) )
----
2585
275
770

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 77 ) NOT BETWEEN - col0 AND col2 + 48
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT DISTINCT + MAX( 8 ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT + MAX ( 8 ) AS col1 FROM tab2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT ALL - 58 DIV col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL - 58 / col0 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT col1 DIV - 53 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-185
SELECT col1 / - 53 AS col0 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 18 ) col1 FROM tab1
----
18
18
18

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT DISTINCT col1 DIV - 35 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT col1 / - 35 AS col2 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT DISTINCT col0 DIV col1 + 29 col0 FROM tab1
----
30
32
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-188
SELECT DISTINCT col0 / col1 + 29 col0 FROM tab1
----
30
32
46

query I rowsort
SELECT DISTINCT 44 * col1 - col1 * - col0 AS col1 FROM tab0
----
141
2751
4779

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE + col2 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IN ( 96 / + col1 + 0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-192
SELECT - CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-192
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT DISTINCT - COUNT( ALL col1 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT - COUNT ( ALL col1 ) AS col2 FROM tab1
----
-3

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 17 * col2 - col2 = ( 51 * + 77 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 74 * + 59 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-198
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) ) / col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-198
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT SUM( ALL col1 ) + 76 FROM tab2
----
271

skipif mysql # not compatible
query I rowsort label-199
SELECT SUM ( ALL col1 ) + 76 FROM tab2
----
271

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 26 > 47 + + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT COUNT( * ) + 60 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-201
SELECT COUNT ( * ) + 60 FROM tab0
----
63

query III rowsort
SELECT * FROM tab1 WHERE NOT 94 <= 58 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT + 60 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-203
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 60 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT MIN( DISTINCT - 56 ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-204
SELECT MIN ( DISTINCT - 56 ) FROM tab0
----
-56

query I rowsort
SELECT col2 + 2 FROM tab2
----
25
42
60

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL + MIN( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL + MIN ( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 44 col0 FROM tab1 AS cor0
----
2068
220
616

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

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT ALL - col1 DIV 53 FROM tab2 WHERE NOT col1 = ( ( ( col1 ) ) + + ( + col1 ) )
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - col1 / 53 FROM tab2 WHERE NOT col1 = ( ( ( col1 ) ) + + ( + col1 ) )
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-210
SELECT col2 DIV - col1 + col0 * - 89 col1 FROM tab2 AS cor0
----
-4094
-5696
-6675

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-210
SELECT col2 / - col1 + col0 * - 89 col1 FROM tab2 AS cor0
----
-4094
-5696
-6675

query I rowsort
SELECT DISTINCT + + col2 + col2 * + 40 FROM tab0 AS cor0
----
1927
4059
410

query I rowsort
SELECT col1 + - 93 FROM tab0 cor0
----
-12
-72
-92

query I rowsort
SELECT - - 88 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
1978
3456
5029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * col0 col1 FROM tab1 AS cor0
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0 WHERE + col0 BETWEEN - col1 AND col1
----
2

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0 WHERE + col0 BETWEEN - col1 AND col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-216
SELECT col0 DIV + col1 + 35 FROM tab2 AS cor0
----
35
35
36

skipif mysql # not compatible
query I rowsort label-216
SELECT col0 / + col1 + 35 FROM tab2 AS cor0
----
35
35
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT ALL - COUNT( * ) DIV SUM( 68 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL - COUNT ( * ) / SUM ( 68 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + col2 / - col0
----

query I rowsort
SELECT DISTINCT col2 + + - 67 FROM tab1
----
-8
1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT ALL 90 + SUM( + col1 ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL 90 + SUM ( + col1 ) FROM tab1
----
156

query III rowsort
SELECT * FROM tab1 WHERE ( col2 / - 36 ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-222
SELECT ALL - 4 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL - 4 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT ALL + MAX( - col0 ) col2 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-223
SELECT ALL + MAX ( - col0 ) col2 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT - 65 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-224
SELECT - 65 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT + col0 * + col1 - col2 * + col1 FROM tab0 AS cor0
----
-2
-2592
1617

query I rowsort
SELECT DISTINCT - 80 + - - 44 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT - 25 + + - col2 FROM tab2 AS cor0
----
-48
-65
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-228
SELECT ALL - + CAST( NULL AS SIGNED ) + - 40 + - 41 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT 38 + - - COUNT( * ) FROM tab0, tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-229
SELECT 38 + - - COUNT ( * ) FROM tab0, tab1 cor0
----
47

query I rowsort
SELECT - col0 * 91 AS col0 FROM tab2 WHERE NOT - col2 * 56 IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT - COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 * col1 * - 3 FROM tab2 AS cor0
----
13467
17787
7803

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 30 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL SUM( - ( + ( + - col0 ) ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL SUM ( - ( + ( + - col0 ) ) ) AS col1 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NULL >= + col0 * + col2 * col0 + col1
----
0

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NULL >= + col0 * + col2 * col0 + col1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-242
SELECT ALL - 84 DIV 72 * 56 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL - 84 / 72 * 56 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 * - 6 FROM tab2
----
-306
-402
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT DISTINCT 34 col2 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) - - 19 IS NULL
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-244
SELECT DISTINCT 34 col2 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) - - 19 IS NULL
----
34

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT col0 * col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT DISTINCT - COUNT( DISTINCT col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT - COUNT ( DISTINCT col0 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + - col1 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 = + col0 * - col1 + + 67 * + 66
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = 73 * + 66 * + 36
----

query I rowsort
SELECT - col1 * - + 14 FROM tab0 AS cor0
----
1134
14
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-254
SELECT ALL + CAST( NULL AS SIGNED ) + - + 56 * - COUNT( * ) - - 22 * + 73 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 56 * - COUNT ( * ) - - 22 * + 73 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT DISTINCT + 7 + + col0 DIV + col1 col0 FROM tab1 AS cor0
----
10
24
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-255
SELECT DISTINCT + 7 + + col0 / + col1 col0 FROM tab1 AS cor0
----
10
24
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT COUNT( * ) + 96 FROM tab2 AS cor0 WHERE 27 / - 10 NOT BETWEEN - 99 + - 39 AND ( - col2 )
----
99

skipif mysql # not compatible
query I rowsort label-257
SELECT COUNT ( * ) + 96 FROM tab2 AS cor0 WHERE 27 / - 10 NOT BETWEEN - 99 + - 39 AND ( - col2 )
----
99

query I rowsort
SELECT DISTINCT - col1 + - col2 * + col2 AS col1 FROM tab1 cor0
----
-3486
-4671
-9230

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 * - 44 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-260
SELECT DISTINCT 48 - + col0 * - - CAST( + - 97 AS SIGNED ) AS col1 FROM tab2 cor0
----
4510
6256
7323

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT 48 - + col0 * - - CAST ( + - 97 AS INTEGER ) AS col1 FROM tab2 cor0
----
4510
6256
7323

query I rowsort
SELECT col2 + - col0 + - - col1 + + col1 * col2 - + col2 FROM tab1 AS cor0
----
1307
215
3152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 4 * - 7 col1 FROM tab1
----
113
119
79

query I rowsort
SELECT ALL + 84 - - + 91 FROM tab1
----
175
175
175

query I rowsort
SELECT - 71 + + 95 FROM tab1
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT COUNT( DISTINCT + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT COUNT ( DISTINCT + col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + ( + 40 ) / col0 FROM tab0 WHERE ( - 66 BETWEEN NULL AND + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL - 93 + MAX( ALL col0 ) * - 34 AS col0 FROM tab1 cor0
----
-3187

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - 93 + MAX ( ALL col0 ) * - 34 AS col0 FROM tab1 cor0
----
-3187

query I rowsort
SELECT ALL 37 AS col0 FROM tab2 WHERE + - col0 IS NOT NULL
----
37
37
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-271
SELECT ALL - + COUNT( - + 57 ) DIV + - 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - + COUNT ( - + 57 ) / + - 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( 74, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 NOT IN ( + + 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT 82 DIV + col1 - + + col2 - - col1 FROM tab2 AS cor0
----
10
29
38

skipif mysql # not compatible
query I rowsort label-275
SELECT 82 / + col1 - + + col2 - - col1 FROM tab2 AS cor0
----
10
29
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-276
SELECT 15 col2, CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
15
NULL
15
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-276
SELECT 15 col2, CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
15
NULL
15
NULL

query II rowsort
SELECT + 71, - col2 AS col0 FROM tab1
----
71
-59
71
-68
71
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-278
SELECT + MAX( - ( + 45 ) ) AS col2, - 23 AS col2 FROM tab2
----
-45
-23

skipif mysql # not compatible
query II rowsort label-278
SELECT + MAX ( - ( + 45 ) ) AS col2, - 23 AS col2 FROM tab2
----
-45
-23

query I rowsort
SELECT DISTINCT - ( - 91 ) FROM tab0 cor0 WHERE NOT + 60 * - 20 IS NULL
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-280
SELECT + COUNT( + 84 ) * - MIN( DISTINCT col2 ) * + - CAST( NULL AS SIGNED ) - + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT 4 * + - COUNT( + col0 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-281
SELECT 4 * + - COUNT ( + col0 ) FROM tab2 AS cor0
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col1 AS col2 FROM tab2 cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL + ( col1 ) * + 32 * + + col0 + + ( col2 ) + col0 AS col1 FROM tab0 cor0
----
3300
38942
58561

query I rowsort
SELECT col0 + + + col1 AS col1 FROM tab1 cor0
----
138
65
90

onlyif mysql # DIV for integer division: 
query II rowsort label-286
SELECT ALL - col0 * + col0 AS col2, 45 DIV + 5 AS col0 FROM tab0 AS cor0
----
-225
9
-7569
9
-9409
9

skipif mysql # not compatible
query II rowsort label-286
SELECT ALL - col0 * + col0 AS col2, 45 / + 5 AS col0 FROM tab0 AS cor0
----
-225
9
-7569
9
-9409
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + col2 col2, + col2 + + col1 * - 89 AS col2 FROM tab2 AS cor0
----
117
-6813
125
-5905
74
-4516

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT ALL - 35 + - + COUNT( * ) col1 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-290
SELECT ALL - 35 + - + COUNT ( * ) col1 FROM tab1 AS cor0
----
-38

query I rowsort
SELECT ALL + col2 + - ( + 26 ) AS col1 FROM tab2 AS cor0
----
-3
14
32

query I rowsort
SELECT ALL - 31 FROM tab1 AS cor0 WHERE NULL NOT IN ( 7 * col2 * col2 + - - ( + 22 ) * col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT 55 * - + 7 * 51 FROM tab0
----
-19635

query I rowsort
SELECT 30 - + - col1 * 11 FROM tab1
----
184
547
85

query I rowsort
SELECT 77 - 24 AS col2 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query II rowsort label-299
SELECT ALL + + COUNT( * ), + ( + + SUM( ALL + col2 ) ) AS col0 FROM tab0 AS cor0
----
3
156

skipif mysql # not compatible
query II rowsort label-299
SELECT ALL + + COUNT ( * ), + ( + + SUM ( ALL + col2 ) ) AS col0 FROM tab0 AS cor0
----
3
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT + + 71 / ( + + ( + - col2 ) ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col2 col2 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-302
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL - COUNT( * ) * + + 69 FROM tab2 WHERE - col1 IS NOT NULL
----
-207

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - COUNT ( * ) * + + 69 FROM tab2 WHERE - col1 IS NOT NULL
----
-207

query I rowsort
SELECT + ( + - 67 ) AS col2 FROM tab2
----
-67
-67
-67

query I rowsort
SELECT - 42 * - 52 AS col0 FROM tab2 AS cor0
----
2184
2184
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT - - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT + 77 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-306
SELECT - - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT + 77 <> NULL
----
0

query II rowsort
SELECT col1 AS col2, col1 * - - col1 FROM tab0 AS cor0
----
1
1
21
441
81
6561

query II rowsort
SELECT 74, col0 FROM tab0 AS cor0
----
74
15
74
87
74
97

query II rowsort
SELECT - 24, col0 FROM tab2 AS cor0
----
-24
46
-24
64
-24
75

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL = col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL - col0 AS col2, 2 FROM tab0 cor0
----
-15
2
-87
2
-97
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 * + + col2 / + - 74 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT DISTINCT - 35 * + MAX( ALL col2 ) + + 58 col1 FROM tab1
----
-3302

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-314
SELECT DISTINCT - 35 * + MAX ( ALL col2 ) + + 58 col1 FROM tab1
----
-3302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT ALL 29 / CAST( NULL AS SIGNED ) + - COUNT( * ) + + 12 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-315
SELECT ALL 29 / CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 12 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-316
SELECT - CAST( NULL AS DECIMAL ) + - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 2 * - - col0 * - col2 * col2 + - + 44 + + col0 FROM tab2 AS cor0
----
204820
48670
504631

query I rowsort
SELECT ALL - col0 * 87 AS col1 FROM tab1
----
-4437
-7395
-7917

query I rowsort
SELECT col1 * col2 * + ( + - 61 ) FROM tab2
----
-187880
-237046
-71553

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - - 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 21 * 12 + - - 9 AS col1 FROM tab1 cor0
----
-243
-243
-243

query I rowsort
SELECT DISTINCT + - 1 - - 39 AS col1 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT + + 2 + - 49 AS col0 FROM tab0 AS cor0
----
-47

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE 54 IN ( - col1, col2 + - col2 * + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-325
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) * + 75 * - - 44 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-325
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 75 * - - 44 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL BETWEEN + col0 AND ( - 57 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT DISTINCT + - 60 * - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT + - 60 * - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 + ( - ( - col1 ) ) + + col1 * - + col0 FROM tab1
----
-4321
-505
-751

query I rowsort
SELECT DISTINCT col2 - col2 - col0 + + 75 + - - 80 * - col0 FROM tab0
----
-1140
-6972
-7782

query I rowsort
SELECT DISTINCT 26 * 50 + - col0 FROM tab1
----
1209
1215
1249

query I rowsort
SELECT ALL + col2 - + col0 + - col0 AS col2 FROM tab0
----
-164
-95
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-333
SELECT + CAST( NULL AS SIGNED ) + 28, + COUNT( * ) col2 FROM tab1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-333
SELECT + CAST ( NULL AS INTEGER ) + 28, + COUNT ( * ) col2 FROM tab1
----
NULL
3

query I rowsort
SELECT ALL + col1 * - col2 + - col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT SUM( col2 ) FROM tab1 cor0 WHERE NOT - 40 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-335
SELECT SUM ( col2 ) FROM tab1 cor0 WHERE NOT - 40 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT + + 95 DIV + - col0 - + col2 FROM tab2 cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-336
SELECT + + 95 / + - col0 - + col2 FROM tab2 cor0
----
-25
-41
-59

query I rowsort
SELECT 98 * - col1 * - 43 FROM tab1
----
198058
21070
58996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-338
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-338
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab1
----
NULL
3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT ( NULL IS NOT NULL ) )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-341
SELECT DISTINCT - 13 DIV - col1 - + + CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
7

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT - 13 / - col1 - + + CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 40 * - col0 + col1, + 55 + - col1 )
----

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

query I rowsort
SELECT col0 * + 44 + - 96 * col2 * 10 AS col1 FROM tab2 AS cor0
----
-20056
-35584
-52380

query II rowsort
SELECT DISTINCT + col1 AS col2, col2 / 56 * + 52 FROM tab0 WHERE NOT - - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT col0 DIV col1 * col1 * - 19 + col0 AS col1 FROM tab0
----
-1509
-1746
15

skipif mysql # not compatible
query I rowsort label-346
SELECT col0 / col1 * col1 * - 19 + col0 AS col1 FROM tab0
----
-1509
-1746
15

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col1, col0 * - col0 * col1 * - 81 ) AND + col0 * + + col0 * + 94 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-348
SELECT ALL CAST( + + col1 AS SIGNED ) col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-348
SELECT ALL CAST ( + + col1 AS INTEGER ) col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - + 14 * + + col2 AS col2 FROM tab1 AS cor0
----
-1344
-826
-952

query II rowsort
SELECT 79, - 98 AS col1 FROM tab0 AS cor0
----
79
-98
79
-98
79
-98

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

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

query I rowsort
SELECT ALL - + 9 + + col1 FROM tab0 AS cor0
----
-8
12
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-354
SELECT CAST( NULL AS SIGNED ) + + COUNT( col2 ) AS col0, + 8 FROM tab0 cor0 WHERE - col2 IS NULL
----
NULL
8

skipif mysql # not compatible
query II rowsort label-354
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( col2 ) AS col0, + 8 FROM tab0 cor0 WHERE - col2 IS NULL
----
NULL
8

query I rowsort
SELECT DISTINCT - 40 + + col0 FROM tab2 AS cor0
----
24
35
6

query II rowsort
SELECT - + col2 + + col1 AS col2, + 5 + col0 AS col2 FROM tab1 AS cor0
----
-21
96
-54
90
-82
56

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT DISTINCT + col0 * col1 DIV - + col2 AS col1 FROM tab0 AS cor0
----
-182
-25
0

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT + col0 * col1 / - + col2 AS col1 FROM tab0 AS cor0
----
-182
-25
0

query II rowsort
SELECT ALL col2 AS col2, + ( - + col1 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10
-21
47
-81
99
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * - + ( - col0 ) col0 FROM tab1 AS cor0
----
-1020
-1700
-1820

query I rowsort
SELECT ALL 95 + 80 + + + col2 FROM tab1 AS cor0
----
234
243
271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT DISTINCT - col2 + + col2 FROM tab2 AS cor0 WHERE NOT col1 / - CAST( col2 AS SIGNED ) * + + 70 * - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT - col2 + + col2 FROM tab2 AS cor0 WHERE NOT col1 / - CAST ( col2 AS INTEGER ) * + + 70 * - col0 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 / + - 59 AND NULL
----

query I rowsort
SELECT ALL col0 * + - 47 + - 0 + - col1 FROM tab0 AS cor0
----
-4110
-4560
-786

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL COUNT( * ) * 64 AS col2 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL COUNT ( * ) * 64 AS col2 FROM tab1
----
192

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - col2 col0 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT ALL 9 DIV + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL 9 / + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-369
SELECT ALL 64 col2, COUNT( * ) FROM tab1
----
64
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-369
SELECT ALL 64 col2, COUNT ( * ) FROM tab1
----
64
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT + - ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-371
SELECT + - ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT col1 * - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT DISTINCT + COUNT( * ) - COUNT( * ) + + 77 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) + + 77 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
77

query I rowsort
SELECT DISTINCT 96 * + + col0 AS col0 FROM tab2
----
4416
6144
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT 68 * + 44 * - COUNT( * ) AS col2 FROM tab2
----
-8976

skipif mysql # not compatible
query I rowsort label-375
SELECT 68 * + 44 * - COUNT ( * ) AS col2 FROM tab2
----
-8976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) / 64 col0 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT COUNT( * ) * + - 17 + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-144

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT COUNT ( * ) * + - 17 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT ALL - 50 DIV - + 99 * + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL - 50 / - + 99 * + col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-379
SELECT ALL ( + MIN( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL COUNT( col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL COUNT ( col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT - COUNT( ( - 80 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-381
SELECT - COUNT ( ( - 80 ) ) AS col0 FROM tab0 AS cor0
----
-3

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

query I rowsort
SELECT ALL col0 + + col1 - + - col2 * + col1 FROM tab0 AS cor0
----
197
318
3903

query I rowsort
SELECT DISTINCT + + col1 * - 2 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-385
SELECT ALL col0 DIV - CAST( col2 AS SIGNED ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL col0 / - CAST ( col2 AS INTEGER ) FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 17 * - 46 col1 FROM tab1
----
-10948
-36754
-3910

onlyif mysql # aggregate syntax: 
query II rowsort label-387
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-387
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab1
----
3
3

query I rowsort
SELECT - ( 56 ) + - + col1 * - col2 FROM tab1
----
1288
239
3140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-389
SELECT col1 * col0 + CAST( + ( - col0 ) AS SIGNED ) FROM tab2
----
2300
4864
4950

skipif mysql # not compatible
query I rowsort label-389
SELECT col1 * col0 + CAST ( + ( - col0 ) AS INTEGER ) FROM tab2
----
2300
4864
4950

query III rowsort
SELECT * FROM tab0 WHERE - 57 > NULL OR + col2 < col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - 95 AS col1 FROM tab2
----
-95
-95
-95

query II rowsort
SELECT col2 + + 93 AS col0, col0 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT + SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-393
SELECT + SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT - 58 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-395
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 63 + + col1 AS col1 FROM tab0 cor0
----
144
64
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - - col2 NOT BETWEEN 32 AND 77
----

query I rowsort
SELECT ALL - + ( + col2 ) + - 13 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-112
-23
-60

query I rowsort
SELECT ALL + - ( - 84 ) FROM tab2 AS cor0
----
84
84
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= 0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 25 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-402
SELECT + CAST( + + ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-402
SELECT + CAST ( + + ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 19 * 2 * col2 FROM tab0
----
1786
3762
380

query I rowsort
SELECT DISTINCT 23 + + col2 FROM tab1 WHERE NULL = + col1 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT - + COUNT( * ) * 92 AS col1 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-405
SELECT - + COUNT ( * ) * 92 AS col1 FROM tab0 AS cor0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT - + 26 * + 95 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL - 83 * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 1 * col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL - 83 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 1 * col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT 51 + + + COUNT( DISTINCT + 98 ) AS col2 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN + + 26 AND + 42
----
52

skipif mysql # not compatible
query I rowsort label-409
SELECT 51 + + + COUNT ( DISTINCT + 98 ) AS col2 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN + + 26 AND + 42
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT + - ( + col1 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-411
SELECT ALL 68 + + col1 * + 37 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT 0 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-412
SELECT 0 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 5 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
5
5
5

query I rowsort
SELECT col2 + + 95 AS col0 FROM tab2 cor0
----
118
135
153

query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

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

query I rowsort
SELECT DISTINCT - 9 * - 67 + + 32 + col0 AS col0 FROM tab0 AS cor0
----
650
722
732

query I rowsort
SELECT + col0 * + col2 + + + col1 AS col0 FROM tab0 AS cor0
----
786
891
9604

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( 57, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT - CAST( - 63 AS SIGNED ) FROM tab2
----
63
63
63

skipif mysql # not compatible
query I rowsort label-421
SELECT - CAST ( - 63 AS INTEGER ) FROM tab2
----
63
63
63

query I rowsort
SELECT 69 * col0 FROM tab1
----
3519
5865
6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-423
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - + col1 + - - col2 + col1 * + 50 AS col1 FROM tab2 AS cor0
----
5174
7897
9819

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - + col1 + - - col2 + col1 * + 50 AS col1 FROM tab2 AS cor0
----
5174
7897
9819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-424
SELECT DISTINCT - MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > - 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-426
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 - + col2 + + ( + 31 ) + ( - col2 ) * + - ( + CAST( NULL AS SIGNED ) ) + - - 18 / + col0 BETWEEN ( + - col2 * - - 43 ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-426
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 - + col2 + + ( + 31 ) + ( - col2 ) * + - ( + CAST ( NULL AS INTEGER ) ) + - - 18 / + col0 BETWEEN ( + - col2 * - - 43 ) AND - col0
----

query I rowsort
SELECT + col1 * ( + col2 ) + - + col0 AS col2 FROM tab1 cor0
----
1293
210
3105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-428
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-428
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col0 AS col0, + col1 AS col0 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab1 WHERE NOT 96 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col0, + col0 - - col1 FROM tab2
----
51
97
67
142
77
141

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT DISTINCT - + COUNT( + - col1 ) + - + COUNT( * ) + + ( - COUNT( * ) ) AS col1 FROM tab2 WHERE col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT - + COUNT ( + - col1 ) + - + COUNT ( * ) + + ( - COUNT ( * ) ) AS col1 FROM tab2 WHERE col2 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ( - + ( - + COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-433
SELECT ( - + ( - + COUNT ( * ) ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 col0, + 37, - col1 * col0 - 89 * - col2 col0 FROM tab2
----
9 values hashing to 930c264411af94e8bda34f7e666947ea

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT DISTINCT - + MAX( + - 75 ) AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT - + MAX ( + - 75 ) AS col1 FROM tab0 AS cor0
----
75

query II rowsort
SELECT 89 + col2, + col1 + - col2 AS col0 FROM tab1 cor0 WHERE NOT + 77 < NULL
----

query I rowsort
SELECT - - 29 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL - ( - - 72 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT DISTINCT - + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT - + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 + - + col1 - + + 90 * 62 * + col2 + + + ( 68 ) + - col1 * 93 AS col0 FROM tab1 cor0
----
-329617
-383743
-536914

query I rowsort
SELECT ALL + ( + + 71 ) + + 0 FROM tab1
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT COUNT( * ) * + - ( + COUNT( * ) ) + 95 AS col2 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-442
SELECT COUNT ( * ) * + - ( + COUNT ( * ) ) + 95 AS col2 FROM tab0
----
86

query II rowsort
SELECT ALL + col0 * 90 + col0 + - col1 AS col2, + 40 AS col1 FROM tab0
----
1284
40
7896
40
8826
40

query I rowsort
SELECT - col0 + 97 FROM tab2
----
22
33
51

query I rowsort
SELECT col0 * col2 + - col1 * - 91 + ( 18 ) * + col1 FROM tab0
----
3159
9534
9712

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT + COUNT( * ) + + + 23 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-446
SELECT + COUNT ( * ) + + + 23 FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT COUNT( * ) + - ( 24 ) AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-447
SELECT COUNT ( * ) + - ( 24 ) AS col2 FROM tab2
----
-21

query I rowsort
SELECT DISTINCT + 86 FROM tab0 AS cor0 WHERE NOT ( NOT col0 NOT BETWEEN + 35 AND NULL )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT DISTINCT + COUNT( ALL + 55 ) + + 78 * - COUNT( * ) col1 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-449
SELECT DISTINCT + COUNT ( ALL + 55 ) + + 78 * - COUNT ( * ) col1 FROM tab1 AS cor0
----
-231

query I rowsort
SELECT DISTINCT 87 - + col0 FROM tab2 AS cor0
----
12
23
41

query I rowsort
SELECT ALL ( - col1 ) - col1 + - col0 * - 61 FROM tab2
----
2704
3750
4441

query I rowsort
SELECT DISTINCT col2 - - 88 + + + col2 - - + 13 * - + 4 FROM tab1
----
154
172
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 13 ) col2 FROM tab2
----
13
13
13

query I rowsort
SELECT ALL 43 * 13 AS col0 FROM tab1 AS cor0
----
559
559
559

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT + 3 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL + + MAX( + - 95 ) AS col0 FROM tab0 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL + + MAX ( + - 95 ) AS col0 FROM tab0 cor0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 / 21 / + + 74 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT + 29 * + - COUNT( * ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-458
SELECT + 29 * + - COUNT ( * ) FROM tab2 AS cor0
----
-87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 93 + + + col0 IS NOT NULL
----

query I rowsort
SELECT 81 FROM tab1 AS cor0 WHERE NOT - col0 * + + ( - + 69 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT - COUNT( + - col2 ) * + COUNT( ALL + 70 ) * + COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-461
SELECT - COUNT ( + - col2 ) * + COUNT ( ALL + 70 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT DISTINCT CAST( + + col2 AS SIGNED ) AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT COUNT( * ) * SUM( ALL + 41 ) AS col0 FROM tab0, tab2 AS cor0 WHERE NOT + 39 * 51 IS NULL
----
3321

skipif mysql # not compatible
query I rowsort label-464
SELECT COUNT ( * ) * SUM ( ALL + 41 ) AS col0 FROM tab0, tab2 AS cor0 WHERE NOT + 39 * 51 IS NULL
----
3321

query I rowsort
SELECT ALL col2 * 79 AS col0 FROM tab1 AS cor0
----
4661
5372
7584

onlyif mysql # DIV for integer division: 
query II rowsort label-466
SELECT ALL col1 col2, 78 DIV col1 FROM tab1 AS cor0
----
14
5
47
1
5
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-466
SELECT ALL col1 col2, 78 / col1 FROM tab1 AS cor0
----
14
5
47
1
5
15

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT + COUNT( * ) * - MAX( DISTINCT - 87 ) AS col1 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-467
SELECT + COUNT ( * ) * - MAX ( DISTINCT - 87 ) AS col1 FROM tab2 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT + MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-468
SELECT + MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT COUNT( * ) * - + COUNT( * ) + - 35 * + + MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-534

skipif mysql # not compatible
query I rowsort label-469
SELECT COUNT ( * ) * - + COUNT ( * ) + - 35 * + + MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-470
SELECT - MIN( DISTINCT + - col0 ) DIV - 3 AS col2 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-470
SELECT - MIN ( DISTINCT + - col0 ) / - 3 AS col2 FROM tab2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT DISTINCT - MIN( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

query I rowsort
SELECT - + 99 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-475
SELECT COUNT( ALL - + ( col0 ) ) + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-475
SELECT COUNT ( ALL - + ( col0 ) ) + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + 80 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-477
SELECT + AVG ( - CAST( NULL AS SIGNED ) ) + + - 73 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + + 8 + ( ( col1 ) ) FROM tab1 AS cor0
----
13
22
55

query II rowsort
SELECT - + col1 + 21, - col1 AS col2 FROM tab1 cor0
----
-26
-47
16
-5
7
-14

query I rowsort
SELECT DISTINCT - ( - 10 ) - + col0 FROM tab2 AS cor0
----
-36
-54
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT - COUNT( - 5 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-481
SELECT - COUNT ( - 5 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 + - + col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT + col1 + col1 * - 33 FROM tab2 AS cor0
----
-1632
-2144
-2464

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE + col2 + 10 >= + - col2
----
-10
-47
-99

query I rowsort
SELECT ALL + col0 + + ( + 74 ) + + col0 FROM tab2
----
166
202
224

query I rowsort
SELECT DISTINCT - + 83 AS col1 FROM tab0 WHERE ( NOT - col0 - - col0 IN ( 98 + col2, 76 + - col0 ) ) OR NOT NULL IN ( - col0, - col2 )
----
-83

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

query I rowsort
SELECT + 6 - ( col0 ) FROM tab2
----
-40
-58
-69

query II rowsort
SELECT ALL + + ( + - col2 ) AS col1, col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - - col1 / col0 + + 19 + - + col0 AND + col2 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-490
SELECT ALL COUNT( * ) DIV 36 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL COUNT ( * ) / 36 FROM tab1
----
0

query II rowsort
SELECT ALL col2 / + 82 * + col0 AS col2, col1 AS col1 FROM tab0 cor0 WHERE + - 52 IS NULL AND - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-492
SELECT + ( + - col1 ) - col0 DIV 13 FROM tab2 cor0
----
-54
-72
-81

skipif mysql # not compatible
query I rowsort label-492
SELECT + ( + - col1 ) - col0 / 13 FROM tab2 cor0
----
-54
-72
-81

query I rowsort
SELECT + col0 * 87 + - col0 + - + 89 FROM tab0 AS cor0
----
1201
7393
8253

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-494
SELECT - - ( + + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT DISTINCT 12 DIV + 87 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT 12 / + 87 FROM tab2 AS cor0
----
0

query II rowsort
SELECT col1 * - 13, + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + - col0, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 >= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT DISTINCT + - ( + COUNT( * ) ) * + - ( - 51 ) AS col1 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT + - ( + COUNT ( * ) ) * + - ( - 51 ) AS col1 FROM tab1 AS cor0
----
-153

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

query I rowsort
SELECT ALL + ( - - col0 ) FROM tab0 WHERE ( - 93 ) IS NULL
----

query I rowsort
SELECT ALL ( + 70 ) AS col0 FROM tab0
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-504
SELECT * FROM tab1 AS cor0 WHERE NOT 56 + col0 - - ( - CAST( + 64 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-504
SELECT * FROM tab1 AS cor0 WHERE NOT 56 + col0 - - ( - CAST ( + 64 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-505
SELECT DISTINCT + + COUNT( * ) DIV + + 81 * + - SUM( ALL + ( + 10 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT + + COUNT ( * ) / + + 81 * + - SUM ( ALL + ( + 10 ) ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT - 70 * + + col2 + + - col1 - - col2 AS col0, col1 AS col0 FROM tab0 AS cor0
----
-3324
81
-6832
1
-711
21

query I rowsort
SELECT DISTINCT ( + + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

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

query II rowsort
SELECT col2 AS col2, - 90 FROM tab0
----
10
-90
47
-90
99
-90

query II rowsort
SELECT ALL + 55 + col0 * + ( + col1 ), col2 - + col1 * - ( - - 98 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col2 ) + - col2 - + col0 col0 FROM tab0 AS cor0
----
-107
-109
-295

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE 29 + - 29 IS NULL
----

query I rowsort
SELECT ALL 90 * + ( - 24 ) + - 88 AS col2 FROM tab1 AS cor0
----
-2248
-2248
-2248

query I rowsort
SELECT DISTINCT 79 + - 17 FROM tab1 AS cor0
----
62

query I rowsort
SELECT + 16 + col2 AS col1 FROM tab2
----
39
56
74

query I rowsort
SELECT 85 + + + 72 FROM tab1
----
157
157
157

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 > NULL
----

query I rowsort
SELECT col2 * 11 * col1 AS col0 FROM tab0
----
1089
2310
41877

onlyif mysql # aggregate syntax: 
query II rowsort label-519
SELECT DISTINCT - 88, SUM( ALL - 72 ) AS col0 FROM tab0 AS cor0
----
-88
-216

skipif mysql # not compatible
query II rowsort label-519
SELECT DISTINCT - 88, SUM ( ALL - 72 ) AS col0 FROM tab0 AS cor0
----
-88
-216

query I rowsort
SELECT ALL 20 * 63 * - col1 * + + 33 * + 8 FROM tab2 AS cor0
----
-16964640
-22286880
-25613280

query II rowsort
SELECT + + col0 AS col1, + col2 * 13 - - 28 FROM tab0 AS cor0
----
15
639
87
158
97
1315

query I rowsort
SELECT ALL col1 * + + 1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-523
SELECT MAX( ALL + + col2 ), COUNT( * ) AS col0 FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-523
SELECT MAX ( ALL + + col2 ), COUNT ( * ) AS col0 FROM tab0
----
99
3

query I rowsort
SELECT + 53 - 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL MAX( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL MAX ( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = col0
----
NULL

query I rowsort
SELECT DISTINCT col1 * col1 + - + 45 / + 37 FROM tab2 AS cor0 WHERE + 48 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-527
SELECT - + 15 * CAST( NULL AS SIGNED ) / + 49 AS col1, - col0 + - CAST( CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
-104
NULL
-133
NULL
-69

skipif mysql # not compatible
query II rowsort label-527
SELECT - + 15 * CAST ( NULL AS INTEGER ) / + 49 AS col1, - col0 + - CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
-104
NULL
-133
NULL
-69

query I rowsort
SELECT ALL col0 * - col1 * + - col1 FROM tab0 AS cor0
----
38367
97
98415

query I rowsort
SELECT + 69 * - col0 FROM tab0 cor0
----
-1035
-6003
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT DISTINCT COUNT( * ) * + 50 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT COUNT ( * ) * + 50 FROM tab0 AS cor0
----
150

query I rowsort
SELECT + col0 + - col1 + - 31 * col0 FROM tab0 AS cor0
----
-2631
-2911
-531

query I rowsort
SELECT + + col1 + + 99 FROM tab2 AS cor0
----
150
166
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-533
SELECT 68 DIV + COUNT( * ) AS col0 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-533
SELECT 68 / + COUNT ( * ) AS col0 FROM tab2
----
22

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col2 + 4 * col0 * col1 * 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 + 36 * - 79 col1 FROM tab0 AS cor0
----
-2899

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT SUM( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-537
SELECT SUM ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + 46 + + col2 * - col1 * - col0 FROM tab2 AS cor0
----
197166
291496
54004

query I rowsort
SELECT - ( - 51 ) AS col0 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT ( - 54 ) FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT - - 82 * + col0 FROM tab0 AS cor0
----
1230
7134
7954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-542
SELECT ALL CAST( - + COUNT( - ( - col0 ) ) AS SIGNED ) DIV ( - 70 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL CAST ( - + COUNT ( - ( - col0 ) ) AS INTEGER ) / ( - 70 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-543
SELECT DISTINCT - COUNT( * ) DIV + - ( + COUNT( * ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT - COUNT ( * ) / + - ( + COUNT ( * ) ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT DISTINCT 59 DIV + col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT 59 / + col1 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT + + ( + - COUNT( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-545
SELECT + + ( + - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - + col0 + + col2 * - - 55 FROM tab1 AS cor0
----
3160
3649
5229

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT DISTINCT - - 74 DIV + col2 + - 98 AS col1 FROM tab2 AS cor0
----
-95
-97

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT - - 74 / + col2 + - 98 AS col1 FROM tab2 AS cor0
----
-95
-97

query II rowsort
SELECT DISTINCT - - 48, col0 - col0 AS col1 FROM tab0 WHERE + 97 + + col0 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT DISTINCT 79 - COUNT( * ) + - COUNT( * ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT 79 - COUNT ( * ) + - COUNT ( * ) FROM tab2
----
73

query I rowsort
SELECT col1 * + col1 - 14 AS col1 FROM tab2
----
2587
4475
5915

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-552
SELECT - col1 * + 20 + col2, ( - CAST( + CAST( 39 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-552
SELECT - col1 * + 20 + col2, ( - CAST ( + CAST ( 39 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT ALL COUNT( + - ( + 50 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL COUNT ( + - ( + 50 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT ALL MAX( ( - 67 ) ) AS col2 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL MAX ( ( - 67 ) ) AS col2 FROM tab1
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, 98 col2 FROM tab1
----
-59
98
-68
98
-96
98

query I rowsort
SELECT col0 * + col0 * 0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT - MAX( - 41 ) AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-557
SELECT - MAX ( - 41 ) AS col2 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT DISTINCT - COUNT( DISTINCT ( 72 ) ) AS col1 FROM tab2 WHERE NOT col1 * col0 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT - COUNT ( DISTINCT ( 72 ) ) AS col1 FROM tab2 WHERE NOT col1 * col0 IS NULL
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-559
SELECT + CAST( NULL AS SIGNED ) + 1 AS col2, - 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to db3f889efefd3e58a771e2f5a64fe667

skipif mysql # not compatible
query II rowsort label-559
SELECT + CAST ( NULL AS INTEGER ) + 1 AS col2, - 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to db3f889efefd3e58a771e2f5a64fe667

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-560
SELECT DISTINCT + col2 * - + ( + col2 ) DIV CAST( - col2 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT + col2 * - + ( + col2 ) / CAST ( - col2 AS INTEGER ) FROM tab1
----
59
68
96

query II rowsort
SELECT - + 59 AS col2, - col2 FROM tab2 AS cor0
----
-59
-23
-59
-40
-59
-58

query II rowsort
SELECT DISTINCT + col0, + 80 * - - col1 AS col1 FROM tab0 AS cor0
----
15
6480
87
1680
97
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT - ( CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-563
SELECT - ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT ALL + ( - + 94 ) DIV + - col0 AS col0 FROM tab0 cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + ( - + 94 ) / + - col0 AS col0 FROM tab0 cor0
----
0
1
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT DISTINCT col1 + col0 + - CAST( - - col0 AS SIGNED ) + - 19 + - 10 AS col1 FROM tab0 AS cor0 WHERE NOT - 74 IS NULL
----
-28
-8
52

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT col1 + col0 + - CAST ( - - col0 AS INTEGER ) + - 19 + - 10 AS col1 FROM tab0 AS cor0 WHERE NOT - 74 IS NULL
----
-28
-8
52

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 BETWEEN NULL AND - - col2 * ( - col0 ) - - - col2 + - + col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + col1 * - 6 AS col1 FROM tab1
----
-1770
-19176
-8064

query I rowsort
SELECT - 69 * col2 FROM tab1
----
-4071
-4692
-6624

query I rowsort
SELECT ALL - col2 + - col1 + 56 FROM tab2 WHERE NOT - col1 IS NULL
----
-18
-61
-69

query I rowsort
SELECT 26 * 90 + + col0 FROM tab1
----
2391
2425
2431

query I rowsort
SELECT col2 + + col0 * + col0 FROM tab1
----
2697
7284
8349

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-573
SELECT + col1 + + CAST( - col1 AS SIGNED ) AS col0, + col2 * + col0 FROM tab2
----
0
1058
0
2560
0
4350

skipif mysql # not compatible
query II rowsort label-573
SELECT + col1 + + CAST ( - col1 AS INTEGER ) AS col0, + col2 * + col0 FROM tab2
----
0
1058
0
2560
0
4350

query II rowsort
SELECT col1, col1 * + col0 FROM tab0
----
1
97
21
1827
81
1215

query I rowsort
SELECT DISTINCT col0 - 12 AS col2 FROM tab2
----
34
52
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT ( NULL ) NOT BETWEEN NULL AND - col1 * - + ( - 13 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + + col1 ) IN ( - col2, + col1 * + + 54, - ( - col0 ), - - col1 + + 1 )
----
-3

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + + col1 ) IN ( - col2, + col1 * + + 54, - ( - col0 ), - - col1 + + 1 )
----
-3

query I rowsort
SELECT + col2 * col0 - - + col2 * col1 AS col2 FROM tab1 cor0
----
5310
6240
9384

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT - - 64 + + - ( CAST( NULL AS SIGNED ) ) - - col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + 15 + + col2 FROM tab0 AS cor0
----
114
25
62

query I rowsort
SELECT ALL - col1 + col0 + col0 * + - ( col2 ) FROM tab1 cor0
----
-4859
-4935
-6144

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE ( - + col2 IS NOT NULL )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT - + 44 + - - MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - + 44 + - - MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
14

query I rowsort
SELECT ALL 40 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( - 31 ) col2 FROM tab0
----
112
32
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT DISTINCT CAST( ( 33 ) AS SIGNED ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT CAST ( ( 33 ) AS INTEGER ) FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ALL ( + - MIN( ALL 89 ) ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL ( + - MIN ( ALL 89 ) ) FROM tab2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT DISTINCT ( - - SUM( + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE + 74 IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT ( - - SUM ( + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE + 74 IS NOT NULL
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-590
SELECT ALL - ( COUNT( * ) ), ( COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-590
SELECT ALL - ( COUNT ( * ) ), ( COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-591
SELECT + 80 * 38 + + col2 + - - col0 * 69 - col0 + - col1 / - col2 * 45 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-591
SELECT + 80 * 38 + + col2 + - - col0 * 69 - col0 + - col1 / - col2 * 45 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-592
SELECT - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-592
SELECT - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT - col2 DIV - - col0 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-593
SELECT - col2 / - - col0 col1 FROM tab2
----
0
0
0

query II rowsort
SELECT - col2 AS col1, ( + - ( - - 47 ) ) FROM tab0
----
-10
-47
-47
-47
-99
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 93 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col2 NOT IN ( + - col2 + + 12 )
----

query I rowsort
SELECT ALL ( + - col1 ) * + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 25 AS col2 FROM tab1 cor0
----
25

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT 35 + + 27 FROM tab0 AS cor0
----
62

query II rowsort
SELECT - col0 AS col1, col0 + - col2 AS col2 FROM tab1
----
-51
-45
-85
26
-91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT - MIN( - + col2 ) * + COUNT( * ) AS col2 FROM tab0 WHERE NOT + 87 BETWEEN NULL AND - col2 + - col1
----
297

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT - MIN ( - + col2 ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 87 BETWEEN NULL AND - col2 + - col1
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 28, + 58 + + col0 col0 FROM tab1
----
28
109
28
143
28
149

query II rowsort
SELECT DISTINCT + col2 * - col2 AS col1, col0 AS col0 FROM tab1
----
-3481
85
-4624
91
-9216
51

onlyif mysql # aggregate syntax: 
query II rowsort label-605
SELECT ALL COUNT( * ) AS col2, 14 AS col2 FROM tab2
----
3
14

skipif mysql # not compatible
query II rowsort label-605
SELECT ALL COUNT ( * ) AS col2, 14 AS col2 FROM tab2
----
3
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-606
SELECT ALL AVG ( DISTINCT - - 40 ) + - CAST( NULL AS SIGNED ) + + MIN( 41 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL AVG ( DISTINCT - - 40 ) + - CAST ( NULL AS INTEGER ) + + MIN ( 41 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-607
SELECT - col2 DIV + - col2 FROM tab2 AS cor0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT 76 + - SUM( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-608
SELECT 76 + - SUM ( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0
----
179

onlyif mysql # aggregate syntax: 
query II rowsort label-609
SELECT + MIN( DISTINCT 51 ) + + 18 AS col2, - COUNT( * ) FROM tab0
----
69
-3

skipif mysql # not compatible
query II rowsort label-609
SELECT + MIN ( DISTINCT 51 ) + + 18 AS col2, - COUNT ( * ) FROM tab0
----
69
-3

query I rowsort
SELECT ALL + col1 * + 94 AS col0 FROM tab0
----
1974
7614
94

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

query II rowsort
SELECT DISTINCT 78 - + - col1 AS col0, col0 AS col0 FROM tab0
----
159
15
79
97
99
87

query I rowsort
SELECT ALL - ( - 40 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT DISTINCT + + 50 DIV 83 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT + + 50 / 83 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-615
SELECT + + ( CAST( NULL AS SIGNED ) ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL COUNT( + 29 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL COUNT ( + 29 ) FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-618
SELECT + - COUNT( - - 1 ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-618
SELECT + - COUNT ( - - 1 ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-619
SELECT ALL + CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL + CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT ALL + ( + 14 ) AS col1 FROM tab0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-621
SELECT DISTINCT - col1 + + - CAST( NULL AS SIGNED ) + + ( + 74 ) + + + ( - col0 ) / 3 FROM tab2 WHERE NULL NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT - col1 + + - CAST ( NULL AS INTEGER ) + + ( + 74 ) + + + ( - col0 ) / 3 FROM tab2 WHERE NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT MAX( - 70 ) AS col1 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-622
SELECT MAX ( - 70 ) AS col1 FROM tab1
----
-70

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-624
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - col2 * 1 < - CAST( 62 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-624
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * - col2 * 1 < - CAST ( 62 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT COUNT( * ) AS col1, 62 + - + MIN( DISTINCT - - ( 80 ) ) AS col0 FROM tab2 AS cor0
----
3
-18

skipif mysql # not compatible
query II rowsort label-625
SELECT COUNT ( * ) AS col1, 62 + - + MIN ( DISTINCT - - ( 80 ) ) AS col0 FROM tab2 AS cor0
----
3
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT - 43 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-626
SELECT - 43 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT DISTINCT + 10 + COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT + 10 + COUNT ( * ) FROM tab1
----
13

query I rowsort
SELECT 84 * 33 - + 99 FROM tab0
----
2673
2673
2673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT ALL col0 + CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL col0 + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL MAX( + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL MAX ( + col2 ) AS col2 FROM tab0
----
99

query I rowsort
SELECT col0 * 82 + 92 * + col1 FROM tab0
----
8046
8682
9066

query I rowsort
SELECT - 28 AS col0 FROM tab0 WHERE + ( 74 ) = 90 * col0
----

query I rowsort
SELECT ALL + col1 + col0 * + col0 AS col2 FROM tab1
----
2615
7230
8328

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT + col0 = ( - col0 - - col0 )
----
-51
-67
-77

query I rowsort
SELECT - 11 AS col0 FROM tab2 WHERE ( 61 * + col1 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-636
SELECT ALL CAST( NULL AS SIGNED ) * 88 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL CAST ( NULL AS INTEGER ) * 88 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 98 + - col2 FROM tab0
----
-1
51
88

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL 22 * + col2 FROM tab2
----
1276
506
880

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab1 WHERE NOT 24 IS NULL
----
33

query I rowsort
SELECT ALL + col2 * - col2 AS col0 FROM tab1 WHERE NOT + col2 = 88
----
-3481
-4624
-9216

query I rowsort
SELECT ALL - 71 * 58 FROM tab1
----
-4118
-4118
-4118

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * + 60 - - ( - 30 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT - ( COUNT( * ) ) * + MIN( - col0 * col2 ) FROM tab2
----
13050

skipif mysql # not compatible
query I rowsort label-645
SELECT - ( COUNT ( * ) ) * + MIN ( - col0 * col2 ) FROM tab2
----
13050

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL - 19 + - COUNT( * ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - 19 + - COUNT ( * ) AS col2 FROM tab2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT + ( + 89 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + 5 * - ( - col0 ) - + 44 AS col1 FROM tab1
----
211
381
411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-649
SELECT CAST( NULL AS SIGNED ) * + 56 + col0 col1 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col0 * 29 AS col1 FROM tab2
----
1334
1856
2175

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT DISTINCT - 60 DIV col1 FROM tab1
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT - 60 / col1 FROM tab1
----
-1
-12
-4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 72 / col0 ) < + ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-653
SELECT + col2 / + 55 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN ( col0 * 7 ) AND NULL
----

query I rowsort
SELECT ALL 80 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT - 89 + col2 DIV + 79 FROM tab1 cor0
----
-88
-89
-89

skipif mysql # not compatible
query I rowsort label-656
SELECT - 89 + col2 / + 79 FROM tab1 cor0
----
-88
-89
-89

query I rowsort
SELECT DISTINCT + col0 - 42 * col2 FROM tab0 AS cor0 WHERE NOT 40 / + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 5 FROM tab1 cor0
----
56
90
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL SUM( col0 ) - COUNT( * ) AS col2 FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL SUM ( col0 ) - COUNT ( * ) AS col2 FROM tab1
----
224

query I rowsort
SELECT + 44 - 93 FROM tab0
----
-49
-49
-49

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE ( NULL ) = + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT + COUNT( - col2 ) - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT + COUNT ( - col2 ) - - COUNT ( * ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * col1 - - col1 col1 FROM tab1
----
2209
235
658

query I rowsort
SELECT ALL 63 * 31 FROM tab0
----
1953
1953
1953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col2 FROM tab0 cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * - col1 + 8 * - 13 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT DISTINCT - 79 DIV + 80 AS col0 FROM tab2 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-669
SELECT col0 + col0 * col1 col1 FROM tab1 AS cor0 WHERE NOT - col2 * + 55 NOT IN ( - col0 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-669
SELECT col0 + col0 * col1 col1 FROM tab1 AS cor0 WHERE NOT - col2 * + 55 NOT IN ( - col0 / CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-670
SELECT + 95 DIV COUNT( * ) FROM tab0 cor0
----
31

skipif mysql # not compatible
query I rowsort label-670
SELECT + 95 / COUNT ( * ) FROM tab0 cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL + + MAX( ALL - col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL + + MAX ( ALL - col0 ) AS col0 FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT + + 6 * ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col2 * + 30 AS col1 FROM tab2
----
-1200
-1740
-690

query I rowsort
SELECT DISTINCT + 30 * - 37 FROM tab1
----
-1110

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN 63 AND ( 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + 34 FROM tab0
----
-1598
-3366
-340

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / + col0 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * col0 AS col0 FROM tab1 WHERE col2 / + col2 NOT BETWEEN ( + col1 ) AND NULL
----
425
4277
714

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

query I rowsort
SELECT + ( + + col1 ) * 48 FROM tab2 AS cor0
----
2448
3216
3696

query I rowsort
SELECT DISTINCT + 46 + col1 AS col0 FROM tab1 AS cor0
----
51
60
93

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT 4 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-682
SELECT 4 / col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ALL - SUM( ALL + ( - col0 ) ) * - COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL - SUM ( ALL + ( - col0 ) ) * - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col0 IN ( col2 ) )
----

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

query I rowsort
SELECT + col0 * + col2 + + col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT DISTINCT - + col1 + + - 60 FROM tab0 AS cor0
----
-141
-61
-81

query I rowsort
SELECT - 90 + - + col1 FROM tab0 cor0
----
-111
-171
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT + + 57 DIV - 87 + col0 AS col2 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-690
SELECT + + 57 / - 87 + col0 AS col2 FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT + col1, - col2 AS col0 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-693
SELECT col2 * + 75 + col2 + 83 DIV col0 AS col1 FROM tab1 AS cor0
----
4484
5168
7297

skipif mysql # not compatible
query I rowsort label-693
SELECT col2 * + 75 + col2 + 83 / col0 AS col1 FROM tab1 AS cor0
----
4484
5168
7297

query I rowsort
SELECT ALL col2 + - - ( col2 ) FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT - ( - COUNT( ALL - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-695
SELECT - ( - COUNT ( ALL - col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + - 50 FROM tab1 AS cor0 WHERE - 10 / 68 + 58 * 55 <= + col1
----
-50

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + - 50 FROM tab1 AS cor0 WHERE - 10 / 68 + 58 * 55 <= + col1
----
-50

query I rowsort
SELECT DISTINCT col2 + - - col0 AS col0 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col2 * 77 + + col2 < ( col2 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT CAST( - col2 AS SIGNED ) * col2 + col1 AS col1 FROM tab0 WHERE + - col1 * + + 39 - col2 > - col1
----

skipif mysql # not compatible
query I rowsort label-700
SELECT CAST ( - col2 AS INTEGER ) * col2 + col1 AS col1 FROM tab0 WHERE + - col1 * + + 39 - col2 > - col1
----

query I rowsort
SELECT ALL + + 72 * - col1 AS col2 FROM tab0 WHERE NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 19 >= col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 76 AS col0 FROM tab0 WHERE - col2 / + col2 NOT BETWEEN NULL AND ( - 69 )
----
76
76
76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 / col0 col0 FROM tab0 WHERE + 9 + - 7 < NULL
----

query I rowsort
SELECT - 16 FROM tab0 WHERE 29 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL - 70 * COUNT( * ) AS col1 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL - 70 * COUNT ( * ) AS col1 FROM tab1
----
-210

query I rowsort
SELECT ALL col2 + 64 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - ( col0 ) AND ( col1 * - 50 + - 77 / + 2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 41 ) col2 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT + ( + col0 ) - - col1 AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT - col2 + + col0 + - - col2 DIV - col0 AS col0 FROM tab1 cor0
----
-46
23
26

skipif mysql # not compatible
query I rowsort label-711
SELECT - col2 + + col0 + - - col2 / - col0 AS col0 FROM tab1 cor0
----
-46
23
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-712
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL > ( col1 / ( + + col1 ) * + CAST( col0 AS SIGNED ) + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > ( col1 / ( + + col1 ) * + CAST ( col0 AS INTEGER ) + col2 )
----
0

query I rowsort
SELECT + 25 + + ( col0 ) FROM tab1 cor0
----
110
116
76

query I rowsort
SELECT 36 + - + col2 * + col0 AS col2 FROM tab2
----
-1022
-2524
-4314

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 69 ) NOT IN ( + 95 )
----

query II rowsort
SELECT - ( + col1 ) * + col1 AS col1, 64 * 16 AS col0 FROM tab2 AS cor0
----
-2601
1024
-4489
1024
-5929
1024

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 70 - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-718
SELECT DISTINCT + + 81 AS col0, + COUNT( * ) col1 FROM tab0 AS cor0
----
81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-718
SELECT DISTINCT + + 81 AS col0, + COUNT ( * ) col1 FROM tab0 AS cor0
----
81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT + COUNT( * ) * - 14 AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-719
SELECT + COUNT ( * ) * - 14 AS col0 FROM tab0 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-720
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 * CAST( + 56 AS SIGNED ) ) NOT BETWEEN col0 AND + col2 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-720
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 * CAST ( + 56 AS INTEGER ) ) NOT BETWEEN col0 AND + col2 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT + 61 DIV - 93 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-721
SELECT + 61 / - 93 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL MIN( 40 ) AS col0 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL MIN ( 40 ) AS col0 FROM tab1 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-723
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + CAST( NULL AS SIGNED ) <= + col0
----

skipif mysql # not compatible
query III rowsort label-723
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) <= + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < 53
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-725
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 67 NOT IN ( + + CAST( NULL AS SIGNED ) + - 32 + + + col2 )
----

skipif mysql # not compatible
query III rowsort label-725
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 67 NOT IN ( + + CAST ( NULL AS INTEGER ) + - 32 + + + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 * + col1 * 50 col0 FROM tab0
----
-279450
-3450
-72450

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT ALL + col1 DIV - 37 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL + col1 / - 37 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-729
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 22, - 22 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-729
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 22, - 22 + + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 * + + 90 * + col2 col2 FROM tab2
----
-21344400
-23432580
-5384070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT ALL + 42 / - ( col1 ) * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-732
SELECT ALL COUNT( * ) AS col1, 2 AS col2 FROM tab0
----
3
2

skipif mysql # not compatible
query II rowsort label-732
SELECT ALL COUNT ( * ) AS col1, 2 AS col2 FROM tab0
----
3
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 90 ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - ( 11 ) * - - col1 FROM tab1
----
-154
-517
-55

query II rowsort
SELECT - col1, - col2 AS col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-737
SELECT + CAST( + ( - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-737
SELECT + CAST ( + ( - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL + col1 + ( - col0 ) * + col1 AS col1 FROM tab0 cor0
----
-1134
-1806
-96

query I rowsort
SELECT ALL - 75 + + 16 AS col1 FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT + + COUNT( * ) * - 41 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-369

skipif mysql # not compatible
query I rowsort label-740
SELECT + + COUNT ( * ) * - 41 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-369

query I rowsort
SELECT DISTINCT + + col0 + + - 78 FROM tab1 AS cor0
----
-27
13
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <> + + 78
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + col0
----

query I rowsort
SELECT ALL + 65 + + col1 AS col1 FROM tab0 AS cor0
----
146
66
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-745
SELECT * FROM tab1 AS cor0 WHERE ( - col1 + + col1 + + ( + CAST( + col1 AS SIGNED ) ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-745
SELECT * FROM tab1 AS cor0 WHERE ( - col1 + + col1 + + ( + CAST ( + col1 AS INTEGER ) ) ) = NULL
----

query I rowsort
SELECT 10 + + col1 + - - col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 - + 42 FROM tab1
----
-127
-133
-93

query I rowsort
SELECT + col0 + - - 99 FROM tab2
----
145
163
174

query I rowsort
SELECT ALL 97 + + + 85 * + 11 FROM tab2
----
1032
1032
1032

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT DISTINCT - 77 DIV + 85 - col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT - 77 / + 85 - col0 AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + 26 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL + + ( - + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL + + ( - + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

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

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

query I rowsort
SELECT col2 * - - 25 * - col0 - - + col2 * 55 FROM tab1 AS cor0 WHERE NOT col2 = + col2
----

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

query I rowsort
SELECT + 83 FROM tab1 AS cor0 WHERE NOT - - col0 + - - 47 IS NULL OR NOT NULL IN ( 41 )
----
83
83
83

query II rowsort
SELECT ALL 69 AS col0, col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT COUNT( * ) * + COUNT( DISTINCT - col2 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-762
SELECT COUNT ( * ) * + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2
----
9

query I rowsort
SELECT ALL - ( - - col1 ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-764
SELECT ALL CAST( + + 60 AS SIGNED ) AS col2 FROM tab0
----
60
60
60

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 81 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT MAX( - CAST( NULL AS SIGNED ) ) * COUNT( * ) / - 77 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) / - 77 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + col2 NOT BETWEEN NULL AND - 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT ALL + 1 + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL + 1 + COUNT ( * ) FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL MIN( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL MIN ( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT COUNT( * ) * 51 - + - 45 + - + 31 FROM tab1 cor0
----
167

skipif mysql # not compatible
query I rowsort label-770
SELECT COUNT ( * ) * 51 - + - 45 + - + 31 FROM tab1 cor0
----
167

query II rowsort
SELECT DISTINCT 71, + col2 AS col0 FROM tab1
----
71
59
71
68
71
96

query II rowsort
SELECT DISTINCT col1 AS col1, col1 + - + col1 FROM tab2
----
51
0
67
0
77
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 50 * + + ( - col0 ) ) > 62
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT ALL - 41 DIV + 66 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL - 41 / + 66 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT - COUNT( + 74 ) + - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-775
SELECT - COUNT ( + 74 ) + - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0, col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT 69 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-778
SELECT ALL + col1 + + - col1 + - 35 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL + col1 + + - col1 + - 35 / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 + - 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT COUNT( + - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-780
SELECT COUNT ( + - col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 / + col2 ) NOT BETWEEN ( + 16 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 41 * + col2 * + col1 * + col1 FROM tab2
----
10674842
2452743
9723560

query I rowsort
SELECT DISTINCT + col0 * + col1 + - col1 * + col1 * - col0 * + - col2 AS col2 FROM tab2
----
-15173312
-19522125
-2749512

query I rowsort
SELECT col1 - + - col2 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT + ( + - col1 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col2 - col2 + 14 * - 68 + - 80 AS col0 FROM tab1
----
-1032
-1032
-1032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT DISTINCT - 81 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT - 81 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + + col0 + - 56 FROM tab0 AS cor0 WHERE ( + + col0 ) <= col1 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + COUNT( 29 ) + 54 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-789
SELECT + COUNT ( 29 ) + 54 FROM tab1 AS cor0
----
57

query I rowsort
SELECT DISTINCT col1 * + - 79 AS col2 FROM tab1 AS cor0
----
-1106
-3713
-395

query II rowsort
SELECT + - col0 * - + col0 AS col0, 65 FROM tab0 cor0
----
225
65
7569
65
9409
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-792
SELECT 60 AS col1, CAST( - col0 AS SIGNED ) + + 31 FROM tab1
----
60
-20
60
-54
60
-60

skipif mysql # not compatible
query II rowsort label-792
SELECT 60 AS col1, CAST ( - col0 AS INTEGER ) + + 31 FROM tab1
----
60
-20
60
-54
60
-60

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN 13 AND - + 87
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND + ( - col0 ) / + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-796
SELECT DISTINCT + 59, COUNT( * ) + - 92 AS col2 FROM tab1 AS cor0
----
59
-89

skipif mysql # not compatible
query II rowsort label-796
SELECT DISTINCT + 59, COUNT ( * ) + - 92 AS col2 FROM tab1 AS cor0
----
59
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT - MIN( DISTINCT + 38 ) col2 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-797
SELECT - MIN ( DISTINCT + 38 ) col2 FROM tab1 AS cor0
----
-38

query I rowsort
SELECT + 93 AS col1 FROM tab1 cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col2, col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query II rowsort
SELECT ALL - col1 AS col1, - col1 * + 40 AS col1 FROM tab2 cor0
----
-51
-2040
-67
-2680
-77
-3080

query II rowsort
SELECT 62 * - col1, - 85 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 61 * - col2 AS col0 FROM tab0
----
-2867
-6039
-610

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT col0 DIV + 25 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-803
SELECT col0 / + 25 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT col0 BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-804
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT col0 BETWEEN NULL AND ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-805
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-805
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT COUNT( * ) + - COUNT( * ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-806
SELECT COUNT ( * ) + - COUNT ( * ) col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-807
SELECT - ( - CAST( NULL AS SIGNED ) ) + + - COUNT( * ) AS col1 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT + COUNT( DISTINCT + 57 ) + - 39 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-808
SELECT + COUNT ( DISTINCT + 57 ) + - 39 FROM tab1
----
-38

query I rowsort
SELECT ALL - + col1 + + - 82 FROM tab2 AS cor0
----
-133
-149
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT ALL - COUNT( * ) * + 56 + - - COUNT( * ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL - COUNT ( * ) * + 56 + - - COUNT ( * ) FROM tab2 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-811
SELECT DISTINCT col0 + - CAST( 32 AS SIGNED ) * + col0 AS col0 FROM tab1 cor0
----
-1581
-2635
-2821

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT col0 + - CAST ( 32 AS INTEGER ) * + col0 AS col0 FROM tab1 cor0
----
-1581
-2635
-2821

onlyif mysql # DIV for integer division: 
query I rowsort label-812
SELECT ALL + 70 + 84 + - ( col2 ) * col2 DIV + + 48 FROM tab0
----
-50
108
152

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + 70 + 84 + - ( col2 ) * col2 / + + 48 FROM tab0
----
-50
108
152

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( NULL IS NOT NULL ) )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 93 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT ALL + - 56 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 41 + col0 FROM tab1
----
10
44
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-817
SELECT ( - CAST( NULL AS SIGNED ) ) * - 76 + - ( + COUNT( * ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT ( - CAST ( NULL AS INTEGER ) ) * - 76 + - ( + COUNT ( * ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT col1 + - - 36 DIV - col0 FROM tab0
----
1
21
79

skipif mysql # not compatible
query I rowsort label-818
SELECT col1 + - - 36 / - col0 FROM tab0
----
1
21
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT DISTINCT + COUNT( * ) DIV + + COUNT( * ) - + 81 AS col2 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT + COUNT ( * ) / + + COUNT ( * ) - + 81 AS col2 FROM tab0
----
-80

query I rowsort
SELECT 60 + col1 AS col2 FROM tab1
----
107
65
74

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - 84 = + - 31
----

onlyif mysql # DIV for integer division: 
query I rowsort label-822
SELECT ALL 4 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL 4 / + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 44 - - col0 FROM tab2 WHERE NULL IS NULL
----
108
119
90

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT - COUNT( + + 3 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-824
SELECT - COUNT ( + + 3 ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-825
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-826
SELECT ALL - COUNT( * ) DIV 14 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL - COUNT ( * ) / 14 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-827
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - + ( CAST( - + 15 AS SIGNED ) ) AS SIGNED ) * + + col1 + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-827
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - + ( CAST ( - + 15 AS INTEGER ) ) AS INTEGER ) * + + col1 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-828
SELECT ALL - CAST( - + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + col0 + - - col0 FROM tab2 AS cor0 WHERE NOT col0 + + + ( + col1 ) IS NULL
----
128
150
92

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

query I rowsort
SELECT DISTINCT + - 69 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT DISTINCT + MAX( 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT + MAX ( 83 ) FROM tab2
----
83

query II rowsort
SELECT DISTINCT ( - col1 ) AS col0, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT ALL col1 DIV 62 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL col1 / 62 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL + + MIN( DISTINCT - 2 ) + 18 * - - 42 * - 90 FROM tab1 AS cor0
----
-68042

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + + MIN ( DISTINCT - 2 ) + 18 * - - 42 * - 90 FROM tab1 AS cor0
----
-68042

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ( + - COUNT( * ) ) + + 67 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-838
SELECT ( + - COUNT ( * ) ) + + 67 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-839
SELECT COUNT( * ) * + 98 * + - 33 AS col1, COUNT( + col2 ) FROM tab2
----
-9702
3

skipif mysql # not compatible
query II rowsort label-839
SELECT COUNT ( * ) * + 98 * + - 33 AS col1, COUNT ( + col2 ) FROM tab2
----
-9702
3

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT + + COUNT( * ) col1 FROM tab1 WHERE ( ( NULL ) <= NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-840
SELECT + + COUNT ( * ) col1 FROM tab1 WHERE ( ( NULL ) <= NULL )
----
0

query I rowsort
SELECT ALL 62 * + col2 AS col0 FROM tab0
----
2914
6138
620

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) = - col2 + col1
----
0

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) = - col2 + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT COUNT( * ) * - COUNT( * ) + - 52 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-61

skipif mysql # not compatible
query I rowsort label-843
SELECT COUNT ( * ) * - COUNT ( * ) + - 52 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-61

query I rowsort
SELECT ALL + - col2 * - - col1 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-845
SELECT ALL + + 87 + - SUM( - col1 ) col1, CAST( ( + + COUNT( * ) ) AS SIGNED ) * MAX( - - 12 ) AS col1 FROM tab2 AS cor0
----
282
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-845
SELECT ALL + + 87 + - SUM ( - col1 ) col1, CAST ( ( + + COUNT ( * ) ) AS INTEGER ) * MAX ( - - 12 ) AS col1 FROM tab2 AS cor0
----
282
36

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT - MIN( DISTINCT - col0 ) * MAX( ALL 86 ) - - 14 AS col1 FROM tab0 AS cor0
----
8356

skipif mysql # not compatible
query I rowsort label-846
SELECT - MIN ( DISTINCT - col0 ) * MAX ( ALL 86 ) - - 14 AS col1 FROM tab0 AS cor0
----
8356

query I rowsort
SELECT ALL + - 93 + + - col0 * - + col0 FROM tab2 AS cor0
----
2023
4003
5532

query I rowsort
SELECT DISTINCT + 44 + col1 * + + col1 AS col1 FROM tab1 AS cor0
----
2253
240
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 * - col0 col1 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( + 38 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col2 * + + 24 FROM tab0 AS cor0
----
-1128
-2376
-240

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-852
SELECT ALL - CAST( NULL AS DECIMAL ) / - 20 AS col0, + 26 AS col1 FROM tab0 AS cor0
----
NULL
26
NULL
26
NULL
26

skipif mysql # not compatible
query II rowsort label-852
SELECT ALL - CAST ( NULL AS REAL ) / - 20 AS col0, + 26 AS col1 FROM tab0 AS cor0
----
NULL
26
NULL
26
NULL
26

onlyif mysql # DIV for integer division: 
query II rowsort label-853
SELECT - col0 DIV + col2, col0 FROM tab2 AS cor0
----
-1
64
-1
75
-2
46

skipif mysql # not compatible
query II rowsort label-853
SELECT - col0 / + col2, col0 FROM tab2 AS cor0
----
-1
64
-1
75
-2
46

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

query I rowsort
SELECT DISTINCT + 17 * - ( - 44 ) + + col1 AS col1 FROM tab0 AS cor0
----
749
769
829

query I rowsort
SELECT - 76 * - + col0 * - 34 - 96 * col2 FROM tab0 cor0
----
-225768
-260152
-43272

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 <> NULL
----

query I rowsort
SELECT DISTINCT col2 * + + 77 AS col2 FROM tab0
----
3619
7623
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-859
SELECT - ( - - 29 ) FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-859
SELECT - ( - - 29 ) FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - 30 * - - col2 AS col2 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT DISTINCT + MAX( - 77 ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT + MAX ( - 77 ) FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT DISTINCT - 9 * COUNT( DISTINCT + col0 ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT - 9 * COUNT ( DISTINCT + col0 ) FROM tab2 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL + COUNT( ALL ( + + col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL + COUNT ( ALL ( + + col1 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col0 + - - col2 * col0 * 36 * + 32 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1218770
2949056
5011125

query I rowsort
SELECT ALL + + 53 * - col0 AS col2 FROM tab1 AS cor0
----
-2703
-4505
-4823

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 83 IS NULL
----

query I rowsort
SELECT 7 AS col1 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-868
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-869
SELECT DISTINCT MIN( col1 ) + + MAX( + ( + + col0 ) ) * SUM( DISTINCT 46 ) DIV COUNT( * ) FROM tab1 AS cor0
----
1400

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT MIN ( col1 ) + + MAX ( + ( + + col0 ) ) * SUM ( DISTINCT 46 ) / COUNT ( * ) FROM tab1 AS cor0
----
1400

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 46 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT - - ( - 10 ) AS col0 FROM tab2 AS cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-873
SELECT * FROM tab1 AS cor0 WHERE 6 + - + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-873
SELECT * FROM tab1 AS cor0 WHERE 6 + - + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT + COUNT( * ) * + - 99 AS col0 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-874
SELECT + COUNT ( * ) * + - 99 AS col0 FROM tab2
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT col2 + + - 60 DIV - col2 + 21 * - col0 AS col2 FROM tab1
----
-1725
-1843
-975

skipif mysql # not compatible
query I rowsort label-875
SELECT col2 + + - 60 / - col2 + 21 * - col0 AS col2 FROM tab1
----
-1725
-1843
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT ALL + MIN( ALL + - 75 ) AS col2 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + MIN ( ALL + - 75 ) AS col2 FROM tab0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-877
SELECT - CAST( NULL AS SIGNED ) + + col0 + ( + col2 ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT DISTINCT + 35 + COUNT( * ) FROM tab2 cor0
----
38

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT + 35 + COUNT ( * ) FROM tab2 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT DISTINCT - + COUNT( * ) + - 49 AS col1 FROM tab2 AS cor0 WHERE - col0 / + - col1 IS NOT NULL
----
-52

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT - + COUNT ( * ) + - 49 AS col1 FROM tab2 AS cor0 WHERE - col0 / + - col1 IS NOT NULL
----
-52

query I rowsort
SELECT DISTINCT col1 - col0 AS col0 FROM tab0 cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT DISTINCT + col0 DIV - - col2 - + ( + 12 ) FROM tab2
----
-10
-11

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT + col0 / - - col2 - + ( + 12 ) FROM tab2
----
-10
-11

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query II rowsort
SELECT ALL + col2, - col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT 82 * + 26 + - 27 FROM tab1 AS cor0
----
2105
2105
2105

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-886
SELECT - 45 * - CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col1 * - - 8 AS col2 FROM tab0 AS cor0
----
168
648
8

query II rowsort
SELECT ALL 11 * 8, + col2 + + + col0 AS col0 FROM tab1
----
88
144
88
147
88
159

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

query I rowsort
SELECT + 48 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-891
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2, col1 + + + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-891
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2, col1 + + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT COUNT( * ) * - - COUNT( * ) * + 21 col0 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-893
SELECT COUNT ( * ) * - - COUNT ( * ) * + 21 col0 FROM tab2 AS cor0
----
189

query I rowsort
SELECT ALL - - col1 * + ( - - col0 ) AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 35 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT + 41 * - + col1 AS col2 FROM tab1
----
-1927
-205
-574

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

query I rowsort
SELECT DISTINCT col2 + - 93 FROM tab0 AS cor0
----
-46
-83
6

query I rowsort
SELECT 46 + col0 FROM tab1 AS cor0
----
131
137
97

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE + 84 <> + 87
----
51
67
77

query I rowsort
SELECT ALL - 97 + - col2 + 21 FROM tab2 AS cor0
----
-116
-134
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - col2 ) <> NULL
----

query I rowsort
SELECT ALL - + 31 + - col0 FROM tab1 AS cor0
----
-116
-122
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT + COUNT( * ) + CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-905
SELECT + COUNT ( * ) + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT 77 + 40 FROM tab0 cor0
----
117
117
117

query II rowsort
SELECT DISTINCT - col0 AS col2, - col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT + 49 * + 2 FROM tab2
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT DISTINCT - col2 DIV + + col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT - col2 / + + col0 FROM tab1
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 / + - col2 BETWEEN - col1 AND col1
----

query I rowsort
SELECT ALL col0 * - 4 + + - col1 AS col0 FROM tab2
----
-235
-333
-367

onlyif mysql # aggregate syntax: 
query II rowsort label-912
SELECT DISTINCT - COUNT( * ) AS col2, 40 AS col0 FROM tab2
----
-3
40

skipif mysql # not compatible
query II rowsort label-912
SELECT DISTINCT - COUNT ( * ) AS col2, 40 AS col0 FROM tab2
----
-3
40

query II rowsort
SELECT + ( - col2 ) - + 27 * + ( - ( - 37 ) ), col2 + - col2 AS col0 FROM tab0 AS cor0
----
-1009
0
-1046
0
-1098
0

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT + - COUNT( * ) + + - MIN( + - 66 ) AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-914
SELECT + - COUNT ( * ) + + - MIN ( + - 66 ) AS col0 FROM tab1 AS cor0
----
63

query III rowsort
SELECT * FROM tab0 WHERE 70 / - + 87 + 78 IS NULL
----

query II rowsort
SELECT - col0 * 54, + col0 AS col2 FROM tab2 AS cor0
----
-2484
46
-3456
64
-4050
75

onlyif mysql # DIV for integer division: 
query I rowsort label-917
SELECT col2 DIV - 38 + + col2 + ( + - col2 ) * - col0 FROM tab1 cor0
----
4990
5073
6255

skipif mysql # not compatible
query I rowsort label-917
SELECT col2 / - 38 + + col2 + ( + - col2 ) * - col0 FROM tab1 cor0
----
4990
5073
6255

query I rowsort
SELECT ALL 42 * + col0 FROM tab2 cor0
----
1932
2688
3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-919
SELECT DISTINCT - + col0 * - col2 * CAST( 49 AS SIGNED ) FROM tab2 AS cor0
----
125440
213150
51842

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT - + col0 * - col2 * CAST ( 49 AS INTEGER ) FROM tab2 AS cor0
----
125440
213150
51842

query I rowsort
SELECT - 17 * - 38 AS col2 FROM tab1 AS cor0
----
646
646
646

query II rowsort
SELECT col0 + + - 75 AS col1, + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11
77
-29
51
0
67

query II rowsort
SELECT DISTINCT col0, ( + col0 ) * - - col0 FROM tab0
----
15
225
87
7569
97
9409

query II rowsort
SELECT ALL - col1 AS col0, col2 AS col1 FROM tab0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT DISTINCT + 6 AS col1, + 3 FROM tab2
----
6
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-925
SELECT ALL - - COUNT( + 1 ) * - 55 - + COUNT( * ) FROM tab2 WHERE NULL BETWEEN - + ( col1 ) / + + CAST( NULL AS SIGNED ) * col2 + + col1 AND - + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL - - COUNT ( + 1 ) * - 55 - + COUNT ( * ) FROM tab2 WHERE NULL BETWEEN - + ( col1 ) / + + CAST ( NULL AS INTEGER ) * col2 + + col1 AND - + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT ( 78 ) FROM tab2
----
78

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-928
SELECT ALL + COUNT( * ), 37 AS col0 FROM tab1
----
3
37

skipif mysql # not compatible
query II rowsort label-928
SELECT ALL + COUNT ( * ), 37 AS col0 FROM tab1
----
3
37

query II rowsort
SELECT DISTINCT col0 AS col1, + col0 AS col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL ( + - MIN( DISTINCT - col1 ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL ( + - MIN ( DISTINCT - col1 ) ) AS col1 FROM tab1
----
47

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE + col0 * - 19 + + ( - 93 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( 84 ) * - col0 / + col2 = ( + col1 )
----

query II rowsort
SELECT col1 * + col0 AS col2, 53 AS col2 FROM tab0
----
1215
53
1827
53
97
53

query I rowsort
SELECT DISTINCT col1 + col2 + + col0 AS col1 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT ALL + + COUNT( * ) * + 79 + + - 33 + + ( 75 ) FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL + + COUNT ( * ) * + 79 + + - 33 + + ( 75 ) FROM tab1 AS cor0
----
279

query II rowsort
SELECT ALL col2 AS col1, col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 71 * + 52 * + - 40 + - col2 + - 1 col0 FROM tab2 cor0
----
11075941
6793256
9451479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-938
SELECT DISTINCT + col0 * + + 22 + + 32 FROM tab2 WHERE NOT + + 72 * CAST( NULL AS SIGNED ) IS NOT NULL
----
1044
1440
1682

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT + col0 * + + 22 + + 32 FROM tab2 WHERE NOT + + 72 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
1044
1440
1682

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT ALL COUNT( * ) * - 60 - + MAX( - col0 ) + + + ( 20 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL COUNT ( * ) * - 60 - + MAX ( - col0 ) + + + ( 20 ) FROM tab2
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-940
SELECT DISTINCT - COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-941
SELECT + CAST( NULL AS SIGNED ) + - + col2 FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( 68 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + + col2 col1 FROM tab1
----
102
111
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-944
SELECT + CAST( + col2 AS SIGNED ) * + col0 + - + 60 AS col1 FROM tab2
----
2500
4290
998

skipif mysql # not compatible
query I rowsort label-944
SELECT + CAST ( + col2 AS INTEGER ) * + col0 + - + 60 AS col1 FROM tab2
----
2500
4290
998

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT 89 * - COUNT( * ) + - + 58 AS col0 FROM tab1 AS cor0
----
-325

skipif mysql # not compatible
query I rowsort label-945
SELECT 89 * - COUNT ( * ) + - + 58 AS col0 FROM tab1 AS cor0
----
-325

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE + ( + col2 ) * 56 / + + col0 > + - col1
----
-1
-21
-81

query II rowsort
SELECT + col2 AS col1, col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT + 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

query II rowsort
SELECT + col1, 2 AS col0 FROM tab2
----
51
2
67
2
77
2

query II rowsort
SELECT ALL - + 11 AS col1, col0 AS col0 FROM tab0 AS cor0
----
-11
15
-11
87
-11
97

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 <> - col0
----

query II rowsort
SELECT DISTINCT + - col1 AS col1, - 88 AS col2 FROM tab2 AS cor0
----
-51
-88
-67
-88
-77
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT - 1 * + SUM( ALL col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-953
SELECT - 1 * + SUM ( ALL col2 ) FROM tab1 cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + - ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + + col2, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT ALL - 4 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 66
----

query II rowsort
SELECT DISTINCT + + 14 AS col2, - col1 * + - 54 AS col2 FROM tab0 AS cor0
----
14
1134
14
4374
14
54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - ( 95 ) + 5
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-959
SELECT + COUNT( * ) * + + ( + COUNT( * ) ) DIV - + COUNT( * ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-959
SELECT + COUNT ( * ) * + + ( + COUNT ( * ) ) / - + COUNT ( * ) col1 FROM tab2
----
-3

query II rowsort
SELECT + ( col0 ) AS col1, + col1 * + 21 + + col2 + + + col1 + - col1 * + - ( + col1 ) * - ( + + 62 ) + 38 * - col1 * + col1 FROM tab0
----
15
-654271
87
-43628
97
21

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT - MAX( ALL + - 90 ) col2 FROM tab0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-961
SELECT - MAX ( ALL + - 90 ) col2 FROM tab0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-962
SELECT + CAST( - - col0 AS SIGNED ), + col0 FROM tab0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-962
SELECT + CAST ( - - col0 AS INTEGER ), + col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ( + + COUNT( + - 20 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-963
SELECT ( + + COUNT ( + - 20 ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT + col0 * + 40 FROM tab2 AS cor0 WHERE NOT 31 * + col0 IS NULL
----
1840
2560
3000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-965
SELECT + + col0 * - - col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
query II rowsort label-965
SELECT + + col0 * - - col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
2346
NULL
4928
NULL
5025
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-966
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2, tab0 cor0
----
-9

query I rowsort
SELECT ALL 12 * + + 40 AS col2 FROM tab0 AS cor0
----
480
480
480

query I rowsort
SELECT DISTINCT + 72 + col0 * - col0 + + 93 AS col2 FROM tab2 AS cor0
----
-1951
-3931
-5460

query I rowsort
SELECT + col2 + + - 9 - - col1 AS col1 FROM tab0 AS cor0
----
119
22
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-970
SELECT ALL col1 + - CAST( - col1 AS SIGNED ) * + - 35 FROM tab1 AS cor0
----
-1598
-170
-476

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL col1 + - CAST ( - col1 AS INTEGER ) * + - 35 FROM tab1 AS cor0
----
-1598
-170
-476

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 90 * + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-972
SELECT - + COUNT( col0 ) DIV + + 4 AS col1, + ( + + 81 ) FROM tab2 AS cor0
----
0
81

skipif mysql # not compatible
query II rowsort label-972
SELECT - + COUNT ( col0 ) / + + 4 AS col1, + ( + + 81 ) FROM tab2 AS cor0
----
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT + + ( + SUM( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-973
SELECT + + ( + SUM ( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT col2 - + + col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query II rowsort label-975
SELECT DISTINCT - COUNT( + - col2 ) - + + ( + - 91 ) col2, + 80 FROM tab1
----
88
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-975
SELECT DISTINCT - COUNT ( + - col2 ) - + + ( + - 91 ) col2, + 80 FROM tab1
----
88
80

query I rowsort
SELECT ALL - ( - 40 ) + ( - + col2 ) * - col1 FROM tab2
----
1213
3120
3926

query I rowsort
SELECT DISTINCT col0 * + 56 + - - ( + - col0 ) AS col1 FROM tab1
----
2805
4675
5005

query I rowsort
SELECT ALL - col2 - - + 23 FROM tab0
----
-24
-76
13

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT col1 - col0 DIV col1 AS col0 FROM tab2
----
51
66
77

skipif mysql # not compatible
query I rowsort label-979
SELECT col1 - col0 / col1 AS col0 FROM tab2
----
51
66
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-980
SELECT - col2 + + - col2 AS col2, - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
-116
NULL
-46
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-980
SELECT - col2 + + - col2 AS col2, - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
-116
NULL
-46
NULL
-80
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 - + + 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL - 57 + - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-66

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL - 57 + - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-66

query I rowsort
SELECT DISTINCT 80 * + - 56 * + col2 AS col0 FROM tab1
----
-264320
-304640
-430080

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT DISTINCT + COUNT( * ) * - 45 col2 FROM tab1
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-984
SELECT DISTINCT + COUNT ( * ) * - 45 col2 FROM tab1
----
-135

query I rowsort
SELECT DISTINCT - + ( col1 ) AS col1 FROM tab0 WHERE - 72 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT COUNT( + ( + col1 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-986
SELECT COUNT ( + ( + col1 ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL - col1 * - 51 * + ( - + col2 ) AS col1 FROM tab0
----
-10710
-194157
-5049

query I rowsort
SELECT col2 * 84 AS col1 FROM tab0 AS cor0
----
3948
8316
840

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL - COUNT( 57 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-989
SELECT ALL - COUNT ( 57 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT ( - CAST( NULL AS SIGNED ) ) * - CAST( - - 78 AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 * - - ( + - col2 ) + 45 FROM tab0 AS cor0
----
-2164
-55
-9756

query I rowsort
SELECT - + col2 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 95 * - + 84 col2 FROM tab2 AS cor0
----
-7980
-7980
-7980

query I rowsort
SELECT col2 * col0 + 68 FROM tab0 AS cor0
----
773
938
9671

query I rowsort
SELECT ALL 53 / + - col2 FROM tab2 cor0 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL + AVG ( ALL + + col1 ) - + + 56 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * + + col2 + + ( + + col2 ) col0 FROM tab1 AS cor0
----
129120
17464
217396

query I rowsort
SELECT ALL - 65 AS col2 FROM tab1 cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-999
SELECT col1 AS col2, - CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
1
-1
21
-21
81
-81

skipif mysql # not compatible
query II rowsort label-999
SELECT col1 AS col2, - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT 71 AS col0, - col1 AS col2 FROM tab1
----
71
-14
71
-47
71
-5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT ( col2 ) * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ( - + 20 ) + - 93 FROM tab2
----
-113
-113
-113

query I rowsort
SELECT + 28 + + ( + col2 ) + 84 AS col0 FROM tab1 AS cor0
----
171
180
208

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT DISTINCT - 3, + 15 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
18

skipif mysql # not compatible
query II rowsort label-1005
SELECT DISTINCT - 3, + 15 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col0, - 91 AS col0 FROM tab0 cor0
----
-6
-91

skipif mysql # not compatible
query II rowsort label-1006
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col0, - 91 AS col0 FROM tab0 cor0
----
-6
-91

query I rowsort
SELECT ALL + ( + 87 ) AS col1 FROM tab1
----
87
87
87

query I rowsort
SELECT DISTINCT + 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 + + 37 + - col2 * + 24 + - col1 * + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1010
SELECT * FROM tab1 AS cor0 WHERE + 66 IN ( + + col0 / CAST( NULL AS SIGNED ), col2 * + 57 / + - col2 * + ( + 80 ), - + col1 )
----

skipif mysql # not compatible
query III rowsort label-1010
SELECT * FROM tab1 AS cor0 WHERE + 66 IN ( + + col0 / CAST ( NULL AS INTEGER ), col2 * + 57 / + - col2 * + ( + 80 ), - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT CAST( - - 57 AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
-30
-40
42

skipif mysql # not compatible
query I rowsort label-1011
SELECT CAST ( - - 57 AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
-30
-40
42

query I rowsort
SELECT ALL - col0 * + - col0 - 70 AS col1 FROM tab2
----
2046
4026
5555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1013
SELECT 86 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1014
SELECT 80 * - - COUNT( * ) + - COUNT( * ) AS col1, - 75 FROM tab1
----
237
-75

skipif mysql # not compatible
query II rowsort label-1014
SELECT 80 * - - COUNT ( * ) + - COUNT ( * ) AS col1, - 75 FROM tab1
----
237
-75

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col0 * - - 70 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1017
SELECT CAST( - 23 AS SIGNED ) * ( col2 ) - - col2 FROM tab0
----
-1034
-2178
-220

skipif mysql # not compatible
query I rowsort label-1017
SELECT CAST ( - 23 AS INTEGER ) * ( col2 ) - - col2 FROM tab0
----
-1034
-2178
-220

query II rowsort
SELECT ALL col1, + ( col1 ) AS col0 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1019
SELECT + col1 / - CAST( NULL AS SIGNED ) + + col2 - + - col1 / + col0 FROM tab0 WHERE col2 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT + MIN( 74 ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT + MIN ( 74 ) AS col2 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT DISTINCT - MAX( - col1 ) FROM tab2 WHERE ( NULL BETWEEN NULL AND col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT - MAX ( - col1 ) FROM tab2 WHERE ( NULL BETWEEN NULL AND col0 )
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 77 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + 93 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL COUNT( DISTINCT 49 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL COUNT ( DISTINCT 49 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT DISTINCT 65 * + COUNT( - 55 ) AS col1 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT 65 * + COUNT ( - 55 ) AS col1 FROM tab0 AS cor0
----
195

query I rowsort
SELECT ( + - col2 ) / col1 FROM tab2 AS cor0 WHERE NOT 90 + - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 69 + + col2, col2 + - 24 col0 FROM tab0 AS cor0
----
116
23
168
75
79
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * + ( 5 ) col2 FROM tab1
----
295
340
480

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1029
SELECT * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1029
SELECT * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NULL <> 58 + 90
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1031
SELECT DISTINCT 78 DIV - + COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT 78 / - + COUNT ( * ) FROM tab2
----
-26

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 4 ) > + 90 + + - ( - + 17 ) * + col1 * 72 + + col2
----

query I rowsort
SELECT 73 + - col0 + + 38 FROM tab1 AS cor0
----
20
26
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL + 55 + + ( - COUNT( * ) ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + 55 + + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT ALL 97 DIV + - 88 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL 97 / + - 88 AS col0 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT - col2 + - col1 + - 91 FROM tab0
----
-122
-191
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT MIN( + col1 ) / + COUNT( * ) - + - SUM( - 18 ) AS col0 FROM tab2 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT MIN ( + col1 ) / + COUNT ( * ) - + - SUM ( - 18 ) AS col0 FROM tab2 WHERE - col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - col1 + - col1 + + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-1039
SELECT ALL - COUNT( * ), 8 AS col2 FROM tab2 AS cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-1039
SELECT ALL - COUNT ( * ), 8 AS col2 FROM tab2 AS cor0
----
-3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT MAX( col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1041
SELECT MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + 95 + - - 69 * col2 * - 65 FROM tab2 AS cor0
----
-103060
-179305
-260035

query I rowsort
SELECT + + col0 - - col0 * col1 FROM tab2 AS cor0 WHERE col2 <> + + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT col0 <> - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT + MAX( DISTINCT + - 88 ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + MAX ( DISTINCT + - 88 ) FROM tab0 AS cor0
----
-88

query I rowsort
SELECT ALL + ( + ( + + 50 ) ) FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT - + 36 AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
-36
-36
-36

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

query I rowsort
SELECT ALL + 39 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1050
SELECT - 59 col2, - ( - - col1 ) / col0 FROM tab0 WHERE NOT + + 3 * - 27 * - + col1 * - - col1 + - 45 / - CAST( ( + 67 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1050
SELECT - 59 col2, - ( - - col1 ) / col0 FROM tab0 WHERE NOT + + 3 * - 27 * - + col1 * - - col1 + - 45 / - CAST ( ( + 67 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT ALL - SUM( + ( - - 13 ) ) AS col2, - 40 AS col0 FROM tab2
----
-39
-40

skipif mysql # not compatible
query II rowsort label-1051
SELECT ALL - SUM ( + ( - - 13 ) ) AS col2, - 40 AS col0 FROM tab2
----
-39
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT - + MIN( + - 36 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1052
SELECT - + MIN ( + - 36 ) FROM tab2 AS cor0
----
36

query II rowsort
SELECT - 95 AS col2, col2 AS col0 FROM tab1 AS cor0
----
-95
59
-95
68
-95
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col0 ) * + 28 BETWEEN NULL AND - ( - 58 )
----

query I rowsort
SELECT ALL 24 + + col2 FROM tab2 AS cor0
----
47
64
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1056
SELECT DISTINCT - - 37 * - ( + + ( - - MAX( + CAST( NULL AS SIGNED ) ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1057
SELECT ALL + 51 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL - 82 * - COUNT( * ) AS col0 FROM tab1 cor0
----
246

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - 82 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
246

query I rowsort
SELECT col0 * + - col1 + col2 AS col0 FROM tab2
----
-2323
-4888
-4967

query III rowsort
SELECT * FROM tab2 WHERE - 95 IS NULL
----

query I rowsort
SELECT + col1 + - 92 AS col2 FROM tab0
----
-11
-71
-91

query I rowsort
SELECT + ( 72 ) + col0 AS col2 FROM tab2
----
118
136
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL MAX( 52 ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL MAX ( 52 ) FROM tab0
----
52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 83 * 39 + - col1 AS col1 FROM tab0
----
3156
3216
3236

query I rowsort
SELECT ALL - + col2 + - + col0 AS col0 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query III rowsort label-1068
SELECT ALL + - 83 AS col1, COUNT( * ) col0, + + COUNT( + 83 ) * - 95 FROM tab2 AS cor0 WHERE 92 BETWEEN + 45 AND NULL
----
-83
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1068
SELECT ALL + - 83 AS col1, COUNT ( * ) col0, + + COUNT ( + 83 ) * - 95 FROM tab2 AS cor0 WHERE 92 BETWEEN + 45 AND NULL
----
-83
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1069
SELECT + ( col0 ) DIV 33 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1069
SELECT + ( col0 ) / 33 FROM tab1 AS cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL + COUNT( col2 ) + - 21 AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL + COUNT ( col2 ) + - 21 AS col1 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT 30 * - - col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 + col0 <= 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 59 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ( + - col2 ) * col1 AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + 41 - + + col0 AS col0 FROM tab2
----
-23
-34
-5

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 41 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 = + 76 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT 79 - + 90 + 94 * + SUM( + col1 ) AS col1 FROM tab1
----
6193

skipif mysql # not compatible
query I rowsort label-1078
SELECT 79 - + 90 + 94 * + SUM ( + col1 ) AS col1 FROM tab1
----
6193

query I rowsort
SELECT + col1 * + col1 * + + col2 - + - 20 FROM tab1 AS cor0
----
1495
150232
18836

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NULL <> + col2 * - 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - 71 FROM tab1
----
14
-71
47
-71
5
-71

query II rowsort
SELECT ALL col1, 91 * col0 FROM tab0
----
1
8827
21
7917
81
1365

query I rowsort
SELECT DISTINCT - + ( + + col1 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - ( col2 ) ) AS col2 FROM tab2
----
23
40
58

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 76 >= + 4 * - col1
----
91
47
68

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

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

query I rowsort
SELECT DISTINCT 38 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + - 57 AS col1 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL - 90 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > ( - col1 ) + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1093
SELECT - CAST( 61 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

skipif mysql # not compatible
query I rowsort label-1093
SELECT - CAST ( 61 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( - col1 ) + + 27 - - col2 AS col2 FROM tab1 AS cor0
----
109
48
81

query I rowsort
SELECT ALL + + 66 + - col1 FROM tab0 AS cor0
----
-15
45
65

query I rowsort
SELECT DISTINCT - - 5 AS col0 FROM tab2 cor0
----
5

query I rowsort
SELECT + col2 * col2 + - col0 FROM tab0 AS cor0
----
13
2194
9704

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT + 18 * col2 DIV 97 DIV + + 34 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1099
SELECT + 18 * col2 / 97 / + + 34 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col1 AS col0, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT - 85 * - col0 AS col0 FROM tab2
----
3910
5440
6375

query I rowsort
SELECT 70 * 53 FROM tab1, tab1 AS cor0
----
9 values hashing to 4c9e223e474dcb71e7945d1f7229f325

query III rowsort
SELECT + col1 * - col2 * - - col1, col1, + 66 AS col1 FROM tab2
----
9 values hashing to 6efd3684bfb06d1d6e79dc8dc2121d62

query I rowsort
SELECT DISTINCT col1 * + 9 + - ( + col1 ) FROM tab2 WHERE NOT + col2 NOT BETWEEN 44 - - - col2 + - col1 / - + 17 - - col1 * - 82 AND + - col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT 58 IS NOT NULL
----

query I rowsort
SELECT + 94 + col2 / + col1 + - 77 FROM tab2 WHERE NULL < 92 + - col2
----

query I rowsort
SELECT DISTINCT - ( + + 1 ) + col1 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT DISTINCT - + col0 * - 38 FROM tab2 AS cor0
----
1748
2432
2850

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1110
SELECT * FROM tab0 AS cor0 WHERE col2 * - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1110
SELECT * FROM tab0 AS cor0 WHERE col2 * - CAST ( col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - 67 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT - col1 * + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT ALL ( COUNT( * ) ) * - 25 col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1113
SELECT ALL ( COUNT ( * ) ) * - 25 col1 FROM tab2
----
-75

query I rowsort
SELECT - 5 * 35 AS col0 FROM tab0
----
-175
-175
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT - SUM( - 16 ) * + 90 col1 FROM tab2 WHERE - 20 * col1 IS NOT NULL
----
4320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1115
SELECT - SUM ( - 16 ) * + 90 col1 FROM tab2 WHERE - 20 * col1 IS NOT NULL
----
4320

query I rowsort
SELECT + col1 FROM tab1 WHERE + col2 BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT DISTINCT + 7 DIV - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT + 7 / - col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( + col0 ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( + col0 ) <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT MAX( DISTINCT + 69 ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT MAX ( DISTINCT + 69 ) AS col2 FROM tab0
----
69

query I rowsort
SELECT ALL + 55 + - ( + AVG ( ALL col2 ) ) AS col1 FROM tab2 WHERE NOT ( 85 ) IS NOT NULL
----
NULL

query I rowsort
SELECT 22 + col1 FROM tab2
----
73
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT DISTINCT COUNT( DISTINCT col2 ) - + 72 * - 82 AS col1 FROM tab1
----
5907

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT COUNT ( DISTINCT col2 ) - + 72 * - 82 AS col1 FROM tab1
----
5907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1124
SELECT 29 AS col1 FROM tab0 WHERE NOT ( + ( - ( + col1 ) ) * + col0 ) <> ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1124
SELECT 29 AS col1 FROM tab0 WHERE NOT ( + ( - ( + col1 ) ) * + col0 ) <> ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col0 - 60 FROM tab2
----
-14
15
4

query I rowsort
SELECT 78 * 81 + - col0 AS col2 FROM tab2
----
6243
6254
6272

query I rowsort
SELECT ALL + 45 FROM tab2 WHERE ( + col1 + - col0 ) IS NOT NULL
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ( - MAX( DISTINCT ( - col1 ) ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1128
SELECT ( - MAX ( DISTINCT ( - col1 ) ) ) AS col2 FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + col1 > + col2
----
85
5
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) > ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT ALL + MIN( 65 ) + - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-16

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL + MIN ( 65 ) + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab2 WHERE ( - col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab2 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT DISTINCT - COUNT( * ) * + 31 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT - COUNT ( * ) * + 31 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - 16 * + 57 AS col2 FROM tab0 AS cor0
----
-912

query I rowsort
SELECT ALL 3 + + 21 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1138
SELECT ALL CAST( + ( - 21 ) AS SIGNED ) * + col1 FROM tab0 AS cor0 WHERE - col1 + col1 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL CAST ( + ( - 21 ) AS INTEGER ) * + col1 FROM tab0 AS cor0 WHERE - col1 + col1 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT + CAST( NULL AS SIGNED ) * col2 + 33 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1140
SELECT * FROM tab2 WHERE + col1 * + 28 + - col2 >= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1140
SELECT * FROM tab2 WHERE + col1 * + 28 + - col2 >= ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1141
SELECT col1 + - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col2 + - + col2 + - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1143
SELECT ALL ( + col1 ) * CAST( col0 AS SIGNED ) FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL ( + col1 ) * CAST ( col0 AS INTEGER ) FROM tab0
----
1215
1827
97

query I rowsort
SELECT - 65 * + col0 + ( col0 ) AS col1 FROM tab0
----
-5568
-6208
-960

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) <> ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 82 * + 98 AS col2 FROM tab0
----
8036

query I rowsort
SELECT ALL + 94 * - + col1 FROM tab0
----
-1974
-7614
-94

query I rowsort
SELECT + col0 * - col1 + - ( col2 + + 27 ) AS col2 FROM tab0
----
-1289
-1864
-223

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT + 1 + + col0 AS col2 FROM tab0
----
16
88
98

query III rowsort
SELECT * FROM tab0 WHERE + col1 <= ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT MIN( + col1 ) + + CAST( NULL AS SIGNED ) * 12 AS col0 FROM tab1
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 > col0 * - 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1154
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1154
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT ALL - 0 * - col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT DISTINCT col0 + col1 DIV col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
47
65
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1156
SELECT DISTINCT col0 + col1 / col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
47
65
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1157
SELECT ALL + CAST( NULL AS SIGNED ) + - 34 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT DISTINCT 80 DIV - col0 + + - 48 AS col2 FROM tab0
----
-48
-53

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT 80 / - col0 + + - 48 AS col2 FROM tab0
----
-48
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1159
SELECT - SUM( - col0 ) * + ( - SUM( ALL CAST( + 61 AS SIGNED ) ) ) - 94 * 23 AS col0 FROM tab0
----
-38579

skipif mysql # not compatible
query I rowsort label-1159
SELECT - SUM ( - col0 ) * + ( - SUM ( ALL CAST ( + 61 AS INTEGER ) ) ) - 94 * 23 AS col0 FROM tab0
----
-38579

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1160
SELECT 52 FROM tab2 WHERE - col2 * - 32 < - CAST( col0 AS SIGNED ) - + col0
----

skipif mysql # not compatible
query I rowsort label-1160
SELECT 52 FROM tab2 WHERE - col2 * - 32 < - CAST ( col0 AS INTEGER ) - + col0
----

query I rowsort
SELECT ALL + 43 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT DISTINCT - + col1 DIV + - 57 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT - + col1 / + - 57 FROM tab2 AS cor0
----
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL - - COUNT( DISTINCT - 75 ) * 53 AS col0 FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL - - COUNT ( DISTINCT - 75 ) * 53 AS col0 FROM tab1 cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 55 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 55 ) < NULL
----
0

query II rowsort
SELECT DISTINCT - 61 AS col1, 12 FROM tab0 AS cor0
----
-61
12

query I rowsort
SELECT DISTINCT + col1 - + col1 FROM tab2 AS cor0 WHERE NOT - col0 * col1 + - col2 IN ( + col2 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT + 51 DIV col0 DIV + 18 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 51 / col0 / + 18 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT 76 * - COUNT( * ) AS col0 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-1170
SELECT 76 * - COUNT ( * ) AS col0 FROM tab1
----
-228

onlyif mysql # DIV for integer division: 
query II rowsort label-1171
SELECT + col0 DIV col0 AS col1, + 25 AS col2 FROM tab2
----
1
25
1
25
1
25

skipif mysql # not compatible
query II rowsort label-1171
SELECT + col0 / col0 AS col1, + 25 AS col2 FROM tab2
----
1
25
1
25
1
25

query III rowsort
SELECT * FROM tab0 WHERE NOT + 71 / ( col2 ) * - 8 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT 17 * - col1 AS col2 FROM tab1
----
-238
-799
-85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1176
SELECT ALL - CAST( NULL AS SIGNED ) * + 35 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - - ( - 30 ) FROM tab0 cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1178
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 >= ( + col0 - CAST( - col1 AS SIGNED ) + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1178
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 >= ( + col0 - CAST ( - col1 AS INTEGER ) + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - 1 AND + col1
----

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN + - 16 AND + col2 - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 68 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL col2 + - 19 FROM tab2 AS cor0
----
21
39
4

query I rowsort
SELECT ALL - col1 + + + 16 FROM tab0 cor0 WHERE NULL IN ( - col1, - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 84 AND NULL
----

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

query II rowsort
SELECT col0, + col1 * - - 28 FROM tab2
----
46
1428
64
2156
75
1876

query III rowsort
SELECT * FROM tab1 WHERE + + 37 NOT IN ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2, ( + col0 ) FROM tab0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1191
SELECT - - 50 + 15 + + - col0 + + - 80 DIV - 28 AS col1 FROM tab0 AS cor0
----
-20
-30
52

skipif mysql # not compatible
query I rowsort label-1191
SELECT - - 50 + 15 + + - col0 + + - 80 / - 28 AS col1 FROM tab0 AS cor0
----
-20
-30
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + 92 + + 21 + + COUNT( * ) FROM tab0 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-1192
SELECT + 92 + + 21 + + COUNT ( * ) FROM tab0 AS cor0
----
116

query I rowsort
SELECT ALL + - col0 - + 71 + 26 + - 63 * + ( col0 ) * - 51 AS col1 FROM tab1 AS cor0
----
163767
272975
292247

query I rowsort
SELECT ALL col1 + + col1 * - + col1 FROM tab1
----
-182
-20
-2162

query I rowsort
SELECT ALL + 44 + col2 FROM tab0 WHERE - + col2 <= ( col2 * ( col0 ) )
----
143
54
91

query II rowsort
SELECT DISTINCT col1 * + 38, + col0 * + col1 * - + col2 * col0 AS col1 FROM tab0
----
3078
-856575
38
-931491
798
-1589490

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT - 30 * col2 + - col0 DIV - 35 FROM tab1 WHERE NOT - col2 IN ( - + col0 + + 24 DIV - col1 * 49 DIV - col0 + - col0 * + 18 )
----
-1768
-2038
-2879

skipif mysql # not compatible
query I rowsort label-1197
SELECT - 30 * col2 + - col0 / - 35 FROM tab1 WHERE NOT - col2 IN ( - + col0 + + 24 / - col1 * 49 / - col0 + - col0 * + 18 )
----
-1768
-2038
-2879

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1199
SELECT ALL + - CAST( - col2 AS SIGNED ), col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-1199
SELECT ALL + - CAST ( - col2 AS INTEGER ), col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT + 63 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL MAX( - 51 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL MAX ( - 51 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT col2 DIV + 14 AS col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1202
SELECT col2 / + 14 AS col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT ALL col2 * + - 64 AS col0 FROM tab1
----
-3776
-4352
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT DISTINCT COUNT( - 8 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND ( + col2 + 91 * - 89 * + 62 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT COUNT ( - 8 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND ( + col2 + 91 * - 89 * + 62 + col0 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT DISTINCT 83 DIV - 71 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT 83 / - 71 AS col2 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) BETWEEN ( 99 ) AND - 15
----

query I rowsort
SELECT ALL - ( - - 95 ) AS col0 FROM tab2
----
-95
-95
-95

query II rowsort
SELECT - 25, 22 AS col1 FROM tab2
----
-25
22
-25
22
-25
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + 24 * - 98, + ( + + col1 ) col1 FROM tab1
----
-2305
47
-2338
14
-2347
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT + ( + + CAST( + col1 AS SIGNED ) ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1211
SELECT + ( + + CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT 78 * + ( 5 ) FROM tab1 AS cor0 WHERE ( + 18 + + 38 + - col2 * col1 / col1 ) NOT BETWEEN + col2 AND + col1 + + 29
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL - + 69 * + - COUNT( * ) + - MAX( ALL + col1 ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL - + 69 * + - COUNT ( * ) + - MAX ( ALL + col1 ) FROM tab0 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT + COUNT( * ) * - 85 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT + COUNT ( * ) * - 85 FROM tab2 AS cor0
----
-255

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1215
SELECT DISTINCT - + col2 / - CAST( NULL AS DECIMAL ) / col1 / + - 6 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - col2 * col1 * - - col2 AS col2 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1217
SELECT - CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1217
SELECT - CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT ALL col2 + - 78 DIV + 41 AS col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL col2 + - 78 / + 41 AS col2 FROM tab1 AS cor0
----
58
67
95

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 + - - 52, + 36 * - col0 FROM tab1 WHERE NULL NOT BETWEEN - + 21 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT MIN( - + col2 ) + - 5 AS col1 FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-1221
SELECT MIN ( - + col2 ) + - 5 AS col1 FROM tab1
----
-101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 + + col0 * - + ( + col0 ) col2 FROM tab1
----
-2627
-7251
-8307

query I rowsort
SELECT 59 + - - 30 - - col1 AS col1 FROM tab1
----
103
136
94

query I rowsort
SELECT 77 + + 89 AS col1 FROM tab2
----
166
166
166

query III rowsort
SELECT * FROM tab1 WHERE - - 73 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + 87 col1 FROM tab0
----
-72
0
10

query I rowsort
SELECT + 53 + + col1 AS col0 FROM tab2
----
104
120
130

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1228
SELECT - AVG ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1228
SELECT - AVG ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT ALL - MAX( ALL - col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL - MAX ( ALL - col1 ) FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT 7 * ( + 61 ) * COUNT( * ) FROM tab1
----
1281

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT 7 * ( + 61 ) * COUNT ( * ) FROM tab1
----
1281

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT DISTINCT + 74 DIV + - 97 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT + 74 / + - 97 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1235
SELECT - CAST( NULL AS DECIMAL ) * - 80 FROM tab0 cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col0 BETWEEN - col1 AND + 66 * + - col1 )
----

query I rowsort
SELECT - col0 * - 22 FROM tab2
----
1012
1408
1650

query II rowsort
SELECT + col0 * - col0, col1 FROM tab1
----
-2601
14
-7225
5
-8281
47

query I rowsort
SELECT - 92 * 58 FROM tab2
----
-5336
-5336
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT - MAX( DISTINCT + ( col0 ) ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1240
SELECT - MAX ( DISTINCT + ( col0 ) ) FROM tab0 cor0
----
-97

query I rowsort
SELECT DISTINCT - 61 + 94 * - col0 * col0 AS col1 FROM tab1
----
-244555
-679211
-778475

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT 98 DIV - 76 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1242
SELECT 98 / - 76 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 23 + + col1 FROM tab2 AS cor0
----
100
74
90

query I rowsort
SELECT DISTINCT + 20 + col2 FROM tab2 AS cor0
----
43
60
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * + - 79 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1246
SELECT + 22 / CAST( NULL AS DECIMAL ) + COUNT( * ), 5 AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
5

skipif mysql # not compatible
query II rowsort label-1246
SELECT + 22 / CAST ( NULL AS REAL ) + COUNT ( * ), 5 AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
5

query I rowsort
SELECT ALL + col0 - - - 74 + 29 AS col0 FROM tab1
----
40
46
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1248
SELECT - + CAST( - - 48 AS SIGNED ) / - 73 + - SUM( DISTINCT + - col1 ) AS col2 FROM tab1 WHERE 94 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT - + CAST ( - - 48 AS INTEGER ) / - 73 + - SUM ( DISTINCT + - col1 ) AS col2 FROM tab1 WHERE 94 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT ALL col2 - 60 + - col2 DIV + col1 FROM tab2
----
-2
-20
-37

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL col2 - 60 + - col2 / + col1 FROM tab2
----
-2
-20
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT + 38 + - ( COUNT( * ) ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-1250
SELECT + 38 + - ( COUNT ( * ) ) FROM tab2
----
35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( + 11 + - 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT - 67 * COUNT( * ) * 12 FROM tab1 AS cor0
----
-2412

skipif mysql # not compatible
query I rowsort label-1252
SELECT - 67 * COUNT ( * ) * 12 FROM tab1 AS cor0
----
-2412

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT + ( + SUM( col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1253
SELECT + ( + SUM ( col0 ) ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL - - 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query II rowsort
SELECT DISTINCT col2, + col0 AS col1 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 cor1 ON ( - + 52 ) < NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - MAX( + 74 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1259
SELECT - MAX ( + 74 ) FROM tab1 AS cor0
----
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 79 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1261
SELECT DISTINCT + - COUNT( * ) AS col0, COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 * + col0 + + + 57 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1261
SELECT DISTINCT + - COUNT ( * ) AS col0, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 * + col0 + + + 57 IS NOT NULL
----
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 94 * + col2 * + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1263
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( - 3, - 38, + 45 * col0, + 69, - col0 + - CAST( - + 54 AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-1263
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( - 3, - 38, + 45 * col0, + 69, - col0 + - CAST ( - + 54 AS INTEGER ) * - col1 )
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - col1 AS col1 FROM tab0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT + col2, + 19 AS col1 FROM tab0
----
10
19
47
19
99
19

query I rowsort
SELECT - 74 * + 32 FROM tab2
----
-2368
-2368
-2368

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT - MIN( ( - col2 ) ) * - - ( 30 ) FROM tab2
----
1740

skipif mysql # not compatible
query I rowsort label-1267
SELECT - MIN ( ( - col2 ) ) * - - ( 30 ) FROM tab2
----
1740

query I rowsort
SELECT + col0 + - - 41 + col1 AS col1 FROM tab1
----
106
131
179

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE + - col2 * - - 51 >= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT 75 + - ( ( - + COUNT( * ) ) ) AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1270
SELECT 75 + - ( ( - + COUNT ( * ) ) ) AS col1 FROM tab1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42 + col0 + ( - col0 ) * + col0 + + - 5 AS col2, - col0 col2 FROM tab2
----
-2033
-46
-3995
-64
-5513
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL SUM( - ( + - col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL SUM ( - ( + - col0 ) ) FROM tab1
----
227

query I rowsort
SELECT - 91 + 67 FROM tab0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 83 col2, col2 * + col0 AS col1 FROM tab1
----
83
4896
83
5015
83
6188

query II rowsort
SELECT - + col0 + - 72 + - - col1 * + col0, 73 * - col2 AS col2 FROM tab0 AS cor0
----
-72
-7227
1128
-3431
1668
-730

query II rowsort
SELECT ALL + 32 + - + 49, col2 AS col1 FROM tab1 AS cor0
----
-17
59
-17
68
-17
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( + col1 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT DISTINCT - - 40 + + COUNT( * ) + + SUM( 35 ) * + ( ( + 38 ) ) col0 FROM tab0 cor0
----
4033

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1278
SELECT DISTINCT - - 40 + + COUNT ( * ) + + SUM ( 35 ) * + ( ( + 38 ) ) col0 FROM tab0 cor0
----
4033

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT - 48 - - COUNT( DISTINCT - 8 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT - 48 - - COUNT ( DISTINCT - 8 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-47

query I rowsort
SELECT - 48 * - col0 AS col1 FROM tab2
----
2208
3072
3600

query I rowsort
SELECT ALL - ( + 14 ) * col0 - - + 99 FROM tab1 cor0
----
-1091
-1175
-615

query I rowsort
SELECT DISTINCT 90 * + col2 + + col2 FROM tab2 AS cor0
----
2093
3640
5278

query I rowsort
SELECT ALL col2 * + 75 + - col0 FROM tab1
----
4340
5009
7149

query I rowsort
SELECT ALL col2 - + - 6 * - 60 FROM tab2
----
-302
-320
-337

query I rowsort
SELECT + 48 + + 0 AS col2 FROM tab2
----
48
48
48

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

query II rowsort
SELECT DISTINCT 4, 33 AS col0 FROM tab1
----
4
33

query I rowsort
SELECT ALL 94 * + + col0 AS col2 FROM tab0
----
1410
8178
9118

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 69 + - col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * - 8 AS col0 FROM tab2 AS cor0
----
408
536
616

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL 67 * - + SUM( col0 ) FROM tab1
----
-15209

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL 67 * - + SUM ( col0 ) FROM tab1
----
-15209

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( + 14 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 13 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL + ( MIN( + col2 ) ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + ( MIN ( + col2 ) ) AS col0 FROM tab2
----
23

query II rowsort
SELECT col0 + + 14 * - 92, col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col0 + 19 - - - 28 FROM tab0 AS cor0
----
-106
-24
-96

query I rowsort
SELECT + 20 FROM tab2 AS cor0 WHERE NOT 46 IS NULL
----
20
20
20

query I rowsort
SELECT DISTINCT col2 + + ( + ( - + 14 ) ) + - 39 AS col0 FROM tab2 AS cor0
----
-13
-30
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT DISTINCT col1 * CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE col1 / col1 <= 93 * - - 53
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT col1 * CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE col1 / col1 <= 93 * - - 53
----
425
4277
714

query I rowsort
SELECT - + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-28
-94

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT + CAST( - + 83 AS SIGNED ) FROM tab1 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-1304
SELECT + CAST ( - + 83 AS INTEGER ) FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + 34 * - col2 AS col1 FROM tab0
----
-1598
-3366
-340

onlyif mysql # DIV for integer division: 
query I rowsort label-1306
SELECT + col1 DIV + 3 FROM tab2
----
17
22
25

skipif mysql # not compatible
query I rowsort label-1306
SELECT + col1 / + 3 FROM tab2
----
17
22
25

query I rowsort
SELECT ALL 53 * - - col0 AS col2 FROM tab0
----
4611
5141
795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT CAST( NULL AS SIGNED ) * + - col2 * col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1309
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - CAST( + CAST( + col0 AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1309
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - CAST ( + CAST ( + col0 AS INTEGER ) AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT DISTINCT - 84 + - COUNT( * ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT - 84 + - COUNT ( * ) FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL + - 46 * + 79 FROM tab1 AS cor0
----
-3634
-3634
-3634

query I rowsort
SELECT DISTINCT - 15 + - col0 FROM tab1 AS cor0
----
-100
-106
-66

query I rowsort
SELECT + 22 + - + col2 AS col0 FROM tab0 AS cor0
----
-25
-77
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT - COUNT( * ) * COUNT( * ) + 6 + + MIN( - 28 ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1314
SELECT - COUNT ( * ) * COUNT ( * ) + 6 + + MIN ( - 28 ) FROM tab2 AS cor0
----
-31

query I rowsort
SELECT ALL - col2 + + 50 AS col0 FROM tab1 AS cor0
----
-18
-46
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT DISTINCT - 78 * - COUNT( * ) * - 19 FROM tab1
----
-4446

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT - 78 * - COUNT ( * ) * - 19 FROM tab1
----
-4446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1317
SELECT + COUNT( col1 ) FROM tab1 WHERE CAST( NULL AS SIGNED ) * col1 + - 87 - - - 75 + 48 <> 51
----
0

skipif mysql # not compatible
query I rowsort label-1317
SELECT + COUNT ( col1 ) FROM tab1 WHERE CAST ( NULL AS INTEGER ) * col1 + - 87 - - - 75 + 48 <> 51
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1318
SELECT - + col2 / + - 33 - + + col2 * + ( col1 ) * 24 / + col2 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col0 + - - col1 + + + 2 AS col1 FROM tab1 AS cor0
----
140
67
92

query I rowsort
SELECT - + col2 * 52 AS col2 FROM tab2 AS cor0
----
-1196
-2080
-3016

query I rowsort
SELECT - 92 * - - col1 * + 11 FROM tab1 cor0
----
-14168
-47564
-5060

query I rowsort
SELECT - ( - 15 ) FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT - - col2 * - col1 + - + 51 AS col1 FROM tab2 AS cor0
----
-1224
-3131
-3937

query II rowsort
SELECT + - col1, col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1
98
-21
-11
-81
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-1325
SELECT ALL + - COUNT( * ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1325
SELECT ALL + - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col2, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT DISTINCT + MIN( DISTINCT + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col2 FROM tab1
----
59

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > NULL AND NOT + col2 * 92 <= NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 WHERE - 28 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1330
SELECT + CAST( NULL AS SIGNED ) + + SUM( DISTINCT col0 ) + + 60 FROM tab0 WHERE NOT + 63 BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1330
SELECT + CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT col0 ) + + 60 FROM tab0 WHERE NOT + 63 BETWEEN - col0 AND NULL
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + - col1 IN ( - col2, col0 )
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1332
SELECT DISTINCT COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL - + SUM( ALL - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL - + SUM ( ALL - col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < + col2
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1335
SELECT DISTINCT 24 DIV + 16 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT 24 / + 16 AS col2 FROM tab1
----
1

query II rowsort
SELECT ALL 80, - 65 AS col0 FROM tab0
----
80
-65
80
-65
80
-65

query I rowsort
SELECT DISTINCT col2 + + 43 FROM tab1
----
102
111
139

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT ALL - + col1 DIV col0 + + 14 AS col2 FROM tab2 AS cor0
----
13
13
14

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - + col1 / col0 + + 14 AS col2 FROM tab2 AS cor0
----
13
13
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 15 col0, + col1 * col2 + col2 AS col1 FROM tab0 AS cor0
----
15
198
15
220
15
3854

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND 3 * - - col1 + - + ( - col1 )
----

query I rowsort
SELECT DISTINCT - + col1 + + col1 + - col0 + col1 * + + col0 AS col0 FROM tab1 AS cor0
----
340
4186
663

onlyif mysql # DIV for integer division: 
query II rowsort label-1342
SELECT - col1 col2, - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-14
-1
-47
-1
-5
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1342
SELECT - col1 col2, - col0 / col0 AS col2 FROM tab1 AS cor0
----
-14
-1
-47
-1
-5
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1343
SELECT DISTINCT col0 col2, + CAST( NULL AS DECIMAL ) + col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1343
SELECT DISTINCT col0 col2, + CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL + ( + COUNT( * ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1344
SELECT ALL + ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 38 + col2 * 57 FROM tab2 AS cor0
----
1349
2318
3344

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + - col1 <= 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + + 8 AS col2 FROM tab1
----
13
22
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL - COUNT( * ) + - - COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1349
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT ALL + 54 * COUNT( DISTINCT + col0 ) AS col2 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL + 54 * COUNT ( DISTINCT + col0 ) AS col2 FROM tab0
----
162

query III rowsort
SELECT * FROM tab0 WHERE col0 / + - col2 >= - 36 - col1 * - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT COUNT( * ) + COUNT( DISTINCT - - col1 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1352
SELECT COUNT ( * ) + COUNT ( DISTINCT - - col1 ) AS col1 FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 + 7 col2 FROM tab2
----
67
67
67

query I rowsort
SELECT ALL ( + col2 ) AS col2 FROM tab0 WHERE - col1 * col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ( ( + COUNT( * ) ) ) + - 55 AS col2 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-1355
SELECT ( ( + COUNT ( * ) ) ) + - 55 AS col2 FROM tab0
----
-52

query I rowsort
SELECT - col1 * col2 + col1 + - - 54 AS col1 FROM tab1
----
-1276
-236
-3095

onlyif mysql # aggregate syntax: 
query II rowsort label-1357
SELECT - COUNT( * ) AS col2, + 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
38

skipif mysql # not compatible
query II rowsort label-1357
SELECT - COUNT ( * ) AS col2, + 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
38

query I rowsort
SELECT col2 - - + col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT - 49 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-1359
SELECT - 49 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-52

query II rowsort
SELECT col1 AS col2, - col1 AS col0 FROM tab1 cor0
----
14
-14
47
-47
5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT DISTINCT + 35 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT + 35 / - col2 AS col1 FROM tab2 AS cor0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 <= - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 18 AS col2, col0 * - col0 * - - ( + 36 ) col2 FROM tab2
----
18
-147456
18
-202500
18
-76176

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT + COUNT( * ) * + - 25 AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT + COUNT ( * ) * + - 25 AS col0 FROM tab1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1365
SELECT DISTINCT CAST( - + col0 AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1366
SELECT - 37 AS col0, - COUNT( * ) * - - 98 AS col2 FROM tab0
----
-37
-294

skipif mysql # not compatible
query II rowsort label-1366
SELECT - 37 AS col0, - COUNT ( * ) * - - 98 AS col2 FROM tab0
----
-37
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL + MAX( ALL - - col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL + MAX ( ALL - - col1 ) AS col0 FROM tab2
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - col1 / - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1369
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1369
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + 33 FROM tab2 AS cor0
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1371
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT col2 * + + 56 + + col0 AS col2 FROM tab2 AS cor0
----
1334
2304
3323

query I rowsort
SELECT + col1 + + + ( - 99 ) AS col0 FROM tab0 AS cor0
----
-18
-78
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT DISTINCT - 70 + - - col0 DIV 37 AS col1 FROM tab1 AS cor0
----
-68
-69

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT - 70 + - - col0 / 37 AS col1 FROM tab1 AS cor0
----
-68
-69

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

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE + col1 = NULL OR NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - 66 + + col2 AS col0 FROM tab2 cor0 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1378
SELECT DISTINCT + 88 DIV - COUNT( + - col0 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT + 88 / - COUNT ( + - col0 ) FROM tab1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1379
SELECT CAST( COUNT( * ) AS SIGNED ) * 8 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-1379
SELECT CAST ( COUNT ( * ) AS INTEGER ) * 8 FROM tab0
----
24

query I rowsort
SELECT DISTINCT - col0 + + col1 + + col1 FROM tab1
----
-23
-75
3

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 + col0 AS col2 FROM tab0
----
10
97
47
62
99
196

query III rowsort
SELECT * FROM tab1 WHERE - ( + 78 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1383
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT - + 59 + + CAST( NULL AS SIGNED ) + - 38 BETWEEN - - col0 / - - 38 + - - 76 AND + 38
----

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT - + 59 + + CAST ( NULL AS INTEGER ) + - 38 BETWEEN - - col0 / - - 38 + - - 76 AND + 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT + + MAX( DISTINCT + - 43 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1384
SELECT + + MAX ( DISTINCT + - 43 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL >= + col2 * + 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT DISTINCT + MIN( - - col1 ) + - MAX( ALL + - 38 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT + MIN ( - - col1 ) + - MAX ( ALL + - 38 ) FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + MIN( col1 ) + 68 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1387
SELECT + MIN ( col1 ) + 68 FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL COUNT( * ) + 90 * MIN( DISTINCT 22 ) FROM tab1 AS cor0
----
1983

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL COUNT ( * ) + 90 * MIN ( DISTINCT 22 ) FROM tab1 AS cor0
----
1983

query I rowsort
SELECT DISTINCT - - col1 - + + col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( 7 * - + col1 )
----

query I rowsort
SELECT - - col0 FROM tab0 WHERE col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT DISTINCT + COUNT( ALL 59 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT + COUNT ( ALL 59 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT col1 * - + 60 * + + col0 AS col1 FROM tab0
----
-109620
-5820
-72900

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT + 18 * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1395
SELECT + 18 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-1396
SELECT DISTINCT - - SUM( DISTINCT 53 ), - COUNT( - - col0 ) AS col0 FROM tab1 AS cor0
----
53
-3

skipif mysql # not compatible
query II rowsort label-1396
SELECT DISTINCT - - SUM ( DISTINCT 53 ), - COUNT ( - - col0 ) AS col0 FROM tab1 AS cor0
----
53
-3

query I rowsort
SELECT ALL - 97 * - 35 AS col0 FROM tab2 AS cor0
----
3395
3395
3395

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) * - 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1399
SELECT ALL CAST( + 32 AS SIGNED ) * SUM( + - col0 ) FROM tab2
----
-5920

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL CAST ( + 32 AS INTEGER ) * SUM ( + - col0 ) FROM tab2
----
-5920

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT DISTINCT MIN( 70 ) AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT MIN ( 70 ) AS col0 FROM tab2
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 59 col1 FROM tab0
----
-2773
-5841
-590

query I rowsort
SELECT ALL 34 * + col1 AS col2 FROM tab2 AS cor0
----
1734
2278
2618

query I rowsort
SELECT ALL 89 + + col2 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

query II rowsort
SELECT - 74, col1 FROM tab0
----
-74
1
-74
21
-74
81

query I rowsort
SELECT DISTINCT col0 + + col1 + - 19 AS col0 FROM tab0 AS cor0
----
77
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT + SUM( ALL + + 38 ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-1406
SELECT + SUM ( ALL + + 38 ) FROM tab1 AS cor0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT 11 DIV col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1407
SELECT 11 / col1 AS col1 FROM tab2 cor0
----
0
0
0

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

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

query I rowsort
SELECT ALL - 58 * - col1 + + col0 + + col2 - 68 AS col1 FROM tab1 AS cor0
----
2817
366
891

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 26 * - col2 * - col2 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + + - col0 + col2 col0 FROM tab2 cor0
----
13
6
7

query I rowsort
SELECT + 15 AS col0 FROM tab1 AS cor0 WHERE + 36 * - col2 * col1 IS NOT NULL
----
15
15
15

query I rowsort
SELECT - ( 24 ) FROM tab2 WHERE NULL NOT IN ( - 57 + - col0, col1, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT - COUNT( DISTINCT + 70 ) AS col2 FROM tab2 WHERE NOT + col2 <> col2
----
-1

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - COUNT ( DISTINCT + 70 ) AS col2 FROM tab2 WHERE NOT + col2 <> col2
----
-1

query I rowsort
SELECT col2 + 77 FROM tab0
----
124
176
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1417
SELECT - 57 + COUNT( * ), - 69 col1 FROM tab1
----
-54
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1417
SELECT - 57 + COUNT ( * ), - 69 col1 FROM tab1
----
-54
-69

query I rowsort
SELECT - col0 * 12 AS col1 FROM tab2
----
-552
-768
-900

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + - col2 <= 67
----

query I rowsort
SELECT ALL + col1 * - - ( + - col0 ) AS col1 FROM tab2 cor0
----
-2346
-4928
-5025

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

query II rowsort
SELECT + col0 AS col0, + col1 * col1 AS col0 FROM tab0
----
15
6561
87
441
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1423
SELECT ALL - col2 AS col2, CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-1423
SELECT ALL - col2 AS col2, CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab2 cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * ( - col1 ) <= + - ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * ( - col1 ) <= + - ( + col2 )
----
0

query I rowsort
SELECT col2 * - + 67 AS col2 FROM tab1 AS cor0
----
-3953
-4556
-6432

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 76 NOT BETWEEN ( - col0 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT + COUNT( * ) * - 35 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT + COUNT ( * ) * - 35 FROM tab2 AS cor0
----
-105

query I rowsort
SELECT DISTINCT + ( - + col2 ) + + + 30 - + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-168
-64
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - col1 * - 15 IN ( 42 * + 40, col2, + col1, 94 - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( - col0 ) - col2 FROM tab0 AS cor0 WHERE NOT - 72 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 57 AS col1 FROM tab2 cor0
----
-57

query II rowsort
SELECT ALL - col1, - 56 * - col1 AS col1 FROM tab0 AS cor0
----
-1
56
-21
1176
-81
4536

query II rowsort
SELECT - 35, - 21 AS col1 FROM tab0 WHERE NOT + + col1 * ( + + 5 ) / - + 65 IS NULL
----
-35
-21
-35
-21
-35
-21

query I rowsort
SELECT 89 * - col2 * - col0 FROM tab1
----
435744
446335
550732

query I rowsort
SELECT DISTINCT - 99 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL ( + - SUM( col0 ) ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL ( + - SUM ( col0 ) ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NULL < + col2 + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1440
SELECT * FROM tab0 WHERE NOT - 47 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1440
SELECT * FROM tab0 WHERE NOT - 47 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + - ( + col0 ) * + ( 58 )
----

query I rowsort
SELECT - col2 / col0 * + - col0 + + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND + 79
----

query I rowsort
SELECT DISTINCT col1 * + col2 * 56 FROM tab1 AS cor0 WHERE ( ( - 40 / + col0 IS NOT NULL ) )
----
16520
178976
75264

query I rowsort
SELECT DISTINCT col1 / - col2 FROM tab1 AS cor0 WHERE ( col1 ) = col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT SUM( - col0 ) + - COUNT( * ) * + 27 AS col1 FROM tab2
----
-266

skipif mysql # not compatible
query I rowsort label-1445
SELECT SUM ( - col0 ) + - COUNT ( * ) * + 27 AS col1 FROM tab2
----
-266

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT - 97 DIV - - col2 AS col2 FROM tab0 cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 97 / - - col2 AS col2 FROM tab0 cor0
----
-2
-9
0

query I rowsort
SELECT DISTINCT + col1 + 38 FROM tab0 AS cor0
----
119
39
59

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

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + - col0 - - + col2 + + 29 FROM tab2 AS cor0
----
12
5
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1451
SELECT DISTINCT * FROM tab0 WHERE - CAST( + 38 AS SIGNED ) BETWEEN NULL AND col1 * + col2 + - col1
----

skipif mysql # not compatible
query III rowsort label-1451
SELECT DISTINCT * FROM tab0 WHERE - CAST ( + 38 AS INTEGER ) BETWEEN NULL AND col1 * + col2 + - col1
----

query I rowsort
SELECT DISTINCT 86 * - col1 AS col2 FROM tab2
----
-4386
-5762
-6622

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

query I rowsort
SELECT + 5 - + col1 AS col0 FROM tab0
----
-16
-76
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE - - 67 * + - 92 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1455
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE - - 67 * + - 92 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1456
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1456
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + col2 AS col0, + 78 col1 FROM tab1 AS cor0
----
144
78
147
78
159
78

query I rowsort
SELECT ALL + 51 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 60 FROM tab2 WHERE NULL <> + col2
----

query I rowsort
SELECT - - col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
4368
510
765

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 57 * - col0 + - col1 * + 38 AS col2 FROM tab1 AS cor0
----
-3439
-5035
-6973

query I rowsort
SELECT ALL 93 FROM tab2 AS cor0 WHERE - col2 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1464
SELECT - + col0 * - col0 col0, col0 DIV - + ( + + 30 ) FROM tab2 AS cor0
----
2116
-1
4096
-2
5625
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1464
SELECT - + col0 * - col0 col0, col0 / - + ( + + 30 ) FROM tab2 AS cor0
----
2116
-1
4096
-2
5625
-2

query II rowsort
SELECT ALL col1 AS col2, 30 AS col2 FROM tab0
----
1
30
21
30
81
30

query I rowsort
SELECT - 45 + + 87 + 13 - - 2 AS col1 FROM tab2
----
57
57
57

query I rowsort
SELECT col0 * + col2 + + col0 * col0 FROM tab1 AS cor0
----
12240
14469
7497

query I rowsort
SELECT ALL + - 18 * - 41 * - col0 + - col2 - - col1 + + ( col2 ) FROM tab1 AS cor0
----
-37624
-62725
-67111

query II rowsort
SELECT DISTINCT col2 + col0 + + col1 AS col0, col2 FROM tab1 AS cor0
----
149
59
161
96
206
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < - ( 86 )
----

query I rowsort
SELECT ( + + col2 ) * + col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT + 11 * - 12 * - MAX( DISTINCT col0 ) * 97 FROM tab2
----
960300

skipif mysql # not compatible
query I rowsort label-1472
SELECT + 11 * - 12 * - MAX ( DISTINCT col0 ) * 97 FROM tab2
----
960300

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT + SUM( ALL + col0 ) * COUNT( * ) AS col1 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT + SUM ( ALL + col0 ) * COUNT ( * ) AS col1 FROM tab1
----
681

query I rowsort
SELECT ALL 77 + col1 FROM tab0
----
158
78
98

query I rowsort
SELECT + + 79 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + col0 - - 65 + - 77 AS col1 FROM tab0 AS cor0
----
3
75
85

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NULL = + col1 * + col2
----

query I rowsort
SELECT 85 * col0 + + 75 + - 16 + - col1 FROM tab2 AS cor0
----
3918
5422
6367

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
6

query II rowsort
SELECT DISTINCT + col1 - + col1 AS col1, 41 FROM tab2 cor0
----
0
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT + COUNT( * ) + - 40 AS col0 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-1481
SELECT + COUNT ( * ) + - 40 AS col0 FROM tab2
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col2 col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL + col2 * - + 36 AS col2 FROM tab2
----
-1440
-2088
-828

query I rowsort
SELECT ALL - col0 * - 73 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 69, - col1 * - col1 / + 52 FROM tab1 AS cor0 WHERE NOT ( - - 9 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT DISTINCT - MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT - MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL 69 * - - COUNT( * ) AS col2 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL 69 * - - COUNT ( * ) AS col2 FROM tab0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1488
SELECT ALL - 26 col2 FROM tab1 WHERE - col0 + col0 NOT IN ( CAST( + col2 AS SIGNED ), + 50, 38 )
----
-26
-26
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1488
SELECT ALL - 26 col2 FROM tab1 WHERE - col0 + col0 NOT IN ( CAST ( + col2 AS INTEGER ), + 50, 38 )
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1489
SELECT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NULL >= - CAST( 85 AS SIGNED ) * 31
----

skipif mysql # not compatible
query IIIIII rowsort label-1489
SELECT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NULL >= - CAST ( 85 AS INTEGER ) * 31
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1490
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST( - - col1 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1490
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT ALL - - col2 DIV - + 30 + 65 + - 37 AS col1 FROM tab2 cor0
----
27
27
28

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL - - col2 / - + 30 + 65 + - 37 AS col1 FROM tab2 cor0
----
27
27
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1492
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1492
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( col2 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + col1 * - 0 AS col2 FROM tab1 AS cor0 WHERE NOT 24 * col1 > + col1
----

query II rowsort
SELECT DISTINCT - - col0 AS col1, 0 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT DISTINCT + - COUNT( DISTINCT - col0 ), 78 AS col2 FROM tab1 AS cor0
----
-3
78

skipif mysql # not compatible
query II rowsort label-1495
SELECT DISTINCT + - COUNT ( DISTINCT - col0 ), 78 AS col2 FROM tab1 AS cor0
----
-3
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1496
SELECT + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 WHERE NOT + - col2 > - + 95
----
1

skipif mysql # not compatible
query I rowsort label-1496
SELECT + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + - col2 > - + 95
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1497
SELECT ALL col0 DIV + + col1 AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL col0 / + + col1 AS col0 FROM tab0
----
0
4
97

query III rowsort
SELECT * FROM tab2 WHERE - 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1499
SELECT + 3 DIV MAX( - 17 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1499
SELECT + 3 / MAX ( - 17 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL - - 37 + 38 + COUNT( - 62 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - - 37 + 38 + COUNT ( - 62 ) FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT ALL + - ( - CAST( NULL AS SIGNED ) ) + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT COUNT( * ) + + + 85 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1503
SELECT COUNT ( * ) + + + 85 FROM tab1 AS cor0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT ALL - col0 DIV - 48 + - col2 FROM tab2 AS cor0
----
-23
-39
-57

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - col0 / - 48 + - col2 FROM tab2 AS cor0
----
-23
-39
-57

query I rowsort
SELECT col0 + - col2 + 64 * + col1 FROM tab2
----
3287
4305
4952

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT ALL - 51 * - - 53 + + - COUNT( * ) + + 31 * - COUNT( * ) FROM tab0
----
-2799

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL - 51 * - - 53 + + - COUNT ( * ) + + 31 * - COUNT ( * ) FROM tab0
----
-2799

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 93 / + 21 - + col2 * - + 50 NOT IN ( 17 + 5 + + col1 * - col0, - col0 * - 42 * + col1, - 84 )
----

query I rowsort
SELECT - col1 * - - 44 FROM tab0
----
-3564
-44
-924

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT ALL + 26 + 0 * - - COUNT( + + col1 ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL + 26 + 0 * - - COUNT ( + + col1 ) FROM tab0 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1512
SELECT DISTINCT - COUNT( * ) AS col2, - 48 FROM tab0 AS cor0
----
-3
-48

skipif mysql # not compatible
query II rowsort label-1512
SELECT DISTINCT - COUNT ( * ) AS col2, - 48 FROM tab0 AS cor0
----
-3
-48

query I rowsort
SELECT 92 * - col1 FROM tab0 AS cor0
----
-1932
-7452
-92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( ( NOT col0 - - 67 * + 63 IS NULL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-1515
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( ( NOT col0 - - 67 * + 63 IS NULL ) )
----
-3

query I rowsort
SELECT ALL 6 + - col2 * - 17 AS col0 FROM tab0
----
1689
176
805

query I rowsort
SELECT ALL col2 - + 75 * - 70 * - + col0 FROM tab2
----
-241477
-335960
-393692

query I rowsort
SELECT - - col2 + - col1 * + col0 FROM tab1 WHERE NOT 6 - - col1 + - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 60 * - 1 FROM tab1
----
-60

query I rowsort
SELECT + 47 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT SUM( ALL 50 ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-1521
SELECT SUM ( ALL 50 ) FROM tab0
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, 38 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT COUNT( ALL + col1 ) * - 73 col0 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1523
SELECT COUNT ( ALL + col1 ) * - 73 col0 FROM tab1 AS cor0
----
-219

query I rowsort
SELECT ALL AVG ( ALL 22 ) / - 41 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 + 9 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 89 + + 90 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + 12 * + 44 FROM tab2
----
528
528
528

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT + 63 * COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
567

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT + 63 * COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
567

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT ALL - - col1 AS col1, col2 * col0 * + - col2 * + col1 * col0 FROM tab0 cor0
----
1
-92217609
21
-15894900
81
-40259025

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT ALL + col2 / - - col0 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + col1 col1 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 - + 41 + col1 + col2 col0 FROM tab2
----
33
76
84

query I rowsort
SELECT col2 + + - col1 + - 42 * - + 12 * + 20 FROM tab1
----
10101
10134
10162

query I rowsort
SELECT ALL + 8 * - col0 + - ( + 38 ) + - 16 FROM tab1
----
-462
-734
-782

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 99 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1537
SELECT ALL col0 - - 38 AS col0, - 2 DIV col1 FROM tab0
----
125
0
135
-2
53
0

skipif mysql # not compatible
query II rowsort label-1537
SELECT ALL col0 - - 38 AS col0, - 2 / col1 FROM tab0
----
125
0
135
-2
53
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT + + col0 DIV - col2 + - ( col0 ) FROM tab1 AS cor0
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-1538
SELECT + + col0 / - col2 + - ( col0 ) FROM tab1 AS cor0
----
-51
-86
-92

query I rowsort
SELECT ALL - + 87 + 16 FROM tab0 AS cor0 WHERE NOT ( + col2 ) / col1 <= - col2 * + 52
----
-71
-71
-71

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 71 * + col2 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT DISTINCT + COUNT( * ), COUNT( * ) col0 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1542
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) col0 FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1543
SELECT DISTINCT + CAST( + 19 AS SIGNED ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT + CAST ( + 19 AS INTEGER ) FROM tab0
----
19

query III rowsort
SELECT * FROM tab2 WHERE NOT - 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1545
SELECT 14, + COUNT( * ) * + 55 AS col1 FROM tab1
----
14
165

skipif mysql # not compatible
query II rowsort label-1545
SELECT 14, + COUNT ( * ) * + 55 AS col1 FROM tab1
----
14
165

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL BETWEEN col2 AND NULL
----

query II rowsort
SELECT ALL + col2, 38 AS col1 FROM tab2
----
23
38
40
38
58
38

query I rowsort
SELECT AVG ( - 20 ) * 16 AS col1 FROM tab0 WHERE NOT ( NULL ) < ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1549
SELECT * FROM tab1 WHERE + CAST( + col1 AS SIGNED ) * - 22 + - 70 > 29
----

skipif mysql # not compatible
query III rowsort label-1549
SELECT * FROM tab1 WHERE + CAST ( + col1 AS INTEGER ) * - 22 + - 70 > 29
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 * col1 + 61 ) >= NULL
----

query I rowsort
SELECT DISTINCT + 12 FROM tab0 WHERE 4 IS NULL
----

query I rowsort
SELECT ALL ( col0 ) + + 20 AS col2 FROM tab1
----
105
111
71

query I rowsort
SELECT col0 * - 75 AS col1 FROM tab2
----
-3450
-4800
-5625

query III rowsort
SELECT * FROM tab2 WHERE NOT 19 * col1 NOT IN ( 62 / 87 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT col0 DIV col0 col1 FROM tab1 WHERE + col1 NOT BETWEEN ( col0 + col1 ) AND col2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1555
SELECT col0 / col0 col1 FROM tab1 WHERE + col1 NOT BETWEEN ( col0 + col1 ) AND col2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1556
SELECT * FROM tab0 WHERE col1 * - CAST( NULL AS SIGNED ) + + col1 NOT IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-1556
SELECT * FROM tab0 WHERE col1 * - CAST ( NULL AS INTEGER ) + + col1 NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1557
SELECT CAST( 31 AS SIGNED ) * col0 FROM tab1
----
1581
2635
2821

skipif mysql # not compatible
query I rowsort label-1557
SELECT CAST ( 31 AS INTEGER ) * col0 FROM tab1
----
1581
2635
2821

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1558
SELECT 83 * ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 97 + 8 FROM tab1
----
105
105
105

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( + 43 ) = + ( - col0 ) * - ( - col0 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 96 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + 43 FROM tab0
----
130
140
58

query I rowsort
SELECT DISTINCT + 97 * 0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 * 67 + col1 / col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 47 ) + - col2 AS col2 FROM tab0
----
-52
0
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1568
SELECT ALL + CAST( NULL AS SIGNED ) * - 30 col1 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 + col0 ) IS NULL
----

query I rowsort
SELECT - col1 * + col2 + 74 FROM tab1 WHERE NOT NULL = + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * col1 <> - col2 - - col2
----

query I rowsort
SELECT col1 + + ( col0 ) FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + 60 + 56 * col0
----

query I rowsort
SELECT 32 * + col2 + ( 60 ) FROM tab0 cor0
----
1564
3228
380

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 + col0 * + col1 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 95 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT - MAX( ALL col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1579
SELECT - MAX ( ALL col1 ) FROM tab1 cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 9 * 97 ) = + ( - col0 ) + + 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) NOT IN ( col1 * + col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1582
SELECT - 93 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1582
SELECT - 93 / - col0 AS col2 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT - - col1 * 12 FROM tab1 AS cor0
----
168
564
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT - - CAST( col0 AS SIGNED ) FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1584
SELECT - - CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT ALL col0 DIV 62 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL col0 / 62 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL col2 * 88 FROM tab0 cor0 WHERE NULL > + 27 - - 4
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1587
SELECT 32 DIV COUNT( * ) DIV 35 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1587
SELECT 32 / COUNT ( * ) / 35 AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT - 39 > - 23 / + ( - 97 )
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN - col2 * - 82 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
178929
2100
9801

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - 67 )
----

query I rowsort
SELECT - col0 * - col1 * + 86 FROM tab0 AS cor0
----
104490
157122
8342

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1594
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 16 / CAST( col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-1594
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 16 / CAST ( col2 AS INTEGER ) = NULL
----

query I rowsort
SELECT + 24 * + - col1 - 68 * col0 AS col0 FROM tab1 AS cor0
----
-3804
-5900
-7316

query I rowsort
SELECT ALL - 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 46 * 75 IS NOT NULL
----

query II rowsort
SELECT 30 AS col2, col2 * + + 97 AS col0 FROM tab0
----
30
4559
30
9603
30
970

onlyif mysql # DIV for integer division: 
query II rowsort label-1599
SELECT 36, col0 + - 78 DIV 97 AS col0 FROM tab1
----
36
51
36
85
36
91

skipif mysql # not compatible
query II rowsort label-1599
SELECT 36, col0 + - 78 / 97 AS col0 FROM tab1
----
36
51
36
85
36
91

query II rowsort
SELECT col1, + col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( ( 0 ) ) AND NULL
----

query II rowsort
SELECT + 98 AS col0, - 92 AS col0 FROM tab0 AS cor0
----
98
-92
98
-92
98
-92

query I rowsort
SELECT DISTINCT - + col0 + - 58 FROM tab0 AS cor0
----
-145
-155
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 61 + - + col2 col1 FROM tab1 AS cor0
----
3015
5126
5483

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + col0 ) NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = ( - ( - col0 ) )
----

query I rowsort
SELECT + 25 + - + 1 AS col1 FROM tab1
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT DISTINCT CAST( - + col2 AS SIGNED ) * + + ( col0 ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) * + + ( col0 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT col2 * - 45 + 49 FROM tab0
----
-2066
-401
-4406

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT - ( + - SUM( + 86 ) ) + - 67 + COUNT( * ) FROM tab0
----
194

skipif mysql # not compatible
query I rowsort label-1610
SELECT - ( + - SUM ( + 86 ) ) + - 67 + COUNT ( * ) FROM tab0
----
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1611
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + + + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + + + col0 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( - - col2 * - 99 ) AND - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT 50 * - ( + - MIN( DISTINCT + + 10 ) ) col0 FROM tab2
----
500

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1613
SELECT 50 * - ( + - MIN ( DISTINCT + + 10 ) ) col0 FROM tab2
----
500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1614
SELECT - CAST( + SUM( DISTINCT col2 ) AS SIGNED ) FROM tab0 WHERE NULL NOT IN ( + - CAST( - - col1 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT - CAST ( + SUM ( DISTINCT col2 ) AS INTEGER ) FROM tab0 WHERE NULL NOT IN ( + - CAST ( - - col1 AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 56 FROM tab0 AS cor0 WHERE NOT + 39 >= col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT DISTINCT col1 DIV - - col1 - col2 * + 9 * 67 FROM tab2 AS cor0
----
-13868
-24119
-34973

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT col1 / - - col1 - col2 * + 9 * 67 FROM tab2 AS cor0
----
-13868
-24119
-34973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 * - 26 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1618
SELECT ALL col2 + CAST( NULL AS SIGNED ) + + - col2 * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE - 23 / + col1 NOT BETWEEN col0 AND 97 + 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL + 40 - COUNT( * ) AS col0 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL + 40 - COUNT ( * ) AS col0 FROM tab0
----
37

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

query I rowsort
SELECT ALL - + col1 * 1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + + col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 13 ) * col1 + 32 col2 FROM tab0 AS cor0 WHERE NOT - 64 + - - 42 <= NULL
----

query I rowsort
SELECT ( + - 55 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 67, col0 col1 FROM tab2 cor0
----
67
46
67
64
67
75

query I rowsort
SELECT ALL + - ( + 27 ) FROM tab1 cor0
----
-27
-27
-27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT MAX( ALL + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1629
SELECT MAX ( ALL + col2 ) AS col1 FROM tab0
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1630
SELECT DISTINCT + col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE 71 IN ( - + col2 + + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE 71 IN ( - + col2 + + - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT ALL 62 DIV + 36 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL 62 / + 36 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, col2 col1 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( - - 91 ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL + - 71 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) < + col1 * + col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT DISTINCT - 36 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 - + ( + col2 ) <> ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT - 36 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 - + ( + col2 ) <> ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col2 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col2 ) >= NULL
----
0

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE - 78 + + col1 / 20 * + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT 84 + - SUM( + col1 ) + - COUNT( * ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1640
SELECT 84 + - SUM ( + col1 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-22

query I rowsort
SELECT - 23 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1642
SELECT ALL + - 35 + + + ( + - col1 ) + + ( ( CAST( col1 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-35
-35
-35

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

query II rowsort
SELECT + ( - 82 ) AS col0, - col1 - - + col1 * + col2 AS col0 FROM tab1 AS cor0
----
-82
1330
-82
290
-82
3149

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

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

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NOT - col0 IN ( + 99, + col1 )
----
1
21
81

query I rowsort
SELECT - 82 AS col2 FROM tab0 WHERE ( - col2 + + 68 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 84 * + 9 FROM tab0
----
756

query I rowsort
SELECT ALL - col2 * 48 FROM tab2
----
-1104
-1920
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT + + MAX( - + 22 ) AS col1 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT + + MAX ( - + 22 ) AS col1 FROM tab1 AS cor0
----
-22

query II rowsort
SELECT + ( + col1 ), 12 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT + - col2 DIV + col0 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1652
SELECT + - col2 / + col0 + + col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT COUNT( DISTINCT - col1 ) * + 83 + - MAX( DISTINCT 3 ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-1653
SELECT COUNT ( DISTINCT - col1 ) * + 83 + - MAX ( DISTINCT 3 ) FROM tab1 AS cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT DISTINCT SUM( - 44 ) AS col1 FROM tab1, tab2 AS cor0
----
-396

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT SUM ( - 44 ) AS col1 FROM tab1, tab2 AS cor0
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT MIN( DISTINCT + - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1655
SELECT MIN ( DISTINCT + - col0 ) FROM tab2
----
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - 73 + - - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1657
SELECT DISTINCT + col0 + - + col2 + + col2 AS col2 FROM tab1 WHERE NULL >= ( - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT + col0 + - + col2 + + col2 AS col2 FROM tab1 WHERE NULL >= ( - + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT COUNT( DISTINCT + 27 ) * - 59 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1658
SELECT COUNT ( DISTINCT + 27 ) * - 59 FROM tab2 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1659
SELECT ALL + 53 * - - col0 + - col1 + + - ( + - CAST( + - col0 AS SIGNED ) ) * + - col2 AS col0 FROM tab0 cor0
----
1419
14743
5460

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL + 53 * - - col0 + - col1 + + - ( + - CAST ( + - col0 AS INTEGER ) ) * + - col2 AS col0 FROM tab0 cor0
----
1419
14743
5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT ALL CAST( + 93 AS SIGNED ) FROM tab2 AS cor0
----
93
93
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT DISTINCT + COUNT( 32 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1661
SELECT DISTINCT + COUNT ( 32 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT - MIN( - col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-1662
SELECT - MIN ( - col0 ) FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1663
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1663
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - + col2 * - col1 * + col1 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT - - 94 * col0 AS col2 FROM tab1 AS cor0
----
4794
7990
8554

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1667
SELECT DISTINCT + 84 * + + ( + ( + CAST( NULL AS SIGNED ) ) ) * - MAX( + 47 ) * 75 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT + 84 * + + ( + ( + CAST ( NULL AS INTEGER ) ) ) * - MAX ( + 47 ) * 75 FROM tab2
----
NULL

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL <> 61
----

query I rowsort
SELECT DISTINCT col2 * - col0 * + ( - col0 ) FROM tab0
----
10575
75690
931491

query I rowsort
SELECT ALL + 90 * + col1 FROM tab1
----
1260
4230
450

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT ALL 93 DIV - - 85 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL 93 / - - 85 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - 57 * + 68 * col2 FROM tab0
----
-182172
-383724
-38760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1673
SELECT ALL col1 / ( - - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL col1 / ( - - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT + MAX( - 95 ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-1674
SELECT + MAX ( - 95 ) FROM tab0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT - col2 DIV col2 * - 74 + col1 col1 FROM tab1
----
121
79
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1675
SELECT - col2 / col2 * - 74 + col1 col1 FROM tab1
----
121
79
88

query I rowsort
SELECT 32 + - - col1 AS col0 FROM tab2 cor0
----
109
83
99

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE + 45 + - 86 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col1 * - col1 + - - col1 AS col1 FROM tab0 AS cor0
----
2
462
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT DISTINCT - - SUM( DISTINCT 61 ) + + COUNT( * ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT - - SUM ( DISTINCT 61 ) + + COUNT ( * ) FROM tab1 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT ALL - - 62 + + SUM( DISTINCT - ( - + col0 ) ) FROM tab0 cor0
----
261

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - - 62 + + SUM ( DISTINCT - ( - + col0 ) ) FROM tab0 cor0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT - col2 * - 70 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + + ( + ( - col1 ) ) * col1 + 93 - - col1 FROM tab1 AS cor0
----
-2069
-89
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT - - CAST( - - 96 AS SIGNED ) - col2 AS col1 FROM tab0 cor0
----
-3
49
86

skipif mysql # not compatible
query I rowsort label-1683
SELECT - - CAST ( - - 96 AS INTEGER ) - col2 AS col1 FROM tab0 cor0
----
-3
49
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col1 = + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT DISTINCT + MIN( col1 ) + + - SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT + MIN ( col1 ) + + - SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT DISTINCT - 96 - 54 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT - 96 - 54 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT DISTINCT + - col0 - - col1 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT COUNT( DISTINCT - 36 ) + ( 2 ) * 7 + + - COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT COUNT ( DISTINCT - 36 ) + ( 2 ) * 7 + + - COUNT ( * ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL - 68 * + COUNT( * ) - COUNT( * ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - 68 * + COUNT ( * ) - COUNT ( * ) FROM tab2
----
-207

query I rowsort
SELECT - - col2 FROM tab0 WHERE - - col1 NOT BETWEEN - + ( col2 ) + - - col2 AND NULL
----

query II rowsort
SELECT ALL - col1, 75 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 * - col2 * ( col2 ) FROM tab2 AS cor0
----
-102400
-24334
-252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - col0 + + 60 col1 FROM tab1
----
14
9
47
-31
5
-25

query I rowsort
SELECT DISTINCT 22 * - ( 96 ) * - + col1 * + - col2 AS col0 FROM tab0 cor0
----
-209088
-443520
-8040384

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

query I rowsort
SELECT ALL + 6 * - 65 FROM tab2 AS cor0
----
-390
-390
-390

query II rowsort
SELECT DISTINCT col1 * - 40 * - col2 AS col1, col0 FROM tab2 AS cor0
----
123200
64
155440
75
46920
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL - SUM( DISTINCT - + 55 ) * - ( - 3 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
165

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL - SUM ( DISTINCT - + 55 ) * - ( - 3 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT DISTINCT 69 * - + COUNT( * ) FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT 69 * - + COUNT ( * ) FROM tab0
----
-207

query I rowsort
SELECT 24 * - ( + + col2 ) * - col0 FROM tab0
----
16920
20880
230472

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 42 + col2 + col0 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT DISTINCT MIN( + - 68 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT MIN ( + - 68 ) FROM tab0
----
-68

query II rowsort
SELECT DISTINCT + col0 + + 92 AS col0, - col1 + - - col0 AS col2 FROM tab2
----
138
-5
156
-13
167
8

query II rowsort
SELECT ALL 44 + + - 75, + col0 FROM tab1 AS cor0
----
-31
51
-31
85
-31
91

query I rowsort
SELECT ALL + col0 * - col0 + - - col0 AS col0 FROM tab0 cor0
----
-210
-7482
-9312

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1707
SELECT ALL - 73 DIV + + COUNT( * ) col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1707
SELECT ALL - 73 / + + COUNT ( * ) col0 FROM tab1 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 86 + + 40 * + 78 * + 55, ( + - col2 ) col1 FROM tab2 AS cor0
----
171686
-23
171686
-40
171686
-58

query I rowsort
SELECT - + col2 + 44 * 7 FROM tab2 cor0
----
250
268
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL - CAST( - - col1 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - + COUNT( * ) * 92 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-1711
SELECT - + COUNT ( * ) * 92 FROM tab2 AS cor0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1712
SELECT + col0, 30 - + CAST( NULL AS SIGNED ) * - ( col2 ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1712
SELECT + col0, 30 - + CAST ( NULL AS INTEGER ) * - ( col2 ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT COUNT( * ) * - 56 FROM tab1 cor0
----
-168

skipif mysql # not compatible
query I rowsort label-1714
SELECT COUNT ( * ) * - 56 FROM tab1 cor0
----
-168

query I rowsort
SELECT DISTINCT + col0 + + + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1716
SELECT ALL col1 DIV col1 + + - col1 - - CAST( - - 56 AS SIGNED ) + + col2 + + + col0 + + col2 * - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-667
-737
-9351

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL col1 / col1 + + - col1 - - CAST ( - - 56 AS INTEGER ) + + col2 + + + col0 + + col2 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-667
-737
-9351

query I rowsort
SELECT ALL + col1 - + 13 FROM tab2 cor0
----
38
54
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL COUNT( * ) - - - 55 + - + COUNT( * ) AS col0 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL COUNT ( * ) - - - 55 + - + COUNT ( * ) AS col0 FROM tab1
----
-55

query I rowsort
SELECT DISTINCT - col1 * 19 FROM tab1
----
-266
-893
-95

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + ( col0 ) + + - 57 NOT IN ( + - 56, 6, - col1, + 3 * + 45 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 * col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( - + col1 ) * - 36 AS col0 FROM tab0 AS cor0
----
2916
36
756

query I rowsort
SELECT + + ( - + 71 ) FROM tab0 cor0
----
-71
-71
-71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT IN ( + 49, - 95 + + + col0 * + col0, + col1 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 * + col0 * + col2 <> + + 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - - ( - 74 ) AS col1, col0 AS col0 FROM tab1 AS cor0
----
-74
51
-74
85
-74
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1728
SELECT - SUM( + col0 ), SUM( col1 ) FROM tab0 WHERE NOT ( + - col0 ) IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1728
SELECT - SUM ( + col0 ), SUM ( col1 ) FROM tab0 WHERE NOT ( + - col0 ) IS NOT NULL
----
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 - - col1 / - col1 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1730
SELECT ALL col2 AS col2, - col1 / - CAST( NULL AS SIGNED ) + + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1730
SELECT ALL col2 AS col2, - col1 / - CAST ( NULL AS INTEGER ) + + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT COUNT( * ) + + 75 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1731
SELECT COUNT ( * ) + + 75 FROM tab1
----
78

query I rowsort
SELECT - col2 + + 55 AS col1 FROM tab2
----
-3
15
32

query I rowsort
SELECT ( + + ( - col2 ) ) + + col0 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, + ( col0 ) FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT 85 + - - col2 FROM tab0
----
132
184
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT - COUNT( * ) + - + 89 AS col1 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1736
SELECT - COUNT ( * ) + - + 89 AS col1 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE - col0 + + + col1 <= ( col1 )
----
59
68
96

query I rowsort
SELECT ALL col2 + - - col2 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - + 76 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 84 + - 36 AS col1 FROM tab2
----
-120

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT + col0 - - 61 - col1 * - col2 FROM tab2
----
1280
3205
4022

query I rowsort
SELECT + col2 + - + col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL - + 44 * - 13 * col0 FROM tab1 AS cor0
----
29172
48620
52052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT DISTINCT CAST( 50 AS SIGNED ) * - + col0 FROM tab0 cor0
----
-4350
-4850
-750

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT CAST ( 50 AS INTEGER ) * - + col0 FROM tab0 cor0
----
-4350
-4850
-750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT DISTINCT - 0 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - CAST( - col0 AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT - 0 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - CAST ( - col0 AS INTEGER ) AND NULL
----
0

query I rowsort
SELECT col1 + 4 AS col0 FROM tab1 AS cor0
----
18
51
9

query I rowsort
SELECT DISTINCT - + col1 - - col0 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT - col2 * col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + - 66 + - - col0 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
181
2234
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT ALL col2 * + 13 - + + col2 * + - col1 + - + ( + col2 ) DIV + 6 col0 FROM tab0 AS cor0
----
1370
339
4411

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1751
SELECT ALL col2 * + 13 - + + col2 * + - col1 + - + ( + col2 ) / + 6 col0 FROM tab0 AS cor0
----
1370
339
4411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 + col1 col2 FROM tab0
----
19
39
99

query I rowsort
SELECT DISTINCT ( + col0 ) - + - col0 * col1 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT + 33 AS col0 FROM tab2 WHERE + 54 - - col0 + + + 52 * - - col2 * + - col2 IS NULL
----

query I rowsort
SELECT ALL ( + 65 ) FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT + MIN( - 45 ) AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-1756
SELECT + MIN ( - 45 ) AS col2 FROM tab1
----
-45

query I rowsort
SELECT DISTINCT - ( - + 96 ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT COUNT( DISTINCT + 60 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1758
SELECT COUNT ( DISTINCT + 60 ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1759
SELECT 76 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1760
SELECT + COUNT( CAST( NULL AS SIGNED ) ) FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT - ( + COUNT( + + col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1762
SELECT - ( + COUNT ( + + col2 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT SUM( + + 23 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-1763
SELECT SUM ( + + 23 ) FROM tab0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1764
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, col1 * - - 35 + + - col1 AS col2 FROM tab2 AS cor0
----
NULL
1734
NULL
2278
NULL
2618

skipif mysql # not compatible
query II rowsort label-1764
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, col1 * - - 35 + + - col1 AS col2 FROM tab2 AS cor0
----
NULL
1734
NULL
2278
NULL
2618

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < 75 * 3
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 78 * + - col1 AND ( + col0 ) * - + col0 + - ( col1 ) + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * + - col1 * + + 40 IS NULL
----

query I rowsort
SELECT ALL - + 54 FROM tab2 cor0
----
-54
-54
-54

query I rowsort
SELECT ALL - - ( - 83 ) AS col2 FROM tab2 AS cor0
----
-83
-83
-83

query II rowsort
SELECT - 33 AS col0, 19 * 4 AS col0 FROM tab2 AS cor0
----
-33
76
-33
76
-33
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 10 + - - col0 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT + - SUM( DISTINCT + col1 ) * - 88 FROM tab1 AS cor0
----
5808

skipif mysql # not compatible
query I rowsort label-1772
SELECT + - SUM ( DISTINCT + col1 ) * - 88 FROM tab1 AS cor0
----
5808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 70 ) col0 FROM tab1
----
70
70
70

query II rowsort
SELECT DISTINCT col2 + + 25 AS col2, - col1 AS col1 FROM tab2
----
48
-51
65
-77
83
-67

query III rowsort
SELECT * FROM tab0 WHERE - - col0 = - col0 + - 44
----

query I rowsort
SELECT - 49 * - 91 FROM tab2
----
4459
4459
4459

query I rowsort
SELECT DISTINCT - col1 * - + 57 FROM tab2
----
2907
3819
4389

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - ( 39 ) + 53 / - - 54
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT - + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT ( + + col0 ) + + + col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL - 14 + + - ( - col1 ) + - 73 FROM tab2 AS cor0 WHERE - col0 * - col2 * + + col2 * + 22 - col0 - - col2 * - 78 <= - 21
----

query I rowsort
SELECT DISTINCT - col0 + + col2 + + 71 * - 75 AS col2 FROM tab0 AS cor0
----
-5293
-5323
-5402

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1784
SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + 59 * - + col1 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-3009
-3953
-4543

query I rowsort
SELECT + col1 * + 91 - - - col0 + - - ( + + ( + + col2 ) ) * - 51 FROM tab2 AS cor0
----
3064
3422
4903

query I rowsort
SELECT ALL + col1 + - ( + col1 ) * + 22 FROM tab0 AS cor0
----
-1701
-21
-441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1788
SELECT - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1788
SELECT - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 cor0
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT DISTINCT - - col1 * - - col0 AS col2 FROM tab1 WHERE NOT + col2 IN ( - col1, col2, - col2 * - col1, + col2 / - col2 * + ( - col1 ), col2, - 67, - col2, - + col0 * - 25 - + - col1 + col2 * - CAST( - + col1 AS SIGNED ) * - 66 * - 89 )
----

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT - - col1 * - - col0 AS col2 FROM tab1 WHERE NOT + col2 IN ( - col1, col2, - col2 * - col1, + col2 / - col2 * + ( - col1 ), col2, - 67, - col2, - + col0 * - 25 - + - col1 + col2 * - CAST ( - + col1 AS INTEGER ) * - 66 * - 89 )
----

query I rowsort
SELECT DISTINCT + 39 * col0 FROM tab0
----
3393
3783
585

query I rowsort
SELECT DISTINCT - 18 * + 64 * - col2 FROM tab0
----
114048
11520
54144

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL 92 + + COUNT( * ) FROM tab0 WHERE NOT - col1 - - col0 IS NOT NULL
----
92

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL 92 + + COUNT ( * ) FROM tab0 WHERE NOT - col1 - - col0 IS NOT NULL
----
92

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT DISTINCT + MAX( ALL 85 ) col2 FROM tab0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1795
SELECT DISTINCT + MAX ( ALL 85 ) col2 FROM tab0
----
85

query I rowsort
SELECT DISTINCT - ( 44 ) AS col0 FROM tab1 AS cor0
----
-44

query II rowsort
SELECT 40 * - - 87, + col0 FROM tab0 AS cor0
----
3480
15
3480
87
3480
97

query I rowsort
SELECT col1 * - col2 FROM tab0 AS cor0 WHERE NOT NULL <= col2 * - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col0 FROM tab0 AS cor0 WHERE NOT + 17 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1800
SELECT * FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1800
SELECT * FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) + + col0 IS NOT NULL
----

query I rowsort
SELECT - 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + col0 ) + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT + MAX( - 29 ) AS col0 FROM tab1 AS cor0 WHERE + col0 + + col1 = col1 + - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT + MAX ( - 29 ) AS col0 FROM tab1 AS cor0 WHERE + col0 + + col1 = col1 + - - col2
----
NULL

query II rowsort
SELECT DISTINCT col0, col0 + col0 FROM tab2
----
46
92
64
128
75
150

query II rowsort
SELECT DISTINCT + col2 AS col2, + col0 AS col1 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1810
SELECT COUNT( * ) + 3 DIV + 63 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1810
SELECT COUNT ( * ) + 3 / + 63 FROM tab2
----
3

query I rowsort
SELECT ALL - col2 * 63 FROM tab0
----
-2961
-6237
-630

query I rowsort
SELECT 8 + - col1 * + col2 AS col2 FROM tab2
----
-1165
-3072
-3878

query I rowsort
SELECT - 7 * - col1 FROM tab1
----
329
35
98

query I rowsort
SELECT ALL 96 * - 24 FROM tab0 AS cor0
----
-2304
-2304
-2304

onlyif mysql # aggregate syntax: 
query II rowsort label-1815
SELECT ALL - COUNT( * ) AS col2, + 67 FROM tab1 AS cor0
----
-3
67

skipif mysql # not compatible
query II rowsort label-1815
SELECT ALL - COUNT ( * ) AS col2, + 67 FROM tab1 AS cor0
----
-3
67

query I rowsort
SELECT DISTINCT + + 3 + - col0 FROM tab2 AS cor0
----
-43
-61
-72

query I rowsort
SELECT DISTINCT + ( 57 ) + - 38 AS col0 FROM tab2 AS cor0
----
19

query I rowsort
SELECT DISTINCT col1 * + ( + 0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 58 + col0 * - 35 col0 FROM tab0
----
-3113
-3552
-630

query I rowsort
SELECT ALL - 23 FROM tab1 WHERE + 31 IS NULL
----

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
68

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - 0 + col2 <> ( - col2 )
----

query I rowsort
SELECT ( - - 18 ) FROM tab0
----
18
18
18

query I rowsort
SELECT + 13 * + + col2 AS col2 FROM tab0
----
1287
130
611

query II rowsort
SELECT ALL col1 AS col2, - 0 AS col2 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - 53 * + ( - COUNT( * ) ) * + COUNT( * ) FROM tab1 AS cor0
----
477

skipif mysql # not compatible
query I rowsort label-1826
SELECT - 53 * + ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
477

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT - 63 DIV col0 AS col1 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1827
SELECT - 63 / col0 AS col1 FROM tab0 AS cor0
----
-4
0
0

query I rowsort
SELECT col1 * 56 FROM tab2
----
2856
3752
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * + 95 FROM tab2
----
-855

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * + 95 FROM tab2
----
-855

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT DISTINCT + 73 DIV + 4 AS col0 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + 73 / + 4 AS col0 FROM tab1
----
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - 85 * + col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT + + SUM( DISTINCT + 26 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + + SUM ( DISTINCT + 26 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT + col1 DIV + - 41 + + col0 + col1 FROM tab1 AS cor0
----
137
65
90

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + col1 / + - 41 + + col0 + col1 FROM tab1 AS cor0
----
137
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) * + + 29 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) * + + 29 FROM tab0 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - col0 - - - col1 col0 FROM tab0 AS cor0
----
-118
-143
-197

query I rowsort
SELECT - - 85 AS col1 FROM tab2 cor0
----
85
85
85

query I rowsort
SELECT ALL - + col0 + - + col1 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

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

query I rowsort
SELECT DISTINCT col1 + + 84 AS col2 FROM tab2 AS cor0
----
135
151
161

onlyif mysql # DIV for integer division: 
query II rowsort label-1841
SELECT DISTINCT col0 DIV col2, col1 * - + col0 * - + col2 AS col2 FROM tab1 AS cor0
----
0
68544
1
25075
1
290836

skipif mysql # not compatible
query II rowsort label-1841
SELECT DISTINCT col0 / col2, col1 * - + col0 * - + col2 AS col2 FROM tab1 AS cor0
----
0
68544
1
25075
1
290836

query I rowsort
SELECT DISTINCT col0 * 34 - - - col1 FROM tab1
----
1720
2885
3047

query I rowsort
SELECT ALL - col1 - - 5 - + col0 * + col2 FROM tab0
----
-781
-886
-9599

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT ( MAX( ALL - + 97 ) ) FROM tab1, tab1 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT ( MAX ( ALL - + 97 ) ) FROM tab1, tab1 cor0
----
-97

query I rowsort
SELECT col2 * + - col1 + + + 64 + - col1 FROM tab2 AS cor0
----
-1160
-3093
-3889

query II rowsort
SELECT DISTINCT 18 - - - col0 AS col1, - col2 AS col1 FROM tab2
----
-28
-23
-46
-40
-57
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1847
SELECT + - COUNT( * ) AS col0, 19 AS col2 FROM tab1 AS cor0
----
-3
19

skipif mysql # not compatible
query II rowsort label-1847
SELECT + - COUNT ( * ) AS col0, 19 AS col2 FROM tab1 AS cor0
----
-3
19

query II rowsort
SELECT ALL + col1 AS col1, - 29 FROM tab1 AS cor0
----
14
-29
47
-29
5
-29

query I rowsort
SELECT - - col0 + + 77 / col1 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT - 90 * AVG ( ALL - 23 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT - 90 * AVG ( ALL - 23 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 91 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
91

query I rowsort
SELECT + col0 * - col0 + - 44 AS col1 FROM tab1 AS cor0
----
-2645
-7269
-8325

query II rowsort
SELECT + col0 AS col2, + col1 + 40 AS col2 FROM tab1 AS cor0
----
51
54
85
45
91
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - + 60
----

query I rowsort
SELECT 28 * - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 83 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT ALL + CAST( + 40 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
40
40
40

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

query II rowsort
SELECT DISTINCT + 25, col2 AS col2 FROM tab1 AS cor0
----
25
59
25
68
25
96

query II rowsort
SELECT ALL - col0 * - col2 AS col1, col2 FROM tab0
----
705
47
870
10
9603
99

query II rowsort
SELECT ALL col2 * - col0, col2 AS col0 FROM tab0
----
-705
47
-870
10
-9603
99

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT + + col1 * - col2 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NOT - 12 * - + 41 / 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT + MAX( - - 60 ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-1862
SELECT + MAX ( - - 60 ) AS col1 FROM tab2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT DISTINCT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col2 + - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL 47 + - + COUNT( * ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL 47 + - + COUNT ( * ) FROM tab1
----
44

query I rowsort
SELECT col0 * + 34 FROM tab1 cor0
----
1734
2890
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT DISTINCT + + SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT + + SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT ALL 77 + + COUNT( * ) AS col2 FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL 77 + + COUNT ( * ) AS col2 FROM tab0 cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT DISTINCT + ( col2 ) DIV col1 + ( + 97 ) - - col0 AS col2 FROM tab2
----
143
161
172

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT + ( col2 ) / col1 + ( + 97 ) - - col0 AS col2 FROM tab2
----
143
161
172

query III rowsort
SELECT * FROM tab1 WHERE + + ( + col0 ) + + 21 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1873
SELECT col2 * + col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1874
SELECT * FROM tab1 WHERE + col1 + + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1874
SELECT * FROM tab1 WHERE + col1 + + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 90 - + col0 AS col0 FROM tab1
----
-141
-175
-181

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1876
SELECT 8 * + - CAST( NULL AS DECIMAL ) AS col1, 38 AS col1 FROM tab0
----
NULL
38
NULL
38
NULL
38

skipif mysql # not compatible
query II rowsort label-1876
SELECT 8 * + - CAST ( NULL AS REAL ) AS col1, 38 AS col1 FROM tab0
----
NULL
38
NULL
38
NULL
38

query I rowsort
SELECT + 23 - - ( - - ( + + 30 ) ) FROM tab2 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT + ( CAST( col0 AS SIGNED ) ) * - col2 + + col1 AS col1 FROM tab0
----
-624
-849
-9602

skipif mysql # not compatible
query I rowsort label-1878
SELECT + ( CAST ( col0 AS INTEGER ) ) * - col2 + + col1 AS col1 FROM tab0
----
-624
-849
-9602

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1879
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0, - COUNT( * ) + + 73 FROM tab2 cor0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-1879
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0, - COUNT ( * ) + + 73 FROM tab2 cor0
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1880
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 96 * - - col1 NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL COUNT( - 93 ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1882
SELECT ALL COUNT ( - 93 ) col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col0 - CAST( NULL AS SIGNED ) IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1883
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col0 - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL + MIN( - 38 ) col0 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1884
SELECT ALL + MIN ( - 38 ) col0 FROM tab1 AS cor0
----
-38

query II rowsort
SELECT - col1 AS col2, 59 * - - 37 FROM tab0
----
-1
2183
-21
2183
-81
2183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1886
SELECT CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1887
SELECT - 55, + SUM( DISTINCT 47 ) AS col1 FROM tab2
----
-55
47

skipif mysql # not compatible
query II rowsort label-1887
SELECT - 55, + SUM ( DISTINCT 47 ) AS col1 FROM tab2
----
-55
47

query III rowsort
SELECT * FROM tab1 WHERE NOT 12 + col2 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT DISTINCT col0 + col2 AS col2, + col2 AS col2 FROM tab2
----
104
40
133
58
69
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 BETWEEN - col1 AND NULL
----

query II rowsort
SELECT - col1 AS col0, col1 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-14
14
-47
47
-5
5

query I rowsort
SELECT - ( 91 ) AS col1 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT ALL - col0 - + col0 + - 85 FROM tab1 AS cor0
----
-187
-255
-267

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 7 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) / + 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1898
SELECT + ( - COUNT( * ) ), + COUNT( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1898
SELECT + ( - COUNT ( * ) ), + COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3
3

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

query I rowsort
SELECT DISTINCT - 15 - + - 83 * col2 AS col2 FROM tab0 AS cor0
----
3886
815
8202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT ALL 90 + + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col1 + + + 59 FROM tab0
----
140
60
80

query I rowsort
SELECT 27 * + col1 - col0 AS col0 FROM tab2
----
1331
1734
2015

query I rowsort
SELECT + + col2 FROM tab2 WHERE + 15 < NULL
----

query I rowsort
SELECT DISTINCT - col0 - + - 73 FROM tab1
----
-12
-18
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT 36 + - col1 + col1 DIV - col2 FROM tab1
----
-11
22
31

skipif mysql # not compatible
query I rowsort label-1906
SELECT 36 + - col1 + col1 / - col2 FROM tab1
----
-11
22
31

query I rowsort
SELECT ALL - col2 * - + col1 AS col0 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT DISTINCT ( + + 4 ) * SUM( + col1 ) AS col0 FROM tab0
----
412

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT ( + + 4 ) * SUM ( + col1 ) AS col0 FROM tab0
----
412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1909
SELECT ALL + ( + ( - - ( - COUNT( - col2 ) ) ) ) DIV - + ( 64 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + ( + ( - - ( - COUNT ( - col2 ) ) ) ) / - + ( 64 ) AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 83 ) col0 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1912
SELECT + - COUNT( * ) col1 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) < col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1912
SELECT + - COUNT ( * ) col1 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) < col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col2 + - col1
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + COUNT( 12 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1915
SELECT + COUNT ( 12 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT - col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT ALL ( - CAST( col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE + 86 IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL ( - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE + 86 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT 69 * ( + + col1 ) AS col0 FROM tab0 AS cor0
----
1449
5589
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 42 <= + 10 - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 20 * + col0 AS col0 FROM tab1 AS cor0
----
1020
1700
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT + 50 + COUNT( * ) col0 FROM tab2
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1920
SELECT + 50 + COUNT ( * ) col0 FROM tab2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT + col0 + + - CAST( NULL AS SIGNED ) * col0 * 29 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT + col0 + + - CAST ( NULL AS INTEGER ) * col0 * 29 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 75 + + ( + 32 ), - col0 AS col1 FROM tab2
----
107
-46
107
-64
107
-75

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1924
SELECT * FROM tab0 AS cor0 WHERE - CAST( - - 69 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1924
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - - 69 AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT 81 + - col0 AS col1 FROM tab0 AS cor0
----
-16
-6
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 66 / col2 + + - col2 - - 76 - - ( + col1 ) * + + 15 >= - ( + 40 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1927
SELECT DISTINCT - + col2 + CAST( 98 AS SIGNED ) DIV + 34 FROM tab0 AS cor0
----
-45
-8
-97

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT - + col2 + CAST ( 98 AS INTEGER ) / + 34 FROM tab0 AS cor0
----
-45
-8
-97

query I rowsort
SELECT ALL - 96 FROM tab2 WHERE NOT - ( - 88 ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT 44 FROM tab2 WHERE - + 6 = - col0
----

onlyif mysql # aggregate syntax: 
query III rowsort label-1930
SELECT ALL COUNT( * ) AS col1, COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2
----
3
3
3

skipif mysql # not compatible
query III rowsort label-1930
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT DISTINCT + - 78 * - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT DISTINCT col0 DIV col1 * - col2 + + col1 * + 77 FROM tab1 AS cor0
----
-618
3551
790

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT col0 / col1 * - col2 + + col1 * + 77 FROM tab1 AS cor0
----
-618
3551
790

query I rowsort
SELECT ALL - 17 * - col2 + + col0 + + 33 AS col2 FROM tab0 AS cor0
----
1813
290
847

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / + 9 * - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - col2 AS col1 FROM tab0 AS cor0 WHERE 2 >= - 42
----
-198
-20
-94

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

query I rowsort
SELECT + - col0 FROM tab2 WHERE - 95 >= - + col1
----

query I rowsort
SELECT ALL - col1 - 50 FROM tab2
----
-101
-117
-127

onlyif mysql # DIV for integer division: 
query I rowsort label-1940
SELECT DISTINCT - col0 DIV + + col1 AS col1 FROM tab2
----
-1
0

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

query I rowsort
SELECT + col0 * + + 98 FROM tab0
----
1470
8526
9506

query I rowsort
SELECT + 85 * - 20 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col1 + - + col2 + + - col2 col1 FROM tab0 AS cor0
----
-199
-461
-6655

onlyif mysql # DIV for integer division: 
query II rowsort label-1944
SELECT col1 AS col2, - col1 DIV + 27 FROM tab1
----
14
0
47
-1
5
0

skipif mysql # not compatible
query II rowsort label-1944
SELECT col1 AS col2, - col1 / + 27 FROM tab1
----
14
0
47
-1
5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT DISTINCT col2 DIV 77 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT col2 / 77 AS col1 FROM tab2
----
0

query II rowsort
SELECT ALL col1 + - col0 * col1 AS col0, + ( 29 ) + col1 FROM tab0 cor0
----
-1134
110
-1806
50
-96
30

query I rowsort
SELECT DISTINCT col2 + - - col0 - + + col2 * col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-1948
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 - col1 ) <= - 32 DIV 89
----

skipif mysql # not compatible
query III rowsort label-1948
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 - col1 ) <= - 32 / 89
----

query I rowsort
SELECT ALL - col1 * + 8 FROM tab1 AS cor0
----
-112
-376
-40

query I rowsort
SELECT 92 * ( + 6 ) AS col0 FROM tab1 AS cor0
----
552
552
552

onlyif mysql # DIV for integer division: 
query I rowsort label-1951
SELECT DISTINCT - col1 DIV - + col0 + 91 AS col2 FROM tab2 AS cor0
----
91
92

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT - col1 / - + col0 + 91 AS col2 FROM tab2 AS cor0
----
91
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT DISTINCT + COUNT( * ) * - 83 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT + COUNT ( * ) * - 83 FROM tab1 AS cor0
----
-249

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + ( - - ( + col0 ) ) + + col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + + 28 AS col0 FROM tab0
----
-2436
-2716
-420

query I rowsort
SELECT ( ( 58 ) ) AS col0 FROM tab0
----
58
58
58

query I rowsort
SELECT col1 * - + col2 * - 69 AS col1 FROM tab1
----
20355
220524
92736

query I rowsort
SELECT ALL 24 + col2 * 22 + + 48 + col1 AS col0 FROM tab0
----
1187
2251
313

query II rowsort
SELECT DISTINCT + 32 + + col1 AS col2, - col2 + - - 99 AS col2 FROM tab0
----
113
52
33
0
53
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT DISTINCT col1 DIV - ( - col0 ) FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT col1 / - ( - col0 ) FROM tab0 AS cor0
----
0
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1960
SELECT col1 * col2 / + 10 + - - col0 / CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col1 - col0 * + 49 FROM tab0
----
-4242
-4752
-654

query I rowsort
SELECT DISTINCT + 38 + col0 FROM tab0 cor0
----
125
135
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT - - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL + col1 + + 21 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT 72 - - col0 AS col1 FROM tab0 AS cor0
----
159
169
87

query II rowsort
SELECT 53, - 83 AS col0 FROM tab0
----
53
-83
53
-83
53
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1967
SELECT COUNT( * ) AS col1, 29 FROM tab1
----
3
29

skipif mysql # not compatible
query II rowsort label-1967
SELECT COUNT ( * ) AS col1, 29 FROM tab1
----
3
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT ALL CAST( + 44 AS SIGNED ) * col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1969
SELECT * FROM tab0 WHERE NOT col2 * - 7 + - col1 + + ( col2 ) IN ( - + CAST( + col0 AS DECIMAL ), 96 + + - 83, 23, + - col0 + col2 + - - col0 + col2 * + col0 - - 2 * + - 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1969
SELECT * FROM tab0 WHERE NOT col2 * - 7 + - col1 + + ( col2 ) IN ( - + CAST ( + col0 AS REAL ), 96 + + - 83, 23, + - col0 + col2 + - - col0 + col2 * + col0 - - 2 * + - 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + + 98 * col2 FROM tab0
----
-216482
-960498
-9800

query II rowsort
SELECT + + 60 AS col0, - col0 FROM tab0 cor0
----
60
-15
60
-87
60
-97

query II rowsort
SELECT - - 93 AS col0, 10 AS col1 FROM tab1 AS cor0
----
93
10
93
10
93
10

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - 75 * - + col0 AS col0 FROM tab2 AS cor0
----
3450
4800
5625

query II rowsort
SELECT col0, - 28 AS col1 FROM tab1 AS cor0
----
51
-28
85
-28
91
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT + + MIN( + 73 ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1976
SELECT + + MIN ( + 73 ) FROM tab0 AS cor0
----
73

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 74 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT DISTINCT 96 + - COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT 96 + - COUNT ( * ) FROM tab1 AS cor0
----
93

query II rowsort
SELECT DISTINCT - 21 + + col1, col0 FROM tab1 AS cor0
----
-16
85
-7
51
26
91

onlyif mysql # DIV for integer division: 
query II rowsort label-1980
SELECT DISTINCT - - col0 * col2 DIV - + col2, + col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-1980
SELECT DISTINCT - - col0 * col2 / - + col2, + col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT DISTINCT - ( - + COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT - ( - + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + + + col1 FROM tab1
----
110
115
64

query II rowsort
SELECT DISTINCT + col0, + col1 AS col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( + 82 ) + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT + + 31 DIV - 11 AS col1 FROM tab0 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1986
SELECT + + 31 / - 11 AS col1 FROM tab0 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT CAST( - 28 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-5
12
30

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT CAST ( - 28 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-5
12
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 12 AND + 0 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT SUM( DISTINCT + 76 ) FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-1989
SELECT SUM ( DISTINCT + 76 ) FROM tab1 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 * + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 * + 75 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT 22 DIV 46 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT 22 / 46 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 12 + + col2 FROM tab0 WHERE NOT NULL < ( + ( - col2 ) * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT + 90 DIV 8 FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-1993
SELECT + 90 / 8 FROM tab2
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT col0 DIV 2 FROM tab2
----
23
32
37

skipif mysql # not compatible
query I rowsort label-1994
SELECT col0 / 2 FROM tab2
----
23
32
37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 - - col0 * 22 AS col0 FROM tab0 WHERE + col0 > ( col1 - col1 )
----
1924
2233
377

query III rowsort
SELECT * FROM tab1 WHERE NOT 13 + - col0 NOT IN ( 72 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT ALL col0 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT DISTINCT - CAST( col0 AS SIGNED ) + + 73 * - col0 FROM tab0
----
-1110
-6438
-7178

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + + 73 * - col0 FROM tab0
----
-1110
-6438
-7178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT - col1 * ( - col2 * - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab2 WHERE 11 IN ( - col2 )
----

query I rowsort
SELECT + 3 * col2 FROM tab0
----
141
297
30

query I rowsort
SELECT + 87 * 86 FROM tab0
----
7482
7482
7482

query I rowsort
SELECT ALL 47 AS col1 FROM tab0 WHERE NOT col2 * + col1 + + 22 IS NULL
----
47
47
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 0 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT CAST( col1 AS SIGNED ) + + col1 AS col2 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-2007
SELECT CAST ( col1 AS INTEGER ) + + col1 AS col2 FROM tab0
----
162
2
42

query I rowsort
SELECT col1 * col1 + + col1 AS col0 FROM tab1
----
210
2256
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2009
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2009
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 + + col1 * + col2 FROM tab2
----
1122
3003
3819

query III rowsort
SELECT * FROM tab2 WHERE col2 * col0 + 80 > 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT - 53 + COUNT( * ) FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-2012
SELECT - 53 + COUNT ( * ) FROM tab2
----
-50

query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL col2 * - 14 + - col1 AS col1 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND - col1 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT DISTINCT + 5 - - MAX( ALL 3 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT + 5 - - MAX ( ALL 3 ) FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + MAX( DISTINCT col2 ) + COUNT( * ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2016
SELECT + MAX ( DISTINCT col2 ) + COUNT ( * ) AS col1 FROM tab2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2017
SELECT * FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN - col1 * + 23 - - col2 AND + 97 * + 26
----

skipif mysql # not compatible
query III rowsort label-2017
SELECT * FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN - col1 * + 23 - - col2 AND + 97 * + 26
----

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

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

query I rowsort
SELECT DISTINCT col0 * - 23 AS col2 FROM tab1 AS cor0
----
-1173
-1955
-2093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 53 AS col2 FROM tab1 cor0 CROSS JOIN tab1
----
NULL

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

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

query I rowsort
SELECT DISTINCT col1 + + ( 56 + col0 ) * + 8 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 63 < ( col1 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT CAST( - col2 AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NOT + 84 * - 14 < ( + ( - col2 ) + - col1 )
----

skipif mysql # not compatible
query I rowsort label-2025
SELECT CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NOT + 84 * - 14 < ( + ( - col2 ) + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT + - col1 * col2 + 17 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col1 NOT BETWEEN ( col2 / + col1 ) AND NULL
----
85
5
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + col2 <> ( NULL )
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL <> col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - 45 * ( - MIN( DISTINCT 45 ) ) FROM tab1 cor0
----
2025

skipif mysql # not compatible
query I rowsort label-2030
SELECT - 45 * ( - MIN ( DISTINCT 45 ) ) FROM tab1 cor0
----
2025

query I rowsort
SELECT DISTINCT ( 83 ) + + col2 AS col0 FROM tab1 AS cor0
----
142
151
179

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

query I rowsort
SELECT - + 95 * + col2 FROM tab0 AS cor0
----
-4465
-9405
-950

query I rowsort
SELECT - col2 + + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 55 * + 17 AS col1 FROM tab0 AS cor0
----
935
935
935

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL - SUM( 45 ) + - 6 AS col2 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL - SUM ( 45 ) + - 6 AS col2 FROM tab0
----
-141

query III rowsort
SELECT * FROM tab0 WHERE col2 * 57 + 28 IS NULL
----

query I rowsort
SELECT + col1 * 90 FROM tab2
----
4590
6030
6930

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 61 * col2 + + col1 * col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL < - ( + 30 ) * + col1
----

query I rowsort
SELECT DISTINCT + col0 + 15 * col2 FROM tab1
----
1111
1491
970

query I rowsort
SELECT ( + col1 ) + col0 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT - col2 + + + ( + col0 ) FROM tab1 AS cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 99 + + 89 col0 FROM tab0 cor0
----
0
37
89

query I rowsort
SELECT DISTINCT - - col2 * - col1 + + col0 FROM tab0 AS cor0
----
-123
-2
-3792

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

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

query I rowsort
SELECT DISTINCT + col0 + - + 70 FROM tab0
----
-55
17
27

query I rowsort
SELECT ALL 11 FROM tab1, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT + COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2050
SELECT + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) BETWEEN col2 AND col0 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT DISTINCT - - col0 DIV 48 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT - - col0 / 48 AS col2 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < col1
----

query I rowsort
SELECT + col2 * - 22 + + - 31 AS col2 FROM tab2 AS cor0
----
-1307
-537
-911

query II rowsort
SELECT DISTINCT - 30 AS col0, - 31 * col0 FROM tab1 AS cor0
----
-30
-1581
-30
-2635
-30
-2821

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT COUNT( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2057
SELECT COUNT ( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT MAX( ALL col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL COUNT( ALL - col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL COUNT ( ALL - col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) <> - ( col0 )
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2061
SELECT - 49 DIV + MAX( - 90 ) + MIN( ALL - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2061
SELECT - 49 / + MAX ( - 90 ) + MIN ( ALL - col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2063
SELECT col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col2 - col1 + + 57 / - 88 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col1 BETWEEN + col0 AND - ( + col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col1 BETWEEN + col0 AND - ( + col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + 73 ) + - - col0 + + col2 * 20 * 47 AS col2 FROM tab1 AS cor0
----
55472
63938
90218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2067
SELECT DISTINCT + CAST( + - 41 AS SIGNED ) + + ( - - col0 ) + + col2 FROM tab1 AS cor0
----
103
106
118

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT + CAST ( + - 41 AS INTEGER ) + + ( - - col0 ) + + col2 FROM tab1 AS cor0
----
103
106
118

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 97 / - col2 BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2069
SELECT CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2069
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col0 + + col2 + - + col0 FROM tab2 AS cor0
----
-69
-88
-92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <> NULL AND NULL NOT BETWEEN - col2 - + - col0 + + 56 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 52 + - col1 FROM tab0
----
-29
31
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT DISTINCT CAST( NULL AS SIGNED ) * 76 + 45 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 76 + 45 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - col2 * + - col0 + col0 + 67 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10493
-75536
-931327

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT col1 DIV + col2 + - col2 * - col0 FROM tab0
----
706
872
9603

skipif mysql # not compatible
query I rowsort label-2076
SELECT col1 / + col2 + - col2 * - col0 FROM tab0
----
706
872
9603

query I rowsort
SELECT ALL col0 - - + 89 AS col1 FROM tab0
----
104
176
186

query I rowsort
SELECT col1 + + - col2 * - col0 AS col2 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT - 96 DIV + col2 AS col0 FROM tab0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT - 96 / + col2 AS col0 FROM tab0
----
-2
-9
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2082
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND + CAST( + col0 AS SIGNED ) * ( + col1 ) + + col1 * - 85
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-2082
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND + CAST ( + col0 AS INTEGER ) * ( + col1 ) + + col1 * - 85
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT + + col1 - col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 BETWEEN 30 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2086
SELECT ALL + MAX( - - col2 ) DIV - + 33 AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL + MAX ( - - col2 ) / - + 33 AS col2 FROM tab1 AS cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2087
SELECT DISTINCT - + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1, MAX( + - col2 ) AS col2 FROM tab0 AS cor0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-2087
SELECT DISTINCT - + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1, MAX ( + - col2 ) AS col2 FROM tab0 AS cor0
----
NULL
-10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2088
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + + col0 * CAST( NULL AS DECIMAL ) - - - 58 - + ( 72 ) - + CAST( NULL AS SIGNED ) / col1 * col0 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-2088
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + + col0 * CAST ( NULL AS REAL ) - - - 58 - + ( 72 ) - + CAST ( NULL AS INTEGER ) / col1 * col0 IS NOT NULL )
----

query I rowsort
SELECT + - 53 FROM tab1 AS cor0 WHERE NOT + col1 + + - 33 IS NULL
----
-53
-53
-53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 95 + + - 33 + col0 + - 38 * - - 35 * 20 - - 34 > NULL
----

query I rowsort
SELECT ALL + 2 * col1 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2092
SELECT DISTINCT COUNT( * ) col1, - 32 FROM tab0
----
3
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2092
SELECT DISTINCT COUNT ( * ) col1, - 32 FROM tab0
----
3
-32

query II rowsort
SELECT DISTINCT + 37, col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
37
51
37
67
37
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL MIN( + col1 ) * - + 15 FROM tab2
----
-765

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL MIN ( + col1 ) * - + 15 FROM tab2
----
-765

onlyif mysql # DIV for integer division: 
query II rowsort label-2095
SELECT ALL col1 DIV col2 * col0 AS col0, col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-2095
SELECT ALL col1 / col2 * col0 AS col0, col2 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT 11 + 69 FROM tab2 WHERE NOT - 84 BETWEEN + CAST( NULL AS SIGNED ) AND - - 90
----

skipif mysql # not compatible
query I rowsort label-2096
SELECT 11 + 69 FROM tab2 WHERE NOT - 84 BETWEEN + CAST ( NULL AS INTEGER ) AND - - 90
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 1 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT 46 AS col1, + COUNT( * ) FROM tab2
----
46
3

skipif mysql # not compatible
query II rowsort label-2098
SELECT 46 AS col1, + COUNT ( * ) FROM tab2
----
46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL - COUNT( * ) FROM tab0 WHERE - col2 * col0 IS NULL OR col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - col2 * col0 IS NULL OR col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL SUM( + - col2 ) + - COUNT( * ) FROM tab2
----
-124

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL SUM ( + - col2 ) + - COUNT ( * ) FROM tab2
----
-124

query I rowsort
SELECT - col2 * - 68 FROM tab2 WHERE NOT NULL IN ( - 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL + MAX( + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL + MAX ( + col1 ) AS col1 FROM tab0
----
81

query II rowsort
SELECT DISTINCT col2, 27 AS col0 FROM tab2 cor0
----
23
27
40
27
58
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT 39, COUNT( * ) AS col2 FROM tab2 AS cor0
----
39
3

skipif mysql # not compatible
query II rowsort label-2104
SELECT 39, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT 21 * - - COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2105
SELECT 21 * - - COUNT ( * ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT - 88 + col2 + col2 FROM tab0
----
-68
110
6

query I rowsort
SELECT - + 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT - - COUNT( * ) + + 70 AS col0 FROM tab1 WHERE ( NOT - col2 * + col1 NOT IN ( + 88, + col2 + - 47 ) )
----
70

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - - COUNT ( * ) + + 70 AS col0 FROM tab1 WHERE ( NOT - col2 * + col1 NOT IN ( + 88, + col2 + - 47 ) )
----
70

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 - + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2111
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 5 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( + 15 ) ) BETWEEN + col0 * - col1 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT + MAX( 77 ) FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2114
SELECT + MAX ( 77 ) FROM tab1 AS cor0
----
77

query I rowsort
SELECT DISTINCT + col2 * 31 AS col2 FROM tab2 AS cor0 WHERE NOT + ( - 95 ) IS NULL
----
1240
1798
713

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL + MAX( + - 49 ) * COUNT( * ) + + MIN( col2 ) * - - 20 FROM tab2 AS cor0
----
313

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + MAX ( + - 49 ) * COUNT ( * ) + + MIN ( col2 ) * - - 20 FROM tab2 AS cor0
----
313

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT - MIN( ALL + + 24 ) AS col1 FROM tab0 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2117
SELECT - MIN ( ALL + + 24 ) AS col1 FROM tab0 cor0
----
-24

query I rowsort
SELECT ALL - 55 + 17 * + col0 + - - col2 FROM tab1 AS cor0
----
1449
1560
908

query I rowsort
SELECT DISTINCT - col2 - 54 AS col2 FROM tab2 AS cor0
----
-112
-77
-94

query I rowsort
SELECT + + 79 AS col2 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT ALL - - 42 * - col0 * + 8 + + - col2 * + + col0 + + col2 FROM tab0 AS cor0
----
-30092
-42096
-5698

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT MAX( DISTINCT + 91 ) - + 70 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2123
SELECT MAX ( DISTINCT + 91 ) - + 70 FROM tab2
----
21

query I rowsort
SELECT + col2 - + - col0 FROM tab0
----
196
62
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 20 = NULL AND NOT - col2 >= - + 24
----

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

query I rowsort
SELECT DISTINCT col1 - - + col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT DISTINCT + 9 * - + SUM( col2 ) col2 FROM tab0
----
-1404

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2128
SELECT DISTINCT + 9 * - + SUM ( col2 ) col2 FROM tab0
----
-1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT DISTINCT - COUNT( * ) * + + CAST( NULL AS SIGNED ) * + + 76 * + - 59 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + + 76 * + - 59 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT ALL + 16 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + 16 / + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NOT ( NOT NULL >= + 94 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT DISTINCT MIN( ALL - 95 ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT MIN ( ALL - 95 ) FROM tab0 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL + + CAST( - 93 AS SIGNED ) + - - col2 AS col1 FROM tab2 AS cor0
----
-35
-53
-70

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL + + CAST ( - 93 AS INTEGER ) + - - col2 AS col1 FROM tab2 AS cor0
----
-35
-53
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT DISTINCT + MAX( ALL col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 44 + - CAST( ( - 5 ) AS SIGNED ) + - - col1 + + col0 * + - 7 <= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT + MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 44 + - CAST ( ( - 5 ) AS INTEGER ) + - - col1 + + col0 * + - 7 <= + col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT - MAX( col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT - MAX ( col1 ) FROM tab2
----
-77

query I rowsort
SELECT + col0 * + col0 * - col0 FROM tab1
----
-132651
-614125
-753571

query I rowsort
SELECT ALL col2 + col0 - + - col1 - - 30 + + - 4 * - col2 * - 38 * col0 / - col2 AS col1 FROM tab0 cor0 WHERE NOT NULL > - col0
----

query I rowsort
SELECT ALL - col0 * - 81 * - + 9 FROM tab2 cor0
----
-33534
-46656
-54675

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 34 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1 * + - col1 AS col0, - col0 + + col0 AS col1 FROM tab1
----
196
0
2209
0
25
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > 29 + - - col1
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE + - 23 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT DISTINCT - col0 * + + 7, + col1 FROM tab1
----
-357
14
-595
5
-637
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2146
SELECT - CAST( NULL AS SIGNED ) * - 90 * + ( MIN( + 38 ) ) + - COUNT( - col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT - CAST ( NULL AS INTEGER ) * - 90 * + ( MIN ( + 38 ) ) + - COUNT ( - col2 ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2147
SELECT ALL ( - col1 ) DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL ( - col1 ) / + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT ALL 37 + + col1 DIV + col0 AS col1 FROM tab0
----
37
37
42

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL 37 + + col1 / + col0 AS col1 FROM tab0
----
37
37
42

query I rowsort
SELECT + 71 + - col1 - - 62 + col0 * col0 FROM tab1 AS cor0
----
2720
7353
8367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2150
SELECT MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2151
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2151
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 * + col0 * - - col0 - - 66 * col0 AS col2 FROM tab2
----
100372
266368
426825

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT col0 * col2 DIV 92 + - + col2 + - + col2 FROM tab0 AS cor0
----
-11
-87
-94

skipif mysql # not compatible
query I rowsort label-2154
SELECT col0 * col2 / 92 + - + col2 + - + col2 FROM tab0 AS cor0
----
-11
-87
-94

query I rowsort
SELECT DISTINCT col0 * col0 + - + 23 + col1 * - 30 + + col1 FROM tab0 AS cor0
----
-2147
6937
9357

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT - + 68 DIV - 56 + col0 AS col2 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-2156
SELECT - + 68 / - 56 + col0 AS col2 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT ALL + col2 + - - col1 AS col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL col2 * + + col2 * - + col2 + 11 AS col0 FROM tab0
----
-103812
-970288
-989

query I rowsort
SELECT DISTINCT + 82 - 77 AS col1 FROM tab0
----
5

query I rowsort
SELECT ALL + col2 - col0 * + col2 * 10 FROM tab2
----
-10557
-25560
-43442

query I rowsort
SELECT - ( col2 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT - COUNT( DISTINCT - col2 ), + MIN( + 5 ) AS col0 FROM tab2
----
-3
5

skipif mysql # not compatible
query II rowsort label-2162
SELECT - COUNT ( DISTINCT - col2 ), + MIN ( + 5 ) AS col0 FROM tab2
----
-3
5

query I rowsort
SELECT DISTINCT - col2 - + + col1 FROM tab1
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT + ( + MIN( + - col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2164
SELECT + ( + MIN ( + - col2 ) ) FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2165
SELECT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2165
SELECT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT ( 2 IS NULL ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <> - + 42 + - col1
----

query I rowsort
SELECT - 95 FROM tab1 AS cor0 WHERE NOT col1 >= col1
----

query I rowsort
SELECT ALL - 14 * col2 FROM tab1 cor0
----
-1344
-826
-952

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT DISTINCT - + COUNT( * ) * + - 5 AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT - + COUNT ( * ) * + - 5 AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2175
SELECT col2 - - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2175
SELECT col2 - - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + 45 * + col2 FROM tab1 AS cor0
----
2655
3060
4320

query I rowsort
SELECT DISTINCT - col2 * col2 * - - 12 * - col2 FROM tab0 AS cor0
----
11643588
12000
1245876

query I rowsort
SELECT - + col2 * + 50 FROM tab0 AS cor0
----
-2350
-4950
-500

query I rowsort
SELECT DISTINCT 84 * col1 FROM tab0 AS cor0
----
1764
6804
84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( 98 ) * + col1 NOT IN ( - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT + col0 DIV + + col1 + + col0 FROM tab0 AS cor0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-2181
SELECT + col0 / + + col1 + + col0 FROM tab0 AS cor0
----
15
194
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2182
SELECT MIN( DISTINCT 1 ) DIV + 75 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2182
SELECT MIN ( DISTINCT 1 ) / + 75 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT - 94 * 0 * + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2183
SELECT - 94 * 0 * + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT 15 * + col0 FROM tab2
----
1125
690
960

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2185
SELECT ALL * FROM tab2 WHERE + CAST( - 6 AS SIGNED ) NOT BETWEEN + - ( + col1 ) AND col0
----

skipif mysql # not compatible
query III rowsort label-2185
SELECT ALL * FROM tab2 WHERE + CAST ( - 6 AS INTEGER ) NOT BETWEEN + - ( + col1 ) AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2 AS col1, + col0 * - col2 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2188
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN + 27 * + 19 + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2188
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + 27 * + 19 + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT MAX( + - 26 ) AS col0 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT MAX ( + - 26 ) AS col0 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE - 41 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 38 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 / - col1 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 24 * 98 FROM tab0
----
2352
2352
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT COUNT( + 9 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2194
SELECT COUNT ( + 9 ) FROM tab0 cor0
----
3

query I rowsort
SELECT 99 AS col1 FROM tab2 AS cor0 WHERE col0 * - col2 < NULL
----

query I rowsort
SELECT - - ( - + 71 ) * - + col1 - + - 6 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
1497
5757
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL + - COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT MAX( ALL + 82 ) - 0 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2198
SELECT MAX ( ALL + 82 ) - 0 FROM tab0 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT ALL + ( + + CAST( + col2 AS SIGNED ) ) * + 52 + - col1 * col2 AS col1 FROM tab1
----
2773
340
3648

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + ( + + CAST ( + col2 AS INTEGER ) ) * + 52 + - col1 * col2 AS col1 FROM tab1
----
2773
340
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 58 ) col2 FROM tab0
----
-58
-58
-58

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE ( NOT - 86 IS NULL )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2202
SELECT DISTINCT - col2 / - col2 * 91 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / CAST( NULL AS DECIMAL ) * - col1 + col2 - col2 + - col1 + col1 AS col0 FROM tab2
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT DISTINCT ( + - ( + + COUNT( * ) ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2204
SELECT DISTINCT ( + - ( + + COUNT ( * ) ) ) col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 * - - 91 col0 FROM tab1, tab0 AS cor0
----
3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT - MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

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

query I rowsort
SELECT + ( - - 48 ) * + col2 AS col1 FROM tab1 WHERE NOT ( NOT ( + ( + + 17 ) ) IS NOT NULL )
----
2832
3264
4608

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT col1 DIV - 59 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2208
SELECT col1 / - 59 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - 44 * + 53 + + 20 * + 77 FROM tab1 AS cor0
----
-792
-792
-792

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 89 + + + col2 + - + 91 * + col2 * col0 NOT BETWEEN NULL AND + + 4
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2212
SELECT - CAST( + col1 AS SIGNED ) AS col2, ( - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

skipif mysql # not compatible
query II rowsort label-2212
SELECT - CAST ( + col1 AS INTEGER ) AS col2, ( - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT - col1 AS col0 FROM tab1 cor0 WHERE NOT 26 * + col0 + + CAST( NULL AS SIGNED ) * + - 54 * - - col2 IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2214
SELECT - col1 AS col0 FROM tab1 cor0 WHERE NOT 26 * + col0 + + CAST ( NULL AS INTEGER ) * + - 54 * - - col2 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 21 BETWEEN NULL AND 14
----

query I rowsort
SELECT DISTINCT - 20 * col1 FROM tab0
----
-1620
-20
-420

query I rowsort
SELECT - 92 + + 80 FROM tab2
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT + col0 + + CAST( NULL AS SIGNED ) + - col1 * col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT MAX( ALL - 41 ) + + + 44 AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2219
SELECT MAX ( ALL - 41 ) + + + 44 AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT - COUNT( col0 ) + - 52 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2220
SELECT - COUNT ( col0 ) + - 52 FROM tab1 AS cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 62 * + col2 * + 33 col2 FROM tab2 AS cor0
----
-118726
-47081
-81880

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 90 / + - col0 <> ( + - 92 * + 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( 78 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( 78 ) IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col0, - 42 FROM tab2
----
23
-42
40
-42
58
-42

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 42 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2226
SELECT DISTINCT + AVG ( + CAST( NULL AS SIGNED ) ) * MIN( - 43 ) AS col2, SUM( + 83 ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
NULL
747

skipif mysql # not compatible
query II rowsort label-2226
SELECT DISTINCT + AVG ( + CAST ( NULL AS INTEGER ) ) * MIN ( - 43 ) AS col2, SUM ( + 83 ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
NULL
747

query I rowsort
SELECT - 81 + + 52 FROM tab0 cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL 49 * - - COUNT( * ) + - 48 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL 49 * - - COUNT ( * ) + - 48 FROM tab1 AS cor0
----
99

query II rowsort
SELECT + col0 + - - col0 AS col1, col1 AS col1 FROM tab0 AS cor0
----
174
21
194
1
30
81

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 86 - - 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT DISTINCT CAST( + - col1 AS SIGNED ) * - + col1 AS col2 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) * - + col1 AS col2 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT + MAX( + - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2233
SELECT + MAX ( + - col1 ) AS col2 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * - col1 col1 FROM tab1
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT + SUM( col2 ) col1 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2235
SELECT + SUM ( col2 ) col1 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + MIN( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2236
SELECT + MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
46

query II rowsort
SELECT - + 37, + 99 AS col0 FROM tab0 AS cor0 WHERE NOT col1 / - col0 IN ( ( - - col1 ), - col1 )
----
-37
99
-37
99
-37
99

query I rowsort
SELECT ( - 70 ) FROM tab2
----
-70
-70
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT - COUNT( * ) DIV - 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT - COUNT ( * ) / - 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT - 14 + - ( 38 ) + 2 + + + 13 FROM tab0
----
-37
-37
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2241
SELECT DISTINCT - - 34 AS col2, + 37 DIV - MAX( + - col0 ) FROM tab0 cor0
----
34
2

skipif mysql # not compatible
query II rowsort label-2241
SELECT DISTINCT - - 34 AS col2, + 37 / - MAX ( + - col0 ) FROM tab0 cor0
----
34
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 89 + + col1, - 78 * - + col2, - col2 / - col1 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col2 + + 4 FROM tab0 AS cor0
----
-15
51
-87
14
-97
103

query II rowsort
SELECT 4 AS col0, col0 + + col2 AS col1 FROM tab1 AS cor0
----
4
144
4
147
4
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + col2 + + 5 col0 FROM tab0 AS cor0
----
104
215
3812

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2246
SELECT + 20 AS col1, - col0 * - ( + CAST( NULL AS SIGNED ) ) + + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
20
NULL
20
NULL
20
NULL

skipif mysql # not compatible
query II rowsort label-2246
SELECT + 20 AS col1, - col0 * - ( + CAST ( NULL AS INTEGER ) ) + + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
20
NULL
20
NULL
20
NULL

query I rowsort
SELECT ALL + col1 * 60 + - - 61 AS col2 FROM tab2 AS cor0
----
3121
4081
4681

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - COUNT( * ) FROM tab0 WHERE + ( + col0 ) >= - col2
----
-3

skipif mysql # not compatible
query I rowsort label-2249
SELECT - COUNT ( * ) FROM tab0 WHERE + ( + col0 ) >= - col2
----
-3

query I rowsort
SELECT ( + 61 ) * + + col1 AS col1 FROM tab1
----
2867
305
854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2251
SELECT + COUNT( * ) DIV - ( 15 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT + COUNT ( * ) / - ( 15 ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2252
SELECT DISTINCT col1 * - col2 / - - CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT + - 51 + - col2 + col0 + col0 FROM tab1 AS cor0
----
-45
60
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT + col1 FROM tab0 WHERE - col0 BETWEEN NULL AND + col1 / + col1 + + ( col0 ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT - + COUNT( * ) col0 FROM tab2 WHERE + + col1 + + - col2 + - 75 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2256
SELECT - + COUNT ( * ) col0 FROM tab2 WHERE + + col1 + + - col2 + - 75 IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 * 43 FROM tab1 cor0
----
2193
3655
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT MIN( + 80 ) + + - 93 AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT MIN ( + 80 ) + + - 93 AS col1 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT + - 36 - + + col1 FROM tab1 AS cor0
----
-41
-50
-83

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT - - col2 DIV + - col2 - - col2 AS col0 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-2261
SELECT - - col2 / + - col2 - - col2 AS col0 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-46
-64
-75

query II rowsort
SELECT ALL - col0 * + 24 AS col0, 8 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL - COUNT( ALL + + 2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - COUNT ( ALL + + 2 ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 97 <> - 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1, - col0 * + col0 FROM tab1
----
14
-2601
47
-8281
5
-7225

query I rowsort
SELECT ALL + col2 * + ( col1 ) FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2268
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT ALL 92 * 32 AS col2 FROM tab2
----
2944
2944
2944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NOT - 90 + - col0 + ( col1 ) + + + 91 * 65 >= 74 + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( + 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2272
SELECT col1 AS col0, + CAST( NULL AS SIGNED ) - - 21 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2272
SELECT col1 AS col0, + CAST ( NULL AS INTEGER ) - - 21 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT DISTINCT + + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT ( + CAST( - 69 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-69
-69
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT - COUNT( * ) * 22 AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2275
SELECT - COUNT ( * ) * 22 AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2276
SELECT + + MIN( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - + col2 AS col1, col2 col2 FROM tab1 cor0
----
-3481
59
-4624
68
-9216
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND - ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

query I rowsort
SELECT ALL 55 * ( 97 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e930ef9f610e7a51ede6ea0bd17a41b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT - + MAX( + + 73 ) AS col1 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2282
SELECT - + MAX ( + + 73 ) AS col1 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT DISTINCT + col1 * + col2 + + + col0 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT ALL - - col1 * - - col0 + - col2 + + + col0 AS col2 FROM tab2 AS cor0
----
2369
4952
5042

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + 16 * - ( + 81 ) + 6 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1287

skipif mysql # not compatible
query I rowsort label-2285
SELECT + 16 * - ( + 81 ) + 6 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2286
SELECT DISTINCT 87 + - 28 * - 87 * - + CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-7221

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT 87 + - 28 * - 87 * - + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-7221

query I rowsort
SELECT 66 + + col2 FROM tab0
----
113
165
76

query I rowsort
SELECT DISTINCT - col2 * - col1 FROM tab0 WHERE NOT col0 - 17 + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( col1 ) * + + col2 * + col2 + + col0 * + + col0 col0 FROM tab2
----
13078129
4932096
622633

query I rowsort
SELECT + 27 * + - col1 * + 82 AS col2 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 73 + + + col1 FROM tab1 AS cor0
----
120
78
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + 71 >= + col0
----
51
14
96

query I rowsort
SELECT ALL 38 - + 20 * ( - col1 ) AS col2 FROM tab0 cor0
----
1658
458
58

query I rowsort
SELECT - col0 - - col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col0 - + 87 AS col1 FROM tab2
----
-12
-23
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-2296
SELECT - ( col0 ) col2, - 38 DIV + col0 AS col1 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2296
SELECT - ( col0 ) col2, - 38 / + col0 AS col1 FROM tab1
----
-51
0
-85
0
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT COUNT( * ) * - 94 * + - MAX( + col1 ) FROM tab0
----
22842

skipif mysql # not compatible
query I rowsort label-2297
SELECT COUNT ( * ) * - 94 * + - MAX ( + col1 ) FROM tab0
----
22842

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT DISTINCT SUM( ALL + - 10 ) AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT SUM ( ALL + - 10 ) AS col2 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT ALL + + col0 * col2 FROM tab2 AS cor0 WHERE NOT - 26 IS NULL
----
1058
2560
4350

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 57 / + + 24 * col0 / - - col1 - - col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - col1 * 38 * col0 FROM tab1 AS cor0
----
-16150
-162526
-27132

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT ALL 84 DIV 3 AS col1 FROM tab0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL 84 / 3 AS col1 FROM tab0
----
28
28
28

query I rowsort
SELECT ALL + col0 * + - col0 * - + col1 * + col1 AS col0 FROM tab0
----
1476225
3337929
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT ALL + COUNT( * ) * + ( + COUNT( - 74 ) ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL + COUNT ( * ) * + ( + COUNT ( - 74 ) ) AS col1 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2307
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( - + col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2307
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( - + col2 AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2308
SELECT + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2308
SELECT + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2309
SELECT - col2 DIV + + col1 AS col2, ( + col0 ) + - - 62 - + + 53 AS col0 FROM tab2
----
0
55
0
73
0
84

skipif mysql # not compatible
query II rowsort label-2309
SELECT - col2 / + + col1 AS col2, ( + col0 ) + - - 62 - + + 53 AS col0 FROM tab2
----
0
55
0
73
0
84

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

query I rowsort
SELECT ALL - col0 + - 83 + - 80 AS col1 FROM tab1 AS cor0
----
-214
-248
-254

query I rowsort
SELECT DISTINCT + + ( + - 18 ) * - 97 + + - col1 FROM tab0 AS cor0
----
1665
1725
1745

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT + ( COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT + ( COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT - - MAX( + + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2314
SELECT - - MAX ( + + col1 ) FROM tab2 cor0
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 1 * col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2316
SELECT + + 0 AS col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-2316
SELECT + + 0 AS col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT + - col1 + + 24 FROM tab2 AS cor0 WHERE - col2 * + - 64 * - ( + - ( - + 85 ) ) + - ( + - 25 ) <= + + 52 * - col2
----
-27
-43
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT + + COUNT( * ) * + + 55 FROM tab1 cor0
----
165

skipif mysql # not compatible
query I rowsort label-2318
SELECT + + COUNT ( * ) * + + 55 FROM tab1 cor0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2319
SELECT + 28 AS col0, - COUNT( * ) DIV - MIN( ALL + col2 ) - + 7 FROM tab1 AS cor0
----
28
-7

skipif mysql # not compatible
query II rowsort label-2319
SELECT + 28 AS col0, - COUNT ( * ) / - MIN ( ALL + col2 ) - + 7 FROM tab1 AS cor0
----
28
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL + MAX( ALL col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL + MAX ( ALL col2 ) AS col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT DISTINCT COUNT( ALL 30 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT COUNT ( ALL 30 ) FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2322
SELECT ALL col0 * CAST( NULL AS DECIMAL ) * + col1 FROM tab2 WHERE NOT - col1 * - col0 IN ( 32, - col1 * - col0 * - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL col0 * CAST ( NULL AS REAL ) * + col1 FROM tab2 WHERE NOT - col1 * - col0 IN ( 32, - col1 * - col0 * - col1 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2323
SELECT + COUNT( * ) * MIN( + col2 ) col2, + COUNT( * ) AS col1 FROM tab1
----
177
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2323
SELECT + COUNT ( * ) * MIN ( + col2 ) col2, + COUNT ( * ) AS col1 FROM tab1
----
177
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT DISTINCT MIN( ALL - - col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT MIN ( ALL - - col0 ) AS col2 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 + - + 27 AS col2, ( - col0 ) col1 FROM tab0 cor0
----
-12
-15
60
-87
70
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE 88 < NULL
----

query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-420
-4230
-700

query I rowsort
SELECT - col2 * 5 + + col2 AS col0 FROM tab1 cor0
----
-236
-272
-384

query I rowsort
SELECT + + col1 * 3 + + col0 / + col2 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL col1 * + col0 - + col2 * - col2 + - 3 AS col1 FROM tab1 AS cor0
----
3903
8898
9927

query I rowsort
SELECT 15 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT col2 * - - col1 AS col1 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 75 IN ( - + 44, - 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 90 * + - col0 FROM tab1 AS cor0
----
-4590
-7650
-8190

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT ( - col0 ) DIV - col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2336
SELECT ( - col0 ) / - col2 FROM tab0 AS cor0
----
0
0
8

query II rowsort
SELECT DISTINCT - col2 AS col2, + ( - col1 ) * + - 41 + - col0 FROM tab2 AS cor0
----
-23
2045
-40
3093
-58
2672

query I rowsort
SELECT col1 * 51 FROM tab1 AS cor0
----
2397
255
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT + COUNT( * ) * + 79 AS col0 FROM tab2 cor0
----
237

skipif mysql # not compatible
query I rowsort label-2339
SELECT + COUNT ( * ) * + 79 AS col0 FROM tab2 cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL + 8 * - COUNT( * ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL + 8 * - COUNT ( * ) FROM tab0 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * + col0 + - - ( + + 28 ) col0 FROM tab2 AS cor0
----
-2364
-3300
-3872

query I rowsort
SELECT ALL col0 * + col2 * - col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE + + 66 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT DISTINCT col2 DIV - - 18 AS col0 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT col2 / - - 18 AS col0 FROM tab2
----
1
2
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 38 + - col1 - col2 * + col2 * 23 - - 5 NOT BETWEEN NULL AND ( + + 29 + - 15 * + - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2346
SELECT ALL * FROM tab1 WHERE - col1 * + col2 + - + col1 * + CAST( + col0 AS DECIMAL ) + - - 0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2346
SELECT ALL * FROM tab1 WHERE - col1 * + col2 + - + col1 * + CAST ( + col0 AS REAL ) + - - 0 IS NULL
----

query I rowsort
SELECT ALL col2 * 31 * - col2 FROM tab2
----
-104284
-16399
-49600

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - col2 * 95 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT - col2 + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-2349
SELECT - col2 + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT - CAST( ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2350
SELECT - CAST ( ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 5 * + col1 > col2
----
97
1
99

query I rowsort
SELECT DISTINCT - col1 + - - 42 + + 61 FROM tab2 AS cor0
----
26
36
52

query I rowsort
SELECT ALL + + col0 + 91 AS col1 FROM tab1 cor0
----
142
176
182

query I rowsort
SELECT ALL + col1 * - col1 + - - col1 + 63 * + + col0 + + col2 FROM tab0 AS cor0
----
-5488
5071
6210

query I rowsort
SELECT + col2 * - col0 * + col2 + + - col0 + col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN - col2 AND - col2
----

query I rowsort
SELECT DISTINCT + + col0 + 18 FROM tab2 AS cor0
----
64
82
93

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND + - ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT + COUNT( * ) + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2358
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT - col2 + col2 * col1 FROM tab2 WHERE NULL IS NULL
----
1150
3040
3828

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE - col0 - col2 IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 * + 14 col0 FROM tab1
----
-68544
-70210
-86632

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE + 96 > NULL
----

query II rowsort
SELECT ALL col1, col0 * - col2 FROM tab0
----
1
-9603
21
-870
81
-705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2364
SELECT + SUM( DISTINCT 29 ) * - CAST( + SUM( - col2 ) AS SIGNED ) AS col0 FROM tab2
----
3509

skipif mysql # not compatible
query I rowsort label-2364
SELECT + SUM ( DISTINCT 29 ) * - CAST ( + SUM ( - col2 ) AS INTEGER ) AS col0 FROM tab2
----
3509

query I rowsort
SELECT + 38 * + col1 AS col0 FROM tab2
----
1938
2546
2926

query II rowsort
SELECT ALL + col0 AS col1, + 89 FROM tab1 AS cor0
----
51
89
85
89
91
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT DISTINCT + - 67 + - COUNT( * ) + + 4 AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2367
SELECT DISTINCT + - 67 + - COUNT ( * ) + + 4 AS col2 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL MIN( + 96 ) col0 FROM tab0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2368
SELECT ALL MIN ( + 96 ) col0 FROM tab0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 55 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT + - COUNT( * ) * SUM( 3 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2371
SELECT + - COUNT ( * ) * SUM ( 3 ) FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT + MAX( - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT + MAX ( - - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT - col2 * + 2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT - - COUNT( col2 ) * - 71, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-213
3

skipif mysql # not compatible
query II rowsort label-2374
SELECT - - COUNT ( col2 ) * - 71, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-213
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 24, - col0 - - col1 col1 FROM tab1
----
24
-37
24
-44
24
-80

query II rowsort
SELECT DISTINCT 24, + col2 AS col2 FROM tab0
----
24
10
24
47
24
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2377
SELECT DISTINCT * FROM tab2 WHERE - 18 + - - CAST( NULL AS SIGNED ) + 43 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2377
SELECT DISTINCT * FROM tab2 WHERE - 18 + - - CAST ( NULL AS INTEGER ) + 43 IS NOT NULL
----

query I rowsort
SELECT + ( + col2 ) * col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT DISTINCT + CAST( 40 AS SIGNED ) AS col1 FROM tab1
----
40

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2380
SELECT DISTINCT - + 95 AS col2, - 56 FROM tab0 WHERE - col0 + - col0 < 40 * CAST( NULL AS SIGNED ) - - - col0 - + - col0
----

skipif mysql # not compatible
query II rowsort label-2380
SELECT DISTINCT - + 95 AS col2, - 56 FROM tab0 WHERE - col0 + - col0 < 40 * CAST ( NULL AS INTEGER ) - - - col0 - + - col0
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT NULL <= - 16 - col2 * - col1
----

query I rowsort
SELECT ALL - col0 + - + 19 + - + col0 * 45 FROM tab2 cor0
----
-2135
-2963
-3469

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2383
SELECT ALL - col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2384
SELECT 59 + SUM( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT 59 + SUM ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 + 23 + + col1 FROM tab1 cor0
----
117
33
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT ALL - COUNT( * ) + + COUNT( + + col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL - COUNT ( * ) + + COUNT ( + + col0 ) FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT - col2 / - col1 + + - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ALL + - COUNT( * ) + + - ( + COUNT( * ) ) - + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL + - COUNT ( * ) + + - ( + COUNT ( * ) ) - + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col0 - col0 * - - 80 FROM tab0 AS cor0
----
-1215
-7047
-7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT ALL CAST( - col1 AS SIGNED ) + - 68 FROM tab1 AS cor0
----
-115
-73
-82

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL CAST ( - col1 AS INTEGER ) + - 68 FROM tab1 AS cor0
----
-115
-73
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT COUNT( * ) * - - MIN( DISTINCT + col2 ) - + 83 AS col0 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-2392
SELECT COUNT ( * ) * - - MIN ( DISTINCT + col2 ) - + 83 AS col0 FROM tab0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT col0 DIV + 97 * + col2 - - - col1 + + col2 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-2393
SELECT col0 / + 97 * + col2 - - - col1 + + col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - 14 - - - col2 FROM tab0
----
-113
-24
-61

query I rowsort
SELECT DISTINCT + - ( - col0 ) * + + col1 * col2 + - col2 + col0 AS col1 FROM tab2 cor0
----
197144
291467
53981

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * col0 <> + + col0
----

query II rowsort
SELECT - 83 AS col1, col0 + + - 37 FROM tab0 AS cor0
----
-83
-22
-83
50
-83
60

query II rowsort
SELECT DISTINCT col1 AS col0, + col0 - + col1 * - col1 FROM tab1 AS cor0
----
14
247
47
2300
5
110

query I rowsort
SELECT col0 * + col0 FROM tab2 AS cor0 WHERE NOT + 55 IN ( + - 55 + + 40, col0 * - - col1, col0 )
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT MAX( + - col1 ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2400
SELECT MAX ( + - col1 ) col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - - 80 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2402
SELECT DISTINCT + COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2402
SELECT DISTINCT + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * col0 IN ( + col0, 76, col0, - + ( - + col2 ), + ( - col2 ), - 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + - col2 * 74 FROM tab1 AS cor0
----
-4371
-5079
-7118

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + - 32 + + - ( col0 ) = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL + SUM( + 80 ) AS col1 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + SUM ( + 80 ) AS col1 FROM tab2
----
240

query I rowsort
SELECT - 60 + col1 * + - 54 AS col1 FROM tab0
----
-114
-1194
-4434

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * + + col1 > NULL )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col0 + - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL SUM( 76 ) FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL SUM ( 76 ) FROM tab0 AS cor0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT ALL + 30 + - CAST( - AVG ( 39 ) AS SIGNED ) * + 23 FROM tab1 cor0
----
927

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL + 30 + - CAST ( - AVG ( 39 ) AS INTEGER ) * + 23 FROM tab1 cor0
----
927

query I rowsort
SELECT DISTINCT - 28 * + 10 AS col1 FROM tab2
----
-280

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - - col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2414
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT ALL + MAX( - - 38 ) + + 77 AS col0 FROM tab2 AS cor0 WHERE NOT 84 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL + MAX ( - - 38 ) + + 77 AS col0 FROM tab2 AS cor0 WHERE NOT 84 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + - col2 - + col2 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2417
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( col2 IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2418
SELECT DISTINCT + COUNT( * ) * - + 95 * - - 46 AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-13110
3

skipif mysql # not compatible
query II rowsort label-2418
SELECT DISTINCT + COUNT ( * ) * - + 95 * - - 46 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-13110
3

query I rowsort
SELECT ALL - - 60 + + 62 * col1 - - col1 * + col2 AS col0 FROM tab0 AS cor0
----
1572
221
8889

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT ALL - 39 * MAX( DISTINCT + ( - + 73 ) ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - 39 * MAX ( DISTINCT + ( - + 73 ) ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - 27 < + col0
----
3

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - 27 < + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL - 6 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL - 6 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT ALL - + COUNT( * ) - + ( + 4 ) FROM tab1 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL - + COUNT ( * ) - + ( + 4 ) FROM tab1 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT MIN( - + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2425
SELECT MIN ( - + col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT CAST( - + col1 AS SIGNED ) * 98 AS col2 FROM tab2
----
-4998
-6566
-7546

skipif mysql # not compatible
query I rowsort label-2426
SELECT CAST ( - + col1 AS INTEGER ) * 98 AS col2 FROM tab2
----
-4998
-6566
-7546

onlyif mysql # aggregate syntax: 
query II rowsort label-2427
SELECT SUM( DISTINCT + col0 ) * - - 33 * - - 20 col0, 26 FROM tab2
----
122100
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2427
SELECT SUM ( DISTINCT + col0 ) * - - 33 * - - 20 col0, 26 FROM tab2
----
122100
26

query I rowsort
SELECT ALL + col2 * - 9 FROM tab0
----
-423
-891
-90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT DISTINCT - col2 DIV - col0 DIV col2 * col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT - col2 / - col0 / col2 * col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2431
SELECT ALL + - 68 - - col2 - + 43 FROM tab0 AS cor0 WHERE 23 * - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + - 68 - - col2 - + 43 FROM tab0 AS cor0 WHERE 23 * - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * col2 + - + 82 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT + - col2 * + 3 * + col1 AS col0, col1 FROM tab2 AS cor0
----
-11658
67
-3519
51
-9240
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT - - ( COUNT( * ) ) + - SUM( 65 ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - - ( COUNT ( * ) ) + - SUM ( 65 ) FROM tab1 AS cor0
----
-192

query II rowsort
SELECT DISTINCT + + col1, ( + + ( col2 ) ) FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + 36 * + + 4 * - COUNT( * ) AS col0 FROM tab0
----
-432

skipif mysql # not compatible
query I rowsort label-2438
SELECT + 36 * + + 4 * - COUNT ( * ) AS col0 FROM tab0
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT DISTINCT CAST( - - ( - col0 ) AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT CAST ( - - ( - col0 ) AS INTEGER ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL ( + - 25 ) AS col0 FROM tab2
----
-25
-25
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2441
SELECT CAST( NULL AS SIGNED ) AS col0, ( - COUNT( * ) ) AS col1 FROM tab1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2441
SELECT CAST ( NULL AS INTEGER ) AS col0, ( - COUNT ( * ) ) AS col1 FROM tab1
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT 50 - + - COUNT( + col0 ) FROM tab0 WHERE - col1 <> + 6
----
53

skipif mysql # not compatible
query I rowsort label-2442
SELECT 50 - + - COUNT ( + col0 ) FROM tab0 WHERE - col1 <> + 6
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2443
SELECT ALL COUNT( * ) AS col0, - 34 FROM tab0
----
3
-34

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL COUNT ( * ) AS col0, - 34 FROM tab0
----
3
-34

query I rowsort
SELECT - col2 * + - col2 AS col0 FROM tab2 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 * - col0 * + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 41 + - - col1 FROM tab0 AS cor0
----
122
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT + ( - 92 ) + SUM( ALL + col0 ) FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2447
SELECT + ( - 92 ) + SUM ( ALL + col0 ) FROM tab1 AS cor0
----
135

query I rowsort
SELECT ALL 51 + - 41 AS col0 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT - col2 + - 92 + - 98 AS col2 FROM tab0
----
-200
-237
-289

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - - 42 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - 72 - - 61 FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + MAX( 44 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2453
SELECT + MAX ( 44 ) FROM tab1 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + col1 ), col1 * 88 col1 FROM tab2 AS cor0
----
-51
4488
-67
5896
-77
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - 76 - COUNT( * ) FROM tab1 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2455
SELECT - 76 - COUNT ( * ) FROM tab1 cor0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT ALL - 94 DIV col1 - 5 * + + col0 + - col0 FROM tab1 AS cor0
----
-312
-528
-548

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - 94 / col1 - 5 * + + col0 + - col0 FROM tab1 AS cor0
----
-312
-528
-548

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT + col1 DIV 77 - + ( col0 ) * - - col0 + + 54 FROM tab2 AS cor0
----
-2062
-4041
-5571

skipif mysql # not compatible
query I rowsort label-2457
SELECT + col1 / 77 - + ( col0 ) * - - col0 + + 54 FROM tab2 AS cor0
----
-2062
-4041
-5571

query I rowsort
SELECT col1 * + ( - 56 ) AS col1 FROM tab2 AS cor0
----
-2856
-3752
-4312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2459
SELECT + COUNT( - + CAST( col2 AS SIGNED ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2459
SELECT + COUNT ( - + CAST ( col2 AS INTEGER ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - COUNT( - col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2460
SELECT - COUNT ( - col1 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2461
SELECT DISTINCT + col0 AS col0, - col1 DIV - col1 col0 FROM tab0
----
15
1
87
1
97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2461
SELECT DISTINCT + col0 AS col0, - col1 / - col1 col0 FROM tab0
----
15
1
87
1
97
1

query I rowsort
SELECT ALL + ( + col2 ) * + col0 AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - col0 * - - col0 AS col2 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 97 * 61 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2465
SELECT DISTINCT CAST( + - 26 AS SIGNED ), - 66 AS col0, + 90 * - COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
-26
-66
-810

skipif mysql # not compatible
query III rowsort label-2465
SELECT DISTINCT CAST ( + - 26 AS INTEGER ), - 66 AS col0, + 90 * - COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
-26
-66
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT + - COUNT( + 31 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2466
SELECT + - COUNT ( + 31 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT 74 AS col2, 46 * - MAX( ALL col2 ) AS col2 FROM tab0 AS cor0
----
74
-4554

skipif mysql # not compatible
query II rowsort label-2467
SELECT 74 AS col2, 46 * - MAX ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
74
-4554

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT - col0 - col0 DIV + 43 AS col2 FROM tab1
----
-52
-86
-93

skipif mysql # not compatible
query I rowsort label-2468
SELECT - col0 - col0 / + 43 AS col2 FROM tab1
----
-52
-86
-93

query I rowsort
SELECT col0 - 81 AS col2 FROM tab1
----
-30
10
4

query III rowsort
SELECT * FROM tab1 WHERE col1 + 18 <> col0 + col1 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( 68 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( col2 ) - - 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT DISTINCT + MAX( ALL + 60 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT + MAX ( ALL + 60 ) FROM tab1
----
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 47 * - col1 NOT BETWEEN 29 * col2 AND 43
----

query I rowsort
SELECT ( ( + col2 ) ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT 50 AS col0 FROM tab1 WHERE NOT + col1 * 58 + col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT col0 * col1 - - col0 AS col0 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT ALL - ( + col1 ) - - col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL col0 * + 60 + col2 * + ( ( - col0 ) ) FROM tab1
----
-1836
-728
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT 60 * COUNT( * ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-2481
SELECT 60 * COUNT ( * ) FROM tab0
----
180

query I rowsort
SELECT ALL + ( col2 ) * col0 AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
4896
5015
6188

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE - 91 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - 23 + - 44 FROM tab2
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT SUM( - 84 ) AS col1 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT SUM ( - 84 ) AS col1 FROM tab0
----
-252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2486
SELECT - AVG ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT COUNT( * ) * 88 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-2487
SELECT COUNT ( * ) * 88 FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT SUM( ALL + 25 ) * - COUNT( * ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-2488
SELECT SUM ( ALL + 25 ) * - COUNT ( * ) FROM tab0
----
-225

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= - col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - ( + col2 )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col1 = + col1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL col2 + + col2 DIV - ( 28 ) AS col2 FROM tab1 AS cor0
----
57
66
93

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL col2 + + col2 / - ( 28 ) AS col2 FROM tab1 AS cor0
----
57
66
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT ALL - ( COUNT( 84 ) ) + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL - ( COUNT ( 84 ) ) + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 20 - ( + 71 + - col1 * 29 ) AS col0 FROM tab0 AS cor0
----
-22
2298
558

query I rowsort
SELECT ALL - ( + 8 ) + col1 FROM tab2
----
43
59
69

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT + ( col1 ) * col2 + 30 FROM tab1 cor0
----
1374
3226
325

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 * - 75 + + col0 ) > col2 + 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + 37 NOT BETWEEN ( NULL ) AND - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT ALL - SUM( DISTINCT - 25 ) col2 FROM tab0 cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2501
SELECT ALL - SUM ( DISTINCT - 25 ) col2 FROM tab0 cor0
----
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 62 * col0 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT ( 4 * col0 ) < ( - CAST( - col2 AS SIGNED ) )
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2503
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT ( 4 * col0 ) < ( - CAST ( - col2 AS INTEGER ) )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2504
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2504
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - 46 col2 FROM tab0
----
-4002
-4462
-690

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col0 * 31 + col2 * - ( col0 ) )
----

query I rowsort
SELECT ALL + col1 / - col0 + col0 FROM tab0 WHERE NOT 75 * - col2 + 35 * + 96 NOT BETWEEN - 34 AND + col0
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab1 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * - col2 <= 14 * - 83
----

query I rowsort
SELECT DISTINCT + ( + + col0 ) FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * col2 * + col2 col0 FROM tab2
----
-10051
-30400
-63916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT ALL CAST( NULL AS SIGNED ) * - - MIN( - col0 ) / COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL CAST ( NULL AS INTEGER ) * - - MIN ( - col0 ) / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT - MAX( 46 ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * - col1 IS NULL
----
138

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT - MAX ( 46 ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * - col1 IS NULL
----
138

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2515
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) / MAX( + 97 ) - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) / MAX ( + 97 ) - - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT col2 * - 53 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col2 + + 8 * col2
----

query I rowsort
SELECT + + 47 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query II rowsort label-2519
SELECT DISTINCT COUNT( * ) col0, - SUM( - + 97 ) AS col2 FROM tab2
----
3
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2519
SELECT DISTINCT COUNT ( * ) col0, - SUM ( - + 97 ) AS col2 FROM tab2
----
3
291

query I rowsort
SELECT ALL + 77 * - col2 + - col0 FROM tab0
----
-3634
-7720
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL - 65 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - 65 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 59 )
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 60 * + col2 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT 94 * - col0 FROM tab1 cor0
----
-4794
-7990
-8554

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2527
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) + + 76 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2527
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) + + 76 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 78 + 21 AS col2 FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL 20 + + + col1 FROM tab0 AS cor0
----
101
21
41

query I rowsort
SELECT DISTINCT - + col2 + col0 * + - col1 FROM tab0 AS cor0
----
-1262
-1837
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + + 76 * COUNT( * ) FROM tab2 WHERE + col1 IS NOT NULL
----
228

skipif mysql # not compatible
query I rowsort label-2532
SELECT + + 76 * COUNT ( * ) FROM tab2 WHERE + col1 IS NOT NULL
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2533
SELECT 47 * - ( - + CAST( - AVG ( col0 ) AS SIGNED ) ) FROM tab0
----
-3102

skipif mysql # not compatible
query I rowsort label-2533
SELECT 47 * - ( - + CAST ( - AVG ( col0 ) AS INTEGER ) ) FROM tab0
----
-3102

query I rowsort
SELECT ALL ( - col1 ) + ( + 72 ) AS col0 FROM tab2
----
-5
21
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2535
SELECT * FROM tab0 WHERE col1 BETWEEN NULL AND + - col0 * - CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-2535
SELECT * FROM tab0 WHERE col1 BETWEEN NULL AND + - col0 * - CAST ( NULL AS INTEGER ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL + SUM( ALL - 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + SUM ( ALL - 0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT 7 + 89 * COUNT( * ) FROM tab2 WHERE 68 + + ( - 78 ) IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-2537
SELECT 7 + 89 * COUNT ( * ) FROM tab2 WHERE 68 + + ( - 78 ) IS NULL
----
7

query II rowsort
SELECT ALL - ( + col1 ), - col1 + - col2 AS col2 FROM tab1
----
-14
-110
-47
-115
-5
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT + MAX( DISTINCT 69 ) + - COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2539
SELECT + MAX ( DISTINCT 69 ) + - COUNT ( * ) FROM tab2 AS cor0
----
66

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

query I rowsort
SELECT DISTINCT 48 - - col2 FROM tab0
----
147
58
95

query I rowsort
SELECT col2 * - 3 AS col0 FROM tab0
----
-141
-297
-30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 * - + 99 * col2 ) IS NULL
----

query I rowsort
SELECT ALL + 45 - + 88 AS col1 FROM tab2
----
-43
-43
-43

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <= ( + - col1 + - + col0 * - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 12 * - col0 * col0 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT - CAST( ( - + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2547
SELECT - CAST ( ( - + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT + MAX( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + MAX ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT + ( col2 ) * + ( - + col2 ) + + 17 AS col2 FROM tab0 AS cor0
----
-2192
-83
-9784

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2551
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) BETWEEN - col2 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) BETWEEN - col2 AND - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT ALL - + col1 DIV - + col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - + col1 / - + col2 FROM tab2 cor0
----
1
1
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL SUM( + 84 ) FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL SUM ( + 84 ) FROM tab0
----
252

query II rowsort
SELECT DISTINCT 61, 70 * + col2 AS col1 FROM tab0
----
61
3290
61
6930
61
700

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT DISTINCT ( - COUNT( DISTINCT 25 ) ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT ( - COUNT ( DISTINCT 25 ) ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT ALL + 96 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query II rowsort
SELECT ALL + col1 AS col0, 50 FROM tab1
----
14
50
47
50
5
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL + - SUM( + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + - SUM ( + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT + ( - 65 ) * + COUNT( * ) FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2560
SELECT + ( - 65 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-195

query I rowsort
SELECT ALL 11 + - col0 AS col1 FROM tab2 AS cor0
----
-35
-53
-64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 63 * + col0 col0 FROM tab2 cor0
----
23
2898
40
4032
58
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT DISTINCT + COUNT( * ) + + 55 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT + COUNT ( * ) + + 55 FROM tab1 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + MIN( + 24 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2565
SELECT + MIN ( + 24 ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT ALL - 49 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71 - + col2 col0, col0 + + col0 AS col2 FROM tab2 WHERE + 25 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < - 90
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT DISTINCT 35 DIV + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT 35 / + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - 52 * - 93 FROM tab2 AS cor0
----
4836
4836
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + 56 + SUM( ( - 35 ) ) FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2571
SELECT + 56 + SUM ( ( - 35 ) ) FROM tab1 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT + CAST( - + col1 AS SIGNED ) + - col2 * - + col2 + + col2 + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
2222
99
9998

skipif mysql # not compatible
query I rowsort label-2572
SELECT + CAST ( - + col1 AS INTEGER ) + - col2 * - + col2 + + col2 + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
2222
99
9998

query I rowsort
SELECT - + col2 + - - 34 * + - col0 - - - col2 FROM tab2 AS cor0
----
-1610
-2256
-2666

query II rowsort
SELECT ALL col0 - 33 - col0 AS col1, col2 + + col0 + col1 AS col1 FROM tab0
----
-33
118
-33
143
-33
197

query I rowsort
SELECT ALL 6 - - col2 FROM tab1
----
102
65
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col0 ) * - col1 AS col2, col2 col0 FROM tab0
----
1215
47
1827
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2577
SELECT - col2 DIV - 43 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2577
SELECT - col2 / - 43 FROM tab1
----
1
1
2

query I rowsort
SELECT ALL - 7 * col1 AS col2 FROM tab0
----
-147
-567
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT + COUNT( * ) * 95 col2 FROM tab2
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2579
SELECT + COUNT ( * ) * 95 col2 FROM tab2
----
285

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2580
SELECT ALL 74 + + - ( - - 68 ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + 75 + + - 22 + - + col1 AS col2 FROM tab0 AS cor0
----
-28
32
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT DISTINCT - 55 * 83 DIV + col0 AS col0 FROM tab2
----
-60
-71
-99

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT - 55 * 83 / + col0 AS col0 FROM tab2
----
-60
-71
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT MIN( DISTINCT - - col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2583
SELECT MIN ( DISTINCT - - col1 ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL - COUNT( ALL + 76 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL - COUNT ( ALL + 76 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT + - CAST( NULL AS SIGNED ) / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT - MAX( + 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2586
SELECT - MAX ( + 96 ) FROM tab1
----
-96

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

query II rowsort
SELECT + 29 AS col2, col2 FROM tab1
----
29
59
29
68
29
96

query I rowsort
SELECT - 77 * - ( col0 ) FROM tab0
----
1155
6699
7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT CAST( + col0 AS SIGNED ) col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2590
SELECT CAST ( + col0 AS INTEGER ) col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT - ( - CAST( NULL AS SIGNED ) ) / + 16 + col0 / - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 65 IS NULL
----

query I rowsort
SELECT col1 * + - col1 * + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-531441
-9261

onlyif mysql # aggregate syntax: 
query II rowsort label-2595
SELECT + - 72 * + + 89 * COUNT( + col0 ) AS col0, 3 FROM tab0 AS cor0
----
-19224
3

skipif mysql # not compatible
query II rowsort label-2595
SELECT + - 72 * + + 89 * COUNT ( + col0 ) AS col0, 3 FROM tab0 AS cor0
----
-19224
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT + - COUNT( ALL + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2596
SELECT + - COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2597
SELECT - + COUNT( + + 79 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT + SUM( DISTINCT - 35 ) FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-2598
SELECT + SUM ( DISTINCT - 35 ) FROM tab0 AS cor0
----
-35

query II rowsort
SELECT DISTINCT col2 - - - 24, col1 AS col1 FROM tab1
----
35
5
44
47
72
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT col0 - - - CAST( - - col0 AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2600
SELECT col0 - - - CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 < + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT ALL col2 DIV - - col0 - + - 21 FROM tab0
----
21
22
24

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL col2 / - - col0 - + - 21 FROM tab0
----
21
22
24

query III rowsort
SELECT * FROM tab0 WHERE + - 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 67 + - col0 + + col1 AS col2, 93 FROM tab1 AS cor0
----
-13
93
23
93
30
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 89 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT DISTINCT + + col1 FROM tab1 cor0 WHERE ( + CAST( - - ( col0 ) AS SIGNED ) ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT + + col1 FROM tab1 cor0 WHERE ( + CAST ( - - ( col0 ) AS INTEGER ) ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2607
SELECT - CAST( + col2 AS SIGNED ) DIV col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2607
SELECT - CAST ( + col2 AS INTEGER ) / col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

query II rowsort
SELECT + + col0 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT - col1 * - + col1 * col2 FROM tab1 AS cor0
----
1475
150212
18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT + 93 * col0 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2611
SELECT ALL - + MAX( DISTINCT - + CAST( - + 47 AS SIGNED ) ) col1, + 60 FROM tab1 AS cor0
----
-47
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2611
SELECT ALL - + MAX ( DISTINCT - + CAST ( - + 47 AS INTEGER ) ) col1, + 60 FROM tab1 AS cor0
----
-47
60

query II rowsort
SELECT ALL + + col0 AS col2, - ( - 31 ) FROM tab0 AS cor0
----
15
31
87
31
97
31

query I rowsort
SELECT + 98 * + + col2 FROM tab0 AS cor0
----
4606
9702
980

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT + MAX( + + 38 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2614
SELECT + MAX ( + + 38 ) FROM tab2 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2615
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 83 * - col2 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2615
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 83 * - col2 + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + - ( + col0 ) * col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 IS NOT NULL )
----

query I rowsort
SELECT ALL - ( 75 ) FROM tab2 AS cor0
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 96 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 26 * - 40 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2621
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col0 - + CAST( NULL AS SIGNED ) - - - ( col2 )
----

skipif mysql # not compatible
query III rowsort label-2621
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col0 - + CAST ( NULL AS INTEGER ) - - - ( col2 )
----

query I rowsort
SELECT ALL + 71 * col0 * - 74 FROM tab2
----
-241684
-336256
-394050

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT ALL col2 DIV col0 DIV + 66 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL col2 / col0 / + 66 FROM tab0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL CAST( 61 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL CAST ( 61 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) + + - col0 col0 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( col2 ) AND ( 83 )
----

query I rowsort
SELECT + col2 + 17 FROM tab0 cor0
----
116
27
64

query II rowsort
SELECT + col1 * col0 + - - 10 AS col2, - 79 * - 15 FROM tab0 AS cor0
----
107
1185
1225
1185
1837
1185

query I rowsort
SELECT DISTINCT + + col1 - + - 63 AS col1 FROM tab0 AS cor0
----
144
64
84

query I rowsort
SELECT DISTINCT + ( + - col2 ) + - col0 * - 50 FROM tab0 AS cor0
----
4340
4751
703

query II rowsort
SELECT DISTINCT ( col0 ) + 53 * col0, + col0 + - col0 * - col2 AS col2 FROM tab0
----
4698
957
5238
9700
810
720

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT - SUM( 38 ) * + 72 FROM tab1
----
-8208

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT - SUM ( 38 ) * + 72 FROM tab1
----
-8208

query I rowsort
SELECT + col1 * ( - col1 ) AS col1 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 18 <= + + ( + - col2 ) * + + col2 + + + 98 * + col0 * - 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 5 AS col0, col1 + col0 + col0 AS col2 FROM tab2
----
5
143
5
205
5
217

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT DISTINCT COUNT( * ) AS col0, 69 FROM tab2
----
3
69

skipif mysql # not compatible
query II rowsort label-2637
SELECT DISTINCT COUNT ( * ) AS col0, 69 FROM tab2
----
3
69

query I rowsort
SELECT - - 82 * + + 59 FROM tab1 AS cor0
----
4838
4838
4838

query I rowsort
SELECT DISTINCT - 28 * + + col0 FROM tab0
----
-2436
-2716
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT + 12 * + COUNT( ALL - 84 ) FROM tab0 WHERE NULL < - 52 - - col0 + - + 31 * - + col1 * - col0 + - + col0 + col1 * + col0 + - ( - - col1 ) + - col2
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + 12 * + COUNT ( ALL - 84 ) FROM tab0 WHERE NULL < - 52 - - col0 + - + 31 * - + col1 * - col0 + - + col0 + col1 * + col0 + - ( - - col1 ) + - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL + 22 * 88 FROM tab0 AS cor0 WHERE NOT ( - col2 * + col0 * + 69 ) IS NOT NULL
----

query I rowsort
SELECT + col1 * ( - col2 ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT col1 * + 53 col2 FROM tab0 WHERE NOT - ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
1113
4293
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2645
SELECT col1 * + 53 col2 FROM tab0 WHERE NOT - ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
1113
4293
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT MIN( DISTINCT - - ( + - col0 ) ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT MIN ( DISTINCT - - ( + - col0 ) ) AS col0 FROM tab2
----
-75

query I rowsort
SELECT ALL col2 + - 14 FROM tab1
----
45
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT DISTINCT - + 3 + - - col0 + + CAST( + 44 AS SIGNED ) FROM tab0 cor0
----
128
138
56

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT - + 3 + - - col0 + + CAST ( + 44 AS INTEGER ) FROM tab0 cor0
----
128
138
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2649
SELECT ALL CAST( NULL AS DECIMAL ) + - COUNT( * ) * 62 * + - 97 + 65 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL CAST ( NULL AS REAL ) + - COUNT ( * ) * 62 * + - 97 + 65 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 96 + col0 FROM tab2 AS cor0
----
-21
-32
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - 0 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2651
SELECT - 0 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2652
SELECT - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE - CAST( col1 AS SIGNED ) BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-2652
SELECT - + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE - CAST ( col1 AS INTEGER ) BETWEEN NULL AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT ALL + - 61 DIV 38 + ( - col2 ) FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL + - 61 / 38 + ( - col2 ) FROM tab1 AS cor0
----
-60
-69
-97

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

query I rowsort
SELECT DISTINCT col2 + 15 - - 39 * - col0 + - ( - col0 ) AS col1 FROM tab0
----
-3281
-3572
-508

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT + COUNT( * ) * COUNT( col1 ) AS col2 FROM tab2 WHERE NOT NULL >= + col1
----
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT + COUNT ( * ) * COUNT ( col1 ) AS col2 FROM tab2 WHERE NOT NULL >= + col1
----
0

query I rowsort
SELECT - col2 + + 13 FROM tab2
----
-10
-27
-45

query I rowsort
SELECT DISTINCT + col1 * col1 + - 99 FROM tab0 cor0
----
-98
342
6462

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + ( - col1 ) * + + 36
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 71 + - col0 * col0 IN ( + 59, col0, - 97 + - col2 * - col2, 65 + - + 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 39 BETWEEN + + col0 - col1 AND - 49 / - + 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT ALL + + 52 * - - CAST( col0 AS SIGNED ) * - - 45 + 88 FROM tab1 AS cor0
----
119428
198988
213028

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + + 52 * - - CAST ( col0 AS INTEGER ) * - - 45 + 88 FROM tab1 AS cor0
----
119428
198988
213028

query I rowsort
SELECT col1 * + 69 * + col1 - 28 FROM tab1
----
13496
152393
1697

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT DISTINCT 78 - + - col1 + - + col1 DIV - col2 FROM tab0
----
101
160
79

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT 78 - + - col1 + - + col1 / - col2 FROM tab0
----
101
160
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2665
SELECT ALL - CAST( NULL AS DECIMAL ) col1 FROM tab0 WHERE NULL NOT BETWEEN + col0 / - - col0 AND col1 + + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2665
SELECT ALL - CAST ( NULL AS REAL ) col1 FROM tab0 WHERE NULL NOT BETWEEN + col0 / - - col0 AND col1 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT ALL + 21 + - + 18 FROM tab1 WHERE NOT - col0 >= + + 79 OR NOT NULL < + - CAST( NULL AS SIGNED ) + col2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + 21 + - + 18 FROM tab1 WHERE NOT - col0 >= + + 79 OR NOT NULL < + - CAST ( NULL AS INTEGER ) + col2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL + - MIN( ALL col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + - MIN ( ALL col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT - - MIN( DISTINCT 97 ) AS col2 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2668
SELECT - - MIN ( DISTINCT 97 ) AS col2 FROM tab1 AS cor0
----
97

query II rowsort
SELECT ALL col2, col2 + - col0 - + col2 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT - ( MIN( ALL + + 82 ) ) AS col0 FROM tab1 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2670
SELECT - ( MIN ( ALL + + 82 ) ) AS col0 FROM tab1 cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2671
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col0 ) BETWEEN - CAST( col2 AS SIGNED ) - + + 73 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2671
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col0 ) BETWEEN - CAST ( col2 AS INTEGER ) - + + 73 AND NULL
----

query I rowsort
SELECT ( 52 ) * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + col1 * 20 FROM tab1 WHERE - 10 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col0 + + col1 FROM tab1 AS cor0
----
-51
65
-85
90
-91
138

onlyif mysql # aggregate syntax: 
query II rowsort label-2676
SELECT 83, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
83
3

skipif mysql # not compatible
query II rowsort label-2676
SELECT 83, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
83
3

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2678
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 86 * + col2 - - CAST( NULL AS DECIMAL ) NOT IN ( - col0, col0, + CAST( col2 AS SIGNED ) + - col1 ) OR ( NULL ) NOT BETWEEN NULL AND col1 + + col0
----

skipif mysql # not compatible
query III rowsort label-2678
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 86 * + col2 - - CAST ( NULL AS REAL ) NOT IN ( - col0, col0, + CAST ( col2 AS INTEGER ) + - col1 ) OR ( NULL ) NOT BETWEEN NULL AND col1 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2679
SELECT - 33 AS col2, CAST( NULL AS SIGNED ) * + CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-2679
SELECT - 33 AS col2, CAST ( NULL AS INTEGER ) * + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-33
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 18 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 24 ) + + ( + col1 ) FROM tab2 AS cor0
----
27
43
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT COUNT( * ) + - + 47 AS col2 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-2682
SELECT COUNT ( * ) + - + 47 AS col2 FROM tab1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT DISTINCT + 78 * - MIN( ALL + 59 ) AS col2 FROM tab0
----
-4602

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT + 78 * - MIN ( ALL + 59 ) AS col2 FROM tab0
----
-4602

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2685
SELECT * FROM tab0 cor0 WHERE ( ( NOT - ( + - CAST( - col2 AS SIGNED ) ) <> + 66 ) )
----

skipif mysql # not compatible
query III rowsort label-2685
SELECT * FROM tab0 cor0 WHERE ( ( NOT - ( + - CAST ( - col2 AS INTEGER ) ) <> + 66 ) )
----

query I rowsort
SELECT 3 + - col2 AS col0 FROM tab2
----
-20
-37
-55

query I rowsort
SELECT col1 + + 14 AS col2 FROM tab0
----
15
35
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2688
SELECT ALL 19 DIV + 14 AS col1 FROM tab2 AS cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT - 65 FROM tab1 AS cor0 WHERE NULL <> col2
----

query I rowsort
SELECT DISTINCT col2 * - + 48 FROM tab1 AS cor0 WHERE NOT NULL >= ( 35 * + 55 + + 4 )
----

query I rowsort
SELECT DISTINCT - 79 FROM tab2 AS cor0 WHERE ( + col1 ) > col2 * col1 * - col1
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT ALL - - col1 DIV - col1 + col0 + + col2 DIV - 99 AS col2 FROM tab0 AS cor0
----
14
86
95

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL - - col1 / - col1 + col0 + + col2 / - 99 AS col2 FROM tab0 AS cor0
----
14
86
95

query I rowsort
SELECT ALL + ( + + ( col0 ) ) FROM tab0
----
15
87
97

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE ( + - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT CAST( - + col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2696
SELECT CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT + MIN( ALL 92 ) col2 FROM tab1 cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2697
SELECT DISTINCT + MIN ( ALL 92 ) col2 FROM tab1 cor0
----
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * + col0 - - col0 > - 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 82 FROM tab0 cor0 WHERE NOT - col0 IS NULL
----
-82
-82
-82

query I rowsort
SELECT ( - - ( col2 ) ) + - + col1 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 > 0 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN - 73 AND NULL
----

query II rowsort
SELECT DISTINCT + col0 / + - 20 * + col2 AS col0, 88 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + 64
----

query I rowsort
SELECT + col0 + - col0 * + col2 FROM tab2 AS cor0 WHERE NULL IN ( col2, 45 * - - col2, + - col1 + - + col2, - col2 )
----

query I rowsort
SELECT + - col1 * - - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-103823
-125
-2744

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT + col1 DIV ( - col1 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2706
SELECT + col1 / ( - col1 ) FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT ALL 89 DIV col2 + - + col1 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL 89 / col2 + - + col1 FROM tab1
----
-14
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT ALL col0 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE + 17 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + 17 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - col0 + col2 FROM tab2 AS cor0
----
-2093
-4056
-5567

query II rowsort
SELECT DISTINCT + col1 + + + col1, - 32 * col1 * - + 2 AS col2 FROM tab0 AS cor0
----
162
5184
2
64
42
1344

query I rowsort
SELECT DISTINCT - 39 - 63 AS col2 FROM tab0 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT ALL - col2 / + col1 + - - col0 AS col2 FROM tab2 AS cor0 WHERE + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) >= col1
----

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - col2 / + col1 + - - col0 AS col2 FROM tab2 AS cor0 WHERE + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) >= col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 22 <= NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE col2 * - + col2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - 83 + col2 FROM tab1 WHERE NOT + - col2 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2716
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT col1 + - + col0 NOT BETWEEN col1 AND CAST( - + 45 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT col1 + - + col0 NOT BETWEEN col1 AND CAST ( - + 45 AS INTEGER )
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT DISTINCT + SUM( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT + SUM ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + COUNT( ALL + ( - - col0 ) ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2719
SELECT + COUNT ( ALL + ( - - col0 ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT + SUM( ALL - col1 ) * - - 0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2720
SELECT + SUM ( ALL - col1 ) * - - 0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 * - + 44 AS col1 FROM tab1 AS cor0
----
2244
3740
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT ALL + MIN( - + col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL + MIN ( - + col0 ) AS col2 FROM tab1
----
-91

query II rowsort
SELECT DISTINCT - col1 AS col1, + col2 FROM tab0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT ALL col2, col1 * + - col1 FROM tab2
----
23
-2601
40
-5929
58
-4489

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab1 WHERE 83 + + - col1 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2726
SELECT DISTINCT ( - - COUNT( DISTINCT 87 ) ) AS col2, 65 FROM tab1
----
1
65

skipif mysql # not compatible
query II rowsort label-2726
SELECT DISTINCT ( - - COUNT ( DISTINCT 87 ) ) AS col2, 65 FROM tab1
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT ( + SUM( DISTINCT - - 61 ) ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2727
SELECT ( + SUM ( DISTINCT - - 61 ) ) FROM tab2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT DISTINCT col1 DIV - + col0 AS col0 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT col1 / - + col0 AS col0 FROM tab0
----
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT ALL + + CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL + + CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT + 17, col2 AS col2 FROM tab2 AS cor0
----
17
23
17
40
17
58

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL OR NOT col0 + + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT - COUNT( col1 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2732
SELECT DISTINCT - COUNT ( col1 ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 54 + col0 FROM tab0 AS cor0
----
141
151
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT ALL + col0 AS col0 FROM tab2 cor0 WHERE - ( + CAST( NULL AS SIGNED ) ) + + + 13 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL + col0 AS col0 FROM tab2 cor0 WHERE - ( + CAST ( NULL AS INTEGER ) ) + + + 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2735
SELECT - COUNT( * ) AS col2, - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2735
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
0

query I rowsort
SELECT + ( col2 ) + col1 - col1 - - col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ALL - col1 + - 78 AS col1 FROM tab0 cor0
----
-159
-79
-99

query I rowsort
SELECT DISTINCT 12 FROM tab0 WHERE NOT NULL >= - col2
----

query I rowsort
SELECT DISTINCT ( - 35 ) AS col2 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT - col2 * + 37 FROM tab1
----
-2183
-2516
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT + + COUNT( * ) - - 30 FROM tab0 WHERE NOT ( NOT 18 IS NULL )
----
30

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT + + COUNT ( * ) - - 30 FROM tab0 WHERE NOT ( NOT 18 IS NULL )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2742
SELECT + COUNT( * ) DIV - + 75 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2742
SELECT + COUNT ( * ) / - + 75 col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT ALL 7 AS col0 FROM tab2 WHERE NOT ( ( - CAST( NULL AS SIGNED ) + + col2 IS NOT NULL ) )
----
7
7
7

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL 7 AS col0 FROM tab2 WHERE NOT ( ( - CAST ( NULL AS INTEGER ) + + col2 IS NOT NULL ) )
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + ( MIN( DISTINCT + - 91 ) ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2744
SELECT + ( MIN ( DISTINCT + - 91 ) ) AS col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( NOT 49 / + - col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( NOT 49 / + - col1 IS NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT + col2 DIV col2 * - col1 AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2746
SELECT + col2 / col2 * - col1 AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL 68 * - - col0 * - col0 - col1 AS col0 FROM tab1 AS cor0
----
-176882
-491305
-563155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT ALL - 27 + - COUNT( * ) DIV + 23 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - 27 + - COUNT ( * ) / + 23 FROM tab1 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT + - 23 DIV + + col2 - - col1 FROM tab0 AS cor0
----
1
19
81

skipif mysql # not compatible
query I rowsort label-2749
SELECT + - 23 / + + col2 - - col1 FROM tab0 AS cor0
----
1
19
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT 36 + + COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-2750
SELECT 36 + + COUNT ( * ) FROM tab1
----
39

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 IS NOT NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - + col2 + 78 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2753
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2753
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - + MAX( ALL ( col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2754
SELECT - + MAX ( ALL ( col0 ) ) FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col1 + 37 + col1 col1, 96 * + col0 * 67 FROM tab2 AS cor0
----
2689
295872
4593
482400
6043
411648

query II rowsort
SELECT ALL col2, + 14 AS col1 FROM tab0 cor0
----
10
14
47
14
99
14

query II rowsort
SELECT ALL col2 AS col0, - col1 AS col2 FROM tab2 cor0
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2758
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2759
SELECT + MIN( - col1 ) AS col1, - COUNT( * ) FROM tab0 WHERE NOT + 46 > NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2759
SELECT + MIN ( - col1 ) AS col1, - COUNT ( * ) FROM tab0 WHERE NOT + 46 > NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT + MAX( - col2 ) AS col2 FROM tab2 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT + MAX ( - col2 ) AS col2 FROM tab2 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT col0 * ( - + 59 ) AS col0 FROM tab0
----
-5133
-5723
-885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2762
SELECT - CAST( - 87 AS SIGNED ) FROM tab1
----
87
87
87

skipif mysql # not compatible
query I rowsort label-2762
SELECT - CAST ( - 87 AS INTEGER ) FROM tab1
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2763
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) BETWEEN NULL AND 79
----

skipif mysql # not compatible
query III rowsort label-2763
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) BETWEEN NULL AND 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) + - 27 AS col1 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) + - 27 AS col1 FROM tab1, tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 > - col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT COUNT( * ) - + - 78 * + COUNT( * ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-2766
SELECT COUNT ( * ) - + - 78 * + COUNT ( * ) FROM tab0
----
237

onlyif mysql # DIV for integer division: 
query II rowsort label-2767
SELECT ALL + col2 DIV col0 AS col2, col2 AS col1 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-2767
SELECT ALL + col2 / col0 AS col2, col2 AS col1 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT - col2 - - - 49 FROM tab1
----
-108
-117
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT 4 * + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2770
SELECT - CAST( MIN( + 94 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2770
SELECT - CAST ( MIN ( + 94 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 37 col1, 69 FROM tab2
----
37
69
37
69
37
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 74 * + - 48 * + + 72 * + - col2 col0 FROM tab2 AS cor0
----
-10229760
-14833152
-5882112

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT - 62 * COUNT( col0 ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2773
SELECT - 62 * COUNT ( col0 ) FROM tab0 AS cor0
----
-186

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2774
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN 95 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2774
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN 95 AND CAST ( NULL AS REAL )
----

query II rowsort
SELECT - + col1 * 83 + + + 93 * + ( col1 ), - col1 + + + col2 * - + 52 AS col0 FROM tab0 cor0
----
10
-5149
210
-541
810
-2525

query I rowsort
SELECT + 52 * - - col2 FROM tab0 AS cor0
----
2444
5148
520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2777
SELECT - 48 AS col0, CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab2
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-2777
SELECT - 48 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2
----
-48
NULL

query I rowsort
SELECT DISTINCT col0 * + 79 * + + ( - - col0 ) * + + col2 FROM tab1
----
19725984
33675725
44485532

query I rowsort
SELECT ( - 52 ) AS col0 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - 33 ) col0 FROM tab1
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - COUNT( * ) FROM tab1 WHERE NOT 5 * - 88 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2781
SELECT - COUNT ( * ) FROM tab1 WHERE NOT 5 * - 88 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 87 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + 30 AS col2 FROM tab2
----
105
76
94

query II rowsort
SELECT - col0, col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col2 * - col0 + + col0
----

query I rowsort
SELECT ALL - + 80 * - col0 FROM tab1 cor0
----
4080
6800
7280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2787
SELECT DISTINCT 74 / + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT 74 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab0 WHERE NOT + col1 IS NULL
----
-10
-47
-99

query I rowsort
SELECT - 62 * + - 33 AS col0 FROM tab1
----
2046
2046
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT + ( + COUNT( * ) ) + + + SUM( ALL + - 30 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-2790
SELECT + ( + COUNT ( * ) ) + + + SUM ( ALL + - 30 ) FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT + COUNT( DISTINCT + 38 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + COUNT ( DISTINCT + 38 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + 63 + - + 8 * - + 98 + + + 68 + - 94 * col2 FROM tab0 AS cor0
----
-25
-3503
-8391

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT + - 81 + + col0 * - col2 FROM tab1 AS cor0
----
-4977
-5096
-6269

query I rowsort
SELECT DISTINCT + col0 + + col2 + + 71 AS col1 FROM tab2 AS cor0
----
140
175
204

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL + + COUNT( * ) + + SUM( - col1 ) FROM tab2 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + + COUNT ( * ) + + SUM ( - col1 ) FROM tab2 cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) col0 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2797
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) col0 FROM tab2
----
6

query III rowsort
SELECT * FROM tab0 WHERE - + 61 + + 61 - - - col0 * + 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 50 + - - 41 AS col2 FROM tab1
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2800
SELECT CAST( + 5 AS SIGNED ) * - ( - 38 ) AS col0 FROM tab2
----
190
190
190

skipif mysql # not compatible
query I rowsort label-2800
SELECT CAST ( + 5 AS INTEGER ) * - ( - 38 ) AS col0 FROM tab2
----
190
190
190

query I rowsort
SELECT - - 82 FROM tab1 WHERE + - 12 + - col1 IS NOT NULL
----
82
82
82

query I rowsort
SELECT ALL 48 * - col1 - - ( - 49 ) AS col0 FROM tab0
----
-1057
-3937
-97

query I rowsort
SELECT ALL - ( + 37 ) FROM tab2
----
-37
-37
-37

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL < - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 85 col1, + 74 AS col0 FROM tab2
----
85
74
85
74
85
74

query I rowsort
SELECT 39 * - - col2 AS col0 FROM tab1
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL - SUM( - ( + - col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL - SUM ( - ( + - col0 ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL + 82 + - col2 AS col1 FROM tab1 AS cor0
----
-14
14
23

query I rowsort
SELECT col2 + + 56 / + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > - col1 + + col2
----

query II rowsort
SELECT DISTINCT + col1, - 52 FROM tab1 AS cor0
----
14
-52
47
-52
5
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL + - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2811
SELECT ALL + - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT col2 * CAST( - 85 AS SIGNED ) FROM tab1 AS cor0
----
-5015
-5780
-8160

skipif mysql # not compatible
query I rowsort label-2812
SELECT col2 * CAST ( - 85 AS INTEGER ) FROM tab1 AS cor0
----
-5015
-5780
-8160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT + CAST( NULL AS SIGNED ) * + col1 * + col1 FROM tab1 AS cor0 WHERE NOT NULL > + col0
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * 1 < - col1
----

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

query I rowsort
SELECT col0 * - ( - 53 ) * - 43 AS col1 FROM tab2
----
-104834
-145856
-170925

query II rowsort
SELECT col2 AS col0, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2818
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * 60 - + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2818
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * 60 - + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + MIN( ALL + + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2819
SELECT + MIN ( ALL + + col2 ) AS col2 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2820
SELECT ALL col2 AS col1, CAST( NULL AS SIGNED ) / - col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2820
SELECT ALL col2 AS col1, CAST ( NULL AS INTEGER ) / - col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 87 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL + COUNT( * ) + - 43 + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
-43

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + COUNT ( * ) + - 43 + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
-43

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

query II rowsort
SELECT + 40 + 33 * + 19 * - - 29, col1 FROM tab1
----
18223
14
18223
47
18223
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2825
SELECT ALL - 48 AS col2, - MAX( ALL + ( + col0 ) ) * - 71 FROM tab2
----
-48
5325

skipif mysql # not compatible
query II rowsort label-2825
SELECT ALL - 48 AS col2, - MAX ( ALL + ( + col0 ) ) * - 71 FROM tab2
----
-48
5325

query I rowsort
SELECT ALL col0 * col1 * + 55 + - - col2 * + 54 * + col1 AS col2 FROM tab0
----
10681
111825
272403

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT - + COUNT( * ) FROM tab1 cor0 WHERE - col0 < - col0 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-2828
SELECT - + COUNT ( * ) FROM tab1 cor0 WHERE - col0 < - col0 * + col1
----
0

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL <> col0
----

query II rowsort
SELECT DISTINCT 3 + + + col2 AS col2, 64 * col0 FROM tab2 AS cor0
----
26
2944
43
4096
61
4800

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col2 * + col0, 36 * ( - col0 ), - - 31 * - + col1 )
----

query I rowsort
SELECT ALL + col2 + + 5 * + 95 AS col0 FROM tab1 AS cor0
----
534
543
571

query III rowsort
SELECT * FROM tab0 cor0 WHERE 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + - - 87 AS col2 FROM tab1 AS cor0
----
146
155
183

query I rowsort
SELECT - col1 - - col2 + - - col1 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT 59 * + - MAX( + 73 ) FROM tab1
----
-4307

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT 59 * + - MAX ( + 73 ) FROM tab1
----
-4307

query II rowsort
SELECT 11 + - col2 AS col0, col0 FROM tab1
----
-48
85
-57
91
-85
51

query I rowsort
SELECT ALL 14 * ( - col1 ) - + ( - + 73 ) FROM tab1
----
-123
-585
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 38 + + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + 23 AS col1 FROM tab1 cor0
----
1081
115
322

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab0 AS cor0 WHERE NOT col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT - COUNT( * ) * - + 54 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2843
SELECT ALL - COUNT( DISTINCT col2 ) AS col0, COUNT( 27 ) AS col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2843
SELECT ALL - COUNT ( DISTINCT col2 ) AS col0, COUNT ( 27 ) AS col1 FROM tab0 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2844
SELECT DISTINCT - COUNT( * ) AS col0, - COUNT( * ) * + MAX( DISTINCT + + 58 ) AS col0 FROM tab1
----
-3
-174

skipif mysql # not compatible
query II rowsort label-2844
SELECT DISTINCT - COUNT ( * ) AS col0, - COUNT ( * ) * + MAX ( DISTINCT + + 58 ) AS col0 FROM tab1
----
-3
-174

query II rowsort
SELECT ALL - col1, - col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

query II rowsort
SELECT ALL - col0 AS col1, + col2 AS col2 FROM tab2
----
-46
23
-64
40
-75
58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT + - COUNT( * ) + + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( - 10 AS SIGNED ) * col0 + - col2 * col2 + - col2 NOT BETWEEN + - CAST( - 69 AS SIGNED ) AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-2848
SELECT + - COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( - 10 AS INTEGER ) * col0 + - col2 * col2 + - col2 NOT BETWEEN + - CAST ( - 69 AS INTEGER ) AND + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2849
SELECT + col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2849
SELECT + col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2851
SELECT - col2 AS col2, CAST( + 53 AS SIGNED ) DIV ( + 46 ) col1 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2851
SELECT - col2 AS col2, CAST ( + 53 AS INTEGER ) / ( + 46 ) col1 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

query I rowsort
SELECT 62 * - 79 AS col1 FROM tab0 AS cor0
----
-4898
-4898
-4898

query I rowsort
SELECT - 51 + - 24 AS col0 FROM tab1
----
-75
-75
-75

query I rowsort
SELECT DISTINCT + - 55 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT + 49 + - COUNT( * ) * 38 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-2855
SELECT + 49 + - COUNT ( * ) * 38 FROM tab0
----
-65

query I rowsort
SELECT ( + 58 ) FROM tab1
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT - COUNT( * ) + + 84 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT - COUNT ( * ) + + 84 FROM tab2 AS cor0
----
81

query I rowsort
SELECT col2 * + + 2 * - col1 FROM tab2
----
-2346
-6160
-7772

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT - COUNT( * ) - + - 59 AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
50

skipif mysql # not compatible
query I rowsort label-2859
SELECT - COUNT ( * ) - + - 59 AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
50

query I rowsort
SELECT DISTINCT 83 * - 6 FROM tab2
----
-498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2861
SELECT ALL 18 * - + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL 18 * - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT MAX( + - col1 ) AS col2 FROM tab0 AS cor0 WHERE ( + col1 / + - col1 + - - 14 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT MAX ( + - col1 ) AS col2 FROM tab0 AS cor0 WHERE ( + col1 / + - col1 + - - 14 ) IS NULL
----
NULL

query I rowsort
SELECT + + 17 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT DISTINCT - + col2 + + + col2 DIV 61 FROM tab1 AS cor0
----
-59
-67
-95

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - + col2 + + + col2 / 61 FROM tab1 AS cor0
----
-59
-67
-95

query I rowsort
SELECT - col0 * - col0 * col1 * ( col0 ) + - col2 + - 40 AS col2 FROM tab0 AS cor0
----
13828513
273288
912534

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + SUM( - 7 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-2866
SELECT + SUM ( - 7 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-21

query I rowsort
SELECT ALL 75 + - col2 AS col1 FROM tab0 AS cor0
----
-24
28
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL + MAX( + - ( - col0 ) ) FROM tab1 AS cor0 WHERE - col1 * - + 78 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + MAX ( + - ( - col0 ) ) FROM tab1 AS cor0 WHERE - col1 * - + 78 <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT DISTINCT ( + 11 ) * - col2 - + col2 DIV + col1 + - col1 FROM tab0
----
-1189
-131
-598

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT ( + 11 ) * - col2 - + col2 / + col1 + - col1 FROM tab0
----
-1189
-131
-598

query I rowsort
SELECT ALL - 36 + - col0 * + col0 AS col1 FROM tab1
----
-2637
-7261
-8317

query I rowsort
SELECT ALL - col0 - + - ( - col1 ) AS col1 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT + + AVG ( ALL - col0 ) * - 93 AS col0 FROM tab2 WHERE NOT col0 >= NULL AND + 84 * - col0 IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + 36 * + + MAX( ALL col1 ) FROM tab1
----
1692

skipif mysql # not compatible
query I rowsort label-2874
SELECT + 36 * + + MAX ( ALL col1 ) FROM tab1
----
1692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 + + col1 col2 FROM tab2
----
51
102
67
134
77
154

query I rowsort
SELECT + 54 * + 54 FROM tab0
----
2916
2916
2916

query I rowsort
SELECT ALL + 49 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT + COUNT( * ) * - - SUM( ALL + ( - + col2 ) ) AS col0 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-2878
SELECT + COUNT ( * ) * - - SUM ( ALL + ( - + col2 ) ) AS col0 FROM tab1
----
-669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2879
SELECT + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2879
SELECT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT col0 - - 62 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 <> NULL )
----

query I rowsort
SELECT DISTINCT - 54 * - col2 FROM tab2 AS cor0
----
1242
2160
3132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT DISTINCT + MAX( + - CAST( col2 AS SIGNED ) ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT + MAX ( + - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2884
SELECT - CAST( NULL AS SIGNED ) + 8 - + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT - CAST ( NULL AS INTEGER ) + 8 - + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 13 + - col2 FROM tab0 AS cor0
----
-34
-86
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 89 * - 26 < - - 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE 74 * - col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ( - - MIN( DISTINCT - - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2888
SELECT ( - - MIN ( DISTINCT - - col0 ) ) FROM tab2 AS cor0
----
46

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

query I rowsort
SELECT DISTINCT - + col0 * + col0 + + col0 FROM tab0 AS cor0
----
-210
-7482
-9312

query I rowsort
SELECT DISTINCT 61 * + col1 AS col2 FROM tab1
----
2867
305
854

query I rowsort
SELECT DISTINCT - ( + + col1 ) * + + col2 + 55 FROM tab2
----
-1118
-3025
-3831

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2893
SELECT DISTINCT - 64 AS col0, + ( + CAST( - 78 AS SIGNED ) ) * + col1 AS col2 FROM tab0
----
-64
-1638
-64
-6318
-64
-78

skipif mysql # not compatible
query II rowsort label-2893
SELECT DISTINCT - 64 AS col0, + ( + CAST ( - 78 AS INTEGER ) ) * + col1 AS col2 FROM tab0
----
-64
-1638
-64
-6318
-64
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2894
SELECT - 32 AS col2, COUNT( * ) FROM tab2
----
-32
3

skipif mysql # not compatible
query II rowsort label-2894
SELECT - 32 AS col2, COUNT ( * ) FROM tab2
----
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT MIN( ALL col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT MIN ( ALL col2 ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) + + - MAX( + + col0 ) AS col0 FROM tab1 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) + + - MAX ( + + col0 ) AS col0 FROM tab1 cor0
----
-82

query III rowsort
SELECT DISTINCT - col1 * - ( 5 ) + + + col1 AS col0, col2 + - 65 / + - 27, col1 * - 98 FROM tab1 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT ALL - 68 + - 41 FROM tab1
----
-109
-109
-109

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col0 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - 8 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2902
SELECT DISTINCT - col0 DIV 42 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT - col0 / 42 FROM tab0
----
-2
0

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL <> col2 * + col1
----

query I rowsort
SELECT ALL + ( ( 17 ) ) FROM tab1
----
17
17
17

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + col2 ) > - 20 - 7 * ( ( col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT COUNT( * ) + 61 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-2909
SELECT COUNT ( * ) + 61 FROM tab1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2910
SELECT - CAST( - 12 AS SIGNED ) DIV + COUNT( * ) + 23 AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2910
SELECT - CAST ( - 12 AS INTEGER ) / + COUNT ( * ) + 23 AS col0 FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT + MIN( ALL 69 ) * ( + COUNT( * ) + COUNT( ALL + col2 ) * + COUNT( * ) ) FROM tab0 WHERE NOT - 12 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT + MIN ( ALL 69 ) * ( + COUNT ( * ) + COUNT ( ALL + col2 ) * + COUNT ( * ) ) FROM tab0 WHERE NOT - 12 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT MIN( DISTINCT col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col2 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT ( + col1 ) + + col2 FROM tab0
----
100
128
31

query I rowsort
SELECT 8 + col0 FROM tab2
----
54
72
83

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 58 + - 17 BETWEEN - col2 * - col0 + - col0 AND - ( col2 ) + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - 18 AS col1 FROM tab2 AS cor0
----
-1206
-1386
-918

query I rowsort
SELECT DISTINCT - col0 * 93 AS col0 FROM tab1 AS cor0
----
-4743
-7905
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL + 91 * ( ( 51 ) * - SUM( ALL - col0 + col1 ) ) AS col2 FROM tab2
----
-46410

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL + 91 * ( ( 51 ) * - SUM ( ALL - col0 + col1 ) ) AS col2 FROM tab2
----
-46410

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + col0 = NULL
----

query I rowsort
SELECT col2 * 35 FROM tab1 WHERE NOT ( 24 + + 64 * - 5 ) <= NULL
----

query I rowsort
SELECT - 69 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND ( + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + col2 ) * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT - - MAX( + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2925
SELECT - - MAX ( + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT + col2 DIV + col0 + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2926
SELECT + col2 / + col0 + col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 * 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 + + ( + 16 ) FROM tab1 AS cor0
----
-43
-52
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT COUNT( * ) + 89 FROM tab2 cor0
----
92

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT COUNT ( * ) + 89 FROM tab2 cor0
----
92

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab1 AS cor0 WHERE NOT 68 NOT BETWEEN ( col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2931
SELECT + + col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2932
SELECT ALL col2 + 36 + 66 DIV - 92 FROM tab1
----
104
132
95

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL col2 + 36 + 66 / - 92 FROM tab1
----
104
132
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 40 >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT ALL + col2 DIV - - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL + col2 / - - col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT + col2 + CAST( NULL AS SIGNED ) - col1 / col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL SUM( - 14 ) AS col2 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL SUM ( - 14 ) AS col2 FROM tab1
----
-42

query I rowsort
SELECT col0 + + + col0 AS col1 FROM tab2
----
128
150
92

query I rowsort
SELECT ( + col1 ) * 24 FROM tab1
----
1128
120
336

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT - MAX( 78 ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-2940
SELECT - MAX ( 78 ) FROM tab1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL - 31 * COUNT( * ) FROM tab1 WHERE NOT + ( col1 ) + 24 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - 31 * COUNT ( * ) FROM tab1 WHERE NOT + ( col1 ) + 24 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT 74 DIV + col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2942
SELECT 74 / + col0 FROM tab0
----
0
0
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT col2 DIV col2 * col1 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2943
SELECT col2 / col2 * col1 FROM tab0 cor0
----
1
21
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT MIN( ALL - col0 ) FROM tab0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT MIN ( ALL - col0 ) FROM tab0 WHERE NULL > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT CAST( NULL AS SIGNED ) / + 32 FROM tab0 WHERE ( NOT NULL BETWEEN + col1 AND NULL )
----

skipif mysql # not compatible
query I rowsort label-2947
SELECT CAST ( NULL AS INTEGER ) / + 32 FROM tab0 WHERE ( NOT NULL BETWEEN + col1 AND NULL )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE NOT ( + col1 * - 30 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2949
SELECT + + CAST( - AVG ( + + 83 ) AS SIGNED ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2949
SELECT + + CAST ( - AVG ( + + 83 ) AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 + - ( - col1 ) col2 FROM tab0 AS cor0 WHERE NOT NULL < ( 59 )
----

query I rowsort
SELECT ALL ( + + col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2952
SELECT DISTINCT - 49, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-49
3

skipif mysql # not compatible
query II rowsort label-2952
SELECT DISTINCT - 49, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-49
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT - COUNT( * ) DIV 22 DIV + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT - COUNT ( * ) / 22 / + COUNT ( * ) AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( ( col1 ) + col2 * 94 )
----

query I rowsort
SELECT ( + col0 ) * + 25 + col0 * + 32 AS col0 FROM tab2
----
2622
3648
4275

onlyif mysql # DIV for integer division: 
query I rowsort label-2956
SELECT DISTINCT col1 * col0 DIV + + col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT col1 * col0 / + + col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT ALL - 91 * + COUNT( * ) * COUNT( ALL + - col1 ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE + col2 * + 45 * + 97 + col1 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT col2 * + ( - col2 ) * ( - ( col2 ) ) AS col1 FROM tab1
----
205379
314432
884736

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE + + 65 BETWEEN - col1 * col1 AND 66
----
3

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE + + 65 BETWEEN - col1 * col1 AND 66
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT ALL - + 2 * col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL - + 2 * col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 + - 5 ) NOT IN ( 62 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 93 AS col1 FROM tab2 WHERE + - 27 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL + COUNT( - - col2 ) + - 49 AS col2 FROM tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + COUNT ( - - col2 ) + - 49 AS col2 FROM tab0 cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2966
SELECT DISTINCT - col2 * - + col0 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + - col2 * - - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT + col1 * - col0 FROM tab0 AS cor0 WHERE NULL > + col2
----

query I rowsort
SELECT DISTINCT + col2 + - + col0 - - col2 - col0 + - col2 + 52 * 38 AS col0 FROM tab2 AS cor0
----
1884
1888
1907

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 NOT BETWEEN ( - col1 - + col2 ) AND - 60 - - 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( - 72 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NULL <> col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 * - - col1 AND ( + col2 + + - col1 )
----

query I rowsort
SELECT ALL ( - + ( - col2 ) ) + - + 63 FROM tab1 AS cor0
----
-4
33
5

query I rowsort
SELECT DISTINCT 10 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
10

query I rowsort
SELECT DISTINCT + 65 + col0 AS col1 FROM tab0 AS cor0
----
152
162
80

query I rowsort
SELECT - col1 * col1 * + col0 AS col1 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2978
SELECT ALL - 58 DIV - 43 col1, + COUNT( * ) col1 FROM tab1
----
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2978
SELECT ALL - 58 / - 43 col1, + COUNT ( * ) col1 FROM tab1
----
1
3

query I rowsort
SELECT - 35 * col1 - - - 32 AS col0 FROM tab0
----
-2867
-67
-767

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT COUNT( * ) + + MAX( + + col2 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-2980
SELECT COUNT ( * ) + + MAX ( + + col2 ) FROM tab1
----
99

query I rowsort
SELECT col1 + - 17 AS col0 FROM tab0 AS cor0
----
-16
4
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > 65
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT + 78 + - SUM( - - col1 ) AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2983
SELECT + 78 + - SUM ( - - col1 ) AS col1 FROM tab1 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-2984
SELECT col0 AS col1, + col1 DIV + ( - + col0 ) FROM tab1 cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-2984
SELECT col0 AS col1, + col1 / + ( - + col0 ) FROM tab1 cor0
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5

query I rowsort
SELECT + col0 * + - 14 * - 37 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL MIN( ALL - + 33 ) FROM tab1 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL MIN ( ALL - + 33 ) FROM tab1 cor0
----
-33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 15 IN ( + - col2 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT - ( + - col1 ) DIV - 67 col0 FROM tab2 AS cor0
----
-1
-1
0

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

query I rowsort
SELECT + - col0 * - - col1 * - col1 + - 31 AS col1 FROM tab2 cor0
----
119615
336644
379425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2991
SELECT 19 DIV - - MIN( - - col1 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2991
SELECT 19 / - - MIN ( - - col1 ) AS col1 FROM tab1 cor0
----
3

query II rowsort
SELECT - - col1 * - col0 AS col2, - 29 AS col1 FROM tab0 AS cor0
----
-1215
-29
-1827
-29
-97
-29

query I rowsort
SELECT ALL ( - ( - - 77 ) ) FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL + MAX( - + ( col1 ) ) AS col0 FROM tab2 cor0 WHERE NOT col0 + 70 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + MAX ( - + ( col1 ) ) AS col0 FROM tab2 cor0 WHERE NOT col0 + 70 IS NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT CAST( NULL AS SIGNED ) * + 3 * + 57 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( NOT col0 IN ( + 21 ) ) )
----

query I rowsort
SELECT ALL col0 + 92 FROM tab2 AS cor0 WHERE NOT col0 * + + col2 * + col2 BETWEEN + col1 AND + 42
----
138
156
167

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL - MAX( DISTINCT - col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL - MAX ( DISTINCT - col0 ) AS col1 FROM tab1
----
51

query II rowsort
SELECT + col2, 3 - - col0 FROM tab0
----
10
90
47
18
99
100

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * col0 / 16 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3002
SELECT * FROM tab2 WHERE NOT ( 89 / CAST( 94 AS SIGNED ) * + - col0 - col2 + + col0 * col2 + - col2 ) <> ( + 22 * + 78 )
----

skipif mysql # not compatible
query III rowsort label-3002
SELECT * FROM tab2 WHERE NOT ( 89 / CAST ( 94 AS INTEGER ) * + - col0 - col2 + + col0 * col2 + - col2 ) <> ( + 22 * + 78 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3003
SELECT ALL + col2 AS col1, ( CAST( col0 AS SIGNED ) ) AS col2 FROM tab0
----
10
87
47
15
99
97

skipif mysql # not compatible
query II rowsort label-3003
SELECT ALL + col2 AS col1, ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT col1 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 68 < NULL
----

query I rowsort
SELECT 11 * + col1 FROM tab2 AS cor0
----
561
737
847

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

query I rowsort
SELECT 28 + - 88 AS col0 FROM tab2 cor0
----
-60
-60
-60

query I rowsort
SELECT - - col0 + col1 + - col2 FROM tab2 cor0
----
101
74
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 ) IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3011
SELECT DISTINCT COUNT( * ) * COUNT( - - col1 ) + + MAX( 84 ) + COUNT( * ) + - COUNT( * ) + + + COUNT( * ) / - - 1 - CAST( NULL AS SIGNED ) * MIN( CAST( + col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT COUNT ( * ) * COUNT ( - - col1 ) + + MAX ( 84 ) + COUNT ( * ) + - COUNT ( * ) + + + COUNT ( * ) / - - 1 - CAST ( NULL AS INTEGER ) * MIN ( CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL - + 11 + + col0, col2 AS col1 FROM tab0 AS cor0
----
4
47
76
10
86
99

query I rowsort
SELECT col1 + - + col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 3 + + ( - + 28 ) * - + col2 - + 64 AS col2 FROM tab2 AS cor0
----
1059
1563
583

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = 27 + + ( + col2 ) + + 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 cor0 WHERE 35 NOT IN ( - - 11 / - col2 + - col1 )
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3017
SELECT ALL - col2 + - 8 * ( + 12 ) DIV - - col0 - - col0 * + - col0 * col0 AS col0 FROM tab1 cor0
----
-132748
-614185
-753640

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - col2 + - 8 * ( + 12 ) / - - col0 - - col0 * + - col0 * col0 AS col0 FROM tab1 cor0
----
-132748
-614185
-753640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT ALL CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + 87 * - col2 * 66 - col0 FROM tab2
----
-132112
-229744
-333111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT ALL + col1 + - ( CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT ( col1 ) IS NULL
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3022
SELECT DISTINCT - col2 * + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3023
SELECT DISTINCT CAST( + col2 AS SIGNED ) * + + col1 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * + + col1 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + + col1 * + 8 * + col0 > - col0 * + col1 * col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT + + COUNT( * ) col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3025
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3026
SELECT + col1 * - - col1 DIV col1 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3026
SELECT + col1 * - - col1 / col1 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + 83 * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-3818
-5312
-6225

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 > col1
----

query I rowsort
SELECT ALL + col0 + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query II rowsort
SELECT + col1 AS col2, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

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

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( ( NULL IS NOT NULL ) )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT COUNT( ALL + col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3033
SELECT COUNT ( ALL + col1 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT ( - COUNT( + 6 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT ( - COUNT ( + 6 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3035
SELECT + + COUNT( * ) col0, + MIN( + col0 ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3035
SELECT + + COUNT ( * ) col0, + MIN ( + col0 ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT 25 * + SUM( + - 33 ) * + 24 - - COUNT( * ) * COUNT( * ) + - 6 + + + 77 + + 22 FROM tab1 AS cor0
----
-59298

skipif mysql # not compatible
query I rowsort label-3036
SELECT 25 * + SUM ( + - 33 ) * + 24 - - COUNT ( * ) * COUNT ( * ) + - 6 + + + 77 + + 22 FROM tab1 AS cor0
----
-59298

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT + 80 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NOT NULL >= + 74 * + 77 - - col2 * col1
----

query I rowsort
SELECT + - 16 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + + col0 * - 99 * + col2 * - + ( 58 ) + col2 * + - 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col1, - col0 FROM tab2 cor0
----
51
-46
67
-75
77
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 2 IS NULL
----

query I rowsort
SELECT - col0 * - + 12 - - col2 FROM tab2 AS cor0
----
575
808
958

query I rowsort
SELECT DISTINCT - col1 + - 40 AS col0 FROM tab2 AS cor0
----
-107
-117
-91

query II rowsort
SELECT ALL - ( - + col2 ) * + col2 AS col0, col0 FROM tab1 AS cor0
----
3481
85
4624
91
9216
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3046
SELECT ALL - - col0 + 36 + col2 DIV - col2 AS col2, col2 AS col1 FROM tab1 AS cor0
----
120
59
126
68
86
96

skipif mysql # not compatible
query II rowsort label-3046
SELECT ALL - - col0 + 36 + col2 / - col2 AS col2, col2 AS col1 FROM tab1 AS cor0
----
120
59
126
68
86
96

query II rowsort
SELECT col2 - 57 AS col2, 2 FROM tab1
----
11
2
2
2
39
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT DISTINCT col1 - + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE NULL = col1 + - - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT COUNT( col2 ) * + MIN( ALL 80 ) - + 89 AS col1 FROM tab2
----
151

skipif mysql # not compatible
query I rowsort label-3050
SELECT COUNT ( col2 ) * + MIN ( ALL 80 ) - + 89 AS col1 FROM tab2
----
151

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3052
SELECT DISTINCT - 63 - + + 68, - SUM( - ( - col2 ) ) AS col2 FROM tab0
----
-131
-156

skipif mysql # not compatible
query II rowsort label-3052
SELECT DISTINCT - 63 - + + 68, - SUM ( - ( - col2 ) ) AS col2 FROM tab0
----
-131
-156

query I rowsort
SELECT ALL col1 - + - col2 - - - col1 AS col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3054
SELECT ALL col1 - - + 22, col1 DIV + - col0 AS col0 FROM tab1
----
27
0
36
0
69
0

skipif mysql # not compatible
query II rowsort label-3054
SELECT ALL col1 - - + 22, col1 / + - col0 AS col0 FROM tab1
----
27
0
36
0
69
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT + col2 DIV col2 + - col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3055
SELECT + col2 / col2 + - col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT + + MIN( ALL - 18 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT + + MIN ( ALL - 18 ) FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL SUM( - - 10 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL SUM ( - - 10 ) FROM tab1
----
30

query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab0 AS cor0 WHERE NOT + 91 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT + MIN( ALL + - col2 ) AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3060
SELECT + MIN ( ALL + - col2 ) AS col0 FROM tab0 cor0
----
-99

query I rowsort
SELECT DISTINCT 67 * + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 51 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT + 63 * - - COUNT( * ) col2 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3062
SELECT + 63 * - - COUNT ( * ) col2 FROM tab1 AS cor0
----
189

query II rowsort
SELECT - 69 * - - ( - - ( - ( + + 1 ) ) ), ( col1 ) AS col1 FROM tab2 AS cor0
----
69
51
69
67
69
77

query I rowsort
SELECT - ( - - 36 ) FROM tab1 AS cor0
----
-36
-36
-36

query II rowsort
SELECT ALL col1, - col2 * col2 + - col1 FROM tab1 cor0
----
14
-9230
47
-4671
5
-3486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3066
SELECT MIN( + CAST( NULL AS SIGNED ) ) * 26 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) * 26 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + 62 * 48 AS col2, col1 * + ( - col2 ) AS col0 FROM tab0
----
2976
-210
2976
-3807
2976
-99

query I rowsort
SELECT ALL - 29 * 58 FROM tab2
----
-1682
-1682
-1682

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT ALL - col0 DIV 76 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL - col0 / 76 AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + col0 + + ( - - 80 ) - + col2 AS col0 FROM tab0
----
157
48
78

query I rowsort
SELECT - 65 + - + col2 FROM tab1
----
-124
-133
-161

query I rowsort
SELECT DISTINCT 14 + + 55 + - col2 FROM tab2
----
11
29
46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3073
SELECT * FROM tab0 AS cor0 WHERE ( - CAST( NULL AS DECIMAL ) * - col1 ) BETWEEN NULL AND col1 + + 46
----

skipif mysql # not compatible
query III rowsort label-3073
SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS REAL ) * - col1 ) BETWEEN NULL AND col1 + + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT - + SUM( + - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3074
SELECT - + SUM ( + - col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL - 3 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL - 3 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL 8 + + col2 + col0 FROM tab2 AS cor0
----
112
141
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL OR NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL OR NULL IS NULL
----
3

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

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

query I rowsort
SELECT col0 + col1 * - + 48 - ( + col0 ) FROM tab0
----
-1008
-3888
-48

query I rowsort
SELECT - - col1 * - col2 + + 92 FROM tab1 AS cor0
----
-1252
-203
-3104

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * col2 <= NULL
----

query I rowsort
SELECT + + col0 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
4845
4930
6097

onlyif mysql # DIV for integer division: 
query III rowsort label-3084
SELECT * FROM tab0 AS cor0 WHERE + col1 <> + + col1 DIV - col0 + + col1
----
15
81
47

skipif mysql # not compatible
query III rowsort label-3084
SELECT * FROM tab0 AS cor0 WHERE + col1 <> + + col1 / - col0 + + col1
----
15
81
47

query I rowsort
SELECT DISTINCT + col0 - + col2 + + col2 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL - 96 - - + 97 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3087
SELECT DISTINCT - col0 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3088
SELECT + COUNT( * ) AS col2, 55 + ( - + 11 ) AS col2 FROM tab2
----
3
44

skipif mysql # not compatible
query II rowsort label-3088
SELECT + COUNT ( * ) AS col2, 55 + ( - + 11 ) AS col2 FROM tab2
----
3
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3089
SELECT + 97, + col0 - - - CAST( - col2 AS SIGNED ) + - col2 + - - 87 * col2 AS col1 FROM tab1
----
97
5218
97
6007
97
8403

skipif mysql # not compatible
query II rowsort label-3089
SELECT + 97, + col0 - - - CAST ( - col2 AS INTEGER ) + - col2 + - - 87 * col2 AS col1 FROM tab1
----
97
5218
97
6007
97
8403

query I rowsort
SELECT - col0 * - - col0 + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * + col0 / - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3092
SELECT - col1 DIV - col2 + + - col2, + 93 AS col1 FROM tab0 AS cor0
----
-46
93
-8
93
-99
93

skipif mysql # not compatible
query II rowsort label-3092
SELECT - col1 / - col2 + + - col2, + 93 AS col1 FROM tab0 AS cor0
----
-46
93
-8
93
-99
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 10 col1, - col1 + + + 22 AS col1 FROM tab2 cor0
----
-10
-29
-10
-45
-10
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 42 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3094
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 42 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT DISTINCT col0 * + - CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT col0 * + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * 18 * col0 col2 FROM tab1
----
22032
36720
39312

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3097
SELECT DISTINCT - 80 + - - CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3097
SELECT DISTINCT - 80 + - - CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 65 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 76 * col2 AS col1 FROM tab1 AS cor0
----
-4484
-5168
-7296

query I rowsort
SELECT DISTINCT - 26 * + 48 * - 69 FROM tab2 AS cor0
----
86112

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 20 col1 FROM tab1
----
-1180
-1360
-1920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3103
SELECT col1, col0 + - col2 * - + col2 * CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
1
-970202
21
-913
81
-103808

skipif mysql # not compatible
query II rowsort label-3103
SELECT col1, col0 + - col2 * - + col2 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
1
-970202
21
-913
81
-103808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3104
SELECT - MAX( - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT - MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 69 ) + col0 AS col0 FROM tab2 AS cor0
----
115
133
144

query I rowsort
SELECT 52 + - col2 FROM tab0 AS cor0
----
-47
42
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT 85 + + - COUNT( * ) AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-3108
SELECT 85 + + - COUNT ( * ) AS col2 FROM tab1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT ALL - - col1 + + + col0 + + 19 DIV col2 FROM tab2 cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - - col1 + + + col0 + + 19 / col2 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL + + 14 * - 62 - - + COUNT( * ) FROM tab1 AS cor0
----
-865

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + + 14 * - 62 - - + COUNT ( * ) FROM tab1 AS cor0
----
-865

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT col0 - + col0 * col0 DIV - + 27 AS col1 FROM tab1 AS cor0
----
147
352
397

skipif mysql # not compatible
query I rowsort label-3111
SELECT col0 - + col0 * col0 / - + 27 AS col1 FROM tab1 AS cor0
----
147
352
397

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL 54 * + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL 54 * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3113
SELECT - 47 - col1 DIV - 83 + + 67 DIV col2 * - col1 FROM tab0 AS cor0
----
-128
-173
-47

skipif mysql # not compatible
query I rowsort label-3113
SELECT - 47 - col1 / - 83 + + 67 / col2 * - col1 FROM tab0 AS cor0
----
-128
-173
-47

query II rowsort
SELECT ALL col0 + col0 AS col1, + 65 FROM tab2 AS cor0
----
128
65
150
65
92
65

query I rowsort
SELECT ALL 22 - - - col0 FROM tab1 AS cor0
----
-29
-63
-69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 = + 21
----

query II rowsort
SELECT DISTINCT col1 + - 76 AS col1, - 8 AS col1 FROM tab1
----
-29
-8
-62
-8
-71
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col1 FROM tab0 WHERE - 16 * - - 80 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 / - 66 + + ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + 16 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( 58 ) + + + col1 FROM tab2 WHERE NOT - + 92 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT DISTINCT MIN( DISTINCT - 43 ) AS col2 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT MIN ( DISTINCT - 43 ) AS col2 FROM tab1
----
-43

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * - col1 + - 83 + + - 63 + 93 / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT MIN( ALL + - col2 ) * - COUNT( * ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT MIN ( ALL + - col2 ) * - COUNT ( * ) FROM tab0 AS cor0
----
297

query I rowsort
SELECT + col0 * - - ( col1 ) FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT DISTINCT col2 * - - col2 AS col0, col0 AS col1 FROM tab2 AS cor0
----
1600
64
3364
75
529
46

query I rowsort
SELECT DISTINCT + col2 * - 10 AS col0 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - 70 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
70

query II rowsort
SELECT ALL 84, 83 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 9bf55c72cdc5926a3af8d32f8cc42042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3132
SELECT DISTINCT - - 94 + + - CAST( 55 AS SIGNED ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT - - 94 + + - CAST ( 55 AS INTEGER ) FROM tab2 AS cor0
----
39

query I rowsort
SELECT - ( - - 7 ) AS col1 FROM tab2 cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab2 cor0 WHERE NOT NULL < - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT DISTINCT - - col2 DIV + - col1 + 68 + col0 + - 8 * - 9 FROM tab2 AS cor0
----
186
204
215

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - - col2 / + - col1 + 68 + col0 + - 8 * - 9 FROM tab2 AS cor0
----
186
204
215

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT DISTINCT + col0 DIV - 36 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT + col0 / - 36 FROM tab1 AS cor0
----
-1
-2

query I rowsort
SELECT + - ( + + col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT DISTINCT + + SUM( - + col2 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT + + SUM ( - + col2 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 12 * ( - col1 ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT + + SUM( DISTINCT - + 20 ) + 42 AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3140
SELECT + + SUM ( DISTINCT - + 20 ) + 42 AS col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT + col0 + - - col2 + - 42 AS col2 FROM tab1 cor0
----
102
105
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 AS cor0 WHERE NULL IN ( col2 - - + 29 / - col2, 9 )
----

query II rowsort
SELECT ALL + + col2, 71 FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3144
SELECT * FROM tab2 WHERE col1 IN ( - col1, 69 * + - CAST( NULL AS SIGNED ), + - 92 )
----

skipif mysql # not compatible
query III rowsort label-3144
SELECT * FROM tab2 WHERE col1 IN ( - col1, 69 * + - CAST ( NULL AS INTEGER ), + - 92 )
----

query I rowsort
SELECT col1 * + - 32 FROM tab2
----
-1632
-2144
-2464

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT - COUNT( - 35 ) * - 3 col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3147
SELECT - COUNT ( - 35 ) * - 3 col1 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT ALL + + col2 + - + CAST( - 22 AS SIGNED ) FROM tab1 AS cor0
----
118
81
90

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + + col2 + - + CAST ( - 22 AS INTEGER ) FROM tab1 AS cor0
----
118
81
90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT + ( - col2 ) DIV col2 DIV - col1 + - - 46 FROM tab1
----
46
46
46

skipif mysql # not compatible
query I rowsort label-3150
SELECT + ( - col2 ) / col2 / - col1 + - - 46 FROM tab1
----
46
46
46

query I rowsort
SELECT ALL - 23 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 72 * + ( - col1 ) + - + 10 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 53 + col2 FROM tab1 cor0
----
112
121
149

query I rowsort
SELECT 54 AS col2 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN - col2 AND + 72 + col2 )
----

query I rowsort
SELECT - 4 * + 69 FROM tab2 cor0
----
-276
-276
-276

query I rowsort
SELECT DISTINCT - 74 * col0 AS col2 FROM tab1 AS cor0
----
-3774
-6290
-6734

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE 36 - - 50 * + - 75 BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL > NULL )
----

query I rowsort
SELECT + ( - - 58 ) FROM tab1
----
58
58
58

query II rowsort
SELECT + 67 AS col0, 16 AS col1 FROM tab0
----
67
16
67
16
67
16

query II rowsort
SELECT ALL col1, col2 AS col1 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3165
SELECT - COUNT( * ) AS col2, 42 FROM tab2
----
-3
42

skipif mysql # not compatible
query II rowsort label-3165
SELECT - COUNT ( * ) AS col2, 42 FROM tab2
----
-3
42

query I rowsort
SELECT + ( - 81 ) AS col1 FROM tab2
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col1 AS col0 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL + COUNT( ALL col2 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3168
SELECT ALL + COUNT ( ALL col2 ) col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 37 <= + 98
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 30 col0, col1 FROM tab2 AS cor0
----
30
51
30
67
30
77

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT + - COUNT( * ) * + MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3173
SELECT + - COUNT ( * ) * + MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-243

query I rowsort
SELECT - + 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - + 42 * + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
378

skipif mysql # not compatible
query I rowsort label-3175
SELECT - + 42 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE 11 * col1 NOT BETWEEN + + col1 + - 5 AND + col0 / - CAST( - - ( ( - col0 ) ) AS SIGNED ) + - - col2 + + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE 11 * col1 NOT BETWEEN + + col1 + - 5 AND + col0 / - CAST ( - - ( ( - col0 ) ) AS INTEGER ) + - - col2 + + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 19 + + 28 * col0 * + col2 FROM tab1 AS cor0
----
137107
140439
173283

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * - 93 = + col0 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + ( - COUNT( ALL + 67 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3179
SELECT + ( - COUNT ( ALL + 67 ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - ( + - 11 ) AS col0 FROM tab2
----
11
11
11

query III rowsort
SELECT * FROM tab1 WHERE - 94 <= + ( 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL - COUNT( DISTINCT 83 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - COUNT ( DISTINCT 83 ) AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT COUNT( * ) + - 35 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-3183
SELECT COUNT ( * ) + - 35 FROM tab2
----
-32

query I rowsort
SELECT 77 + + + col1 FROM tab2
----
128
144
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT - + 81 + COUNT( * ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3185
SELECT - + 81 + COUNT ( * ) FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT - 47 - - COUNT( ALL + + col2 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT - 47 - - COUNT ( ALL + + col2 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT DISTINCT col2 + - + col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL + COUNT( * ) * 77 * + 47 FROM tab0
----
10857

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + COUNT ( * ) * 77 * + 47 FROM tab0
----
10857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT + col0 * 14 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 92 * - 44 AS col2 FROM tab0 AS cor0
----
-4048
-4048
-4048

query I rowsort
SELECT - col0 * - + 90 FROM tab0 AS cor0
----
1350
7830
8730

query II rowsort
SELECT 3 * - - col2 AS col1, col2 FROM tab1 AS cor0
----
177
59
204
68
288
96

query I rowsort
SELECT - AVG ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 41 - - col0 + + - col1 * + 23 - - col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3194
SELECT ALL - col2 DIV col1, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-3194
SELECT ALL - col2 / col1, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT - - MIN( col0 ) DIV COUNT( * ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3195
SELECT - - MIN ( col0 ) / COUNT ( * ) FROM tab0 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3196
SELECT ALL + col0 DIV + 53 AS col2, col0 AS col2 FROM tab2 AS cor0
----
0
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-3196
SELECT ALL + col0 / + 53 AS col2, col0 AS col2 FROM tab2 AS cor0
----
0
46
1
64
1
75

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - 6 ) AS col0 FROM tab1 cor0 WHERE NOT NULL <> NULL
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT DISTINCT COUNT( * ) DIV - 54 AS col2 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT COUNT ( * ) / - 54 AS col2 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 85 * 93 AS col2 FROM tab1
----
-7905
-7905
-7905

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 69 <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT ALL - 3 DIV - 58 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL - 3 / - 58 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT - MAX( DISTINCT + 66 ) col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3205
SELECT - MAX ( DISTINCT + 66 ) col2 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + - MAX( ALL + 22 ) + + 62 AS col0 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + - MAX ( ALL + 22 ) + + 62 AS col0 FROM tab2 AS cor0
----
40

query II rowsort
SELECT DISTINCT + col2 AS col0, col2 * 19 AS col0 FROM tab2 AS cor0
----
23
437
40
760
58
1102

query I rowsort
SELECT - - 48 FROM tab0 AS cor0 WHERE + 77 * + col1 IS NULL
----

query I rowsort
SELECT ALL col0 + - - col0 FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 87 * - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * - col0 * col1 * - col0 + + 24 col0 FROM tab0 cor0
----
37660
635820
72924

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT - COUNT( * ) + - 18 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3212
SELECT - COUNT ( * ) + - 18 FROM tab0 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT DISTINCT 75 DIV + 14 + 98 + + col0 - ( + + 81 ) AS col0 FROM tab2
----
68
86
97

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT 75 / + 14 + 98 + + col0 - ( + + 81 ) AS col0 FROM tab2
----
68
86
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 + 75 = - - 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3215
SELECT * FROM tab1 WHERE - col0 + col0 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3215
SELECT * FROM tab1 WHERE - col0 + col0 < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 * - 83 * + ( - col1 ) AS col2 FROM tab2
----
-215883
-372587
-492107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3217
SELECT ALL - MIN( - - col0 ) AS col2, ( - CAST( NULL AS SIGNED ) ) * + - 10 + - 79 AS col2 FROM tab2
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-3217
SELECT ALL - MIN ( - - col0 ) AS col2, ( - CAST ( NULL AS INTEGER ) ) * + - 10 + - 79 AS col2 FROM tab2
----
-46
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + + col1 AS col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE + ( + 17 ) IS NULL
----

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE - 6 * - 67 / - ( + - col1 ) - - - 96 * - 7 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - 54 col1 FROM tab0
----
-5238
-65610
-98658

query I rowsort
SELECT + col1 * + ( - + col0 ) + + + col2 AS col0 FROM tab0 AS cor0
----
-1168
-1817
2

query II rowsort
SELECT ALL + col0 AS col2, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT + COUNT( * ) * + 98 AS col2 FROM tab1 cor0
----
294

skipif mysql # not compatible
query I rowsort label-3227
SELECT + COUNT ( * ) * + 98 AS col2 FROM tab1 cor0
----
294

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - col2 * - col0 / + + 38 > + ( + col2 ) + 66
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3229
SELECT ALL - - COUNT( * ), MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
3
-23

skipif mysql # not compatible
query II rowsort label-3229
SELECT ALL - - COUNT ( * ), MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
3
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT SUM( ALL - ( - 45 ) ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-3230
SELECT SUM ( ALL - ( - 45 ) ) FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT MAX( + ( + - col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3231
SELECT MAX ( + ( + - col1 ) ) FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE + 61 IN ( col2 + col2, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3233
SELECT DISTINCT ( + col2 ) DIV col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT ( + col2 ) / col1 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0, 89 )
----

query I rowsort
SELECT DISTINCT - 65 + col1 AS col0 FROM tab2 AS cor0
----
-14
12
2

query I rowsort
SELECT DISTINCT 27 * + col1 + + 30 AS col0 FROM tab2 AS cor0
----
1407
1839
2109

query I rowsort
SELECT ALL + 7 + + 69 AS col0 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT - + 66 FROM tab2 cor0 WHERE - 90 < - col0 + - - col0 + - 93
----

query I rowsort
SELECT + 18 * + col0 FROM tab0 AS cor0
----
1566
1746
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL - 62 - ( + - MIN( 48 ) ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL - 62 - ( + - MIN ( 48 ) ) FROM tab0 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3241
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3241
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col1 + ( + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 77 + + col2 FROM tab2
----
100
117
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT + 55 * - + COUNT( - 80 ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT + 55 * - + COUNT ( - 80 ) FROM tab2
----
-165

query I rowsort
SELECT DISTINCT - 26 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + 64 + + MAX( - ( 15 ) ) AS col0 FROM tab0 AS cor0 WHERE 74 IS NOT NULL
----
49

skipif mysql # not compatible
query I rowsort label-3246
SELECT + 64 + + MAX ( - ( 15 ) ) AS col0 FROM tab0 AS cor0 WHERE 74 IS NOT NULL
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3247
SELECT ALL CAST( NULL AS SIGNED ) + - col0 / col2 FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col1 + + col2 + + col0 AS col2 FROM tab2 AS cor0
----
18
27
66

query II rowsort
SELECT col1, + 11 FROM tab0 AS cor0
----
1
11
21
11
81
11

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / - col0 IS NOT NULL
----

query I rowsort
SELECT + + col2 * + 90 AS col0 FROM tab1 AS cor0
----
5310
6120
8640

query I rowsort
SELECT DISTINCT + col0 * + 53 AS col2 FROM tab1 AS cor0
----
2703
4505
4823

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 + - - ( + 42 ) NOT BETWEEN - 62 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3254
SELECT CAST( - col1 AS SIGNED ) AS col2, 93 - + + col1 AS col2 FROM tab0 AS cor0
----
-1
92
-21
72
-81
12

skipif mysql # not compatible
query II rowsort label-3254
SELECT CAST ( - col1 AS INTEGER ) AS col2, 93 - + + col1 AS col2 FROM tab0 AS cor0
----
-1
92
-21
72
-81
12

query I rowsort
SELECT - ( + 47 ) * - col0 FROM tab2 cor0
----
2162
3008
3525

query I rowsort
SELECT 12 * - - col1 AS col2 FROM tab2 AS cor0
----
612
804
924

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL - - COUNT( + 62 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL - - COUNT ( + 62 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT + COUNT( DISTINCT - 76 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT + COUNT ( DISTINCT - 76 ) AS col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT ALL 68 * COUNT( * ) AS col2 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL 68 * COUNT ( * ) AS col2 FROM tab2
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT + COUNT( * ) * - 99 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT + COUNT ( * ) * - 99 FROM tab1
----
-297

query II rowsort
SELECT 70 AS col1, - 5 * + - col2 FROM tab1
----
70
295
70
340
70
480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3263
SELECT DISTINCT COUNT( ALL - - col0 ) DIV - COUNT( ALL - + col0 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT COUNT ( ALL - - col0 ) / - COUNT ( ALL - + col0 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + MIN( + + ( - - col1 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3264
SELECT + MIN ( + + ( - - col1 ) ) AS col1 FROM tab0
----
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 * + col2 - - col0 + 23 + - 83 AS col0, - col0 + + - col0 col0 FROM tab1 AS cor0
----
-4905
-102
-4990
-170
-6157
-182

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE - col1 <= + col1 * + col2 + - - 28
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT + 34 + MIN( ALL - - CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3268
SELECT + 34 + MIN ( ALL - - CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3269
SELECT DISTINCT - - col0 + + + col0 - - - 27 + 70 + + + col2 - - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL + - COUNT( * ) + - 5 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL + - COUNT ( * ) + - 5 FROM tab0 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + - COUNT( * ) + - SUM( ( - 18 ) ) * + 81 AS col2 FROM tab1 AS cor0
----
4371

skipif mysql # not compatible
query I rowsort label-3271
SELECT + - COUNT ( * ) + - SUM ( ( - 18 ) ) * + 81 AS col2 FROM tab1 AS cor0
----
4371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE - col0 <> + col0 / + 58 + + col1 + - col2 * col0
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 97 * - 88 )
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT - 21 + - COUNT( * ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT - 21 + - COUNT ( * ) FROM tab0
----
-24

query I rowsort
SELECT col1 * + + col1 * - 3 AS col1 FROM tab2
----
-13467
-17787
-7803

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT + col0 DIV + - col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3277
SELECT + col0 / + - col1 FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + COUNT( * ) * COUNT( * ) - COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3278
SELECT + COUNT ( * ) * COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > - col2 * col0 * + col0 + 67 + - col2 * + 70
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 34 * - - col1 / 5 + 11 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 77 / + 93 > - + col0
----

query II rowsort
SELECT ALL 56 AS col1, 84 AS col2 FROM tab1
----
56
84
56
84
56
84

query I rowsort
SELECT - col0 * 30 AS col2 FROM tab2
----
-1380
-1920
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - SUM( ALL + + col1 ) * 48 FROM tab0
----
-4944

skipif mysql # not compatible
query I rowsort label-3284
SELECT - SUM ( ALL + + col1 ) * 48 FROM tab0
----
-4944

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE - 77 IS NULL
----

query I rowsort
SELECT + - col2 * + 80 AS col0 FROM tab0 AS cor0
----
-3760
-7920
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT 89 * + MIN( - + ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT ALL - 88 * - 70 * + 71 FROM tab2
----
437360
437360
437360

query I rowsort
SELECT ( col2 ) * + col1 + - - 46 FROM tab0
----
145
256
3853

query II rowsort
SELECT - ( + col1 ) AS col1, - 65 FROM tab2
----
-51
-65
-67
-65
-77
-65

query I rowsort
SELECT + 15 AS col2 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3292
SELECT CAST( NULL AS SIGNED ) / ( COUNT( * ) ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT CAST ( NULL AS INTEGER ) / ( COUNT ( * ) ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - - col0 + - 1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN + 93 * + + 48 AND + 49 + - - col2 * + - col1 + + col1
----

query I rowsort
SELECT + - 58 + 59 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col2 + + - 53 FROM tab1 AS cor0
----
15
43
6

query I rowsort
SELECT - ( + 86 ) AS col2 FROM tab2
----
-86
-86
-86

query I rowsort
SELECT DISTINCT - 67 + + - col0 FROM tab1 AS cor0
----
-118
-152
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT COUNT( * ) - + 32 AS col0 FROM tab2 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3298
SELECT COUNT ( * ) - + 32 AS col0 FROM tab2 cor0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3299
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 7 * - + col1 * col1 * + col0 - + + 67 * - - col1 + col2 AS col0 FROM tab2 AS cor0
----
2352294
2651073
834128

onlyif mysql # DIV for integer division: 
query I rowsort label-3302
SELECT ALL - col1 DIV col2 - - col1 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - col1 / col2 - - col1 FROM tab2
----
49
66
76

query I rowsort
SELECT 51 + - col2 FROM tab1
----
-17
-45
-8

query II rowsort
SELECT ALL + 18 * + 26 * - col1 + ( - - 24 ) AS col2, + col2 - col2 * + + col1 * + - 34 FROM tab1
----
-21972
108732
-2316
10089
-6528
45792

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT + COUNT( * ) * + 90 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + COUNT ( * ) * + 90 FROM tab2
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + 17, + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 79 * col2 IS NULL
----
17
1
17
21
17
81

onlyif mysql # DIV for integer division: 
query II rowsort label-3308
SELECT - - 53 DIV + col1 AS col2, + 90 FROM tab1 AS cor0
----
1
90
10
90
3
90

skipif mysql # not compatible
query II rowsort label-3308
SELECT - - 53 / + col1 AS col2, + 90 FROM tab1 AS cor0
----
1
90
10
90
3
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3309
SELECT - MAX( + - col0 ) AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-3309
SELECT - MAX ( + - col0 ) AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
15
3

query I rowsort
SELECT + ( + 8 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query II rowsort
SELECT + 26 AS col2, 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to a41a8996a1a91681db398d333a4e8bdf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col0 col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( CAST( - col0 AS SIGNED ) ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3313
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( CAST ( - col0 AS INTEGER ) ) BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT ALL - ( col0 ) + - col0 * + col1 DIV + col1 + - col0 FROM tab0 AS cor0
----
-261
-291
-45

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL - ( col0 ) + - col0 * + col1 / + col1 + - col0 FROM tab0 AS cor0
----
-261
-291
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3315
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - - col2 AS SIGNED ) * + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3315
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - - col2 AS INTEGER ) * + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, - col0 col2 FROM tab1
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT - 87 * col2 FROM tab0
----
-4089
-8613
-870

query I rowsort
SELECT DISTINCT + col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

query II rowsort
SELECT col0, ( + col1 ) * + col2 + + 83 FROM tab2 AS cor0
----
46
1256
64
3163
75
3969

query I rowsort
SELECT DISTINCT - 94 + - col0 AS col2 FROM tab1 AS cor0
----
-145
-179
-185

query I rowsort
SELECT - col0 * - 68 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
28985
290927
48603

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT ALL - 16 * - + 80 col1, + MAX( DISTINCT - col2 ) col2 FROM tab2
----
1280
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3323
SELECT ALL - 16 * - + 80 col1, + MAX ( DISTINCT - col2 ) col2 FROM tab2
----
1280
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3324
SELECT ALL col1 DIV + col0 AS col1 FROM tab0 WHERE - + col2 IS NOT NULL
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL col1 / + col0 AS col1 FROM tab0 WHERE - + col2 IS NOT NULL
----
0
0
5

query I rowsort
SELECT - col1 + col0 + + col2 FROM tab0 AS cor0
----
-19
195
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) + - col2 col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL + 49 * + col1 * 56 * - col0 * ( col0 ) FROM tab0 AS cor0
----
-25818296
-436156056
-50009400

query II rowsort
SELECT DISTINCT col2, - ( col0 ) AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT + col0 * 55 AS col0 FROM tab2
----
2530
3520
4125

onlyif mysql # aggregate syntax: 
query II rowsort label-3330
SELECT DISTINCT - COUNT( * ), + COUNT( * ) + + 86 AS col1 FROM tab2
----
-3
89

skipif mysql # not compatible
query II rowsort label-3330
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) + + 86 AS col1 FROM tab2
----
-3
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL MIN( 9 ) * - MAX( - + col1 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL MIN ( 9 ) * - MAX ( - + col1 ) FROM tab1
----
45

query I rowsort
SELECT 90 * 2 * + 84 FROM tab2
----
15120
15120
15120

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL <> col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT SUM( + 3 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3334
SELECT SUM ( + 3 ) AS col2 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT ALL + col2 DIV 30 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + col2 / 30 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3336
SELECT 87 + - SUM( - 88 ) - - + MAX( + - CAST( + ( - col0 ) AS SIGNED ) ) / + - COUNT( * ) + COUNT( * ) + COUNT( * ) * - + CAST( + - 11 AS SIGNED ) * - 32 * - - 70 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3336
SELECT 87 + - SUM ( - 88 ) - - + MAX ( + - CAST ( + ( - col0 ) AS INTEGER ) ) / + - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) * - + CAST ( + - 11 AS INTEGER ) * - 32 * - - 70 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - + col1 IS NOT NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT col0 / + col2 <> ( NULL )
----

query I rowsort
SELECT DISTINCT ( - col1 ) AS col2 FROM tab1 WHERE NOT + col2 + + col2 < + 58
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT - MIN( col0 ) AS col0 FROM tab0 WHERE + 45 + col0 < 78 * + col2 + col1
----
-15

skipif mysql # not compatible
query I rowsort label-3340
SELECT - MIN ( col0 ) AS col0 FROM tab0 WHERE + 45 + col0 < 78 * + col2 + col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL COUNT( * ) - + 97 AS col0 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL COUNT ( * ) - + 97 AS col0 FROM tab2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT MAX( ALL 55 ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT MAX ( ALL 55 ) AS col0 FROM tab2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT DISTINCT 86 + + col1 DIV col2 col2 FROM tab1
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3343
SELECT DISTINCT 86 + + col1 / col2 col2 FROM tab1
----
86

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 >= ( + col0 )
----
15
81
47
97
1
99

query I rowsort
SELECT + col2 * + 54 AS col1 FROM tab0 WHERE NOT col0 / col2 NOT BETWEEN 4 AND - col2 - + ( - 56 )
----
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT COUNT( * ) col1 FROM tab1 WHERE NOT col2 * + col1 + + col1 * col0 NOT BETWEEN CAST( col2 AS SIGNED ) * 0 + - col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3346
SELECT COUNT ( * ) col1 FROM tab1 WHERE NOT col2 * + col1 + + col1 * col0 NOT BETWEEN CAST ( col2 AS INTEGER ) * 0 + - col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT + CAST( NULL AS SIGNED ) + + 45 AS col2 FROM tab1 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-3347
SELECT + CAST ( NULL AS INTEGER ) + + 45 AS col2 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT MAX( DISTINCT 57 ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-3348
SELECT MAX ( DISTINCT 57 ) FROM tab2
----
57

query I rowsort
SELECT DISTINCT 93 * col1 FROM tab2
----
4743
6231
7161

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT COUNT( * ) + 43 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT COUNT ( * ) + 43 FROM tab1
----
46

query III rowsort
SELECT * FROM tab2 WHERE ( + 82 ) NOT IN ( col0 * 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT + MIN( + 81 ) AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-3352
SELECT + MIN ( + 81 ) AS col0 FROM tab2
----
81

query I rowsort
SELECT + col0 + - 31 AS col1 FROM tab2
----
15
33
44

query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) FROM tab2 WHERE col0 * + 10 IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT col2 DIV + col0 + + 69 AS col1 FROM tab2
----
69
69
69

skipif mysql # not compatible
query I rowsort label-3355
SELECT col2 / + col0 + + 69 AS col1 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT COUNT( * ) * - MIN( DISTINCT - col2 * - col1 ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-3356
SELECT COUNT ( * ) * - MIN ( DISTINCT - col2 * - col1 ) FROM tab0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL CAST( NULL AS SIGNED ) + 21 AS col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab1 cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col2 FROM tab0 AS cor0 WHERE 50 * 72 BETWEEN + 56 AND 77 + + ( 34 ) / 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - MAX( DISTINCT col1 ) + COUNT( * ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3360
SELECT - MAX ( DISTINCT col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
-44

query I rowsort
SELECT DISTINCT col2 + col2 * - 83 AS col2 FROM tab0 AS cor0
----
-3854
-8118
-820

query I rowsort
SELECT ALL + col2 - 72 FROM tab1 AS cor0
----
-13
-4
24

query I rowsort
SELECT ALL col0 + 73 AS col2 FROM tab2 AS cor0
----
119
137
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL + 15 + - COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL + 15 + - COUNT ( * ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT 89 * 38 FROM tab0
----
3382

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

query I rowsort
SELECT + 17 * 63 - col0 AS col0 FROM tab1 AS cor0
----
1020
980
986

query I rowsort
SELECT + col2 - + 95 AS col0 FROM tab0 AS cor0
----
-48
-85
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3369
SELECT + 39 DIV MIN( ALL + col0 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3369
SELECT + 39 / MIN ( ALL + col0 ) FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + - SUM( ALL col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3370
SELECT + - SUM ( ALL col1 ) FROM tab2 cor0
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT + col1 * + 58 AS col1 FROM tab0 WHERE ( 25 ) IS NOT NULL
----
1218
4698
58

query I rowsort
SELECT 51 * - - col1 FROM tab2
----
2601
3417
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT - 10 * - MAX( - col1 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT - 10 * - MAX ( - col1 ) FROM tab0
----
-10

query III rowsort
SELECT * FROM tab2 WHERE NOT - 73 >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL + 77 * - - SUM( ALL 38 ) * + 37 AS col1 FROM tab2
----
324786

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + 77 * - - SUM ( ALL 38 ) * + 37 AS col1 FROM tab2
----
324786

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE - col1 - + col1 > - 65 * + ( col2 )
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) BETWEEN col1 * col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - 17 ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT DISTINCT + ( ( 1 ) ) * - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + ( ( 1 ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT COUNT( * ) + 90 FROM tab0 AS cor0 WHERE NOT - 66 IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-3382
SELECT COUNT ( * ) + 90 FROM tab0 AS cor0 WHERE NOT - 66 IS NOT NULL
----
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 - 11 ) NOT BETWEEN - ( + 45 ) * col1 AND NULL
----

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

query I rowsort
SELECT col0 * col1 * col2 FROM tab0 cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT - COUNT( + 71 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - COUNT ( + 71 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col0 ) AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT ALL col0 DIV - + 13 AS col0 FROM tab2 cor0
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL col0 / - + 13 AS col0 FROM tab2 cor0
----
-3
-4
-5

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 = ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT + - ( 72 ) / + 92 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3390
SELECT + - ( 72 ) / + 92 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + 25 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * 62 AS col0 FROM tab1 WHERE NOT - - 42 / + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT DISTINCT col0 DIV - - 33 + - - 63 + - ( - 88 - 96 * - col1 ) FROM tab1 AS cor0
----
-1192
-327
-4359

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT col0 / - - 33 + - - 63 + - ( - 88 - 96 * - col1 ) FROM tab1 AS cor0
----
-1192
-327
-4359

query I rowsort
SELECT ALL + 8 + - + col1 FROM tab0 AS cor0
----
-13
-73
7

query II rowsort
SELECT ALL 41, ( - 63 ) AS col1 FROM tab1 AS cor0
----
41
-63
41
-63
41
-63

query I rowsort
SELECT + + col2 * - col0 + - col0 * col2 AS col1 FROM tab0 cor0
----
-1410
-1740
-19206

query I rowsort
SELECT ALL + 49 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + col0 ) + ( + 10 ) FROM tab2 AS cor0
----
56
74
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 = - col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - - 80 + + COUNT( * ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3401
SELECT - - 80 + + COUNT ( * ) FROM tab0 AS cor0
----
83

query I rowsort
SELECT ALL - 6 + + + col2 + + col2 FROM tab1 AS cor0
----
112
130
186

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3403
SELECT ALL * FROM tab0 WHERE NOT CAST( + col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3403
SELECT ALL * FROM tab0 WHERE NOT CAST ( + col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE ( + 43 + - 6 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL 67 + + + col2 FROM tab0
----
114
166
77

query I rowsort
SELECT DISTINCT col0 / - 57 AS col1 FROM tab1 WHERE NOT col2 NOT IN ( + col0 + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT IN ( - 29 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 + - - col0 BETWEEN col2 - - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - col0 * + 58 - + col1 FROM tab1
----
-283982
-290875
-358951

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - 54 + + - COUNT( * ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-3411
SELECT - 54 + + - COUNT ( * ) FROM tab0
----
-57

query I rowsort
SELECT DISTINCT + ( + 24 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 * - 2 )
----

query II rowsort
SELECT + 47, + col2 AS col1 FROM tab2 AS cor0
----
47
23
47
40
47
58

query I rowsort
SELECT ALL + 1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 + 73 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL - MAX( DISTINCT - + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - MAX ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL + SUM( + col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL + SUM ( + col0 ) FROM tab2 cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3419
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 93 + CAST( + 46 AS SIGNED ) + - 7 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3419
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 93 + CAST ( + 46 AS INTEGER ) + - 7 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL - - COUNT( ALL - + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - - COUNT ( ALL - + col0 ) FROM tab0 AS cor0
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col0 FROM tab1 WHERE NOT + + col1 + col0 * - col0 BETWEEN - - col1 AND ( NULL )
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT + col1 / + - 98 IN ( - col1 + col0 + - ( col1 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT + col1 / + - 98 IN ( - col1 + col0 + - ( col1 ) )
----
3

query I rowsort
SELECT DISTINCT 1 * - - col0 FROM tab2
----
46
64
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, - col1 * col1 col0 FROM tab1
----
59
-25
68
-2209
96
-196

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3427
SELECT COUNT( * ), - ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3427
SELECT COUNT ( * ), - ( CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
3
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 85 * + + 94 AS col1 FROM tab1
----
7990
7990
7990

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT 20 DIV + + col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3430
SELECT 20 / + + col2 FROM tab0
----
0
0
2

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + MAX( ALL col2 ) * + 56 AS col1 FROM tab2
----
3248

skipif mysql # not compatible
query I rowsort label-3432
SELECT + MAX ( ALL col2 ) * + 56 AS col1 FROM tab2
----
3248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col0 FROM tab2 WHERE - 58 < ( col2 + 31 )
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT - - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + 41 * + col1 + + - 9 FROM tab2 cor0
----
2082
2738
3148

query I rowsort
SELECT - 59 + - - col0 FROM tab0
----
-44
28
38

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 BETWEEN - col0 AND - 29 + col2 + - + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + col1 + - - ( + col1 ) + - 41 AS col1 FROM tab0 AS cor0 WHERE col1 < + col2 + col1
----
-1175
-137
-1847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3439
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 59 AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3439
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 59 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT DISTINCT - 97 + - CAST( NULL AS SIGNED ) + col2 * - 4 AS col2 FROM tab1 cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3441
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( col1 / - CAST( NULL AS SIGNED ) ) IN ( col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-3441
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( col1 / - CAST ( NULL AS INTEGER ) ) IN ( col2 ) ) )
----

query I rowsort
SELECT ALL - + 17 + + col0 AS col0 FROM tab0 AS cor0
----
-2
70
80

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

query I rowsort
SELECT + 22 * col0 FROM tab2 AS cor0
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-3

query I rowsort
SELECT col2 * - 96 AS col2 FROM tab2
----
-2208
-3840
-5568

query I rowsort
SELECT col0 - - - col1 AS col0 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT - col0 + col1 * + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col1 + + + 83 FROM tab0 AS cor0
----
2
62
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL - MAX( DISTINCT - + col2 ) - ( 4 ) col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3450
SELECT ALL - MAX ( DISTINCT - + col2 ) - ( 4 ) col0 FROM tab0 AS cor0
----
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN ( NULL ) AND + 1 + col2
----
0

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN ( NULL ) AND + 1 + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT - ( + COUNT( * ) ) col0 FROM tab2 AS cor0 WHERE NOT + 92 * - + 65 * - - col0 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3453
SELECT - ( + COUNT ( * ) ) col0 FROM tab2 AS cor0 WHERE NOT + 92 * - + 65 * - - col0 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT - - CAST( NULL AS SIGNED ) * - 50 - - - 86 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL + MIN( + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + MIN ( + col0 ) AS col1 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3456
SELECT - + 50 * 30 AS col1, - MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-1500
91

skipif mysql # not compatible
query II rowsort label-3456
SELECT - + 50 * 30 AS col1, - MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-1500
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( ( 82 ) ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3459
SELECT ALL col2 * ( + CAST( NULL AS SIGNED ) ) AS col1, col2 - - + col0 AS col1 FROM tab0
----
NULL
196
NULL
62
NULL
97

skipif mysql # not compatible
query II rowsort label-3459
SELECT ALL col2 * ( + CAST ( NULL AS INTEGER ) ) AS col1, col2 - - + col0 AS col1 FROM tab0
----
NULL
196
NULL
62
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE - - 20 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - - 20 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL 96 + ( col2 ) * + - 59 FROM tab2 WHERE - col0 IS NOT NULL
----
-1261
-2264
-3326

query II rowsort
SELECT ALL + col1 AS col0, 81 AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
14
81
47
81
5
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT ALL col1 DIV - col1 + 45 col0 FROM tab2
----
44
44
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3463
SELECT ALL col1 / - col1 + 45 col0 FROM tab2
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT + 75 * - MIN( - + col1 ) - + MIN( + - col2 ) FROM tab2 AS cor0 WHERE NOT col0 + - col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT + 75 * - MIN ( - + col1 ) - + MIN ( + - col2 ) FROM tab2 AS cor0 WHERE NOT col0 + - col1 <> NULL
----
NULL

query I rowsort
SELECT - + col0 * ( 21 ) AS col1 FROM tab0 AS cor0
----
-1827
-2037
-315

query I rowsort
SELECT DISTINCT col2 * + ( + + 44 ) + - col1 FROM tab1 AS cor0
----
2591
2945
4210

query I rowsort
SELECT col0 * col2 FROM tab0 WHERE + col2 NOT IN ( + ( - - col2 ) + + 67, - col0 * + + 82 + + ( - col2 ) )
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL COUNT( DISTINCT + 34 ) * - + 70 AS col2 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL COUNT ( DISTINCT + 34 ) * - + 70 AS col2 FROM tab1
----
-70

query I rowsort
SELECT - col2 + - 48 AS col2 FROM tab2
----
-106
-71
-88

query I rowsort
SELECT - 85 + col1 FROM tab1 cor0
----
-38
-71
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-3471
SELECT - col2 + - col1, col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-110
1
-115
0
-64
0

skipif mysql # not compatible
query II rowsort label-3471
SELECT - col2 + - col1, col2 / col0 AS col0 FROM tab1 AS cor0
----
-110
1
-115
0
-64
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT 42 + + MIN( DISTINCT + 63 ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3472
SELECT 42 + + MIN ( DISTINCT + 63 ) FROM tab2 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-3473
SELECT ALL + COUNT( ALL + - 38 ) AS col0, + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3473
SELECT ALL + COUNT ( ALL + - 38 ) AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3474
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 / col0 / + CAST( NULL AS DECIMAL ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3474
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 / col0 / + CAST ( NULL AS REAL ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3475
SELECT DISTINCT 6 + + ( col0 ) * + col2 FROM tab2 cor0 WHERE NULL NOT IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT 6 + + ( col0 ) * + col2 FROM tab2 cor0 WHERE NULL NOT IN ( CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 66 - + col1 < ( col0 * - col2 + + + 5 )
----

query I rowsort
SELECT ALL col2 * col2 + + - col2 FROM tab0 AS cor0 WHERE NULL IN ( 76 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( - col2 ) AND col2 + col0 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 22 ) FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL MAX( DISTINCT - col1 ) - - ( + 88 ) AS col2 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL MAX ( DISTINCT - col1 ) - - ( + 88 ) AS col2 FROM tab1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT ALL col1 * 18 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT + COUNT( * ) FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT + COUNT ( * ) FROM tab1 WHERE NULL <> NULL
----
0

query I rowsort
SELECT ALL + 54 * + - 68 AS col2 FROM tab0
----
-3672
-3672
-3672

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3485
SELECT col0 DIV col0 * - col0 - - CAST( col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3485
SELECT col0 / col0 * - col0 - - CAST ( col0 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3486
SELECT 3 - COUNT( * ) col2, - MAX( - col2 ) AS col0 FROM tab1
----
0
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3486
SELECT 3 - COUNT ( * ) col2, - MAX ( - col2 ) AS col0 FROM tab1
----
0
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3487
SELECT DISTINCT + 21 * AVG ( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 54 = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT - ( col2 ) / 5 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + - 54 * col0 * - 58 + + 75 * col0 + - CAST( NULL AS SIGNED ) + 35 * - + col1 )
----

skipif mysql # not compatible
query I rowsort label-3489
SELECT - ( col2 ) / 5 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + - 54 * col0 * - 58 + + 75 * col0 + - CAST ( NULL AS INTEGER ) + 35 * - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + SUM( 85 ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-3490
SELECT + SUM ( 85 ) FROM tab2
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT ALL - col2 DIV + 69 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3491
SELECT ALL - col2 / + 69 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * ( 10 ) + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 + - col1 * - col1 * - col0 + - - 52, + 39, - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 + - col1 * - col1 * - col0 + - - 52, + 39, - + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL SUM( - 8 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL SUM ( - 8 ) FROM tab0 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-3495
SELECT + col1 DIV + col0, col1 FROM tab2
----
0
67
1
51
1
77

skipif mysql # not compatible
query II rowsort label-3495
SELECT + col1 / + col0, col1 FROM tab2
----
0
67
1
51
1
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 + col1 * + col0 col1 FROM tab2 AS cor0
----
2429
5011
5108

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3499
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 - 32 + CAST( - - col1 AS SIGNED ) * - col1 AND col1 * + - 75 + col1 * + 97
----

skipif mysql # not compatible
query III rowsort label-3499
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 - 32 + CAST ( - - col1 AS INTEGER ) * - col1 AND col1 * + - 75 + col1 * + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT + SUM( + - 6 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-18

skipif mysql # not compatible
query I rowsort label-3500
SELECT + SUM ( + - 6 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - col1 col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT ALL col1 * col2 * ( col1 ) + + col0 AS col0 FROM tab2 AS cor0
----
237224
260437
59869

query I rowsort
SELECT DISTINCT - ( - 13 ) + + col2 AS col0 FROM tab0 AS cor0
----
112
23
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT + 72 / + CAST( NULL AS SIGNED ) - - col2 + + + col0 * 57 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT col2 * - col0 + col1 + + col2 * + col2 * + 1 + - + col2 + col1 + + + ( col2 ) AS col2, - col1 + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
-1470
112
-1524
139
4348
133

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE col1 * - col0 IS NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE 26 < NULL
----

query I rowsort
SELECT ALL - col1 + - + 36 AS col0 FROM tab1
----
-41
-50
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT DISTINCT - 21 + col2 DIV + col2 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - 21 + col2 / + col2 FROM tab0
----
-20

query I rowsort
SELECT col1 * col2 + + - col2 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT ( - - col0 ) + - + col1 - + 67 FROM tab1
----
-23
-30
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL - COUNT( * ) * - COUNT( * ) * COUNT( DISTINCT col0 ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * COUNT ( DISTINCT col0 ) FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3513
SELECT ALL COUNT( * ) * - COUNT( * ) - ( - 83 ), COUNT( * ) AS col1 FROM tab1
----
74
3

skipif mysql # not compatible
query II rowsort label-3513
SELECT ALL COUNT ( * ) * - COUNT ( * ) - ( - 83 ), COUNT ( * ) AS col1 FROM tab1
----
74
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + col2 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
114
166
77

query I rowsort
SELECT - ( + + 12 ) AS col0 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL + col0 + + col0 AS col0 FROM tab2 cor0 WHERE NOT ( 80 + + - 81 ) = col1 * + col0
----
128
150
92

query I rowsort
SELECT ALL - 15 * - 6 * - col1 FROM tab2
----
-4590
-6030
-6930

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 11 BETWEEN - 41 AND - col1
----
85
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 42 + CAST( NULL AS SIGNED ), - 35 * - + col1, - col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3519
SELECT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 42 + CAST ( NULL AS INTEGER ), - 35 * - + col1, - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL + + 15 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + + 15 / col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - col2 * + col0 AS col2, + col0 FROM tab1 AS cor0
----
-4896
51
-5015
85
-6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL MAX( - - 85 ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL MAX ( - - 85 ) FROM tab2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT DISTINCT - col2 + col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - col1 / + col0 * - 39 * ( + 15 ) * + - col1 + - ( CAST( col0 AS SIGNED ) ) * - col1 NOT IN ( + 31 )
----

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT - col2 + col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col1 / + col0 * - 39 * ( + 15 ) * + - col1 + - ( CAST ( col0 AS INTEGER ) ) * - col1 NOT IN ( + 31 )
----

query I rowsort
SELECT ALL 19 + - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-28
14
5

query I rowsort
SELECT ALL - 35 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT + COUNT( 44 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3526
SELECT + COUNT ( 44 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT MIN( DISTINCT - - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3527
SELECT MIN ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col1 + 0 AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3529
SELECT * FROM tab0 cor0 WHERE NULL <> 31 * + - CAST( + col2 AS SIGNED ) / - + 92
----

skipif mysql # not compatible
query III rowsort label-3529
SELECT * FROM tab0 cor0 WHERE NULL <> 31 * + - CAST ( + col2 AS INTEGER ) / - + 92
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 59 + col0 * + + col2 FROM tab1 AS cor0
----
4955
5074
6247

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT - + col2 + 33 DIV - - col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3532
SELECT - + col2 + 33 / - - col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 1 + + col2 AS col0 FROM tab1 cor0
----
58
67
95

query I rowsort
SELECT DISTINCT - - col1 - - col0 AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT + MIN( ALL col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND - - 69 / + col2 * 8 + - col2 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT + MIN ( ALL col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND - - 69 / + col2 * 8 + - col2 + col0
----
NULL

query I rowsort
SELECT ALL + 54 - + 5 FROM tab2
----
49
49
49

query II rowsort
SELECT col2 AS col2, - col1 FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT DISTINCT 9 - - 60 FROM tab0
----
69

query I rowsort
SELECT 55 - - col2 FROM tab1
----
114
123
151

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < 87 + col2 * - - 0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT ALL + col0 * - + CAST( + col1 AS SIGNED ) FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + col0 * - + CAST ( + col1 AS INTEGER ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col0 * - + 16 AS col1 FROM tab1
----
-1360
-1456
-816

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

query I rowsort
SELECT + 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL - 43 * + 62 AS col2 FROM tab1
----
-2666
-2666
-2666

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3547
SELECT * FROM tab0 WHERE NOT + col0 + + col0 + col0 - 54 <= - - col0 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3547
SELECT * FROM tab0 WHERE NOT + col0 + + col0 + col0 - 54 <= - - col0 / - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT - 49 * COUNT( * ) AS col2 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - 49 * COUNT ( * ) AS col2 FROM tab0
----
-147

query II rowsort
SELECT ALL col2, - 19 AS col0 FROM tab2
----
23
-19
40
-19
58
-19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 97 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT DISTINCT + 27 + - col1 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + + CAST( 7 AS SIGNED ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT + 27 + - col1 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + + CAST ( 7 AS INTEGER ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT + ( + col2 ) * col2 * 40 AS col1 FROM tab2 AS cor0
----
134560
21160
64000

query I rowsort
SELECT + col1 * - col1 * - + col0 * + - 83 AS col0 FROM tab1 AS cor0
----
-16684577
-176375
-829668

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col1 * col0
----
-3

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col1 * col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3555
SELECT 80 DIV + + CAST( 95 AS SIGNED ) * + ( - - ( col0 ) ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT 80 / + + CAST ( 95 AS INTEGER ) * + ( - - ( col0 ) ) FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 = - 73
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT ALL + MIN( DISTINCT col2 ) * MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 WHERE NOT - 60 * - - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT COUNT( * ) DIV 27 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3560
SELECT COUNT ( * ) / 27 col0 FROM tab1
----
0

query II rowsort
SELECT col1 * + col1 * - col1 AS col2, - 47 AS col1 FROM tab0
----
-1
-47
-531441
-47
-9261
-47

query I rowsort
SELECT DISTINCT col2 + + 78 + + col2 FROM tab0
----
172
276
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT COUNT( * ) * + + 72 * + SUM( ALL ( - + col0 ) ) AS col0 FROM tab0 AS cor0 WHERE - col1 * - col0 IS NOT NULL
----
-42984

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT COUNT ( * ) * + + 72 * + SUM ( ALL ( - + col0 ) ) AS col0 FROM tab0 AS cor0 WHERE - col1 * - col0 IS NOT NULL
----
-42984

query I rowsort
SELECT - - ( + + col1 ) + - col2 AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT DISTINCT + 43 DIV + col1 AS col0 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT + 43 / + col1 AS col0 FROM tab1
----
0
3
8

query I rowsort
SELECT ALL + 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL + SUM( ALL - + col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL + SUM ( ALL - + col1 ) AS col0 FROM tab0 cor0
----
-103

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

query I rowsort
SELECT ( + - col0 ) * - 19 AS col2 FROM tab2
----
1216
1425
874

query I rowsort
SELECT DISTINCT 73 * + ( - + col2 ) AS col2 FROM tab2
----
-1679
-2920
-4234

query I rowsort
SELECT ALL col2 * + + 22 AS col0 FROM tab2
----
1276
506
880

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3573
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + col1 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3573
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + col1 * - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 41 * - ( - col1 ) - + col0 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT - + CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3577
SELECT - + CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - col2
----

query I rowsort
SELECT 83 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 44 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3581
SELECT DISTINCT - 60 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT 49 + - 58 AS col2 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL + + 26 * + 11 AS col2 FROM tab0 AS cor0
----
286
286
286

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3584
SELECT - - 6 + - + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT - - 6 + - + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT - col2 * 95 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3586
SELECT 80 * - 72 col0, - ( 57 ) FROM tab0 WHERE + col2 - CAST( col2 AS SIGNED ) + col1 + col2 * - + col1 / + col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3586
SELECT 80 * - 72 col0, - ( 57 ) FROM tab0 WHERE + col2 - CAST ( col2 AS INTEGER ) + col1 + col2 * - + col1 / + col1 IS NULL
----

query III rowsort
SELECT ALL - 48 AS col1, col0 * + col1 * - - col0, col0 AS col0 FROM tab1
----
9 values hashing to db9e5d88a6970b2397bcd22bf191a4f2

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL ( - MAX( - col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL ( - MAX ( - col2 ) ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT - 83 * COUNT( * ) AS col2 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-3589
SELECT - 83 * COUNT ( * ) AS col2 FROM tab0
----
-249

query II rowsort
SELECT ALL - 97 AS col0, ( - - 85 ) FROM tab2
----
-97
85
-97
85
-97
85

query I rowsort
SELECT - 50 * - col2 AS col0 FROM tab1
----
2950
3400
4800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3592
SELECT - 69 AS col0, MAX( DISTINCT + - col1 ) DIV + 82 FROM tab0 cor0
----
-69
0

skipif mysql # not compatible
query II rowsort label-3592
SELECT - 69 AS col0, MAX ( DISTINCT + - col1 ) / + 82 FROM tab0 cor0
----
-69
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

query II rowsort
SELECT + + 37 AS col1, - col0 FROM tab1 AS cor0
----
37
-51
37
-85
37
-91

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3596
SELECT + 35 - + col1 DIV + + col0 AS col2 FROM tab2 AS cor0
----
34
34
35

skipif mysql # not compatible
query I rowsort label-3596
SELECT + 35 - + col1 / + + col0 AS col2 FROM tab2 AS cor0
----
34
34
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT DISTINCT col0 + + ( ( col1 ) ) DIV col0 DIV 95 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT col0 + + ( ( col1 ) ) / col0 / 95 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE - + 31 IS NULL
----

query I rowsort
SELECT - 85 * col0 + - col2 FROM tab2
----
-3933
-5480
-6433

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3601
SELECT + 21 DIV col0 AS col2, col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
1
81

skipif mysql # not compatible
query II rowsort label-3601
SELECT + 21 / col0 AS col2, col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
1
81

query I rowsort
SELECT - - ( + - col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE - - col1 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT + COUNT( * ) AS col2, COUNT( * ) col2 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3605
SELECT + COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT DISTINCT MIN( DISTINCT + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT MIN ( DISTINCT + - col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NULL > - + col0
----
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NULL > - + col0
----
0

query I rowsort
SELECT - ( 32 ) AS col2 FROM tab2
----
-32
-32
-32

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 AS col2 FROM tab1
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * col0 col1 FROM tab2 AS cor0
----
2116
2944
3450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3611
SELECT + CAST( NULL AS SIGNED ) AS col0, 14 col2 FROM tab0 AS cor0
----
NULL
14
NULL
14
NULL
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3611
SELECT + CAST ( NULL AS INTEGER ) AS col0, 14 col2 FROM tab0 AS cor0
----
NULL
14
NULL
14
NULL
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 ) + + + 65 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + 62 AS col1 FROM tab2 cor0
----
113
129
139

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 cor0 WHERE NOT + col1 * + ( - 16 ) <> + col1
----

query I rowsort
SELECT + + col0 / - 56 * col2 - + col2 + + col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 + 12 FROM tab1
----
108
71
80

query I rowsort
SELECT DISTINCT col2 - - - 51 AS col1 FROM tab2
----
-11
-28
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3618
SELECT ALL 74 AS col2, COUNT( * ) * 10 FROM tab1
----
74
30

skipif mysql # not compatible
query II rowsort label-3618
SELECT ALL 74 AS col2, COUNT ( * ) * 10 FROM tab1
----
74
30

query I rowsort
SELECT col0 * + 88 + - col0 FROM tab0
----
1305
7569
8439

query I rowsort
SELECT + 27 + + ( - - col2 ) + 83 AS col0 FROM tab1
----
169
178
206

query I rowsort
SELECT col0 + col1 * col2 - - + col2 + - ( + + col2 ) FROM tab1
----
1395
3287
380

query I rowsort
SELECT DISTINCT - 89 + col1 + - 53 AS col1 FROM tab0 AS cor0
----
-121
-141
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 20 + - - 68 NOT BETWEEN + col0 AND + col2 - + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT + + ( + 70 ) * + - 78 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 + - - 24 IN ( + col0 - + 32, 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL + 33 + - COUNT( * ) col1 FROM tab1 WHERE + col0 IS NOT NULL
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3627
SELECT ALL + 33 + - COUNT ( * ) col1 FROM tab1 WHERE + col0 IS NOT NULL
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT - 28 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3630
SELECT 47 * + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col2 * - 69 * col2 FROM tab0 AS cor0
----
-152421
-676269
-6900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT ALL CAST( + MIN( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL CAST ( + MIN ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
23

query II rowsort
SELECT DISTINCT - 17 AS col2, + col1 FROM tab0 AS cor0
----
-17
1
-17
21
-17
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 * - - col0 + + + col1 * - 89 * col0 * - col0 col0 FROM tab1 AS cor0
----
2770830
2919240
34218639

query II rowsort
SELECT + + col0, 14 FROM tab2 AS cor0
----
46
14
64
14
75
14

query II rowsort
SELECT + - col2, + col1 - + + col0 AS col0 FROM tab0 AS cor0
----
-10
-66
-47
66
-99
-96

query I rowsort
SELECT 53 * - + 38 AS col0 FROM tab0 cor0
----
-2014
-2014
-2014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT DISTINCT - 69 FROM tab2 WHERE NOT + 10 >= + CAST( - 43 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - 69 FROM tab2 WHERE NOT + 10 >= + CAST ( - 43 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3639
SELECT + SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT + SUM ( DISTINCT + - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE - col1 < + - col2
----
-2

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE - col1 < + - col2
----
-2

query I rowsort
SELECT ( + ( - - 15 ) ) FROM tab0
----
15
15
15

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

query I rowsort
SELECT ALL - 60 + + 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT DISTINCT CAST( - 11 AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT CAST ( - 11 AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-11

query III rowsort
SELECT * FROM tab0 WHERE ( NULL <> + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3646
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 IS NOT NULL OR NOT + col1 * + 74 + + col1 - + CAST( + 41 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3646
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 IS NOT NULL OR NOT + col1 * + 74 + + col1 - + CAST ( + 41 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3647
SELECT ALL + col1 AS col0, col2 DIV - col2 AS col1 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-3647
SELECT ALL + col1 AS col0, col2 / - col2 AS col1 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col0 FROM tab1 AS cor0 WHERE + 28 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + - 61 * + + 50 + + col2 + - + col0 FROM tab1 cor0
----
-3005
-3073
-3076

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 + + col0 col2 FROM tab1 AS cor0
----
117
151
157

query I rowsort
SELECT + 49 + - 90 AS col1 FROM tab0 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT COUNT( * ) * + ( 89 ) + - 66 + 73 col0 FROM tab0 AS cor0
----
274

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3653
SELECT COUNT ( * ) * + ( 89 ) + - 66 + 73 col0 FROM tab0 AS cor0
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT DISTINCT + 42 + - COUNT( * ) FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT + 42 + - COUNT ( * ) FROM tab1 cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3655
SELECT COUNT( * ) AS col1 FROM tab2 WHERE - + CAST( NULL AS DECIMAL ) - ( - - 93 ) * + col2 / 30 / + + col0 + col0 + + - 33 + - 35 + - 81 + col1 * - - 48 / 24 > - col1
----
0

skipif mysql # not compatible
query I rowsort label-3655
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE - + CAST ( NULL AS REAL ) - ( - - 93 ) * + col2 / 30 / + + col0 + col0 + + - 33 + - 35 + - 81 + col1 * - - 48 / 24 > - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 11 = NULL
----

query II rowsort
SELECT ALL + col0 - + ( + col1 ) + - col1, - ( + - 3 ) + - col2 + + 99 AS col1 FROM tab0
----
-147
55
45
92
95
3

query I rowsort
SELECT col0 * + + col0 AS col2 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3659
SELECT DISTINCT * FROM tab2 WHERE NOT + + 97 * - CAST( NULL AS SIGNED ) / - - 0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3659
SELECT DISTINCT * FROM tab2 WHERE NOT + + 97 * - CAST ( NULL AS INTEGER ) / - - 0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3660
SELECT + COUNT( * ) * + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3660
SELECT + COUNT ( * ) * + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3661
SELECT ALL col2 * col2 DIV + - 47 FROM tab1
----
-196
-74
-98

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL col2 * col2 / + - 47 FROM tab1
----
-196
-74
-98

query I rowsort
SELECT - + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 * 45 - col2 col1 FROM tab1 AS cor0
----
3324
3352
3361

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT DISTINCT 95 + + MAX( DISTINCT + 1 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT 95 + + MAX ( DISTINCT + 1 ) FROM tab1 AS cor0
----
96

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL 75 * + + 36 * - COUNT( * ) AS col0 FROM tab2
----
-8100

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL 75 * + + 36 * - COUNT ( * ) AS col0 FROM tab2
----
-8100

query I rowsort
SELECT ALL 24 * + col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 86
----

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

query I rowsort
SELECT + col0 * - col0 * + - ( + 26 ) FROM tab2
----
106496
146250
55016

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT DISTINCT MAX( - - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT MAX ( - - col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3672
SELECT ALL - 95 AS col0, + COUNT( * ) AS col0 FROM tab1
----
-95
3

skipif mysql # not compatible
query II rowsort label-3672
SELECT ALL - 95 AS col0, + COUNT ( * ) AS col0 FROM tab1
----
-95
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3673
SELECT ( CAST( NULL AS SIGNED ) ), + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3673
SELECT ( CAST ( NULL AS INTEGER ) ), + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col0 FROM tab0
----
15
15
87
87
97
97

query II rowsort
SELECT - 36, col0 AS col0 FROM tab1
----
-36
51
-36
85
-36
91

query I rowsort
SELECT 82 + - col2 AS col0 FROM tab1
----
-14
14
23

query I rowsort
SELECT + 47 + + 21 * + ( + - col2 ) * - - 21 * + + ( + - 83 ) + + - 22 AS col1 FROM tab0
----
1720366
3623722
366055

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT 66 + - COUNT( * ) AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND ( 27 ) - + col1 + + - col2 + - + col0
----
66

skipif mysql # not compatible
query I rowsort label-3678
SELECT 66 + - COUNT ( * ) AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND ( 27 ) - + col1 + + - col2 + - + col0
----
66

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ( - SUM( - col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
227

skipif mysql # not compatible
query I rowsort label-3680
SELECT ( - SUM ( - col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
227

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 / + 55 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / - col1 IS NULL
----

query I rowsort
SELECT - - 60 - + 46 + - col2 - + 74 AS col2 FROM tab0 AS cor0
----
-107
-159
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3684
SELECT DISTINCT col2 - + - CAST( NULL AS SIGNED ) * - + col2 AS col2, col1 * - CAST( - + col2 AS SIGNED ) col0 FROM tab2
----
NULL
1173
NULL
3080
NULL
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3684
SELECT DISTINCT col2 - + - CAST ( NULL AS INTEGER ) * - + col2 AS col2, col1 * - CAST ( - + col2 AS INTEGER ) col0 FROM tab2
----
NULL
1173
NULL
3080
NULL
3886

query I rowsort
SELECT DISTINCT + 6 * + + 66 AS col0 FROM tab1
----
396

query I rowsort
SELECT DISTINCT 99 - + col2 * - col2 + col2 + - col2 AS col2 FROM tab0
----
199
2308
9900

query I rowsort
SELECT ALL + 13 * + col0 FROM tab0
----
1131
1261
195

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3688
SELECT ALL CAST( NULL AS SIGNED ) + + 61 - col1 AS col1, ( + col2 ) FROM tab1 WHERE NOT + CAST( col2 AS DECIMAL ) + 27 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3688
SELECT ALL CAST ( NULL AS INTEGER ) + + 61 - col1 AS col1, ( + col2 ) FROM tab1 WHERE NOT + CAST ( col2 AS REAL ) + 27 IS NOT NULL
----

query I rowsort
SELECT 44 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
44
44
44

query II rowsort
SELECT - 59 AS col0, 77 FROM tab0 AS cor0
----
-59
77
-59
77
-59
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 * + + 74 - + + col2 * 26 col2, 38 AS col0 FROM tab2 AS cor0
----
-2300
38
-4000
38
-5800
38

query I rowsort
SELECT - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
59
68
96

query I rowsort
SELECT 41 * + 87 FROM tab0 AS cor0
----
3567
3567
3567

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 < + 47 - 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 14 * - col1 * col2 AS col1 FROM tab2 AS cor0
----
-16422
-43120
-54404

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - MIN( col0 ) * 76 FROM tab0 AS cor0
----
-1140

skipif mysql # not compatible
query I rowsort label-3696
SELECT - MIN ( col0 ) * 76 FROM tab0 AS cor0
----
-1140

query I rowsort
SELECT DISTINCT - - col0 * 88 AS col2 FROM tab1 AS cor0
----
4488
7480
8008

query I rowsort
SELECT DISTINCT col2 * col0 * - + 46 AS col2 FROM tab1
----
-225216
-230690
-284648

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT ALL + 73 DIV + col2 AS col1 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL + 73 / + col2 AS col1 FROM tab0
----
0
1
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT DISTINCT 72 DIV 26 AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT 72 / 26 AS col0 FROM tab0
----
2

query II rowsort
SELECT - col0, col0 * 18 AS col0 FROM tab2
----
-46
828
-64
1152
-75
1350

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + 23 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + col2 + 12 FROM tab1
----
108
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT - MIN( + + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3704
SELECT - MIN ( + + col1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT - ( + - col0 ) * col2 * + + 7 FROM tab0 AS cor0
----
4935
6090
67221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - ( - + 87 ) + + col0 * - + 12 + - col2 FROM tab1
----
-1073
-621
-992

onlyif mysql # DIV for integer division: 
query I rowsort label-3708
SELECT col0 + col2 - col1 DIV 12 * - col0 AS col1 FROM tab2
----
253
488
508

skipif mysql # not compatible
query I rowsort label-3708
SELECT col0 + col2 - col1 / 12 * - col0 AS col1 FROM tab2
----
253
488
508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3709
SELECT CAST( NULL AS SIGNED ) / - col0 + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3710
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + col2 + col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-3710
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) * + col2 + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT 21 + - ( 91 ) + col2 DIV + - 86 AS col0 FROM tab1 AS cor0
----
-70
-70
-71

skipif mysql # not compatible
query I rowsort label-3711
SELECT 21 + - ( 91 ) + col2 / + - 86 AS col0 FROM tab1 AS cor0
----
-70
-70
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL + + COUNT( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL + + COUNT ( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 59 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-59
-59
-59

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 80 + col0 + - col2 <> col1
----

query I rowsort
SELECT ALL + + 18 FROM tab1 AS cor0 WHERE - col1 - 2 IS NOT NULL
----
18
18
18

query I rowsort
SELECT DISTINCT 63 - ( col1 ) FROM tab2
----
-14
-4
12

query I rowsort
SELECT 45 - + col0 + + + col1 * - col0 FROM tab0
----
-1185
-149
-1869

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL + COUNT( * ) - + 26 AS col2 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + COUNT ( * ) - + 26 AS col2 FROM tab1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3719
SELECT ALL MAX( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT 15 - 96 AS col2, COUNT( * ) AS col1 FROM tab1
----
-81
3

skipif mysql # not compatible
query II rowsort label-3720
SELECT 15 - 96 AS col2, COUNT ( * ) AS col1 FROM tab1
----
-81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT MAX( + + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT MAX ( + + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + MIN( - - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT + MIN ( - - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----
NULL

query I rowsort
SELECT - ( + 53 ) FROM tab2 cor0 WHERE NOT - col0 <= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3724
SELECT DISTINCT + CAST( + MIN( + col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT + CAST ( + MIN ( + col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL ( + + col1 ) * - col2 FROM tab1
----
-1344
-295
-3196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3727
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL + SUM( ALL col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL + SUM ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT + 97 * + col0 + col2 * CAST( - 56 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-415
4946
5066

skipif mysql # not compatible
query I rowsort label-3730
SELECT + 97 * + col0 + col2 * CAST ( - 56 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-415
4946
5066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 56
----

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 56
----

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab1 AS cor0 WHERE NOT 22 / 26 * 49 + - col2 + + col2 = col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT SUM( DISTINCT - - col1 ) * - - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT - col2 BETWEEN NULL AND + - col2 + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT SUM ( DISTINCT - - col1 ) * - - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT - col2 BETWEEN NULL AND + - col2 + + 9
----
NULL

query I rowsort
SELECT 45 * - - col2 * ( ( + 64 ) ) FROM tab2 cor0
----
115200
167040
66240

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3737
SELECT + 49 * - 60 AS col1, + CAST( 16 AS SIGNED ) - + 46 DIV - 61 FROM tab0
----
-2940
16
-2940
16
-2940
16

skipif mysql # not compatible
query II rowsort label-3737
SELECT + 49 * - 60 AS col1, + CAST ( 16 AS INTEGER ) - + 46 / - 61 FROM tab0
----
-2940
16
-2940
16
-2940
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT 88 + + MIN( DISTINCT col1 ) FROM tab2
----
139

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT 88 + + MIN ( DISTINCT col1 ) FROM tab2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT + MAX( ALL + 88 ) + - MAX( - col2 ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-3739
SELECT + MAX ( ALL + 88 ) + - MAX ( - col2 ) FROM tab2
----
111

query II rowsort
SELECT DISTINCT 52 + + col1 * - 88 * - col2, - ( + 33 ) + + + 66 AS col2 FROM tab0 AS cor0
----
18532
33
335068
33
8764
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT ALL - - col0 DIV col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL - - col0 / col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3742
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - col0 + + col2 + - - CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3742
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - col0 + + col2 + - - CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT + COUNT( * ) FROM tab1 WHERE NULL > - col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT + COUNT ( * ) FROM tab1 WHERE NULL > - col2 * col0
----
0

query I rowsort
SELECT - col1 - + - col2 - col0 * 48 AS col2 FROM tab1 AS cor0
----
-2366
-4026
-4347

query I rowsort
SELECT + col2 - + + 14 AS col1 FROM tab2 AS cor0
----
26
44
9

query I rowsort
SELECT ALL - - 93 * + 9 FROM tab2 AS cor0
----
837
837
837

query I rowsort
SELECT ALL - col1 + - + 36 * - + 36 AS col0 FROM tab1 AS cor0
----
1249
1282
1291

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT DISTINCT 84 + COUNT( * ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT 84 + COUNT ( * ) FROM tab0 AS cor0
----
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - - col0 * + - col0 IS NULL
----

query I rowsort
SELECT + - col0 * - 68 + - 73 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
1838
2681
5282

query I rowsort
SELECT ALL + ( - 14 ) - + 98 FROM tab2 AS cor0
----
-112
-112
-112

query I rowsort
SELECT + col1 + + 46 AS col1 FROM tab2
----
113
123
97

query I rowsort
SELECT DISTINCT col0 - + col0 + col2 * ( + 29 ) FROM tab1
----
1711
1972
2784

query I rowsort
SELECT + col1 * + ( + ( - col1 ) ) FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT DISTINCT - ( MIN( - col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT - ( MIN ( - col2 ) ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL ( + + MIN( 99 ) ) AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL ( + + MIN ( 99 ) ) AS col1 FROM tab1
----
99

query I rowsort
SELECT ALL + - 6 AS col1 FROM tab1 cor0
----
-6
-6
-6

query II rowsort
SELECT DISTINCT - col0 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3759
SELECT col0 / + - ( - 54 ) / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT - 83 * + col0 * - 41 < - 7
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT col0 / + - ( - 54 ) / - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT - 83 * + col0 * - 41 < - 7
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - ( + + MAX( DISTINCT + col0 ) ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3760
SELECT - ( + + MAX ( DISTINCT + col0 ) ) FROM tab0 cor0
----
-97

query I rowsort
SELECT DISTINCT col1 * - col2 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-1344
-295
-3196

query II rowsort
SELECT ALL 3 * col0 AS col2, col2 + col1 * + - 49 FROM tab0 cor0 WHERE NULL > col2 * col1
----

query I rowsort
SELECT + ( 65 ) + + col1 FROM tab2 AS cor0
----
116
132
142

query I rowsort
SELECT + - col1 + - - 42 FROM tab1 AS cor0
----
-5
28
37

query I rowsort
SELECT ALL + + 52 FROM tab1 cor0
----
52
52
52

query II rowsort
SELECT ALL - col1 AS col2, col0 + - 47 FROM tab0
----
-1
50
-21
40
-81
-32

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

query II rowsort
SELECT ALL - col1 * + + col0 * - 65 AS col1, col1 * - col2 FROM tab0
----
118755
-210
6305
-99
78975
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT COUNT( ALL + + 54 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3769
SELECT COUNT ( ALL + + 54 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col1 * + + col0 + col0 * - col0 FROM tab2 AS cor0
----
-10650
-4462
-9024

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL COUNT( col2 ) + - 19 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL COUNT ( col2 ) + - 19 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT - col1 * + ( + - 83 ) * + + 3 - + col0 AS col1 FROM tab0 AS cor0
----
152
20154
5142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT DISTINCT - 2 + + - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
19
79

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT - 2 + + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
19
79

query I rowsort
SELECT + 14 AS col0 FROM tab0 WHERE NULL IS NULL
----
14
14
14

query I rowsort
SELECT + 1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 11 ) + 34 AS col0 FROM tab1
----
45
45
45

query III rowsort
SELECT * FROM tab2 WHERE NOT + 89 IS NOT NULL
----

query I rowsort
SELECT + 17 * + 41 FROM tab0
----
697
697
697

query I rowsort
SELECT ( + 20 ) * col2 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL - ( ( - col0 ) ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) > ( + 37 )
----
91
47
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT ALL 31 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL 31 / + col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NOT + 3 <> - 64 / col2
----

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + col0 * 25 AS col0 FROM tab1
----
1275
2125
2275

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

query III rowsort
SELECT * FROM tab0 WHERE + col0 < + col2
----
15
81
47
97
1
99

query I rowsort
SELECT + col1 * + col1 FROM tab0 WHERE NOT ( NULL ) < ( - 51 )
----

query I rowsort
SELECT ALL col2 * - col2 + + col1 * + 64 FROM tab2
----
2735
3328
924

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT - 30 - - MIN( col1 - + col1 ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT - 30 - - MIN ( col1 - + col1 ) FROM tab2
----
-30

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3796
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL ( COUNT( * ) ) FROM tab0 WHERE ( col1 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL ( COUNT ( * ) ) FROM tab0 WHERE ( col1 ) = NULL
----
0

query I rowsort
SELECT col0 * ( - col0 ) + - col0 AS col1 FROM tab1
----
-2652
-7310
-8372

query I rowsort
SELECT DISTINCT + col1 * col0 + - col2 AS col0 FROM tab2
----
2323
4888
4967

query I rowsort
SELECT col0 + 65 AS col1 FROM tab2
----
111
129
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT MIN( - col0 ) + - COUNT( ALL - col2 + + col0 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-3803
SELECT MIN ( - col0 ) + - COUNT ( ALL - col2 + + col0 ) FROM tab2
----
-78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 24 * + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 * + 8 AS col0 FROM tab0 cor0
----
168
648
8

query I rowsort
SELECT ALL - 69 * 28 FROM tab1 AS cor0 WHERE + 17 + ( - 91 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT - COUNT( * ) * 64 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3807
SELECT - COUNT ( * ) * 64 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 91 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 91 > ( NULL )
----
0

query I rowsort
SELECT - 12 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL + - MAX( ALL - col0 ) + + COUNT( * ) FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + - MAX ( ALL - col0 ) + + COUNT ( * ) FROM tab1 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT - 44 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3813
SELECT + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT - 44 IS NULL
----
3

query I rowsort
SELECT ALL + + col2 + 28 * + 65 FROM tab1 AS cor0
----
1879
1888
1916

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT DISTINCT col1 DIV col1 + - col1 * col0 FROM tab0 AS cor0
----
-1214
-1826
-96

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT col1 / col1 + - col1 * col0 FROM tab0 AS cor0
----
-1214
-1826
-96

query I rowsort
SELECT ALL + col1 + col0 + - col1 FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 36 ) FROM tab2
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT 11 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT 11 / - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT + 95 * - - COUNT( * ) FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-3820
SELECT + 95 * - - COUNT ( * ) FROM tab2
----
285

query I rowsort
SELECT - 75 + - col1 FROM tab1
----
-122
-80
-89

query I rowsort
SELECT DISTINCT - 41 * + col0 FROM tab2
----
-1886
-2624
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT DISTINCT - 35 + + - 29 * COUNT( * ) AS col0 FROM tab1
----
-122

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT - 35 + + - 29 * COUNT ( * ) AS col0 FROM tab1
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <= ( + col2 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <= ( + col2 * - col1 )
----
0

query I rowsort
SELECT ALL 90 + col2 AS col0 FROM tab1
----
149
158
186

query I rowsort
SELECT - col0 + 15 FROM tab0 AS cor0 WHERE - col1 + + col2 IS NOT NULL
----
-72
-82
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 * col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col0 * col0 * - col1 + col0 AS col2 FROM tab2 AS cor0
----
-107870
-315328
-376800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3829
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab2
----
NULL

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

query I rowsort
SELECT - 61 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3831
SELECT - ( - 57 ) DIV - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-6

skipif mysql # not compatible
query I rowsort label-3831
SELECT - ( - 57 ) / - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3832
SELECT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT ALL + 5 DIV ( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + 5 / ( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

query II rowsort
SELECT col0 AS col0, + 70 FROM tab2 AS cor0
----
46
70
64
70
75
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT SUM( ALL 87 ) FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT SUM ( ALL 87 ) FROM tab1 AS cor0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT ALL + 7 * col1 AS col2 FROM tab1 cor0 WHERE + - CAST( col2 AS SIGNED ) < - col0 OR NULL IS NOT NULL
----
98

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL + 7 * col1 AS col2 FROM tab1 cor0 WHERE + - CAST ( col2 AS INTEGER ) < - col0 OR NULL IS NOT NULL
----
98

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3840
SELECT ALL + + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL + 68 * - COUNT( * ) FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL + 68 * - COUNT ( * ) FROM tab0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL + COUNT( * ) * 24 * COUNT( * ) AS col2 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + COUNT ( * ) * 24 * COUNT ( * ) AS col2 FROM tab0
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT ALL col1 DIV - 19 AS col1 FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL col1 / - 19 AS col1 FROM tab2
----
-2
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 13 * + 10, col0 * 35 col2 FROM tab2
----
130
1610
130
2240
130
2625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT CAST( col1 AS SIGNED ) * + - col1 col0 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3845
SELECT CAST ( col1 AS INTEGER ) * + - col1 col0 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT + 72 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-3846
SELECT + 72 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
216

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - + col1 + - 66 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3849
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND CAST( + - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3849
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND CAST ( + - col1 AS INTEGER )
----

query I rowsort
SELECT - 82 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT + + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3851
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 / - col1 + - 74 + 79 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT - + col0 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL COUNT( + col0 ) + + + SUM( DISTINCT + 26 ) + - 87 * + 29 FROM tab1
----
-2494

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL COUNT ( + col0 ) + + + SUM ( DISTINCT + 26 ) + - 87 * + 29 FROM tab1
----
-2494

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + MAX( DISTINCT - col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3855
SELECT + MAX ( DISTINCT - col2 ) AS col2 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL + MAX( ALL - col2 ) col2 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3856
SELECT ALL + MAX ( ALL - col2 ) col2 FROM tab1
----
-59

query I rowsort
SELECT ALL 99 / col1 AS col0 FROM tab1 cor0 WHERE + 37 <> NULL AND NOT ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT - ( - + SUM( + 66 ) ) + + - MAX( ALL + - col1 ) AS col1 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-3858
SELECT - ( - + SUM ( + 66 ) ) + + - MAX ( ALL + - col1 ) AS col1 FROM tab2 AS cor0
----
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col0 col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 32 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT 86 + + 16 FROM tab1 AS cor0
----
102

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

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

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

query I rowsort
SELECT ALL + col0 + col0 * - + col0 FROM tab0
----
-210
-7482
-9312

query II rowsort
SELECT - col1, - col2 AS col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + 52 * 42 IS NULL
----

query II rowsort
SELECT - + 16, col1 FROM tab2 cor0
----
-16
51
-16
67
-16
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT - MIN( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - MIN ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT ALL - 85 AS col0, + col2 FROM tab1 AS cor0
----
-85
59
-85
68
-85
96

query I rowsort
SELECT DISTINCT - - 64 + - 34 FROM tab0 cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL + - COUNT( * ) - + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + - COUNT ( * ) - + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT + COUNT( ALL + 57 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3874
SELECT + COUNT ( ALL + 57 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT + col1 * col0 DIV - - ( + 62 ) + - col2 * - - col0 AS col2 FROM tab1 AS cor0
----
-4885
-5009
-6120

skipif mysql # not compatible
query I rowsort label-3875
SELECT + col1 * col0 / - - ( + 62 ) + - col2 * - - col0 AS col2 FROM tab1 AS cor0
----
-4885
-5009
-6120

query I rowsort
SELECT 11 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( NOT - col1 NOT BETWEEN ( - - col2 ) AND + col0 + + col2 ) )
----
11
11
11

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 < - col2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT col1 DIV + col2 + - col1 col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3878
SELECT col1 / + col2 + - col1 col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL - 74 * + + ( - 24 ) FROM tab2
----
1776
1776
1776

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT MAX( DISTINCT col0 ) * - COUNT( * ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-3880
SELECT MAX ( DISTINCT col0 ) * - COUNT ( * ) AS col1 FROM tab1
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT DISTINCT - CAST( CAST( 8 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT - CAST ( CAST ( 8 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
-8

query II rowsort
SELECT + col2, 5 AS col1 FROM tab1
----
59
5
68
5
96
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL SUM( ALL + 80 ) * - 85 AS col2 FROM tab0
----
-20400

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL SUM ( ALL + 80 ) * - 85 AS col2 FROM tab0
----
-20400

query II rowsort
SELECT - 68, - col0 AS col0 FROM tab1
----
-68
-51
-68
-85
-68
-91

query II rowsort
SELECT - col2 AS col1, 41 FROM tab2
----
-23
41
-40
41
-58
41

query I rowsort
SELECT 27 * + - col0 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT DISTINCT + 51 * + col1 AS col0 FROM tab2
----
2601
3417
3927

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + col0 IN ( + + col1 )
----

query I rowsort
SELECT ALL - 49 + + - col2 - + 13 * + col1 AS col0 FROM tab1 AS cor0
----
-173
-327
-728

query I rowsort
SELECT - col1 * + 98 * col1 FROM tab0 AS cor0
----
-43218
-642978
-98

query I rowsort
SELECT ALL + + col2 + + - 93 AS col2 FROM tab0 AS cor0
----
-46
-83
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT - - COUNT( * ) - + MIN( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3892
SELECT - - COUNT ( * ) - + MIN ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3893
SELECT ALL + 72 DIV + CAST( - col0 AS SIGNED ), ( + col1 ) AS col1 FROM tab0
----
-4
81
0
1
0
21

skipif mysql # not compatible
query II rowsort label-3893
SELECT ALL + 72 / + CAST ( - col0 AS INTEGER ), ( + col1 ) AS col1 FROM tab0
----
-4
81
0
1
0
21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + + 96 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3895
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * col0 - 60 + 76, + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3895
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * col0 - 60 + 76, + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - 29 * - ( - + MIN( - ( - col0 ) ) ) + - ( 8 ) FROM tab0
----
-443

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - 29 * - ( - + MIN ( - ( - col0 ) ) ) + - ( 8 ) FROM tab0
----
-443

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3897
SELECT CAST( col0 AS SIGNED ) AS col1, + 4 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query II rowsort label-3897
SELECT CAST ( col0 AS INTEGER ) AS col1, + 4 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3898
SELECT col1 AS col0, + col0 DIV 28 AS col0 FROM tab2 cor0
----
51
1
67
2
77
2

skipif mysql # not compatible
query II rowsort label-3898
SELECT col1 AS col0, + col0 / 28 AS col0 FROM tab2 cor0
----
51
1
67
2
77
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL 90 * - + 26 * 29 * + - COUNT( * ) col2 FROM tab1 cor0 WHERE ( - col2 IN ( - col2 ) )
----
203580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3899
SELECT ALL 90 * - + 26 * 29 * + - COUNT ( * ) col2 FROM tab1 cor0 WHERE ( - col2 IN ( - col2 ) )
----
203580

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NULL > - col1 ) )
----

query II rowsort
SELECT - col1 * + col2 AS col2, + 14 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT ALL 43 * + + 51 + 97 + + CAST( - 61 AS SIGNED ) FROM tab1 AS cor0
----
2229
2229
2229

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL 43 * + + 51 + 97 + + CAST ( - 61 AS INTEGER ) FROM tab1 AS cor0
----
2229
2229
2229

query I rowsort
SELECT + + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NOT 44 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 86 <= ( + + 88 - + - col1 * + 84 + - col0 - + col0 + - col2 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT COUNT( - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3906
SELECT COUNT ( - col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 + - + col0 = + ( - - col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-3907
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 + - + col0 = + ( - - col1 )
----
-3

query I rowsort
SELECT DISTINCT - ( - 24 ) FROM tab0 AS cor0
----
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT 42 * + + COUNT( * ) - 29 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3910
SELECT 42 * + + COUNT ( * ) - 29 FROM tab2 AS cor0
----
97

query I rowsort
SELECT DISTINCT - col1 - + col0 FROM tab2 WHERE - col0 / + + 97 + - - col2 * + 43 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( - col2 ) BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT - - COUNT( * ) / CAST( NULL AS SIGNED ) * COUNT( * ) + - + COUNT( * ) * - MIN( - CAST( - 25 AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT - - COUNT ( * ) / CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + COUNT ( * ) * - MIN ( - CAST ( - 25 AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT - 29 DIV + 68 + - col1 + + - col2 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-3914
SELECT - 29 / + 68 + - col1 + + - col2 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT + - 95 * - + col1 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - ( MIN( + + 91 ) ) AS col1 FROM tab2 WHERE - 15 IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-3916
SELECT - ( MIN ( + + 91 ) ) AS col1 FROM tab2 WHERE - 15 IS NOT NULL
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT + COUNT( * ) + - + ( + ( 86 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-77

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + COUNT ( * ) + - + ( + ( 86 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-77

query I rowsort
SELECT - col2 + + 61 * - - col0 + - - ( + col2 ) FROM tab0 AS cor0
----
5307
5917
915

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT + + SUM( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + + SUM ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
156

query II rowsort
SELECT ALL + ( + - col1 ) + - col0 AS col2, - 32 FROM tab0 AS cor0
----
-108
-32
-96
-32
-98
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT - 99 + - ( - ( + - COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3921
SELECT - 99 + - ( - ( + - COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-102

query I rowsort
SELECT DISTINCT + - 2 + - col1 FROM tab2 AS cor0
----
-53
-69
-79

query II rowsort
SELECT + - col1 + 98 + + col0, col2 AS col2 FROM tab0 AS cor0
----
164
10
194
99
32
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT + col1 + + + col2 AS col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3926
SELECT DISTINCT + + col0 DIV + + col1 + col1 + - col2 * + + col1 FROM tab1 AS cor0
----
-1327
-273
-3148

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT + + col0 / + + col1 + col1 + - col2 * + + col1 FROM tab1 AS cor0
----
-1327
-273
-3148

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

query I rowsort
SELECT DISTINCT + col1 - - 36 + col1 FROM tab1
----
130
46
64

query II rowsort
SELECT - col2, 33 AS col0 FROM tab0 WHERE + col2 IS NOT NULL
----
-10
33
-47
33
-99
33

query III rowsort
SELECT * FROM tab1 WHERE + + col1 * - col1 + - + ( - - col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT DISTINCT CAST( 30 AS SIGNED ) * - + COUNT( * ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT CAST ( 30 AS INTEGER ) * - + COUNT ( * ) FROM tab2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT - col1 - - col0 DIV - col1 AS col2 FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-3932
SELECT - col1 - - col0 / - col1 AS col2 FROM tab2
----
-51
-68
-77

query I rowsort
SELECT DISTINCT - 79 * - - col2 AS col2 FROM tab2
----
-1817
-3160
-4582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col1 * - - 70 * col2 * + + col1 + - + col1 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 44 + - col0 * + 3 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 44 + - col0 * + 3 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT + ( - - CAST( 55 AS SIGNED ) ) - - 32 FROM tab2 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-3936
SELECT + ( - - CAST ( 55 AS INTEGER ) ) - - 32 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT DISTINCT 99 / + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT + COUNT( * ) + - MIN( - 67 ) FROM tab2, tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3939
SELECT + COUNT ( * ) + - MIN ( - 67 ) FROM tab2, tab0 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ( + COUNT( ALL - col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3941
SELECT ( + COUNT ( ALL - col0 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + - 71 * - + col0 FROM tab1 AS cor0 WHERE NOT + 63 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3944
SELECT ALL CAST( + 98 AS SIGNED ) * - col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
-4508
NULL
-6272
NULL
-7350
NULL

skipif mysql # not compatible
query II rowsort label-3944
SELECT ALL CAST ( + 98 AS INTEGER ) * - col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
-4508
NULL
-6272
NULL
-7350
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3945
SELECT + - COUNT( * ) AS col1, + 45 FROM tab2 AS cor0
----
-3
45

skipif mysql # not compatible
query II rowsort label-3945
SELECT + - COUNT ( * ) AS col1, + 45 FROM tab2 AS cor0
----
-3
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col1 ) col2 FROM tab2
----
51
67
77

query II rowsort
SELECT - 17 AS col2, + col0 + + - col2 AS col0 FROM tab0
----
-17
-2
-17
-32
-17
77

query II rowsort
SELECT col1, col0 * col1 FROM tab1
----
14
714
47
4277
5
425

query II rowsort
SELECT DISTINCT col2 AS col0, 61 FROM tab2
----
23
61
40
61
58
61

query II rowsort
SELECT ALL - col0 AS col1, ( - col1 ) * 30 AS col2 FROM tab2
----
-46
-1530
-64
-2310
-75
-2010

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT DISTINCT MIN( DISTINCT + col1 ) + 10, - MIN( ALL + col1 ) AS col1 FROM tab1 WHERE NOT - + 62 * col0 > + - 0 * + + col0
----
15
-5

skipif mysql # not compatible
query II rowsort label-3952
SELECT DISTINCT MIN ( DISTINCT + col1 ) + 10, - MIN ( ALL + col1 ) AS col1 FROM tab1 WHERE NOT - + 62 * col0 > + - 0 * + + col0
----
15
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL SUM( DISTINCT + - 70 ) + + 28 AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL SUM ( DISTINCT + - 70 ) + + 28 AS col1 FROM tab0
----
-42

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT DISTINCT + 84 * - ( + CAST( NULL AS SIGNED ) ) + 18 + + COUNT( * ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + 84 * - ( + CAST ( NULL AS INTEGER ) ) + 18 + + COUNT ( * ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT + + col2 + + - col1 - + 4 DIV 27 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-3956
SELECT + + col2 + + - col1 - + 4 / 27 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL - MIN( DISTINCT ( - + 67 ) ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - MIN ( DISTINCT ( - + 67 ) ) FROM tab2
----
67

query I rowsort
SELECT - + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - col1 * 97 + - col0 FROM tab2 AS cor0
----
113735
298696
376867

query I rowsort
SELECT - col2 + - col2 - + col1 * col0 AS col0 FROM tab2
----
-2392
-5008
-5141

query I rowsort
SELECT ALL col2 * + 35 FROM tab1
----
2065
2380
3360

query II rowsort
SELECT col1 + + - col2 * + 31 AS col2, - col1 FROM tab2
----
-1163
-77
-1731
-67
-662
-51

query I rowsort
SELECT ALL - 52 - + col2 AS col0 FROM tab2
----
-110
-75
-92

query II rowsort
SELECT + ( + col2 ) + col0, + ( + col2 ) AS col2 FROM tab1
----
144
59
147
96
159
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT ALL + + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE NOT + + 47 + + col1 NOT BETWEEN + col0 AND - col2 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE NOT + + 47 + + col1 NOT BETWEEN + col0 AND - col2 + + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 * - col0 - + - col2 col0 FROM tab2 AS cor0
----
-163800
-326192
-48645

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT ALL - col1 DIV + - 68 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - col1 / + - 68 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col0 * + 76 * col2 FROM tab0 AS cor0
----
53580
66120
729828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + 44 - + - col1 AS col2 FROM tab2 WHERE 96 - + col0 * + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 44 - + - col1 AS col2 FROM tab2 WHERE 96 - + col0 * + col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3971
SELECT ALL + MIN( - - col0 ) AS col2, + 35 * MAX( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-3971
SELECT ALL + MIN ( - - col0 ) AS col2, + 35 * MAX ( + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ( + MIN( DISTINCT + col1 ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3972
SELECT ( + MIN ( DISTINCT + col1 ) ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / - 82 IS NOT NULL
----

query II rowsort
SELECT + 35 * - 73 AS col0, - 66 FROM tab2 AS cor0
----
-2555
-66
-2555
-66
-2555
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3976
SELECT ALL + - 44 DIV - 3 AS col0, col0 FROM tab2 AS cor0
----
14
46
14
64
14
75

skipif mysql # not compatible
query II rowsort label-3976
SELECT ALL + - 44 / - 3 AS col0, col0 FROM tab2 AS cor0
----
14
46
14
64
14
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT 45 + COUNT( * ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT 45 + COUNT ( * ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT 13 * - ( - - col2 ) FROM tab0 AS cor0
----
-1287
-130
-611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT DISTINCT + 55 + - 5 * + 55 * - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * + col0 * 34 * + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT + 55 + - 5 * + 55 * - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * + col0 * 34 * + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - 26 + + - 79 FROM tab0
----
-105
-105
-105

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 48 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 30 BETWEEN - 95 AND ( 15 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - + 57 ) FROM tab2
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3984
SELECT ALL 93 AS col0, + 37 * 14 - + COUNT( * ) AS col1 FROM tab0
----
93
515

skipif mysql # not compatible
query II rowsort label-3984
SELECT ALL 93 AS col0, + 37 * 14 - + COUNT ( * ) AS col1 FROM tab0
----
93
515

onlyif mysql # DIV for integer division: 
query I rowsort label-3985
SELECT ALL 13 + col1 * - + col1 + 82 DIV - + col0 AS col1 FROM tab1
----
-12
-184
-2196

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL 13 + col1 * - + col1 + 82 / - + col0 AS col1 FROM tab1
----
-12
-184
-2196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + - col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL + COUNT( + + 27 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + COUNT ( + + 27 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + ( 31 ) FROM tab2 AS cor0
----
-31
-31
-31

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3991
SELECT - 32 DIV + + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3991
SELECT - 32 / + + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col0 + + - col1 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT + COUNT( * ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3994
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + - ( - 21 ) AND 56 + - 27 + + 84
----
15
81
47

query I rowsort
SELECT + col2 * + ( + col2 ) AS col2 FROM tab2 cor0
----
1600
3364
529

query I rowsort
SELECT ALL + col2 * - col2 + - + col1 AS col0 FROM tab0 AS cor0
----
-121
-2290
-9802

query I rowsort
SELECT 24 AS col1 FROM tab0 AS cor0 WHERE col2 * + + 61 IS NOT NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT ALL - col1 * - + 35 - col2 + - col2 FROM tab2 AS cor0
----
1739
2229
2615

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL ( - COUNT( * ) ) + - 25 FROM tab0 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL ( - COUNT ( * ) ) + - 25 FROM tab0 cor0
----
-28

query III rowsort
SELECT * FROM tab2 WHERE col0 <> col2 * - - col2 + + - col1 + + 24 * - - col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 - - col0 * - 72 * + col0 FROM tab2
----
-152403
-294989
-405067

query II rowsort
SELECT + col0 * - 63, col0 AS col0 FROM tab2
----
-2898
46
-4032
64
-4725
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT - CAST( + + 49 AS SIGNED ) * - COUNT( * ) FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-4005
SELECT - CAST ( + + 49 AS INTEGER ) * - COUNT ( * ) FROM tab0
----
147

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 61 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT 67 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4007
SELECT 67 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-201

query I rowsort
SELECT ALL + + col0 * - col0 + + - col0 FROM tab0 AS cor0
----
-240
-7656
-9506

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 < col2
----

query I rowsort
SELECT - 84 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL - COUNT( * ) * - + 17 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL - COUNT ( * ) * - + 17 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL MAX( 73 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
73

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL MAX ( 73 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL 32 * - COUNT( ALL + col2 ) * + COUNT( * ) col1 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4013
SELECT ALL 32 * - COUNT ( ALL + col2 ) * + COUNT ( * ) col1 FROM tab2 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col2 / + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col2 / + col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL + 40 * + - col2 FROM tab2 AS cor0
----
-1600
-2320
-920

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( 87 ) * + + 12 * + 98 + + col2 FROM tab2 AS cor0
----
-102254
-102272
-102289

query II rowsort
SELECT DISTINCT 77, 31 AS col2 FROM tab0 AS cor0
----
77
31

query I rowsort
SELECT + ( + - col1 ) * - - 58 FROM tab0
----
-1218
-4698
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 45 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT COUNT( * ) FROM tab2 WHERE ( NOT + 4 / - + col0 < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT COUNT ( * ) FROM tab2 WHERE ( NOT + 4 / - + col0 < NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL 90 * COUNT( * ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL 90 * COUNT ( * ) FROM tab2
----
270

query I rowsort
SELECT + 42 + - col1 FROM tab2
----
-25
-35
-9

query I rowsort
SELECT DISTINCT + col0 + + - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4025
SELECT 15, - col1 * - - CAST( - + col0 AS SIGNED ) + + 59 + + - col0 AS col1 FROM tab0
----
15
1259
15
1799
15
59

skipif mysql # not compatible
query II rowsort label-4025
SELECT 15, - col1 * - - CAST ( - + col0 AS INTEGER ) + + 59 + + - col0 AS col1 FROM tab0
----
15
1259
15
1799
15
59

query II rowsort
SELECT + 5 + + ( 78 ), 0 AS col0 FROM tab0 AS cor0
----
83
0
83
0
83
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= - 71
----
0

skipif mysql # not compatible
query I rowsort label-4028
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= - 71
----
0

query I rowsort
SELECT DISTINCT + - 35 + + - col0 + col2 + + col0 + col2 - - col1 * 76 - + + col0 + 31 AS col0 FROM tab1 AS cor0
----
1201
3613
409

query I rowsort
SELECT - col0 + - + 55 FROM tab2 cor0
----
-101
-119
-130

query I rowsort
SELECT + + 37 * + 96 AS col0 FROM tab0 AS cor0
----
3552
3552
3552

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT col1 DIV - - col1 + + col2 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-4032
SELECT col1 / - - col1 + + col2 FROM tab1 AS cor0
----
60
69
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4033
SELECT - - 16 DIV + + MAX( DISTINCT col0 ) FROM tab0 cor0 WHERE NOT col2 < - col0 + + col2 - col2 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT - - 16 / + + MAX ( DISTINCT col0 ) FROM tab0 cor0 WHERE NOT col2 < - col0 + + col2 - col2 * + col0
----
0

query I rowsort
SELECT DISTINCT - col0 * + - col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT + 80 DIV COUNT( * ) * - - MIN( ALL + + col0 ) FROM tab1 WHERE NOT + col1 IS NULL
----
1326

skipif mysql # not compatible
query I rowsort label-4035
SELECT + 80 / COUNT ( * ) * - - MIN ( ALL + + col0 ) FROM tab1 WHERE NOT + col1 IS NULL
----
1326

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 68 * + 70 = - col0 * + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4037
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4037
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT - ( - 20 ) * + + ( - MIN( - + col1 ) ) FROM tab2 AS cor0
----
1540

skipif mysql # not compatible
query I rowsort label-4038
SELECT - ( - 20 ) * + + ( - MIN ( - + col1 ) ) FROM tab2 AS cor0
----
1540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 68 AS col2 FROM tab0 AS cor0
----
-1
68
-21
68
-81
68

query II rowsort
SELECT + 71 AS col2, - 94 AS col1 FROM tab2 AS cor0
----
71
-94
71
-94
71
-94

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - - MIN( - - 27 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4042
SELECT - - MIN ( - - 27 ) FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL + COUNT( * ) - - + 20 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL + COUNT ( * ) - - + 20 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
23

query I rowsort
SELECT ALL + col0 * + col0 / + col2 * - 43 + + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + - ( - col1 ) + + col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + 22 + col2 + 94 + 96 + - - col2 FROM tab2 AS cor0
----
258
292
328

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE NULL >= ( + - col2 ) / - col1 + + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4048
SELECT - CAST( NULL AS SIGNED ) + + SUM( ALL 4 ) col2 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT + col2 / - - CAST( NULL AS SIGNED ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ( col1 ) * - col1 + col2 AS col0 FROM tab2 AS cor0
----
-2578
-4431
-5889

query I rowsort
SELECT DISTINCT + 14 + + col2 AS col1 FROM tab0 AS cor0
----
113
24
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND - 34
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4053
SELECT 24 + COUNT( ALL col1 ) AS col1, 61 * + - COUNT( * ) AS col1 FROM tab0
----
27
-183

skipif mysql # not compatible
query II rowsort label-4053
SELECT 24 + COUNT ( ALL col1 ) AS col1, 61 * + - COUNT ( * ) AS col1 FROM tab0
----
27
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT + - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4054
SELECT + - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE 34 - - + col1 - + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + - 27 AS col0 FROM tab0
----
-2349
-2619
-405

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + - col1 <= - col0 * + 16 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT + - COUNT( * ), COUNT( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4058
SELECT + - COUNT ( * ), COUNT ( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT - + 16 AS col2 FROM tab2 cor0
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-4060
SELECT DISTINCT + 3 - - col1, - col1 DIV col1 AS col0 FROM tab1
----
17
-1
50
-1
8
-1

skipif mysql # not compatible
query II rowsort label-4060
SELECT DISTINCT + 3 - - col1, - col1 / col1 AS col0 FROM tab1
----
17
-1
50
-1
8
-1

query I rowsort
SELECT ALL + 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT + 16 * - ( - - col2 ) >= ( - - col0 )
----
-51
-85
-91

query I rowsort
SELECT + col0 * + 14 AS col1 FROM tab0 cor0
----
1218
1358
210

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT SUM( ALL 31 ) AS col1 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4065
SELECT SUM ( ALL 31 ) AS col1 FROM tab1 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col1 FROM tab1 AS cor0 WHERE NOT + ( 87 ) + - + 10 + + + 39 > NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 14 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT DISTINCT 58 DIV col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT 58 / col0 FROM tab1 cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - 20
----

query I rowsort
SELECT DISTINCT - ( + ( + 99 ) ) AS col1 FROM tab2
----
-99

query II rowsort
SELECT + col0, - 17 * col2 * - + 70 FROM tab1
----
51
114240
85
70210
91
80920

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - MAX( DISTINCT - 59 ) * - COUNT( * ) FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-4073
SELECT - MAX ( DISTINCT - 59 ) * - COUNT ( * ) FROM tab0
----
-177

query II rowsort
SELECT - col1 AS col1, - col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

query II rowsort
SELECT ALL + - col2 AS col0, - 21 AS col1 FROM tab2 AS cor0
----
-23
-21
-40
-21
-58
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + COUNT( 35 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4076
SELECT + COUNT ( 35 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL + - MIN( - 63 ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + - MIN ( - 63 ) FROM tab1 AS cor0
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4078
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) = + - 91
----

skipif mysql # not compatible
query III rowsort label-4078
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) = + - 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-77
2
32

query I rowsort
SELECT ALL + - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query II rowsort
SELECT + 62, + 1 * - - col0 AS col0 FROM tab1
----
62
51
62
85
62
91

onlyif mysql # DIV for integer division: 
query II rowsort label-4082
SELECT col0 DIV 21 * + 93 * + - col0 AS col1, - col0 AS col2 FROM tab1
----
-31620
-85
-33852
-91
-9486
-51

skipif mysql # not compatible
query II rowsort label-4082
SELECT col0 / 21 * + 93 * + - col0 AS col1, - col0 AS col2 FROM tab1
----
-31620
-85
-33852
-91
-9486
-51

query I rowsort
SELECT ( + 79 ) FROM tab0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + COUNT( + + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4084
SELECT + COUNT ( + + col2 ) AS col0 FROM tab1
----
3

query II rowsort
SELECT ALL - + col1 / + 74, + col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - ( - SUM( DISTINCT - col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4086
SELECT - ( - SUM ( DISTINCT - col0 ) ) FROM tab0
----
-199

query II rowsort
SELECT DISTINCT 29, - 39 AS col0 FROM tab0 AS cor0
----
29
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT DISTINCT 65 + - col2 + + + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + + col0 + 57 * 15 + - - col0 * + 32 AS col0 FROM tab0 AS cor0
----
1350
3726
4056

query I rowsort
SELECT DISTINCT + col0 * - col0 + + - 94 + + - 16 * - 30 + + + col0 * + - col2 AS col1 FROM tab2 cor0
----
-2788
-6270
-9589

query I rowsort
SELECT + 82 FROM tab2 AS cor0 WHERE + col1 <> + col2
----
82
82
82

query II rowsort
SELECT ALL - col0 + + 82, col2 FROM tab1 AS cor0
----
-3
59
-9
68
31
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 97 * - col2 + + 11 - - + 86 + - - col0 col2 FROM tab1 AS cor0
----
-5541
-6408
-9164

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4095
SELECT DISTINCT col1 * - CAST( NULL AS DECIMAL ) + - CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT - 64 * - 78 * + col1 + - col2 AS col2 FROM tab1
----
234556
24901
69792

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT - ( SUM( DISTINCT - 8 ) ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - ( SUM ( DISTINCT - 8 ) ) FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT COUNT( * ) * + 61 + - COUNT( * ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-4098
SELECT COUNT ( * ) * + 61 + - COUNT ( * ) FROM tab2
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4099
SELECT COUNT( * ) DIV - COUNT( ALL col2 ) + - + 55 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-4099
SELECT COUNT ( * ) / - COUNT ( ALL col2 ) + - + 55 FROM tab0
----
-56

query I rowsort
SELECT ALL ( + - 20 ) FROM tab1
----
-20
-20
-20

query I rowsort
SELECT - 35 * + ( + - 6 ) + - 43 AS col0 FROM tab0
----
167
167
167

query I rowsort
SELECT col1 + - 66 AS col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( 0 ) * + col1, + col2 + + col2, + + 47 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4105
SELECT ALL - 32 + + col2 + - col1 DIV col1 FROM tab2 cor0
----
-10
25
7

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - 32 + + col2 + - col1 / col1 FROM tab2 cor0
----
-10
25
7

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NULL <> + 74 / - 8
----

query II rowsort
SELECT ALL + col1, 96 AS col2 FROM tab2
----
51
96
67
96
77
96

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4108
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( ( NULL ) <> - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-4108
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( ( NULL ) <> - CAST ( NULL AS INTEGER ) ) )
----

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - col2, ( - 86 ) AS col1 FROM tab2 AS cor0
----
23
-86
40
-86
58
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT - - 98 DIV col0 DIV 90 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT - - 98 / col0 / 90 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL - COUNT( 49 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - COUNT ( 49 ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col0 AS col2, 18 AS col0 FROM tab2 AS cor0
----
46
18
64
18
75
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4115
SELECT ALL - + 27 AS col2, + col2 + - col2 + + CAST( NULL AS SIGNED ) + col2 / + - col0 + + col0 + - 32 * + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-27
NULL
-27
NULL
-27
NULL

skipif mysql # not compatible
query II rowsort label-4115
SELECT ALL - + 27 AS col2, + col2 + - col2 + + CAST ( NULL AS INTEGER ) + col2 / + - col0 + + col0 + - 32 * + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-27
NULL
-27
NULL
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 3 * - 68 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 3 * - 68 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 = 45 * 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT - COUNT( DISTINCT - 18 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT - COUNT ( DISTINCT - 18 ) AS col0 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4119
SELECT DISTINCT + col1 DIV col1, col2 - - + 56 AS col0 FROM tab1
----
1
115
1
124
1
152

skipif mysql # not compatible
query II rowsort label-4119
SELECT DISTINCT + col1 / col1, col2 - - + 56 AS col0 FROM tab1
----
1
115
1
124
1
152

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 41 / - 29 * col0 IN ( + col0, 21, - 41, + 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT + SUM( + + 4 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT + SUM ( + + 4 ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT + + 90 * col2 + col0 AS col2 FROM tab0 AS cor0
----
4245
9007
987

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 - col1 NOT BETWEEN col1 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 66 * - - col0 + - + col0 + + 80 FROM tab0 AS cor0
----
-5749
-6419
-925

query II rowsort
SELECT ALL + ( - col2 ), - col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT DISTINCT - 24 / - col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT - col1 + - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 93 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 27 + + + col0 FROM tab2 cor0
----
102
73
91

query I rowsort
SELECT ALL - ( col2 ) * + 87 + + 9 FROM tab1
----
-5124
-5907
-8343

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 58 / - col2 + - 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL SUM( 46 ) * SUM( - - col2 ) AS col0 FROM tab2
----
16698

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL SUM ( 46 ) * SUM ( - - col2 ) AS col0 FROM tab2
----
16698

query I rowsort
SELECT DISTINCT 26 - + col0 - 13 AS col0 FROM tab2
----
-33
-51
-62

query I rowsort
SELECT DISTINCT col2 * + col2 * - - 51 FROM tab1
----
177531
235824
470016

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT 32 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT 32 / + - col2 FROM tab1
----
0
0
0

query II rowsort
SELECT - 77 - + - 58 - + col1 * + - col0, 89 + - ( - + 67 ) + - + 22 AS col2 FROM tab2 AS cor0
----
2327
134
4909
134
5006
134

query I rowsort
SELECT ALL 56 * - col2 * - 70 AS col1 FROM tab2 AS cor0 WHERE NOT - 79 * col0 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT - COUNT( * ) + + + 32 AS col2 FROM tab0 cor0
----
29

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT - COUNT ( * ) + + + 32 AS col2 FROM tab0 cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4140
SELECT ALL 6 * col0 DIV - 62 + - ( + - col0 ) - 14 AS col0 FROM tab0 AS cor0
----
0
65
74

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL 6 * col0 / - 62 + - ( + - col0 ) - 14 AS col0 FROM tab0 AS cor0
----
0
65
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT DISTINCT + col2 DIV + 58 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT + col2 / + 58 AS col1 FROM tab1
----
1

query I rowsort
SELECT col1 * - + 12 AS col2 FROM tab2
----
-612
-804
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT + COUNT( - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + COUNT ( - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 * - col0 > + col0 )
----
15
81
47
87
21
10

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

query I rowsort
SELECT ALL + 91 + + 13 AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN - col2 * + col1 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT + + 92 DIV + 35 AS col1 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4147
SELECT + + 92 / + 35 AS col1 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT ALL col2 * - 42 AS col0 FROM tab0
----
-1974
-4158
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT MAX( DISTINCT - - col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4149
SELECT MAX ( DISTINCT - - col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT - col1 * + col2 * col2 FROM tab1
----
-129024
-17405
-217328

query II rowsort
SELECT 72 AS col2, + 50 + + 78 FROM tab2
----
72
128
72
128
72
128

query I rowsort
SELECT - ( - 70 ) / col2 * - + 30 FROM tab2 AS cor0 WHERE NOT col1 - ( - + 97 ) + col0 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT + 11 * + COUNT( - + col2 ) + - - COUNT( * ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + 11 * + COUNT ( - + col2 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
36

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

query I rowsort
SELECT - 81 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT - 66 + - SUM( + col2 ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-222

skipif mysql # not compatible
query I rowsort label-4157
SELECT - 66 + - SUM ( + col2 ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT - CAST( + ( col2 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4159
SELECT - CAST ( + ( col2 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + col2, - col1 + + + 71 col0 FROM tab0 cor0
----
198
70
20
50
94
-10

query I rowsort
SELECT DISTINCT - 17 + + col0 + col0 AS col2 FROM tab0 AS cor0
----
13
157
177

query I rowsort
SELECT + - ( col0 ) - col2 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query II rowsort label-4163
SELECT col0 + + col0 * + ( + 74 ), - ( + 51 ) DIV + 44 + - col2 AS col2 FROM tab1 AS cor0
----
3825
-97
6375
-60
6825
-69

skipif mysql # not compatible
query II rowsort label-4163
SELECT col0 + + col0 * + ( + 74 ), - ( + 51 ) / + 44 + - col2 AS col2 FROM tab1 AS cor0
----
3825
-97
6375
-60
6825
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4164
SELECT COUNT( * ) + - - COUNT( * ) * COUNT( * ) col2, + MAX( DISTINCT - 86 ) AS col1 FROM tab1
----
12
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4164
SELECT COUNT ( * ) + - - COUNT ( * ) * COUNT ( * ) col2, + MAX ( DISTINCT - 86 ) AS col1 FROM tab1
----
12
-86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = 8 + + ( + col2 ) - - - col0 * - + col0 AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) * + + col0 * + - col2 FROM tab0
----
10575
75690
931491

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4167
SELECT ALL col0 - + - CAST( - + col1 AS SIGNED ), 59 AS col0 FROM tab0
----
-66
59
66
59
96
59

skipif mysql # not compatible
query II rowsort label-4167
SELECT ALL col0 - + - CAST ( - + col1 AS INTEGER ), 59 AS col0 FROM tab0
----
-66
59
66
59
96
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT - col2 + col0 + + CAST( col0 AS SIGNED ) FROM tab0
----
-17
164
95

skipif mysql # not compatible
query I rowsort label-4168
SELECT - col2 + col0 + + CAST ( col0 AS INTEGER ) FROM tab0
----
-17
164
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT - col1 FROM tab1 WHERE + + col1 * + CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4169
SELECT - col1 FROM tab1 WHERE + + col1 * + CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 69 * - + col1 FROM tab1
----
3243
345
966

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT - MAX( + 84 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - MAX ( + 84 ) FROM tab2 AS cor0
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4172
SELECT CAST( NULL AS DECIMAL ) AS col1, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-4172
SELECT CAST ( NULL AS REAL ) AS col1, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + ( + col0 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4174
SELECT ALL + col0 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE ( NOT + + 74 >= + ( - 93 ) )
----

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + col0 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE ( NOT + + 74 >= + ( - 93 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4175
SELECT 42, + 84 * - - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
42
NULL
42
NULL
42
NULL

skipif mysql # not compatible
query II rowsort label-4175
SELECT 42, + 84 * - - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
42
NULL
42
NULL
42
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 24 col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4177
SELECT - col2 * + col2 - + ( + - col0 ) AS col1, col0 DIV + + col0 AS col0 FROM tab1 cor0
----
-3396
1
-4533
1
-9165
1

skipif mysql # not compatible
query II rowsort label-4177
SELECT - col2 * + col2 - + ( + - col0 ) AS col1, col0 / + + col0 AS col0 FROM tab1 cor0
----
-3396
1
-4533
1
-9165
1

query II rowsort
SELECT - col2 AS col0, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4179
SELECT + CAST( NULL AS DECIMAL ) * - - col1 col0, - col0 FROM tab2 cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4179
SELECT + CAST ( NULL AS REAL ) * - - col1 col0, - col0 FROM tab2 cor0
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT ALL - 33 * + col0 FROM tab2 AS cor0
----
-1518
-2112
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT - COUNT( * ) * COUNT( * ) - 11 AS col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4181
SELECT - COUNT ( * ) * COUNT ( * ) - 11 AS col0 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT DISTINCT col1 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100
128
31

query II rowsort
SELECT + 92 AS col1, + col0 AS col1 FROM tab2 AS cor0
----
92
46
92
64
92
75

query I rowsort
SELECT DISTINCT col0 * + ( + + col0 ) FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - 87 * + - MAX( ALL + 65 ) FROM tab1 AS cor0
----
5655

skipif mysql # not compatible
query I rowsort label-4185
SELECT - 87 * + - MAX ( ALL + 65 ) FROM tab1 AS cor0
----
5655

query I rowsort
SELECT ALL + 24 * + col0 * + 91 AS col2 FROM tab1 AS cor0
----
111384
185640
198744

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4187
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT - - SUM( ALL + ( + col0 ) ) * - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
2043

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - - SUM ( ALL + ( + col0 ) ) * - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
2043

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT ( NULL >= NULL )
----

query II rowsort
SELECT ( 13 ) AS col2, col1 FROM tab2
----
13
51
13
67
13
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - ( + col2 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT 13 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4193
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT 13 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - + col2 + + + col0 AS col1 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4195
SELECT DISTINCT - - COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT - - COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - 88 + + COUNT( * ) FROM tab2 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4197
SELECT - 88 + + COUNT ( * ) FROM tab2 cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT - SUM( ALL - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - SUM ( ALL - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT + col0 + CAST( + + col1 AS SIGNED ) + + - col2 + 87 AS col2 FROM tab2 AS cor0
----
161
171
188

skipif mysql # not compatible
query I rowsort label-4199
SELECT + col0 + CAST ( + + col1 AS INTEGER ) + + - col2 + 87 AS col2 FROM tab2 AS cor0
----
161
171
188

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col1 * col0 <> NULL
----

query I rowsort
SELECT - - 74 * - col1 * - - 22 * + col1 - - 36 + 31 + - + col2 FROM tab0 AS cor0
----
-10681288
-1660
-717891

query I rowsort
SELECT DISTINCT ( - + 84 ) + col2 + col1 - + - 19 + 83 - + col1 FROM tab2 AS cor0
----
41
58
76

query I rowsort
SELECT ALL 83 - - col1 AS col1 FROM tab1 cor0
----
130
88
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 48 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT DISTINCT + CAST( + 84 AS SIGNED ) - - ( - - col1 ) * 24 FROM tab0 AS cor0
----
108
2028
588

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + CAST ( + 84 AS INTEGER ) - - ( - - col1 ) * 24 FROM tab0 AS cor0
----
108
2028
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT + col0 + col1 col2 FROM tab2 cor0 WHERE ( + col0 ) BETWEEN col0 * - CAST( - + 19 AS SIGNED ) AND 84 + - 15
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4206
SELECT + col0 + col1 col2 FROM tab2 cor0 WHERE ( + col0 ) BETWEEN col0 * - CAST ( - + 19 AS INTEGER ) AND 84 + - 15
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 42 IS NULL
----

query I rowsort
SELECT - - col2 - col1 FROM tab2 WHERE + 97 * + + col2 IS NOT NULL
----
-28
-37
-9

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col1, - col2 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT - col1 - - + col2 AS col1 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4211
SELECT 41 * + 16 - MIN( ALL - col1 ) + MIN( + col2 ) DIV + + ( - COUNT( * ) ) AS col2 FROM tab1
----
684

skipif mysql # not compatible
query I rowsort label-4211
SELECT 41 * + 16 - MIN ( ALL - col1 ) + MIN ( + col2 ) / + + ( - COUNT ( * ) ) AS col2 FROM tab1
----
684

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT - 42 DIV + + 83 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4212
SELECT - 42 / + + 83 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT - ( + COUNT( * ) ) * + - COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4213
SELECT - ( + COUNT ( * ) ) * + - COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL + COUNT( DISTINCT + 35 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL + COUNT ( DISTINCT + 35 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT - - COUNT( * ) * 97 col0 FROM tab0 cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4216
SELECT DISTINCT - - COUNT ( * ) * 97 col0 FROM tab0 cor0
----
291

query I rowsort
SELECT DISTINCT - - col0 * - 82 AS col2 FROM tab0 AS cor0
----
-1230
-7134
-7954

query I rowsort
SELECT - - col1 * - 47 AS col1 FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4219
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 + - + CAST( NULL AS SIGNED ) * + + col2 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-4219
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 + - + CAST ( NULL AS INTEGER ) * + + col2 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - MIN( ALL + col2 ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4220
SELECT - MIN ( ALL + col2 ) col1 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT DISTINCT + 2 * col1 * - ( + CAST( col0 AS SIGNED ) ) * - 1 FROM tab1
----
1428
850
8554

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT + 2 * col1 * - ( + CAST ( col0 AS INTEGER ) ) * - 1 FROM tab1
----
1428
850
8554

query I rowsort
SELECT + col2 * - - 2 FROM tab1
----
118
136
192

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

query II rowsort
SELECT ALL - col0, - 15 AS col2 FROM tab1
----
-51
-15
-85
-15
-91
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT + 13 * + + MIN( DISTINCT + col0 ) FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-4225
SELECT + 13 * + + MIN ( DISTINCT + col0 ) FROM tab0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT SUM( ALL + - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT SUM ( ALL + - col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT + - 74 * + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-222

skipif mysql # not compatible
query I rowsort label-4227
SELECT + - 74 * + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4228
SELECT 53 DIV COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-4228
SELECT 53 / COUNT ( * ) FROM tab1
----
17

query I rowsort
SELECT 76 + - 69 * + - col1 AS col1 FROM tab0
----
145
1525
5665

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL MAX( + 89 ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL MAX ( + 89 ) FROM tab2
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, - col0 - col1 col1 FROM tab1
----
14
-65
47
-138
5
-90

query I rowsort
SELECT ALL - - 13 FROM tab2 AS cor0 WHERE NULL <> - 64 + col0
----

query I rowsort
SELECT ALL + 61 + - + 73 * - + col1 AS col0 FROM tab2 AS cor0
----
3784
4952
5682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 21 col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT DISTINCT + ( - CAST( col1 AS SIGNED ) ) col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4235
SELECT DISTINCT + ( - CAST ( col1 AS INTEGER ) ) col1 FROM tab1
----
-14
-47
-5

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT ( NULL ) = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT DISTINCT CAST( 64 AS SIGNED ) + + + col1 * - col1 AS col0 FROM tab1 cor0
----
-132
-2145
39

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT CAST ( 64 AS INTEGER ) + + + col1 * - col1 AS col0 FROM tab1 cor0
----
-132
-2145
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT DISTINCT - - SUM( ALL + 83 ) + - COUNT( * ) FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT - - SUM ( ALL + 83 ) + - COUNT ( * ) FROM tab2 AS cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT + MAX( + col0 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-4240
SELECT + MAX ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
91

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * - - 49 IS NULL
----

query II rowsort
SELECT - col0 AS col1, + col1 - - + col1 AS col0 FROM tab1
----
-51
28
-85
10
-91
94

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
23
40
58

query I rowsort
SELECT 99 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query II rowsort
SELECT ALL - + 22 AS col1, + col2 AS col0 FROM tab1 AS cor0
----
-22
59
-22
68
-22
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 + - - col0 / - - col2 NOT BETWEEN ( 57 ) AND 79
----
64
77
40
75
67
58

query I rowsort
SELECT ALL - 51 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - 38 * 94 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT + col2 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4250
SELECT DISTINCT * FROM tab1 WHERE NOT col1 >= ( CAST( NULL AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-4250
SELECT DISTINCT * FROM tab1 WHERE NOT col1 >= ( CAST ( NULL AS INTEGER ) * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 41 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + 66 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT + col0 AS col1 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) < ( NULL )
----

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

query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT col1 * - 22 FROM tab0
----
-1782
-22
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT DISTINCT - col0 + col2 DIV - 98 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - col0 + col2 / - 98 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT SUM( DISTINCT col0 ) * - 45 FROM tab1
----
-10215

skipif mysql # not compatible
query I rowsort label-4257
SELECT SUM ( DISTINCT col0 ) * - 45 FROM tab1
----
-10215

query III rowsort
SELECT * FROM tab2 WHERE 98 * col2 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 8 + 5 * - 86 FROM tab0
----
-422

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 < 42 + - 87
----

query I rowsort
SELECT - 36 + col1 FROM tab2
----
15
31
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT DISTINCT COUNT( ALL + 0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT COUNT ( ALL + 0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT + 26 + + MIN( ALL col2 ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-4263
SELECT + 26 + + MIN ( ALL col2 ) FROM tab1
----
85

query III rowsort
SELECT * FROM tab0 WHERE col1 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4265
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col2 + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col2 + col0 <= NULL
----
NULL

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

query I rowsort
SELECT 3 + col2 FROM tab2
----
26
43
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 73 * + col1 BETWEEN col1 AND ( 43 )
----

query I rowsort
SELECT - 6 AS col0 FROM tab2 AS cor0 WHERE ( col2 - col2 / + col0 ) IS NULL
----

query I rowsort
SELECT ALL + 31 + - 57 AS col2 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT - COUNT( * ) * 89 AS col2 FROM tab0 WHERE NULL IS NULL
----
-267

skipif mysql # not compatible
query I rowsort label-4271
SELECT - COUNT ( * ) * 89 AS col2 FROM tab0 WHERE NULL IS NULL
----
-267

query I rowsort
SELECT DISTINCT + 30 * + col1 AS col1 FROM tab1
----
1410
150
420

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 * - col2 )
----

query I rowsort
SELECT ALL - col0 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( 40 ) AND 62
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IN ( - col2 + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4278
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE ( col1 + + col2 / col0 ) IN ( 30 / - 37 )
----

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE ( col1 + + col2 / col0 ) IN ( 30 / - 37 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT + CAST( + 58 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
58
58
58

skipif mysql # not compatible
query I rowsort label-4279
SELECT + CAST ( + 58 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
58
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT DISTINCT + + 51 DIV + 77 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + + 51 / + 77 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL NOT BETWEEN 12 AND - col0
----

query I rowsort
SELECT DISTINCT 8 * - + 10 FROM tab1
----
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 - - col0 * + col1 ) IS NULL
----

query I rowsort
SELECT 3 - - 48 * 48 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
2307
2307
2307

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4286
SELECT + col1 * col1 + col2 FROM tab0 WHERE NOT ( col0 ) >= ( col0 * - 12 + + CAST( + col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-4286
SELECT + col1 * col1 + col2 FROM tab0 WHERE NOT ( col0 ) >= ( col0 * - 12 + + CAST ( + col2 AS REAL ) )
----

query I rowsort
SELECT + 27 * col0 AS col0 FROM tab2
----
1242
1728
2025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 * - col1 col2 FROM tab0 WHERE ( 28 * col1 + - 13 ) IS NOT NULL
----
-1782
-22
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL MIN( ALL - + col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL MIN ( ALL - + col2 ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL COUNT( + 99 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL COUNT ( + 99 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL 81 * - COUNT( * ) AS col2 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL 81 * - COUNT ( * ) AS col2 FROM tab2
----
-243

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN col1 / + 23 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT 44 * COUNT( * ) * COUNT( * ) FROM tab2
----
396

skipif mysql # not compatible
query I rowsort label-4293
SELECT 44 * COUNT ( * ) * COUNT ( * ) FROM tab2
----
396

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT DISTINCT - + col1 DIV - col2 FROM tab1 AS cor0
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 54 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( ( + col2 ) ) FROM tab1 WHERE NOT ( NOT + col2 <> NULL )
----

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

query II rowsort
SELECT - 44 AS col2, 76 FROM tab1
----
-44
76
-44
76
-44
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT MAX( ALL 61 ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-4299
SELECT MAX ( ALL 61 ) AS col1 FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT - ( + COUNT( * ) ) FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4300
SELECT - ( + COUNT ( * ) ) FROM tab1, tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4301
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4301
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE 9 * - + col2 NOT BETWEEN 14 + + 79 * col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-4303
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 9 * - + col2 NOT BETWEEN 14 + + 79 * col2 AND NULL
----
3

query II rowsort
SELECT ALL col0, col0 + col1 FROM tab0 AS cor0
----
15
96
87
108
97
98

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

query I rowsort
SELECT DISTINCT - col0 + - col0 - - 64 + col0 AS col1 FROM tab0 AS cor0
----
-23
-33
49

query II rowsort
SELECT DISTINCT - col0 AS col1, + 33 AS col0 FROM tab2 AS cor0
----
-46
33
-64
33
-75
33

query II rowsort
SELECT - + col1 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT DISTINCT MAX( 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT MAX ( 71 ) FROM tab2 AS cor0
----
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT 28 + + - CAST( + col1 AS SIGNED ) FROM tab0
----
-53
27
7

skipif mysql # not compatible
query I rowsort label-4311
SELECT 28 + + - CAST ( + col1 AS INTEGER ) FROM tab0
----
-53
27
7

query I rowsort
SELECT + col2 + - + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL + MIN( + + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL + MIN ( + + col0 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT + 33 + + + ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT + 33 + + + ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT SUM( DISTINCT - + 77 ) AS col1 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT SUM ( DISTINCT - + 77 ) AS col1 FROM tab1
----
-77

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( + 94 ) BETWEEN ( + col2 + - 83 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL + 16 * + + ( - COUNT( * ) ) - - 14 * 10 AS col2 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + 16 * + + ( - COUNT ( * ) ) - - 14 * 10 AS col2 FROM tab0 AS cor0
----
92

query I rowsort
SELECT ALL col0 * - + col2 - col0 AS col1 FROM tab0 AS cor0
----
-720
-957
-9700

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

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE 76 - 36 NOT BETWEEN + + col1 * 8 AND NULL
----
21
81

query I rowsort
SELECT 78 FROM tab1 AS cor0 WHERE - 94 - + col1 * + 30 * 14 IS NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( NULL ) >= ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( + 94 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4324
SELECT - ( - + 27 ) / col2 * CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4325
SELECT ALL - col0, col2 / - + 44 * + 81 - CAST( col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query II rowsort label-4325
SELECT ALL - col0, col2 / - + 44 * + 81 - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

query II rowsort
SELECT ALL - - col1, - 96 AS col0 FROM tab2 AS cor0
----
51
-96
67
-96
77
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT + ( - + SUM( + col1 ) ) * - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4328
SELECT + ( - + SUM ( + col1 ) ) * - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
195

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
82

query I rowsort
SELECT ALL 91 * + col1 FROM tab1 AS cor0
----
1274
4277
455

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT 8 DIV + + 71 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4331
SELECT 8 / + + 71 + col2 FROM tab1 AS cor0
----
59
68
96

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + 27 + + col0 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT DISTINCT 5 * COUNT( * ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT 5 * COUNT ( * ) AS col2 FROM tab0
----
15

query I rowsort
SELECT ALL + 24 * + - 97 FROM tab1
----
-2328
-2328
-2328

query I rowsort
SELECT DISTINCT - col2 * + col2 * + - col0 AS col2 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT DISTINCT - col2 * - - ( + + 32 ) FROM tab2
----
-1280
-1856
-736

query I rowsort
SELECT ALL - - col1 * - 19 - + col0 AS col1 FROM tab1 WHERE ( - 51 ) > + ( + + col2 )
----

query I rowsort
SELECT - 78 * + - col1 FROM tab0
----
1638
6318
78

query I rowsort
SELECT ALL + - col2 + 74 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-25
27
64

query I rowsort
SELECT + 61 AS col0 FROM tab0 cor0 WHERE NOT - 70 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4342
SELECT + col0 DIV - 96, + 54 AS col2 FROM tab1
----
0
54
0
54
0
54

skipif mysql # not compatible
query II rowsort label-4342
SELECT + col0 / - 96, + 54 AS col2 FROM tab1
----
0
54
0
54
0
54

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT - 62 NOT IN ( + 15 - - 74, - 78 / + + col0 + col0 )
----

query I rowsort
SELECT DISTINCT - 78 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4345
SELECT + - 74, + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
-74
0

skipif mysql # not compatible
query II rowsort label-4345
SELECT + - 74, + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
-74
0

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 cor0 WHERE ( NOT - + col0 * + + col1 < + col0 * - + 57 )
----
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - - ( - 3 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT - + col0 * - 31 + 13 DIV - + col1 * - col1 + - 49 * - - col0 AS col1 FROM tab2 AS cor0
----
-1152
-1350
-828

skipif mysql # not compatible
query I rowsort label-4348
SELECT - + col0 * - 31 + 13 / - + col1 * - col1 + - 49 * - - col0 AS col1 FROM tab2 AS cor0
----
-1152
-1350
-828

query I rowsort
SELECT + col2 + ( - 25 ) + - col0 * - col1 FROM tab0 AS cor0
----
1237
171
1812

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 33 IS NULL
----

query I rowsort
SELECT ALL + 20 + - - col1 + - 70 + col1 AS col2 FROM tab1 AS cor0
----
-22
-40
44

query I rowsort
SELECT col1 * col1 + - col0 * 79 + + col0 + 84 AS col1 FROM tab1 AS cor0
----
-3698
-4805
-6521

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4353
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + + col0 BETWEEN ( - col1 + + CAST( NULL AS SIGNED ) ) AND col1
----

skipif mysql # not compatible
query III rowsort label-4353
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + + col0 BETWEEN ( - col1 + + CAST ( NULL AS INTEGER ) ) AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4354
SELECT + - col1 + - + 14 DIV col0 * - col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4354
SELECT + - col1 + - + 14 / col0 * - col2 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * 99 / - - ( 81 ) * col2 * + 77 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4357
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 29 AND + - col1 * - + 78
----

query I rowsort
SELECT ALL col2 + - 2 AS col1 FROM tab2
----
21
38
56

query I rowsort
SELECT 76 + col2 + 14 * 96 AS col2 FROM tab2 WHERE + ( - - 16 ) NOT BETWEEN - 59 AND NULL
----

query II rowsort
SELECT ALL - 56 AS col1, + col1 * col1 FROM tab0
----
-56
1
-56
441
-56
6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT + COUNT( * ) DIV COUNT( * ) * - COUNT( * ) * 14 AS col2 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-4362
SELECT + COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) * 14 AS col2 FROM tab1
----
-42

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - + ( - col1 ) * - - 48, + col2 + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 <= ( - - col2 ) OR NOT - 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + col0 + - 53 AS col2 FROM tab0 AS cor0
----
-758
-923
-9656

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + + ( + 70 )
----

query I rowsort
SELECT 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - - 87 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT + col0 + + + 48 FROM tab1 WHERE NOT - ( - 60 ) = - - col1
----
133
139
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4370
SELECT + + col0 DIV + 94 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4370
SELECT + + col0 / + 94 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab0 AS cor0 WHERE NOT ( - ( - 58 ) ) IS NULL
----
79

query I rowsort
SELECT 44 + - 57 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * 97 * - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT DISTINCT + 67 * + col1 + col0 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT - - col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col0 * + 75 FROM tab0
----
-1125
-6525
-7275

query I rowsort
SELECT - col2 + + 55 FROM tab0 WHERE NOT - col2 IS NULL
----
-44
45
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT + 37 * - ( + COUNT( * ) ) * - + COUNT( * ) FROM tab2
----
333

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT + 37 * - ( + COUNT ( * ) ) * - + COUNT ( * ) FROM tab2
----
333

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL - MAX( ALL - 22 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - MAX ( ALL - 22 ) FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT MAX( ALL + 16 ) AS col0 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4380
SELECT MAX ( ALL + 16 ) AS col0 FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT + 72 * - - MAX( col1 ) - 43 FROM tab1 AS cor0
----
3341

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT + 72 * - - MAX ( col1 ) - 43 FROM tab1 AS cor0
----
3341

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > col2
----

query I rowsort
SELECT 41 + - ( + col2 ) FROM tab2
----
-17
1
18

query I rowsort
SELECT 90 * - 91 AS col2 FROM tab1
----
-8190
-8190
-8190

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= col0
----

query I rowsort
SELECT DISTINCT 61 + + - 79 FROM tab2 WHERE 48 IS NOT NULL
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4387
SELECT ALL COUNT( col0 ) + + - SUM( - col1 ) DIV 24 col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4387
SELECT ALL COUNT ( col0 ) + + - SUM ( - col1 ) / 24 col0 FROM tab1 AS cor0
----
5

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - 48 * - col2 * + ( - + col2 ) * + - 15 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT - COUNT( + 8 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4390
SELECT - COUNT ( + 8 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col0 + - 57 * + col0 FROM tab0 AS cor0
----
-4872
-5432
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT DISTINCT + col0 DIV 75 FROM tab0 AS cor0
----
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT - - COUNT( * ) + 90 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4393
SELECT - - COUNT ( * ) + 90 FROM tab2 AS cor0
----
93

query I rowsort
SELECT ALL + col1 + + 73 AS col0 FROM tab1
----
120
78
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT DISTINCT - 30 - - col2 DIV - + 99 FROM tab0
----
-30
-31

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT - 30 - - col2 / - + 99 FROM tab0
----
-30
-31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 52 + - 66 = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4398
SELECT CAST( col1 AS SIGNED ) * - col2 DIV + col2 + + col2 AS col1 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-4398
SELECT CAST ( col1 AS INTEGER ) * - col2 / + col2 + + col2 AS col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT + col1 + + - col2 AS col2 FROM tab0
----
-98
11
34

query II rowsort
SELECT DISTINCT - - 0 + + col1 AS col2, col1 FROM tab1 cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----

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

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

query II rowsort
SELECT col2 AS col2, 86 * + col2 FROM tab1
----
59
5074
68
5848
96
8256

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT + col0 DIV col1 + 30 DIV 24 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4407
SELECT + col0 / col1 + 30 / 24 AS col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4408
SELECT ALL - ( - col1 ) * col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 5 * col1 IS NOT NULL
----

query II rowsort
SELECT 90, - col1 AS col1 FROM tab2 AS cor0
----
90
-51
90
-67
90
-77

query II rowsort
SELECT ALL + col0, 37 - col0 FROM tab1 AS cor0
----
51
-14
85
-48
91
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4413
SELECT ALL - 97 * + col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-4462
NULL
-6208
NULL
-7275
NULL

skipif mysql # not compatible
query II rowsort label-4413
SELECT ALL - 97 * + col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-4462
NULL
-6208
NULL
-7275
NULL

query I rowsort
SELECT DISTINCT - 30 + - col1 AS col1 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT ALL 99 + 39 AS col1 FROM tab0 WHERE NULL NOT IN ( + col0 + - col0, 37, - + col1 + - col0, 65 - + 52 / - col0 + + col1 * - - 47 / - + col0 + + col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL 99 + 39 AS col1 FROM tab0 WHERE NULL NOT IN ( + col0 + - col0, 37, - + col1 + - col0, 65 - + 52 / - col0 + + col1 * - - 47 / - + col0 + + col1 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT ALL 79 + - 97 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL 79 + - 97 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + + SUM( - col1 ) * + 15 col2 FROM tab1 AS cor0
----
-990

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4417
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + + SUM ( - col1 ) * + 15 col2 FROM tab1 AS cor0
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL + 66 * + 55 - COUNT( * ) FROM tab0, tab0 AS cor0
----
3621

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + 66 * + 55 - COUNT ( * ) FROM tab0, tab0 AS cor0
----
3621

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL + MAX( DISTINCT 47 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + MAX ( DISTINCT 47 ) FROM tab0
----
47

query I rowsort
SELECT - + 99 + - - col2 AS col0 FROM tab2 AS cor0
----
-41
-59
-76

query I rowsort
SELECT + col0 + 47 - - 28 + + col1 AS col0 FROM tab1 cor0
----
140
165
213

query I rowsort
SELECT ALL - - col0 * 75 + - 53 * - col0 * - col0 FROM tab1 AS cor0
----
-134028
-376550
-432068

query I rowsort
SELECT col2 AS col2 FROM tab2 cor0 WHERE col1 * 96 <> 50
----
23
40
58

query I rowsort
SELECT DISTINCT + 72 - col1 FROM tab2 AS cor0
----
-5
21
5

query I rowsort
SELECT col0 + 40 FROM tab1 WHERE - + col1 IS NOT NULL
----
125
131
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4426
SELECT - CAST( 75 AS SIGNED ) * - 18 - + + COUNT( * ) + + - 44 + - 5 * - COUNT( * ) AS col1 FROM tab2
----
1318

skipif mysql # not compatible
query I rowsort label-4426
SELECT - CAST ( 75 AS INTEGER ) * - 18 - + + COUNT ( * ) + + - 44 + - 5 * - COUNT ( * ) AS col1 FROM tab2
----
1318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT col0 - + 3 + + col0 + - 93 * + CAST( + col0 AS SIGNED ) + 78 FROM tab2
----
-4111
-5749
-6750

skipif mysql # not compatible
query I rowsort label-4427
SELECT col0 - + 3 + + col0 + - 93 * + CAST ( + col0 AS INTEGER ) + 78 FROM tab2
----
-4111
-5749
-6750

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT - 38 DIV + col1 - + col0 AS col1 FROM tab0
----
-135
-15
-88

skipif mysql # not compatible
query I rowsort label-4428
SELECT - 38 / + col1 - + col0 AS col1 FROM tab0
----
-135
-15
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT ALL + 49 DIV + 44 - - col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + 49 / + 44 - - col2 FROM tab2
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - 57 - + SUM( 57 ) AS col2 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-4430
SELECT - 57 - + SUM ( 57 ) AS col2 FROM tab2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT SUM( + col0 ) - - 87 * + + 36 AS col0 FROM tab1
----
3359

skipif mysql # not compatible
query I rowsort label-4431
SELECT SUM ( + col0 ) - - 87 * + + 36 AS col0 FROM tab1
----
3359

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2, + 79, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT + + COUNT( * ) * - ( - 82 ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-4433
SELECT + + COUNT ( * ) * - ( - 82 ) FROM tab0 AS cor0
----
246

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 80 + + col1 + + ( col0 ) + - 57 / col1 IN ( col1, + 56 + - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4435
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + 34 BETWEEN NULL AND + - col2 + - - ( - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + 34 BETWEEN NULL AND + - col2 + - - ( - 68 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * + col2 + - + col1 BETWEEN + 39 AND NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab2 WHERE 12 + - col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT COUNT( - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4438
SELECT COUNT ( - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col2, col1, - + col2, - 69 + + ( - + ( + col2 ) ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4439
SELECT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col2, col1, - + col2, - 69 + + ( - + ( + col2 ) ) )
----
0

query II rowsort
SELECT ALL - - col1 * + col2 AS col0, 80 AS col1 FROM tab1 cor0
----
1344
80
295
80
3196
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 47 AND 68
----

query I rowsort
SELECT + 7 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 25 * + col0 + - col2 FROM tab2 cor0
----
1127
1560
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT 11 * + COUNT( * ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-4444
SELECT 11 * + COUNT ( * ) FROM tab2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4445
SELECT ALL + MIN( ALL + col1 ) + COUNT( * ) * + ( AVG ( - 94 ) ) + - + 30 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL + MIN ( ALL + col1 ) + COUNT ( * ) * + ( AVG ( - 94 ) ) + - + 30 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT + CAST( 66 AS SIGNED ) AS col2 FROM tab2
----
66
66
66

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 >= - 92 * + - col2 + + col0 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 96, col2 AS col2 FROM tab2
----
96
23
96
40
96
58

query I rowsort
SELECT 67 + + - col2 AS col2 FROM tab2
----
27
44
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT DISTINCT col0 + + 36 DIV 13 FROM tab2 AS cor0
----
48
66
77

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT col0 + + 36 / 13 FROM tab2 AS cor0
----
48
66
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT DISTINCT + + COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4451
SELECT DISTINCT + + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - + 57 * ( + col0 ) FROM tab0 AS cor0 WHERE NULL < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col2 col1 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4454
SELECT + COUNT( * ) DIV - COUNT( * ) col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4454
SELECT + COUNT ( * ) / - COUNT ( * ) col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL + MIN( ALL col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL + MIN ( ALL col2 ) AS col0 FROM tab1
----
59

query II rowsort
SELECT DISTINCT ( - 77 ) * + col1 + + col1, 25 + - col1 AS col0 FROM tab1 AS cor0
----
-1064
11
-3572
-22
-380
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - 0 + + col0 col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4458
SELECT ALL - col2 + + CAST( + + ( + + CAST( NULL AS SIGNED ) ) AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 68 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT ALL - col0 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL - col0 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT DISTINCT col1 + + + col2 + - ( CAST( NULL AS SIGNED ) ) * col2 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 + - col1 IN ( + - 15 + - 85, col1, - + col2 + + col0 )
----

query I rowsort
SELECT DISTINCT 71 * - col2 - + col2 + col0 * + - col0 FROM tab2
----
-3772
-6976
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT ALL + col1 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - + COUNT( * ) FROM tab2 WHERE - col0 * 36 + + ( col1 ) >= col1
----
0

skipif mysql # not compatible
query I rowsort label-4465
SELECT - + COUNT ( * ) FROM tab2 WHERE - col0 * 36 + + ( col1 ) >= col1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 + + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - 25 - col1
----

query I rowsort
SELECT DISTINCT - - 51 FROM tab0 WHERE + - ( - col0 ) * - col0 * + col0 IS NOT NULL
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4469
SELECT + + ( - + MIN( - + 19 ) ) FROM tab0 WHERE NOT - - col0 - + CAST( - col1 AS SIGNED ) + CAST( + + col0 AS SIGNED ) = + col1
----
19

skipif mysql # not compatible
query I rowsort label-4469
SELECT + + ( - + MIN ( - + 19 ) ) FROM tab0 WHERE NOT - - col0 - + CAST ( - col1 AS INTEGER ) + CAST ( + + col0 AS INTEGER ) = + col1
----
19

query I rowsort
SELECT DISTINCT 53 * + col0 FROM tab0
----
4611
5141
795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT col2 * + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 + + col2 NOT BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4471
SELECT col2 * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 + + col2 NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + ( + 79 ) AS col2 FROM tab2
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT 0 * COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4473
SELECT 0 * COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4474
SELECT DISTINCT + col0 AS col2, + ( - col0 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4474
SELECT DISTINCT + col0 AS col2, + ( - col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT col2 + + 86 + + ( + ( - + 68 ) ) * + col0 AS col1 FROM tab2 AS cor0
----
-3019
-4226
-4956

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query II rowsort
SELECT ALL - - col0 AS col1, 87 AS col0 FROM tab2 AS cor0
----
46
87
64
87
75
87

query II rowsort
SELECT col1 + - col0 + - - ( + - 42 ) AS col0, col1 - + col0 - col2 FROM tab0 AS cor0
----
-108
-76
-138
-195
24
19

query I rowsort
SELECT ALL col1 + col1 - - 81 AS col2 FROM tab0 cor0
----
123
243
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT MAX( - - 95 ) + + COUNT( * ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-4480
SELECT MAX ( - - 95 ) + + COUNT ( * ) FROM tab1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL - MAX( ALL - + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - MAX ( ALL - + col1 ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - 70 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE ( + 74 ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT SUM( ALL - ( col2 ) ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4484
SELECT SUM ( ALL - ( col2 ) ) AS col1 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL COUNT( * ) + - 53 AS col1 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL COUNT ( * ) + - 53 AS col1 FROM tab0 AS cor0
----
-50

query II rowsort
SELECT DISTINCT + col0 AS col1, 81 AS col0 FROM tab0 cor0 WHERE ( NULL NOT BETWEEN NULL AND ( - col1 ) )
----

query I rowsort
SELECT DISTINCT col2 + - + col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT - ( + 57 ) AS col0 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT + col1 + ( + 50 ) + + + col1 FROM tab2 AS cor0 WHERE ( - + 78 ) + + + 41 * - + col1 * - col1 IS NULL
----

query I rowsort
SELECT - 79 + + + col1 FROM tab2
----
-12
-2
-28

query I rowsort
SELECT ALL - col2 * 61 AS col0 FROM tab1
----
-3599
-4148
-5856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4492
SELECT MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

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

query I rowsort
SELECT + + col0 * - col1 + + col1 FROM tab0 AS cor0
----
-1134
-1806
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, + col2 col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT + - 64 + + + col0 AS col2 FROM tab1 AS cor0
----
-13
21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL SUM( ALL + ( + 79 ) ) AS col1 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL SUM ( ALL + ( + 79 ) ) AS col1 FROM tab1 AS cor0
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT - 41 - - + col0 + + - col2 DIV 41 * - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
112
129
141

skipif mysql # not compatible
query I rowsort label-4497
SELECT - 41 - - + col0 + + - col2 / 41 * - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
112
129
141

query I rowsort
SELECT - col1 * - 28 FROM tab0 cor0
----
2268
28
588

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4499
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * - col0 * - - col1 * 65 * 68 IN ( + ( 0 ) + + ( - + 88 ), - ( + + col0 ) / + col0 )
----

skipif mysql # not compatible
query III rowsort label-4499
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) * - col0 * - - col1 * 65 * 68 IN ( + ( 0 ) + + ( - + 88 ), - ( + + col0 ) / + col0 )
----

query I rowsort
SELECT ALL - ( - ( + col0 ) ) - + col0 * col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4501
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <= + ( - - col0 )
----

skipif mysql # not compatible
query III rowsort label-4501
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= + ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT ALL col0 * + col2 / - - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4502
SELECT ALL col0 * + col2 / - - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT DISTINCT - + col0 + CAST( - col1 AS SIGNED ) - + + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 WHERE ( + col0 = + 92 )
----

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - + col0 + CAST ( - col1 AS INTEGER ) - + + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 WHERE ( + col0 = + 92 )
----

query I rowsort
SELECT ALL - 86 * + - col1 * - - col2 FROM tab2
----
100878
264880
334196

query II rowsort
SELECT DISTINCT col2 * - + col2 AS col2, col0 FROM tab1
----
-3481
85
-4624
91
-9216
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4506
SELECT ALL + col0 DIV - - ( 31 ) - + col1 AS col1, CAST( + 26 AS SIGNED ) col0 FROM tab0 AS cor0
----
-19
26
-81
26
2
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4506
SELECT ALL + col0 / - - ( 31 ) - + col1 AS col1, CAST ( + 26 AS INTEGER ) col0 FROM tab0 AS cor0
----
-19
26
-81
26
2
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL SUM( DISTINCT 45 ) FROM tab2 AS cor0 WHERE NOT 80 BETWEEN - 77 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL SUM ( DISTINCT 45 ) FROM tab2 AS cor0 WHERE NOT 80 BETWEEN - 77 AND NULL
----
NULL

query I rowsort
SELECT - ( + 11 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 70 + - ( + + col2 ) AS col0 FROM tab1 cor0 WHERE NOT col1 * + col1 * - - ( - col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - 47 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE 14 <= 2
----

query I rowsort
SELECT DISTINCT + 72 + - 16 AS col2 FROM tab0 AS cor0
----
56

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL - + 32 + - COUNT( * ) FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - + 32 + - COUNT ( * ) FROM tab0 AS cor0
----
-35

query I rowsort
SELECT DISTINCT - col1 + + 58 FROM tab2 AS cor0
----
-19
-9
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT + - col2 * + + col0 + - col2 DIV col2 FROM tab2 AS cor0
----
-1059
-2561
-4351

skipif mysql # not compatible
query I rowsort label-4516
SELECT + - col2 * + + col0 + - col2 / col2 FROM tab2 AS cor0
----
-1059
-2561
-4351

query I rowsort
SELECT - ( - + 69 ) * 46 FROM tab2
----
3174
3174
3174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 * col2 col1 FROM tab0
----
2538
5346
540

query II rowsort
SELECT + col1 * - col2 AS col0, - col0 + - 13 AS col0 FROM tab0
----
-210
-100
-3807
-28
-99
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT 18 + - + COUNT( * ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-4520
SELECT 18 + - + COUNT ( * ) AS col1 FROM tab2
----
15

query I rowsort
SELECT + col2 FROM tab0 WHERE - col0 * - col0 * - 67 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT MIN( DISTINCT - 67 ) AS col2 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT MIN ( DISTINCT - 67 ) AS col2 FROM tab1
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT + ( - 84 ) + + col0 AS col0 FROM tab1
----
-33
1
7

query I rowsort
SELECT ALL + col1 + ( + 37 ) FROM tab2
----
104
114
88

query I rowsort
SELECT ALL col1 * - ( 15 ) FROM tab2 AS cor0
----
-1005
-1155
-765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT ALL + COUNT( * ) + COUNT( * ) DIV - 80 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL + COUNT ( * ) + COUNT ( * ) / - 80 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4528
SELECT * FROM tab1 AS cor0 WHERE - 0 * col1 * CAST( NULL AS SIGNED ) NOT BETWEEN - CAST( + col0 AS SIGNED ) AND + col2 + + + col1
----

skipif mysql # not compatible
query III rowsort label-4528
SELECT * FROM tab1 AS cor0 WHERE - 0 * col1 * CAST ( NULL AS INTEGER ) NOT BETWEEN - CAST ( + col0 AS INTEGER ) AND + col2 + + + col1
----

query II rowsort
SELECT col1 AS col0, 31 AS col1 FROM tab0 AS cor0
----
1
31
21
31
81
31

query II rowsort
SELECT ALL + col1 AS col1, 59 AS col0 FROM tab1 AS cor0
----
14
59
47
59
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT MIN( col1 ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
5
-3

skipif mysql # not compatible
query II rowsort label-4531
SELECT MIN ( col1 ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
5
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL + COUNT( - + col1 ) + COUNT( * ) * + 45 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4533
SELECT ALL + CAST( + + 77 AS SIGNED ) AS col2 FROM tab1
----
77
77
77

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL + CAST ( + + 77 AS INTEGER ) AS col2 FROM tab1
----
77
77
77

query I rowsort
SELECT + 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

query I rowsort
SELECT col1 + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4537
SELECT COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL - + 98 + 83, ( - col2 ) AS col1 FROM tab1 AS cor0
----
-15
-59
-15
-68
-15
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4539
SELECT - - col2 + - 11 col0, 48 + - 77 + - - CAST( col0 AS SIGNED ) + - - col1 AS col2 FROM tab1 AS cor0
----
48
61
57
109
85
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4539
SELECT - - col2 + - 11 col0, 48 + - 77 + - - CAST ( col0 AS INTEGER ) + - - col1 AS col2 FROM tab1 AS cor0
----
48
61
57
109
85
36

query I rowsort
SELECT - col0 * + col1 * - - col0 AS col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN col0 / - ( - + col2 ) AND + - 73 * - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1 AS col2, 73 - - 13 FROM tab2
----
51
86
67
86
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT SUM( ALL 15 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4543
SELECT SUM ( ALL 15 ) FROM tab1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT + col0 * - col2 AS col1 FROM tab1 WHERE NOT + 43 + - CAST( NULL AS SIGNED ) + + 31 + - - col1 - - - col0 + col2 BETWEEN - + col0 AND 25
----

skipif mysql # not compatible
query I rowsort label-4544
SELECT + col0 * - col2 AS col1 FROM tab1 WHERE NOT + 43 + - CAST ( NULL AS INTEGER ) + + 31 + - - col1 - - - col0 + col2 BETWEEN - + col0 AND 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT COUNT( 37 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4545
SELECT COUNT ( 37 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT ( + 10 ) AS col1 FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT - - col2 / + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 * col1 + - col1 - 32 * - col1 FROM tab1 AS cor0
----
1148
5734
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) * - 76 AS col2 FROM tab0 AS cor0
----
-1596
-6156
-76

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

query I rowsort
SELECT 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE - 24 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT + SUM( DISTINCT + 37 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4552
SELECT + SUM ( DISTINCT + 37 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4553
SELECT DISTINCT - COUNT( * ) * - - 40 AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-360
9

skipif mysql # not compatible
query II rowsort label-4553
SELECT DISTINCT - COUNT ( * ) * - - 40 AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-360
9

query I rowsort
SELECT ( - 32 ) + - col2 FROM tab0
----
-131
-42
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4555
SELECT ALL + col2 DIV col2 + col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + col2 / col2 + col1 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + MIN( ALL - 64 ) + + 99 + + - SUM( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4556
SELECT + MIN ( ALL - 64 ) + + 99 + + - SUM ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-31

query I rowsort
SELECT + + 45 + - + col1 AS col0 FROM tab0 AS cor0
----
-36
24
44

query I rowsort
SELECT + + 76 + - 22 FROM tab0 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 41 * - col1 + col1 * 52 + + col2 col1, + 97 AS col1 FROM tab2 cor0
----
584
97
795
97
887
97

query I rowsort
SELECT DISTINCT ( col2 ) + + + col2 + 21 * col1 AS col1 FROM tab1
----
1123
223
486

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4561
SELECT + col1 * + CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT DISTINCT - col0 DIV col1 col0 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT DISTINCT - col0 / col1 col0 FROM tab0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT + - CAST( 86 AS SIGNED ) FROM tab2 WHERE ( NOT NULL >= + col1 * - ( - col1 ) / - + col1 )
----

skipif mysql # not compatible
query I rowsort label-4563
SELECT + - CAST ( 86 AS INTEGER ) FROM tab2 WHERE ( NOT NULL >= + col1 * - ( - col1 ) / - + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col2 * - 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4565
SELECT ALL * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) + + + 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4565
SELECT ALL * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) + + + 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL = ( - col0 ) * - - col1
----

query I rowsort
SELECT DISTINCT 50 * + - col1 * + + col0 FROM tab2 AS cor0 WHERE col1 <= ( - 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT + - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT - COUNT( ALL + - 15 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4571
SELECT - COUNT ( ALL + - 15 ) FROM tab0 AS cor0
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col1, + 98 * - ( - col2 ) * col0 FROM tab0 AS cor0 WHERE NOT + col1 <= 34
----
81
69090

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - col1 NOT IN ( - + col0 + - 13 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL + CAST( - 28 AS SIGNED ) FROM tab1
----
-28
-28
-28

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4578
SELECT * FROM tab1 WHERE NOT ( - ( + - 87 ) * + + CAST( + - col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4578
SELECT * FROM tab1 WHERE NOT ( - ( + - 87 ) * + + CAST ( + - col2 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + + col1 ) + + col2 BETWEEN + - col1 * - col0 * - 28 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4580
SELECT DISTINCT + - ( + 19 ) AS col1, CAST( - - ( - ( col0 ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( col1 ) / col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4580
SELECT DISTINCT + - ( + 19 ) AS col1, CAST ( - - ( - ( col0 ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( col1 ) / col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col1 * - 88 FROM tab2
----
-4488
-5896
-6776

query I rowsort
SELECT col2 * - col2 * - col1 FROM tab0
----
178929
2100
9801

query II rowsort
SELECT col1, 70 AS col0 FROM tab2 AS cor0
----
51
70
67
70
77
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL - - MIN( - col1 ) + + COUNT( * ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - - MIN ( - col1 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-78

query II rowsort
SELECT ALL - - col2 + col0 + col2 AS col2, col2 AS col2 FROM tab2 AS cor0
----
144
40
191
58
92
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT ALL - 54 + - CAST( ( + col2 ) AS SIGNED ) + 28 col2 FROM tab1 cor0
----
-122
-85
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4586
SELECT ALL - 54 + - CAST ( ( + col2 ) AS INTEGER ) + 28 col2 FROM tab1 cor0
----
-122
-85
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL COUNT( DISTINCT - 55 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL COUNT ( DISTINCT - 55 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT 21 + - 14 AS col2 FROM tab0 AS cor0
----
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 59 - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 69 col0 FROM tab2
----
120
136
146

query I rowsort
SELECT ALL - ( + ( - - col2 ) ) AS col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + 16 * - col1 AS col2, col0 FROM tab0
----
-1296
15
-16
97
-336
87

query II rowsort
SELECT - ( col2 ) AS col0, + 79 + - - col1 * 17 AS col1 FROM tab1 WHERE col0 >= col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + MIN( ALL ( + col1 ) ) + + - 96 + + 72 * - 75 FROM tab0
----
-5495

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + MIN ( ALL ( + col1 ) ) + + - 96 + + 72 * - 75 FROM tab0
----
-5495

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * + col1 IN ( - col0 * 17, - 15, col1 * - 88 * + 23 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT 0 * + COUNT( * ) - + + COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4597
SELECT 0 * + COUNT ( * ) - + + COUNT ( * ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT col0 - CAST( - 17 AS SIGNED ) AS col2 FROM tab2
----
63
81
92

skipif mysql # not compatible
query I rowsort label-4598
SELECT col0 - CAST ( - 17 AS INTEGER ) AS col2 FROM tab2
----
63
81
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT DISTINCT ( + CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT ( + CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL MIN( - 13 ) FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL MIN ( - 13 ) FROM tab2 AS cor0
----
-13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - 3 ) + col1 - + col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < 2
----

query II rowsort
SELECT - col2, col2 * - 88 AS col0 FROM tab1 cor0 WHERE NOT col2 * - - 40 BETWEEN - 96 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL - 50 * + - COUNT( * ) AS col0 FROM tab1 cor0
----
150

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - 50 * + - COUNT ( * ) AS col0 FROM tab1 cor0
----
150

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - COUNT( * ) * + 47 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4606
SELECT - COUNT ( * ) * + 47 FROM tab0 AS cor0
----
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 65 col0 FROM tab1 AS cor0
----
3055
325
910

query II rowsort
SELECT - 28, + col1 FROM tab2 AS cor0
----
-28
51
-28
67
-28
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - SUM( ALL col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4609
SELECT - SUM ( ALL col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) FROM tab1, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab1, tab1 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col2 * - 62 AS col1 FROM tab0
----
-10
-620
-47
-2914
-99
-6138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT col1 * CAST( + 90 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1890
7290
90

skipif mysql # not compatible
query I rowsort label-4612
SELECT col1 * CAST ( + 90 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1890
7290
90

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= 62
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4614
SELECT DISTINCT - COUNT( * ) AS col1, + COUNT( + col1 ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4614
SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT - col1 + - + col2 + - - 85 FROM tab1 AS cor0
----
-25
-30
21

query I rowsort
SELECT ALL - col1 * + - col2 + + col0 AS col2 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ( + COUNT( * ) ) + + + 3 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4617
SELECT ( + COUNT ( * ) ) + + + 3 FROM tab0 AS cor0
----
6

query II rowsort
SELECT ALL - col1 - + + 27, col0 FROM tab1 AS cor0
----
-32
85
-41
51
-74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT - MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( + ( + col0 ) ) + + col1 * - + 34, - ( - 46 ) col0 FROM tab1 cor0
----
-1507
46
-425
46
-85
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + - col1 ) IN ( - col0 )
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE col2 > - 43
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT DISTINCT - MIN( - 17 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT - MIN ( - 17 ) FROM tab2
----
17

query III rowsort
SELECT * FROM tab0 WHERE + - col1 / - 58 * + col1 * ( - col2 ) - + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - ( COUNT( * ) ) FROM tab1 WHERE + 65 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4625
SELECT - ( COUNT ( * ) ) FROM tab1 WHERE + 65 <> NULL
----
0

query I rowsort
SELECT DISTINCT 86 * - col1 * + 41 FROM tab0
----
-285606
-3526
-74046

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL ( - 77 ) * + + COUNT( * ) * ( + 75 ) * - SUM( ALL - col2 ) FROM tab2 AS cor0
----
-2096325

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL ( - 77 ) * + + COUNT ( * ) * ( + 75 ) * - SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-2096325

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ( - COUNT( * ) ) + + - COUNT( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4629
SELECT ( - COUNT ( * ) ) + + - COUNT ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT DISTINCT + col0 - - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT 40 * + MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
2320

skipif mysql # not compatible
query I rowsort label-4632
SELECT 40 * + MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
2320

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL COUNT( + col2 ) * + 92 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL COUNT ( + col2 ) * + 92 FROM tab0 AS cor0
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT SUM( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT col0 * + + ( - 61 ) FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT ALL col2 + - 97 * - col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
1454
4627
544

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) = - 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT - COUNT( - - 54 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4638
SELECT DISTINCT - COUNT ( - - 54 ) col1 FROM tab2
----
-3

query I rowsort
SELECT ALL - col0 * + + 60 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT COUNT( * ) * - + 55 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT COUNT ( * ) * - + 55 FROM tab1
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT + 97 * col2 DIV col1 * + + 11 FROM tab0
----
105633
506
616

skipif mysql # not compatible
query I rowsort label-4641
SELECT + 97 * col2 / col1 * + + 11 FROM tab0
----
105633
506
616

query II rowsort
SELECT col1, + col1 * - 38 + - 24 FROM tab2
----
51
-1962
67
-2570
77
-2950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT ALL CAST( - 0 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL CAST ( - 0 AS INTEGER ) FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL + COUNT( DISTINCT + col0 ) * + - 86 - + 53 FROM tab2 WHERE NOT NULL NOT BETWEEN + 71 AND ( - - col2 + + col0 )
----
-53

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + COUNT ( DISTINCT + col0 ) * + - 86 - + 53 FROM tab2 WHERE NOT NULL NOT BETWEEN + 71 AND ( - - col2 + + col0 )
----
-53

query I rowsort
SELECT - 47 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( + col1 ) * + + col2 col1 FROM tab0
----
-18270
-57105
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 * + col2 + 35 col1 FROM tab0 cor0
----
-2174
-435
-4618

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 93 <> - - 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT DISTINCT + - col0 * col1 + - 59 + - col2 DIV - 90 col2 FROM tab1 AS cor0
----
-4336
-484
-772

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4650
SELECT DISTINCT + - col0 * col1 + - 59 + - col2 / - 90 col2 FROM tab1 AS cor0
----
-4336
-484
-772

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT 44 + 73 - - - 28 * + - 19 + + COUNT( * ) AS col0 FROM tab0
----
652

skipif mysql # not compatible
query I rowsort label-4651
SELECT 44 + 73 - - - 28 * + - 19 + + COUNT ( * ) AS col0 FROM tab0
----
652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL CAST( - 13 AS SIGNED ) * + + col1 * ( - 62 ) - col2 AS col0 FROM tab1
----
11188
37814
3971

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL CAST ( - 13 AS INTEGER ) * + + col1 * ( - 62 ) - col2 AS col0 FROM tab1
----
11188
37814
3971

query I rowsort
SELECT 52 + - - ( - - col0 ) AS col1 FROM tab2
----
116
127
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 IN ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 16, ( 82 ) AS col1 FROM tab2 WHERE NULL > + col0 * col0 + + col0 * 13
----

query I rowsort
SELECT DISTINCT + col2 * + ( - - col1 ) AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + COUNT( * ) * ( 52 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4657
SELECT + COUNT ( * ) * ( 52 ) FROM tab0
----
156

query I rowsort
SELECT 98 FROM tab2 WHERE - 61 IS NOT NULL
----
98
98
98

query III rowsort
SELECT * FROM tab0 WHERE ( NULL >= ( NULL ) )
----

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

query I rowsort
SELECT - col0 * + + ( 67 ) AS col2 FROM tab1
----
-3417
-5695
-6097

query I rowsort
SELECT + 61 * - col2 FROM tab0 AS cor0
----
-2867
-6039
-610

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT + + MAX( - 23 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT + + MAX ( - 23 ) FROM tab1 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT col2 * + col1 * - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-123200
-225388
-26979

skipif mysql # not compatible
query I rowsort label-4666
SELECT col2 * + col1 * - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-123200
-225388
-26979

query I rowsort
SELECT DISTINCT ( + + col1 ) + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT + MAX( ALL + 92 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4668
SELECT + MAX ( ALL + 92 ) FROM tab2 AS cor0
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4669
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 3 * + col0 NOT IN ( + 17 * - + col2, + col2 / + ( + - 77 ) - CAST( NULL AS DECIMAL ), + col1, + 28 )
----

skipif mysql # not compatible
query III rowsort label-4669
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 3 * + col0 NOT IN ( + 17 * - + col2, + col2 / + ( + - 77 ) - CAST ( NULL AS REAL ), + col1, + 28 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 39 FROM tab0 AS cor0
----
10
39
47
39
99
39

query I rowsort
SELECT DISTINCT 87 * + ( - - col1 ) FROM tab0
----
1827
7047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL COUNT( * ) * 55 * 55 FROM tab2
----
9075

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL COUNT ( * ) * 55 * 55 FROM tab2
----
9075

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT - + col0 BETWEEN + col1 AND - + col2
----
15
87
97

query I rowsort
SELECT + - 42 * + 86 AS col2 FROM tab0 AS cor0
----
-3612
-3612
-3612

query I rowsort
SELECT ALL + 60 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4676
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4676
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + 88 + + 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9d3400f2b4f3756b63546a6a379b95c4

query I rowsort
SELECT - col1 + - col0 + col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-31
-70
31

query II rowsort
SELECT col1, col1 * + - col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
14
-196
47
-2209
5
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT MIN( DISTINCT - CAST( 80 AS SIGNED ) ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4680
SELECT MIN ( DISTINCT - CAST ( 80 AS INTEGER ) ) FROM tab2 AS cor0
----
-80

query I rowsort
SELECT DISTINCT - + 3 + + col1 AS col1 FROM tab2 AS cor0
----
48
64
74

query I rowsort
SELECT ALL + + col0 + - 78 AS col2 FROM tab2 AS cor0
----
-14
-3
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) FROM tab1 cor0 WHERE col0 * - + 36 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) FROM tab1 cor0 WHERE col0 * - + 36 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + 82 + - col0 AS col0 FROM tab2 AS cor0
----
18
36
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL COUNT( * ) - COUNT( * ) + + + 24 AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL COUNT ( * ) - COUNT ( * ) + + + 24 AS col1 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT + 49 AS col0, - COUNT( * ) * - - 11 FROM tab0 AS cor0
----
49
-33

skipif mysql # not compatible
query II rowsort label-4686
SELECT + 49 AS col0, - COUNT ( * ) * - - 11 FROM tab0 AS cor0
----
49
-33

query II rowsort
SELECT col0, 87 * col1 AS col0 FROM tab2 AS cor0
----
46
4437
64
6699
75
5829

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT 14 * + + COUNT( * ) - COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT 14 * + + COUNT ( * ) - COUNT ( * ) FROM tab2
----
39

query II rowsort
SELECT ALL + 12 * - + 80 * - col1 - - 59, col0 AS col2 FROM tab1
----
13499
51
45179
91
4859
85

query I rowsort
SELECT + col1 - 34 FROM tab1
----
-20
-29
13

query II rowsort
SELECT col0 * + - col2 AS col2, + 0 FROM tab0
----
-705
0
-870
0
-9603
0

query II rowsort
SELECT - col0, col2 - - ( 40 ) * + col0 AS col2 FROM tab0 AS cor0
----
-15
647
-87
3490
-97
3979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2, 1 col2 FROM tab0 AS cor0
----
-10
1
-47
1
-99
1

query I rowsort
SELECT ALL + + ( + - 32 ) * + + 78 AS col1 FROM tab1 AS cor0
----
-2496
-2496
-2496

query I rowsort
SELECT ALL 80 * + + col0 FROM tab0 AS cor0
----
1200
6960
7760

onlyif mysql # DIV for integer division: 
query II rowsort label-4697
SELECT ALL - 56 DIV + col0, col0 FROM tab0
----
-3
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-4697
SELECT ALL - 56 / + col0, col0 FROM tab0
----
-3
15
0
87
0
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT COUNT( * ) * - + ( COUNT( * ) ) + - + MIN( ALL + + 23 ) * - 34 FROM tab2 AS cor0
----
773

skipif mysql # not compatible
query I rowsort label-4699
SELECT COUNT ( * ) * - + ( COUNT ( * ) ) + - + MIN ( ALL + + 23 ) * - 34 FROM tab2 AS cor0
----
773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col0 col0 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < NULL
----

query II rowsort
SELECT + col2, + col1 * + + col1 AS col1 FROM tab2
----
23
2601
40
5929
58
4489

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT + CAST( NULL AS SIGNED ) / + + 29 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT + CAST ( NULL AS INTEGER ) / + + 29 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + 11 AS col2, - col0 * + ( - 69 ) FROM tab0
----
11
1035
11
6003
11
6693

query I rowsort
SELECT - 50 * 19 + + ( - - col0 ) FROM tab0
----
-853
-863
-935

query I rowsort
SELECT DISTINCT ( - 94 ) AS col2 FROM tab1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT + COUNT( * ) + - MAX( ALL + col0 ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-4708
SELECT + COUNT ( * ) + - MAX ( ALL + col0 ) FROM tab1
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 5 * - col0 + 31 AS col0, col0 col1 FROM tab1 cor0
----
286
51
456
85
486
91

query I rowsort
SELECT + col0 - - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
102
170
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT MAX( + col0 ) DIV 66 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4711
SELECT MAX ( + col0 ) / 66 AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT col1 + 45 FROM tab2
----
112
122
96

query I rowsort
SELECT ALL + col2 * col1 AS col1 FROM tab0 WHERE - ( - 39 ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4714
SELECT - 91 DIV MIN( col1 ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-4714
SELECT - 91 / MIN ( col1 ) AS col0 FROM tab1
----
-18

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + col1 / - col0 >= col2 / 99 + - col2
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4716
SELECT + 91 DIV 18 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4716
SELECT + 91 / 18 FROM tab1
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL + 41 - SUM( - 17 ) AS col1 FROM tab2 WHERE NULL = 24 * + 6 - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL + 41 - SUM ( - 17 ) AS col1 FROM tab2 WHERE NULL = 24 * + 6 - col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4718
SELECT 94 DIV COUNT( * ) AS col0 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4718
SELECT 94 / COUNT ( * ) AS col0 FROM tab0
----
31

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT - 14 DIV - 4 AS col0 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4720
SELECT - 14 / - 4 AS col0 FROM tab2
----
3
3
3

query III rowsort
SELECT * FROM tab0 WHERE NULL = - col1 + ( + col0 )
----

query I rowsort
SELECT 49 * + 38 FROM tab0
----
1862
1862
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT MIN( + 39 ) * - COUNT( * ) AS col0 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-4723
SELECT MIN ( + 39 ) * - COUNT ( * ) AS col0 FROM tab1
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 13 col2 FROM tab1
----
1105
1183
663

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT 23 * + COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-4725
SELECT 23 * + COUNT ( * ) FROM tab1
----
69

query I rowsort
SELECT 29 * 80 FROM tab0
----
2320
2320
2320

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT + 35 * ( - COUNT( DISTINCT col2 ) ) FROM tab1 WHERE + col1 NOT BETWEEN col1 * 24 AND ( NULL )
----
-105

skipif mysql # not compatible
query I rowsort label-4727
SELECT + 35 * ( - COUNT ( DISTINCT col2 ) ) FROM tab1 WHERE + col1 NOT BETWEEN col1 * 24 AND ( NULL )
----
-105

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / ( + col2 * col1 ) BETWEEN col1 * 20 AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 19 FROM tab1 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4730
SELECT DISTINCT * FROM tab1 WHERE NOT 3 IN ( CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) - - 40 )
----

skipif mysql # not compatible
query III rowsort label-4730
SELECT DISTINCT * FROM tab1 WHERE NOT 3 IN ( CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) - - 40 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 75 <> + col2
----

query I rowsort
SELECT 37 * 89 AS col1 FROM tab1 WHERE NOT 2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4733
SELECT col0 DIV + ( - CAST( + col1 AS SIGNED ) * - col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4734
SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT DISTINCT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT - 70 + - col0 AS col2 FROM tab0 AS cor0
----
-157
-167
-85

query I rowsort
SELECT AVG ( + col0 ) + 31 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( ( col2 ) ) AND ( col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT ALL - col0 col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 + + col0 AND CAST( - 33 AS SIGNED ) * + 26
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4740
SELECT ALL - col0 col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 + + col0 AND CAST ( - 33 AS INTEGER ) * + 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4741
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + col0 * - 91 > col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4741
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + col0 * - 91 > col2 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT - 69 + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > 43
----
-69

skipif mysql # not compatible
query I rowsort label-4742
SELECT - 69 + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > 43
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL + SUM( 2 ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + SUM ( 2 ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4744
SELECT DISTINCT + col2 * + 17 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN + CAST( NULL AS DECIMAL ) + col2 AND 89
----

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT + col2 * + 17 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN + CAST ( NULL AS REAL ) + col2 AND 89
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( 60 ) )
----

query I rowsort
SELECT - 42 + - col1 FROM tab1 AS cor0
----
-47
-56
-89

query I rowsort
SELECT 97 * + col0 + col2 FROM tab0 cor0
----
1502
8449
9508

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL 19 * COUNT( * ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL 19 * COUNT ( * ) FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT + col1 + - 45 * col0 FROM tab1 cor0 WHERE ( + col1 ) NOT IN ( col2 )
----
-2281
-3820
-4048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL MAX( 92 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL MAX ( 92 ) FROM tab2 AS cor0
----
92

query I rowsort
SELECT - - 28 * + 43 FROM tab1 AS cor0
----
1204
1204
1204

query I rowsort
SELECT ALL col1 * + col1 AS col0 FROM tab0 cor0
----
1
441
6561

query I rowsort
SELECT + 8 FROM tab2 AS cor0 WHERE NULL IS NULL
----
8
8
8

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query I rowsort
SELECT ( - ( col1 ) ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + 26 + col1 AS col2 FROM tab0 WHERE - col0 * 90 = ( col0 - col0 * + 83 )
----

query I rowsort
SELECT - ( + - 83 ) FROM tab0 cor0
----
83
83
83

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 11 + + col2 IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT ALL + ( + col2 ) DIV - 23 - + 7 AS col0 FROM tab1 AS cor0
----
-11
-9
-9

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + ( + col2 ) / - 23 - + 7 AS col0 FROM tab1 AS cor0
----
-11
-9
-9

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

query I rowsort
SELECT DISTINCT - col2 - - - 71 AS col2 FROM tab1
----
-130
-139
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL - 94 - + - COUNT( * ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL - 94 - + - COUNT ( * ) FROM tab0
----
-91

query I rowsort
SELECT 19 FROM tab1 WHERE NULL >= 84 + col1 * col0
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 NOT BETWEEN ( NULL ) AND ( col2 )
----

query I rowsort
SELECT ALL + col2 * - + 77 + + - ( - 84 ) AS col2 FROM tab2 AS cor0
----
-1687
-2996
-4382

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT DISTINCT - + 8 DIV 66 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT - + 8 / 66 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4770
SELECT + - COUNT( * ) DIV ( + ( 21 ) ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4770
SELECT + - COUNT ( * ) / ( + ( 21 ) ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT ALL + 34 DIV 87 col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4771
SELECT ALL + 34 / 87 col1 FROM tab0 AS cor0
----
0
0
0

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

query II rowsort
SELECT DISTINCT col2 AS col0, - 46 AS col2 FROM tab2 AS cor0
----
23
-46
40
-46
58
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT + CAST( 47 AS SIGNED ) AS col1 FROM tab1
----
47
47
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4775
SELECT ALL * FROM tab1 WHERE ( NULL ) = ( col0 + - + 79 + + CAST( ( col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4775
SELECT ALL * FROM tab1 WHERE ( NULL ) = ( col0 + - + 79 + + CAST ( ( col1 ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4776
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 WHERE - 21 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 WHERE - 21 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT DISTINCT COUNT( ALL + - 94 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT COUNT ( ALL + - 94 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL <= - 80
----

skipif mysql # not compatible
query I rowsort label-4778
SELECT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL <= - 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT + ( + CAST( NULL AS SIGNED ) ) * 84 AS col1 FROM tab0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 39 * 99 col0, + col2 AS col1 FROM tab2
----
-3861
23
-3861
40
-3861
58

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 94 * + - col1 + col0 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( ( + + col0 ) ) AS col2 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + col1 ) = + - 34 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT + - 80 FROM tab1 WHERE NOT + col2 * CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-4785
SELECT + - 80 FROM tab1 WHERE NOT + col2 * CAST ( NULL AS INTEGER ) >= NULL
----

query II rowsort
SELECT ALL col0 AS col0, + 24 * col1 * 38 + col0 * col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT ALL + col1 * + 18 FROM tab1 AS cor0 WHERE NULL BETWEEN - ( - col1 ) AND + ( + CAST( col1 AS SIGNED ) ) * - 21 - - col0
----

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + col1 * + 18 FROM tab1 AS cor0 WHERE NULL BETWEEN - ( - col1 ) AND + ( + CAST ( col1 AS INTEGER ) ) * - 21 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL - 99 + + COUNT( * ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - 99 + + COUNT ( * ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4789
SELECT DISTINCT - ( + ( + - ( + - ( 21 ) ) ) ) + MAX( col0 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL col2 + + + col1 FROM tab0 cor0
----
100
128
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4792
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> 11 * - col0
----

skipif mysql # not compatible
query III rowsort label-4792
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> 11 * - col0
----

query I rowsort
SELECT + 41 AS col2 FROM tab2 AS cor0 WHERE ( - col2 / - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - - 92 * - 96 - - - 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 61 ) col0 FROM tab0
----
-61
-61
-61

query I rowsort
SELECT col0 + + + col2 AS col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL MAX( DISTINCT 4 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL MAX ( DISTINCT 4 ) FROM tab2
----
4

query I rowsort
SELECT 77 * col0 + - col1 * + col0 + - + col1 AS col2 FROM tab1
----
2683
3199
6115

query I rowsort
SELECT DISTINCT + ( + - 4 ) FROM tab2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT COUNT( * ) + - 64 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-4800
SELECT COUNT ( * ) + - 64 FROM tab1
----
-61

query I rowsort
SELECT ALL + 55 * + + 69 AS col2 FROM tab1
----
3795
3795
3795

query II rowsort
SELECT DISTINCT 76 + col1 AS col2, + col2 * - col1 FROM tab0
----
157
-3807
77
-99
97
-210

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( 33 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4804
SELECT ALL - + 40 - + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - + 40 - + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-41

query II rowsort
SELECT DISTINCT - - col2, + col1 + col2 + col0 AS col0 FROM tab1 AS cor0
----
59
149
68
206
96
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL 75 * + MIN( DISTINCT + col2 ) AS col1 FROM tab2
----
1725

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL 75 * + MIN ( DISTINCT + col2 ) AS col1 FROM tab2
----
1725

query I rowsort
SELECT - - col1 FROM tab0 cor0 WHERE NOT + 89 IN ( - + 87 + - - col1, + col1 * - 4 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT DISTINCT col1 DIV - - col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT col1 / - - col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + - 74 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4809
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + - 74 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4810
SELECT - - col2 DIV - ( - - col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4810
SELECT - - col2 / - ( - - col1 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL SUM( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL SUM ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT DISTINCT + CAST( + ( + 47 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
47

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

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

query I rowsort
SELECT + + 86 AS col2 FROM tab2 cor0
----
86
86
86

query I rowsort
SELECT DISTINCT - 82 * col2 AS col1 FROM tab2
----
-1886
-3280
-4756

query II rowsort
SELECT - col1, col0 AS col1 FROM tab0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL + 49 * + col1 FROM tab1
----
2303
245
686

query I rowsort
SELECT + 38 FROM tab2 WHERE NOT + col2 = + + ( + 93 )
----
38
38
38

query I rowsort
SELECT DISTINCT + + col0 * + - 17 AS col2 FROM tab1 WHERE - ( - - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 24 * + col0 * - 86 / + - ( - - ( - col2 ) ) + - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL + + 57 * + + COUNT( * ) FROM tab1 AS cor0 WHERE ( - 29 ) IS NOT NULL
----
171

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + + 57 * + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - 29 ) IS NOT NULL
----
171

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( - 62 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4823
SELECT - SUM( ALL - col1 ) * + - COUNT( * ) * COUNT( * ) + + + ( - - COUNT( * ) ) AS col0, - 36 FROM tab2 AS cor0
----
-1752
-36

skipif mysql # not compatible
query II rowsort label-4823
SELECT - SUM ( ALL - col1 ) * + - COUNT ( * ) * COUNT ( * ) + + + ( - - COUNT ( * ) ) AS col0, - 36 FROM tab2 AS cor0
----
-1752
-36

query I rowsort
SELECT + - 94 AS col0 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT ALL + 2 * - - col2 + + 57 AS col0 FROM tab2 AS cor0
----
103
137
173

query III rowsort
SELECT * FROM tab2 WHERE - + ( - 25 ) NOT IN ( col2 * + - 73 + + ( ( - col2 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col1 FROM tab0 cor0 WHERE + 49 NOT IN ( + 46 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4828
SELECT + col2 * - col2 - + CAST( NULL AS SIGNED ) + - 79 + col2 + - - 5 / - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-4829
SELECT ALL + - col2 + - + col1, col0 DIV 32 + + + 31 AS col0 FROM tab1 AS cor0
----
-110
32
-115
33
-64
33

skipif mysql # not compatible
query II rowsort label-4829
SELECT ALL + - col2 + - + col1, col0 / 32 + + + 31 AS col0 FROM tab1 AS cor0
----
-110
32
-115
33
-64
33

query I rowsort
SELECT + - col1 + + + 89 FROM tab2 AS cor0
----
12
22
38

query I rowsort
SELECT DISTINCT - col0 + + 80 AS col0 FROM tab1 AS cor0
----
-11
-5
29

query I rowsort
SELECT DISTINCT col0 - - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
141
142
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4833
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT DISTINCT + - 2 + + col1 - 26 * - 23 - - CAST( NULL AS SIGNED ) * col1 + 62 * ( + col1 ) + col1 * col1 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4834
SELECT DISTINCT + - 2 + + col1 - 26 * - 23 - - CAST ( NULL AS INTEGER ) * col1 + 62 * ( + col1 ) + col1 * col1 col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT DISTINCT SUM( 67 ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT SUM ( 67 ) FROM tab0
----
201

query II rowsort
SELECT + - col0, - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 93 AS col0 FROM tab0 WHERE NULL NOT BETWEEN col2 - - + 98 AND + 98
----

query I rowsort
SELECT ALL col1 + + 95 FROM tab1
----
100
109
142

query I rowsort
SELECT + col1 + ( - 29 ) * - 4 * + col0 FROM tab1 WHERE - col2 * 38 * - + col0 IS NOT NULL
----
10603
5930
9865

query I rowsort
SELECT DISTINCT + col0 * + 3 * 92 AS col2 FROM tab2
----
12696
17664
20700

query II rowsort
SELECT - + col0, + ( - + col2 ) / - - 56 + + - 67 + - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col2, ( + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT ( ( col1 ) ) + - ( - col1 ) + - - CAST( NULL AS SIGNED ) / + 77 FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 48 + col0 * col0 FROM tab2 AS cor0
----
2164
4144
5673

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL COUNT( * ) + - - SUM( + col1 ) * + 68 FROM tab0
----
7007

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL COUNT ( * ) + - - SUM ( + col1 ) * + 68 FROM tab0
----
7007

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4847
SELECT * FROM tab0 WHERE ( - col2 - 55 ) = ( + ( + CAST( + 83 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4847
SELECT * FROM tab0 WHERE ( - col2 - 55 ) = ( + ( + CAST ( + 83 AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT + 39 AS col2 FROM tab1 WHERE NOT ( 61 ) IN ( col2, col0 + col2 + - CAST( NULL AS SIGNED ) + - 16 )
----

skipif mysql # not compatible
query I rowsort label-4848
SELECT + 39 AS col2 FROM tab1 WHERE NOT ( 61 ) IN ( col2, col0 + col2 + - CAST ( NULL AS INTEGER ) + - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT ALL - 99 * + + ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, col0 col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT COUNT( + 34 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT COUNT ( + 34 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4853
SELECT + COUNT( * ) DIV + MAX( + - ( - col2 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4853
SELECT + COUNT ( * ) / + MAX ( + - ( - col2 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 66 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL + 49 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT ALL + MIN( - col0 ) * - 15 + ( + MIN( + 8 ) ) FROM tab0
----
1463

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL + MIN ( - col0 ) * - 15 + ( + MIN ( + 8 ) ) FROM tab0
----
1463

query I rowsort
SELECT ALL + 93 + - + 19 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - col1 * + 29 + col2 )
----

query II rowsort
SELECT 6, col1 AS col1 FROM tab2
----
6
51
6
67
6
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT DISTINCT col2 DIV + - col1 AS col1 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT col2 / + - col1 AS col1 FROM tab0
----
-99
0

query I rowsort
SELECT ALL 11 + - col2 + - 62 AS col1 FROM tab0
----
-150
-61
-98

query I rowsort
SELECT - ( + + 20 ) FROM tab1
----
-20
-20
-20

query III rowsort
SELECT * FROM tab1 WHERE 32 * + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT - SUM( DISTINCT + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab1
----
-227

query II rowsort
SELECT - 58, col1 FROM tab1 AS cor0
----
-58
14
-58
47
-58
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4868
SELECT - ( - + col1 ) + - 23 + - + CAST( - col2 AS SIGNED ) + col1 AS col0, 2 FROM tab1 AS cor0
----
101
2
139
2
46
2

skipif mysql # not compatible
query II rowsort label-4868
SELECT - ( - + col1 ) + - 23 + - + CAST ( - col2 AS INTEGER ) + col1 AS col0, 2 FROM tab1 AS cor0
----
101
2
139
2
46
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT col0 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) <> + col2
----

skipif mysql # not compatible
query I rowsort label-4869
SELECT col0 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) + col2 FROM tab0
----
NULL

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

query I rowsort
SELECT + 65 + - col0 * + col2 FROM tab0
----
-640
-805
-9538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT 75 + + CAST( + - col2 AS SIGNED ) FROM tab2
----
17
35
52

skipif mysql # not compatible
query I rowsort label-4872
SELECT 75 + + CAST ( + - col2 AS INTEGER ) FROM tab2
----
17
35
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + 31 + - MAX( + col2 ) AS col2 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-4873
SELECT + 31 + - MAX ( + col2 ) AS col2 FROM tab1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT ALL + 93 DIV + ( col1 ) AS col1 FROM tab0
----
1
4
93

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + 93 / + ( col1 ) AS col1 FROM tab0
----
1
4
93

query I rowsort
SELECT ALL - 34 * - col2 + - col0 FROM tab2 WHERE NOT - + col1 + - 7 >= col1
----
1296
1897
736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - col1 NOT IN ( 1 * + col1, - CAST( NULL AS SIGNED ), col2, - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - col1 NOT IN ( 1 * + col1, - CAST ( NULL AS INTEGER ), col2, - col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL MAX( DISTINCT - 22 ) FROM tab2, tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL MAX ( DISTINCT - 22 ) FROM tab2, tab0 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - + 41 * + - 55 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
2255

query II rowsort
SELECT DISTINCT + 79, 13 AS col1 FROM tab0 cor0
----
79
13

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4882
SELECT ALL + - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL + - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT + col1 * + - col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT + COUNT( * ) * - - MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-4885
SELECT col0 DIV - col2 - col2 AS col2, - 13 * - - col1 FROM tab1 AS cor0
----
-60
-65
-69
-611
-96
-182

skipif mysql # not compatible
query II rowsort label-4885
SELECT col0 / - col2 - col2 AS col2, - 13 * - - col1 FROM tab1 AS cor0
----
-60
-65
-69
-611
-96
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT col1 DIV - - col0 FROM tab2 AS cor0
----
0
1
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1, - 77 col2 FROM tab1 AS cor0
----
14
-77
47
-77
5
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - COUNT( ALL - 0 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4888
SELECT - COUNT ( ALL - 0 ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col2 * 91 AS col0 FROM tab1
----
-5369
-6188
-8736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE - - col0 / - + col0 NOT IN ( + + CAST( NULL AS SIGNED ) * + - 73 + + col1, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE - - col0 / - + col0 NOT IN ( + + CAST ( NULL AS INTEGER ) * + - 73 + + col1, col1 )
----
0

query I rowsort
SELECT col2 FROM tab2 WHERE NULL < + col0 AND 96 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT ALL - CAST( + - 58 AS SIGNED ) FROM tab0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - CAST ( + - 58 AS INTEGER ) FROM tab0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT 2 + - 51 * COUNT( * ) FROM tab1
----
-151

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT 2 + - 51 * COUNT ( * ) FROM tab1
----
-151

query II rowsort
SELECT + col1, - col2 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4895
SELECT * FROM tab1 WHERE NOT - + col0 * + + col0 + CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4895
SELECT * FROM tab1 WHERE NOT - + col0 * + + col0 + CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT - col2 * - 84 FROM tab2 AS cor0
----
1932
3360
4872

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE - col1 * 0 < + col2
----
-59
-68
-96

query II rowsort
SELECT - 15 AS col2, ( - + col2 ) * - 12 * + + 40 FROM tab0 cor0
----
-15
22560
-15
47520
-15
4800

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT DISTINCT - 42 + col1 DIV - 72 * - 8 AS col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT - 42 + col1 / - 72 * - 8 AS col0 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT DISTINCT + 34 + - col2 + 25 AS col2 FROM tab0 AS cor0
----
-40
12
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 4 NOT IN ( - col1, col0, + - ( + ( - 85 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + - 19 NOT BETWEEN - col2 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) - col1 FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT col1 - - 47 FROM tab0
----
128
48
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL + COUNT( * ) + - AVG ( + - 85 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL + COUNT ( * ) + - AVG ( + - 85 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

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

query I rowsort
SELECT ALL + 94 * - col0 AS col0 FROM tab1
----
-4794
-7990
-8554

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL - SUM( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - SUM ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL - + MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, 11, - 52 * - - 39, - 45 * + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - + MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, 11, - 52 * - - 39, - 45 * + 8 )
----
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 - - 72 + + + ( - + 81 ) * col2 IS NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT - MIN( ALL - + col2 ) AS col0 FROM tab1 cor0 WHERE NOT ( NOT - - col1 IS NOT NULL )
----
96

skipif mysql # not compatible
query I rowsort label-4916
SELECT - MIN ( ALL - + col2 ) AS col0 FROM tab1 cor0 WHERE NOT ( NOT - - col1 IS NOT NULL )
----
96

query I rowsort
SELECT ALL 38 * + + col2 FROM tab0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL ( + MAX( DISTINCT - + 60 ) ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL ( + MAX ( DISTINCT - + 60 ) ) FROM tab1
----
-60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 11 IS NOT NULL
----

query I rowsort
SELECT + + col0 AS col0 FROM tab0 WHERE NOT col0 > - ( col2 )
----

query I rowsort
SELECT ALL - 33 AS col2 FROM tab1
----
-33
-33
-33

query I rowsort
SELECT + - col1 AS col0 FROM tab2 WHERE NULL = + 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL + SUM( + col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL + SUM ( + col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 6 + + 80 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + col0 - + col2 + + col0 * + 9 AS col0 FROM tab0 AS cor0 WHERE - col0 IN ( + col0, + 66 )
----

query I rowsort
SELECT ALL - + 66 + - 39 FROM tab0 cor0
----
-105
-105
-105

query II rowsort
SELECT ALL col2, col2 - - col2 AS col1 FROM tab0
----
10
20
47
94
99
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT ALL + + COUNT( * ) DIV COUNT( * ) * - - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4928
SELECT ALL + + COUNT ( * ) / COUNT ( * ) * - - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE ( 90 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT SUM( DISTINCT 29 ) AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT SUM ( DISTINCT 29 ) AS col1 FROM tab2
----
29

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 - - col2 >= + col1
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT - - col0 + - col0 * - - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT ALL + 77 + + + col1 FROM tab1 AS cor0
----
124
82
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4934
SELECT + - CAST( NULL AS SIGNED ) + - col0 * + col2 * col1 * 72 + - ( + - ( - + 62 ) ) + - + col2 AS col0, - col0 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif mysql # not compatible
query II rowsort label-4934
SELECT + - CAST ( NULL AS INTEGER ) + - col0 * + col2 * col1 * 72 + - ( + - ( - + 62 ) ) + - + col2 AS col0, - col0 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
-4896
NULL
-5015
NULL
-6188

query I rowsort
SELECT ALL col1 + + + 70 AS col2 FROM tab0 AS cor0
----
151
71
91

query I rowsort
SELECT DISTINCT + col0 - col0 * + 77 * col2 AS col0 FROM tab2
----
-197056
-334875
-81420

onlyif mysql # aggregate syntax: 
query II rowsort label-4937
SELECT + COUNT( * ) + + - COUNT( * ), 95 AS col2 FROM tab1
----
0
95

skipif mysql # not compatible
query II rowsort label-4937
SELECT + COUNT ( * ) + + - COUNT ( * ), 95 AS col2 FROM tab1
----
0
95

query I rowsort
SELECT col0 + - + ( + + col1 ) FROM tab0
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - + col1
----

query I rowsort
SELECT ALL + 10 - - col1 - 65 FROM tab1
----
-41
-50
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4941
SELECT - ( 14 ) AS col1, MAX( - - 70 ) AS col0 FROM tab0
----
-14
70

skipif mysql # not compatible
query II rowsort label-4941
SELECT - ( 14 ) AS col1, MAX ( - - 70 ) AS col0 FROM tab0
----
-14
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT - MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4942
SELECT - MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
58

query II rowsort
SELECT ALL + 66 - col2 AS col2, - 94 FROM tab1
----
-2
-94
-30
-94
7
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - 48 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + col0 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT DISTINCT - - col0 + 0 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - col2 + - CAST( - col1 AS SIGNED ) AND + - 74
----

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT - - col0 + 0 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - col2 + - CAST ( - col1 AS INTEGER ) AND + - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT DISTINCT MAX( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT MAX ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 95 + - col2 * + 99 FROM tab1 cor0 WHERE NOT 48 + + - ( - - col0 ) IS NULL
----
-5746
-6637
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL - 89 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-80

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - 89 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-80

query I rowsort
SELECT DISTINCT ( col1 ) * + - 7 FROM tab0
----
-147
-567
-7

query II rowsort
SELECT col2, + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT col2 + + - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 * + + 95 + + - col2 AS col2 FROM tab1 AS cor0
----
4749
8016
8577

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT 24 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4954
SELECT 24 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4955
SELECT - col1 DIV - 10 + - col2 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
28
31

skipif mysql # not compatible
query I rowsort label-4955
SELECT - col1 / - 10 + - col2 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
28
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT + col2 * ( - CAST( + ( + - 73 ) AS SIGNED ) ) FROM tab0 AS cor0
----
3431
7227
730

skipif mysql # not compatible
query I rowsort label-4956
SELECT + col2 * ( - CAST ( + ( + - 73 ) AS INTEGER ) ) FROM tab0 AS cor0
----
3431
7227
730

query I rowsort
SELECT + 44 * - ( - col1 ) FROM tab0
----
3564
44
924

query III rowsort
SELECT * FROM tab0 WHERE ( - 60 ) + - 51 * - col2 < - + col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 37 >= + + 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT DISTINCT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + + - col2 AS col0 FROM tab0
----
NULL

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

query II rowsort
SELECT + 28 AS col1, 34 AS col2 FROM tab0, tab2 AS cor0
----
18 values hashing to b7d97e0cf1eb8214d4fa47f50807d01a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT - 69 + - CAST( + - col0 AS SIGNED ) col0 FROM tab2
----
-23
-5
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4963
SELECT - 69 + - CAST ( + - col0 AS INTEGER ) col0 FROM tab2
----
-23
-5
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 44 > + col1 + - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 80 NOT BETWEEN + - 61 AND ( + col1 + col1 )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + 88 + + - col0 AS col1 FROM tab0 AS cor0
----
-9
1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL + + COUNT( * ) * - - ( - COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + + COUNT ( * ) * - - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT 2 * col0 + - col0 FROM tab0 cor0
----
15
87
97

query II rowsort
SELECT + - 3, + 86 * + 0 * - col1 - + 67 + - + 53 - + 93 AS col2 FROM tab2 AS cor0
----
-3
-213
-3
-213
-3
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT ALL + 79 + - CAST( NULL AS SIGNED ) * - 95 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + ( - + 10 ) - - - COUNT( * ) + - + 41 col0 FROM tab0 cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4971
SELECT + ( - + 10 ) - - - COUNT ( * ) + - + 41 col0 FROM tab0 cor0
----
-54

query I rowsort
SELECT DISTINCT 89 - 8 FROM tab1 AS cor0
----
81

query II rowsort
SELECT - + col1, + col1 / - col2 FROM tab0 WHERE NOT NULL = - - col2
----

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab1 WHERE + 48 + + 39 IS NOT NULL
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT DISTINCT 54 DIV col1 * - + col1 FROM tab1
----
-42
-47
-50

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT 54 / col1 * - + col1 FROM tab1
----
-42
-47
-50

query I rowsort
SELECT 3 * + - 22 FROM tab0
----
-66
-66
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT DISTINCT + col1 DIV + 71 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT + col1 / + 71 FROM tab0
----
0
1

query I rowsort
SELECT col1 * - - 32 FROM tab0
----
2592
32
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 99 * + col0 FROM tab0
----
15
-1485
87
-8613
97
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4980
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4981
SELECT 51 - CAST( - + 91 AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-4981
SELECT 51 - CAST ( - + 91 AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT 44 * + col1 * - 19 FROM tab1 AS cor0
----
-11704
-39292
-4180

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT ALL - col0 DIV - + col2 FROM tab1 AS cor0
----
0
1
1

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + ( + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 + - 44 AS col1, - col1 FROM tab0 AS cor0
----
-29
-81
43
-21
53
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 > + 33 - - + 9 + 10 - - - col1 - 7 - + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT ALL + 52 * - + COUNT( * ), 92 * + - 14 col0 FROM tab0 AS cor0
----
-156
-1288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4987
SELECT ALL + 52 * - + COUNT ( * ), 92 * + - 14 col0 FROM tab0 AS cor0
----
-156
-1288

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT + - col0 DIV - + col0 AS col0 FROM tab0 AS cor0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT MIN( - - col0 ) * 6 FROM tab1
----
306

skipif mysql # not compatible
query I rowsort label-4989
SELECT MIN ( - - col0 ) * 6 FROM tab1
----
306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + 60 FROM tab2
----
46
60
64
60
75
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4991
SELECT ALL - CAST( MAX( + + col1 ) AS SIGNED ) AS col1, COUNT( * ) * - COUNT( * ) * - - 98 AS col0 FROM tab1
----
-47
-882

skipif mysql # not compatible
query II rowsort label-4991
SELECT ALL - CAST ( MAX ( + + col1 ) AS INTEGER ) AS col1, COUNT ( * ) * - COUNT ( * ) * - - 98 AS col0 FROM tab1
----
-47
-882

query II rowsort
SELECT ALL col0, - 96 FROM tab1
----
51
-96
85
-96
91
-96

query I rowsort
SELECT ALL 45 + + col2 + - col0 * - - col0 FROM tab0
----
-133
-7514
-9265

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 12 col1 FROM tab2
----
11
28
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL 78 * + + COUNT( * ) AS col1 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL 78 * + + COUNT ( * ) AS col1 FROM tab2
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-4997
SELECT ALL + col0 DIV - col0 col2 FROM tab2 AS cor0
----
-1
-1
-1

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - - 64 ) * - col2 - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 22 + - ( - + 86 ) + + col0 + + col1 FROM tab0 AS cor0
----
204
206
216

query I rowsort
SELECT ALL + 21 + - col1 AS col1 FROM tab2 AS cor0
----
-30
-46
-56

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - 79 * - 32 * + col1 * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5002
SELECT ALL - + COUNT( + 51 ) + + 96 col1, + SUM( col0 ) col2 FROM tab2 AS cor0
----
93
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5002
SELECT ALL - + COUNT ( + 51 ) + + 96 col1, + SUM ( col0 ) col2 FROM tab2 AS cor0
----
93
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, 15 + - col0 - - + col0 + + - col0 * + col2 * - + col2 col0 FROM tab0 AS cor0
----
10
8715
47
33150
99
950712

query II rowsort
SELECT + col1 AS col2, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT + 43 - - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5006
SELECT COUNT( * ) - 70, SUM( + col1 ) AS col1 FROM tab0
----
-67
103

skipif mysql # not compatible
query II rowsort label-5006
SELECT COUNT ( * ) - 70, SUM ( + col1 ) AS col1 FROM tab0
----
-67
103

query I rowsort
SELECT DISTINCT + + col1 + - 75 FROM tab1 AS cor0
----
-28
-61
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT + - SUM( DISTINCT - - col0 ) * + 26 + + - ( - MAX( col0 ) ) AS col0 FROM tab2 AS cor0
----
-4735

skipif mysql # not compatible
query I rowsort label-5008
SELECT + - SUM ( DISTINCT - - col0 ) * + 26 + + - ( - MAX ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-4735

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT - - COUNT( * ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5010
SELECT DISTINCT - - COUNT ( * ) col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-309

query III rowsort
SELECT * FROM tab2 WHERE NOT - 41 BETWEEN - col0 AND col2 * + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5014
SELECT col0 AS col1, ( CAST( NULL AS DECIMAL ) ) * + 4 AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5014
SELECT col0 AS col1, ( CAST ( NULL AS REAL ) ) * + 4 AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5015
SELECT * FROM tab2 WHERE NOT - col0 * + - col1 + + col0 + + 61 + + + ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5015
SELECT * FROM tab2 WHERE NOT - col0 * + - col1 + + col0 + + 61 + + + ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

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

query I rowsort
SELECT DISTINCT - 98 * - col1 FROM tab1 AS cor0
----
1372
4606
490

query I rowsort
SELECT DISTINCT - col0 + - - col1 AS col2 FROM tab2
----
-8
13
5

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 <= - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT - + 37 + + 38 + + + COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5020
SELECT - + 37 + + 38 + + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
1

query II rowsort
SELECT DISTINCT + col0 AS col1, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query II rowsort
SELECT ALL + + 69 AS col1, - col1 + + 35 AS col0 FROM tab0 AS cor0
----
69
-46
69
14
69
34

query I rowsort
SELECT ALL - col0 + + 64 * - - col1 + - + 87 - - col1 AS col1 FROM tab0 AS cor0
----
-119
1191
5163

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE + col2 + + col0 * - col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT COUNT( * ) + - ( 5 ) col1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5025
SELECT DISTINCT COUNT ( * ) + - ( 5 ) col1 FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5026
SELECT - + 0 * ( - col1 ) + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 36 * - col1 + - col0 + - ( - col2 ) + + col0 + + + col0 * + 88 - 68 AS col0 FROM tab2 AS cor0
----
2167
2832
4178

query I rowsort
SELECT DISTINCT + + col2 * - 58 AS col1 FROM tab1 AS cor0
----
-3422
-3944
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT ALL + 84 FROM tab2 AS cor0 WHERE - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + 84 FROM tab2 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col2 * + + 74 AS col1 FROM tab0 AS cor0
----
3478
7326
740

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT DISTINCT 30 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
3

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 53 * col1 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT + CAST( + + col2 AS SIGNED ) FROM tab2 WHERE - 91 * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5033
SELECT + CAST ( + + col2 AS INTEGER ) FROM tab2 WHERE - 91 * + col2 IS NULL
----

query I rowsort
SELECT + 22 - + + col2 * + col0 * - col0 * - col2 AS col2 FROM tab1
----
-23970794
-25150203
-38291322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5035
SELECT ALL + ( + + COUNT( * ) ) + + - CAST( - MAX( - 42 ) AS SIGNED ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + ( + + COUNT ( * ) ) + + - CAST ( - MAX ( - 42 ) AS INTEGER ) FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT - - MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT - - MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

query II rowsort
SELECT DISTINCT 86 + col0 AS col2, col2 FROM tab1 AS cor0
----
137
96
171
59
177
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5038
SELECT + CAST( NULL AS SIGNED ) + + col2, 98 col0 FROM tab1 AS cor0
----
NULL
98
NULL
98
NULL
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5038
SELECT + CAST ( NULL AS INTEGER ) + + col2, 98 col0 FROM tab1 AS cor0
----
NULL
98
NULL
98
NULL
98

query I rowsort
SELECT col0 + - + 32 AS col2 FROM tab2 AS cor0
----
14
32
43

query I rowsort
SELECT DISTINCT + 85 + col2 FROM tab0 AS cor0
----
132
184
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 99 + + + ( - 90 )
----

query I rowsort
SELECT + - col1 + - + col1 + - 53 AS col1 FROM tab1 AS cor0
----
-147
-63
-81

query II rowsort
SELECT ALL - col2 AS col1, 46 FROM tab0
----
-10
46
-47
46
-99
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - COUNT( col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5044
SELECT - COUNT ( col0 ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT DISTINCT - CAST( - 33 AS SIGNED ) AS col1 FROM tab1
----
33

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

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

query I rowsort
SELECT ALL - 34 * + col2 FROM tab2 AS cor0
----
-1360
-1972
-782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT ( CAST( NULL AS SIGNED ) ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5049
SELECT + 40 * + COUNT( * ) * CAST( + + 35 AS SIGNED ) FROM tab1 AS cor0
----
4200

skipif mysql # not compatible
query I rowsort label-5049
SELECT + 40 * + COUNT ( * ) * CAST ( + + 35 AS INTEGER ) FROM tab1 AS cor0
----
4200

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 35 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 AND + col1 / + + ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - 79 * + col0 AS col0, + col0 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + + 7 NOT BETWEEN col2 AND NULL )
----
-3634
-2346
-5056
-4928
-5925
-5025

query II rowsort
SELECT ALL col0, + col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL - col1 + - 79 FROM tab0 WHERE NOT - col2 IS NOT NULL OR NOT NULL IS NOT NULL
----
-100
-160
-80

query II rowsort
SELECT col1, 45 FROM tab0
----
1
45
21
45
81
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 col0, - 94 + - col0 AS col2 FROM tab1 AS cor0
----
4
-145
4
-179
4
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5059
SELECT COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 * + ( - 7 ) + - col0 + - 68 FROM tab1 AS cor0
----
-476
-748
-796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT ALL + CAST( NULL AS SIGNED ) + - MAX( - 19 ) * + - CAST( - 58 AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - - 18 + + - col0 FROM tab0 AS cor0
----
-69
-79
3

query I rowsort
SELECT ALL - col1 + col2 + col0 + 63 FROM tab2 AS cor0
----
129
81
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, - col1 + - 11 AS col2 FROM tab0
----
-1
-12
-21
-32
-81
-92

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE - col2 + + - col2 + - col2 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - col2 / + col0 AS col2 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL - + col2 + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT ( col2 ) - - col1 * col0 * - col1 FROM tab2
----
-119623
-336617
-379416

query I rowsort
SELECT ALL - col2 * - 21 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5070
SELECT ALL COUNT( ALL col1 ) DIV + 85 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL COUNT ( ALL col1 ) / + 85 FROM tab1 cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( 75 ) col0 FROM tab1 AS cor0
----
-4425
-5100
-7200

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 + + col0 <> + col0 * - + 68 / - ( - 52 )
----

query I rowsort
SELECT col1 / - + 46 + 29 + - 15 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL ( MIN( ( + ( + 87 ) ) ) ) AS col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL ( MIN ( ( + ( + 87 ) ) ) ) AS col1 FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5076
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / - - col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5076
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / - - col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL col1 AS col1, + col2 * + col2 + col2 AS col0, + col0 * + 9 FROM tab0
----
9 values hashing to ab6a316ab45d8ab452c72742dcc99a4d

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 <> 46
----

query I rowsort
SELECT DISTINCT 78 * + - col1 AS col2 FROM tab1 AS cor0
----
-1092
-3666
-390

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + 84 - + col1 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT DISTINCT - col2 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + 58 * - 19 AS col0 FROM tab2 AS cor0
----
-1102
-1102
-1102

query III rowsort
SELECT + 43 * 33 + + col0 AS col0, 68 AS col0, col0 AS col0 FROM tab0 cor0
----
9 values hashing to 3be86dc464a5c89d380f3c06631850e2

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT - - col1 DIV - - 29 col0 FROM tab1 AS cor0
----
0
0
1

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

query II rowsort
SELECT col1, col0 + + col2 FROM tab2 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL + + 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + - 68 + - col2 AS col1 FROM tab0 AS cor0
----
-115
-167
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col0 / + 88 + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT DISTINCT - 67 DIV 58 + + 0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT - 67 / 58 + + 0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 43 - col1, col0 col1 FROM tab0 AS cor0
----
-38
15
22
87
42
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT + SUM( + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT + SUM ( + col0 ) AS col0 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT DISTINCT MAX( col2 ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5092
SELECT DISTINCT MAX ( col2 ) col1 FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 91 BETWEEN + - ( - + col1 ) AND col2 AND - col2 IS NOT NULL
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT ALL + 51 - CAST( NULL AS SIGNED ) * - - 82 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + 51 - CAST ( NULL AS INTEGER ) * - - 82 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 95 * - 65 AS col1 FROM tab0
----
-6175
-6175
-6175

query I rowsort
SELECT DISTINCT - 18 * 57 AS col2 FROM tab0
----
-1026

query I rowsort
SELECT - col2 - + + 60 AS col1 FROM tab0
----
-107
-159
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT DISTINCT col2 DIV - + col1 + + ( + + col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT col2 / - + col1 + + ( + + col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT ALL CAST( NULL AS SIGNED ) / + - 75 FROM tab0 AS cor0 WHERE NULL < + col1 * 73
----

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL CAST ( NULL AS INTEGER ) / + - 75 FROM tab0 AS cor0 WHERE NULL < + col1 * 73
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5100
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( ( NULL BETWEEN - col1 * 10 / CAST( NULL AS DECIMAL ) AND NULL ) ) )
----

skipif mysql # not compatible
query III rowsort label-5100
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( ( NULL BETWEEN - col1 * 10 / CAST ( NULL AS REAL ) AND NULL ) ) )
----

query II rowsort
SELECT + col0 AS col2, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT DISTINCT COUNT( * ) AS col2, COUNT( ALL - col0 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5102
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT 68 * - col0 AS col1 FROM tab0
----
-1020
-5916
-6596

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT ALL - 44 DIV + 74 * + + col1 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5105
SELECT ALL - 44 / + 74 * + + col1 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT DISTINCT + COUNT( * ), 34 AS col2 FROM tab2 cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-5107
SELECT DISTINCT + COUNT ( * ), 34 AS col2 FROM tab2 cor0
----
3
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + 80 * - COUNT( * ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-5108
SELECT + 80 * - COUNT ( * ) FROM tab1 AS cor0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT + CAST( col1 AS SIGNED ) FROM tab0 WHERE NOT NULL = + 70 * - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * col1
----

skipif mysql # not compatible
query I rowsort label-5110
SELECT + CAST ( col1 AS INTEGER ) FROM tab0 WHERE NOT NULL = + 70 * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * col1
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5112
SELECT + MIN( - col0 ), COUNT( * ) * - MIN( DISTINCT + col0 ) AS col0 FROM tab2
----
-75
-138

skipif mysql # not compatible
query II rowsort label-5112
SELECT + MIN ( - col0 ), COUNT ( * ) * - MIN ( DISTINCT + col0 ) AS col0 FROM tab2
----
-75
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-5113
SELECT col2 DIV col1 * + + 13 FROM tab1
----
13
143
78

skipif mysql # not compatible
query I rowsort label-5113
SELECT col2 / col1 * + + 13 FROM tab1
----
13
143
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT MIN( ALL + 68 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-5114
SELECT MIN ( ALL + 68 ) FROM tab2
----
68

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 5 * - 17 / col1 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5117
SELECT - col0 + + col0, - col0 DIV + ( + col0 ) AS col0 FROM tab0 AS cor0
----
0
-1
0
-1
0
-1

skipif mysql # not compatible
query II rowsort label-5117
SELECT - col0 + + col0, - col0 / + ( + col0 ) AS col0 FROM tab0 AS cor0
----
0
-1
0
-1
0
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 3 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 16 * - col1 FROM tab0
----
-1296
-16
-336

query I rowsort
SELECT DISTINCT - col0 + - + 25 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 84 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - ( + col1 ) - 28 FROM tab2 AS cor0
----
-105
-79
-95

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE 62 BETWEEN + 54 + - col2 * 59 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5124
SELECT COUNT( * ) DIV - MAX( + - 6 ) + 31 col0 FROM tab2
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5124
SELECT COUNT ( * ) / - MAX ( + - 6 ) + 31 col0 FROM tab2
----
31

query I rowsort
SELECT DISTINCT 72 - + + col1 * - 95 FROM tab0
----
167
2067
7767

query I rowsort
SELECT DISTINCT - col1 * + - col1 AS col2 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5127
SELECT ALL 47 DIV + 84 - - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL 47 / + 84 - - COUNT ( * ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 84 col0 FROM tab1
----
1176
3948
420

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

query I rowsort
SELECT DISTINCT + col2 * + - col2 AS col0 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT + col1 * + 37 AS col0, col0 * col2 * + 4 AS col2 FROM tab1
----
1739
24752
185
20060
518
19584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT 40 * COUNT( * ) DIV COUNT( * ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-5132
SELECT 40 * COUNT ( * ) / COUNT ( * ) FROM tab2
----
40

query I rowsort
SELECT ALL 92 - - 0 * - 92 AS col1 FROM tab1
----
92
92
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT + 69 + - + 78 + + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT + 69 + - + 78 + + COUNT ( * ) FROM tab0
----
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * 44 + 4 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT + + COUNT( DISTINCT + + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5137
SELECT + + COUNT ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT 37 BETWEEN + col2 AND NULL )
----
15
81
47
97
1
99

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT ( NULL > NULL ) )
----

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

query I rowsort
SELECT - 64 * + col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5143
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT ALL 68 DIV - col0 AS col0 FROM tab0 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL 68 / - col0 AS col0 FROM tab0 cor0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + ( - MIN( ALL + - col0 ) ) * - 64 AS col0 FROM tab2 AS cor0
----
-4800

skipif mysql # not compatible
query I rowsort label-5145
SELECT + ( - MIN ( ALL + - col0 ) ) * - 64 AS col0 FROM tab2 AS cor0
----
-4800

query II rowsort
SELECT ALL - - col2 AS col1, - col0 - col2 AS col0 FROM tab2 AS cor0
----
23
-69
40
-104
58
-133

query I rowsort
SELECT ALL col2 * + col2 + - col0 FROM tab0 AS cor0
----
13
2194
9704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT ALL + CAST( NULL AS SIGNED ) * - ( + + 65 ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( + + 65 ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT + ( + 6 ) * - + COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + ( + 6 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-18

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 + + + col0 * - col0 >= NULL
----

query I rowsort
SELECT + 68 - - + col2 AS col1 FROM tab0 WHERE NOT NULL >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5152
SELECT + + 47 AS col2, col2 FROM tab1 WHERE NULL BETWEEN - - CAST( - - col1 AS SIGNED ) AND 56 + + col0
----

skipif mysql # not compatible
query II rowsort label-5152
SELECT + + 47 AS col2, col2 FROM tab1 WHERE NULL BETWEEN - - CAST ( - - col1 AS INTEGER ) AND 56 + + col0
----

query I rowsort
SELECT DISTINCT + col1 + - col0 + - 60 AS col2 FROM tab2
----
-47
-55
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5154
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * col0 > + 96 * - ( + + 47 ) + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5154
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * col0 > + 96 * - ( + + 47 ) + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5155
SELECT DISTINCT CAST( col0 AS SIGNED ) * + CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT DISTINCT + - COUNT( * ) FROM tab0 WHERE NOT col0 + + - col0 * + col2 - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + - COUNT ( * ) FROM tab0 WHERE NOT col0 + + - col0 * + col2 - col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT - 69 + - 35 * - CAST( NULL AS SIGNED ) + - + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5158
SELECT + MIN( DISTINCT - CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5158
SELECT + MIN ( DISTINCT - CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT ( + col1 ), + col0 * + - ( - col2 ) * - + col0 + col1 * + 39 AS col2 FROM tab2 AS cor0
----
51
-46679
67
-323637
77
-160837

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT + MIN( col2 ) AS col0, 90 AS col0 FROM tab0 AS cor0
----
10
90

skipif mysql # not compatible
query II rowsort label-5160
SELECT + MIN ( col2 ) AS col0, 90 AS col0 FROM tab0 AS cor0
----
10
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT DISTINCT + 1 - - 41 + - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + 1 - - 41 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5162
SELECT ALL col1 - col1 * - col2 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + 31 - - col0 FROM tab2 AS cor0
----
106
77
95

query III rowsort
SELECT * FROM tab0 WHERE ( + 16 * - + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) - - col2 + col1 AS col0 FROM tab1
----
124
162
69

query I rowsort
SELECT ALL - 24 - - 25 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - 91 * - col2 FROM tab1
----
5369
6188
8736

query I rowsort
SELECT col2 * + + 27 FROM tab0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT 9 * + + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5169
SELECT 9 * + + COUNT ( * ) FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT + SUM( + + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-5170
SELECT + SUM ( + + col1 ) FROM tab1 cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 + + 84 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL + MIN( DISTINCT - - 94 ) * + COUNT( + col0 ) AS col0 FROM tab0 cor0
----
282

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL + MIN ( DISTINCT - - 94 ) * + COUNT ( + col0 ) AS col0 FROM tab0 cor0
----
282

query I rowsort
SELECT ALL col0 + 45 AS col2 FROM tab2
----
109
120
91

query III rowsort
SELECT * FROM tab1 WHERE ( 21 + 5 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - MAX( DISTINCT - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5175
SELECT - MAX ( DISTINCT - col2 ) FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5176
SELECT DISTINCT CAST( 81 AS SIGNED ) AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT CAST ( 81 AS INTEGER ) AS col0 FROM tab1
----
81

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL col0 * - col1 + col0 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5179
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + 78 - col2 FROM tab2
----
20
38
55

query I rowsort
SELECT + 12 - ( + 80 ) AS col2 FROM tab0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + 37 * + 13 AS col2 FROM tab1
----
481

query I rowsort
SELECT DISTINCT + 8 + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
93
99

query I rowsort
SELECT DISTINCT + col1 * - 61 FROM tab1
----
-2867
-305
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT col2 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5185
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT col2 IS NULL
----
-9

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( + col1 ) > NULL
----

query I rowsort
SELECT + 61 * + col1 FROM tab1
----
2867
305
854

query I rowsort
SELECT 8 * 61 AS col2 FROM tab2
----
488
488
488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + col1 col0 FROM tab2
----
128
144
154

query I rowsort
SELECT DISTINCT - col2 + - col2 * - col0 AS col0 FROM tab0
----
658
860
9504

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> 14 * + 91
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 70 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL - CAST( + col0 AS SIGNED ) + 62 * CAST( col1 AS SIGNED ) FROM tab1
----
225
2823
817

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL - CAST ( + col0 AS INTEGER ) + 62 * CAST ( col1 AS INTEGER ) FROM tab1
----
225
2823
817

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT COUNT( * ) col0 FROM tab1 WHERE NOT 3 BETWEEN 72 AND + col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5194
SELECT COUNT ( * ) col0 FROM tab1 WHERE NOT 3 BETWEEN 72 AND + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL + COUNT( * ) * - 1 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + COUNT ( * ) * - 1 AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5196
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5196
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 8 - + 33 * + ( - 83 ) AS col2 FROM tab1 AS cor0
----
2731
2731
2731

query I rowsort
SELECT DISTINCT col2 + + 68 * col2 AS col0 FROM tab1 AS cor0 WHERE - col2 * + col2 >= col2 + 21
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 * - 53 + 20 * - ( col2 ) ) BETWEEN - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - MIN( + 59 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT 14 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT - MIN ( + 59 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT 14 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT - COUNT( * ) * - 21 col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5201
SELECT DISTINCT - COUNT ( * ) * - 21 col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
189

query I rowsort
SELECT ALL - 6 * 59 + + col0 FROM tab0 AS cor0 WHERE NOT + col2 / - col2 NOT IN ( col0 * - col0 + col2 )
----

query I rowsort
SELECT DISTINCT + + 6 * + col2 + col2 FROM tab0 AS cor0
----
329
693
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT - 55 DIV - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-19
-81
54

skipif mysql # not compatible
query I rowsort label-5204
SELECT - 55 / - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-19
-81
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN - 41 + col2 AND ( NULL )
----

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5207
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN ( col2 ) AND ( + col2 + col0 * 17 )
----

skipif mysql # not compatible
query III rowsort label-5207
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN ( col2 ) AND ( + col2 + col0 * 17 )
----

query I rowsort
SELECT 81 * + - col2 FROM tab0
----
-3807
-8019
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL + ( - MAX( col2 ) ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + ( - MAX ( col2 ) ) AS col1 FROM tab1
----
-96

query I rowsort
SELECT + col1 * + 67 * col2 FROM tab2
----
206360
260362
78591

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT + col0 / - 92 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL - MIN( 96 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL - MIN ( 96 ) FROM tab2
----
-96

query I rowsort
SELECT col0 * - col1 + - col2 FROM tab1 cor0
----
-4345
-484
-810

query I rowsort
SELECT - 72 * + - col2 AS col2 FROM tab2 AS cor0
----
1656
2880
4176

query I rowsort
SELECT - col0 * + col2 + 5 AS col0 FROM tab2 AS cor0
----
-1053
-2555
-4345

query I rowsort
SELECT + 49 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

query I rowsort
SELECT - 52 AS col0 FROM tab1 AS cor0 WHERE NOT 59 - + col0 IN ( - col2 )
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT 67 + - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-8
21
3

skipif mysql # not compatible
query I rowsort label-5219
SELECT 67 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-8
21
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= ( NULL ) OR NOT - col1 * + col2 + 2 > + 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 47 NOT BETWEEN - 41 - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT ALL - 40 DIV col0 * + - col0 FROM tab0 AS cor0
----
0
0
30

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL - 40 / col0 * + - col0 FROM tab0 AS cor0
----
0
0
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - SUM( col1 ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
-585

skipif mysql # not compatible
query I rowsort label-5224
SELECT - SUM ( col1 ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + - MIN( DISTINCT + 2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-5225
SELECT + - MIN ( DISTINCT + 2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-2

query III rowsort
SELECT * FROM tab2 WHERE - 7 + + col1 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col2 ) col1, - col1 AS col1 FROM tab1
----
-59
-5
-68
-47
-96
-14

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5229
SELECT - MAX( + col0 ) FROM tab0 WHERE - 45 + - col0 / - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT - MAX ( + col0 ) FROM tab0 WHERE - 45 + - col0 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - ( + 38 ) FROM tab0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - 73 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5232
SELECT ALL 39 DIV col0 + + 34 FROM tab1
----
34
34
34

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL 39 / col0 + + 34 FROM tab1
----
34
34
34

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND ( + col0 * + - 48 )
----

query I rowsort
SELECT 4 + - 20 AS col1 FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT + - col0 + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-5235
SELECT + - col0 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT - + ( ( + col1 ) ) + col2 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 - - + 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 17 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 58 - + 2 FROM tab2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL - COUNT( * ) - - 99 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL - COUNT ( * ) - - 99 FROM tab2
----
96

query I rowsort
SELECT ALL - 12 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query II rowsort
SELECT 93 AS col1, - col1 * - + 63 AS col1 FROM tab1
----
93
2961
93
315
93
882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT ALL col2 - CAST( - col1 + ( + col0 ) AS SIGNED ) FROM tab2 WHERE NOT - 86 + + - 40 * - col2 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL col2 - CAST ( - col1 + ( + col0 ) AS INTEGER ) FROM tab2 WHERE NOT - 86 + + - 40 * - col2 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT - SUM( DISTINCT + 67 ) * - ( 98 ) FROM tab0 AS cor0
----
6566

skipif mysql # not compatible
query I rowsort label-5244
SELECT - SUM ( DISTINCT + 67 ) * - ( 98 ) FROM tab0 AS cor0
----
6566

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - 99 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT + 0 DIV + col0 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT ALL + 5 DIV + col2 * - - col2 + - - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + 5 / + col2 * - - col2 + - - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - ( 7 ) FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 34 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5249
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 34 IS NULL
----
-3

query I rowsort
SELECT ALL - col1 * + 13 * - col1 AS col1 FROM tab0
----
13
5733
85293

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 28 + - + col1 + col1 <= NULL
----

query II rowsort
SELECT DISTINCT col0, + 40 * col0 + - col2 AS col1 FROM tab2
----
46
1817
64
2520
75
2942

onlyif mysql # aggregate syntax: 
query II rowsort label-5253
SELECT DISTINCT COUNT( * ) AS col2, 88 FROM tab1
----
3
88

skipif mysql # not compatible
query II rowsort label-5253
SELECT DISTINCT COUNT ( * ) AS col2, 88 FROM tab1
----
3
88

query III rowsort
SELECT 89, + col1, + + 30 AS col0 FROM tab1
----
9 values hashing to d50e357e2ec4722716a72c4897e9563d

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT - col1 BETWEEN ( col0 ) AND col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT + COUNT( ALL + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5256
SELECT + COUNT ( ALL + col2 ) FROM tab0
----
3

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT ( + col0 < NULL )
----

query I rowsort
SELECT ALL - ( - 99 ) FROM tab1 AS cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5259
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + col1 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5259
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + col1 + + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT - - 12, + 26 + - + col1 AS col2 FROM tab0 AS cor0
----
12
-55
12
25
12
5

query I rowsort
SELECT ALL col1 + + 47 * col2 AS col1 FROM tab2 cor0
----
1132
1957
2793

query I rowsort
SELECT ALL + col2 * - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 29 = - col1 * + - col0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5263
SELECT DISTINCT + CAST( + + 16 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT ALL CAST( + - 97 AS SIGNED ) FROM tab0 AS cor0
----
-97
-97
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT col2 / - CAST( NULL AS SIGNED ) + - ( - ( + 42 ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE - 29 >= col2 + - ( - col0 )
----

query I rowsort
SELECT DISTINCT 1 + col2 AS col2 FROM tab0
----
100
11
48

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT col0 + CAST( NULL AS SIGNED ) * ( - + col1 ) * - - 3 * + + 96 AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 67 * + 81 FROM tab0
----
5427

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5271
SELECT * FROM tab0 WHERE NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5271
SELECT * FROM tab0 WHERE NULL > CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT + MAX( ALL - col2 ) + MIN( DISTINCT + - col2 ) col2 FROM tab1
----
-155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5272
SELECT + MAX ( ALL - col2 ) + MIN ( DISTINCT + - col2 ) col2 FROM tab1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT DISTINCT - COUNT( * ) * + + 29 AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT - COUNT ( * ) * + + 29 AS col0 FROM tab0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT ALL 23 + - 37 DIV col2 * - - col0 * col0 * - col2 * - 51 + + col2 col1 FROM tab1 cor0
----
119
82
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5274
SELECT ALL 23 + - 37 / col2 * - - col0 * col0 * - col2 * - 51 + + col2 col1 FROM tab1 cor0
----
119
82
91

query I rowsort
SELECT DISTINCT + col2 + - - col2 AS col1 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT - col2 - - - col1 AS col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT col1 - - - col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 * - col1 - - ( col1 ) FROM tab0
----
100
231
3888

query I rowsort
SELECT ALL 52 + - + 89 FROM tab0, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL + - col2 * - 82 * - col2 FROM tab0 AS cor0
----
-181138
-803682
-8200

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5281
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5281
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( col1 AS REAL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / col2 NOT BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT DISTINCT + + col0 DIV col1 AS col1 FROM tab2 cor0
----
0
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT 35 / + - CAST( NULL AS SIGNED ) * 10 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT DISTINCT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL + 7 * - col0 FROM tab2
----
-322
-448
-525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * + col1 col1 FROM tab1
----
2491
265
742

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 87 * ( + - col0 ) - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT ALL - 73 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL - 73 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT ALL - - col1 DIV + + col1 + - col1 * - col0 FROM tab1 cor0
----
426
4278
715

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - - col1 / + + col1 + - col1 * - col0 FROM tab1 cor0
----
426
4278
715

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 57
----

query II rowsort
SELECT ( col0 ), - ( - 46 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
51
46
85
46
91
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT - - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT 14 + + + COUNT( * ) + 60 AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5294
SELECT 14 + + + COUNT ( * ) + 60 AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT IN ( + - col0 + - 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT - ( + SUM( ALL + - col1 ) ) * COUNT( - + col0 ) col1 FROM tab2
----
585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5297
SELECT DISTINCT - ( + SUM ( ALL + - col1 ) ) * COUNT ( - + col0 ) col1 FROM tab2
----
585

query I rowsort
SELECT + 89 - - + col0 AS col1 FROM tab1 WHERE NOT NULL > col1
----

query II rowsort
SELECT 79 AS col1, col1 FROM tab2
----
79
51
79
67
79
77

query II rowsort
SELECT col0, - col2 * + ( - 42 ) FROM tab0
----
15
1974
87
420
97
4158

query II rowsort
SELECT + - col0, - 9 AS col0 FROM tab0 AS cor0
----
-15
-9
-87
-9
-97
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT - - MAX( - 25 ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5302
SELECT - - MAX ( - 25 ) FROM tab1 AS cor0
----
-25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 88 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NOT 55 <= ( + col0 * - - 30 / - 94 )
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= - col1 )
----

query I rowsort
SELECT ALL ( + - 64 ) AS col0 FROM tab2 AS cor0
----
-64
-64
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( - + col2, + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - ( - col2 ) * - - col1 col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT ALL - col1 DIV - 4 AS col0 FROM tab2
----
12
16
19

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - col1 / - 4 AS col0 FROM tab2
----
12
16
19

query II rowsort
SELECT DISTINCT col1 AS col2, + 70 FROM tab1 WHERE + col1 NOT BETWEEN - col0 - - col2 * + col2 AND NULL
----
14
70
47
70
5
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + 36 * + MIN( DISTINCT - 72 ) FROM tab1
----
-2592

skipif mysql # not compatible
query I rowsort label-5311
SELECT + 36 * + MIN ( DISTINCT - 72 ) FROM tab1
----
-2592

query III rowsort
SELECT * FROM tab0 WHERE NOT - 0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 36 NOT BETWEEN ( - col1 * - + col2 * - - col1 / 96 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5314
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * CAST( - col1 AS SIGNED ) NOT IN ( 70, col1 - + col0 + + + col1 * + - 5 * + 37 )
----

skipif mysql # not compatible
query III rowsort label-5314
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * CAST ( - col1 AS INTEGER ) NOT IN ( 70, col1 - + col0 + + + col1 * + - 5 * + 37 )
----

query II rowsort
SELECT ALL - 51 * + 23 AS col0, - 91 FROM tab1
----
-1173
-91
-1173
-91
-1173
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > 44 + - 45
----

query I rowsort
SELECT DISTINCT col2 * + 54 AS col0 FROM tab0
----
2538
5346
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL - + SUM( - col2 ) * 97 FROM tab0 AS cor0
----
15132

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - + SUM ( - col2 ) * 97 FROM tab0 AS cor0
----
15132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT ALL + - CAST( - 96 AS SIGNED ) * - 0 + col1 - + col1 * - col1 FROM tab1 AS cor0
----
210
2256
30

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL + - CAST ( - 96 AS INTEGER ) * - 0 + col1 - + col1 * - col1 FROM tab1 AS cor0
----
210
2256
30

query I rowsort
SELECT + 86 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 45 AND - 54 + + 87
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT COUNT( * ) * - 70 col1 FROM tab1
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5322
SELECT COUNT ( * ) * - 70 col1 FROM tab1
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT ALL col0 * + col1 * - col1 DIV + col1 - + + col2 FROM tab2
----
-2369
-4968
-5083

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL col0 * + col1 * - col1 / + col1 - + + col2 FROM tab2
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT - SUM( + + 53 ) FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - SUM ( + + 53 ) FROM tab1
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT + col1 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 85 col2, col1 AS col0 FROM tab2
----
-85
51
-85
67
-85
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT DISTINCT - 90 * + 28 * SUM( DISTINCT - - col1 ) + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-259569

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - 90 * + 28 * SUM ( DISTINCT - - col1 ) + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-259569

query II rowsort
SELECT - col1 + col1 AS col0, - col2 AS col1 FROM tab1 cor0 WHERE NOT ( NOT ( - col2 ) IS NOT NULL )
----
0
-59
0
-68
0
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT MAX( ALL + ( col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5329
SELECT MAX ( ALL + ( col1 ) ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col0 * col2 < + 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 72 AS col0, 43 * 68 + col0 FROM tab1 AS cor0
----
72
2975
72
3009
72
3015

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT - ( MAX( ALL + 52 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-52

skipif mysql # not compatible
query I rowsort label-5332
SELECT - ( MAX ( ALL + 52 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5333
SELECT + - 24 DIV - 13 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5333
SELECT + - 24 / - 13 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT + + COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT COUNT( 33 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5335
SELECT COUNT ( 33 ) FROM tab0 cor0
----
3

query II rowsort
SELECT - 23 * - col1 AS col2, + col0 FROM tab1 AS cor0
----
1081
91
115
85
322
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - col0 * + 24 * + col0 * + - ( + col2 ) * - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5338
SELECT + + 1 * COUNT( * ) AS col0, 37 AS col0 FROM tab1 AS cor0
----
3
37

skipif mysql # not compatible
query II rowsort label-5338
SELECT + + 1 * COUNT ( * ) AS col0, 37 AS col0 FROM tab1 AS cor0
----
3
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5339
SELECT DISTINCT 26 DIV + SUM( ALL + col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT 26 / + SUM ( ALL + col2 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT - ( - + COUNT( * ) ) * - + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5340
SELECT - ( - + COUNT ( * ) ) * - + COUNT ( * ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT ALL + col0 * - + 57 FROM tab0
----
-4959
-5529
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5342
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 46 + - + 17 AS col2 FROM tab2 cor0
----
-63
-63
-63

query I rowsort
SELECT + col0 + col0 + - - 34 FROM tab1
----
136
204
216

onlyif mysql # DIV for integer division: 
query II rowsort label-5346
SELECT ALL col2 DIV + col1, ( - 48 ) AS col2 FROM tab1
----
1
-48
11
-48
6
-48

skipif mysql # not compatible
query II rowsort label-5346
SELECT ALL col2 / + col1, ( - 48 ) AS col2 FROM tab1
----
1
-48
11
-48
6
-48

query I rowsort
SELECT - 21 FROM tab2 WHERE + 35 - - col0 + col0 IS NOT NULL
----
-21
-21
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5348
SELECT + + MIN( DISTINCT - + col0 ) DIV + 23 col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5348
SELECT + + MIN ( DISTINCT - + col0 ) / + 23 col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + 65 * - col1 * + + 92 FROM tab1 AS cor0
----
-281060
-29900
-83720

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 64 <> + + col0 / - + col0 + + col2 + + 70 + col2 + 33 * + - 16 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ( - + ( + COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5351
SELECT ( - + ( + COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 87 AS col1 FROM tab1 AS cor0 WHERE + 69 NOT BETWEEN + - col1 * - col2 / 74 AND NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - + col2 ) = NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE ( NULL <> - - col0 - 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT - MIN( - 81 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT - MIN ( - 81 ) FROM tab2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT DISTINCT - ( + 54 ) - + CAST( - + col0 AS SIGNED ) FROM tab1
----
-3
31
37

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT - ( + 54 ) - + CAST ( - + col0 AS INTEGER ) FROM tab1
----
-3
31
37

query I rowsort
SELECT + 6 * - col2 * + col0 + + - 89 FROM tab0
----
-4319
-5309
-57707

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT + COUNT( * ) * COUNT( ALL + - col2 ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5359
SELECT + COUNT ( * ) * COUNT ( ALL + - col2 ) AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT + 60 * + + 59 FROM tab0 AS cor0
----
3540
3540
3540

onlyif mysql # aggregate syntax: 
query II rowsort label-5361
SELECT ALL - MIN( DISTINCT + col0 ) col1, - 2 AS col1 FROM tab2
----
-46
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5361
SELECT ALL - MIN ( DISTINCT + col0 ) col1, - 2 AS col1 FROM tab2
----
-46
-2

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

query II rowsort
SELECT col2, 48 FROM tab1
----
59
48
68
48
96
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT MAX( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5364
SELECT MAX ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5365
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - - col1 ) AND col1
----
0

skipif mysql # not compatible
query I rowsort label-5366
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - - col1 ) AND col1
----
0

query I rowsort
SELECT DISTINCT + col2 * 22 AS col2 FROM tab2 AS cor0
----
1276
506
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT - - 84 * + CAST( + + col0 AS SIGNED ) + - 39 * + - col0 FROM tab0 cor0 WHERE NOT - col2 / + col1 NOT IN ( - + 17 * 52, col2, - col2 )
----
11931

skipif mysql # not compatible
query I rowsort label-5368
SELECT - - 84 * + CAST ( + + col0 AS INTEGER ) + - 39 * + - col0 FROM tab0 cor0 WHERE NOT - col2 / + col1 NOT IN ( - + 17 * 52, col2, - col2 )
----
11931

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5369
SELECT 86 DIV + 52, COUNT( * ) AS col2 FROM tab1
----
1
3

skipif mysql # not compatible
query II rowsort label-5369
SELECT 86 / + 52, COUNT ( * ) AS col2 FROM tab1
----
1
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5370
SELECT + MAX( 7 ) AS col2, COUNT( - col0 ) AS col1 FROM tab0
----
7
3

skipif mysql # not compatible
query II rowsort label-5370
SELECT + MAX ( 7 ) AS col2, COUNT ( - col0 ) AS col1 FROM tab0
----
7
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT col1 DIV - + col0 AS col0 FROM tab2
----
-1
-1
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT col0 * - CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL
NULL
NULL

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

query II rowsort
SELECT ( + 44 ) + col1 AS col0, 59 * - 85 AS col0 FROM tab1
----
49
-5015
58
-5015
91
-5015

query I rowsort
SELECT ALL + 89 + - col1 FROM tab2 AS cor0
----
12
22
38

query I rowsort
SELECT col0 + 39 FROM tab2 WHERE NULL <= + 72
----

query I rowsort
SELECT 58 + + col1 * + + col2 * 31 * - col0 FROM tab2 AS cor0
----
-1672640
-6110662
-9034892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - - col2 col0 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT col1 + - - 46 + - + 31 - + col0 * 79 AS col2 FROM tab2 AS cor0
----
-3568
-4964
-5843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT ALL - CAST( - - col2 AS SIGNED ) - - - 15 FROM tab2 AS cor0
----
-38
-55
-73

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - CAST ( - - col2 AS INTEGER ) - - - 15 FROM tab2 AS cor0
----
-38
-55
-73

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5381
SELECT DISTINCT - SUM( ALL CAST( - 91 AS SIGNED ) ) col2 FROM tab2 WHERE NOT + - 28 IS NULL
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5381
SELECT DISTINCT - SUM ( ALL CAST ( - 91 AS INTEGER ) ) col2 FROM tab2 WHERE NOT + - 28 IS NULL
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ( - MAX( DISTINCT - col1 ) ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5382
SELECT ( - MAX ( DISTINCT - col1 ) ) col2 FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT 87 > + 56 / col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT - 95 + - 72 + - col1 * CAST( - - col2 AS SIGNED ) * col1 col1 FROM tab1 AS cor0
----
-150379
-1642
-18983

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5386
SELECT - 95 + - 72 + - col1 * CAST ( - - col2 AS INTEGER ) * col1 col1 FROM tab1 AS cor0
----
-150379
-1642
-18983

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL - + COUNT( - 89 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - + COUNT ( - 89 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT - CAST( NULL AS SIGNED ) + + + col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL + ( - - ( - col2 ) ) AS col1, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 AS col2, + 79 col0 FROM tab1 AS cor0
----
-51
79
-85
79
-91
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - + MAX( ALL col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5391
SELECT - + MAX ( ALL col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT 71 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * + col1 - ( 42 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT ALL - CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL - CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 >= + + 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col0 * 11 * - col1, - col1 col1 FROM tab2
----
-1316106
-51
-3703425
-67
-4174016
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT - + COUNT( * ) FROM tab2 WHERE + col2 >= col2
----
-3

skipif mysql # not compatible
query I rowsort label-5396
SELECT - + COUNT ( * ) FROM tab2 WHERE + col2 >= col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5397
SELECT MIN( CAST( NULL AS DECIMAL ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT MIN ( CAST ( NULL AS REAL ) ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 25 + col0 FROM tab0 cor0
----
112
122
40

query I rowsort
SELECT DISTINCT 11 + + 45 FROM tab0 cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT ALL + - 24 - + COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + - 24 - + COUNT ( * ) FROM tab2 AS cor0
----
-27

query III rowsort
SELECT * FROM tab1 WHERE 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5402
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5402
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 68 ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 77 - + - 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5405
SELECT ALL COUNT( * ) + - COUNT( * ) col2, 50 + + - COUNT( * ) FROM tab2 AS cor0
----
0
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5405
SELECT ALL COUNT ( * ) + - COUNT ( * ) col2, 50 + + - COUNT ( * ) FROM tab2 AS cor0
----
0
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5406
SELECT DISTINCT CAST( + col0 AS SIGNED ) * + 71 FROM tab0
----
1065
6177
6887

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * + 71 FROM tab0
----
1065
6177
6887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT + ( - col2 ) FROM tab2 AS cor0 WHERE CAST( - - col1 AS SIGNED ) - col0 + 54 * 90 * col1 + + col1 + + 50 * - - 17 <> + col2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + ( - col2 ) FROM tab2 AS cor0 WHERE CAST ( - - col1 AS INTEGER ) - col0 + 54 * 90 * col1 + + col1 + + 50 * - - 17 <> + col2
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5409
SELECT DISTINCT - 48, - COUNT( * ) DIV - 47 AS col0 FROM tab0 AS cor0
----
-48
0

skipif mysql # not compatible
query II rowsort label-5409
SELECT DISTINCT - 48, - COUNT ( * ) / - 47 AS col0 FROM tab0 AS cor0
----
-48
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT ALL - + 70 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL - + 70 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-14
-5

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 17 FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT DISTINCT 83 * col1 FROM tab0
----
1743
6723
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( + + col0 ) col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + col0 + col2 + + 62 FROM tab0
----
124
159
258

query II rowsort
SELECT DISTINCT - + col2 + - 85, + 22 AS col1 FROM tab2 AS cor0
----
-108
22
-125
22
-143
22

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 17 AS col1 FROM tab2 AS cor0 WHERE 82 IS NOT NULL
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - col2 + 6 + 92 AS col2 FROM tab0 AS cor0
----
-1
51
88

query I rowsort
SELECT + 16 + - - 3 + 65 FROM tab1
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT SUM( ALL - ( col2 ) ) + - 56 AS col0 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-5421
SELECT SUM ( ALL - ( col2 ) ) + - 56 AS col0 FROM tab2
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 86 col0 FROM tab2
----
109
126
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL - ( + COUNT( * ) ) * + 21 + + 35 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - ( + COUNT ( * ) ) * + 21 + + 35 FROM tab2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5424
SELECT + CAST( NULL AS DECIMAL ) + + 88 + + ( - 89 ) * - - 87 * MIN( ALL + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT + CAST ( NULL AS REAL ) + + 88 + + ( - 89 ) * - - 87 * MIN ( ALL + col0 ) FROM tab0
----
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT + col0 + 20 AS col2 FROM tab2
----
66
84
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 25 * + - col1 + + - col2 * - 98 IN ( col2, - 83 * 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 > NULL
----

query I rowsort
SELECT ALL + 41 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, 11 FROM tab1 AS cor0
----
51
11
85
11
91
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5431
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - col2 + - - col1 > - 14 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5431
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - col2 + - - col1 > - 14 + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + col1, + col0 + 78 FROM tab2 AS cor0
----
51
124
67
153
77
142

query I rowsort
SELECT col0 * - 12 FROM tab0 AS cor0
----
-1044
-1164
-180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5434
SELECT ALL + CAST( col2 AS SIGNED ) AS col0, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-5434
SELECT ALL + CAST ( col2 AS INTEGER ) AS col0, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT COUNT( * ), SUM( ALL + + col2 ) AS col2 FROM tab1 AS cor0
----
3
223

skipif mysql # not compatible
query II rowsort label-5435
SELECT COUNT ( * ), SUM ( ALL + + col2 ) AS col2 FROM tab1 AS cor0
----
3
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT + SUM( - - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5436
SELECT + SUM ( - - col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT - col1 * - + col0 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + col0 * + col1 FROM tab1 WHERE ( - + 80 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col0 * + col1 FROM tab1 WHERE ( - + 80 ) IS NULL
----

query I rowsort
SELECT DISTINCT 76 * + + 38 * col2 FROM tab0
----
135736
285912
28880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 74 * + 69 FROM tab1
----
5106
5106
5106

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 / col2 - - - col0 + + 88 - + col0 < NULL
----

query I rowsort
SELECT ( + - col2 ) * + + ( 13 ) AS col2 FROM tab2 cor0
----
-299
-520
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT + MAX( DISTINCT - col2 ) * COUNT( * ) - + COUNT( * ) FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5444
SELECT + MAX ( DISTINCT - col2 ) * COUNT ( * ) - + COUNT ( * ) FROM tab0 cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ( 81 ) * + ( SUM( ALL col1 ) ) AS col0 FROM tab1 AS cor0
----
5346

skipif mysql # not compatible
query I rowsort label-5445
SELECT ( 81 ) * + ( SUM ( ALL col1 ) ) AS col0 FROM tab1 AS cor0
----
5346

query I rowsort
SELECT - 45 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT col2 + - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-5447
SELECT col2 + - col0 / col0 AS col2 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5448
SELECT + COUNT( * ) + + COUNT( - + 54 ) DIV - - 29 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5448
SELECT + COUNT ( * ) + + COUNT ( - + 54 ) / - - 29 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 50 * - col0 * - - ( 17 ) + col1 + 36 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + - col2 col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT + + COUNT( + 75 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5451
SELECT + + COUNT ( + 75 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - - COUNT( + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5452
SELECT - - COUNT ( + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5453
SELECT DISTINCT * FROM tab2 WHERE NOT - - 58 + CAST( NULL AS SIGNED ) + - - col0 >= + col2
----

skipif mysql # not compatible
query III rowsort label-5453
SELECT DISTINCT * FROM tab2 WHERE NOT - - 58 + CAST ( NULL AS INTEGER ) + - - col0 >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT ALL CAST( - col0 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL CAST ( - col0 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT + col1 * - 20, col1 AS col2 FROM tab2
----
-1020
51
-1340
67
-1540
77

query I rowsort
SELECT + col0 FROM tab1 WHERE - ( - - 60 ) IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT ALL - col1 DIV - - col1 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - col1 / - - col1 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT - MIN( ALL - ( + col0 ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-5458
SELECT - MIN ( ALL - ( + col0 ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-5459
SELECT DISTINCT col1 DIV 68 AS col0, - 87 FROM tab1
----
0
-87

skipif mysql # not compatible
query II rowsort label-5459
SELECT DISTINCT col1 / 68 AS col0, - 87 FROM tab1
----
0
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL + MIN( ALL - col1 ) col2 FROM tab1 WHERE NOT col2 - + 6 IS NULL
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5461
SELECT ALL + MIN ( ALL - col1 ) col2 FROM tab1 WHERE NOT col2 - + 6 IS NULL
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-5462
SELECT DISTINCT - col1 DIV col1, col2 FROM tab1
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-5462
SELECT DISTINCT - col1 / col1, col2 FROM tab1
----
-1
59
-1
68
-1
96

query I rowsort
SELECT ALL ( + ( + col2 ) ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT - CAST( NULL AS SIGNED ) * - 65 - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT + col0 - - col2 + CAST( NULL AS SIGNED ) + - 52 + - 25 + col1 / + - col2 * + col0 + + - col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5466
SELECT DISTINCT - SUM( + + CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT - SUM ( + + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT - CAST( - 7 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
7
7
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT + MAX( ALL + + 26 ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT + MAX ( ALL + + 26 ) AS col2 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL - MAX( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - MAX ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 43 IS NULL
----

query I rowsort
SELECT ALL - 86 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-86
-86
-86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT + col0 NOT BETWEEN + + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT DISTINCT ( - + ( - CAST( ( + - COUNT( DISTINCT + - col2 ) ) AS SIGNED ) ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT ( - + ( - CAST ( ( + - COUNT ( DISTINCT + - col2 ) ) AS INTEGER ) ) ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT DISTINCT + 61, col1 FROM tab2
----
61
51
61
67
61
77

query I rowsort
SELECT ALL 29 + + - col0 FROM tab1 AS cor0 WHERE NOT - col0 + 46 * - - ( + - col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 <> col0 * + col2
----

query I rowsort
SELECT ALL + ( + ( + col0 ) ) FROM tab2 AS cor0 WHERE 4 / + col0 * - + col0 <> - 50 + + - 72 * + 34
----
46
64
75

query I rowsort
SELECT col2 * + col0 * + 81 AS col1 FROM tab0
----
57105
70470
777843

query I rowsort
SELECT DISTINCT + - 81 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-81

query I rowsort
SELECT ALL + ( col0 ) + + col2 + col2 FROM tab1 AS cor0
----
203
227
243

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE - ( + - col0 ) IN ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT + - 68 + + ( - MAX( ALL - col0 ) ) - - + COUNT( * ) + - - 46 FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT + - 68 + + ( - MAX ( ALL - col0 ) ) - - + COUNT ( * ) + - - 46 FROM tab2 cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT + COUNT( * ) + + 2 AS col2 FROM tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT + COUNT ( * ) + + 2 AS col2 FROM tab0 cor0
----
5

query I rowsort
SELECT DISTINCT col1 + col1 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT - - col0 + + col2 DIV + 46 FROM tab1 AS cor0
----
53
86
92

skipif mysql # not compatible
query I rowsort label-5485
SELECT - - col0 + + col2 / + 46 FROM tab1 AS cor0
----
53
86
92

query I rowsort
SELECT ALL + ( - 25 ) FROM tab1
----
-25
-25
-25

query I rowsort
SELECT col0 * + col1 * + col0 + - - col2 FROM tab2
----
107939
315432
376933

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT DISTINCT + COUNT( - + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT + COUNT ( - + col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + col1 * 72 + + col1 - + col0 AS col0 FROM tab0
----
-24
1446
5898

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT DISTINCT + 4 + + MAX( + col1 ) AS col0, COUNT( * ) FROM tab0
----
85
3

skipif mysql # not compatible
query II rowsort label-5490
SELECT DISTINCT + 4 + + MAX ( + col1 ) AS col0, COUNT ( * ) FROM tab0
----
85
3

query III rowsort
SELECT * FROM tab1 WHERE NULL < + - 76
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5492
SELECT ALL - COUNT( * ) DIV + 75 + + COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - COUNT ( * ) / + 75 + + COUNT ( * ) AS col2 FROM tab2 cor0
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5494
SELECT CAST( + 71 AS SIGNED ) AS col1, 53 + + - COUNT( * ) AS col0 FROM tab0
----
71
50

skipif mysql # not compatible
query II rowsort label-5494
SELECT CAST ( + 71 AS INTEGER ) AS col1, 53 + + - COUNT ( * ) AS col0 FROM tab0
----
71
50

query I rowsort
SELECT - 85 * - - ( col2 ) AS col1 FROM tab0 AS cor0
----
-3995
-8415
-850

query I rowsort
SELECT 10 + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + 26 * - col1 FROM tab1 AS cor0
----
-1222
-130
-364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5498
SELECT ALL + - CAST( + - COUNT( * ) AS SIGNED ) AS col2, COUNT( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5498
SELECT ALL + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, COUNT ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL 30 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 17 + + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 * - col1 + - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5502
SELECT DISTINCT - COUNT( * ) AS col0, ( + + ( CAST( + 74 AS SIGNED ) ) ) AS col0 FROM tab1
----
-3
74

skipif mysql # not compatible
query II rowsort label-5502
SELECT DISTINCT - COUNT ( * ) AS col0, ( + + ( CAST ( + 74 AS INTEGER ) ) ) AS col0 FROM tab1
----
-3
74

query I rowsort
SELECT DISTINCT - col1 * - - 96 * col1 + - 63 AS col0 FROM tab0
----
-159
-42399
-629919

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5504
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 > NULL
----
0

query I rowsort
SELECT DISTINCT col2 + col1 + col2 - col1 AS col2 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5506
SELECT - CAST( NULL AS SIGNED ), 20 AS col1 FROM tab2 AS cor0
----
NULL
20
NULL
20
NULL
20

skipif mysql # not compatible
query II rowsort label-5506
SELECT - CAST ( NULL AS INTEGER ), 20 AS col1 FROM tab2 AS cor0
----
NULL
20
NULL
20
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT SUM( DISTINCT - col1 ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5507
SELECT SUM ( DISTINCT - col1 ) col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5508
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT ALL - 12 + - + SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL - 12 + - + SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - + col1 FROM tab2 AS cor0
----
NULL

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

query II rowsort
SELECT - 75 AS col2, - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-75
0
-75
0
-75
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5512
SELECT + AVG ( ALL + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + 32 FROM tab0 cor0 WHERE 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5514
SELECT - + COUNT( * ) AS col0, + COUNT( + col0 ) AS col0 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5514
SELECT - + COUNT ( * ) AS col0, + COUNT ( + col0 ) AS col0 FROM tab0 AS cor0
----
-3
3

query II rowsort
SELECT ALL 87 * + col0, 7 * + col2 AS col1 FROM tab0
----
1305
329
7569
70
8439
693

query I rowsort
SELECT 86 - col1 * + col1 AS col0 FROM tab0
----
-355
-6475
85

query I rowsort
SELECT DISTINCT - col2 + + - col2 + - 84 + - + col1 AS col1 FROM tab2
----
-181
-241
-267

query I rowsort
SELECT ALL + - 17 * ( - + col0 ) + - col2 - - + col2 - - - col1 + - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT DISTINCT + CAST( + - 70 AS SIGNED ) * + - col1 * - - col1 AS col1 FROM tab0 AS cor0
----
30870
459270
70

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + CAST ( + - 70 AS INTEGER ) * + - col1 * - - col1 AS col1 FROM tab0 AS cor0
----
30870
459270
70

query I rowsort
SELECT DISTINCT - col0 * col2 + - col1 AS col1 FROM tab0 cor0 WHERE - 45 - + col1 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT ALL + COUNT( * ), + 53 AS col2 FROM tab2
----
3
53

skipif mysql # not compatible
query II rowsort label-5521
SELECT ALL + COUNT ( * ), + 53 AS col2 FROM tab2
----
3
53

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----

query I rowsort
SELECT - 91 * + 62 AS col2 FROM tab0
----
-5642
-5642
-5642

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT DISTINCT - ( - col2 ) DIV - 9 + - ( + 72 ) AS col0 FROM tab0
----
-73
-77
-83

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT - ( - col2 ) / - 9 + - ( + 72 ) AS col0 FROM tab0
----
-73
-77
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT COUNT( * ) * + 4 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5525
SELECT COUNT ( * ) * + 4 FROM tab2 AS cor0
----
12

query II rowsort
SELECT - 65, - col1 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - - col0 * 25 * - col0, + col2, + + 57 )
----

query II rowsort
SELECT DISTINCT - col0 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - 91 <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT - col2 DIV - - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5530
SELECT - col2 / - - col1 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT 25 + - col2 AS col0, - col2 AS col0 FROM tab1
----
-34
-59
-43
-68
-71
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + COUNT( * ) + - + MIN( col1 ) + - 14 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-5532
SELECT + COUNT ( * ) + - + MIN ( col1 ) + - 14 FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5533
SELECT ALL ( + + COUNT( * ) ) AS col2, - 16 AS col2 FROM tab1
----
3
-16

skipif mysql # not compatible
query II rowsort label-5533
SELECT ALL ( + + COUNT ( * ) ) AS col2, - 16 AS col2 FROM tab1
----
3
-16

query I rowsort
SELECT ALL col2 + col1 * - + 34 FROM tab0
----
-2707
-704
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT + CAST( ( + col1 ) AS SIGNED ) + - - 22 - + 52 AS col2 FROM tab1
----
-16
-25
17

skipif mysql # not compatible
query I rowsort label-5535
SELECT + CAST ( ( + col1 ) AS INTEGER ) + - - 22 - + 52 AS col2 FROM tab1
----
-16
-25
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5536
SELECT ALL + - CAST( NULL AS SIGNED ) + - 47 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-5536
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 47 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5537
SELECT - SUM( ALL + col2 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

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

query II rowsort
SELECT ALL 37, 16 + + col1 AS col1 FROM tab2
----
37
67
37
83
37
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 - + 83 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 97c4c0aef1ab10f2b47a89e7331ffaf6

query I rowsort
SELECT + col0 * col0 - col1 FROM tab1
----
2587
7220
8234

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 89 IS NOT NULL
----

query I rowsort
SELECT + - 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ( col2 ) FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 67 + - col2 col2 FROM tab1 AS cor0
----
-77
-80
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 * - col2 col1 FROM tab1 AS cor0
----
-4012
-4624
-6528

query I rowsort
SELECT + AVG ( DISTINCT + + 91 ) FROM tab2 AS cor0 WHERE col0 + + col1 / - - col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5548
SELECT DISTINCT - 51 DIV col2 + + 64 + + + col0 AS col0 FROM tab1 cor0
----
115
149
155

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT - 51 / col2 + + 64 + + + col0 AS col0 FROM tab1 cor0
----
115
149
155

query I rowsort
SELECT ALL - col2 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NULL > 79
----

query I rowsort
SELECT ALL col1 - ( + ( + col1 ) ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + COUNT( * ) + + + 13 AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-5551
SELECT + COUNT ( * ) + + + 13 AS col1 FROM tab2
----
16

query I rowsort
SELECT ALL - col1 - - 58 - col0 AS col2 FROM tab2
----
-39
-83
-84

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5554
SELECT + col2, + CAST( + col2 AS SIGNED ) * + + col1 * - - col0 AS col0 FROM tab1
----
59
25075
68
290836
96
68544

skipif mysql # not compatible
query II rowsort label-5554
SELECT + col2, + CAST ( + col2 AS INTEGER ) * + + col1 * - - col0 AS col0 FROM tab1
----
59
25075
68
290836
96
68544

query I rowsort
SELECT - 96 * + col2 AS col1 FROM tab0
----
-4512
-9504
-960

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5556
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( - col0, + 21 * ( + + ( - col1 ) ), + col1, - - CAST( NULL AS DECIMAL ) + - - col1 - 68 * - + 61 + - + col0 + + CAST( + + col1 AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-5556
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( - col0, + 21 * ( + + ( - col1 ) ), + col1, - - CAST ( NULL AS REAL ) + - - col1 - 68 * - + 61 + - + col0 + + CAST ( + + col1 AS INTEGER ) * - col2 )
----

query I rowsort
SELECT + col2 + + col0 * 48 FROM tab0 WHERE NOT NULL IS NOT NULL
----
4186
4755
767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 * - col1 col2 FROM tab1
----
25075
290836
68544

query II rowsort
SELECT ALL - col0, ( + + 85 ) * + col0 AS col0 FROM tab1 AS cor0
----
-51
4335
-85
7225
-91
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + - MAX( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + - MAX ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + + COUNT( * ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5561
SELECT + + COUNT ( * ) col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT DISTINCT 43 AS col2, COUNT( * ) + - 54 col1 FROM tab0 AS cor0 WHERE NOT + 42 + 27 > + ( + col2 ) * + col0
----
43
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5562
SELECT DISTINCT 43 AS col2, COUNT ( * ) + - 54 col1 FROM tab0 AS cor0 WHERE NOT + 42 + 27 > + ( + col2 ) * + col0
----
43
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT + - col0 DIV + 39 FROM tab2 AS cor0
----
-1
-1
-1

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

query II rowsort
SELECT DISTINCT + + col0, 62 + - - 59 FROM tab0 AS cor0
----
15
121
87
121
97
121

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

query I rowsort
SELECT - col2 * - - 30 FROM tab0 AS cor0
----
-1410
-2970
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT + + MAX( DISTINCT + col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-5567
SELECT + + MAX ( DISTINCT + col0 ) FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5568
SELECT COUNT( * ) * - SUM( ALL - 95 ) AS col0, + 85 AS col0 FROM tab0 AS cor0
----
855
85

skipif mysql # not compatible
query II rowsort label-5568
SELECT COUNT ( * ) * - SUM ( ALL - 95 ) AS col0, + 85 AS col0 FROM tab0 AS cor0
----
855
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = 79
----

query I rowsort
SELECT DISTINCT - col2 + + - col2 FROM tab1 WHERE ( NOT - 5 + col0 IN ( + - 39 - + col1, 43, - - 73 / - 98 ) )
----
-118
-136
-192

query III rowsort
SELECT * FROM tab0 WHERE - - col0 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT COUNT( * ) AS col0 FROM tab0 WHERE - col1 * - + ( + - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE - col1 * - + ( + - col0 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + 14 FROM tab1 AS cor0
----
110
73
82

query I rowsort
SELECT - - col0 + - - col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5575
SELECT DISTINCT - col0 DIV col2 FROM tab0 WHERE ( + 61 ) IS NOT NULL
----
-8
0

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT - col0 / col2 FROM tab0 WHERE ( + 61 ) IS NOT NULL
----
-8
0

query I rowsort
SELECT DISTINCT + col2 * 78 AS col1 FROM tab1
----
4602
5304
7488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * 29 col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5578
SELECT DISTINCT col0 * - CAST( - col0 AS SIGNED ) + col2 AS col1 FROM tab2
----
2139
4136
5683

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT col0 * - CAST ( - col0 AS INTEGER ) + col2 AS col1 FROM tab2
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL COUNT( * ) + COUNT( ALL + col1 + 29 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL COUNT ( * ) + COUNT ( ALL + col1 + 29 ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab0 WHERE + col0 + col1 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5581
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) - MIN( ALL + 49 ) FROM tab1 WHERE NOT NULL IN ( 16 / col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - MIN ( ALL + 49 ) FROM tab1 WHERE NOT NULL IN ( 16 / col2 )
----
NULL

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab1
----
48

query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab1 WHERE NOT + col2 < - col1
----
-93

query III rowsort
SELECT * FROM tab0 WHERE 35 BETWEEN ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - MAX( + ( col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5585
SELECT - MAX ( + ( col2 ) ) FROM tab1
----
-96

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * + 44 + ( 98 ) * 57 ) < - col2 * 33
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5587
SELECT DISTINCT col0 DIV 78 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT col0 / 78 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT 27 DIV 23 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5588
SELECT 27 / 23 AS col2 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT col0 DIV 79 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT col0 / 79 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5590
SELECT DISTINCT + col1 - CAST( + 96 AS SIGNED ) DIV + col2 col2 FROM tab0
----
1
12
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5590
SELECT DISTINCT + col1 - CAST ( + 96 AS INTEGER ) / + col2 col2 FROM tab0
----
1
12
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT 33 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5591
SELECT 33 / - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 39 - col1 FROM tab2
----
-12
-28
-38

query I rowsort
SELECT ALL 24 + col0 FROM tab2
----
70
88
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5594
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 65 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col0 + col2 NOT BETWEEN - col1 AND ( + 9 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 85 BETWEEN - 54 AND col0 + col0
----
15
81
47

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE ( + 81 ) NOT BETWEEN 43 + col0 AND ( NULL )
----
87
97

query I rowsort
SELECT ALL - 16 + 13 AS col0 FROM tab1 WHERE NOT - col0 * col0 + 51 IS NULL
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 47 FROM tab0 AS cor0 WHERE - col0 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5602
SELECT 75 DIV COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5602
SELECT 75 / COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
25

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN ( - 37 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5604
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) * - col0 <= + 91
----

skipif mysql # not compatible
query III rowsort label-5604
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * - col0 <= + 91
----

query I rowsort
SELECT col0 + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT DISTINCT - 44 AS col1 FROM tab0 WHERE 61 * ( - 60 ) - CAST( NULL AS SIGNED ) >= ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT - 44 AS col1 FROM tab0 WHERE 61 * ( - 60 ) - CAST ( NULL AS INTEGER ) >= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-5607
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1
----
9

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

query I rowsort
SELECT DISTINCT - col1 + 72 FROM tab1 AS cor0
----
25
58
67

query I rowsort
SELECT ALL - + ( + ( col1 ) ) * 28 FROM tab0 AS cor0
----
-2268
-28
-588

query I rowsort
SELECT ALL 8 + + 82 AS col1 FROM tab0 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT - + SUM( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5612
SELECT - + SUM ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT MAX( col1 ) * + 85 FROM tab1 AS cor0 WHERE NOT - ( ( - CAST( col0 AS SIGNED ) ) ) <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT MAX ( col1 ) * + 85 FROM tab1 AS cor0 WHERE NOT - ( ( - CAST ( col0 AS INTEGER ) ) ) <> col2
----
NULL

query I rowsort
SELECT ALL - col0 * - 33 AS col2 FROM tab2 cor0
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT - 99 * - COUNT( * ) FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT - 99 * - COUNT ( * ) FROM tab2 AS cor0
----
297

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) + + 39 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5617
SELECT ALL 70 DIV col1 + + 16 FROM tab2 AS cor0
----
16
17
17

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL 70 / col1 + + 16 FROM tab2 AS cor0
----
16
17
17

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + col1 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND col2 / - 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5621
SELECT - col0 + + CAST( NULL AS SIGNED ) / - col2 col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5622
SELECT - col2 + - col1 + col2 DIV col0 AS col1 FROM tab0
----
-125
-31
-99

skipif mysql # not compatible
query I rowsort label-5622
SELECT - col2 + - col1 + col2 / col0 AS col1 FROM tab0
----
-125
-31
-99

query I rowsort
SELECT 69 + - - 91 FROM tab2
----
160
160
160

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT SUM( ALL - col0 ) + + COUNT( * ) FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-5624
SELECT SUM ( ALL - col0 ) + + COUNT ( * ) FROM tab1
----
-224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col1 ) + + 94 col0 FROM tab1
----
47
80
89

query I rowsort
SELECT - 86 + - + 58 FROM tab1
----
-144
-144
-144

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

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

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT DISTINCT CAST( + ( ( col1 ) ) AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT CAST ( + ( ( col1 ) ) AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL + + 21 + + col0 + col2 AS col0 FROM tab1 cor0
----
165
168
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + - 42 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + - 42 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT - 73 * - + 39 + + ( + 1 ) AS col0 FROM tab1 AS cor0
----
2848
2848
2848

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) BETWEEN NULL AND - 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT DISTINCT col1 + CAST( CAST( 76 AS SIGNED ) AS SIGNED ) + col2 * 40 col1 FROM tab2 AS cor0
----
1047
1753
2463

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5636
SELECT DISTINCT col1 + CAST ( CAST ( 76 AS INTEGER ) AS INTEGER ) + col2 * 40 col1 FROM tab2 AS cor0
----
1047
1753
2463

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT MIN( + + 40 ) * - 32 * - 63 FROM tab2
----
80640

skipif mysql # not compatible
query I rowsort label-5637
SELECT MIN ( + + 40 ) * - 32 * - 63 FROM tab2
----
80640

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT DISTINCT COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5638
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL + 88 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query II rowsort
SELECT ALL - col1, 65 * ( col1 ) AS col1 FROM tab0
----
-1
65
-21
1365
-81
5265

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 69 * 95 NOT BETWEEN - 86 * col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT - ( + 47 ) - - CAST( - col1 AS SIGNED ) - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 54 AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
-54
-54
-54

query I rowsort
SELECT - 84 - col1 FROM tab2
----
-135
-151
-161

query I rowsort
SELECT ALL + 89 FROM tab1 WHERE NOT 33 > 87
----
89
89
89

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT 82 + + MAX( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5647
SELECT 82 + + MAX ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
159

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - col2 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT - COUNT( * ) * MIN( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE - col2 BETWEEN - - 35 AND ( col0 + - col0 * - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT - COUNT ( * ) * MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE - col2 BETWEEN - - 35 AND ( col0 + - col0 * - 56 )
----
NULL

query I rowsort
SELECT ALL col1 + - col1 AS col2 FROM tab2 AS cor0 WHERE ( + col0 ) < + ( col2 ) / + ( 69 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT DISTINCT - col0 * + 40 + CAST( NULL AS SIGNED ) + - ( 4 ) FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT + 4 + + 23 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT DISTINCT + 35 FROM tab1 AS cor0 WHERE NULL <= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT + 35 FROM tab1 AS cor0 WHERE NULL <= ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT - + COUNT( * ) DIV - 97 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT - + COUNT ( * ) / - 97 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 84 IN ( 65 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - 88 + 21 * + col2 AS col2 FROM tab0 cor0
----
-333
-6457
-7446

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * + col0 col0 FROM tab1 cor0
----
4794
7990
8554

query II rowsort
SELECT + 21 AS col2, + col1 FROM tab2 AS cor0
----
21
51
21
67
21
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( + 39 ) AND NULL
----

query I rowsort
SELECT ALL - col0 * - col0 FROM tab2 WHERE - col0 + - + 21 NOT BETWEEN 0 AND NULL
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT - ( + SUM( + col2 ) ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5662
SELECT - ( + SUM ( + col2 ) ) AS col2 FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT CAST( NULL AS SIGNED ) * - + 82 AS col2 FROM tab0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5666
SELECT - COUNT( * ) * - + 69, 76 col0 FROM tab0
----
207
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5666
SELECT - COUNT ( * ) * - + 69, 76 col0 FROM tab0
----
207
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5667
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT + col2 + + 90 * CAST( 58 AS SIGNED ) NOT IN ( col1 - - col1 )
----

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT + col2 + + 90 * CAST ( 58 AS INTEGER ) NOT IN ( col1 - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5668
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col2, ( - col0 ) + col0 FROM tab2
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-5668
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col2, ( - col0 ) + col0 FROM tab2
----
-51
0
-67
0
-77
0

query I rowsort
SELECT + + 48 AS col2 FROM tab0 AS cor0 WHERE NOT 78 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5670
SELECT ALL + MIN( DISTINCT + 35 ), + 26 AS col2 FROM tab2 AS cor0
----
35
26

skipif mysql # not compatible
query II rowsort label-5670
SELECT ALL + MIN ( DISTINCT + 35 ), + 26 AS col2 FROM tab2 AS cor0
----
35
26

query I rowsort
SELECT ALL - col0 * - col0 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 35 - ( - col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5672
SELECT * FROM tab2 WHERE NOT + CAST( - col1 AS SIGNED ) / 72 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5672
SELECT * FROM tab2 WHERE NOT + CAST ( - col1 AS INTEGER ) / 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + 55 * + MAX( DISTINCT ( + ( - 68 ) ) ) AS col1 FROM tab2
----
-3740

skipif mysql # not compatible
query I rowsort label-5673
SELECT + 55 * + MAX ( DISTINCT ( + ( - 68 ) ) ) AS col1 FROM tab2
----
-3740

query II rowsort
SELECT - + col1, + col1 * - - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
2346
-67
5025
-77
4928

query I rowsort
SELECT + col0 + + col0 AS col0 FROM tab0 WHERE NOT + 61 * - col0 - + - col2 * col1 IS NULL
----
174
194
30

query II rowsort
SELECT DISTINCT col0, - ( 96 ) FROM tab1
----
51
-96
85
-96
91
-96

query I rowsort
SELECT ALL + ( - 29 ) FROM tab0
----
-29
-29
-29

query I rowsort
SELECT ALL + col2 + + 44 * + 12 FROM tab2 AS cor0
----
551
568
586

query I rowsort
SELECT ALL col1 * - 23 AS col2 FROM tab2 AS cor0 WHERE 70 <> ( + 76 * - col2 )
----
-1173
-1541
-1771

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT + SUM( col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT + SUM ( col0 ) AS col2 FROM tab2 AS cor0
----
185

query I rowsort
SELECT + col0 + 36 * + + col2 + + - col1 FROM tab0 AS cor0
----
1626
3660
426

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5682
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 34 * CAST( - 73 AS SIGNED ) BETWEEN ( + + 20 * - col2 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5682
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 34 * CAST ( - 73 AS INTEGER ) BETWEEN ( + + 20 * - col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5683
SELECT DISTINCT + 22 * + - CAST( + 0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT - - col1 * + 6 AS col1 FROM tab0 cor0
----
126
486
6

query I rowsort
SELECT DISTINCT + - ( 57 ) + + + col1 FROM tab1 AS cor0
----
-10
-43
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT - CAST( NULL AS SIGNED ) * + 62 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT - COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5687
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) IN ( col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT ALL 90 DIV col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL 90 / col2 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT ALL - 78 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - 78 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT DISTINCT CAST( 74 AS SIGNED ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT CAST ( 74 AS INTEGER ) FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL + MAX( ALL col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + MAX ( ALL col0 ) AS col2 FROM tab1
----
91

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

query I rowsort
SELECT ALL - 32 + + - col0 + 65 * 94 FROM tab2
----
6003
6014
6032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5694
SELECT DISTINCT + 99 + + + CAST( ( - + col2 ) AS SIGNED ) * 79 AS col0 FROM tab1
----
-4562
-5273
-7485

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT + 99 + + + CAST ( ( - + col2 ) AS INTEGER ) * 79 AS col0 FROM tab1
----
-4562
-5273
-7485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5695
SELECT COUNT( * ) DIV ( + COUNT( * ) ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5695
SELECT COUNT ( * ) / ( + COUNT ( * ) ) AS col0 FROM tab2
----
1

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

query I rowsort
SELECT col2 - + - ( + - 45 ) - + 79 + col2 * + ( 28 ) + col2 AS col0 FROM tab0
----
1286
176
2846

query III rowsort
SELECT * FROM tab2 WHERE - 90 BETWEEN ( + ( + - 75 ) ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL + COUNT( * ) + + 47 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + COUNT ( * ) + + 47 FROM tab0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + + + 90 - - 89 * col0 * + - ( + col1 ) col0 FROM tab1 cor0
----
-37703
-380531
-63424

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 IN ( + 40 * + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - ( col0 ) / 71 + + col2 ) > ( - col2 * + col1 + + col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT - SUM( ALL col1 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-5703
SELECT - SUM ( ALL col1 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-198

query I rowsort
SELECT DISTINCT + - 1 AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5705
SELECT DISTINCT COUNT( col0 ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5705
SELECT DISTINCT COUNT ( col0 ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT 15 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - col2 AND + 23
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
-9

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

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

query II rowsort
SELECT ALL 54, col0 FROM tab2
----
54
46
54
64
54
75

query II rowsort
SELECT - col1 AS col2, 55 AS col0 FROM tab0
----
-1
55
-21
55
-81
55

query II rowsort
SELECT DISTINCT - col2 AS col0, + col1 + - + col0 FROM tab1
----
-59
-80
-68
-44
-96
-37

query III rowsort
SELECT * FROM tab2 WHERE + col2 <= - col0 * ( - col2 ) OR col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT - 97 DIV - col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT - 97 / - col0 FROM tab2
----
1
2

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - col2
----

query II rowsort
SELECT DISTINCT + + col0 AS col2, + 78 FROM tab0 AS cor0
----
15
78
87
78
97
78

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE ( + ( + 95 ) * - col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5720
SELECT + 69 * - - 28 AS col1, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1932
9

skipif mysql # not compatible
query II rowsort label-5720
SELECT + 69 * - - 28 AS col1, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1932
9

query I rowsort
SELECT DISTINCT + col2 FROM tab0 cor0 WHERE ( - col0 ) < col2 / + - col0 + + - col1
----
10
99

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 IN ( + + 37 * col2, + col2 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5724
SELECT DISTINCT - - col1 DIV + - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT - - col1 / + - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL - - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT + col1 <= + col2
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5725
SELECT ALL - - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT + col1 <= + col2
----
2

query I rowsort
SELECT col2 + - - col1 AS col0 FROM tab2
----
117
125
74

query II rowsort
SELECT DISTINCT col1 AS col1, ( + 67 ) FROM tab0
----
1
67
21
67
81
67

query III rowsort
SELECT * FROM tab0 WHERE - 88 + - 10 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + col0 * + 86 * + col2
----

query I rowsort
SELECT 51 + ( - 88 ) AS col1 FROM tab0
----
-37
-37
-37

query I rowsort
SELECT ALL 59 * col1 FROM tab1
----
2773
295
826

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL = ( + col2 ) + col2
----

query I rowsort
SELECT ALL + ( + col0 ) + - 39 AS col0 FROM tab2
----
25
36
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5734
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 45 BETWEEN - col2 * + col1 * - col1 * - col0 AND + CAST( NULL AS SIGNED ) + + 81
----

skipif mysql # not compatible
query III rowsort label-5734
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 45 BETWEEN - col2 * + col1 * - col1 * - col0 AND + CAST ( NULL AS INTEGER ) + + 81
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 72 + col2 * ( + col1 ) col0 FROM tab2 AS cor0
----
1101
3008
3814

onlyif mysql # DIV for integer division: 
query I rowsort label-5736
SELECT DISTINCT col2 + - 46 DIV + 70 * - col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT col2 + - 46 / + 70 * - col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT DISTINCT COUNT( * ) AS col2, + 65 * - COUNT( * ) FROM tab2 cor0
----
3
-195

skipif mysql # not compatible
query II rowsort label-5737
SELECT DISTINCT COUNT ( * ) AS col2, + 65 * - COUNT ( * ) FROM tab2 cor0
----
3
-195

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 ) < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + col1 / + col0, + 70 / - + 24 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 ) * + 80 <> NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, 95 col1 FROM tab0 AS cor0
----
10
95
47
95
99
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5743
SELECT - col2 DIV - 98 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5743
SELECT - col2 / - 98 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT + + col1 AS col2, 85 AS col1, col0 * - col2 + + ( + - col2 ) FROM tab0 AS cor0
----
9 values hashing to 77b7c5e73ec047afb832568800ab6287

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT + + COUNT( ( - - col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5745
SELECT + + COUNT ( ( - - col2 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT - COUNT( ALL - 57 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5746
SELECT - COUNT ( ALL - 57 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 98 * + + col2 FROM tab1
----
5782
6664
9408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5748
SELECT * FROM tab0 WHERE NOT 44 + + CAST( NULL AS SIGNED ) > - + ( + col2 ) + - 71
----

skipif mysql # not compatible
query III rowsort label-5748
SELECT * FROM tab0 WHERE NOT 44 + + CAST ( NULL AS INTEGER ) > - + ( + col2 ) + - 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + 97 col0 FROM tab1
----
-1358
-4559
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL + MAX( col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + MAX ( col2 ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5751
SELECT * FROM tab2 WHERE NOT - + col0 + + col0 + - col2 / - - col2 NOT BETWEEN col2 AND - col1 / - - CAST( + 66 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5751
SELECT * FROM tab2 WHERE NOT - + col0 + + col0 + - col2 / - - col2 NOT BETWEEN col2 AND - col1 / - - CAST ( + 66 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT DISTINCT col2 DIV - 30 AS col1 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT col2 / - 30 AS col1 FROM tab1
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + + col0 AS col2, col1 + - col0 col2 FROM tab1 cor0
----
2601
-37
7225
-80
8281
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT - ( + col1 ) + + 12 * + col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT - ( + col1 ) + + 12 * + col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col0 - + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - 55 AS col2 FROM tab2 AS cor0
----
23
-55
40
-55
58
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-5757
SELECT - - COUNT( * ) AS col2, + COUNT( ALL - ( col2 ) ) * + 52 + - COUNT( * ) FROM tab2 AS cor0
----
3
153

skipif mysql # not compatible
query II rowsort label-5757
SELECT - - COUNT ( * ) AS col2, + COUNT ( ALL - ( col2 ) ) * + 52 + - COUNT ( * ) FROM tab2 AS cor0
----
3
153

query I rowsort
SELECT ALL col1 * + + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 40 + col2 * + col1 AS col1 FROM tab1
----
1318
260
3203

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 15 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5761
SELECT ALL + CAST( NULL AS DECIMAL ) * - col2 col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 22 + col1 FROM tab0
----
103
23
43

query I rowsort
SELECT ALL - col1 * + 48 AS col2 FROM tab0
----
-1008
-3888
-48

query I rowsort
SELECT DISTINCT - col2 * - + 80 FROM tab2 AS cor0
----
1840
3200
4640

query I rowsort
SELECT ALL col0 + - 59 AS col1 FROM tab0 cor0
----
-44
28
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT + 86 * CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5768
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT NULL <> - CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT NULL <> - CAST ( NULL AS REAL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT + SUM( + - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5769
SELECT + SUM ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL - + ( + - SUM( DISTINCT + 8 ) ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - + ( + - SUM ( DISTINCT + 8 ) ) AS col0 FROM tab0 AS cor0
----
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT ( + col2 ) DIV - - col0 FROM tab1 AS cor0
----
0
0
1

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

query I rowsort
SELECT ALL - col1 * + + 84 + col1 + - - col0 AS col0 FROM tab0 AS cor0
----
-1656
-6708
14

query I rowsort
SELECT DISTINCT ( + col2 ) * - col0 * + - 51 FROM tab2
----
130560
221850
53958

query I rowsort
SELECT ALL 94 * col2 AS col1 FROM tab1
----
5546
6392
9024

query I rowsort
SELECT DISTINCT + 9 * - - ( + + col2 ) AS col2 FROM tab1
----
531
612
864

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT ALL - col0 DIV + col0 col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5777
SELECT ALL - col0 / + col0 col0 FROM tab0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT + ( - col0 ) * - 31 FROM tab2 AS cor0
----
1426
1984
2325

query I rowsort
SELECT ALL + + col0 + - 60 * - col0 AS col2 FROM tab2 AS cor0
----
2806
3904
4575

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

query III rowsort
SELECT * FROM tab0 WHERE - - col0 NOT BETWEEN NULL AND - 44 + - 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL 33 + COUNT( * ) + + 58 + - 89 AS col2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL 33 + COUNT ( * ) + + 58 + - 89 AS col2 FROM tab2 AS cor0
----
5

query I rowsort
SELECT ALL ( + + ( - - 80 ) ) - col2 * 8 AS col2 FROM tab0 AS cor0
----
-296
-712
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5785
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT - - CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 WHERE NOT 40 > col0
----
51
85
91

query II rowsort
SELECT 51 AS col2, + 30 FROM tab1
----
51
30
51
30
51
30

query I rowsort
SELECT ALL + 76 - + 73 FROM tab1
----
3
3
3

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - col0 ) * col0 * - col1 + + + col1 AS col1 FROM tab1
----
36130
36428
389254

onlyif mysql # aggregate syntax: 
query II rowsort label-5791
SELECT COUNT( - 91 ) AS col1, MAX( DISTINCT - + col2 ) FROM tab0 WHERE - col1 + - col2 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5791
SELECT COUNT ( - 91 ) AS col1, MAX ( DISTINCT - + col2 ) FROM tab0 WHERE - col1 + - col2 IS NULL
----
0
NULL

query II rowsort
SELECT 8 AS col1, col2 AS col1 FROM tab0 AS cor0
----
8
10
8
47
8
99

query II rowsort
SELECT DISTINCT + + 73 AS col0, - ( - + 26 ) AS col1 FROM tab1 AS cor0
----
73
26

query I rowsort
SELECT + 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT 27 * - + ( + col0 ) AS col1 FROM tab2
----
-1242
-1728
-2025

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT ALL - MAX( + 71 ) AS col2 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL - MAX ( + 71 ) AS col2 FROM tab0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5798
SELECT ALL - COUNT( DISTINCT + 16 ) AS col0, - 99 FROM tab2 AS cor0
----
-1
-99

skipif mysql # not compatible
query II rowsort label-5798
SELECT ALL - COUNT ( DISTINCT + 16 ) AS col0, - 99 FROM tab2 AS cor0
----
-1
-99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < - ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT - - 32 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT - 43 * + + 85, col0 FROM tab2 AS cor0
----
-3655
46
-3655
64
-3655
75

query I rowsort
SELECT - + 63 * - - col0 * + 72 AS col2 FROM tab0 AS cor0
----
-394632
-439992
-68040

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col2 ) IN ( - 18, 23 * - ( + col0 ) + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT - col0 * col2 * - col2 - CAST( - col1 AS SIGNED ) + 65 FROM tab2 AS cor0
----
102542
24450
252432

skipif mysql # not compatible
query I rowsort label-5804
SELECT - col0 * col2 * - col2 - CAST ( - col1 AS INTEGER ) + 65 FROM tab2 AS cor0
----
102542
24450
252432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT + CAST( - col1 AS SIGNED ) FROM tab1 WHERE NOT - 91 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5805
SELECT + CAST ( - col1 AS INTEGER ) FROM tab1 WHERE NOT - 91 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + 63 AND NULL
----

query I rowsort
SELECT ALL + ( 47 ) FROM tab2
----
47
47
47

query I rowsort
SELECT + ( - 15 ) AS col2 FROM tab2
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT DISTINCT + col1 DIV + 70 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT + col1 / + 70 FROM tab2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 AS cor0 WHERE - col0 - - - ( - - col1 ) * - col2 <> 20
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT DISTINCT + 58 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT + 58 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
61

query I rowsort
SELECT + col1 + + + 61 FROM tab2 AS cor0
----
112
128
138

query I rowsort
SELECT 92 + 88 + col0 AS col0 FROM tab0 AS cor0
----
195
267
277

query I rowsort
SELECT DISTINCT - 28 + + - 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-5815
SELECT - 58 AS col0, - col2 DIV 4 + + 42 AS col1 FROM tab1
----
-58
18
-58
25
-58
28

skipif mysql # not compatible
query II rowsort label-5815
SELECT - 58 AS col0, - col2 / 4 + + 42 AS col1 FROM tab1
----
-58
18
-58
25
-58
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5816
SELECT - CAST( - + 68 AS SIGNED ) FROM tab0 AS cor0
----
68
68
68

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

query II rowsort
SELECT 35, + col0 FROM tab2 AS cor0
----
35
46
35
64
35
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT - + col0 - - 52 DIV ( + 71 ) col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5818
SELECT - + col0 - - 52 / ( + 71 ) col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 AS cor0 WHERE 75 * - col1 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT 31 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 7 <= NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - + - 63 AS col1 FROM tab1
----
122
131
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - + col2 ) col1, - 60 AS col1 FROM tab0
----
10
-60
47
-60
99
-60

query III rowsort
SELECT * FROM tab1 WHERE NOT 26 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT - MIN( + 97 ) AS col2 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-5825
SELECT - MIN ( + 97 ) AS col2 FROM tab1
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5826
SELECT CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL + + SUM( ALL - + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + + SUM ( ALL - + col0 ) AS col0 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT - MAX( DISTINCT 70 ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT - MAX ( DISTINCT 70 ) FROM tab2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5830
SELECT 96 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 93 AS col1, col1 - + col1 col0 FROM tab0
----
93
0
93
0
93
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + 97 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-5832
SELECT + 97 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-291

query I rowsort
SELECT ALL - 96 - - col1 FROM tab2 cor0 WHERE NOT NULL < col1 - + + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT DISTINCT - COUNT( 30 ) * - 86 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT - COUNT ( 30 ) * - 86 FROM tab2 AS cor0
----
258

query I rowsort
SELECT ALL + col1 * + + col2 * col0 FROM tab1 AS cor0
----
25075
290836
68544

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 26 * - - 74 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL + MAX( DISTINCT + - ( + + col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL + MAX ( DISTINCT + - ( + + col0 ) ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - 68 * - + 19 FROM tab2
----
1292
1292
1292

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + 63 + + col0 AS col2 FROM tab2
----
-2852
-3968
-4650

query I rowsort
SELECT col1 * col1 + - + col2 AS col1 FROM tab0
----
-98
431
6514

query I rowsort
SELECT 61 * + col2 + col0 AS col1 FROM tab1
----
3684
4239
5907

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( - - col1 IS NOT NULL ) )
----

query I rowsort
SELECT col1 * - col1 + - col0 * + col1 FROM tab2
----
-10857
-4947
-9514

query I rowsort
SELECT col2 + - col1 + - col1 FROM tab1
----
-26
49
68

query I rowsort
SELECT ALL - - 26 * + 35 + + + col2 FROM tab0 AS cor0
----
1009
920
957

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT DISTINCT - ( + MAX( DISTINCT + - col1 ) ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5847
SELECT DISTINCT - ( + MAX ( DISTINCT + - col1 ) ) col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col0 + + col0 + + 54 * ( + - 53 ) FROM tab0
----
-2862

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 78 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5850
SELECT + 43 * - + CAST( NULL AS SIGNED ) - - col2 + - 6 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ( col2 ) - col2 * + col2 AS col0 FROM tab1
----
-3422
-4556
-9120

query I rowsort
SELECT DISTINCT col0 * + col2 * col1 + col0 AS col0 FROM tab2
----
197184
291525
54004

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 48 AND + col0
----

query I rowsort
SELECT + 60 + + col1 FROM tab2 AS cor0
----
111
127
137

query I rowsort
SELECT ALL + ( - + col0 ) - - - col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT DISTINCT - 11 * - col0 - + + 15 FROM tab1
----
546
920
986

query I rowsort
SELECT - 59 * - col1 AS col2 FROM tab1
----
2773
295
826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5859
SELECT + CAST( NULL AS SIGNED ), MIN( DISTINCT col1 ) AS col2 FROM tab0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5859
SELECT + CAST ( NULL AS INTEGER ), MIN ( DISTINCT col1 ) AS col2 FROM tab0
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5860
SELECT ALL + COUNT( * ) col1 FROM tab1 WHERE NOT + + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5860
SELECT ALL + COUNT ( * ) col1 FROM tab1 WHERE NOT + + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE + - col0 * 34 - + + col0 + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE + - col0 * 34 - + + col0 + col2 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < NULL OR NULL NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL + ( 62 ), - col2 - + - 28 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 20
----

query I rowsort
SELECT + 96 * - col2 FROM tab1 WHERE NOT - ( - + col0 ) - + 24 * col0 > - col2 * - + col1
----
-5664
-6528
-9216

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL + col2 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5869
SELECT + 67 + + 51 AS col1, 14 DIV - + COUNT( ALL + 32 ) FROM tab2 cor0
----
118
-4

skipif mysql # not compatible
query II rowsort label-5869
SELECT + 67 + + 51 AS col1, 14 / - + COUNT ( ALL + 32 ) FROM tab2 cor0
----
118
-4

query I rowsort
SELECT - - col2 + - - ( - - col0 ) AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5871
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + col1 + 71
----

query I rowsort
SELECT DISTINCT - + ( - 83 ) AS col2 FROM tab1 AS cor0
----
83

query II rowsort
SELECT - col1 * - ( + 92 ) AS col2, col2 FROM tab0 AS cor0
----
1932
10
7452
47
92
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5875
SELECT + - 69 DIV COUNT( * ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5875
SELECT + - 69 / COUNT ( * ) FROM tab2 cor0
----
-23

query II rowsort
SELECT - ( - - col2 ) * - - 27 AS col0, + col1 FROM tab0
----
-1269
81
-2673
1
-270
21

query I rowsort
SELECT ALL ( 28 ) FROM tab2
----
28
28
28

query I rowsort
SELECT ALL 83 + + + col1 FROM tab1
----
130
88
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 76 - col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL MAX( + - 51 ) AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL MAX ( + - 51 ) AS col0 FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT - 76 * COUNT( * ) FROM tab2 WHERE ( + col2 * + col2 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - 76 * COUNT ( * ) FROM tab2 WHERE ( + col2 * + col2 ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT + ( - 24 ) * - COUNT( * ) FROM tab1 AS cor0 WHERE ( ( NOT 4 IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT + ( - 24 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE ( ( NOT 4 IS NOT NULL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT ALL CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + 85 - + col1 + col0 + - 60 * + col1 * + - col2 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + 85 - + col1 + col0 + - 60 * + col1 * + - col2 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT + - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 5 + col1 FROM tab2 AS cor0
----
46
62
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT + col1 DIV + - 51 + + + 10 + ( - 9 ) AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5888
SELECT + col1 / + - 51 + + + 10 + ( - 9 ) AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5889
SELECT ALL + 23 DIV + col2 col2, + col2 AS col2 FROM tab0 AS cor0
----
0
47
0
99
2
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5889
SELECT ALL + 23 / + col2 col2, + col2 AS col2 FROM tab0 AS cor0
----
0
47
0
99
2
10

query I rowsort
SELECT + col1 * + col2 + + - 97 AS col1 FROM tab0 cor0
----
113
2
3710

query I rowsort
SELECT - + 95 FROM tab1 AS cor0 WHERE + 24 + + col0 / - 67 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT - - MAX( DISTINCT 78 ) AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5892
SELECT - - MAX ( DISTINCT 78 ) AS col0 FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT COUNT( * ) - - - 15 + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5893
SELECT COUNT ( * ) - - - 15 + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + 1 * + ( ( col0 ) ) + col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT - - COUNT( DISTINCT + + 24 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5895
SELECT - - COUNT ( DISTINCT + + 24 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5896
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + col0 * + 31 <= - - col0 / - col1
----

skipif mysql # not compatible
query III rowsort label-5896
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col0 * + 31 <= - - col0 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - SUM( - col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5897
SELECT - SUM ( - col0 ) col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT col2 * + 22 FROM tab2
----
1276
506
880

query II rowsort
SELECT + + col0 AS col1, - col0 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT - MAX( + - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT - MAX ( + - col0 ) FROM tab0
----
15

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE 86 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT 2 * col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5903
SELECT + CAST( - + 4 AS SIGNED ) * - - 49 FROM tab1
----
-196
-196
-196

skipif mysql # not compatible
query I rowsort label-5903
SELECT + CAST ( - + 4 AS INTEGER ) * - - 49 FROM tab1
----
-196
-196
-196

query I rowsort
SELECT ALL + col2 * + - col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT COUNT( DISTINCT - - 30 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5905
SELECT COUNT ( DISTINCT - - 30 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT 58 * - - COUNT( * ) AS col2 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-5906
SELECT 58 * - - COUNT ( * ) AS col2 FROM tab0
----
174

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT col0, col1 * - col0 * 90 AS col1 FROM tab0 AS cor0
----
15
-109350
87
-164430
97
-8730

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT DISTINCT + col0 DIV + + col1 AS col1 FROM tab2 AS cor0
----
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT + MAX( + 22 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5910
SELECT + MAX ( + 22 ) FROM tab2 AS cor0
----
22

query I rowsort
SELECT - - ( + + col1 ) FROM tab0 cor0
----
1
21
81

query II rowsort
SELECT DISTINCT - 85, + col1 * col1 AS col0 FROM tab0 AS cor0
----
-85
1
-85
441
-85
6561

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <= + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + - col0 >= - ( 37 ) / + col2
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * col2 * col2 / col0 = col0
----

query I rowsort
SELECT col2 + 4 FROM tab2
----
27
44
62

query I rowsort
SELECT col2 * col2 * + + 86 + + 14 AS col1 FROM tab0
----
189988
842900
8614

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5919
SELECT COUNT( * ) + + COUNT( * ) + - 73 + - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT COUNT ( * ) + + COUNT ( * ) + - 73 + - MAX ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ALL - COUNT( * ) - 89 AS col2 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL - COUNT ( * ) - 89 AS col2 FROM tab1 AS cor0
----
-92

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, - 73 * + col1 * - col0 * - col0 FROM tab1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5925
SELECT - col2 - + col0 DIV - col2, - col2 * col2 - ( col0 ) AS col1 FROM tab0
----
-2
-187
-47
-2224
-99
-9898

skipif mysql # not compatible
query II rowsort label-5925
SELECT - col2 - + col0 / - col2, - col2 * col2 - ( col0 ) AS col1 FROM tab0
----
-2
-187
-47
-2224
-99
-9898

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 74 + col1 + + + 51 BETWEEN + - col2 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + + 6 * - col0 AS col0 FROM tab0 AS cor0
----
-522
-582
-90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT col1 * - col0 + - 29 DIV + col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-5931
SELECT col1 * - col0 + - 29 / + col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query II rowsort label-5932
SELECT DISTINCT - col0, - col1 DIV 78 col2 FROM tab0 AS cor0
----
-15
-1
-87
0
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5932
SELECT DISTINCT - col0, - col1 / 78 col2 FROM tab0 AS cor0
----
-15
-1
-87
0
-97
0

query III rowsort
SELECT ALL col2 * + - col0 * - + 42, - col1 AS col0, col1 + - + col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to 2573fd3d066210b087e50f34893f53ba

query II rowsort
SELECT + col1, 85 + - col0 AS col2 FROM tab2 AS cor0
----
51
39
67
10
77
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT COUNT( DISTINCT + 50 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5935
SELECT COUNT ( DISTINCT + 50 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5936
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 3 * - col1 FROM tab1 AS cor0
----
141
15
42

query II rowsort
SELECT DISTINCT - col0 * - + col1, + col1 AS col2 FROM tab2
----
2346
51
4928
77
5025
67

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 60 <= - 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT DISTINCT col2 DIV + 35 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT col2 / + 35 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL - + MAX( ALL - + 37 ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL - + MAX ( ALL - + 37 ) FROM tab1 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT - + 52 * - - MAX( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
-4992

skipif mysql # not compatible
query I rowsort label-5943
SELECT - + 52 * - - MAX ( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
-4992

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 > - + 5 * - 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 98 * + col2 AS col0 FROM tab2 AS cor0
----
2254
3920
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT + + SUM( ALL + 27 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 40 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + + SUM ( ALL + 27 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 40 AND - col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5947
SELECT + COUNT( * ) * + COUNT( * ) DIV + 13 * - 64 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5947
SELECT + COUNT ( * ) * + COUNT ( * ) / + 13 * - 64 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 38 + + - col0 FROM tab0 AS cor0
----
-125
-135
-53

query I rowsort
SELECT + col0 * + + col1 * + 22 AS col1 FROM tab0 cor0
----
2134
26730
40194

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT - - ( + SUM( ALL + 71 ) ) FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-5950
SELECT - - ( + SUM ( ALL + 71 ) ) FROM tab0 AS cor0
----
213

query I rowsort
SELECT DISTINCT - 30 + 70 + + - col2 AS col1 FROM tab1 AS cor0
----
-19
-28
-56

query I rowsort
SELECT col0 * + col0 * + - 24 + + - 98 AS col1 FROM tab0 AS cor0
----
-181754
-225914
-5498

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5953
SELECT DISTINCT + MIN( DISTINCT 73 ) DIV - COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + MIN ( DISTINCT 73 ) / - COUNT ( * ) FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( + col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5954
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( + col0 IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL - SUM( + + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL - SUM ( + + col2 ) FROM tab0
----
-156

query I rowsort
SELECT - 21 * + col1 - - col1 + + + col0 + + + 41 FROM tab0
----
-1564
-292
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5957
SELECT - 77 + - CAST( + + 0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-77
-77
-77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT DISTINCT 21 DIV - col0 + + ( 5 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT 21 / - col0 + + ( 5 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT + col2 + + 68 * 11 AS col0 FROM tab2 AS cor0
----
771
788
806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT 10 / col1 * + - 9 + + col1 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT + ( - col1 ) + - - col1 * - col0, + col2 FROM tab0 AS cor0
----
-1296
47
-1848
10
-98
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT - 42 + SUM( 78 ) AS col1 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5962
SELECT - 42 + SUM ( 78 ) AS col1 FROM tab0 AS cor0
----
192

query I rowsort
SELECT DISTINCT 90 * + 40 * 30 AS col2 FROM tab0
----
108000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col1 col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT MIN( DISTINCT - 78 ) * 51 FROM tab0
----
-3978

skipif mysql # not compatible
query I rowsort label-5965
SELECT MIN ( DISTINCT - 78 ) * 51 FROM tab0
----
-3978

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + - - 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT 84 * - COUNT( * ) + COUNT( - col2 ) FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-5968
SELECT 84 * - COUNT ( * ) + COUNT ( - col2 ) FROM tab0 AS cor0
----
-249

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + COUNT( * ) * - 3 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5970
SELECT + COUNT ( * ) * - 3 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 * - + 11 AS col0 FROM tab0
----
-1067
-165
-957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 col2, 97 col0 FROM tab0
----
5
97
5
97
5
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT + MIN( DISTINCT 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5973
SELECT + MIN ( DISTINCT 60 ) FROM tab2
----
60

query I rowsort
SELECT - 27 AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + - 78 * 5 FROM tab0 AS cor0
----
-390

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) > + col0 + col2 + 30 + - col1 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + - COUNT( - col0 ) * - - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5978
SELECT + - COUNT ( - col0 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) > NULL
----

query I rowsort
SELECT ALL - 26 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT DISTINCT + - col1 + + col1 + + + col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - + col1 + 49 + + + 39 * + col1 FROM tab1 AS cor0
----
1835
239
581

query I rowsort
SELECT col0 + 57 * - col0 FROM tab0 AS cor0
----
-4872
-5432
-840

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <> + + col2 + + col0
----

query I rowsort
SELECT ALL + col2 + - ( col0 ) AS col2 FROM tab1 cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 85
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - - col2 * + col0 col2 FROM tab1 AS cor0
----
249696
426275
563108

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 33 AND + col0 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + + col2 ) + col2 col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT ALL - ( + col1 ) * col2 + - 75 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT COUNT( * ) * - + ( - 55 ) + + COUNT( * ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-5991
SELECT COUNT ( * ) * - + ( - 55 ) + + COUNT ( * ) FROM tab1
----
168

query I rowsort
SELECT + col2 * ( - col2 ) + - col1 AS col0 FROM tab0
----
-121
-2290
-9802

query I rowsort
SELECT + col0 + - 19 FROM tab2
----
27
45
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT + ( - - MIN( - - 63 ) ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5994
SELECT + ( - - MIN ( - - 63 ) ) FROM tab0
----
63

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT + col2 <= + ( + col0 ) + col2 / col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT ALL - ( + SUM( DISTINCT + col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL - ( + SUM ( DISTINCT + col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----
0

query II rowsort
SELECT DISTINCT + - 52 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-52
23
-52
40
-52
58

query II rowsort
SELECT DISTINCT + col2, + col0 AS col1 FROM tab0 cor0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, 4 col0 FROM tab0 AS cor0
----
-15
4
-87
4
-97
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6001
SELECT + col1, CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6001
SELECT + col1, CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> ( 35 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT 88 * - COUNT( * ) AS col0 FROM tab2 cor0
----
-264

skipif mysql # not compatible
query I rowsort label-6004
SELECT 88 * - COUNT ( * ) AS col0 FROM tab2 cor0
----
-264

onlyif mysql # DIV for integer division: 
query II rowsort label-6005
SELECT + col1 DIV + col1 AS col0, - col0 FROM tab2
----
1
-46
1
-64
1
-75

skipif mysql # not compatible
query II rowsort label-6005
SELECT + col1 / + col1 AS col0, - col0 FROM tab2
----
1
-46
1
-64
1
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6006
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col2, + 62 - - 62 FROM tab0
----
NULL
124

skipif mysql # not compatible
query II rowsort label-6006
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2, + 62 - - 62 FROM tab0
----
NULL
124

onlyif mysql # aggregate syntax: 
query II rowsort label-6007
SELECT ALL ( - 9 ) AS col0, MIN( ALL + + 30 ) AS col2 FROM tab2
----
-9
30

skipif mysql # not compatible
query II rowsort label-6007
SELECT ALL ( - 9 ) AS col0, MIN ( ALL + + 30 ) AS col2 FROM tab2
----
-9
30

query II rowsort
SELECT DISTINCT ( + + col2 ), col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT + + 25 AS col0 FROM tab1 AS cor0
----
25
25
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + ( + + 42 ) AND NULL
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT 1 + - ( + + CAST( + ( + col0 ) AS SIGNED ) ) AS col1 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-6011
SELECT 1 + - ( + + CAST ( + ( + col0 ) AS INTEGER ) ) AS col1 FROM tab2
----
-45
-63
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6012
SELECT ALL CAST( NULL AS SIGNED ) * - ( + - COUNT( * ) ) FROM tab1
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 99 IS NULL
----

query I rowsort
SELECT ALL + + 59 + col0 FROM tab0 cor0
----
146
156
74

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT 77 + + 33 >= - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - col2 NOT BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + + 42 FROM tab2 AS cor0
----
-22
-33
-4

query I rowsort
SELECT DISTINCT col0 + col0 + + - col1 - + col1 FROM tab1 AS cor0
----
160
74
88

query I rowsort
SELECT 66 AS col1 FROM tab2 cor0
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6020
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( col2, + ( - ( + 39 ) ), + col1, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6020
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( col2, + ( - ( + 39 ) ), + col1, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 * + 56 AS col2 FROM tab0
----
2632
5544
560

query II rowsort
SELECT DISTINCT - 1 * + 80, col1 FROM tab0
----
-80
1
-80
21
-80
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT + col2 + - + 89 AS col2 FROM tab2
----
-31
-49
-66

query I rowsort
SELECT - 65 + - col1 * 48 AS col1 FROM tab2
----
-2513
-3281
-3761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT col1 + + ( - - CAST( + - col0 AS SIGNED ) ) + - ( - + 49 ) * + ( col1 ) * - col0 FROM tab1
----
-20905
-209617
-35023

skipif mysql # not compatible
query I rowsort label-6026
SELECT col1 + + ( - - CAST ( + - col0 AS INTEGER ) ) + - ( - + 49 ) * + ( col1 ) * - col0 FROM tab1
----
-20905
-209617
-35023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6027
SELECT - 14 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6028
SELECT DISTINCT + + COUNT( * ) DIV COUNT( * ) + - 47 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT + + COUNT ( * ) / COUNT ( * ) + - 47 FROM tab0 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6029
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * CAST( NULL AS SIGNED ) * - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6029
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 59 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL - col2 * + + col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT DISTINCT + SUM( DISTINCT + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT + SUM ( DISTINCT + + col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT - - COUNT( * ) * + + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
162

skipif mysql # not compatible
query I rowsort label-6033
SELECT - - COUNT ( * ) * + + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
162

query I rowsort
SELECT + col2 * + - col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query II rowsort label-6035
SELECT - + col2 * - col1 DIV - + col1 AS col0, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

skipif mysql # not compatible
query II rowsort label-6035
SELECT - + col2 * - col1 / - + col1 AS col0, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT DISTINCT - ( COUNT( * ) ) * + 21 * 6 + COUNT( * ) col2 FROM tab1 AS cor0
----
-375

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6036
SELECT DISTINCT - ( COUNT ( * ) ) * + 21 * 6 + COUNT ( * ) col2 FROM tab1 AS cor0
----
-375

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

query II rowsort
SELECT + 8 AS col2, col1 AS col0 FROM tab2
----
8
51
8
67
8
77

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

query II rowsort
SELECT ALL col1, + 43 FROM tab2
----
51
43
67
43
77
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6041
SELECT COUNT( * ) + + 75 AS col0, 50 FROM tab0
----
78
50

skipif mysql # not compatible
query II rowsort label-6041
SELECT COUNT ( * ) + + 75 AS col0, 50 FROM tab0
----
78
50

query I rowsort
SELECT - col2 + 69 FROM tab0
----
-30
22
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT CAST( + - 15 AS SIGNED ) + - col1 col0 FROM tab0
----
-16
-36
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6043
SELECT CAST ( + - 15 AS INTEGER ) + - col1 col0 FROM tab0
----
-16
-36
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT DISTINCT - + 76 AS col2, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-76
-3

skipif mysql # not compatible
query II rowsort label-6045
SELECT DISTINCT - + 76 AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-76
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT DISTINCT - 52 + 26 + + + 27 + - col0 DIV col0 DIV + - col0 + - col0 * - + col1 * 46 col0 FROM tab0 AS cor0
----
4463
55891
84043

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6046
SELECT DISTINCT - 52 + 26 + + + 27 + - col0 / col0 / + - col0 + - col0 * - + col1 * 46 col0 FROM tab0 AS cor0
----
4463
55891
84043

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6047
SELECT - 73 * + CAST( NULL AS DECIMAL ) - - ( + col2 ) / - col0 * + col0 - + col1 col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6047
SELECT - 73 * + CAST ( NULL AS REAL ) - - ( + col2 ) / - col0 * + col0 - + col1 col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) + - - col0 col1 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL - MIN( col2 ) - - 65 AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - MIN ( col2 ) - - 65 AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT ALL + + 54 + + COUNT( * ) FROM tab1 cor0
----
57

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + + 54 + + COUNT ( * ) FROM tab1 cor0
----
57

query I rowsort
SELECT ALL + 53 * + - col1 AS col2 FROM tab0 AS cor0
----
-1113
-4293
-53

query I rowsort
SELECT ALL col1 - - 59 FROM tab2
----
110
126
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL SUM( + + 21 ) - - COUNT( - - col0 ) AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL SUM ( + + 21 ) - - COUNT ( - - col0 ) AS col1 FROM tab2
----
66

query I rowsort
SELECT + col0 * - - ( col2 ) * + + col1 AS col1 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-6055
SELECT COUNT( * ), COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6055
SELECT COUNT ( * ), COUNT ( * ) AS col0 FROM tab0
----
3
3

query I rowsort
SELECT ALL col1 * 63 AS col2 FROM tab2
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query II rowsort label-6057
SELECT ALL - 13 AS col2, MIN( col1 ) FROM tab1
----
-13
5

skipif mysql # not compatible
query II rowsort label-6057
SELECT ALL - 13 AS col2, MIN ( col1 ) FROM tab1
----
-13
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + + col1 <> - col0 + + 57
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT 95 NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT - 48 * col0 FROM tab0 WHERE NOT + 72 IN ( - col0 )
----
-4176
-4656
-720

query I rowsort
SELECT col2 - 45 FROM tab2
----
-22
-5
13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 31 ) <= + 97
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT ( + 75 ) * col0 IS NOT NULL
----

query I rowsort
SELECT 53 + col1 AS col2 FROM tab1
----
100
58
67

query I rowsort
SELECT AVG ( DISTINCT 48 ) FROM tab2 WHERE NULL NOT IN ( - col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 / - col2 col2 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT COUNT( DISTINCT - 75 ) + + 70 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
70

skipif mysql # not compatible
query I rowsort label-6067
SELECT COUNT ( DISTINCT - 75 ) + + 70 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6068
SELECT + MIN( ALL CAST( + col0 AS SIGNED ) ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6068
SELECT + MIN ( ALL CAST ( + col0 AS INTEGER ) ) col0 FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6069
SELECT ALL + col0 DIV - col0 + 98 * col1 AS col0 FROM tab0
----
2057
7937
97

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL + col0 / - col0 + 98 * col1 AS col0 FROM tab0
----
2057
7937
97

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN + col2 AND ( col2 ) * - 8
----

query I rowsort
SELECT DISTINCT + 33 + 46 FROM tab1
----
79

query III rowsort
SELECT ALL * FROM tab0 WHERE 18 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE + col0 * - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE + col0 * - col2 IS NOT NULL
----
3

query I rowsort
SELECT - 44 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col2 + + 32 AS col0 FROM tab2
----
55
72
90

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) IN ( 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NULL <= col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6080
SELECT DISTINCT + ( - col0 ) AS col0 FROM tab0 WHERE NOT ( NULL ) > CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT + ( - col0 ) AS col0 FROM tab0 WHERE NOT ( NULL ) > CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 49 + + col1 AS col0 FROM tab1
----
54
63
96

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN 56 AND ( col0 )
----
-64
-75

query I rowsort
SELECT DISTINCT - 63 + - col1 FROM tab1 AS cor0
----
-110
-68
-77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( 20 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT ALL - ( col0 ) * ( - col2 ) - CAST( col1 + - 17 * col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
5095
5120
6940

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6085
SELECT ALL - ( col0 ) * ( - col2 ) - CAST ( col1 + - 17 * col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
5095
5120
6940

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6086
SELECT ALL col0 DIV - CAST( col0 AS SIGNED ) + col0 col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6086
SELECT ALL col0 / - CAST ( col0 AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
50
84
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL COUNT( * ) + SUM( + 18 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL COUNT ( * ) + SUM ( + 18 ) FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6088
SELECT * FROM tab0 WHERE CAST( col1 AS SIGNED ) + 93 * + col0 <> ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6088
SELECT * FROM tab0 WHERE CAST ( col1 AS INTEGER ) + 93 * + col0 <> ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6089
SELECT col0 / + 56 FROM tab2 WHERE - CAST( NULL AS DECIMAL ) IN ( - 82 )
----

skipif mysql # not compatible
query I rowsort label-6089
SELECT col0 / + 56 FROM tab2 WHERE - CAST ( NULL AS REAL ) IN ( - 82 )
----

query I rowsort
SELECT DISTINCT - 58 FROM tab2 AS cor0 CROSS JOIN tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT + 44 + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT + 44 + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
35

query I rowsort
SELECT ALL + 45 * col2 - col1 FROM tab0 AS cor0
----
2034
429
4454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT DISTINCT ( 47 ) + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE col0 + - col2 BETWEEN NULL AND - 82
----
47

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT ( 47 ) + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE col0 + - col2 BETWEEN NULL AND - 82
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6094
SELECT SUM( - col2 ) / CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT 40 * 4 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col2 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 59 + + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6098
SELECT ALL + + col2 - - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL + + col2 - - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT + + MIN( ( col2 ) ) + 44 * COUNT( * ) FROM tab2 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT + + MIN ( ( col2 ) ) + 44 * COUNT ( * ) FROM tab2 AS cor0
----
155

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE col1 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT DISTINCT COUNT( + 88 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT COUNT ( + 88 ) FROM tab0
----
3

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

query I rowsort
SELECT ALL - 6 * - + col0 AS col2 FROM tab2
----
276
384
450

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

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

query I rowsort
SELECT ( - 98 ) * col0 AS col0 FROM tab2
----
-4508
-6272
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT MAX( ( col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6107
SELECT MAX ( ( col1 ) ) AS col0 FROM tab0
----
81

query I rowsort
SELECT 85 * - 4 FROM tab2
----
-340
-340
-340

query I rowsort
SELECT 3 * + + col1 AS col0 FROM tab0
----
243
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT DISTINCT MIN( 16 ) col1 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6110
SELECT DISTINCT MIN ( 16 ) col1 FROM tab2 AS cor0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + - ( + 85 ) * col2 col1 FROM tab2 AS cor0 WHERE NOT ( 3 ) * - col1 IS NULL
----
-1864
-3309
-4839

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT + COUNT( * ) DIV + 92 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6112
SELECT + COUNT ( * ) / + 92 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col2 + + col1 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN ( - col1 ) AND + 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6114
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( CAST( 5 AS SIGNED ) ) ) IS NOT NULL AND NOT + col0 + - col1 / + col0 > - ( 66 )
----

skipif mysql # not compatible
query III rowsort label-6114
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( CAST ( 5 AS INTEGER ) ) ) IS NOT NULL AND NOT + col0 + - col1 / + col0 > - ( 66 )
----

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> 15
----

query I rowsort
SELECT DISTINCT col2 - + col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * 55 col2 FROM tab2
----
-3685

query I rowsort
SELECT + col2 * - 64 AS col1 FROM tab0 AS cor0
----
-3008
-6336
-640

query I rowsort
SELECT ALL + + 61 * - + col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-1368
-158
-4956

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT ( - 80 + + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT ( - 80 + + col1 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 + - 57 * col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ( ( + ( - col2 ) ) ) * + 95 AS col0 FROM tab0 AS cor0
----
-4465
-9405
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT DISTINCT 79 * MAX( ALL 83 ) col2 FROM tab2 AS cor0
----
6557

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6123
SELECT DISTINCT 79 * MAX ( ALL 83 ) col2 FROM tab2 AS cor0
----
6557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 - - 17 + - 16 col0 FROM tab0 cor0
----
175
195
31

query I rowsort
SELECT DISTINCT - + 42 - col0 FROM tab1 AS cor0 WHERE NOT + 1 IS NULL
----
-127
-133
-93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 34 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 95 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT DISTINCT SUM( + + col2 ) * - COUNT( * ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT SUM ( + + col2 ) * - COUNT ( * ) FROM tab0
----
-468

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT DISTINCT col1 DIV - - col2 AS col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT col1 / - - col2 AS col2 FROM tab2
----
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT MIN( ALL + 27 ) / + CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT MIN ( ALL + 27 ) / + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + - col0 * col2 col2 FROM tab2
----
-2484
-4274
-982

query I rowsort
SELECT 85 * - - col2 + + col1 FROM tab2
----
2006
3477
4997

query I rowsort
SELECT + col1 + col1 + ( + ( col2 ) ) AS col2 FROM tab1
----
124
162
69

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 94 > 3 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= col2 - 68 * - 50
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6136
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 40 / CAST( col2 AS SIGNED ) * + col2 - + CAST( NULL AS DECIMAL ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 40 / CAST ( col2 AS INTEGER ) * + col2 - + CAST ( NULL AS REAL ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE ( NULL >= - 20 )
----

query I rowsort
SELECT + - col1 + - 77 FROM tab1 AS cor0 WHERE + 20 >= + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT MAX( + col2 ) + + ( + ( - + 24 ) ) AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT MAX ( + col2 ) + + ( + ( - + 24 ) ) AS col1 FROM tab0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT CAST( NULL AS SIGNED ) + - - 28 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT + col1 FROM tab2 AS cor0 WHERE + CAST( col0 AS SIGNED ) + col2 / + col0 <> - col1 / + col2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6141
SELECT + col1 FROM tab2 AS cor0 WHERE + CAST ( col0 AS INTEGER ) + col2 / + col0 <> - col1 / + col2
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 + - - 50 * + 11 * - - col2 * + col0 FROM tab0 cor0
----
387765
478587
5281747

query I rowsort
SELECT 23 * 70 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 + - col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL - MAX( DISTINCT + 77 ) AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - MAX ( DISTINCT + 77 ) AS col2 FROM tab0 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6145
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-6145
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) IN ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6146
SELECT MIN( DISTINCT col1 ) / - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

query I rowsort
SELECT + ( - 96 ) FROM tab1
----
-96
-96
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6148
SELECT - 0 AS col1, 96 DIV - MIN( - col1 ) col0 FROM tab0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6148
SELECT - 0 AS col1, 96 / - MIN ( - col1 ) col0 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43 col2, - 80 FROM tab1
----
43
-80
43
-80
43
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 + ( - + 71 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - 36 col0 FROM tab1 AS cor0
----
-2124
-2448
-3456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6153
SELECT + col2, - 94 * - + CAST( col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
10
711486
47
21150
99
884446

skipif mysql # not compatible
query II rowsort label-6153
SELECT + col2, - 94 * - + CAST ( col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
10
711486
47
21150
99
884446

query I rowsort
SELECT DISTINCT - 67 + + col2 * col1 FROM tab0
----
143
32
3740

query I rowsort
SELECT ALL + + col1 + 38 * - col0 * - ( + col2 ) FROM tab2 AS cor0
----
165367
40255
97357

query I rowsort
SELECT DISTINCT - ( col0 ) + - - col1 + 53 * - col0 * col2 FROM tab1 AS cor0
----
-259525
-265875
-328008

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6157
SELECT DISTINCT COUNT( * ) * 40 / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT COUNT ( * ) * 40 / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6158
SELECT ALL + - CAST( NULL AS SIGNED ) + - COUNT( * ) col2, - 3 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6158
SELECT ALL + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2, - 3 FROM tab0 AS cor0
----
NULL
-3

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) NOT BETWEEN + 21 * 19 AND ( + 73 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( - 71 ) * + + 92 + - col2 col1 FROM tab0 AS cor0 WHERE + col2 < - 24
----

query I rowsort
SELECT 60 * + col0 AS col1 FROM tab2 AS cor0
----
2760
3840
4500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6162
SELECT DISTINCT 92 + - - CAST( + - 18 AS SIGNED ) - + + ( ( - + COUNT( * ) ) ) * + 40 FROM tab2 AS cor0
----
194

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT 92 + - - CAST ( + - 18 AS INTEGER ) - + + ( ( - + COUNT ( * ) ) ) * + 40 FROM tab2 AS cor0
----
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT DISTINCT - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 41 * CAST( - + 36 AS SIGNED ) AND 84
----

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 41 * CAST ( - + 36 AS INTEGER ) AND 84
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE + 14 BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT COUNT( DISTINCT 55 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6166
SELECT COUNT ( DISTINCT 55 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab0 WHERE NOT col2 * - 79 IS NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE - - 8 IN ( - ( - 98 ), col2 )
----

query I rowsort
SELECT 52 * - col0 - 8 FROM tab1 WHERE NULL IS NULL
----
-2660
-4428
-4740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 31 col1, + 86 * - 92 AS col2 FROM tab1
----
31
-7912

query I rowsort
SELECT DISTINCT - 56 + + 38 AS col2 FROM tab0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6172
SELECT ALL COUNT( * ) DIV + COUNT( * ) + + 58 * - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-173

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL COUNT ( * ) / + COUNT ( * ) + + 58 * - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-173

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + - col2 NOT BETWEEN 73 AND ( NULL )
----
15
81
47
97
1
99

query II rowsort
SELECT 28 + - ( - col1 ) AS col0, 33 AS col2 FROM tab0 cor0
----
109
33
29
33
49
33

query I rowsort
SELECT - 8 + - 27 AS col0 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL + col0 - + + 19 FROM tab2 AS cor0
----
27
45
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL - 72 + COUNT( * ) FROM tab0 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL - 72 + COUNT ( * ) FROM tab0 cor0
----
-69

query I rowsort
SELECT - + col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query II rowsort
SELECT DISTINCT + 40 - + col0, - 81 AS col1 FROM tab0
----
-47
-81
-57
-81
25
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6180
SELECT + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6180
SELECT + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6182
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 + - col2 + - 68 BETWEEN + CAST( NULL AS SIGNED ) AND ( 10 + - col0 )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-6182
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 + - col2 + - 68 BETWEEN + CAST ( NULL AS INTEGER ) AND ( 10 + - col0 )
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6183
SELECT DISTINCT - col0 DIV - + ( col1 ) FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT - col0 / - + ( col1 ) FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6184
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6184
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT - - col0 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE NOT - col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT DISTINCT MAX( 65 ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT MAX ( 65 ) FROM tab0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6188
SELECT + CAST( + 75 AS SIGNED ) * - 36 + + - col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6188
SELECT + CAST ( + 75 AS INTEGER ) * - 36 + + - col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6189
SELECT ALL 86, - col0 DIV - - 25 col1 FROM tab1
----
86
-2
86
-3
86
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6189
SELECT ALL 86, - col0 / - - 25 col1 FROM tab1
----
86
-2
86
-3
86
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN col1 AND 44 - - 31 - - - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT SUM( - 95 ) FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT SUM ( - 95 ) FROM tab1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT ALL + MAX( ALL + - 99 ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + MAX ( ALL + - 99 ) FROM tab2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6193
SELECT DISTINCT COUNT( * ) AS col2, 40 col1 FROM tab0
----
3
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6193
SELECT DISTINCT COUNT ( * ) AS col2, 40 col1 FROM tab0
----
3
40

query I rowsort
SELECT + ( ( + col0 ) ) AS col1 FROM tab1
----
51
85
91

query II rowsort
SELECT ALL - col2, 52 * 49 * 3 - + 18 AS col2 FROM tab2 AS cor0
----
-23
7626
-40
7626
-58
7626

query II rowsort
SELECT 4, + col2 FROM tab0
----
4
10
4
47
4
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6197
SELECT ALL + - ( 9 ) * - SUM( col0 ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
1791
3

skipif mysql # not compatible
query II rowsort label-6197
SELECT ALL + - ( 9 ) * - SUM ( col0 ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1791
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 + + - col0 + - 36 * - + col1 col0 FROM tab0 cor0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT - + 14 + + + ( + COUNT( * ) ) - - + ( COUNT( * ) ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6199
SELECT - + 14 + + + ( + COUNT ( * ) ) - - + ( COUNT ( * ) ) FROM tab1 AS cor0
----
-8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 * 62 + + 36 / 28 * - col0 + - col2 NOT BETWEEN + 12 + 90 + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6201
SELECT DISTINCT + COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT + COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT + 30 + - - ( col1 ) IS NULL
----
14
47
5

query I rowsort
SELECT + col1 * - col2 + + 74 AS col2 FROM tab1
----
-1270
-221
-3122

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

query I rowsort
SELECT + ( - + 95 ) AS col1 FROM tab0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ( COUNT( * ) ) * 16 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-6206
SELECT ( COUNT ( * ) ) * 16 FROM tab2
----
48

query I rowsort
SELECT DISTINCT ( - col1 ) + + col0 + - 33 + 90 * - col0 FROM tab1
----
-4586
-7603
-8179

onlyif mysql # aggregate syntax: 
query II rowsort label-6208
SELECT 47 * - 93 AS col1, SUM( + - col2 ) AS col2 FROM tab1
----
-4371
-223

skipif mysql # not compatible
query II rowsort label-6208
SELECT 47 * - 93 AS col1, SUM ( + - col2 ) AS col2 FROM tab1
----
-4371
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL - COUNT( * ) * + - ( + COUNT( DISTINCT - + 21 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL - COUNT ( * ) * + - ( + COUNT ( DISTINCT - + 21 ) ) AS col1 FROM tab2
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 * + + 59 + + 25 + - col0 col2 FROM tab2 AS cor0
----
181681
229224
69186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6212
SELECT - 82 - - - COUNT( * ) col0, ( - MIN( ALL - + CAST( col1 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-85
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6212
SELECT - 82 - - - COUNT ( * ) col0, ( - MIN ( ALL - + CAST ( col1 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-85
77

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 15 * - col2 AS col0 FROM tab2
----
-345
-600
-870

query II rowsort
SELECT - col1, - col1 AS col0 FROM tab1
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT MAX( ALL + 2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-6216
SELECT MAX ( ALL + 2 ) FROM tab2
----
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 58 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6218
SELECT + col0 DIV col0 + col0 + col0 * + - col1 FROM tab0 AS cor0
----
-1199
-1739
1

skipif mysql # not compatible
query I rowsort label-6218
SELECT + col0 / col0 + col0 + col0 * + - col1 FROM tab0 AS cor0
----
-1199
-1739
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT - COUNT( ALL + 92 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6219
SELECT - COUNT ( ALL + 92 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL 88 - + col2 AS col1 FROM tab2 AS cor0 WHERE ( col2 + - col0 + - - 23 ) = - col2 / + - col2
----

query I rowsort
SELECT - col2 * + - 20 AS col2 FROM tab2 AS cor0
----
1160
460
800

query III rowsort
SELECT ALL * FROM tab0 WHERE + 55 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - + 84 FROM tab0
----
-1260
-7308
-8148

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col1 >= ( 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT DISTINCT MIN( + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT MIN ( + col2 ) AS col0 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT ALL + CAST( - col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ALL + 44 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL + 44 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT - MIN( - + col0 ) col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6228
SELECT - MIN ( - + col0 ) col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT col1 * - 0 + 19 AS col1 FROM tab0 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT ALL col0 / - col2 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( CAST( NULL AS SIGNED ) - + 66 )
----

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL col0 / - col2 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( CAST ( NULL AS INTEGER ) - + 66 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - 36 + + col2 FROM tab2 AS cor0
----
-13
22
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6233
SELECT ALL + col2 * - col1 - col1 AS col0, col2 * + ( + col2 ) + - ( + - ( CAST( col2 AS SIGNED ) ) ) * + 69 AS col0 FROM tab1 AS cor0
----
-1358
15840
-300
7552
-3243
9316

skipif mysql # not compatible
query II rowsort label-6233
SELECT ALL + col2 * - col1 - col1 AS col0, col2 * + ( + col2 ) + - ( + - ( CAST ( col2 AS INTEGER ) ) ) * + 69 AS col0 FROM tab1 AS cor0
----
-1358
15840
-300
7552
-3243
9316

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL + + 66 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + + 66 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT DISTINCT + COUNT( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT + COUNT ( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - 69 + 50 AS col0 FROM tab1 AS cor0
----
119
119
119

query I rowsort
SELECT + 74 - col1 AS col1 FROM tab1
----
27
60
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6238
SELECT ALL - 78, MAX( DISTINCT + - CAST( - - col1 AS SIGNED ) ) AS col0 FROM tab1
----
-78
-5

skipif mysql # not compatible
query II rowsort label-6238
SELECT ALL - 78, MAX ( DISTINCT + - CAST ( - - col1 AS INTEGER ) ) AS col0 FROM tab1
----
-78
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6239
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * + - 22 * + col0 * - - 36 NOT BETWEEN - - 15 * + - CAST( NULL AS SIGNED ) + + col1 AND col0 + 73
----

skipif mysql # not compatible
query III rowsort label-6239
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * + - 22 * + col0 * - - 36 NOT BETWEEN - - 15 * + - CAST ( NULL AS INTEGER ) + + col1 AND col0 + 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6240
SELECT + CAST( ( - col1 ) AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6240
SELECT + CAST ( ( - col1 ) AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - ( 80 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT MAX( - col0 ) * + - COUNT( * ) * + 88 AS col2 FROM tab2
----
12144

skipif mysql # not compatible
query I rowsort label-6242
SELECT MAX ( - col0 ) * + - COUNT ( * ) * + 88 AS col2 FROM tab2
----
12144

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 BETWEEN + 93 AND 5 * - 79
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 39 * + col0 FROM tab2
----
1794
2496
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT DISTINCT COUNT( ALL - ( - - col0 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT COUNT ( ALL - ( - - col0 ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + ( 52 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1196
-2080
-3016

onlyif mysql # DIV for integer division: 
query II rowsort label-6247
SELECT ALL 33 DIV - - col2, + col0 col0 FROM tab0 AS cor0
----
0
15
0
97
3
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6247
SELECT ALL 33 / - - col2, + col0 col0 FROM tab0 AS cor0
----
0
15
0
97
3
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT + + COUNT( * ) * COUNT( * ) DIV ( + - 92 ) * - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6248
SELECT + + COUNT ( * ) * COUNT ( * ) / ( + - 92 ) * - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + + col1 + - col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + + col1 + - col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6250
SELECT + - 12 DIV - COUNT( + 3 ) + + 58 * + - SUM( ALL col0 ) * - 83 AS col2 FROM tab2 AS cor0
----
890594

skipif mysql # not compatible
query I rowsort label-6250
SELECT + - 12 / - COUNT ( + 3 ) + + 58 * + - SUM ( ALL col0 ) * - 83 AS col2 FROM tab2 AS cor0
----
890594

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT DISTINCT ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 42 <> NULL
----

query I rowsort
SELECT ALL col2 * + - 85 AS col2 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT ALL 52 * col0 * - col0 AS col1 FROM tab1
----
-135252
-375700
-430612

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT 75 + + COUNT( * ) col0 FROM tab1 WHERE NOT ( col2 ) IN ( - col2 / + 65, col0 - + + 28, - + col2, - col2, - 52 )
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6255
SELECT 75 + + COUNT ( * ) col0 FROM tab1 WHERE NOT ( col2 ) IN ( - col2 / + 65, col0 - + + 28, - + col2, - col2, - 52 )
----
78

query I rowsort
SELECT DISTINCT + col1 * + 99 + - col0 + + + 57 + - col0 * + col2 * + col0 * + - 0 + col1 / col1 * + col0 / + col0 AS col2 FROM tab1 WHERE NOT NULL BETWEEN + 64 AND + 90 * col0 - + 46
----

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + 79 + - 0 FROM tab2 AS cor0
----
79
79
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT + - 76 + + - 32 - - + COUNT( * ) AS col2 FROM tab0 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT + - 76 + + - 32 - - + COUNT ( * ) AS col2 FROM tab0 cor0
----
-105

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + - 68 + - + col0 IS NULL
----

query I rowsort
SELECT ( + + col2 ) AS col0 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT + col1 * col0 * CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 cor0 WHERE - col2 BETWEEN ( - col2 * + - col2 ) AND + 97
----

skipif mysql # not compatible
query I rowsort label-6263
SELECT + col1 * col0 * CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 cor0 WHERE - col2 BETWEEN ( - col2 * + - col2 ) AND + 97
----

query I rowsort
SELECT ALL + ( + 47 ) AS col1 FROM tab0
----
47
47
47

query III rowsort
SELECT * FROM tab2 WHERE - 17 * - - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT DISTINCT 4 + col1 + + + col1 + - ( col2 ) + 97 + col2 DIV - col1 AS col2 FROM tab0
----
-95
133
216

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT 4 + col1 + + + col1 + - ( col2 ) + 97 + col2 / - col1 AS col2 FROM tab0
----
-95
133
216

query III rowsort
SELECT * FROM tab2 WHERE + col2 - 48 IS NULL
----

query I rowsort
SELECT - - 77 + + - 49 + + + 16 * - 12 + + col2 AS col2 FROM tab2 AS cor0
----
-106
-124
-141

query I rowsort
SELECT DISTINCT col1 + ( col0 ) AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL col2 * - col2 - + col2 FROM tab0 AS cor0
----
-110
-2256
-9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT 72 + + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT 59 AS col1 FROM tab0 AS cor0 WHERE 44 < + col2 * + col1
----
59
59
59

query II rowsort
SELECT + col1, 15 FROM tab1
----
14
15
47
15
5
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6274
SELECT CAST( - COUNT( ALL + - col2 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6274
SELECT CAST ( - COUNT ( ALL + - col2 ) AS INTEGER ) FROM tab1
----
-3

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

query I rowsort
SELECT 65 * - - col0 FROM tab0
----
5655
6305
975

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT + COUNT( * ) * - 45 AS col0 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-6277
SELECT + COUNT ( * ) * - 45 AS col0 FROM tab0
----
-135

query II rowsort
SELECT - col0 AS col0, + col2 AS col2 FROM tab2
----
-46
23
-64
40
-75
58

query II rowsort
SELECT DISTINCT col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL + - SUM( ALL - 73 ) AS col0 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL + - SUM ( ALL - 73 ) AS col0 FROM tab0 AS cor0
----
219

query II rowsort
SELECT ALL + col2, 62 FROM tab0 AS cor0
----
10
62
47
62
99
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6282
SELECT 16 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6282
SELECT 16 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 52 col1, + col0 FROM tab0 AS cor0
----
-52
15
-52
87
-52
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT - MIN( ALL 39 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT - MIN ( ALL 39 ) FROM tab2 AS cor0
----
-39

query II rowsort
SELECT DISTINCT + + col0 * + 97 * - + col2 * col0 AS col0, 37 FROM tab1 AS cor0
----
-24220512
37
-41348675
37
-54621476
37

query I rowsort
SELECT - 95 * col1 * + - col1 AS col2 FROM tab2 cor0
----
247095
426455
563255

onlyif mysql # aggregate syntax: 
query II rowsort label-6287
SELECT + COUNT( * ), - 46 * + COUNT( + - col2 ) AS col1 FROM tab0 cor0 WHERE NOT col0 BETWEEN col1 AND NULL
----
1
-46

skipif mysql # not compatible
query II rowsort label-6287
SELECT + COUNT ( * ), - 46 * + COUNT ( + - col2 ) AS col1 FROM tab0 cor0 WHERE NOT col0 BETWEEN col1 AND NULL
----
1
-46

query I rowsort
SELECT DISTINCT + + 8 * - - 59 FROM tab1 AS cor0
----
472

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT ALL ( col0 ) DIV - + ( + col2 ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL ( col0 ) / - + ( + col2 ) FROM tab2
----
-1
-1
-2

query I rowsort
SELECT col2 * - - col1 * + col1 * + + col1 AS col0 FROM tab0
----
24977727
92610
99

query II rowsort
SELECT DISTINCT col2 + col1 + - - col2, - ( + col2 ) * - + col2 AS col0 FROM tab2
----
157
1600
183
3364
97
529

query I rowsort
SELECT ALL + 76 * + col2 + + col2 FROM tab2 cor0
----
1771
3080
4466

query I rowsort
SELECT 73 + + ( - col0 ) AS col1 FROM tab0 cor0
----
-14
-24
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT + - 95 + - SUM( col0 ) FROM tab2 cor0
----
-280

skipif mysql # not compatible
query I rowsort label-6294
SELECT + - 95 + - SUM ( col0 ) FROM tab2 cor0
----
-280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT - 27 - + - CAST( + 68 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif mysql # not compatible
query I rowsort label-6295
SELECT - 27 - + - CAST ( + 68 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - col2 + - - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT ALL col2 DIV - - 88 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL col2 / - - 88 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT + - 65 DIV 8 AS col1 FROM tab2 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-6301
SELECT + - 65 / 8 AS col1 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL 78 + 4 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE col1 >= + 31
----
47

query I rowsort
SELECT col1 - + - 88 * 38 AS col0 FROM tab2 AS cor0
----
3395
3411
3421

query I rowsort
SELECT ALL col0 - - + 83 AS col2 FROM tab0 AS cor0
----
170
180
98

query I rowsort
SELECT DISTINCT + col2 - + 33 + - col2 * 46 AS col1 FROM tab0 AS cor0
----
-2148
-4488
-483

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE - - 86 + - 70 - - col2 * - col2 NOT BETWEEN + 68 AND NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT MAX( DISTINCT - + col2 ) + + + COUNT( * ) col0 FROM tab2 WHERE - + col0 IN ( + + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6308
SELECT MAX ( DISTINCT - + col2 ) + + + COUNT ( * ) col0 FROM tab2 WHERE - + col0 IN ( + + col0 )
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT ALL + - col0 DIV - 8 + - 85 FROM tab0 WHERE + 26 IS NOT NULL
----
-73
-75
-84

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL + - col0 / - 8 + - 85 FROM tab0 WHERE + 26 IS NOT NULL
----
-73
-75
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6311
SELECT ALL - CAST( MIN( DISTINCT col2 ) AS SIGNED ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL - CAST ( MIN ( DISTINCT col2 ) AS INTEGER ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT 94 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT 94 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL + COUNT( + - 37 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + COUNT ( + - 37 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6314
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - ( - col1 ) * + + ( - + col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 13 col2, - col1 AS col2 FROM tab1
----
13
-14
13
-47
13
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT + COUNT( * ) * + - 3 AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6318
SELECT + COUNT ( * ) * + - 3 AS col0 FROM tab1
----
-9

query I rowsort
SELECT ALL + col2 * + col2 * - col0 + + + col2 FROM tab2 AS cor0
----
-102360
-24311
-252242

query I rowsort
SELECT DISTINCT - + 61 * - + 90 AS col0 FROM tab1 AS cor0
----
5490

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6323
SELECT * FROM tab2 cor0 WHERE NOT - CAST( NULL AS SIGNED ) + 6 NOT BETWEEN ( NULL ) AND col1
----

skipif mysql # not compatible
query III rowsort label-6323
SELECT * FROM tab2 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + 6 NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT 72 * + - 83 * 80 FROM tab0 cor0
----
-478080
-478080
-478080

query I rowsort
SELECT 59 + - + col2 AS col0 FROM tab2
----
1
19
36

query II rowsort
SELECT ALL - col2 + col0, col0 FROM tab2
----
17
75
23
46
24
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT DISTINCT + MIN( DISTINCT - 65 ) AS col0 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT + MIN ( DISTINCT - 65 ) AS col0 FROM tab0
----
-65

query I rowsort
SELECT - col2 * - col0 + - - 6 FROM tab0
----
711
876
9609

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6329
SELECT + ( - col0 ), CAST( - col1 AS SIGNED ) DIV 6 * - + col0 AS col1 FROM tab1 WHERE - - 60 * - col2 >= - ( + col0 ) * + ( 48 ) + + ( + col0 )
----
-85
0
-91
637

skipif mysql # not compatible
query II rowsort label-6329
SELECT + ( - col0 ), CAST ( - col1 AS INTEGER ) / 6 * - + col0 AS col1 FROM tab1 WHERE - - 60 * - col2 >= - ( + col0 ) * + ( 48 ) + + ( + col0 )
----
-85
0
-91
637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6330
SELECT DISTINCT COUNT( * ) col1, CAST( NULL AS SIGNED ) col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6330
SELECT DISTINCT COUNT ( * ) col1, CAST ( NULL AS INTEGER ) col0 FROM tab1
----
3
NULL

query I rowsort
SELECT ALL - col2 + - 53 FROM tab0
----
-100
-152
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL 21 + - COUNT( * ) FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL 21 + - COUNT ( * ) FROM tab2 cor0
----
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - - ( + - ( + ( - col1 ) ) ) ) + 91 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL - 73 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - 73 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 98 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT DISTINCT MIN( 42 ) - 53 AS col1 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT MIN ( 42 ) - 53 AS col1 FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ALL + - MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + - MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT ( col2 ) * + col2 - col1 FROM tab1
----
3476
4577
9202

query I rowsort
SELECT DISTINCT - col2 * + 66 AS col2 FROM tab1 cor0
----
-3894
-4488
-6336

query I rowsort
SELECT DISTINCT + col2 + - 47 FROM tab0 AS cor0
----
-37
0
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT + col2 FROM tab1 AS cor0 WHERE + CAST( - 82 AS SIGNED ) + col2 <> + 72
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6343
SELECT + col2 FROM tab1 AS cor0 WHERE + CAST ( - 82 AS INTEGER ) + col2 <> + 72
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 - + - col1 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + - col1 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6346
SELECT - - COUNT( ALL col1 ) DIV - 27 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT - - COUNT ( ALL col1 ) / - 27 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 8 FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT - - col0 * - col1 IS NULL
----
8
8
8

query II rowsort
SELECT ALL + 24 AS col0, col2 * - - col2 * + 4 FROM tab1
----
24
13924
24
18496
24
36864

query II rowsort
SELECT DISTINCT col1, - ( + - col1 ) FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT col0 * - + 98 AS col2 FROM tab0
----
-1470
-8526
-9506

query I rowsort
SELECT ALL ( + ( - col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6353
SELECT - COUNT( * ), - ( 72 ) AS col2 FROM tab2
----
-3
-72

skipif mysql # not compatible
query II rowsort label-6353
SELECT - COUNT ( * ), - ( 72 ) AS col2 FROM tab2
----
-3
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT ALL + col0 DIV col1 FROM tab0 WHERE NOT 13 IS NULL
----
0
4
97

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL + col0 / col1 FROM tab0 WHERE NOT 13 IS NULL
----
0
4
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, + 4 col1 FROM tab2 cor0
----
23
4
40
4
58
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 43 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT + + COUNT( * ) DIV + COUNT( * ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6357
SELECT + + COUNT ( * ) / + COUNT ( * ) FROM tab0 cor0
----
1

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 53 * + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6362
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT + col2 + + col2 AS col2, + 80 AS col1 FROM tab0 AS cor0
----
198
80
20
80
94
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6364
SELECT ALL + MAX( + 18 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6365
SELECT DISTINCT + + col1 + - col0 AS col1, - 67 + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST( - + 66 AS SIGNED ) * - 9 * col1 IS NULL
----
-37
-81
-44
-114
-80
-72

skipif mysql # not compatible
query II rowsort label-6365
SELECT DISTINCT + + col1 + - col0 AS col1, - 67 + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( - + 66 AS INTEGER ) * - 9 * col1 IS NULL
----
-37
-81
-44
-114
-80
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + + col0 + + + col0 col1 FROM tab0 AS cor0
----
240
7656
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT col1 DIV + + 1 + - - 47 * + col1 FROM tab0 AS cor0
----
1008
3888
48

skipif mysql # not compatible
query I rowsort label-6367
SELECT col1 / + + 1 + - - 47 * + col1 FROM tab0 AS cor0
----
1008
3888
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT ( + - col2 ) DIV + col1 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6369
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + - 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 35 * - + col1 AS col2 FROM tab2
----
-1785
-2345
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - ( - + COUNT( * ) ) * - - 89 col2 FROM tab0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6372
SELECT - ( - + COUNT ( * ) ) * - - 89 col2 FROM tab0
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * 78 col2 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT - 74 + + col1 AS col1 FROM tab0
----
-53
-73
7

query II rowsort
SELECT ALL + 66 * + col0 + + 78, col1 * 1 + + col2 + + - 94 * 68 AS col2 FROM tab2
----
3114
-6318
4302
-6275
5028
-6267

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT DISTINCT - 2 + SUM( col2 ) AS col1 FROM tab2 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT - 2 + SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-6377
SELECT DISTINCT COUNT( * ) AS col0, 35 col0 FROM tab1 AS cor0
----
3
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6377
SELECT DISTINCT COUNT ( * ) AS col0, 35 col0 FROM tab1 AS cor0
----
3
35

query I rowsort
SELECT + 34 - + col0 AS col1 FROM tab2 AS cor0
----
-12
-30
-41

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

query I rowsort
SELECT - ( + - col2 ) AS col1 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6381
SELECT ALL + - 8 DIV + MAX( + - col0 ) + - 43 AS col1 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + - 8 / + MAX ( + - col0 ) + - 43 AS col1 FROM tab1 AS cor0
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-6382
SELECT ALL - - col0 AS col0, 14 DIV + col2 col0 FROM tab0 AS cor0
----
15
0
87
1
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6382
SELECT ALL - - col0 AS col0, 14 / + col2 col0 FROM tab0 AS cor0
----
15
0
87
1
97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6383
SELECT DISTINCT - COUNT( * ) DIV 23 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT - COUNT ( * ) / 23 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 33 * col2 FROM tab2 AS cor0
----
-1320
-1914
-759

query II rowsort
SELECT DISTINCT - + col2 AS col1, 83 FROM tab2 AS cor0
----
-23
83
-40
83
-58
83

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT DISTINCT - MIN( + - col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT - MIN ( + - col2 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT DISTINCT + col0 * - ( - col0 ) FROM tab0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + col2 col1, + col1 AS col0 FROM tab2
----
1058
51
2560
77
4350
67

query I rowsort
SELECT col2 * - - 16 * - 48 FROM tab1
----
-45312
-52224
-73728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT ALL CAST( NULL AS SIGNED ) / + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL - MIN( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - MIN ( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ( col2 ) * - - col0 * + col2 AS col0 FROM tab1 cor0
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, ( + col1 ) FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ( - 61 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL + col0 + - 58 + - col2 AS col2 FROM tab2
----
-34
-35
-41

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

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE + col1 / - - col2 * + 92 IS NOT NULL
----
1
21
81

query II rowsort
SELECT + col0 AS col0, 53 FROM tab1 AS cor0
----
51
53
85
53
91
53

query I rowsort
SELECT 25 + + col0 FROM tab2 AS cor0 WHERE - 35 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT DISTINCT + SUM( + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + SUM ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT + col1 + - col1 * + 16 AS col1 FROM tab1 AS cor0
----
-210
-705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL + - 68 + + COUNT( * ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL + - 68 + + COUNT ( * ) FROM tab0 AS cor0
----
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 IS NOT NULL
----

query II rowsort
SELECT ALL + 99, + col2 AS col0 FROM tab2 AS cor0
----
99
23
99
40
99
58

query I rowsort
SELECT col0 * col1 + - + col1 + + col2 FROM tab0
----
1181
1816
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 + + + col0 * col2 col2 FROM tab1
----
4849
4968
6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6410
SELECT - col0 * + CAST( + col2 AS SIGNED ) FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-6410
SELECT - col0 * + CAST ( + col2 AS INTEGER ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 14 + - + ( + - col0 ) AS col2 FROM tab0
----
1
73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ( - MIN( DISTINCT - ( 67 ) ) ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-6412
SELECT ( - MIN ( DISTINCT - ( 67 ) ) ) FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT DISTINCT - 3 * - ( ( + COUNT( * ) ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT - 3 * - ( ( + COUNT ( * ) ) ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL - COUNT( * ) + - MAX( col0 ) - - COUNT( * ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL - COUNT ( * ) + - MAX ( col0 ) - - COUNT ( * ) FROM tab2 cor0
----
-75

query I rowsort
SELECT DISTINCT - - 21 - - 96 AS col0 FROM tab1 AS cor0
----
117

query I rowsort
SELECT DISTINCT - col1 * + col1 - + ( - + ( + col1 ) ) FROM tab2
----
-2550
-4422
-5852

query I rowsort
SELECT ALL - col1 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 80 / col2 IS NULL
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL + + MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL + + MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6419
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 70 col1 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT - col1 * col1 - + 56 FROM tab1 cor0
----
-2265
-252
-81

query II rowsort
SELECT col1, col2 * 98 FROM tab1
----
14
9408
47
6664
5
5782

query I rowsort
SELECT ALL col2 * + 25 AS col2 FROM tab1
----
1475
1700
2400

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - col0 ) BETWEEN + col1 + - col1 AND + + 86
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( - 60, + 2 + + 22, 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 48 * + col0 * + col1 FROM tab2 cor0
----
112608
236544
241200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6426
SELECT - COUNT( * ) DIV + 36 * - SUM( ALL + + col1 ) * + + 29 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6426
SELECT - COUNT ( * ) / + 36 * - SUM ( ALL + + col1 ) * + + 29 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 47 * - 4 AS col2 FROM tab1 AS cor0
----
-188
-188
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT - + 95 * + 52 - ( - + COUNT( ALL + 11 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4931

skipif mysql # not compatible
query I rowsort label-6428
SELECT - + 95 * + 52 - ( - + COUNT ( ALL + 11 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * ( + 40 ) * 8 col2 FROM tab0
----
7040

query I rowsort
SELECT ALL - col2 * - + col1 * col0 FROM tab2
----
197120
291450
53958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6431
SELECT DISTINCT + MIN( col1 ) * - 79 + + CAST( NULL AS SIGNED ) + + 82 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL col2 * 7 + + 86 AS col0 FROM tab2 AS cor0
----
247
366
492

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT - SUM( DISTINCT + - 14 ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6433
SELECT - SUM ( DISTINCT + - 14 ) FROM tab2 AS cor0
----
14

query I rowsort
SELECT DISTINCT + - ( - + 10 ) * + col2 + 3 FROM tab1 AS cor0
----
593
683
963

query I rowsort
SELECT ALL 93 + col1 FROM tab0 AS cor0
----
114
174
94

query II rowsort
SELECT - + ( - col1 ) AS col0, col2 FROM tab2 cor0
----
51
23
67
58
77
40

query II rowsort
SELECT ALL col1, - col1 FROM tab1
----
14
-14
47
-47
5
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / col1 <= + col0 / 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 92 * + 55 FROM tab2
----
-5060
-5060
-5060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 + - col0 * - 85 + + col0 col1 FROM tab1
----
4578
7428
7962

query II rowsort
SELECT ALL ( + - col1 ) + + col2 AS col0, 44 FROM tab0
----
-11
44
-34
44
98
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT 28 + COUNT( DISTINCT - col0 ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6442
SELECT 28 + COUNT ( DISTINCT - col0 ) FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT - 10 - - COUNT( * ) FROM tab2 AS cor0 WHERE 64 / - col2 IS NOT NULL
----
-7

skipif mysql # not compatible
query I rowsort label-6443
SELECT - 10 - - COUNT ( * ) FROM tab2 AS cor0 WHERE 64 / - col2 IS NOT NULL
----
-7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL - 34 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT + 7 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6449
SELECT + - ( + + COUNT( * ) ) * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * 61 col2 FROM tab0 AS cor0
----
1281
4941
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT + col0 * CAST( NULL AS SIGNED ) + 28 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) = NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 / + - col1 - - + ( - col2 ) + - col0 + + col0 * - 92 * + + col2 * col0 * col2 + col0 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6455
SELECT ALL ( + - col2 ) DIV - + col0, col1 FROM tab0
----
0
21
1
1
3
81

skipif mysql # not compatible
query II rowsort label-6455
SELECT ALL ( + - col2 ) / - + col0, col1 FROM tab0
----
0
21
1
1
3
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + 30 ) col2 FROM tab1
----
30
30
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6457
SELECT DISTINCT 0 DIV - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT 0 / - COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT - SUM( 89 ) + - COUNT( * ) AS col0 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-6458
SELECT - SUM ( 89 ) + - COUNT ( * ) AS col0 FROM tab2
----
-270

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 84 - 94 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT - 23 * + COUNT( * ) * COUNT( * ) + + + COUNT( * ) FROM tab1 cor0
----
-204

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - 23 * + COUNT ( * ) * COUNT ( * ) + + + COUNT ( * ) FROM tab1 cor0
----
-204

query I rowsort
SELECT + col2 * col2 * ( col0 ) FROM tab2 AS cor0
----
102400
24334
252300

query II rowsort
SELECT DISTINCT - + col2 * - 94 + + + col2 AS col0, col1 * + + ( col0 ) + col1 FROM tab1 AS cor0
----
5605
430
6460
4324
9120
728

query I rowsort
SELECT ALL col2 * - col0 * - col2 + + col1 FROM tab0 cor0
----
33216
8721
950698

query I rowsort
SELECT + 22 / - col0 + - + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col2 - 47 FROM tab2
----
-1
33
69

query I rowsort
SELECT col2 + col1 * - col0 AS col1 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT ALL + 47 + + - 49 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT + 56 * - COUNT( * ) + - ( 90 ) FROM tab1 cor0
----
-258

skipif mysql # not compatible
query I rowsort label-6468
SELECT + 56 * - COUNT ( * ) + - ( 90 ) FROM tab1 cor0
----
-258

query I rowsort
SELECT + - col1 + + 74 AS col0 FROM tab0 AS cor0
----
-7
53
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT 54 + + - col1 + + col2 DIV 72 col2 FROM tab1 AS cor0
----
41
49
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6470
SELECT 54 + + - col1 + + col2 / 72 col2 FROM tab1 AS cor0
----
41
49
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * 80 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT 78 * SUM( ALL - + 42 ) + - - 0 - - 58 AS col2 FROM tab1 AS cor0
----
-9770

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT 78 * SUM ( ALL - + 42 ) + - - 0 - - 58 AS col2 FROM tab1 AS cor0
----
-9770

query I rowsort
SELECT col1 + col0 + + + ( - col0 ) + + - col0 AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT + COUNT( * ) + + - MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-6474
SELECT + COUNT ( * ) + + - MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT CAST( - + col0 AS SIGNED ) + + 55 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6475
SELECT CAST ( - + col0 AS INTEGER ) + + 55 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col1 * + col1 + 25 AS col0 FROM tab0
----
-416
-6536
24

query I rowsort
SELECT ALL - 25 - - col0 AS col0 FROM tab2
----
21
39
50

query I rowsort
SELECT 89 * - 49 FROM tab1
----
-4361
-4361
-4361

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT - MAX( ALL - 48 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-6479
SELECT - MAX ( ALL - 48 ) FROM tab2
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col1 ) col0, 56 AS col0 FROM tab0
----
-1
56
-21
56
-81
56

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT ALL - 6 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - 6 / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6484
SELECT + 38, + COUNT( * ) AS col0 FROM tab2
----
38
3

skipif mysql # not compatible
query II rowsort label-6484
SELECT + 38, + COUNT ( * ) AS col0 FROM tab2
----
38
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6485
SELECT ALL 49 AS col1, + COUNT( * ) FROM tab0
----
49
3

skipif mysql # not compatible
query II rowsort label-6485
SELECT ALL 49 AS col1, + COUNT ( * ) FROM tab0
----
49
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 16 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 16 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 86 col2 FROM tab1 AS cor0
----
1204
4042
430

query I rowsort
SELECT ALL - + 38 * - col0 AS col1 FROM tab0 AS cor0
----
3306
3686
570

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6490
SELECT + + col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 25 * + - col0 FROM tab2
----
1150
1600
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - - COUNT( * ) + - + ( + 54 ) + MAX( - - col0 ) AS col1 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6492
SELECT - - COUNT ( * ) + - + ( + 54 ) + MAX ( - - col0 ) AS col1 FROM tab1 AS cor0
----
40

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT 79 - - col1 * + col1 * + col2 + - 97 NOT BETWEEN 98 AND ( - col0 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( ( - 77 ) <> - 95 + - - 76 )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

query I rowsort
SELECT DISTINCT - 87 * 49 AS col2 FROM tab0
----
-4263

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT SUM( ALL - + 55 ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6498
SELECT SUM ( ALL - + 55 ) FROM tab2 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6499
SELECT ALL - col2 AS col1, col1 + - + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-6499
SELECT ALL - col2 AS col1, col1 + - + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - + col2 > NULL
----

query I rowsort
SELECT DISTINCT + 42 - - - ( - ( 10 ) ) * - 58 AS col0 FROM tab0 AS cor0
----
-538

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT - MIN( + 62 ) AS col2 FROM tab1 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6502
SELECT - MIN ( + 62 ) AS col2 FROM tab1 cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6503
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IS NULL OR NOT - col1 * - col1 + + 61 + - CAST( col1 AS SIGNED ) * + + col1 <= - ( + 57 ) + col2 + - - 89 + + - ( + - ( + 73 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6503
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IS NULL OR NOT - col1 * - col1 + + 61 + - CAST ( col1 AS INTEGER ) * + + col1 <= - ( + 57 ) + col2 + - - 89 + + - ( + - ( + 73 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT col1 AS col0, 41 AS col2 FROM tab1 AS cor0
----
14
41
47
41
5
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6506
SELECT ALL - 23 + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * - - 50 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL - 23 + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - - 50 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + + col2 IS NULL
----

query I rowsort
SELECT ALL 77 * + + 71 - 86 AS col1 FROM tab1
----
5381
5381
5381

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT DISTINCT - 55 DIV col1 - + col2 FROM tab1
----
-69
-70
-99

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT - 55 / col1 - + col2 FROM tab1
----
-69
-70
-99

query I rowsort
SELECT col1 + - col2 + - 45 AS col1 FROM tab1
----
-127
-66
-99

query I rowsort
SELECT DISTINCT - 97 * - col1 * col0 * - col0 AS col0 FROM tab1
----
-3504125
-3532158
-37753079

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT DISTINCT 89 DIV - - col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT 89 / - - col0 FROM tab0
----
0
1
5

query II rowsort
SELECT col0, - 75 AS col2 FROM tab0 AS cor0
----
15
-75
87
-75
97
-75

query I rowsort
SELECT 49 FROM tab2 AS cor0 WHERE NOT 98 IS NULL
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT COUNT( DISTINCT + - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-6515
SELECT COUNT ( DISTINCT + - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + 76 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT ALL col0 DIV + + col0 FROM tab0 AS cor0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6517
SELECT 55 * - - COUNT( * ), 85 AS col2 FROM tab1
----
165
85

skipif mysql # not compatible
query II rowsort label-6517
SELECT 55 * - - COUNT ( * ), 85 AS col2 FROM tab1
----
165
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6518
SELECT ALL + ( - col0 ) * col0 DIV - col1 FROM tab2
----
41
53
83

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL + ( - col0 ) * col0 / - col1 FROM tab2
----
41
53
83

query I rowsort
SELECT ( 94 ) * - col0 * 55 AS col1 FROM tab2
----
-237820
-330880
-387750

onlyif mysql # DIV for integer division: 
query I rowsort label-6520
SELECT ALL - col1 DIV col2 * + + col1 FROM tab0 AS cor0
----
-42
-81
0

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - col1 / col2 * + + col1 FROM tab0 AS cor0
----
-42
-81
0

query I rowsort
SELECT ( + + col1 ) * col1 AS col2 FROM tab2 cor0
----
2601
4489
5929

query II rowsort
SELECT - col2 * - col0, - col0 AS col2 FROM tab2 AS cor0
----
1058
-46
2560
-64
4350
-75

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT ALL + + CAST( + col1 AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL + + CAST ( + col1 AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - col0 * - - col2 + - - col2 + - 1 / + + 25 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col2, + col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6529
SELECT ALL col1, - CAST( NULL AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-6529
SELECT ALL col1, - CAST ( NULL AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT + col1 + - 5 * - + 60 + - 5 FROM tab0
----
296
316
376

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6531
SELECT - 59 + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, - col1 DIV col0 * - 5 * - + col0 AS col2 FROM tab0
----
NULL
-375
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-6531
SELECT - 59 + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col1, - col1 / col0 * - 5 * - + col0 AS col2 FROM tab0
----
NULL
-375
NULL
0
NULL
0

query I rowsort
SELECT ALL + 31 + col1 FROM tab0
----
112
32
52

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN + - 15 AND - - col2 * ( - - col1 )
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6536
SELECT DISTINCT + col2 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 * - 84 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT col2 * col1 + - 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6539
SELECT * FROM tab2 WHERE NOT col2 + ( CAST( col1 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6539
SELECT * FROM tab2 WHERE NOT col2 + ( CAST ( col1 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6540
SELECT col1 DIV - 11 AS col1 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6540
SELECT col1 / - 11 AS col1 FROM tab1
----
-1
-4
0

query I rowsort
SELECT 27 * col0 AS col0 FROM tab0
----
2349
2619
405

query I rowsort
SELECT 70 * - col2 AS col1 FROM tab0
----
-3290
-6930
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT COUNT( * ) * 82 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-6543
SELECT COUNT ( * ) * 82 FROM tab1
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 78 + - col2 col1 FROM tab1
----
331
3598
996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6545
SELECT DISTINCT ( + 31 ) * col1 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6546
SELECT + 72 * CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
1008
3384
360

skipif mysql # not compatible
query I rowsort label-6546
SELECT + 72 * CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
1008
3384
360

query I rowsort
SELECT DISTINCT + col2 + - 79 * col1 FROM tab0
----
-1649
-6352
20

query I rowsort
SELECT DISTINCT 18 * + 47 AS col1 FROM tab2
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE ( 60 ) > ( col1 )
----
-1

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE ( 60 ) > ( col1 )
----
-1

query I rowsort
SELECT - col0 * 52 FROM tab0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL + MIN( col0 ) + 46 AS col2 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + MIN ( col0 ) + 46 AS col2 FROM tab1
----
97

query I rowsort
SELECT 6 * - col0 FROM tab1
----
-306
-510
-546

query I rowsort
SELECT 44 * 87 AS col0 FROM tab2
----
3828
3828
3828

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT DISTINCT col1 DIV + 67 col0 FROM tab0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6554
SELECT DISTINCT col1 / + 67 col0 FROM tab0
----
0
1

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 55 AND 27
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 3 + 41
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT DISTINCT + 97 DIV - 67 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT + 97 / - 67 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT - COUNT( col0 ) + - 58 * 16 FROM tab0
----
-931

skipif mysql # not compatible
query I rowsort label-6559
SELECT - COUNT ( col0 ) + - 58 * 16 FROM tab0
----
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6560
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT col1 IS NULL
----
-3

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - 47 + - col2 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NULL NOT IN ( + col1 * + 8 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NULL NOT IN ( + col1 * + 8 + + col1 )
----
0

query I rowsort
SELECT + col2 * - col1 + 4 FROM tab2
----
-1169
-3076
-3882

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 - + 22 = NULL
----

query I rowsort
SELECT ALL 99 * + 47 AS col2 FROM tab0 AS cor0
----
4653
4653
4653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6566
SELECT DISTINCT 98 DIV + COUNT( * ) col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6566
SELECT DISTINCT 98 / + COUNT ( * ) col0 FROM tab0 AS cor0
----
32

query I rowsort
SELECT ALL - 69 * - 74 FROM tab2 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL - - SUM( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - - SUM ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL MAX( - ( col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL MAX ( - ( col1 ) ) FROM tab1 AS cor0
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT - COUNT( - col0 ) * MAX( col2 ) AS col1 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-6572
SELECT - COUNT ( - col0 ) * MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
-297

query I rowsort
SELECT ( - - 49 ) * col1 AS col1 FROM tab2
----
2499
3283
3773

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IS NULL OR NOT + 87 + + col1 <> NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 >= + 34
----
87
21
10

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6577
SELECT ALL 9 / + col0 + - col0 * 12 FROM tab2 WHERE ( - col1 - + col2 * CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL 9 / + col0 + - col0 * 12 FROM tab2 WHERE ( - col1 - + col2 * CAST ( NULL AS REAL ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT 2 * + ( CAST( NULL AS SIGNED ) ) + - col1 * + 55 AS col1 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT 2 * + ( CAST ( NULL AS INTEGER ) ) + - col1 * + 55 AS col1 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6579
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + COUNT( * ) + - 0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6580
SELECT + COUNT ( * ) + - 0 FROM tab1
----
3

query I rowsort
SELECT col1 + col1 - col1 * 5 FROM tab0 AS cor0
----
-243
-3
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6582
SELECT + SUM( DISTINCT + + col0 ) DIV + 34 + 10 * COUNT( * ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6582
SELECT + SUM ( DISTINCT + + col0 ) / + 34 + 10 * COUNT ( * ) FROM tab2 AS cor0
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6583
SELECT col0 * CAST( NULL AS DECIMAL ) + 93 FROM tab0 AS cor0 WHERE + col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-6583
SELECT col0 * CAST ( NULL AS REAL ) + 93 FROM tab0 AS cor0 WHERE + col1 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( + 26 )
----

query I rowsort
SELECT - 42 FROM tab0 WHERE ( col0 ) = ( - 19 )
----

query I rowsort
SELECT ALL - col0 * 28 FROM tab1 AS cor0
----
-1428
-2380
-2548

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + col2 + + col0 * + 39 <= NULL
----

query I rowsort
SELECT ALL + col1 + - - 36 FROM tab2 AS cor0
----
103
113
87

query II rowsort
SELECT DISTINCT 0 AS col2, col2 AS col0 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT ALL COUNT( + + ( - 1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL COUNT ( + + ( - 1 ) ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT - 28 AS col0, col1 * - col0 FROM tab0 AS cor0
----
-28
-1215
-28
-1827
-28
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6592
SELECT DISTINCT - 40 AS col1, - COUNT( * ) FROM tab1 AS cor0
----
-40
-3

skipif mysql # not compatible
query II rowsort label-6592
SELECT DISTINCT - 40 AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
-40
-3

query I rowsort
SELECT ALL - col0 * - 59 * - col0 * + 67 AS col0 FROM tab0
----
-29920257
-37193777
-889425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6594
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - col2 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - col2 FROM tab2
----
1600
3364
529

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

query I rowsort
SELECT + 96 * - 77 AS col1 FROM tab0
----
-7392
-7392
-7392

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6597
SELECT - col1 * 26 - + CAST( NULL AS DECIMAL ) * + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6597
SELECT - col1 * 26 - + CAST ( NULL AS REAL ) * + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND NULL
----

query II rowsort
SELECT DISTINCT col0 * + col1 AS col0, - col1 FROM tab2
----
2346
-51
4928
-77
5025
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6599
SELECT - 63 * CAST( NULL AS DECIMAL ) * MAX( ALL col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT - 63 * CAST ( NULL AS REAL ) * MAX ( ALL col0 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT - 81 * - COUNT( ALL - ( col0 ) ) AS col1 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-6600
SELECT - 81 * - COUNT ( ALL - ( col0 ) ) AS col1 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT COUNT( - 29 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6601
SELECT COUNT ( - 29 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT + COUNT( * ) * COUNT( - + col2 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6602
SELECT + COUNT ( * ) * COUNT ( - + col2 ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 - col1 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 95 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= + ( - + 51 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6608
SELECT ALL CAST( - - col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL CAST ( - - col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
2346
4928
5025

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col1 FROM tab1 WHERE NOT ( - col0 ) NOT BETWEEN ( - col1 * - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL + 19 * - COUNT( * ) FROM tab0 AS cor0 WHERE + 75 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + 19 * - COUNT ( * ) FROM tab0 AS cor0 WHERE + 75 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ALL COUNT( - col0 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6613
SELECT ALL COUNT ( - col0 ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col1 * - - col1 + - + col1 FROM tab2 AS cor0
----
2550
4422
5852

query I rowsort
SELECT ALL - + 58 + + ( + - col1 ) FROM tab2 AS cor0
----
-109
-125
-135

query I rowsort
SELECT ALL + ( + - col0 ) * - col0 - - - col0 AS col1 FROM tab0 cor0
----
210
7482
9312

query I rowsort
SELECT DISTINCT - col1 + + 46 + 8 * - 79 - 45 + col1 AS col2 FROM tab1 AS cor0
----
-631

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT ALL COUNT( * ) * - 69 FROM tab0 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL COUNT ( * ) * - 69 FROM tab0 cor0
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-6620
SELECT col1 + + col2 DIV - col1 FROM tab0 AS cor0 WHERE + 58 NOT BETWEEN - - col0 AND ( - col2 )
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-6620
SELECT col1 + + col2 / - col1 FROM tab0 AS cor0 WHERE + 58 NOT BETWEEN - - col0 AND ( - col2 )
----
-98
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6621
SELECT - MAX( DISTINCT + + 6 ) + - COUNT( * ) DIV + COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-6621
SELECT - MAX ( DISTINCT + + 6 ) + - COUNT ( * ) / + COUNT ( * ) FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6622
SELECT ALL * FROM tab2 WHERE NOT - 23 NOT IN ( - - CAST( col0 AS SIGNED ) / + 80 * col2 + + 58 )
----

skipif mysql # not compatible
query III rowsort label-6622
SELECT ALL * FROM tab2 WHERE NOT - 23 NOT IN ( - - CAST ( col0 AS INTEGER ) / + 80 * col2 + + 58 )
----

query I rowsort
SELECT + col0 + - col2 - + col1 * - + 9 FROM tab1
----
446
71
81

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

query II rowsort
SELECT + ( + ( + 92 ) ) + + col2, - col2 - 82 + 97 AS col0 FROM tab0
----
102
5
139
-32
191
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT 24 + - + COUNT( * ) * - 96 AS col1 FROM tab2
----
312

skipif mysql # not compatible
query I rowsort label-6626
SELECT 24 + - + COUNT ( * ) * - 96 AS col1 FROM tab2
----
312

query I rowsort
SELECT DISTINCT - col2 + 72 * - + 7 FROM tab2
----
-527
-544
-562

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT + 34 DIV + + col1 * + + 51 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6628
SELECT + 34 / + + col1 * + + 51 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 49 * + col1 * col2 + col1 FROM tab0 AS cor0
----
10311
186624
4852

query I rowsort
SELECT ALL - 30 + + col0 FROM tab0 AS cor0
----
-15
57
67

query I rowsort
SELECT AVG ( 37 ) * - 44 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 - + col0 * - - ( 93 ) * + 39 AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6632
SELECT ALL - ( - - SUM( - CAST( + col1 AS SIGNED ) ) ) AS col2, 63 FROM tab1 AS cor0
----
66
63

skipif mysql # not compatible
query II rowsort label-6632
SELECT ALL - ( - - SUM ( - CAST ( + col1 AS INTEGER ) ) ) AS col2, 63 FROM tab1 AS cor0
----
66
63

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) < - + 75
----

query I rowsort
SELECT col1 * + col1 + + 27 FROM tab2
----
2628
4516
5956

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + col1 IN ( + col2 * + 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) <= ( + col2 + + col1 - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) <= ( + col2 + + col1 - col0 )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 / col1 < - + col2 * - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 21 BETWEEN + col2 AND ( + col0 - + + col2 * col2 / - - 11 * + ( - 68 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + + col2 ) FROM tab1 cor0 WHERE NOT ( NOT NULL IN ( - ( - + col2 ) ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT 27 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT DISTINCT - MAX( ALL + col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT - MAX ( ALL + col1 ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT col1 * 57 FROM tab0
----
1197
4617
57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 >= col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT + + ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - - 22 * 45 + + + col2 FROM tab1 AS cor0
----
1049
1058
1086

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 AS col0, 51 - + ( 31 ) col2 FROM tab2 AS cor0 WHERE NOT col2 IN ( + col0 + + ( + - col0 ) )
----
76
20
76
20
76
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6649
SELECT ALL SUM( + + CAST( - 93 AS SIGNED ) ) AS col2 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL SUM ( + + CAST ( - 93 AS INTEGER ) ) AS col2 FROM tab0
----
-279

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( NOT 1 - + + col1 BETWEEN - col1 * + col2 AND NULL )
----

query II rowsort
SELECT - col2 * + 13 - - - col0 + col0 * + - col2 AS col1, + 15 AS col0 FROM tab0 AS cor0
----
-1087
15
-10987
15
-1331
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + COUNT( * ) * + + MAX( col2 ) AS col0 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-6652
SELECT + COUNT ( * ) * + + MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
297

query I rowsort
SELECT DISTINCT ( - - 23 ) AS col1 FROM tab0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT MIN( + + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6654
SELECT MIN ( + + col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT ( + col0 ) * col2 + + col0 * + - 82 + + + 76 AS col1 FROM tab0
----
-449
-6188
1725

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( - - col0 ) )
----

query I rowsort
SELECT ALL + + 85 + + + 11 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL < col1 * + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL - + COUNT( * ) + + 9 + 32 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL - + COUNT ( * ) + + 9 + 32 FROM tab0 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN + - col1 * - CAST( NULL AS SIGNED ) * + + 93 AND ( + 31 ) )
----

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN + - col1 * - CAST ( NULL AS INTEGER ) * + + 93 AND ( + 31 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON - 55 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT ( + - col2 ) DIV 20 - col0 + - col1 AS col0 FROM tab0
----
-102
-108
-98

skipif mysql # not compatible
query I rowsort label-6663
SELECT ( + - col2 ) / 20 - col0 + - col1 AS col0 FROM tab0
----
-102
-108
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col1 * + col1 col0 FROM tab2
----
51
2601
67
4489
77
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-6665
SELECT + + 48 DIV col0 + + - col1 FROM tab0 AS cor0
----
-1
-21
-78

skipif mysql # not compatible
query I rowsort label-6665
SELECT + + 48 / col0 + + - col1 FROM tab0 AS cor0
----
-1
-21
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT 49 * + CAST( 34 AS SIGNED ) * - col1 - + CAST( NULL AS SIGNED ) - col0 + - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT - col2, - col1 AS col2 FROM tab0 cor0
----
-10
-21
-47
-81
-99
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * 14 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 10 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6672
SELECT ALL - MIN( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT ALL - ( COUNT( + col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL - ( COUNT ( + col2 ) ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6674
SELECT DISTINCT col2 DIV + 66 AS col0 FROM tab0 WHERE NOT + - col0 IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT col2 / + 66 AS col0 FROM tab0 WHERE NOT + - col0 IS NULL
----
0
1

query I rowsort
SELECT + 17 FROM tab0 WHERE NOT NULL IS NOT NULL
----
17
17
17

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

query I rowsort
SELECT + col1 * - col2 AS col1 FROM tab2 WHERE - 90 <> + + 57
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + - 90 + + 18 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col0 + + col0 * - 27 FROM tab1 AS cor0
----
-1870
-663
1820

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) * col1 BETWEEN + - 80 AND + + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT DISTINCT COUNT( * ) + 25 col2 FROM tab1 cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6681
SELECT DISTINCT COUNT ( * ) + 25 col2 FROM tab1 cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * - + 92 + - col1 col1 FROM tab2 AS cor0
----
5719
5729
5745

query II rowsort
SELECT ALL col0, + col0 AS col1 FROM tab2 AS cor0 WHERE NULL <= 79
----

query I rowsort
SELECT 75 + - 71 FROM tab0
----
4
4
4

query I rowsort
SELECT + 39 + col1 AS col2 FROM tab1
----
44
53
86

query I rowsort
SELECT - + col1 FROM tab2 WHERE - - 7 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6687
SELECT - ( CAST( - 9 AS SIGNED ) ) * col1 AS col0 FROM tab2
----
459
603
693

skipif mysql # not compatible
query I rowsort label-6687
SELECT - ( CAST ( - 9 AS INTEGER ) ) * col1 AS col0 FROM tab2
----
459
603
693

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6688
SELECT col0 * - CAST( NULL AS SIGNED ) AS col1, 69 * + col1 - - 46 AS col2 FROM tab0 WHERE + 38 * - col1 * - - col2 < + 15 / col0
----
NULL
115
NULL
1495
NULL
5635

skipif mysql # not compatible
query II rowsort label-6688
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col1, 69 * + col1 - - 46 AS col2 FROM tab0 WHERE + 38 * - col1 * - - col2 < + 15 / col0
----
NULL
115
NULL
1495
NULL
5635

onlyif mysql # DIV for integer division: 
query I rowsort label-6689
SELECT 31 DIV + - col1 * - 32 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6689
SELECT 31 / + - col1 * - 32 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * + 6 FROM tab0
----
-522
-582
-90

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE - 70 BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT 61 + + - 27 FROM tab1
----
34

query I rowsort
SELECT DISTINCT + ( + ( + col2 ) ) * + ( - - 42 ) FROM tab1 AS cor0
----
2478
2856
4032

query I rowsort
SELECT DISTINCT + col1 + + col0 + + col2 AS col0 FROM tab0 cor0
----
118
143
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 5 * - + col2 col1 FROM tab2 AS cor0
----
-161
-264
-365

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT - 46 * 11 DIV + + col0 FROM tab1
----
-5
-5
-9

skipif mysql # not compatible
query I rowsort label-6696
SELECT - 46 * 11 / + + col0 FROM tab1
----
-5
-5
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + 56 * + 51 + 3, col0 FROM tab2 AS cor0
----
2859
46
2859
64
2859
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col0 / 8 + + 22, col1 FROM tab0 cor0 WHERE NOT - col2 NOT IN ( ( - - col0 ), + col1, + col0 - - col0 )
----

query I rowsort
SELECT 25 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL - - MIN( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6702
SELECT ALL - - MIN ( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT ALL - 17, - col2 - col0 AS col2 FROM tab2 AS cor0
----
-17
-104
-17
-133
-17
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6704
SELECT + CAST( col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6704
SELECT + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT 7 DIV - - 9 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT 7 / - - 9 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + 11 + + 64, + 69 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT MAX( + 19 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-6707
SELECT MAX ( + 19 ) FROM tab2
----
19

query I rowsort
SELECT ALL ( - 20 ) AS col2 FROM tab1
----
-20
-20
-20

query I rowsort
SELECT DISTINCT col2 * - col1 * + - col2 + + 18 AS col1 FROM tab0
----
178947
2118
9819

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT DISTINCT - SUM( - col1 ) col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6710
SELECT DISTINCT - SUM ( - col1 ) col2 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6711
SELECT - + col1 + + - col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-6711
SELECT - + col1 + + - col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6712
SELECT COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL NOT BETWEEN - 67 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 95 ) BETWEEN NULL AND - 25 / col1
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT DISTINCT - 67 + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-20
-57
32

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT - 67 + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-20
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - ( - MIN( + - col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6717
SELECT - ( - MIN ( + - col1 ) ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - 98 + col0 AS col2 FROM tab0 AS cor0
----
-1
-11
-83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 41 + - col1 + 33 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL - + ( COUNT( * ) ) + + COUNT( * ) + - 65 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL - + ( COUNT ( * ) ) + + COUNT ( * ) + - 65 FROM tab2 AS cor0
----
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( 27 ) NOT BETWEEN NULL AND 35 + - 7
----

query I rowsort
SELECT - - ( 33 ) FROM tab1 AS cor0
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 71
----

query I rowsort
SELECT ( + col1 ) * - - 74 - + + col1 AS col2 FROM tab1 cor0
----
1022
3431
365

query I rowsort
SELECT - ( + - 36 ) - - 49 + - col1 FROM tab1 AS cor0
----
38
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL - MIN( 12 ) - 86 FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - MIN ( 12 ) - 86 FROM tab0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT COUNT( * ) - + 78 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6727
SELECT COUNT ( * ) - + 78 FROM tab2
----
-75

query I rowsort
SELECT ALL - col0 * + - 37 FROM tab1
----
1887
3145
3367

query I rowsort
SELECT - col0 + - col0 - col2 FROM tab0
----
-184
-293
-77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6731
SELECT + COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

query I rowsort
SELECT - 70 + - - col0 FROM tab1
----
-19
15
21

query I rowsort
SELECT - - col1 + 53 FROM tab2 AS cor0
----
104
120
130

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - col1 / - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + + 99 * 46 FROM tab0 AS cor0
----
4457
4467
4539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6736
SELECT + - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6736
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - - col1, - col0 AS col2 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ALL col2 * 20 * - - col1 FROM tab1
----
26880
5900
63920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6739
SELECT - col1 * + + CAST( NULL AS SIGNED ) / - 93 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT - col1 * - 46 + col2 * + ( 71 ), - ( col1 ) AS col2 FROM tab1 AS cor0
----
4419
-5
6990
-47
7460
-14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT DISTINCT + MIN( + + col0 ) col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6742
SELECT DISTINCT + MIN ( + + col0 ) col2 FROM tab1 cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 15 * + ( - - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( + col1 ) * + 22 FROM tab2
----
1122
1474
1694

query I rowsort
SELECT DISTINCT 62 * + + col0 FROM tab1
----
3162
5270
5642

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( - 7 - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT col2 + + ( + col0 ) * + + ( - col1 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6748
SELECT - 9 + + SUM( ALL 26 ) * - COUNT( * ) DIV - - COUNT( * ) AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-6748
SELECT - 9 + + SUM ( ALL 26 ) * - COUNT ( * ) / - - COUNT ( * ) AS col2 FROM tab1
----
-87

query I rowsort
SELECT col2 + + 64 + 77 FROM tab0
----
151
188
240

query II rowsort
SELECT col1 AS col0, + col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT + + col2 AS col0, + col0 AS col0 FROM tab1 cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT + 30 + + 57 AS col2 FROM tab0 AS cor0
----
87

query I rowsort
SELECT DISTINCT - col0 + - - col1 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT + + col1 FROM tab1 cor0 WHERE ( NULL ) < + 40
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6755
SELECT + - 92 AS col1, - 6 FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE 10 / CAST( NULL AS SIGNED ) IS NULL
----
18 values hashing to 189b3e33d10a196b83ab2e2bc31d326f

skipif mysql # not compatible
query II rowsort label-6755
SELECT + - 92 AS col1, - 6 FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE 10 / CAST ( NULL AS INTEGER ) IS NULL
----
18 values hashing to 189b3e33d10a196b83ab2e2bc31d326f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 + + + col1 col2 FROM tab0
----
159
79
99

query I rowsort
SELECT + col0 * col0 + - 42 FROM tab0
----
183
7527
9367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - - col2 AS col1, col2 col1, - - col0 FROM tab2 AS cor0
----
9 values hashing to cab274f6910f0989b8e21ed8f2765415

query I rowsort
SELECT col2 * - - col0 * + col2 + + col2 AS col0 FROM tab2 cor0
----
102440
24357
252358

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

query I rowsort
SELECT ALL - col2 * + col1 - - col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT DISTINCT + COUNT( * ) + 51 + + SUM( DISTINCT + 43 ) + 26 + SUM( DISTINCT - ( 62 ) ) * 14 FROM tab0 cor0
----
-745

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT + COUNT ( * ) + 51 + + SUM ( DISTINCT + 43 ) + 26 + SUM ( DISTINCT - ( 62 ) ) * 14 FROM tab0 cor0
----
-745

query I rowsort
SELECT DISTINCT + 37 - + col0 FROM tab2 AS cor0
----
-27
-38
-9

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) <= - col1
----

query II rowsort
SELECT ALL - col2 - - - 12, + ( - col0 ) AS col0 FROM tab0
----
-111
-97
-22
-87
-59
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6766
SELECT DISTINCT * FROM tab0 WHERE + ( + 12 ) + - CAST( 15 AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6766
SELECT DISTINCT * FROM tab0 WHERE + ( + 12 ) + - CAST ( 15 AS INTEGER ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * ( + 13 ) FROM tab2
----
598
832
975

query III rowsort
SELECT * FROM tab1 WHERE + 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT COUNT( * ) * - - COUNT( * ) - - COUNT( ALL - col0 ) DIV - COUNT( * ) AS col2 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-6769
SELECT COUNT ( * ) * - - COUNT ( * ) - - COUNT ( ALL - col0 ) / - COUNT ( * ) AS col2 FROM tab1
----
8

query I rowsort
SELECT ALL + 92 + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
15
25
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 + + - 97 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 20 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6773
SELECT ALL - ( + col2 ) AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-6773
SELECT ALL - ( + col2 ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT + - 77 * + COUNT( + + col2 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-6774
SELECT + - 77 * + COUNT ( + + col2 ) FROM tab2 AS cor0
----
-231

query I rowsort
SELECT - + col0 * col1 AS col1 FROM tab0 cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 66 < + 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 20 * - 21 FROM tab2 AS cor0
----
420
420
420

query I rowsort
SELECT DISTINCT + col1 * + col0 FROM tab2 cor0 WHERE NULL IS NULL
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 61
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6780
SELECT ALL col1 DIV - col2 + + CAST( + - col2 AS SIGNED ) AS col2 FROM tab0 WHERE + 0 <= - - 77
----
-12
-48
-99

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL col1 / - col2 + + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 WHERE + 0 <= - - 77
----
-12
-48
-99

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN ( col0 / - + col0 ) AND NULL
----

query II rowsort
SELECT - - 95 AS col1, - col2 FROM tab1 AS cor0
----
95
-59
95
-68
95
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + 58 * COUNT( * ) + + 90 AS col1 FROM tab2 cor0
----
264

skipif mysql # not compatible
query I rowsort label-6783
SELECT + 58 * COUNT ( * ) + + 90 AS col1 FROM tab2 cor0
----
264

query I rowsort
SELECT ALL + col1 * - + 36 FROM tab1 AS cor0
----
-1692
-180
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 59 * + 75 * - col2 + - + 39 col2 FROM tab0 AS cor0
----
3119586
3849711
42493236

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6786
SELECT ALL col2 * + CAST( + col1 AS SIGNED ) AS col2, + col1 FROM tab1 AS cor0
----
1344
14
295
5
3196
47

skipif mysql # not compatible
query II rowsort label-6786
SELECT ALL col2 * + CAST ( + col1 AS INTEGER ) AS col2, + col1 FROM tab1 AS cor0
----
1344
14
295
5
3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT MIN( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT NULL < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT MIN ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT NULL < col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL COUNT( DISTINCT - - col0 ) * - - 18 AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL COUNT ( DISTINCT - - col0 ) * - - 18 AS col1 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL + MIN( DISTINCT + 90 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL + MIN ( DISTINCT + 90 ) FROM tab2
----
90

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6791
SELECT 53 DIV - + COUNT( ALL - + col0 ) AS col1 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-6791
SELECT 53 / - + COUNT ( ALL - + col0 ) AS col1 FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT DISTINCT - COUNT( * ) + - COUNT( ALL 52 ) - - - 67 * COUNT( * ) FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT - COUNT ( * ) + - COUNT ( ALL 52 ) - - - 67 * COUNT ( * ) FROM tab0
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6793
SELECT - 91 AS col2, ( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE col1 IS NOT NULL
----
-91
NULL
-91
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-6793
SELECT - 91 AS col2, ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE col1 IS NOT NULL
----
-91
NULL
-91
NULL
-91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT - - 72 + + + col1 * + col2 - col1 DIV - col2 FROM tab2 AS cor0
----
1247
3153
3959

skipif mysql # not compatible
query I rowsort label-6794
SELECT - - 72 + + + col1 * + col2 - col1 / - col2 FROM tab2 AS cor0
----
1247
3153
3959

query II rowsort
SELECT DISTINCT col1 + - - col0 AS col0, - 33 FROM tab0 AS cor0
----
108
-33
96
-33
98
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 18 + + - col1 + + col0 - + + col0 col2 FROM tab0 AS cor0
----
-3
-63
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54 + + col1, - col1 col0 FROM tab2 AS cor0
----
105
-51
121
-67
131
-77

query I rowsort
SELECT ALL + col1 + - - 15 AS col1 FROM tab0 AS cor0
----
16
36
96

query I rowsort
SELECT - - 49 + col2 FROM tab0 AS cor0
----
148
59
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6800
SELECT ALL COUNT( * ) AS col1, MIN( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6800
SELECT ALL COUNT ( * ) AS col1, MIN ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT ALL + - 33 DIV - 5 FROM tab1 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL + - 33 / - 5 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL SUM( - 97 ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL SUM ( - 97 ) FROM tab0
----
-291

query I rowsort
SELECT + + 84 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query II rowsort
SELECT ALL col1 + col1 - col1, + col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6805
SELECT ALL COUNT( * ) AS col2, - 22 AS col0 FROM tab1
----
3
-22

skipif mysql # not compatible
query II rowsort label-6805
SELECT ALL COUNT ( * ) AS col2, - 22 AS col0 FROM tab1
----
3
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT - ( + COUNT( * ) ) - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT col2 + 75 FROM tab2 AS cor0
----
115
133
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6808
SELECT DISTINCT - 20 - - col2 * - CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
2189
80
9781

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6808
SELECT DISTINCT - 20 - - col2 * - CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
2189
80
9781

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 40 / + 85 + - col1 IS NOT NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + 95 * - + col0 / - + col1, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + col0 NOT IN ( - col2, + col2 * + ( + col0 ), - col0 - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL + SUM( ALL + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL + SUM ( ALL + col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT ALL COUNT( * ) AS col0, - SUM( - col2 ) AS col1 FROM tab1 AS cor0
----
3
223

skipif mysql # not compatible
query II rowsort label-6813
SELECT ALL COUNT ( * ) AS col0, - SUM ( - col2 ) AS col1 FROM tab1 AS cor0
----
3
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * + 55 + - col1 col0 FROM tab1 cor0
----
2318
2351
2360

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT SUM( - - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6815
SELECT SUM ( - - col2 ) AS col0 FROM tab0 AS cor0
----
156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT ALL - ( - ( MIN( DISTINCT + - 85 ) ) ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - ( - ( MIN ( DISTINCT + - 85 ) ) ) FROM tab2
----
-85

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 59 + + col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 74 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query II rowsort label-6820
SELECT DISTINCT COUNT( * ), 73 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
73

skipif mysql # not compatible
query II rowsort label-6820
SELECT DISTINCT COUNT ( * ), 73 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT - SUM( ( + 37 ) ) AS col0 FROM tab0 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-6821
SELECT - SUM ( ( + 37 ) ) AS col0 FROM tab0 cor0
----
-111

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * col1 IS NULL
----

query I rowsort
SELECT ALL 14 * - col0 FROM tab2
----
-1050
-644
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-6825
SELECT DISTINCT + 55 DIV + 9 AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT + 55 / + 9 AS col0 FROM tab1
----
6

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + 20 * + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT COUNT( - col0 ) * + COUNT( * ) + + COUNT( * ) + + MIN( ALL + col0 ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-6827
SELECT COUNT ( - col0 ) * + COUNT ( * ) + + COUNT ( * ) + + MIN ( ALL + col0 ) AS col2 FROM tab0
----
27

query I rowsort
SELECT + 3 + - col0 AS col1 FROM tab1
----
-48
-82
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT 14 + COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-6829
SELECT 14 + COUNT ( * ) FROM tab1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6830
SELECT + - CAST( NULL AS DECIMAL ) / - - ( - CAST( NULL AS SIGNED ) ) * + - COUNT( * ) / + + 66 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT + - CAST ( NULL AS REAL ) / - - ( - CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) / + + 66 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL + - SUM( DISTINCT + 65 ) * 83 - - ( - 15 ) + 86 - + 8 col2 FROM tab0 AS cor0
----
-5332

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6831
SELECT ALL + - SUM ( DISTINCT + 65 ) * 83 - - ( - 15 ) + 86 - + 8 col2 FROM tab0 AS cor0
----
-5332

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL - - ( + COUNT( * ) ) + + COUNT( - + 63 ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - - ( + COUNT ( * ) ) + + COUNT ( - + 63 ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + col2 + col0 * + - 11 * - col1 AS col0 FROM tab0 AS cor0
----
1166
13412
20107

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + - col2 * + ( + col2 ) + + + ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 11 * + col2 + - col0 FROM tab0
----
-1186
-197
-532

query II rowsort
SELECT ALL ( - + col0 ), 63 AS col0 FROM tab0
----
-15
63
-87
63
-97
63

query I rowsort
SELECT + 34 + - + col2 FROM tab0
----
-13
-65
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT - CAST( - + 85 AS SIGNED ) + - - col2 FROM tab1 cor0
----
144
153
181

skipif mysql # not compatible
query I rowsort label-6839
SELECT - CAST ( - + 85 AS INTEGER ) + - - col2 FROM tab1 cor0
----
144
153
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT COUNT( * ) * + 92 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
276

skipif mysql # not compatible
query I rowsort label-6840
SELECT COUNT ( * ) * + 92 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
276

query I rowsort
SELECT DISTINCT + - ( + 20 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6843
SELECT + col0, CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * - + 26 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6843
SELECT + col0, CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * - + 26 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT DISTINCT 73 * - COUNT( * ) AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT 73 * - COUNT ( * ) AS col0 FROM tab1
----
-219

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE NOT + 96 - + ( - - col1 ) NOT IN ( + - col1 - + + col1, + 91, + col2 )
----

query II rowsort
SELECT DISTINCT - + col2 AS col1, 72 AS col1 FROM tab0 AS cor0
----
-10
72
-47
72
-99
72

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6848
SELECT COUNT( * ) * + + 25 DIV + - MAX( - col1 ) AS col0 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6848
SELECT COUNT ( * ) * + + 25 / + - MAX ( - col1 ) AS col0 FROM tab0 AS cor0
----
75

query II rowsort
SELECT + 65, + col1 * + + 63 AS col0 FROM tab2
----
65
3213
65
4221
65
4851

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE NOT - col1 < - 33 + - col1
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col2 + + + col1 FROM tab0 AS cor0
----
-98
11
34

query II rowsort
SELECT + col0 AS col0, + col2 + 81 FROM tab0 AS cor0
----
15
128
87
91
97
180

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

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE ( 19 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6855
SELECT ( - - ( - COUNT( * ) ) ) * - COUNT( * ), 55 AS col0 FROM tab0 AS cor0
----
9
55

skipif mysql # not compatible
query II rowsort label-6855
SELECT ( - - ( - COUNT ( * ) ) ) * - COUNT ( * ), 55 AS col0 FROM tab0 AS cor0
----
9
55

query II rowsort
SELECT col0 * - col1 * - col0 * - + 81 * + 27 AS col2, col0 AS col0 FROM tab1
----
-79005375
85
-79637418
51
-851195709
91

query III rowsort
SELECT ALL * FROM tab2 WHERE - 70 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - + 53 FROM tab2
----
-1219
-2120
-3074

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE col2 + - col0 * - col0 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6860
SELECT DISTINCT - - col1 * - + CAST( NULL AS DECIMAL ) / + col1 AS col1 FROM tab1 WHERE + ( 92 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT - - col1 * - + CAST ( NULL AS REAL ) / + col1 AS col1 FROM tab1 WHERE + ( 92 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT - COUNT( DISTINCT + ( + col2 ) ) + + 90 AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6861
SELECT - COUNT ( DISTINCT + ( + col2 ) ) + + 90 AS col2 FROM tab1 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT - 92 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + - col1 * col2 + col0 IS NOT NULL AND NOT ( NULL ) BETWEEN - ( + col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6862
SELECT - 92 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + - col1 * col2 + col0 IS NOT NULL AND NOT ( NULL ) BETWEEN - ( + col2 ) AND NULL
----

query I rowsort
SELECT - + col0 + + 27 * + col2 - - + col0 AS col0 FROM tab1 AS cor0
----
1593
1836
2592

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - col2 IS NULL
----

query I rowsort
SELECT + col2 + + ( col2 ) * col1 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT + COUNT( * ) * - 19 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-171

skipif mysql # not compatible
query I rowsort label-6866
SELECT + COUNT ( * ) * - 19 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-171

query I rowsort
SELECT DISTINCT - col1 * - - 96 + + ( - - col2 ) FROM tab2 AS cor0
----
-4873
-6374
-7352

query I rowsort
SELECT col1 AS col2 FROM tab1 cor0 WHERE NOT 21 * 33 + - col1 + + col0 / - col2 IS NULL
----
14
47
5

query I rowsort
SELECT + col1 * - 41 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, col0 col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT DISTINCT + SUM( DISTINCT + ( - col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT + SUM ( DISTINCT + ( - col2 ) ) FROM tab1
----
-223

query II rowsort
SELECT DISTINCT - col2 * - + col0, col1 AS col2 FROM tab0
----
705
81
870
21
9603
1

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + - col1 > col2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT SUM( - + ( 95 ) ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-6874
SELECT SUM ( - + ( 95 ) ) FROM tab2
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - - COUNT( * ) FROM tab0 WHERE NOT NULL IN ( + col0, + col1, 88 )
----
0

skipif mysql # not compatible
query I rowsort label-6875
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT NULL IN ( + col0, + col1, 88 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT + + col0 * ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT ALL - - 25 + - col2 - - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-44
-45
-77

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - - 25 + - col2 - - col2 / - col1 AS col1 FROM tab1 AS cor0
----
-44
-45
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6879
SELECT ALL * FROM tab2 cor0 WHERE ( + - col0 ) * + col1 + CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6879
SELECT ALL * FROM tab2 cor0 WHERE ( + - col0 ) * + col1 + CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL + MIN( - ( + col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL + MIN ( - ( + col2 ) ) FROM tab0 AS cor0
----
-99

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6882
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + + 34 AS col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT ALL - col0 DIV + 22 + col2 + - 0 AS col2 FROM tab2 AS cor0
----
21
38
55

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - col0 / + 22 + col2 + - 0 AS col2 FROM tab2 AS cor0
----
21
38
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT ALL - col2 + + + 56 DIV col2 * + 87 FROM tab2 AS cor0
----
-58
151
47

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL - col2 + + + 56 / col2 * + 87 FROM tab2 AS cor0
----
-58
151
47

query II rowsort
SELECT DISTINCT 74 AS col0, col2 * - 53 + col0 FROM tab1 AS cor0
----
74
-3042
74
-3513
74
-5037

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 55 - - 86 >= col2
----

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6888
SELECT + + col1 + + col2 AS col2 FROM tab2 WHERE NULL >= + + col0 * - col1 - + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

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

query I rowsort
SELECT - + col0 FROM tab1 WHERE ( NOT 19 + + col1 / - col1 + 40 * + 85 + - col1 IS NULL )
----
-51
-85
-91

query I rowsort
SELECT 14 * - col2 * + col0 AS col0 FROM tab2
----
-14812
-35840
-60900

query II rowsort
SELECT DISTINCT col0 + - - col1 AS col1, + 56 AS col0 FROM tab0
----
108
56
96
56
98
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT DISTINCT - MIN( - + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - MIN ( - + col2 ) AS col2 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT DISTINCT col1 DIV + - col1 + - col0 - + - col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT col1 / + - col1 + - col0 - + - col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT + 50 * - SUM( + col0 ) * - 77 * - 60 AS col1 FROM tab0 WHERE NOT + 97 = - + 18
----
-45969000

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + 50 * - SUM ( + col0 ) * - 77 * - 60 AS col1 FROM tab0 WHERE NOT + 97 = - + 18
----
-45969000

query I rowsort
SELECT DISTINCT + + ( - - col0 ) * + col0 + - 87 AS col0 FROM tab2 AS cor0
----
2029
4009
5538

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

query I rowsort
SELECT - 43 - - col0 AS col0 FROM tab1 AS cor0
----
42
48
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT ALL - - col0 - + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL - - col0 - + col1 / col1 AS col0 FROM tab2 AS cor0
----
45
63
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6899
SELECT 68 * CAST( NULL AS SIGNED ) - 64 - - CAST( NULL AS DECIMAL ) * + - 5 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT 68 * CAST ( NULL AS INTEGER ) - 64 - - CAST ( NULL AS REAL ) * + - 5 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6900
SELECT - 51 * 36 + col0 DIV + col1 FROM tab1
----
-1819
-1833
-1835

skipif mysql # not compatible
query I rowsort label-6900
SELECT - 51 * 36 + col0 / + col1 FROM tab1
----
-1819
-1833
-1835

query II rowsort
SELECT ( - col2 ) * - 31, + 95 AS col0 FROM tab2
----
1240
95
1798
95
713
95

query I rowsort
SELECT ALL col2 * + col2 * + col2 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT 52 * - + col1 FROM tab2
----
-2652
-3484
-4004

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 = NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6907
SELECT - + col1 AS col0 FROM tab1 cor0 WHERE NOT ( + - CAST( NULL AS DECIMAL ) * + 64 + - - 62 NOT BETWEEN col0 + - col0 AND NULL )
----

skipif mysql # not compatible
query I rowsort label-6907
SELECT - + col1 AS col0 FROM tab1 cor0 WHERE NOT ( + - CAST ( NULL AS REAL ) * + 64 + - - 62 NOT BETWEEN col0 + - col0 AND NULL )
----

query I rowsort
SELECT ALL - col0 * - 27 AS col2 FROM tab2 AS cor0
----
1242
1728
2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT ALL ( - MAX( - CAST( - 76 AS SIGNED ) ) ) * + 1 * - COUNT( * ) AS col1 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL ( - MAX ( - CAST ( - 76 AS INTEGER ) ) ) * + 1 * - COUNT ( * ) AS col1 FROM tab1
----
228

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6911
SELECT col1, + 20 DIV + col1 AS col2 FROM tab1
----
14
1
47
0
5
4

skipif mysql # not compatible
query II rowsort label-6911
SELECT col1, + 20 / + col1 AS col2 FROM tab1
----
14
1
47
0
5
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6912
SELECT ( SUM( ALL 12 ) ), + MAX( DISTINCT - 44 ) AS col0 FROM tab1
----
36
-44

skipif mysql # not compatible
query II rowsort label-6912
SELECT ( SUM ( ALL 12 ) ), + MAX ( DISTINCT - 44 ) AS col0 FROM tab1
----
36
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, - 11 + ( col1 ) + col2 col2 FROM tab0
----
-10
20
-47
117
-99
89

query I rowsort
SELECT - - col2 * - col1 + col0 FROM tab2 WHERE NOT - col2 + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT ALL 68 DIV - ( + col0 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL 68 / - ( + col0 ) FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL + col0 * + + col1 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT + MAX( ALL - 63 ) * 49 AS col1 FROM tab1 cor0
----
-3087

skipif mysql # not compatible
query I rowsort label-6917
SELECT + MAX ( ALL - 63 ) * 49 AS col1 FROM tab1 cor0
----
-3087

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT MAX( DISTINCT + 3 ) + - - COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6918
SELECT MAX ( DISTINCT + 3 ) + - - COUNT ( * ) AS col0 FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 66 ) * - col2 col1 FROM tab1 WHERE NOT NULL = - col1 * + + 41
----

query I rowsort
SELECT + 29 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT 74 + + + 22 AS col2 FROM tab2
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6922
SELECT ALL - col0 DIV + + col2 AS col1 FROM tab2
----
-1
-1
-2

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 32 IS NULL
----

query I rowsort
SELECT ALL + + 54 + + - col1 + + col2 * - col0 + 0 AS col1 FROM tab2 AS cor0
----
-1055
-2583
-4363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND 82
----

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND 82
----

query I rowsort
SELECT ALL + 19 + + + col1 AS col0 FROM tab1 AS cor0
----
24
33
66

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

query II rowsort
SELECT DISTINCT col2 + col2, 88 AS col0 FROM tab0 AS cor0
----
198
88
20
88
94
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - ( - col1 )
----

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

query II rowsort
SELECT ALL - + col0 - + - col1, col0 FROM tab2 cor0
----
-8
75
13
64
5
46

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 74 = - 97 + ( col2 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6933
SELECT + 33 - col1 + CAST( 19 AS SIGNED ) * + - 48 FROM tab0
----
-880
-900
-960

skipif mysql # not compatible
query I rowsort label-6933
SELECT + 33 - col1 + CAST ( 19 AS INTEGER ) * + - 48 FROM tab0
----
-880
-900
-960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6934
SELECT - 57, - col2 * + ( CAST( NULL AS SIGNED ) ) * + - col1 + col2 FROM tab1 WHERE NULL BETWEEN ( + col2 ) AND + col0
----

skipif mysql # not compatible
query II rowsort label-6934
SELECT - 57, - col2 * + ( CAST ( NULL AS INTEGER ) ) * + - col1 + col2 FROM tab1 WHERE NULL BETWEEN ( + col2 ) AND + col0
----

query II rowsort
SELECT DISTINCT + col0, + col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab1 WHERE - + ( + ( + - 45 ) ) IS NULL
----

query I rowsort
SELECT - col2 + + - col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT + col2 * - 28 + + col2 FROM tab0
----
-1269
-2673
-270

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT - MIN( + 33 ) * - 17 FROM tab1 AS cor0
----
561

skipif mysql # not compatible
query I rowsort label-6940
SELECT - MIN ( + 33 ) * - 17 FROM tab1 AS cor0
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT DISTINCT - COUNT( * ) * - 76 - + COUNT( * ) col1 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6941
SELECT DISTINCT - COUNT ( * ) * - 76 - + COUNT ( * ) col1 FROM tab0 AS cor0
----
225

query I rowsort
SELECT DISTINCT + ( + ( col1 ) ) FROM tab0 cor0 WHERE + ( - col1 ) / 5 + + - 94 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6943
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 3 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # DIV for integer division: 
query II rowsort label-6945
SELECT ALL col2, col0 DIV 15 * + + col0 FROM tab1
----
59
425
68
546
96
153

skipif mysql # not compatible
query II rowsort label-6945
SELECT ALL col2, col0 / 15 * + + col0 FROM tab1
----
59
425
68
546
96
153

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 IS NOT NULL OR + col2 * + + col2 + + + 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + + MAX( DISTINCT + + 56 ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6947
SELECT + + MAX ( DISTINCT + + 56 ) FROM tab2 AS cor0
----
56

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 <> - + ( - - 91 )
----

query II rowsort
SELECT - 57, - col0 AS col1 FROM tab0 AS cor0
----
-57
-15
-57
-87
-57
-97

query II rowsort
SELECT - + 27, col0 FROM tab1 cor0
----
-27
51
-27
85
-27
91

query II rowsort
SELECT DISTINCT + col0, + 17 + - - col0 AS col2 FROM tab0 AS cor0
----
15
32
87
104
97
114

query I rowsort
SELECT + + 69 FROM tab1 AS cor0 WHERE NOT NULL = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL MAX( ALL col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL MAX ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT + MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6955
SELECT + MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6956
SELECT ( + CAST( - 14 AS SIGNED ) ) AS col1, + col0 AS col2 FROM tab0
----
-14
15
-14
87
-14
97

skipif mysql # not compatible
query II rowsort label-6956
SELECT ( + CAST ( - 14 AS INTEGER ) ) AS col1, + col0 AS col2 FROM tab0
----
-14
15
-14
87
-14
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6957
SELECT col2 * - CAST( NULL AS DECIMAL ) + - col0 * - col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col1 + + col0 + + 9 AS col2 FROM tab1
----
46
53
89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - - col0, - col2, - col0 )
----

query II rowsort
SELECT + ( col1 ), col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6961
SELECT ALL col1 + - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6962
SELECT ALL - - col0 DIV - + col2 + 58 FROM tab2 AS cor0
----
56
57
57

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - - col0 / - + col2 + 58 FROM tab2 AS cor0
----
56
57
57

query I rowsort
SELECT - col0 * - col2 + + col2 FROM tab0 cor0
----
752
880
9702

query I rowsort
SELECT DISTINCT + + 38 * + - ( + + 41 ) AS col2 FROM tab0 AS cor0
----
-1558

query II rowsort
SELECT ALL + col2 * + 88 * + col1, col2 FROM tab2
----
103224
23
271040
40
341968
58

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + 61, col1 )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE + + 64 NOT BETWEEN 42 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + + ( - - col1 ) FROM tab1
----
110
115
64

query I rowsort
SELECT + col0 + + + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col0 < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT ALL - + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL - + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT + - COUNT( + col1 ) + + MAX( ALL + + 43 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6972
SELECT + - COUNT ( + col1 ) + + MAX ( ALL + + 43 ) FROM tab0 AS cor0
----
40

query I rowsort
SELECT ALL - 63 + 88 AS col2 FROM tab0 cor0
----
25
25
25

query II rowsort
SELECT ALL - col0, col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + + col2 + - + col1, 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col2 ) col1 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6977
SELECT ALL ( - col0 ) DIV + + col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL ( - col0 ) / + + col2 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT + - SUM( - + 85 ) FROM tab2 WHERE + 82 IS NOT NULL
----
255

skipif mysql # not compatible
query I rowsort label-6978
SELECT + - SUM ( - + 85 ) FROM tab2 WHERE + 82 IS NOT NULL
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL - 15 - - COUNT( * ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - 15 - - COUNT ( * ) AS col2 FROM tab1
----
-12

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT - CAST( + col1 AS SIGNED ) * + col1 + col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ALL + 42 + + - MIN( + + 25 ) AS col2 FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + 42 + + - MIN ( + + 25 ) AS col2 FROM tab1 cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT DISTINCT MAX( + col1 ) + 4 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT MAX ( + col1 ) + 4 FROM tab0 AS cor0
----
85

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 83 * - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL - 9 * - COUNT( * ) AS col0 FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL - 9 * - COUNT ( * ) AS col0 FROM tab0 cor0
----
27

query I rowsort
SELECT ALL + col1 * ( + + col2 ) + - - col0 AS col2 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6989
SELECT DISTINCT + 21 * 42 / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE + col0 * + col2 + 65 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT + 21 * 42 / + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE + col0 * + col2 + 65 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + + SUM( ALL - 60 ) FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-6990
SELECT + + SUM ( ALL - 60 ) FROM tab2 AS cor0
----
-180

query II rowsort
SELECT ALL col0, col0 * ( ( + 56 ) ) AS col1 FROM tab1
----
51
2856
85
4760
91
5096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6992
SELECT CAST( NULL AS SIGNED ) / - 27 AS col0 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 47 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE NOT - 60 + - - col2 NOT BETWEEN col2 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6995
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + 93 FROM tab0
----
NULL
93

skipif mysql # not compatible
query II rowsort label-6995
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + 93 FROM tab0
----
NULL
93

query I rowsort
SELECT DISTINCT - col2 + + - 70 FROM tab2
----
-110
-128
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT ALL col2 + - col0 DIV - - col1 FROM tab1
----
42
67
93

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL col2 + - col0 / - - col1 FROM tab1
----
42
67
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT + MAX( ALL + 13 ) AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT + MAX ( ALL + 13 ) AS col2 FROM tab2
----
13

query II rowsort
SELECT DISTINCT + col1 + + col1 AS col2, 19 FROM tab1
----
10
19
28
19
94
19

query I rowsort
SELECT ALL + - 99 + - col0 AS col1 FROM tab0 AS cor0
----
-114
-186
-196

query I rowsort
SELECT - col0 + + - ( - ( - col0 ) ) FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL 70 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL 70 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-210

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

query I rowsort
SELECT DISTINCT - col2 * + - col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab2 WHERE + ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

query II rowsort
SELECT + col0 * + + 92 AS col0, 49 FROM tab0 AS cor0
----
1380
49
8004
49
8924
49

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 * col0 NOT BETWEEN col1 + 88 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7011
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 4 * - - col2 >= - CAST( - col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7011
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 4 * - - col2 >= - CAST ( - col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT ALL - 65 - COUNT( * ) * COUNT( * ) * + 58 FROM tab2 AS cor0
----
-587

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - 65 - COUNT ( * ) * COUNT ( * ) * + 58 FROM tab2 AS cor0
----
-587

query I rowsort
SELECT DISTINCT + col2 * - col0 + 8 + + + col2 FROM tab0 AS cor0
----
-650
-852
-9496

query I rowsort
SELECT + 28 - - col0 FROM tab2 AS cor0
----
103
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT DISTINCT + SUM( - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT + SUM ( - col0 ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT - - 97 + ( + col1 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
148
164
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT 50 * + SUM( DISTINCT + - 50 ) FROM tab0
----
-2500

skipif mysql # not compatible
query I rowsort label-7017
SELECT 50 * + SUM ( DISTINCT + - 50 ) FROM tab0
----
-2500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col1 col0 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT ALL + 94, col2 AS col1 FROM tab2 cor0
----
94
23
94
40
94
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 11 * - col2 * - col1, col1 col1 FROM tab1 AS cor0
----
-14784
14
-3245
5
-35156
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7021
SELECT DISTINCT + 50 DIV - col1 + + - col0 - 6 col1 FROM tab1 AS cor0
----
-101
-60
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7021
SELECT DISTINCT + 50 / - col1 + + - col0 - 6 col1 FROM tab1 AS cor0
----
-101
-60
-98

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 + + col0 <> NULL OR ( NULL NOT BETWEEN ( NULL ) AND col2 )
----

query I rowsort
SELECT - 67 - - 57 FROM tab2
----
-10
-10
-10

query I rowsort
SELECT + 1 + - 59 FROM tab0
----
-58
-58
-58

query I rowsort
SELECT ALL 46 + + col1 FROM tab0
----
127
47
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 4 < - col0 / + 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7027
SELECT DISTINCT + col1 + + col0 DIV + col1 FROM tab1
----
17
22
48

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT + col1 + + col0 / + col1 FROM tab1
----
17
22
48

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

query I rowsort
SELECT - 64 + 44 * + col2 FROM tab0 WHERE NOT ( col1 ) * - col2 IS NULL
----
2004
376
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL ( - ( - COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL ( - ( - COUNT ( * ) ) ) FROM tab2
----
3

query I rowsort
SELECT 30 - + col2 * + col2 FROM tab0
----
-2179
-70
-9771

query I rowsort
SELECT ALL col2 - 38 AS col2 FROM tab0
----
-28
61
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7033
SELECT DISTINCT * FROM tab0 WHERE col2 >= ( - CAST( col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7033
SELECT DISTINCT * FROM tab0 WHERE col2 >= ( - CAST ( col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + ( ( + 60 ) ) * + col0 FROM tab2
----
2811
3917
4567

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT BETWEEN col0 + ( col1 + + 29 * col2 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 - 0 AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL 19 * - col0 AS col1 FROM tab0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT SUM( DISTINCT - ( col0 ) ) AS col2 FROM tab0 WHERE NOT + 80 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT SUM ( DISTINCT - ( col0 ) ) AS col2 FROM tab0 WHERE NOT + 80 = ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT + 38 * - 82 + col2 FROM tab1 WHERE NOT - col1 * 64 BETWEEN ( - col1 ) AND ( CAST( NULL AS SIGNED ) )
----
-3020
-3048
-3057

skipif mysql # not compatible
query I rowsort label-7039
SELECT + 38 * - 82 + col2 FROM tab1 WHERE NOT - col1 * 64 BETWEEN ( - col1 ) AND ( CAST ( NULL AS INTEGER ) )
----
-3020
-3048
-3057

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT 59 + + col1 DIV - col0 FROM tab0
----
54
59
59

skipif mysql # not compatible
query I rowsort label-7040
SELECT 59 + + col1 / - col0 FROM tab0
----
54
59
59

query I rowsort
SELECT ALL 9 * col2 FROM tab0
----
423
891
90

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

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

query I rowsort
SELECT 5 * + col2 AS col1 FROM tab0 AS cor0
----
235
495
50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + 64 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 - 29 AS col2 FROM tab1
----
-125
-88
-97

query I rowsort
SELECT - col2 - 14 AS col2 FROM tab0
----
-113
-24
-61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 48 + - col1 ) > NULL
----

query I rowsort
SELECT - 19 * - col0 FROM tab0 WHERE + 55 BETWEEN + col2 * 33 AND - col0 + - 58
----

query I rowsort
SELECT - 1 + 91 FROM tab1
----
90
90
90

query I rowsort
SELECT - 71 + + 17 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT - col0 + - col0 * 56 FROM tab2 cor0
----
-2622
-3648
-4275

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT + - 37 + - ( - 33 ) * 51 AS col1 FROM tab2 AS cor0
----
1646
1646
1646

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT ALL - 97 - col2 DIV + col1 AS col2 FROM tab1 cor0
----
-103
-108
-98

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL - 97 - col2 / + col1 AS col2 FROM tab1 cor0
----
-103
-108
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 99 * col2 BETWEEN + 56 + col1 AND ( NULL )
----

query I rowsort
SELECT - + 67 + col1 * + 55 FROM tab2 AS cor0
----
2738
3618
4168

query I rowsort
SELECT - col2 + 93 * col1 FROM tab0 AS cor0 WHERE + col2 + + ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 - - 64 FROM tab1 cor0
----
-21
-27
13

query I rowsort
SELECT DISTINCT + - 45 + 97 FROM tab0 cor0
----
52

query I rowsort
SELECT 99 * 50 AS col0 FROM tab1
----
4950
4950
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT MAX( 60 ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-7062
SELECT MAX ( 60 ) AS col1 FROM tab2
----
60

query I rowsort
SELECT ALL - 30 + col0 FROM tab1 WHERE ( + col2 ) NOT IN ( ( + col0 ) )
----
21
55
61

query I rowsort
SELECT ALL + col2 * + col0 * + 91 FROM tab1
----
445536
456365
563108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7065
SELECT - CAST( COUNT( ALL 4 ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7065
SELECT - CAST ( COUNT ( ALL 4 ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT - col1 + + col1 FROM tab0 WHERE NOT + col2 <> ( 0 )
----

query I rowsort
SELECT ALL 75 * + col1 AS col1 FROM tab1
----
1050
3525
375

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 * - 70 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ( + 35 ) * - COUNT( * ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-7069
SELECT ( + 35 ) * - COUNT ( * ) FROM tab0
----
-105

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND 79 * col0
----

query I rowsort
SELECT ALL 2 * + + col1 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT + COUNT( * ) FROM tab0 WHERE NOT ( + 19 ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7072
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( + 19 ) NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT 88 * 28 * + col1 AS col0 FROM tab2
----
125664
165088
189728

query I rowsort
SELECT ALL col2 * 28 * + col2 FROM tab1
----
129472
258048
97468

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 95 ) * col2 <> - col1 + - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT DISTINCT + - COUNT( * ) * + + 35 AS col2 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT + - COUNT ( * ) * + + 35 AS col2 FROM tab1 AS cor0
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT DISTINCT + - 35 DIV col1 col1 FROM tab0 AS cor0
----
-1
-35
0

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

query I rowsort
SELECT 64 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7079
SELECT - ( - col1 ) DIV - col0 AS col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7079
SELECT - ( - col1 ) / - col0 AS col0 FROM tab0 AS cor0
----
-5
0
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT + 4 * + - col0 FROM tab1
----
-204
-340
-364

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

query I rowsort
SELECT ALL - + 37 + + col0 AS col1 FROM tab2 cor0
----
27
38
9

query II rowsort
SELECT DISTINCT col1 AS col1, - col1 AS col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / + col0 + 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL - col1 + + 27 * + col0 AS col1 FROM tab1 AS cor0
----
1363
2290
2410

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7088
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 + - ( CAST( NULL AS DECIMAL ) ) / - col1 AS col0 FROM tab0 cor0
----
NULL

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

query I rowsort
SELECT col1 * + - ( col0 ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7090
SELECT - + 55 AS col0, 98 + - + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
-55
NULL
-55
NULL
-55
NULL

skipif mysql # not compatible
query II rowsort label-7090
SELECT - + 55 AS col0, 98 + - + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
-55
NULL
-55
NULL
-55
NULL

query II rowsort
SELECT + 24 AS col0, - col2 FROM tab0 cor0
----
24
-10
24
-47
24
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL - MAX( ALL - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL - MAX ( ALL - col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT - - col2 * + ( - - col1 ) * col1 AS col2 FROM tab2 AS cor0
----
237160
260362
59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 74 * + - 34, col1 col2 FROM tab0
----
-2516
1
-2516
21
-2516
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - 85 ) col0 FROM tab0
----
-85
-85
-85

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL >= - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + ( - + col1 ) IN ( - ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT 35 + - COUNT( 50 ) + - COUNT( * ) * COUNT( DISTINCT - col0 + - 81 ) AS col1 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-7099
SELECT 35 + - COUNT ( 50 ) + - COUNT ( * ) * COUNT ( DISTINCT - col0 + - 81 ) AS col1 FROM tab0
----
23

query I rowsort
SELECT ALL - + 98 + 26 + - col0 AS col2 FROM tab2 AS cor0
----
-118
-136
-147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7101
SELECT - col1 + - col0 AS col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-108
NULL
-96
NULL
-98
NULL

skipif mysql # not compatible
query II rowsort label-7101
SELECT - col1 + - col0 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-108
NULL
-96
NULL
-98
NULL

query I rowsort
SELECT 17 * - - 8 + + 59 FROM tab0 WHERE NULL IS NULL
----
195
195
195

query I rowsort
SELECT - col0 - + col2 + - 66 * + col2 AS col1 FROM tab1 AS cor0
----
-4038
-4647
-6483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7104
SELECT ALL + CAST( - AVG ( col1 ) AS SIGNED ) + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + CAST ( - AVG ( col1 ) AS INTEGER ) + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE - col1 * - + 82 + + col1 IS NOT NULL
----
51
85
91

query II rowsort
SELECT + - 80 AS col0, - 96 AS col2 FROM tab1 AS cor0
----
-80
-96
-80
-96
-80
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT ALL - MAX( 24 ) AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL - MAX ( 24 ) AS col2 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT DISTINCT + + col2 - col0 * - col2 FROM tab1 AS cor0 WHERE col1 + col1 IS NOT NULL
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query II rowsort label-7109
SELECT DISTINCT + COUNT( * ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7109
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( 99 ) * - + col1, col2 * - - col2 col0 FROM tab0 AS cor0
----
-2079
100
-8019
2209
-99
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7111
SELECT MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 = - 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE 93 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - 87 FROM tab0
----
1305
7569
8439

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

query I rowsort
SELECT col1 * - 69 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7117
SELECT ALL + col2 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT ALL + CAST( + 97 AS SIGNED ) FROM tab0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL + CAST ( + 97 AS INTEGER ) FROM tab0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ALL COUNT( DISTINCT col1 ) * + COUNT( * ) * + 83 FROM tab0
----
747

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL COUNT ( DISTINCT col1 ) * + COUNT ( * ) * + 83 FROM tab0
----
747

query I rowsort
SELECT ALL + 27 * + 73 FROM tab0
----
1971
1971
1971

query II rowsort
SELECT DISTINCT col0 AS col0, + 89 FROM tab2
----
46
89
64
89
75
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col2 * + col1 col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT DISTINCT - col0 * + - col0 AS col2 FROM tab2 cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 55 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7125
SELECT * FROM tab1 WHERE NOT + col0 + + 36 + CAST( - + col1 AS SIGNED ) + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7125
SELECT * FROM tab1 WHERE NOT + col0 + + 36 + CAST ( - + col1 AS INTEGER ) + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 AS col0 FROM tab2 cor0 WHERE NOT ( + col1 ) IN ( + col2 * - col2 + ( + col2 ) )
----
23
40
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + 71 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-7128
SELECT + 71 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
213

query I rowsort
SELECT - col2 * + col1 * - col1 AS col1 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT ALL + 73 * 7 * col1 + - col2 + + 79 + CAST( NULL AS SIGNED ) + - + col1 + col1 * col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE ( NOT - - col1 * - + col0 / - + col0 * - 80 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 43 * 58 + - 37 AS col2 FROM tab1 AS cor0
----
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7134
SELECT ALL + CAST( NULL AS SIGNED ) * + ( COUNT( * ) ) * + AVG ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 76 BETWEEN NULL AND ( - - 59 * 86 )
----

query I rowsort
SELECT + col2 + + 70 + + - col1 AS col1 FROM tab1 WHERE ( + - col1 ) = - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7138
SELECT CAST( NULL AS SIGNED ) + + ( - 38 ) AS col1, 2 * COUNT( * ) FROM tab2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-7138
SELECT CAST ( NULL AS INTEGER ) + + ( - 38 ) AS col1, 2 * COUNT ( * ) FROM tab2
----
NULL
6

query II rowsort
SELECT - col1 AS col2, - col0 AS col1 FROM tab2
----
-51
-46
-67
-75
-77
-64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * 92 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT DISTINCT 39 * - CAST( NULL AS SIGNED ) + + - 18 * + col0 * + col0 AS col0 FROM tab2
----
NULL

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

query I rowsort
SELECT + 39 * - - col0 FROM tab2
----
1794
2496
2925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT ALL - CAST( - 64 AS SIGNED ) FROM tab1 cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL - CAST ( - 64 AS INTEGER ) FROM tab1 cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL COUNT( ALL col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL COUNT ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 * - 44 FROM tab1 AS cor0
----
-2244
-3740
-4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7146
SELECT ALL + - 0 * CAST( 1 AS SIGNED ) * - COUNT( col1 ) + 88 col0 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7146
SELECT ALL + - 0 * CAST ( 1 AS INTEGER ) * - COUNT ( col1 ) + 88 col0 FROM tab0 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7147
SELECT - CAST( - + 60 AS SIGNED ) AS col1 FROM tab1
----
60
60
60

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 14 * 62 IS NOT NULL
----

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

query I rowsort
SELECT - ( - - col0 ) * + col1 * - - col0 AS col2 FROM tab1
----
-36125
-36414
-389207

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( + col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + 47 * - 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT + 8 DIV + col2 + - col1 + + col0 col1 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7153
SELECT + 8 / + col2 + - col1 + + col0 col1 FROM tab1 AS cor0
----
37
44
80

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

query II rowsort
SELECT ALL col1, 52 FROM tab0
----
1
52
21
52
81
52

query II rowsort
SELECT ALL - 82 + col1, col0 FROM tab2
----
-15
75
-31
46
-5
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col1 + - + col2 FROM tab2 AS cor0
----
-23
28
-40
37
-58
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7159
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-7159
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT col1 * + CAST( + 53 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2491
265
742

skipif mysql # not compatible
query I rowsort label-7160
SELECT col1 * + CAST ( + 53 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2491
265
742

query I rowsort
SELECT col0 * - 77 FROM tab2 AS cor0
----
-3542
-4928
-5775

query I rowsort
SELECT ( + - ( col1 ) ) FROM tab1 cor0
----
-14
-47
-5

query II rowsort
SELECT ALL + col0 AS col0, 8 FROM tab1 AS cor0
----
51
8
85
8
91
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 98 * + col2 NOT BETWEEN - - col2 / - 28 AND - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT + 67 - COUNT( DISTINCT col1 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-7165
SELECT + 67 - COUNT ( DISTINCT col1 ) FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + - COUNT( ALL col0 ) AS col2 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7166
SELECT + - COUNT ( ALL col0 ) AS col2 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7167
SELECT DISTINCT 13 * + CAST( NULL AS DECIMAL ) + + - CAST( - 17 AS SIGNED ) / + col2 AS col1, 5 * col0 FROM tab0
----
NULL
435
NULL
485
NULL
75

skipif mysql # not compatible
query II rowsort label-7167
SELECT DISTINCT 13 * + CAST ( NULL AS REAL ) + + - CAST ( - 17 AS INTEGER ) / + col2 AS col1, 5 * col0 FROM tab0
----
NULL
435
NULL
485
NULL
75

query III rowsort
SELECT ALL * FROM tab2 WHERE 30 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + 13 - + + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * 68 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > - 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * - + col0 * - - col2 + 35 FROM tab0 AS cor0
----
10610
75725
931526

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col1 * col0
----

query II rowsort
SELECT ALL - 57 - + col2 * - + col2 AS col2, - col1 / - ( + - 61 ) FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 + + + 80 FROM tab2
----
2681
4569
6009

query I rowsort
SELECT DISTINCT - ( + 37 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT - SUM( DISTINCT 16 ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - SUM ( DISTINCT 16 ) FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT ALL + MIN( + 41 ) + + 1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
42

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL + MIN ( + 41 ) + + 1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT - SUM( ALL - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7179
SELECT - SUM ( ALL - col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT - - 56 * + + CAST( - - col1 AS SIGNED ) + + - 97 AS col0 FROM tab0 AS cor0
----
-41
1079
4439

skipif mysql # not compatible
query I rowsort label-7180
SELECT - - 56 * + + CAST ( - - col1 AS INTEGER ) + + - 97 AS col0 FROM tab0 AS cor0
----
-41
1079
4439

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 > + - col2
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col1 + col0 + + - col2 / 5 + col0 * - - 9 * + col0 + - - 52 IS NULL
----
1
21
81

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE - + 36 / + 59 + - col2 * - 13 + + + 34 BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT DISTINCT CAST( + + col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT ALL + + COUNT( * ) DIV - + 19 + + 20 * + COUNT( * ) + - 22 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL + + COUNT ( * ) / - + 19 + + 20 * + COUNT ( * ) + - 22 FROM tab0 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT - COUNT( * ) + - ( + 90 ) + + + 87 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-12

skipif mysql # not compatible
query I rowsort label-7186
SELECT - COUNT ( * ) + - ( + 90 ) + + + 87 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT - + SUM( - 31 ) + - + 43 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT - + SUM ( - 31 ) + - + 43 FROM tab2 AS cor0
----
50

query I rowsort
SELECT ALL - 97 + - col1 + - + 69 FROM tab1 AS cor0
----
-171
-180
-213

query I rowsort
SELECT - + col0 + - - 43 * 12 AS col1 FROM tab1 AS cor0
----
425
431
465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7190
SELECT DISTINCT + - COUNT( + col1 ) DIV 74 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT + - COUNT ( + col1 ) / 74 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 + + - col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT + col1 + + 94 FROM tab1 AS cor0
----
108
141
99

query I rowsort
SELECT 6 * - 77 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-462
-462
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT ALL + 88 DIV - col1 col1 FROM tab0 cor0
----
-1
-4
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7194
SELECT ALL + 88 / - col1 col1 FROM tab0 cor0
----
-1
-4
-88

query I rowsort
SELECT DISTINCT - 39 + col1 + + 60 + + + col0 AS col1 FROM tab0 AS cor0
----
117
119
129

query II rowsort
SELECT DISTINCT - 33, - 56 * + + 84 + 54 AS col2 FROM tab1
----
-33
-4650

query I rowsort
SELECT ALL + ( - + 90 ) FROM tab0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT DISTINCT MIN( ALL + 86 ) AS col2 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT MIN ( ALL + 86 ) AS col2 FROM tab0
----
86

query I rowsort
SELECT ALL col2 * - 77 FROM tab2
----
-1771
-3080
-4466

query I rowsort
SELECT DISTINCT + ( + + 30 ) AS col0 FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT - 65 DIV 82 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7201
SELECT - 65 / 82 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL - SUM( - col0 ) + - MAX( + 71 ) col1 FROM tab1
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7202
SELECT ALL - SUM ( - col0 ) + - MAX ( + 71 ) col1 FROM tab1
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT + 32 DIV + + SUM( - - col0 ) * + COUNT( * ) * + SUM( col0 ) * - 84 * 9 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7203
SELECT + 32 / + + SUM ( - - col0 ) * + COUNT ( * ) * + SUM ( col0 ) * - 84 * 9 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col1 + - 6 + + col0 + + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-1
41
8

query I rowsort
SELECT DISTINCT + + col0 - - - col1 FROM tab1 AS cor0 WHERE + 65 * + col0 IN ( - - 15, 83, col1 )
----

query I rowsort
SELECT ( - col2 ) * + - col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL - MIN( - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - MIN ( - col1 ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT DISTINCT - + COUNT( * ) + + 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
77

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT - + COUNT ( * ) + + 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
77

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND 55
----

onlyif mysql # DIV for integer division: 
query III rowsort label-7210
SELECT - + 79 DIV + - col0, col0 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to 97cc5805b1d1817eff0f2b73b9ed08c1

skipif mysql # not compatible
query III rowsort label-7210
SELECT - + 79 / + - col0, col0 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to 97cc5805b1d1817eff0f2b73b9ed08c1

onlyif mysql # DIV for integer division: 
query II rowsort label-7211
SELECT ALL - - col2 DIV + col1 AS col2, - 21 FROM tab2 cor0
----
0
-21
0
-21
0
-21

skipif mysql # not compatible
query II rowsort label-7211
SELECT ALL - - col2 / + col1 AS col2, - 21 FROM tab2 cor0
----
0
-21
0
-21
0
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7212
SELECT + + COUNT( * ) DIV + + 87 + - + 96 AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7212
SELECT + + COUNT ( * ) / + + 87 + - + 96 AS col1 FROM tab1 AS cor0
----
-96

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

query I rowsort
SELECT col2 + + - 97 * col1 * + 31 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-153334
-201411
-231499

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT + SUM( + col1 ), 70 AS col0 FROM tab0 cor0
----
103
70

skipif mysql # not compatible
query II rowsort label-7215
SELECT + SUM ( + col1 ), 70 AS col0 FROM tab0 cor0
----
103
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL + MIN( col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7216
SELECT ALL + MIN ( col0 ) col2 FROM tab1
----
51

query II rowsort
SELECT DISTINCT 37, col2 FROM tab0
----
37
10
37
47
37
99

query II rowsort
SELECT ALL + col2 AS col1, col2 + + 15 AS col2 FROM tab2
----
23
38
40
55
58
73

query I rowsort
SELECT ( ( + col2 ) ) AS col1 FROM tab2
----
23
40
58

query II rowsort
SELECT - 16, - 75 AS col1 FROM tab0
----
-16
-75
-16
-75
-16
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-7221
SELECT ALL 69 DIV - - col2 + - 98, 5 AS col2 FROM tab0
----
-92
5
-97
5
-98
5

skipif mysql # not compatible
query II rowsort label-7221
SELECT ALL 69 / - - col2 + - 98, 5 AS col2 FROM tab0
----
-92
5
-97
5
-98
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7222
SELECT ALL 75 DIV + col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL 75 / + col2 FROM tab2
----
1
1
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 > ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT ALL ( - SUM( 28 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL ( - SUM ( 28 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + - col1 * - 72 + + + ( - col2 ) + + + ( - col0 ) * + + 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 87 + + 0 / + + 44 + + + 96 * - 22 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL + SUM( + col2 ) * COUNT( 22 ) + - 11 AS col2 FROM tab0 AS cor0
----
457

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + SUM ( + col2 ) * COUNT ( 22 ) + - 11 AS col2 FROM tab0 AS cor0
----
457

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT ALL - SUM( DISTINCT + 25 ) col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7231
SELECT ALL - SUM ( DISTINCT + 25 ) col1 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT - col1 * + col0 - col2 AS col0 FROM tab0 AS cor0
----
-1262
-1837
-196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7233
SELECT - 93 - + 52 + - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2
----
-146

skipif mysql # not compatible
query I rowsort label-7233
SELECT - 93 - + 52 + - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2
----
-146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + 22 col0 FROM tab2
----
29
45
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7235
SELECT + col0 + + - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

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

query II rowsort
SELECT - 32 * + col1 + + - 19, col1 + - 76 * + col2 * + 78 + - col1 AS col2 FROM tab2
----
-1651
-136344
-2163
-343824
-2483
-237120

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT DISTINCT 47 - - COUNT( * ) * 18 AS col0 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT 47 - - COUNT ( * ) * 18 AS col0 FROM tab1
----
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + + col0 col1 FROM tab1
----
153
255
273

query III rowsort
SELECT * FROM tab0 WHERE + 92 + col0 * col0 * - 65 < col1 + + col2 - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 58 * + 17 AS col1 FROM tab0 AS cor0
----
986
986
986

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL + SUM( DISTINCT - col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + SUM ( DISTINCT - col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
198

query I rowsort
SELECT - - 77 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7243
SELECT ALL - CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + col2 * + 26 + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1475
-1700
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT DISTINCT + col2 DIV 11 AS col0 FROM tab0
----
0
4
9

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT + col2 / 11 AS col0 FROM tab0
----
0
4
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT - 89 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + ( - col1 ) / - - 51
----

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT - 89 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + ( - col1 ) / - - 51
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7247
SELECT DISTINCT + COUNT( * ), - COUNT( * ) * + - 83 AS col0 FROM tab2 AS cor0
----
3
249

skipif mysql # not compatible
query II rowsort label-7247
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) * + - 83 AS col0 FROM tab2 AS cor0
----
3
249

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 76 <> + 96
----

query I rowsort
SELECT - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-1
-21
-81

query II rowsort
SELECT 45, ( col0 ) FROM tab0 AS cor0
----
45
15
45
87
45
97

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

query II rowsort
SELECT + + 85, + col2 AS col2 FROM tab1 cor0
----
85
59
85
68
85
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 63 / + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT DISTINCT SUM( 55 ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT SUM ( 55 ) FROM tab0 AS cor0
----
165

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - 85 * - col2 AS col2 FROM tab0 cor0
----
3995
8415
850

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT ALL col1 DIV - + 69 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL col1 / - + 69 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + 57 AS col2 FROM tab2 cor0
----
-1311
-2280
-3306

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 <= + col1
----

query I rowsort
SELECT DISTINCT ( - - ( + col1 ) ) FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7262
SELECT CAST( NULL AS DECIMAL ) + - col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7263
SELECT CAST( NULL AS SIGNED ) * - + MIN( - 4 ) AS col2 FROM tab2
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 / col2 * - - 61 col1 FROM tab0 WHERE NOT - col0 * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * + col2 + + ( col0 ) IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7267
SELECT ALL - + COUNT( + - col2 ) AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7267
SELECT ALL - + COUNT ( + - col2 ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-3
NULL

query II rowsort
SELECT DISTINCT col1 + - 88 AS col2, + 83 FROM tab2 AS cor0
----
-11
83
-21
83
-37
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT ALL 67 + + COUNT( * ) + + - 85 AS col0, 64 AS col1 FROM tab1 AS cor0
----
-15
64

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL 67 + + COUNT ( * ) + + - 85 AS col0, 64 AS col1 FROM tab1 AS cor0
----
-15
64

query I rowsort
SELECT ALL col0 + + - col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query II rowsort label-7271
SELECT DISTINCT + - 73 DIV + - ( - + 39 ) - + col1, col0 AS col2 FROM tab2 AS cor0
----
-52
46
-68
75
-78
64

skipif mysql # not compatible
query II rowsort label-7271
SELECT DISTINCT + - 73 / + - ( - + 39 ) - + col1, col0 AS col2 FROM tab2 AS cor0
----
-52
46
-68
75
-78
64

query I rowsort
SELECT DISTINCT - + 74 + - col2 AS col0 FROM tab2 cor0
----
-114
-132
-97

query I rowsort
SELECT DISTINCT col2 + - - col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT + - col2 * - ( - col1 ) FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT - col1 * + - 99 AS col2 FROM tab0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7276
SELECT DISTINCT MIN( DISTINCT - + col1 ) AS col1, COUNT( * ) AS col0 FROM tab1
----
-47
3

skipif mysql # not compatible
query II rowsort label-7276
SELECT DISTINCT MIN ( DISTINCT - + col1 ) AS col1, COUNT ( * ) AS col0 FROM tab1
----
-47
3

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT 79 <> NULL
----

query I rowsort
SELECT ALL + ( - + col2 ) + - + 93 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 91 AS col0 FROM tab1
----
-5369
-6188
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 25 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7280
SELECT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 25 IS NOT NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7283
SELECT ALL + 81 * - COUNT( * ) * - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL + 81 * - COUNT ( * ) * - - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + col2 + + - col1 AS col0 FROM tab0 cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col0 = NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT + COUNT( * ) * + COUNT( * ) * + MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

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

query II rowsort
SELECT + col0, 31 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) = NULL
----

query II rowsort
SELECT + col1 * - + col0 * + col1 AS col0, + 41 AS col2 FROM tab1 AS cor0
----
-201019
41
-2125
41
-9996
41

onlyif mysql # DIV for integer division: 
query II rowsort label-7289
SELECT DISTINCT + 6 DIV 66 DIV + 86 AS col0, col0 DIV 84 AS col2 FROM tab0 AS cor0
----
0
0
0
1

skipif mysql # not compatible
query II rowsort label-7289
SELECT DISTINCT + 6 / 66 / + 86 AS col0, col0 / 84 AS col2 FROM tab0 AS cor0
----
0
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7290
SELECT - col1 DIV 37 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7290
SELECT - col1 / 37 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7291
SELECT ALL + + col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + - 25 * - col0 AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
1150
1600
1875

query I rowsort
SELECT ALL col1 * - - 51 * + 68 AS col0 FROM tab2
----
176868
232356
267036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7294
SELECT ALL - CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7294
SELECT ALL - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query I rowsort
SELECT col0 * - col2 * + col1 + + col1 AS col0 FROM tab0
----
-18249
-57024
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT - 91 + - COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7296
SELECT - 91 + - COUNT ( * ) FROM tab1 AS cor0
----
-94

query I rowsort
SELECT - 95 + - col0 FROM tab0 AS cor0
----
-110
-182
-192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 64 * - ( - col1 ) > - ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL - SUM( + 11 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL - SUM ( + 11 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 * col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + - ( - + 82 ) + + col2 AS col1 FROM tab1 AS cor0
----
141
150
178

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT + + COUNT( * ) + - 82 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-7301
SELECT + + COUNT ( * ) + - 82 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 cor0 WHERE NOT col1 BETWEEN col2 AND + ( + col1 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT + COUNT( 81 ) + - + 46 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-37

skipif mysql # not compatible
query I rowsort label-7305
SELECT + COUNT ( 81 ) + - + 46 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7306
SELECT DISTINCT 52 * 33 + + COUNT( * ) + + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT 52 * 33 + + COUNT ( * ) + + - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + 70 - MAX( ALL + - ( - + col0 ) ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7307
SELECT + 70 - MAX ( ALL + - ( - + col0 ) ) FROM tab0 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT - col2 - 22 + + CAST( + - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-119
-218
-84

skipif mysql # not compatible
query I rowsort label-7308
SELECT - col2 - 22 + + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-119
-218
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT + COUNT( * ) - - MAX( DISTINCT + 86 ) AS col1 FROM tab0 cor0
----
89

skipif mysql # not compatible
query I rowsort label-7309
SELECT + COUNT ( * ) - - MAX ( DISTINCT + 86 ) AS col1 FROM tab0 cor0
----
89

query I rowsort
SELECT - 26 - + col1 * - col1 FROM tab2 AS cor0
----
2575
4463
5903

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE + col0 <> - + 47
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT ALL - + col1 FROM tab1 WHERE CAST( - + 58 AS SIGNED ) IS NULL
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 NOT BETWEEN + 89 AND - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT + COUNT( ALL - - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7314
SELECT + COUNT ( ALL - - col2 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7315
SELECT ALL 2, col0 DIV - - 73 AS col2 FROM tab2
----
2
0
2
0
2
1

skipif mysql # not compatible
query II rowsort label-7315
SELECT ALL 2, col0 / - - 73 AS col2 FROM tab2
----
2
0
2
0
2
1

query II rowsort
SELECT ALL + col2 AS col1, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT ALL + 16 AS col2 FROM tab0 WHERE NOT - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT + + COUNT( * ) * + 63 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7318
SELECT + + COUNT ( * ) * + 63 FROM tab0 AS cor0
----
189

query I rowsort
SELECT DISTINCT + + 41 - + 18 - - 27 AS col2 FROM tab1 AS cor0 WHERE NOT 90 < - 53 * - 1 - + + col1
----
50

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7321
SELECT - col0 + + + CAST( - 85 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7321
SELECT - col0 + + + CAST ( - 85 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL - MIN( DISTINCT 67 ) + + MAX( col0 ) * + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL - MIN ( DISTINCT 67 ) + + MAX ( col0 ) * + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT - 34 * + SUM( col1 ) + COUNT( * ) FROM tab1 AS cor0
----
-2241

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT - 34 * + SUM ( col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
-2241

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7324
SELECT ALL - col1 * + - CAST( NULL AS DECIMAL ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + - col1 * col1 + - + 59 AS col2 FROM tab0 AS cor0
----
-500
-60
-6620

query I rowsort
SELECT ALL - col1 * ( 96 ) FROM tab1
----
-1344
-4512
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT DISTINCT + col0 DIV - - col0 AS col1 FROM tab2
----
1

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

query I rowsort
SELECT + 82 FROM tab1 WHERE ( - 50 + - col1 IS NOT NULL )
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + SUM( + + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7329
SELECT + SUM ( + + col2 ) AS col1 FROM tab2
----
121

query I rowsort
SELECT - 59 * + - col2 AS col2 FROM tab1
----
3481
4012
5664

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7331
SELECT - COUNT( * ) col2, 16 DIV + 36 FROM tab0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7331
SELECT - COUNT ( * ) col2, 16 / + 36 FROM tab0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL + COUNT( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL + COUNT ( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7333
SELECT ALL - SUM( DISTINCT + 7 ), COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-7
9

skipif mysql # not compatible
query II rowsort label-7333
SELECT ALL - SUM ( DISTINCT + 7 ), COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-7
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT + 60 DIV + - col2 + + col0 AS col0 FROM tab0
----
14
81
97

skipif mysql # not compatible
query I rowsort label-7334
SELECT + 60 / + - col2 + + col0 AS col0 FROM tab0
----
14
81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT - 32 + + 70 * + ( + MIN( col1 ) ) AS col2 FROM tab1 cor0
----
318

skipif mysql # not compatible
query I rowsort label-7335
SELECT - 32 + + 70 * + ( + MIN ( col1 ) ) AS col2 FROM tab1 cor0
----
318

query I rowsort
SELECT DISTINCT + - col0 + - - col2 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL - + ( + 9 ) AS col0 FROM tab2 AS cor0
----
-9
-9
-9

query II rowsort
SELECT DISTINCT + 19 AS col1, col0 FROM tab2 cor0
----
19
46
19
64
19
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * col0 * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL + MIN( ALL + ( + col2 ) ) col1 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7341
SELECT ALL + MIN ( ALL + ( + col2 ) ) col1 FROM tab2
----
23

query I rowsort
SELECT ALL ( - ( - col1 ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT 12 * - + 57 * - col0 FROM tab0
----
10260
59508
66348

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT + 77 * + + ( - MAX( DISTINCT + 23 ) ) FROM tab1
----
-1771

skipif mysql # not compatible
query I rowsort label-7345
SELECT + 77 * + + ( - MAX ( DISTINCT + 23 ) ) FROM tab1
----
-1771

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col2 ) <= 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7347
SELECT ALL - - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL - - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 65 + - - col1 <= NULL
----

query I rowsort
SELECT + 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7351
SELECT DISTINCT - COUNT( CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT - COUNT ( CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 + + ( - - ( - col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL <> + 40
----

query I rowsort
SELECT + + 52 * + col0 AS col2 FROM tab2 AS cor0
----
2392
3328
3900

query II rowsort
SELECT ALL - col1, + col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT - col0 * - 45 FROM tab0
----
3915
4365
675

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * col2 + + + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3566
4715
9267

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT - 83 * + - MIN( DISTINCT col2 ) FROM tab0
----
830

skipif mysql # not compatible
query I rowsort label-7358
SELECT - 83 * + - MIN ( DISTINCT col2 ) FROM tab0
----
830

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT col0 DIV + 81 + - - col1 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-7359
SELECT col0 / + 81 + - - col1 FROM tab1
----
14
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT 56 + - MAX( + - 48 ) FROM tab1
----
104

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT 56 + - MAX ( + - 48 ) FROM tab1
----
104

query I rowsort
SELECT + col1 + - + 52 + col0 FROM tab0 AS cor0
----
44
46
56

query I rowsort
SELECT DISTINCT col0 - - - 66 * col2 FROM tab1 AS cor0
----
-3809
-4397
-6285

query I rowsort
SELECT DISTINCT col1 - - col2 + + + col0 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT DISTINCT 88 - col0 FROM tab0
----
-9
1
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - - col1 col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL - 73 * + - col2 FROM tab0
----
3431
7227
730

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT DISTINCT + - SUM( - 53 ) AS col1 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT + - SUM ( - 53 ) AS col1 FROM tab2 AS cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7370
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * CAST( NULL AS DECIMAL ) * + - col1 <> + col0
----

skipif mysql # not compatible
query III rowsort label-7370
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * CAST ( NULL AS REAL ) * + - col1 <> + col0
----

query II rowsort
SELECT - - 24, col1 FROM tab0 AS cor0
----
24
1
24
21
24
81

query I rowsort
SELECT DISTINCT + col0 * - - 17 AS col2 FROM tab0 AS cor0
----
1479
1649
255

query I rowsort
SELECT col0 * col2 + + 63 AS col0 FROM tab2 cor0
----
1121
2623
4413

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT ALL + col0 DIV + 36 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + col0 / + 36 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT DISTINCT - COUNT( * ) - + - 64 FROM tab0, tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT - COUNT ( * ) - + - 64 FROM tab0, tab0 AS cor0
----
55

query I rowsort
SELECT ALL - 89 + + 82 FROM tab2 WHERE - ( + 86 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 * - col2 AS col1 FROM tab2 WHERE NOT NULL <= 22 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7379
SELECT ALL + col1 DIV + 69 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL + col1 / + 69 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7380
SELECT + + col2 col1, - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7380
SELECT + + col2 col1, - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT 80 * + 2 FROM tab0 AS cor0
----
160
160
160

query I rowsort
SELECT 31 * - + col2 AS col1 FROM tab1 AS cor0
----
-1829
-2108
-2976

query I rowsort
SELECT DISTINCT 93 * col1 AS col0 FROM tab1
----
1302
4371
465

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT - 6 + COUNT( * ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7384
SELECT - 6 + COUNT ( * ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 + + 66 FROM tab2 AS cor0
----
106
124
89

query I rowsort
SELECT - + col2 + + col1 + 83 * + col2 FROM tab2 AS cor0
----
1937
3357
4823

query I rowsort
SELECT ALL - ( + col0 ) + - 58 FROM tab0 AS cor0
----
-145
-155
-73

query I rowsort
SELECT col2 * - col0 + + - col2 AS col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT DISTINCT + COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + 31 AS col0, 95 FROM tab2
----
31
95
31
95
31
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7391
SELECT - MAX( ALL 4 ) DIV + 29 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7391
SELECT - MAX ( ALL 4 ) / + 29 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 + - 67 AS col0 FROM tab2
----
-27
-44
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 94 * - 84 * - col0 col2 FROM tab2
----
20213760
34347600
8353968

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 39 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + 83 + col2 * - 59 FROM tab1 AS cor0
----
-3313
-3838
-5530

query I rowsort
SELECT col0 * col2 * col2 + - col0 - col2 AS col1 FROM tab1
----
295741
420625
469869

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7397
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 < - CAST( NULL AS DECIMAL ) * - col1
----

skipif mysql # not compatible
query III rowsort label-7397
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 < - CAST ( NULL AS REAL ) * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT - MIN( ALL + col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT - MIN ( ALL + col2 ) FROM tab2 cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 52 col2, 94 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT DISTINCT 73 DIV - - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT 73 / - - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT 84 * + - 48 FROM tab0
----
-4032

query I rowsort
SELECT ALL + col2 * + - col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT col1 * - 66 AS col1 FROM tab0
----
-1386
-5346
-66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 34 * - col2 AS col1 FROM tab0
----
-1598
-3366
-340

query II rowsort
SELECT col2 AS col0, col0 * - - col1 AS col2 FROM tab2
----
23
2346
40
4928
58
5025

query I rowsort
SELECT ALL col2 + + 78 * 36 AS col2 FROM tab1
----
2867
2876
2904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT ALL - 85 DIV COUNT( * ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - 85 / COUNT ( * ) FROM tab1 AS cor0
----
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL 85 * COUNT( * ) FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL 85 * COUNT ( * ) FROM tab1 AS cor0
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7411
SELECT + col1 + + - col1 + - col0 / CAST( NULL AS SIGNED ) AS col0, 91 + col0 - - col0 AS col2 FROM tab1
----
NULL
193
NULL
261
NULL
273

skipif mysql # not compatible
query II rowsort label-7411
SELECT + col1 + + - col1 + - col0 / CAST ( NULL AS INTEGER ) AS col0, 91 + col0 - - col0 AS col2 FROM tab1
----
NULL
193
NULL
261
NULL
273

query I rowsort
SELECT ALL 78 + - col0 FROM tab1
----
-13
-7
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT + MIN( 41 ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-7413
SELECT + MIN ( 41 ) FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7414
SELECT ALL col2 * - 61 + 64 * + - CAST( NULL AS SIGNED ) + - - ( - 91 ) + col0 / - + 14 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL col2 * - 61 + 64 * + - CAST ( NULL AS INTEGER ) + - - ( - 91 ) + col0 / - + 14 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7416
SELECT + 95 col2, col1 * - + col2 * CAST( NULL AS SIGNED ) + - + col2 FROM tab2 AS cor0
----
95
NULL
95
NULL
95
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7416
SELECT + 95 col2, col1 * - + col2 * CAST ( NULL AS INTEGER ) + - + col2 FROM tab2 AS cor0
----
95
NULL
95
NULL
95
NULL

query I rowsort
SELECT DISTINCT + 33 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 * + col2 * + col2 * - + col1 - - 6 - - - col1 AS col2 FROM tab2 AS cor0
----
-1375974
-15101057
-9486471

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT + COUNT( * ) - - - ( - COUNT( col0 ) ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7419
SELECT + COUNT ( * ) - - - ( - COUNT ( col0 ) ) FROM tab1 cor0
----
6

query II rowsort
SELECT DISTINCT col2 - - col1 AS col0, - col1 FROM tab1
----
110
-14
115
-47
64
-5

query I rowsort
SELECT DISTINCT - 69 * col1 * col2 FROM tab0
----
-14490
-262683
-6831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7422
SELECT - 76 * + - CAST( + col0 AS SIGNED ) FROM tab2 WHERE - col0 - + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 76 * + - CAST ( + col0 AS INTEGER ) FROM tab2 WHERE - col0 - + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT + - 88 DIV + ( + 70 ) + - col0 + - + 33 - - 75 * col2 AS col2 FROM tab0 AS cor0
----
3476
629
7294

skipif mysql # not compatible
query I rowsort label-7423
SELECT + - 88 / + ( + 70 ) + - col0 + - + 33 - - 75 * col2 AS col2 FROM tab0 AS cor0
----
3476
629
7294

query I rowsort
SELECT - + 49 AS col1 FROM tab2 AS cor0
----
-49
-49
-49

query II rowsort
SELECT + + col0 / - col2, + 57 FROM tab2 AS cor0 WHERE NULL >= col1 * col2 + + 62 * - 21
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN col1 AND + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 40 * - ( col1 ) AS col1 FROM tab1
----
1880
200
560

query I rowsort
SELECT DISTINCT + 46 * + + 43 AS col1 FROM tab0
----
1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7429
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT - + 72, col2 FROM tab2 AS cor0
----
-72
23
-72
40
-72
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT ALL + COUNT( * ) * 21 - + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL + COUNT ( * ) * 21 - + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
60

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT - COUNT( ALL + + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7433
SELECT - COUNT ( ALL + + col0 ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 48 FROM tab2 AS cor0
----
51
48
67
48
77
48

query I rowsort
SELECT DISTINCT 32 * 83 FROM tab1 AS cor0
----
2656

query I rowsort
SELECT ALL - - ( - 67 ) * col0 * col2 FROM tab1 AS cor0
----
-328032
-336005
-414596

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT ALL + - col1 DIV - 41 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + - col1 / - 41 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - col2 * - 21 + + 42 AS col2 FROM tab2
----
1260
525
882

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT DISTINCT + + MIN( + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT + + MIN ( + col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL - - col1 + - + col0 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 7 * col2 - - + col2 - + - col2 <= 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 85 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT - MIN( - - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7443
SELECT - MIN ( - - col0 ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT - col0 * + col2 * col1 + - col2 FROM tab2
----
-197160
-291508
-53981

query I rowsort
SELECT ALL - 14 + - col1 AS col0 FROM tab0 cor0
----
-15
-35
-95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7446
SELECT * FROM tab1 AS cor0 WHERE ( col0 + + + CAST( NULL AS SIGNED ) ) < col2
----

skipif mysql # not compatible
query III rowsort label-7446
SELECT * FROM tab1 AS cor0 WHERE ( col0 + + + CAST ( NULL AS INTEGER ) ) < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT 10 * + + 0 - + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT 10 * + + 0 - + COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - 17 - - + col1 AS col0 FROM tab0 AS cor0
----
18
38
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / 22 IS NULL
----

query I rowsort
SELECT - col2 * - 46 AS col0 FROM tab2 AS cor0
----
1058
1840
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT - SUM( 73 ) AS col2 FROM tab2 WHERE NULL <> - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT - SUM ( 73 ) AS col2 FROM tab2 WHERE NULL <> - col2
----
NULL

query I rowsort
SELECT col2 * + ( + + ( - - col2 ) ) FROM tab2
----
1600
3364
529

query I rowsort
SELECT ALL + 73 - + + col1 * - + col1 * + 33 AS col0 FROM tab2
----
148210
195730
85906

query II rowsort
SELECT col0, + 72 AS col0 FROM tab2
----
46
72
64
72
75
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT DISTINCT - 40 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT DISTINCT - MAX( + + 46 ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT - MAX ( + + 46 ) FROM tab0
----
-46

query I rowsort
SELECT 64 * 95 AS col1 FROM tab0
----
6080
6080
6080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT - COUNT( * ) - + 94 DIV + ( ( COUNT( * ) ) ) FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-7459
SELECT - COUNT ( * ) - + 94 / + ( ( COUNT ( * ) ) ) FROM tab2
----
-34

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col0 FROM tab0 AS cor0 WHERE NOT ( col0 / + - col0 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL + COUNT( * ) * - MAX( 3 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + COUNT ( * ) * - MAX ( 3 ) AS col1 FROM tab2
----
-9

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7464
SELECT + + COUNT( ALL - col2 ) AS col1, + 59 - - 81 AS col0 FROM tab1 AS cor0
----
3
140

skipif mysql # not compatible
query II rowsort label-7464
SELECT + + COUNT ( ALL - col2 ) AS col1, + 59 - - 81 AS col0 FROM tab1 AS cor0
----
3
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7465
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

query II rowsort
SELECT 61, 20 - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
61
-20
61
-3
61
-38

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT + col1 + col0 IS NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT + col2 DIV col2 * - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7468
SELECT + col2 / col2 * - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7469
SELECT - col1 * - - 1 DIV ( + col0 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7469
SELECT - col1 * - - 1 / ( + col0 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT ALL + 40 * + CAST( - CAST( - + 20 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
800
800
800

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL + 40 * + CAST ( - CAST ( - + 20 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
800
800
800

query II rowsort
SELECT ALL col2, - col2 AS col0 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7472
SELECT + col1, col1 * + CAST( col1 AS SIGNED ) FROM tab2
----
51
2601
67
4489
77
5929

skipif mysql # not compatible
query II rowsort label-7472
SELECT + col1, col1 * + CAST ( col1 AS INTEGER ) FROM tab2
----
51
2601
67
4489
77
5929

query I rowsort
SELECT + ( + + 40 ) FROM tab2
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT - MAX( - 99 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7474
SELECT - MAX ( - 99 ) FROM tab0
----
99

query II rowsort
SELECT DISTINCT col2 AS col1, - 91 FROM tab2
----
23
-91
40
-91
58
-91

query I rowsort
SELECT + col2 + + 30 AS col2 FROM tab0 AS cor0
----
129
40
77

query I rowsort
SELECT ALL 65 + col2 AS col1 FROM tab2 AS cor0
----
105
123
88

query I rowsort
SELECT - - col1 + - - col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT + col1 + 24 + col2 * - + ( + 1 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 ) NOT IN ( + col2 / + 88 + - 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT - 54 * COUNT( * ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-7481
SELECT - 54 * COUNT ( * ) FROM tab0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT 32 - + ( + col0 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT - col1 * - col1 + CAST( 84 AS SIGNED ) * + 18 FROM tab2
----
4113
6001
7441

skipif mysql # not compatible
query I rowsort label-7483
SELECT - col1 * - col1 + CAST ( 84 AS INTEGER ) * + 18 FROM tab2
----
4113
6001
7441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7484
SELECT ALL - COUNT( * ) + 54 DIV - 49 AS col2 FROM tab1 WHERE NOT NULL > ( col0 )
----
-1

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - COUNT ( * ) + 54 / - 49 AS col2 FROM tab1 WHERE NOT NULL > ( col0 )
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 50 >= - 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7486
SELECT DISTINCT - SUM( ALL - 40 ) * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7486
SELECT DISTINCT - SUM ( ALL - 40 ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT ALL CAST( NULL AS SIGNED ) * + 47 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT 11 - 25 DIV col0 AS col1 FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-7488
SELECT 11 - 25 / col0 AS col1 FROM tab2
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT DISTINCT ( + 15 ) * - COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT ( + 15 ) * - COUNT ( * ) FROM tab2
----
-45

query III rowsort
SELECT * FROM tab1 WHERE NOT 29 NOT BETWEEN + 48 AND NULL
----

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab1 WHERE NOT ( - col2 ) IN ( - col0 )
----
46

query I rowsort
SELECT - col1 * - col2 - + 63 AS col1 FROM tab0
----
147
36
3744

query III rowsort
SELECT * FROM tab2 WHERE + col1 * col2 = col2
----

query III rowsort
SELECT * FROM tab2 WHERE - 87 BETWEEN 81 - col1 * + col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - 85 * + col1 FROM tab2
----
-4289
-5620
-6481

query I rowsort
SELECT DISTINCT 98 * - ( + col0 ) + + col0 FROM tab2
----
-4462
-6208
-7275

query I rowsort
SELECT ( + col0 ) + col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7498
SELECT 16 DIV + SUM( + col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7498
SELECT 16 / + SUM ( + col1 ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT DISTINCT - 29 - 39 * + CAST( col2 + - col1 AS SIGNED ) AS col1 FROM tab2
----
1063
1414
322

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT - 29 - 39 * + CAST ( col2 + - col1 AS INTEGER ) AS col1 FROM tab2
----
1063
1414
322

query I rowsort
SELECT + 43 + col0 AS col0 FROM tab0 WHERE - 39 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7501
SELECT ALL - 44 DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL - 44 / col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - 61 * COUNT( * ) AS col0 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-7502
SELECT - 61 * COUNT ( * ) AS col0 FROM tab2
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT + 17 * - MAX( DISTINCT col1 ) FROM tab0
----
-1377

skipif mysql # not compatible
query I rowsort label-7503
SELECT + 17 * - MAX ( DISTINCT col1 ) FROM tab0
----
-1377

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT col2 = ( + col1 * col0 + + col2 )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < ( ( - col2 ) )
----

query I rowsort
SELECT + 50 * - col2 AS col0 FROM tab1
----
-2950
-3400
-4800

query I rowsort
SELECT ALL - 39 + col2 FROM tab1 WHERE NOT col0 * col2 + + ( col1 ) < ( + col0 )
----
20
29
57

query I rowsort
SELECT ALL col1 + + ( + 51 ) FROM tab0 WHERE NOT ( + 61 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * + col1 BETWEEN - 55 AND - 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 20 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT MAX( DISTINCT 85 ) FROM tab1 WHERE NULL IS NULL
----
85

skipif mysql # not compatible
query I rowsort label-7511
SELECT MAX ( DISTINCT 85 ) FROM tab1 WHERE NULL IS NULL
----
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + ( col2 ) ) IN ( + 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 88 * + 47 + col2 NOT BETWEEN NULL AND ( + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT DISTINCT - 79 * COUNT( * ) FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT - 79 * COUNT ( * ) FROM tab2 AS cor0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-7515
SELECT - ( + ( + col1 ) ) DIV + 49 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7515
SELECT - ( + ( + col1 ) ) / + 49 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + ( - 56 * - col0 ) AS col2 FROM tab0 AS cor0
----
102312
5432
68040

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT + 68 DIV - 55 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7518
SELECT + 68 / - 55 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col2 * 4 AS col1 FROM tab2 cor0
----
-160
-232
-92

query I rowsort
SELECT 12 FROM tab0 AS cor0 WHERE NOT + col0 <= - col0 * - col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT 9 * COUNT( ALL col1 ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7521
SELECT 9 * COUNT ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
27

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - 66 IS NOT NULL
----

query I rowsort
SELECT + + 28 * col2 + col1 AS col1 FROM tab1 cor0
----
1657
1951
2702

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL - + COUNT( + col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - + COUNT ( + col2 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL + - ( + COUNT( + 90 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL + - ( + COUNT ( + 90 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7526
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 < - CAST( col1 AS DECIMAL ) + col1 * + col1
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-7526
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 < - CAST ( col1 AS REAL ) + col1 * + col1
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + 87 = ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 51 + ( col1 ) ) IN ( col2 + ( col0 ) * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7529
SELECT - 85 * + col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( 8 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7529
SELECT - 85 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( 8 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 79 + 21 * - 84 IS NOT NULL
----

query I rowsort
SELECT 88 / - 51 + + col1 FROM tab1 WHERE NOT ( ( 24 ) * col2 - - col1 ) IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE col2 < NULL
----

query I rowsort
SELECT ALL 7 FROM tab1 WHERE NULL <= ( 63 )
----

query I rowsort
SELECT DISTINCT col2 + - 32 FROM tab1
----
27
36
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7535
SELECT - + 23 DIV - - COUNT( ALL + 24 ) FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7535
SELECT - + 23 / - - COUNT ( ALL + 24 ) FROM tab2 AS cor0
----
-7

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - 90 + - + col0 * 57 AS col1 FROM tab0 AS cor0
----
-5049
-5619
-945

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 83 * col0 - 94 IS NULL
----

query I rowsort
SELECT + + 61 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT - col0 + - 2 AS col0 FROM tab2 WHERE + - 29 BETWEEN NULL AND - 42
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 96 ) NOT BETWEEN NULL AND + col2 - - col1
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 86 IS NULL OR col1 + + col2 / col0 >= col1
----
-3

skipif mysql # not compatible
query I rowsort label-7543
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 86 IS NULL OR col1 + + col2 / col0 >= col1
----
-3

query I rowsort
SELECT ALL - ( + 63 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( 52 * - 60 ) AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT DISTINCT MAX( ALL + col0 ) + + + COUNT( * ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT MAX ( ALL + col0 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
94

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + + col1 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 2 + - + 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT + COUNT( DISTINCT - 51 ) * + ( + ( + ( SUM( col2 ) ) ) ) FROM tab0 cor0 WHERE col1 + col1 IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-7548
SELECT + COUNT ( DISTINCT - 51 ) * + ( + ( + ( SUM ( col2 ) ) ) ) FROM tab0 cor0 WHERE col1 + col1 IS NOT NULL
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT + - CAST( + col2 AS SIGNED ) * CAST( NULL AS SIGNED ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 73 col2, col0 * - ( - 34 ) FROM tab0 AS cor0
----
73
2958
73
3298
73
510

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT + 96 - + COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT + 96 - + COUNT ( * ) FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT - COUNT( + + col1 ) * - 1 AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7552
SELECT - COUNT ( + + col1 ) * - 1 AS col1 FROM tab2
----
3

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

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

query I rowsort
SELECT + col0 * - + col1 * col1 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT + ( + ( 84 ) ) AS col2 FROM tab1
----
84
84
84

query I rowsort
SELECT DISTINCT + col1 * - col1 * - 70 FROM tab1
----
13720
154630
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT COUNT( * ) * + 57 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT COUNT ( * ) * + 57 FROM tab1
----
171

query I rowsort
SELECT - col2 * + 75 AS col0 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + col1 IN ( + 60 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL 71 + COUNT( * ) FROM tab1 WHERE NOT + - 12 / - col1 BETWEEN ( - col0 ) AND 95
----
71

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL 71 + COUNT ( * ) FROM tab1 WHERE NOT + - 12 / - col1 BETWEEN ( - col0 ) AND 95
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT ALL + col2 DIV - ( + 15 ) AS col2 FROM tab0
----
-3
-6
0

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + col2 / - ( + 15 ) AS col2 FROM tab0
----
-3
-6
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN ( NULL ) AND ( - 24 * - 41 * 57 )
----

query I rowsort
SELECT + 6 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - + ( - ( col1 ) ) * - col1 IS NOT NULL )
----
27
7
87

query I rowsort
SELECT + - 59 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= + col1 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 48 >= 74 * + 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 25, - 87 + - col2 AS col2 FROM tab0
----
25
-134
25
-186
25
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7569
SELECT COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 98 col0 FROM tab1 AS cor0
----
157
166
194

query I rowsort
SELECT ALL - 55 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-55
-55
-55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - 61 * - + col0 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
-13678
-461699
-573850

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

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL MAX( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL MAX ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7578
SELECT + COUNT( * ) AS col2, + COUNT( + - col2 ) + + ( - 92 ) DIV - 96 col0 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7578
SELECT + COUNT ( * ) AS col2, + COUNT ( + - col2 ) + + ( - 92 ) / - 96 col0 FROM tab2
----
3
3

query I rowsort
SELECT ( - 55 ) AS col2 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT 17 + - - col0 FROM tab1
----
102
108
68

query II rowsort
SELECT DISTINCT col0, 58 AS col0 FROM tab2
----
46
58
64
58
75
58

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

query I rowsort
SELECT DISTINCT ( 24 ) - + col0 AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
-63
-73
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7584
SELECT + + CAST( NULL AS SIGNED ), 69 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
-3243
NULL
-6831
NULL
-690

skipif mysql # not compatible
query II rowsort label-7584
SELECT + + CAST ( NULL AS INTEGER ), 69 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
-3243
NULL
-6831
NULL
-690

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IN ( + - 12 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT 99 IN ( + - col2 * + col0 )
----
1
21
81

query II rowsort
SELECT ALL 58 * - + col0, + 96 AS col0 FROM tab2
----
-2668
96
-3712
96
-4350
96

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> - - col2 + + 96 + + col2 + 10 AND NULL >= + col2 * col0
----

query I rowsort
SELECT ALL + col0 * - 42 AS col0 FROM tab2
----
-1932
-2688
-3150

query I rowsort
SELECT DISTINCT 43 * + - col0 AS col2 FROM tab2
----
-1978
-2752
-3225

query I rowsort
SELECT DISTINCT + 1 + + col0 AS col2 FROM tab0
----
16
88
98

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL + MAX( ALL - - col1 ) + 25 AS col2 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + MAX ( ALL - - col1 ) + 25 AS col2 FROM tab2 AS cor0
----
102

query I rowsort
SELECT DISTINCT - 18 * col0 + + - col1 FROM tab0 AS cor0
----
-1587
-1747
-351

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 cor0 WHERE - col1 > - col2
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7596
SELECT + SUM( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + - + col0 + 54 - - - 91 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + - + col0 + 54 - - - 91 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7599
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT IN ( - + 19 + + CAST( 72 AS SIGNED ) + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7599
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT IN ( - + 19 + + CAST ( 72 AS INTEGER ) + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7600
SELECT - CAST( NULL AS SIGNED ) AS col0, - 44 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7600
SELECT - CAST ( NULL AS INTEGER ) AS col0, - 44 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 <= - col2 + col0 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT ALL 76 DIV + + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL 76 / + + col2 FROM tab1
----
0
1
1

query I rowsort
SELECT - + 89 FROM tab0 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT DISTINCT col1 + + + col0 * - col0 * + - col2 - 10 AS col0 FROM tab2 WHERE ( + col2 ) < - 88
----

query II rowsort
SELECT + col1 * col0 * - col0, col1 * - + col0 + - col1 * - + 90 * + col1 AS col1 FROM tab1
----
-36125
1825
-36414
16926
-389207
194533

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL - MAX( DISTINCT - + 99 ) AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL - MAX ( DISTINCT - + 99 ) AS col1 FROM tab1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT DISTINCT + CAST( - MIN( col1 ) AS SIGNED ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT + CAST ( - MIN ( col1 ) AS INTEGER ) FROM tab1
----
-5

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT 25 < + + col1 * - ( 24 )
----
-10
-47
-99

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

query I rowsort
SELECT ( + + col1 ) * - - col2 * - - 14 * - col2 AS col2 FROM tab1
----
-1806336
-243670
-3042592

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

query I rowsort
SELECT ALL 23 * + col1 FROM tab0
----
1863
23
483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT DISTINCT - col1 + + + 18 + - + col1 + CAST( col0 AS SIGNED ) + + col2 * + col2 AS col2 FROM tab2 WHERE NOT + 66 NOT BETWEEN NULL AND + 26
----

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT - col1 + + + 18 + - + col1 + CAST ( col0 AS INTEGER ) + + col2 * + col2 AS col2 FROM tab2 WHERE NOT + 66 NOT BETWEEN NULL AND + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT DISTINCT - COUNT( * ) * 47 AS col2 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - COUNT ( * ) * 47 AS col2 FROM tab0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + MAX( DISTINCT col1 ) + + COUNT( * ) AS col2 FROM tab1 WHERE NOT + col0 BETWEEN - 18 * - col2 / + col0 - col0 AND ( col2 * col2 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT + MAX ( DISTINCT col1 ) + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col0 BETWEEN - 18 * - col2 / + col0 - col0 AND ( col2 * col2 + col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7617
SELECT - col0, - col2 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
-15
-32
-87
77
-97
-2

skipif mysql # not compatible
query II rowsort label-7617
SELECT - col0, - col2 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
-15
-32
-87
77
-97
-2

query I rowsort
SELECT ALL + - 53 * - col2 + + + col0 / + col0 AS col1 FROM tab1 cor0 WHERE NOT 59 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL - + COUNT( - + col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - + COUNT ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 82 - col2 * 24 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1046
-158
-2294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 86 ) * col2 = - CAST( NULL AS SIGNED ) + + + 98
----

skipif mysql # not compatible
query I rowsort label-7621
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 86 ) * col2 = - CAST ( NULL AS INTEGER ) + + + 98
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7622
SELECT - MAX( ALL - col1 ) DIV 38 AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7622
SELECT - MAX ( ALL - col1 ) / 38 AS col0 FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT 95 * col1 AS col0 FROM tab1
----
1330
4465
475

query I rowsort
SELECT 40 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT MAX( ALL ( col0 ) ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7625
SELECT MAX ( ALL ( col0 ) ) AS col0 FROM tab2
----
75

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL - 34 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # DIV for integer division: 
query I rowsort label-7628
SELECT ALL - 14 DIV - col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - 14 / - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE + ( - 31 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT + + 64 + + 15 * + ( - 95 ) * - 6 FROM tab2 AS cor0
----
8614
8614
8614

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 63 NOT BETWEEN NULL AND - ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7632
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + + col1 AS SIGNED ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-7632
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + + col1 AS INTEGER ) IN ( - col0 )
----

query I rowsort
SELECT ALL + 74 + - 80 * - - col0 AS col1 FROM tab2 AS cor0
----
-3606
-5046
-5926

query I rowsort
SELECT ALL - - 75 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + - - 76 col2 FROM tab2 AS cor0
----
1676
3440
605

query I rowsort
SELECT DISTINCT - 45 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-130
-136
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7637
SELECT - col1 DIV - col2 * + col0 + - - col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7637
SELECT - col1 / - col2 * + col0 + - - col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT DISTINCT ( - col2 ) AS col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT col0 + + + col0 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7640
SELECT 30 DIV + + MIN( - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7640
SELECT 30 / + + MIN ( - col0 ) FROM tab1
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7642
SELECT * FROM tab1 WHERE col0 - col0 * - 61 * - CAST( NULL AS DECIMAL ) * ( - 75 ) / 10 < + col1
----

skipif mysql # not compatible
query III rowsort label-7642
SELECT * FROM tab1 WHERE col0 - col0 * - 61 * - CAST ( NULL AS REAL ) * ( - 75 ) / 10 < + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 < - + 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + 46 FROM tab0
----
3726
46
966

query I rowsort
SELECT + 81 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT + + MIN( + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7646
SELECT + + MIN ( + col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT 84 - - - 97 FROM tab0 cor0
----
-13

query I rowsort
SELECT - ( - 6 ) + - col0 + col1 AS col2 FROM tab2
----
-2
11
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT + col1 DIV - 40 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7649
SELECT + col1 / - 40 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7650
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + 56, + col0, + CAST( + - col1 AS SIGNED ) + - 84 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7650
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + 56, + col0, + CAST ( + - col1 AS INTEGER ) + - 84 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 FROM tab0 cor0 WHERE + - col0 IS NULL AND NOT ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT - col1 DIV col1 + - 36 + 76 * - - col0 AS col1 FROM tab0 AS cor0
----
1103
6575
7335

skipif mysql # not compatible
query I rowsort label-7652
SELECT - col1 / col1 + - 36 + 76 * - - col0 AS col1 FROM tab0 AS cor0
----
1103
6575
7335

query I rowsort
SELECT col2 * + 32 FROM tab0
----
1504
3168
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7654
SELECT - + MAX( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT - + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT - + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT ( - + MIN( ALL + col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT ( - + MIN ( ALL + col1 ) ) FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / + - col1 + + col2 BETWEEN ( + col0 ) AND NULL
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT ALL - col1 DIV + col2 + - col1 FROM tab2 cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL - col1 / + col2 + - col1 FROM tab2 cor0
----
-53
-68
-78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 55 * col1 + - - 12 + - + 15 - + col0 BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 3 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col0 col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + col0 + + + 4 FROM tab2 cor0
----
50
68
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT - MIN( ALL - 42 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7663
SELECT - MIN ( ALL - 42 ) FROM tab2 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7664
SELECT ALL - col1 * + CAST( 11 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-11
-231
-891

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - col1 * + CAST ( 11 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-11
-231
-891

query I rowsort
SELECT + 2 * + col2 AS col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT - col1 * + col1 FROM tab2 WHERE + 45 + + col0 + - + col2 / - col0 IS NOT NULL
----
-2601
-4489
-5929

query I rowsort
SELECT + col2 FROM tab1 WHERE ( + col0 - 84 + + 10 + - 25 - + - 33 * + - col2 - - col0 / + 21 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT - + 99 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT ALL - CAST( NULL AS SIGNED ) + - - col0 FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + col0 + + col0 + 50
----

query I rowsort
SELECT ALL col0 * + - col0 + - col1 AS col1 FROM tab2
----
-2167
-4173
-5692

query I rowsort
SELECT ALL 58 + col1 + - col1 + + ( + 96 ) AS col2 FROM tab0 AS cor0
----
154
154
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT DISTINCT - COUNT( * ) - + 5 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT - COUNT ( * ) - + 5 FROM tab0 AS cor0
----
-8

query II rowsort
SELECT ( + col0 ) AS col2, + 34 * + + 6 AS col2 FROM tab2 AS cor0
----
46
204
64
204
75
204

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ( + + MIN( - 89 ) ) AS col0 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-7675
SELECT ( + + MIN ( - 89 ) ) AS col0 FROM tab2 AS cor0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT CAST( - MAX( DISTINCT + ( - 57 ) ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-7676
SELECT CAST ( - MAX ( DISTINCT + ( - 57 ) ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
57

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab1 WHERE NOT NULL <> + 92
----

query I rowsort
SELECT 80 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7679
SELECT + COUNT( * ) DIV + 25 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7679
SELECT + COUNT ( * ) / + 25 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * + 51 <= ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 11 * col0 * col1 AS col0 FROM tab2 AS cor0
----
-25806
-54208
-55275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7682
SELECT - 33 AS col1, CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-7682
SELECT - 33 AS col1, CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-33
NULL

query I rowsort
SELECT + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL - COUNT( - ( - 72 ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7684
SELECT ALL - COUNT ( - ( - 72 ) ) col0 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( col2 ) / ( col1 ) * + col2 > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL - - CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) NOT BETWEEN - - col1 AND 56 )
----

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL - - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN - - col1 AND 56 )
----

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT 33 > NULL
----

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

query I rowsort
SELECT ALL - col1 * + 53 * 5 + 89 AS col2 FROM tab2 cor0
----
-13426
-17666
-20316

query II rowsort
SELECT col2 AS col0, col1 AS col1 FROM tab1 cor0
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - col0 * - + 14
----

query I rowsort
SELECT - 69 * col0 AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
-3174
-4416
-5175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7693
SELECT CAST( NULL AS SIGNED ) + - + col2 * - col0 AS col0, 22 AS col0 FROM tab0
----
NULL
22
NULL
22
NULL
22

skipif mysql # not compatible
query II rowsort label-7693
SELECT CAST ( NULL AS INTEGER ) + - + col2 * - col0 AS col0, 22 AS col0 FROM tab0
----
NULL
22
NULL
22
NULL
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT - - 24 + - CAST( NULL AS SIGNED ) - - + 61 * - 89 * - 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT - - 24 + - CAST ( NULL AS INTEGER ) - - + 61 * - 89 * - 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col2 + - ( col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
-2555
-4373
-5849

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT DISTINCT 32 DIV - col0 + - ( col2 ) + - - 56 FROM tab1 AS cor0
----
-12
-3
-40

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT 32 / - col0 + - ( col2 ) + - - 56 FROM tab1 AS cor0
----
-12
-3
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT col1 + + col1 + + col2 DIV col1 AS col1 FROM tab1 cor0
----
21
34
95

skipif mysql # not compatible
query I rowsort label-7697
SELECT col1 + + col1 + + col2 / col1 AS col1 FROM tab1 cor0
----
21
34
95

query I rowsort
SELECT ALL col1 + - + col2 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - 17 + + - 58 FROM tab2 AS cor0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7700
SELECT - CAST( + 44 AS SIGNED ) DIV col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7700
SELECT - CAST ( + 44 AS INTEGER ) / col0 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE + 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 AS col1, - col1 * + - col1 - - - 26 FROM tab2 WHERE NOT NULL BETWEEN + col0 AND + col1 * - - 63
----

query II rowsort
SELECT + 87, + col0 AS col0 FROM tab1
----
87
51
87
85
87
91

query I rowsort
SELECT + 55 - - col2 AS col2 FROM tab0
----
102
154
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT DISTINCT - COUNT( col2 ) * - COUNT( DISTINCT - 89 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - COUNT ( col2 ) * - COUNT ( DISTINCT - 89 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * - - 92 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT DISTINCT 48 * - 60 + + 7 + + + col2 FROM tab2 WHERE NOT NULL > col2 * col2
----

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT 5 * - 18 FROM tab0 AS cor0
----
-90
-90
-90

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 15 ) * 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT col0 DIV - - 4 FROM tab0
----
21
24
3

skipif mysql # not compatible
query I rowsort label-7712
SELECT col0 / - - 4 FROM tab0
----
21
24
3

query I rowsort
SELECT ALL - col2 + 25 FROM tab0
----
-22
-74
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7714
SELECT + col1 AS col0 FROM tab0 WHERE NOT NULL <> + CAST( 9 AS SIGNED ) * + 73 * + - col0
----

skipif mysql # not compatible
query I rowsort label-7714
SELECT + col1 AS col0 FROM tab0 WHERE NOT NULL <> + CAST ( 9 AS INTEGER ) * + 73 * + - col0
----

query II rowsort
SELECT ALL col1 + col1 + + col2, col1 AS col0 FROM tab2
----
125
51
192
67
194
77

query I rowsort
SELECT ALL - 41 * 78 + + + col2 + + col2 AS col1 FROM tab2 cor0
----
-3082
-3118
-3152

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT DISTINCT - + MIN( DISTINCT - col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT - + MIN ( DISTINCT - col1 ) FROM tab1 cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT - col1 + col0 * col2 DIV - col2 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-7718
SELECT - col1 + col0 * col2 / - col2 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7719
SELECT ALL + + CAST( + + col2 AS SIGNED ) + + - col1, col1 AS col1 FROM tab0 AS cor0
----
-11
21
-34
81
98
1

skipif mysql # not compatible
query II rowsort label-7719
SELECT ALL + + CAST ( + + col2 AS INTEGER ) + + - col1, col1 AS col1 FROM tab0 AS cor0
----
-11
21
-34
81
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT COUNT( * ) col2 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7720
SELECT COUNT ( * ) col2 FROM tab2, tab0 AS cor0
----
9

query II rowsort
SELECT 70, col0 * - col0 AS col2 FROM tab2
----
70
-2116
70
-4096
70
-5625

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col0 AND NULL
----

query II rowsort
SELECT DISTINCT + + col1 + + 55, col2 AS col1 FROM tab0 AS cor0
----
136
47
56
99
76
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT + COUNT( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT + COUNT ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL > col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 63 - - 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT - - MIN( + - ( col1 ) ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7726
SELECT - - MIN ( + - ( col1 ) ) FROM tab1 cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + 95 col2 FROM tab1 AS cor0
----
146
180
186

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 63 IS NULL
----

query I rowsort
SELECT - col0 * + col2 - + col0 FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT - 83 AS col1 FROM tab0 AS cor0 WHERE - col0 / - - col2 IS NOT NULL
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT MIN( DISTINCT 32 ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT MIN ( DISTINCT 32 ) FROM tab2
----
32

query I rowsort
SELECT DISTINCT - col1 + - + col1 * - col0 + + - 12 FROM tab2
----
2283
4839
4946

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7733
SELECT ALL CAST( - col2 AS SIGNED ), - col1 AS col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

skipif mysql # not compatible
query II rowsort label-7733
SELECT ALL CAST ( - col2 AS INTEGER ), - col1 AS col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

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

query III rowsort
SELECT * FROM tab1 WHERE - - 85 > - 34 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL + MIN( 45 ) col2 FROM tab0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7736
SELECT ALL + MIN ( 45 ) col2 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL SUM( DISTINCT + + col2 ) * + - 72 FROM tab2
----
-8712

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL SUM ( DISTINCT + + col2 ) * + - 72 FROM tab2
----
-8712

onlyif mysql # DIV for integer division: 
query II rowsort label-7738
SELECT + col0 * - 9, - col0 DIV - col2 col2 FROM tab0
----
-135
0
-783
8
-873
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7738
SELECT + col0 * - 9, - col0 / - col2 col2 FROM tab0
----
-135
0
-783
8
-873
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7739
SELECT 6 DIV - col2 AS col0, - 50 + - + 35 FROM tab0 AS cor0
----
0
-85
0
-85
0
-85

skipif mysql # not compatible
query II rowsort label-7739
SELECT 6 / - col2 AS col0, - 50 + - + 35 FROM tab0 AS cor0
----
0
-85
0
-85
0
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - 6 * - 54 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7742
SELECT + + col0 * + 23 / - ( - CAST( NULL AS SIGNED ) ) AS col0, col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7742
SELECT + + col0 * + 23 / - ( - CAST ( NULL AS INTEGER ) ) AS col0, col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT + 48 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7743
SELECT + 48 / - col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7744
SELECT + + ( col2 ) * + col2 AS col2, col0 DIV + - 61 AS col1 FROM tab2 AS cor0
----
1600
-1
3364
-1
529
0

skipif mysql # not compatible
query II rowsort label-7744
SELECT + + ( col2 ) * + col2 AS col2, col0 / + - 61 AS col1 FROM tab2 AS cor0
----
1600
-1
3364
-1
529
0

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) + col2 * - - col1 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 - - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - col1 + + 32 * + 75 - + - col1 * - 14 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE - 87 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7748
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE - 87 IS NULL
----
0

query I rowsort
SELECT - ( - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + + 42 + + + col2 * - col2 - 93 + col0 + - col2 FROM tab1 AS cor0
----
-3506
-4652
-9312

query I rowsort
SELECT col2 + 86 + + col0 FROM tab1
----
230
233
245

query I rowsort
SELECT ALL col1 * - - col1 AS col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT + ( + - col2 ) + - col1 + + col2 * + + col1 * + col2 * + col0 AS col1 FROM tab1
----
1479361
19776733
6580114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT - col2 + CAST( + 73 AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
15
33
50

skipif mysql # not compatible
query I rowsort label-7754
SELECT - col2 + CAST ( + 73 AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
15
33
50

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT ALL + CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab0 cor0
----
NULL

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

query I rowsort
SELECT ALL col1 * 2 * - + col0 + ( col0 ) AS col0 FROM tab2 AS cor0
----
-4646
-9792
-9975

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - + col1 * - + col0 NOT BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 51 * col2 = + 6 + + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT + ( MAX( + 68 ) ) AS col0 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-7760
SELECT + ( MAX ( + 68 ) ) AS col0 FROM tab2
----
68

query II rowsort
SELECT DISTINCT - 70 AS col0, col2 FROM tab1
----
-70
59
-70
68
-70
96

query I rowsort
SELECT + col0 - - + 76 FROM tab0
----
163
173
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT ALL CAST( NULL AS SIGNED ) - + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7764
SELECT 44, MAX( + + col1 ) AS col1 FROM tab0
----
44
81

skipif mysql # not compatible
query II rowsort label-7764
SELECT 44, MAX ( + + col1 ) AS col1 FROM tab0
----
44
81

query I rowsort
SELECT 37 * + col1 AS col1 FROM tab2
----
1887
2479
2849

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7766
SELECT - CAST( + 49 AS SIGNED ) AS col1, - 25 FROM tab2 WHERE NOT ( NULL ) < NULL
----

skipif mysql # not compatible
query II rowsort label-7766
SELECT - CAST ( + 49 AS INTEGER ) AS col1, - 25 FROM tab2 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) * - col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - 37 * + + col1 AS col1 FROM tab0
----
-2997
-37
-777

query II rowsort
SELECT ALL + col0 * - + col1, - col1 AS col1 FROM tab0
----
-1215
-81
-1827
-21
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT + 47 + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
38

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT + 47 + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
38

query I rowsort
SELECT DISTINCT - 38 * 15 * col2 + - - 24 AS col0 FROM tab1 AS cor0
----
-33606
-38736
-54696

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7772
SELECT - - 48 DIV + 57 * col2 col2, + col0 + ( - ( col0 ) ) - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7772
SELECT - - 48 / + 57 * col2 col2, + col0 + ( - ( col0 ) ) - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7773
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 > NULL
----
0

query I rowsort
SELECT + + col0 * + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE NOT 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ( + MAX( + col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7776
SELECT ( + MAX ( + col1 ) ) FROM tab1
----
47

query I rowsort
SELECT 92 * + col2 FROM tab2
----
2116
3680
5336

query III rowsort
SELECT * FROM tab1 WHERE + - ( + - 89 ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 72, col0 FROM tab0
----
72
15
72
87
72
97

query I rowsort
SELECT DISTINCT + col2 + + 44 FROM tab1
----
103
112
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7781
SELECT col0 * col1 AS col0 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7781
SELECT col0 * col1 AS col0 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ALL 76 - - 41 + MIN( ALL - - 55 ) FROM tab1 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL 76 - - 41 + MIN ( ALL - - 55 ) FROM tab1 AS cor0
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7783
SELECT ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + - MAX( ALL - - 72 ) col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7783
SELECT ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - MAX ( ALL - - 72 ) col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 32 + - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7785
SELECT ALL + + col2 col2, + col1 + - - 83 DIV 42 + - - 75 AS col0 FROM tab0 AS cor0
----
10
97
47
157
99
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7785
SELECT ALL + + col2 col2, + col1 + - - 83 / 42 + - - 75 AS col0 FROM tab0 AS cor0
----
10
97
47
157
99
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7786
SELECT SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7788
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT - + col0 - - col2 * + col2 * + ( + col0 ) FROM tab1 AS cor0
----
295800
420693
469965

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col1 * col1 - - col1 * + col1 - + + 56 col0 FROM tab1 AS cor0
----
-101670
-156
-2604

query I rowsort
SELECT ALL + col2 - + 13 * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
1141
1360
242

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT COUNT( + + col1 ) - 43 FROM tab1 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7793
SELECT COUNT ( + + col1 ) - 43 FROM tab1 cor0
----
-40

query I rowsort
SELECT - col2 * + col1 + - col1 FROM tab1 AS cor0
----
-1358
-300
-3243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7795
SELECT col2 + - col0 col1, CAST( - 96 AS SIGNED ) + - - col1 FROM tab0 AS cor0 WHERE + 63 + + - col0 BETWEEN col0 * - + 12 AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7795
SELECT col2 + - col0 col1, CAST ( - 96 AS INTEGER ) + - - col1 FROM tab0 AS cor0 WHERE + 63 + + - col0 BETWEEN col0 * - + 12 AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( + 78 ) - - 60 AS col2 FROM tab2 AS cor0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7797
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + 7 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + 7 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2, col2 * - + 18 + col1 AS col1 FROM tab1
----
-59
-1057
-68
-1177
-96
-1714

query III rowsort
SELECT * FROM tab1 WHERE NOT - 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT 98 * - SUM( DISTINCT - 4 ) AS col2 FROM tab0
----
392

skipif mysql # not compatible
query I rowsort label-7800
SELECT 98 * - SUM ( DISTINCT - 4 ) AS col2 FROM tab0
----
392

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) <> col1 * - col0
----

query I rowsort
SELECT - col1 * + + col0 FROM tab0 AS cor0 WHERE NOT - col0 + - 66 + col2 + - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT col2 col0 FROM tab1 WHERE NOT 14 * + + 39 * CAST( + ( - + col0 ) AS SIGNED ) + - col0 + + col0 IS NULL
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7803
SELECT col2 col0 FROM tab1 WHERE NOT 14 * + + 39 * CAST ( + ( - + col0 ) AS INTEGER ) + - col0 + + col0 IS NULL
----
59
68
96

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE ( col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT + ( + + 78 ) AS col1 FROM tab1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT ALL - col2 DIV col2 + 43 FROM tab0 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - col2 / col2 + 43 FROM tab0 AS cor0
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - - ( + col2 ) >= + + col0 / 34 * + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7808
SELECT - col1 + CAST( - col2 AS SIGNED ) + - - col1 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7808
SELECT - col1 + CAST ( - col2 AS INTEGER ) + - - col1 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7809
SELECT DISTINCT - - col0 * + + CAST( - 2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT - - col0 * + + CAST ( - 2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7810
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - col2 > + + 39 + - col2 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7810
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - col2 > + + 39 + - col2 + + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT col0 + - col0, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT + + MAX( + 39 ) + 84 AS col0 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-7812
SELECT + + MAX ( + 39 ) + 84 AS col0 FROM tab1 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT MAX( col2 ) + - 43 AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7813
SELECT MAX ( col2 ) + - 43 AS col2 FROM tab2 AS cor0
----
15

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT ALL - 70 DIV + col1 FROM tab0
----
-3
-70
0

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL - 70 / + col1 FROM tab0
----
-3
-70
0

query I rowsort
SELECT + 50 * - + col1 * col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT DISTINCT + col1 DIV - 38 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT + col1 / - 38 FROM tab2
----
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7819
SELECT + CAST( + ( + + COUNT( DISTINCT col2 ) ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7819
SELECT + CAST ( + ( + + COUNT ( DISTINCT col2 ) ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col2 * 47 + - ( col2 ) FROM tab0
----
2162
4554
460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - + col2 - col1 + - col2 FROM tab0 AS cor0
----
-175
-199
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT + - MAX( col0 ) - - + ( + + 43 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7823
SELECT + - MAX ( col0 ) - - + ( + + 43 ) FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL - 87 + + col0 + col0 AS col0 FROM tab0 AS cor0
----
-57
107
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT ALL - SUM( DISTINCT + 62 ) FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL - SUM ( DISTINCT + 62 ) FROM tab2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT + + AVG ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7827
SELECT col1, col0 DIV - col0 AS col0 FROM tab1 cor0
----
14
-1
47
-1
5
-1

skipif mysql # not compatible
query II rowsort label-7827
SELECT col1, col0 / - col0 AS col0 FROM tab1 cor0
----
14
-1
47
-1
5
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7828
SELECT ALL CAST( NULL AS DECIMAL ) col2, + 95 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
NULL
95
NULL
95
NULL
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7828
SELECT ALL CAST ( NULL AS REAL ) col2, + 95 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
NULL
95
NULL
95
NULL
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col0 FROM tab2 cor0 WHERE NOT 21 / col0 * + - col2 NOT IN ( ( + col2 ), col2, col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - 92 <= + col2 * - col1 + col2
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + 88 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col1, - 90 + - - col0 FROM tab1 cor0
----
-51
-39
-85
-5
-91
1

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col0 col1, + 69 * - - col0 + + col1 + + + 92 + col0 * 29 * + col2 * + col1 + col0 FROM tab2
----
2346
1568145
4928
5721129
5025
8457459

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT + MAX( + - col0 ) col2 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7835
SELECT DISTINCT + MAX ( + - col0 ) col2 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT - 20 + - - 91 + - - 67 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * + - 97 IS NOT NULL
----
138
138
138

skipif mysql # not compatible
query I rowsort label-7836
SELECT - 20 + - - 91 + - - 67 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * + - 97 IS NOT NULL
----
138
138
138

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 + + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 74 * + ( col0 ) FROM tab2 AS cor0
----
-3404
-4736
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL - + MIN( - 64 ) FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT - col2 IS NULL ) )
----
64

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - + MIN ( - 64 ) FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT - col2 IS NULL ) )
----
64

query I rowsort
SELECT - col2 + - - col0 + - - 43 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7842
SELECT DISTINCT CAST( - + col1 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - + ( + col0 ) + - ( - col2 ) FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - col2 * - col0 + - 73 + 14 + - col1 FROM tab1 AS cor0
----
4823
4951
6082

query I rowsort
SELECT DISTINCT + ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 > NULL
----

query I rowsort
SELECT ALL ( + ( + + col1 ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL + MAX( col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL + MAX ( col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT col2 / - + ( + - 97 ) + - col0 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7849
SELECT SUM( - ( 37 ) ) * - - 19, 38 AS col1 FROM tab1
----
-2109
38

skipif mysql # not compatible
query II rowsort label-7849
SELECT SUM ( - ( 37 ) ) * - - 19, 38 AS col1 FROM tab1
----
-2109
38

query I rowsort
SELECT col1 * + 91 FROM tab2
----
4641
6097
7007

query II rowsort
SELECT DISTINCT + col1 AS col2, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT - col2 + + col2 + + 3 FROM tab2
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT ALL 87 / - + CAST( NULL AS SIGNED ) + - col2 + + col1 col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7853
SELECT ALL 87 / - + CAST ( NULL AS INTEGER ) + - col2 + + col1 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col1, - col0 AS col2 FROM tab2
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL - COUNT( - col0 ) + 69 AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - COUNT ( - col0 ) + 69 AS col1 FROM tab0 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT DISTINCT + col0 DIV 96 * + col0 + - col1 + 55 - - col1 * + col0 - - + col0 AS col2 FROM tab1 AS cor0
----
4376
560
806

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT + col0 / 96 * + col0 + - col1 + 55 - - col1 * + col0 - - + col0 AS col2 FROM tab1 AS cor0
----
4376
560
806

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

query I rowsort
SELECT DISTINCT - + 55 * - + 88 / - - col2 * col0 * - 62 FROM tab1 WHERE NOT 72 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7860
SELECT DISTINCT col1 / - 46 / + CAST( + - col2 AS DECIMAL ) + - ( + - col1 ) + + - CAST( NULL AS SIGNED ) * 43 / + col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL + SUM( - col0 ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL > + - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL + SUM ( - col0 ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL > + - 1 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7862
SELECT + + col0 DIV - - col0, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-7862
SELECT + + col0 / - - col0, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL + SUM( col1 ) * SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
20497

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL + SUM ( col1 ) * SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
20497

query I rowsort
SELECT 93 FROM tab2 AS cor0 WHERE NOT ( NOT 32 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7865
SELECT DISTINCT - + AVG ( ALL + 58 ) col0, CAST( + - 42 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7865
SELECT DISTINCT - + AVG ( ALL + 58 ) col0, CAST ( + - 42 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL
-42

query I rowsort
SELECT col2 * + + col2 * + 34 * col0 AS col1 FROM tab2 AS cor0
----
3481600
827356
8578200

query II rowsort
SELECT ALL col2, - 90 + + - col2 AS col0 FROM tab2
----
23
-113
40
-130
58
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT 1 * - COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7868
SELECT 1 * - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + - + col1 + - 74 * - col2 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT ALL COUNT( DISTINCT - 85 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL COUNT ( DISTINCT - 85 ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + COUNT( * ) * - 7 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-7872
SELECT + COUNT ( * ) * - 7 FROM tab1
----
-21

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

query I rowsort
SELECT DISTINCT + col1 - + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + col2 > NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - 54 IN ( col0 - 64, - col1 * - col2 * - 48 * + col2 + - col1, + ( - col1 ) + + 95 + - - col2, - col2 )
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( - col0 ) / - - 82 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT MIN( 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-7878
SELECT MIN ( 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4

query I rowsort
SELECT - 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT + 25 + + col0 AS col0 FROM tab2
----
100
71
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7881
SELECT 67 + + CAST( - col2 AS SIGNED ) + - 64, + col0 FROM tab1
----
-56
85
-65
91
-93
51

skipif mysql # not compatible
query II rowsort label-7881
SELECT 67 + + CAST ( - col2 AS INTEGER ) + - 64, + col0 FROM tab1
----
-56
85
-65
91
-93
51

query I rowsort
SELECT ALL col0 * - 74 + + col2 FROM tab1
----
-3678
-6231
-6666

query II rowsort
SELECT 46 + + ( - col2 ) + + + 48 - - col0 + + - 21 + + - 38, col0 AS col1 FROM tab2 AS cor0
----
52
75
58
46
59
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * - col2 col2 FROM tab0 AS cor0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT col1 * - col0 + col2 + - col1 FROM tab1 AS cor0
----
-371
-4256
-632

query I rowsort
SELECT 41 * + col1 FROM tab1
----
1927
205
574

query I rowsort
SELECT - 91 * col0 * + col2 FROM tab2
----
-232960
-395850
-96278

query I rowsort
SELECT DISTINCT - 37 * 78 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-2886

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT 89 * col0 * col2 DIV + col1 FROM tab2
----
1846
2958
5778

skipif mysql # not compatible
query I rowsort label-7889
SELECT 89 * col0 * col2 / + col1 FROM tab2
----
1846
2958
5778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT CAST( + 49 AS SIGNED ) FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort label-7890
SELECT CAST ( + 49 AS INTEGER ) FROM tab2
----
49
49
49

query I rowsort
SELECT ALL + - 29 + col1 AS col2 FROM tab0 cor0
----
-28
-8
52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 64 BETWEEN + ( 98 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT DISTINCT - 8 - + + col1 DIV 32 AS col2 FROM tab1 AS cor0
----
-8
-9

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT - 8 - + + col1 / 32 AS col2 FROM tab1 AS cor0
----
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT DISTINCT + - MIN( ALL - col0 ) - MIN( DISTINCT + ( - + col2 ) ) AS col0 FROM tab1 cor0
----
187

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT + - MIN ( ALL - col0 ) - MIN ( DISTINCT + ( - + col2 ) ) AS col0 FROM tab1 cor0
----
187

onlyif mysql # aggregate syntax: 
query II rowsort label-7895
SELECT ALL - 99 AS col1, COUNT( + ( + col2 ) ) col2 FROM tab0
----
-99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7895
SELECT ALL - 99 AS col1, COUNT ( + ( + col2 ) ) col2 FROM tab0
----
-99
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, 67 * - - col0 col0 FROM tab0
----
-15
1005
-87
5829
-97
6499

query I rowsort
SELECT col0 * + 96 FROM tab0
----
1440
8352
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT SUM( DISTINCT - ( - ( + col2 ) ) ) * - - COUNT( ALL ( - col1 ) ) AS col1 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-7898
SELECT SUM ( DISTINCT - ( - ( + col2 ) ) ) * - - COUNT ( ALL ( - col1 ) ) AS col1 FROM tab0
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7899
SELECT DISTINCT + 32, 67 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-7899
SELECT DISTINCT + 32, 67 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
32
NULL

query II rowsort
SELECT + col0 AS col2, + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 48 * 89 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 29 * - - col1 AS col0 FROM tab2 AS cor0
----
142912
145725
68034

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col2 * - 28 col0 FROM tab1 AS cor0
----
-59
-1652
-68
-1904
-96
-2688

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT DISTINCT 51 DIV + 81 * + ( + col2 ) + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT 51 / + 81 * + ( + col2 ) + + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + - 85 AS col1 FROM tab1 AS cor0 WHERE NOT + 54 IS NULL
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT + COUNT( 66 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7906
SELECT + COUNT ( 66 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + ( - - col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - col2 * + - col1 * - col1 FROM tab1
----
-1475
-150212
-18816

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 92 * + 20 col1, col2 + - col2 FROM tab0
----
-1840
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7911
SELECT - ( + + 44 ), - col0 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-44
NULL
-44
NULL
-44
NULL

skipif mysql # not compatible
query II rowsort label-7911
SELECT - ( + + 44 ), - col0 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-44
NULL
-44
NULL
-44
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT 10 = + + col2 / col1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - 85, 31 + + col1 )
----

query I rowsort
SELECT ALL - 3 FROM tab1 WHERE ( NOT col1 BETWEEN NULL AND + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7915
SELECT MAX( DISTINCT - - col2 ) AS col1, + 99 AS col1 FROM tab0
----
99
99

skipif mysql # not compatible
query II rowsort label-7915
SELECT MAX ( DISTINCT - - col2 ) AS col1, + 99 AS col1 FROM tab0
----
99
99

query I rowsort
SELECT DISTINCT + ( + 98 ) AS col0 FROM tab1
----
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 60 IS NOT NULL
----

query I rowsort
SELECT - ( - col1 ) + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 - - col0 IS NULL
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7919
SELECT DISTINCT + ( - col1 ) AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-7919
SELECT DISTINCT + ( - col1 ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - 56 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT COUNT( * ) + 28 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
37

skipif mysql # not compatible
query I rowsort label-7921
SELECT COUNT ( * ) + 28 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT - COUNT( + + col1 ) * COUNT( * ) AS col0 FROM tab2 WHERE NULL < col2
----
0

skipif mysql # not compatible
query I rowsort label-7922
SELECT - COUNT ( + + col1 ) * COUNT ( * ) AS col0 FROM tab2 WHERE NULL < col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7923
SELECT DISTINCT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + - 57, + 73 col1 FROM tab0
----
NULL
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7923
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 57, + 73 col1 FROM tab0
----
NULL
73

query II rowsort
SELECT DISTINCT + col2, - ( - + col0 ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col0 col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7926
SELECT - MAX( ALL - + ( - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7927
SELECT * FROM tab1 AS cor0 WHERE + ( 92 ) * CAST( NULL AS SIGNED ) > col2
----

skipif mysql # not compatible
query III rowsort label-7927
SELECT * FROM tab1 AS cor0 WHERE + ( 92 ) * CAST ( NULL AS INTEGER ) > col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 <> - 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL COUNT( - - 31 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL COUNT ( - - 31 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 - col1 * - + 23 + 23 + col2 * + col2 FROM tab1
----
3624
5775
9575

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT + MAX( DISTINCT + 50 ) + + + 86 * + - COUNT( col2 ) FROM tab0
----
-208

skipif mysql # not compatible
query I rowsort label-7931
SELECT + MAX ( DISTINCT + 50 ) + + + 86 * + - COUNT ( col2 ) FROM tab0
----
-208

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT col2 >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7933
SELECT * FROM tab2 WHERE 92 + 29 IN ( 74, CAST( NULL AS SIGNED ) * 90 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-7933
SELECT * FROM tab2 WHERE 92 + 29 IN ( 74, CAST ( NULL AS INTEGER ) * 90 * - col0 )
----

query I rowsort
SELECT DISTINCT 54 + + + col2 AS col0 FROM tab0
----
101
153
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, col0 / - 0 / + col1 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7936
SELECT + 67 DIV col0 * + 79 DIV + col1, CAST( 85 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
85
0
85
5
85

skipif mysql # not compatible
query II rowsort label-7936
SELECT + 67 / col0 * + 79 / + col1, CAST ( 85 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
85
0
85
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT + COUNT( ( - col0 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7937
SELECT + COUNT ( ( - col0 ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL - 89 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - + SUM( - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7939
SELECT - + SUM ( - col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT + - 64 AS col0 FROM tab2 AS cor0
----
-64
-64
-64

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7942
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 66 + 1 * + col1 + ( + 72 ) * + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7942
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 66 + 1 * + col1 + ( + 72 ) * + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT + COUNT( DISTINCT - col0 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7943
SELECT + COUNT ( DISTINCT - col0 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT 50 * col1 * + col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-1253750
-14541800
-3427200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT - CAST( - 51 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
-2397
-5049
-510

skipif mysql # not compatible
query I rowsort label-7945
SELECT - CAST ( - 51 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
-2397
-5049
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT - - MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7946
SELECT - - MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT + col1 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 75 * + + col0 * + col0 AND + col1
----

query I rowsort
SELECT ALL - 26 * - - col2 AS col2 FROM tab1
----
-1534
-1768
-2496

query I rowsort
SELECT DISTINCT col2 * - + col1 * - col0 AS col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7951
SELECT ALL SUM( ALL + - col0 ) DIV COUNT( - + 68 ) * + SUM( col0 ) FROM tab1
----
-17025

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL SUM ( ALL + - col0 ) / COUNT ( - + 68 ) * + SUM ( col0 ) FROM tab1
----
-17025

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT - col1 DIV + ( + 56 ) * + col0 * - col1 FROM tab1
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7953
SELECT - CAST( NULL AS SIGNED ), + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-7953
SELECT - CAST ( NULL AS INTEGER ), + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT ALL col0 AS col2, col0 * - 50 AS col2 FROM tab2
----
46
-2300
64
-3200
75
-3750

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= + - col0 - col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 20 = NULL
----

query I rowsort
SELECT ALL - 7 + - col0 + + col0 * + + col2 * - col1 FROM tab2 AS cor0
----
-197191
-291532
-54011

query I rowsort
SELECT DISTINCT - 17 - + col1 AS col1 FROM tab0 AS cor0
----
-18
-38
-98

query I rowsort
SELECT col0 * 80 * + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT + col0 + - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = - - col0 + - - 29
----

query I rowsort
SELECT ( 72 ) FROM tab0
----
72
72
72

query I rowsort
SELECT ALL - 98 - - col2 AS col1 FROM tab1
----
-2
-30
-39

query II rowsort
SELECT DISTINCT col2, - col0 + - col1 FROM tab1
----
59
-90
68
-138
96
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT COUNT( ALL - 41 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7965
SELECT COUNT ( ALL - 41 ) FROM tab0
----
3

query I rowsort
SELECT ALL ( - + 94 ) FROM tab2
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT 12 - - ( + 52 ) * + COUNT( * ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-7967
SELECT 12 - - ( + 52 ) * + COUNT ( * ) FROM tab0
----
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - 2 ) * col0 + col0 - col0 + + col1 col0 FROM tab0
----
-153
-193
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT COUNT( + 3 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT COUNT ( + 3 ) FROM tab2
----
3

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE ( NOT ( NOT NULL <> ( NULL ) ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 21 BETWEEN - - col1 + + + col1 AND NULL
----
51
14
96
91
47
68

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

query I rowsort
SELECT ALL 11 - 86 AS col0 FROM tab1
----
-75
-75
-75

query I rowsort
SELECT - col1 - col2 * + col0 AS col0 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + COUNT( DISTINCT + 43 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7975
SELECT + COUNT ( DISTINCT + 43 ) FROM tab2
----
1

query I rowsort
SELECT ALL 33 + 73 * col2 FROM tab1
----
4340
4997
7041

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7977
SELECT ALL - col1 + - CAST( NULL AS DECIMAL ) * col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7978
SELECT ALL COUNT( * ) DIV 38 + 51 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL COUNT ( * ) / 38 + 51 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT ALL col0 FROM tab0 WHERE NOT ( + ( ( + col1 ) ) / CAST( NULL AS SIGNED ) + + 81 ) > ( CAST( NULL AS SIGNED ) ) + + col2
----

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL col0 FROM tab0 WHERE NOT ( + ( ( + col1 ) ) / CAST ( NULL AS INTEGER ) + + 81 ) > ( CAST ( NULL AS INTEGER ) ) + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7980
SELECT + col2 + CAST( + col2 + 37 DIV 78 AS SIGNED ) * + ( ( 18 ) DIV + 84 ) col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7980
SELECT + col2 + CAST ( + col2 + 37 / 78 AS INTEGER ) * + ( ( 18 ) / + 84 ) col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL 93 * col0 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT ALL + col0 * - 8 AS col0 FROM tab0
----
-120
-696
-776

query III rowsort
SELECT * FROM tab1 WHERE 41 <= ( + ( - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7984
SELECT CAST( NULL AS SIGNED ) * CAST( - 29 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - SUM( - 49 ) col1 FROM tab1 WHERE ( 79 * col0 ) BETWEEN - col0 AND - col1 + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7985
SELECT - SUM ( - 49 ) col1 FROM tab1 WHERE ( 79 * col0 ) BETWEEN - col0 AND - col1 + col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT DISTINCT + 49 - 22 * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT + 49 - 22 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 / col0 < 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT MIN( + col0 ) + + COUNT( * ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7989
SELECT MIN ( + col0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7990
SELECT CAST( NULL AS SIGNED ) + ( ( + 55 ) ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT col0 + + 41 FROM tab2 cor0
----
105
116
87

query I rowsort
SELECT 16 * + col2 + - col0 FROM tab1 AS cor0
----
1485
859
997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - AVG ( ALL col2 ) FROM tab0 WHERE NOT - 18 / 98 NOT BETWEEN ( NULL ) AND + col2 * col2 + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 80 col2 FROM tab2
----
103
120
138

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE 65 + + ( col1 ) * col1 >= col1
----
-23
-40
-58

query I rowsort
SELECT col2 * - col0 - + col2 AS col1 FROM tab2 AS cor0
----
-1081
-2600
-4408

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7998
SELECT - COUNT( * ) - CAST( NULL AS DECIMAL ) / ( 92 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT - COUNT ( * ) - CAST ( NULL AS REAL ) / ( 92 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( - col0 ) - + col0 AS col0 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT - 83 - + col1 AS col0 FROM tab0 AS cor0
----
-104
-164
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT DISTINCT - 35 + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT - COUNT( * ) + 29 col0 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8003
SELECT - COUNT ( * ) + 29 col0 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT - ( COUNT( * ) ) * 97 + + 59 FROM tab0 cor0
----
-232

skipif mysql # not compatible
query I rowsort label-8004
SELECT - ( COUNT ( * ) ) * 97 + + 59 FROM tab0 cor0
----
-232

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 90 + col1 IS NOT NULL
----

query I rowsort
SELECT ( + col1 ) + + 4 FROM tab1
----
18
51
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8008
SELECT DISTINCT * FROM tab1 WHERE + col0 * CAST( + col1 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-8008
SELECT DISTINCT * FROM tab1 WHERE + col0 * CAST ( + col1 AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT col1 AS col2 FROM tab2 WHERE NOT CAST( + 10 AS SIGNED ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-8009
SELECT col1 AS col2 FROM tab2 WHERE NOT CAST ( + 10 AS INTEGER ) NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 45 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT ALL CAST( + col1 AS SIGNED ) * + col0 AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL CAST ( + col1 AS INTEGER ) * + col0 AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8012
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT DISTINCT 80 * - + COUNT( - 68 ) * - 38 AS col1 FROM tab2
----
9120

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT 80 * - + COUNT ( - 68 ) * - 38 AS col1 FROM tab2
----
9120

query I rowsort
SELECT ALL ( col0 ) * col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + SUM( + - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8015
SELECT + SUM ( + - col2 ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT + ( - COUNT( DISTINCT - 88 ) ) col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8016
SELECT + ( - COUNT ( DISTINCT - 88 ) ) col0 FROM tab1 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT + CAST( 47 AS SIGNED ) * + 73 FROM tab0 AS cor0
----
3431
3431
3431

skipif mysql # not compatible
query I rowsort label-8017
SELECT + CAST ( 47 AS INTEGER ) * + 73 FROM tab0 AS cor0
----
3431
3431
3431

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT + COUNT( * ) * MIN( ALL - col1 ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8018
SELECT + COUNT ( * ) * MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT col1 DIV col1 * col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8019
SELECT col1 / col1 * col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
30

query I rowsort
SELECT DISTINCT + + 8 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
8

query I rowsort
SELECT ALL + ( 4 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT DISTINCT - COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT - COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT COUNT( ALL 84 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8024
SELECT COUNT ( ALL 84 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT ALL + - col0 + - - col1 - + 49 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + + col2 * + col2 + - 60 + col2 FROM tab2 cor0
----
1580
3362
492

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

query I rowsort
SELECT + 59 + + - ( - + col1 ) FROM tab1 AS cor0
----
106
64
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 29 col2 FROM tab0 AS cor0
----
-2523
-2813
-435

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8030
SELECT col2 + col0 + + 20 - + CAST( NULL AS DECIMAL ) / - 1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT col2 + col0 + + 20 - + CAST ( NULL AS REAL ) / - 1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - - 7 + - col2 AS col2 FROM tab0 AS cor0
----
282
594
60

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL ) OR 45 IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + 63 * + 97 AS col1 FROM tab2 cor0
----
6111

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( ( + col1 ) ) + col1 NOT IN ( + 20 / col0 + col1 / - ( - col1 ) )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE ( col0 ) / 66 IS NOT NULL
----
14
47
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT - CAST( - ( - col0 ) AS SIGNED ) * ( + 72 ) * 3 AS col0 FROM tab0
----
-18792
-20952
-3240

skipif mysql # not compatible
query I rowsort label-8039
SELECT - CAST ( - ( - col0 ) AS INTEGER ) * ( + 72 ) * 3 AS col0 FROM tab0
----
-18792
-20952
-3240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8040
SELECT ALL - col1 * - CAST( NULL AS DECIMAL ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT ALL + + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT - - 13 * - ( MAX( - - col2 ) ) FROM tab1 AS cor0
----
-1248

skipif mysql # not compatible
query I rowsort label-8042
SELECT - - 13 * - ( MAX ( - - col2 ) ) FROM tab1 AS cor0
----
-1248

query I rowsort
SELECT ALL 4 FROM tab1 AS cor0 WHERE NULL NOT IN ( 9 )
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 39 col2 FROM tab2
----
106
116
90

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + AVG ( - + col2 ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL - COUNT( * ) + + COUNT( * ) * + 84 + SUM( DISTINCT - ( 51 ) ) FROM tab1 cor0
----
198

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * + 84 + SUM ( DISTINCT - ( 51 ) ) FROM tab1 cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT col2 + col2 FROM tab1 AS cor0 WHERE ( + ( + + col1 ) + - + CAST( NULL AS SIGNED ) ) IS NULL
----
118
136
192

skipif mysql # not compatible
query I rowsort label-8049
SELECT col2 + col2 FROM tab1 AS cor0 WHERE ( + ( + + col1 ) + - + CAST ( NULL AS INTEGER ) ) IS NULL
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8050
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 79 AS col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + col2 + 88 AS col2 FROM tab0 AS cor0
----
135
187
98

query I rowsort
SELECT ALL col2 - - 72 AS col2 FROM tab2 cor0
----
112
130
95

query I rowsort
SELECT DISTINCT - + 81 + col0 AS col2 FROM tab0 cor0
----
-66
16
6

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT DISTINCT col1 AS col2, + col2 * + ( + col1 ) * 85 AS col0 FROM tab2
----
51
99705
67
330310
77
261800

query I rowsort
SELECT col2 * 20 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT 12 * + col0 * - 25 FROM tab2
----
-13800
-19200
-22500

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8059
SELECT col2 * - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + + col2 - - + col0 AS col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT DISTINCT - - col0 AS col2, col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL + MIN( DISTINCT 18 ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL + MIN ( DISTINCT 18 ) AS col2 FROM tab1
----
18

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 68 IS NULL
----

query I rowsort
SELECT 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8066
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - - col0
----

skipif mysql # not compatible
query III rowsort label-8066
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT DISTINCT + col1 + CAST( + + col0 AS SIGNED ) + - - col2 FROM tab0 AS cor0
----
118
143
197

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT + col1 + CAST ( + + col0 AS INTEGER ) + - - col2 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT + + 20 - - COUNT( DISTINCT + - col1 ) FROM tab2 AS cor0 WHERE - col1 + - col1 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-8068
SELECT + + 20 - - COUNT ( DISTINCT + - col1 ) FROM tab2 AS cor0 WHERE - col1 + - col1 IS NOT NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL COUNT( ALL + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT - 29 * COUNT( * ) FROM tab2 cor0 WHERE ( col2 * + col2 <= + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8070
SELECT - 29 * COUNT ( * ) FROM tab2 cor0 WHERE ( col2 * + col2 <= + col0 )
----
0

query I rowsort
SELECT - + 10 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-8072
SELECT DISTINCT 98 col0, col2 DIV - col1 FROM tab2
----
98
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8072
SELECT DISTINCT 98 col0, col2 / - col1 FROM tab2
----
98
0

query II rowsort
SELECT - 9, - col0 + 86 + col1 AS col0 FROM tab1
----
-9
42
-9
49
-9
6

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT col1 >= 54
----
-1
-21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 1 AND + + col0 * + col0 + - col1 + + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8076
SELECT + - COUNT( * ), - COUNT( * ) FROM tab0 WHERE 73 BETWEEN - 44 + - col1 AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8076
SELECT + - COUNT ( * ), - COUNT ( * ) FROM tab0 WHERE 73 BETWEEN - 44 + - col1 AND NULL
----
0
0

query I rowsort
SELECT - col2 + + 82 FROM tab0 WHERE + ( ( + col1 ) ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - col1 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 38 * - - 56 + 32 + 67 FROM tab0 AS cor0
----
2227
2227
2227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8080
SELECT - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col0 + + + 65 FROM tab2 AS cor0
----
111
129
140

query I rowsort
SELECT DISTINCT col0 * 78 AS col0 FROM tab0 WHERE NOT + col0 + col2 + col0 <> ( + - col2 * - col0 + - + 95 + - col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT - + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8083
SELECT - + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT ALL + col0 * - col2 - + col0 DIV - col1 col0 FROM tab2 AS cor0
----
-1058
-2560
-4349

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8084
SELECT ALL + col0 * - col2 - + col0 / - col1 col0 FROM tab2 AS cor0
----
-1058
-2560
-4349

query I rowsort
SELECT + - col0 * + col2 * + col2 * - + col0 + - 80 AS col2 FROM tab1 AS cor0
----
23970736
25150145
38291264

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT 57 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
2
57

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 <> col0 OR NOT ( ( ( + col0 ) ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT - MAX( - ( + col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8088
SELECT - MAX ( - ( + col1 ) ) FROM tab1 AS cor0
----
5

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 97 < col0
----

query I rowsort
SELECT ALL 14 * ( - - col1 ) AS col1 FROM tab1
----
196
658
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT DISTINCT 69 DIV + 12 AS col2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT 69 / + 12 AS col2 FROM tab2
----
5

query I rowsort
SELECT 81 * 32 FROM tab2
----
2592
2592
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT ALL + col0 DIV + col1 AS col1 FROM tab2
----
0
0
1

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 <> - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT + - MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8096
SELECT + - MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8097
SELECT + 53 DIV + + COUNT( * ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8097
SELECT + 53 / + + COUNT ( * ) FROM tab1 AS cor0
----
17

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT DISTINCT - 94 DIV COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT - 94 / COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT - 96 + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-87

skipif mysql # not compatible
query I rowsort label-8100
SELECT - 96 + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-87

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

query I rowsort
SELECT col2 * - 44 AS col1 FROM tab2
----
-1012
-1760
-2552

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - + 41 = + col2
----

query I rowsort
SELECT - 3 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
167
260
320

query I rowsort
SELECT + - 68 * - col1 + - - ( + ( + col2 ) ) FROM tab2 AS cor0
----
3491
4614
5276

query I rowsort
SELECT + ( 41 ) + + col1 * - - 81 FROM tab2 AS cor0
----
4172
5468
6278

query I rowsort
SELECT DISTINCT ( + 17 ) FROM tab0 AS cor0 WHERE NOT 61 BETWEEN NULL AND + - col2
----
17

query I rowsort
SELECT DISTINCT + 71 + - 94 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-23

query I rowsort
SELECT - + ( + ( - + col0 ) ) + + col1 AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 98 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ( MAX( DISTINCT ( + ( - - col2 ) ) ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8112
SELECT ( MAX ( DISTINCT ( + ( - - col2 ) ) ) ) FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT ALL + - col1 AS col2 FROM tab1 WHERE NOT 35 < - col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL + - col1 AS col2 FROM tab1 WHERE NOT 35 < - col2 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 * + + ( 85 ) AS col0 FROM tab1
----
-4335
-7225
-7735

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT + 25 DIV + col0 col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8115
SELECT + 25 / + col0 col0 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 87 + + + col2 FROM tab0
----
134
186
97

query I rowsort
SELECT DISTINCT + col1 + + col0 + + col0 + + + col0 * - 77 AS col1 FROM tab1
----
-3811
-6370
-6778

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT MIN( DISTINCT - 70 ) * + COUNT( * ) + + + 56 FROM tab0 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-8119
SELECT MIN ( DISTINCT - 70 ) * + COUNT ( * ) + + + 56 FROM tab0 AS cor0
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-8120
SELECT + + col2 DIV + - col0 - - col2 + col1 col2 FROM tab0 AS cor0
----
125
31
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8120
SELECT + + col2 / + - col0 - - col2 + col1 col2 FROM tab0 AS cor0
----
125
31
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL - COUNT( * ) - - MAX( - - 68 ) AS col0 FROM tab1 cor0
----
65

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - COUNT ( * ) - - MAX ( - - 68 ) AS col0 FROM tab1 cor0
----
65

query I rowsort
SELECT ALL + + col0 - + col2 * col2 AS col2 FROM tab0 AS cor0
----
-13
-2194
-9704

query III rowsort
SELECT * FROM tab0 WHERE NOT + 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - ( - + col0 ) FROM tab0 cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 4 AS col1, - 93 col0 FROM tab1 cor0
----
-4
-93
-4
-93
-4
-93

query II rowsort
SELECT DISTINCT + 61 AS col1, - 31 FROM tab2 AS cor0
----
61
-31

query II rowsort
SELECT col2 AS col1, - 33 FROM tab1 AS cor0
----
59
-33
68
-33
96
-33

query I rowsort
SELECT 75 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT + 12 + col0 * col2 * col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8129
SELECT + 12 + col0 * col2 * col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT + MIN( ALL - + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8132
SELECT + MIN ( ALL - + col0 ) FROM tab2
----
-75

query II rowsort
SELECT ALL col2, 24 AS col0 FROM tab2 WHERE NOT - - col2 <> - ( - col0 ) + col0
----

query I rowsort
SELECT DISTINCT ( + - ( - col0 ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col2 * + 70 * + 12 FROM tab0 AS cor0
----
-39480
-83160
-8400

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT ALL + col1 DIV + + 61 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL + col1 / + + 61 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 32 + + col0 FROM tab1
----
117
123
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + COUNT( * ) + - 12 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8139
SELECT + COUNT ( * ) + - 12 FROM tab0
----
-9

query II rowsort
SELECT + ( col1 ) + - 75 AS col1, + col1 AS col2 FROM tab0
----
-54
21
-74
1
6
81

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL - 0 + 56 + - COUNT( * ) * - - 76 + - 50 AS col0 FROM tab2 cor0
----
-222

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL - 0 + 56 + - COUNT ( * ) * - - 76 + - 50 AS col0 FROM tab2 cor0
----
-222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8143
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8143
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8144
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN col1 AND - + ( + + col0 ) - CAST( + col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8144
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN col1 AND - + ( + + col0 ) - CAST ( + col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + ( - 41 ) * col1 AS col0 FROM tab1 AS cor0
----
1927
205
574

query I rowsort
SELECT ALL 92 * + col0 AS col1 FROM tab0 AS cor0
----
1380
8004
8924

query I rowsort
SELECT DISTINCT - col2 + 94 FROM tab1 AS cor0
----
-2
26
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8148
SELECT DISTINCT + 26 DIV - COUNT( * ) col0 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8148
SELECT DISTINCT + 26 / - COUNT ( * ) col0 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + 69 NOT BETWEEN + 51 AND NULL
----

query I rowsort
SELECT ALL - + 47 - + col1 FROM tab0 AS cor0
----
-128
-48
-68

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

query II rowsort
SELECT DISTINCT col0 AS col1, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT + + 81 AS col2 FROM tab2 WHERE NULL IS NULL
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT DISTINCT ( - COUNT( * ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8155
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( + col2 / col1, col2 * + - col1, CAST( col2 AS SIGNED ), - + ( + - CAST( NULL AS DECIMAL ) ) * - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8155
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( + col2 / col1, col2 * + - col1, CAST ( col2 AS INTEGER ), - + ( + - CAST ( NULL AS REAL ) ) * - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 20 * 47 + + col0 + + 5, + col1 FROM tab0 cor0
----
-838
1
-848
21
-920
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - COUNT( DISTINCT - ( - col2 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8157
SELECT - COUNT ( DISTINCT - ( - col2 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( - - 17 ) FROM tab0
----
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 90 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT + CAST( NULL AS SIGNED ) * - 41 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8161
SELECT + - col1 DIV - - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT - MAX( ALL 24 ) + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 * ( + col1 ) <= - col0 * + col0
----
-21

skipif mysql # not compatible
query I rowsort label-8162
SELECT - MAX ( ALL 24 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 * ( + col1 ) <= - col0 * + col0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col0 < + + col2 + - ( - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * - + 48 FROM tab1
----
2832
3264
4608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, + col2 col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query II rowsort label-8166
SELECT DISTINCT + - col0 AS col2, + ( + + 67 ) DIV + col0 FROM tab0 AS cor0
----
-15
4
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-8166
SELECT DISTINCT + - col0 AS col2, + ( + + 67 ) / + col0 FROM tab0 AS cor0
----
-15
4
-87
0
-97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 + col0 + 12 + - - 67 - 73 col1 FROM tab2 AS cor0
----
-10
19
8

query I rowsort
SELECT - col2 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + col0 AND 28 OR - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT DISTINCT - col2 + + col2 * 74 + - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

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

query II rowsort
SELECT DISTINCT col2, 93 AS col2 FROM tab2 AS cor0
----
23
93
40
93
58
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT - col1 * + col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-91

query I rowsort
SELECT col1 + + 55 FROM tab0
----
136
56
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8174
SELECT CAST( NULL AS DECIMAL ) + 94 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT CAST ( NULL AS REAL ) + 94 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 12 + + col2 AS col0 FROM tab2
----
35
52
70

query I rowsort
SELECT + col2 + ( - + col1 ) FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT - 83 + 35 * + 28 FROM tab1 AS cor0
----
897
897
897

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN + 48 AND 23 + ( col0 ) - + 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT DISTINCT ( - - col1 ) - - col1 - CAST( NULL AS SIGNED ) * + 78 * + 23 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ( - 98 ) * col2 * 1 + + - col0 FROM tab0 WHERE NOT 14 = - col1 + + col0 + + 76 * 26 OR - - col2 IS NULL
----
-1067
-4621
-9799

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8181
SELECT col0 col2, 61 * CAST( + - 83 AS SIGNED ) * 78 FROM tab1
----
51
-394914
85
-394914
91
-394914

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8181
SELECT col0 col2, 61 * CAST ( + - 83 AS INTEGER ) * 78 FROM tab1
----
51
-394914
85
-394914
91
-394914

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT MAX( + 84 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT MAX ( + 84 ) FROM tab2
----
84

query I rowsort
SELECT + ( + 26 ) FROM tab2
----
26
26
26

query I rowsort
SELECT col2 - col0 + + 98 AS col1 FROM tab1
----
143
72
75

query I rowsort
SELECT - 63 * 82 - - - col2 AS col0 FROM tab0
----
-5176
-5213
-5265

onlyif mysql # DIV for integer division: 
query II rowsort label-8186
SELECT col0 DIV 47 - - 7 col1, col0 + + col0 FROM tab1
----
8
102
8
170
8
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8186
SELECT col0 / 47 - - 7 col1, col0 + + col0 FROM tab1
----
8
102
8
170
8
182

query I rowsort
SELECT - col2 - - + 18 FROM tab0
----
-29
-81
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT CAST( NULL AS SIGNED ) - - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT CAST ( NULL AS INTEGER ) - - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 40 ) AS col0 FROM tab0
----
-40

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * - 7 + - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 79 + - 80 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT + COUNT( * ) - - + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8192
SELECT + COUNT ( * ) - - + COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT - 53 - - 40 AS col1 FROM tab2 AS cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT DISTINCT CAST( + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8194
SELECT DISTINCT CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8195
SELECT - 31 AS col2, + MAX( DISTINCT - + col0 ) * 25 + + COUNT( - + col2 ) * - - COUNT( * ) FROM tab2
----
-31
-1141

skipif mysql # not compatible
query II rowsort label-8195
SELECT - 31 AS col2, + MAX ( DISTINCT - + col0 ) * 25 + + COUNT ( - + col2 ) * - - COUNT ( * ) FROM tab2
----
-31
-1141

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + MAX( ALL + - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8196
SELECT + MAX ( ALL + - col1 ) AS col0 FROM tab1
----
-5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT - 38 DIV + - col1 - - 85 AS col2 FROM tab1 AS cor0
----
85
87
92

skipif mysql # not compatible
query I rowsort label-8198
SELECT - 38 / + - col1 - - 85 AS col2 FROM tab1 AS cor0
----
85
87
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 * col1 col2, - col2 FROM tab0 AS cor0
----
1785
-10
6885
-47
85
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col2 col0, col1 AS col0 FROM tab0
----
210
21
3807
81
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8201
SELECT MIN( + col2 ) AS col0, - COUNT( * ) FROM tab2
----
23
-3

skipif mysql # not compatible
query II rowsort label-8201
SELECT MIN ( + col2 ) AS col0, - COUNT ( * ) FROM tab2
----
23
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 91 + + col1 + col0 * - 36 * col1 FROM tab2 AS cor0
----
-177422
-180924
-84496

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT + - col0 + - - 74 DIV - - col0 + - + col0 * + 95 AS col0 FROM tab1 AS cor0
----
-4895
-8160
-8736

skipif mysql # not compatible
query I rowsort label-8204
SELECT + - col0 + - - 74 / - - col0 + - + col0 * + 95 AS col0 FROM tab1 AS cor0
----
-4895
-8160
-8736

query I rowsort
SELECT + col1 * + + col1 * - ( + + col0 ) AS col2 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8206
SELECT DISTINCT col1, - CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8206
SELECT DISTINCT col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ALL - col0 * 3 AS col2 FROM tab1
----
-153
-255
-273

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + 32 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT - 27 + + COUNT( * ) FROM tab1 AS cor0 WHERE - 42 NOT BETWEEN NULL AND NULL
----
-27

skipif mysql # not compatible
query I rowsort label-8209
SELECT - 27 + + COUNT ( * ) FROM tab1 AS cor0 WHERE - 42 NOT BETWEEN NULL AND NULL
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL 77 - COUNT( * ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL 77 - COUNT ( * ) FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT COUNT( * ) - - - MAX( ALL - 23 ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8211
SELECT COUNT ( * ) - - - MAX ( ALL - 23 ) AS col2 FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL + - 86 + + 6 FROM tab1 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - col2 * - + col2 * - col1 + - col2 FROM tab1 AS cor0
----
-129120
-17464
-217396

query I rowsort
SELECT ALL 32 - + 97 AS col2 FROM tab2 AS cor0
----
-65
-65
-65

query II rowsort
SELECT col1 + - col0, + col0 AS col1 FROM tab1
----
-37
51
-44
91
-80
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT DISTINCT 62 - - COUNT( ALL - + col2 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT 62 - - COUNT ( ALL - + col2 ) FROM tab1
----
65

query II rowsort
SELECT DISTINCT + col0 - - col0 AS col1, - 27 AS col0 FROM tab1
----
102
-27
170
-27
182
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT col1 DIV + col1 + - col0 + - 72 FROM tab2
----
-117
-135
-146

skipif mysql # not compatible
query I rowsort label-8218
SELECT col1 / + col1 + - col0 + - 72 FROM tab2
----
-117
-135
-146

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col1 * + 81 AS col0, + col2 FROM tab2
----
4131
23
5427
58
6237
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT DISTINCT + 51 DIV - 32 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT + 51 / - 32 FROM tab0 AS cor0
----
-1

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

query II rowsort
SELECT DISTINCT - 2, + 34 AS col1 FROM tab2
----
-2
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT COUNT( * ) DIV + 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8224
SELECT COUNT ( * ) / + 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT 17 FROM tab0 WHERE NOT + 62 BETWEEN 0 AND - col0
----
17
17
17

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab1 AS cor0 WHERE NOT col1 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL - SUM( ALL ( - col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL - SUM ( ALL ( - col2 ) ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT + 12 * 67 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT + COUNT( * ) * + + COUNT( * ) * - COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8229
SELECT + COUNT ( * ) * + + COUNT ( * ) * - COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT 45 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8230
SELECT 45 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
48

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 AS col0 FROM tab2 cor0 WHERE NOT NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT ( NOT NULL >= + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8232
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NOT NULL >= + + col2 )
----
0

query II rowsort
SELECT 24, col1 FROM tab1
----
24
14
24
47
24
5

query II rowsort
SELECT ALL + 81 AS col1, col0 AS col0 FROM tab1
----
81
51
81
85
81
91

query I rowsort
SELECT DISTINCT col2 + col2 * + col2 FROM tab0
----
110
2256
9900

query II rowsort
SELECT col1, - col0 + - + col0 FROM tab1
----
14
-102
47
-182
5
-170

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8238
SELECT col1 AS col2, - col0 + + ( 84 ) + - col0 * 34 * - - col1 * + + CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8238
SELECT col1 AS col2, - col0 + + ( 84 ) + - col0 * 34 * - - col1 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col0 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8240
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + 15 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8242
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - col2 col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8242
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - col2 col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL 86 - MIN( ALL + - col2 ) col1 FROM tab2
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8243
SELECT ALL 86 - MIN ( ALL + - col2 ) col1 FROM tab2
----
144

query I rowsort
SELECT ALL 83 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8245
SELECT * FROM tab0 WHERE + CAST( - 91 AS SIGNED ) + + - 49 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8245
SELECT * FROM tab0 WHERE + CAST ( - 91 AS INTEGER ) + + - 49 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - col0 + - - col0 col0 FROM tab1
----
4368
510
765

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8247
SELECT * FROM tab1 WHERE NULL BETWEEN - 24 - - CAST( NULL AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-8247
SELECT * FROM tab1 WHERE NULL BETWEEN - 24 - - CAST ( NULL AS INTEGER ) AND + col2
----

query I rowsort
SELECT DISTINCT + col0 * + col1 * - col0 * 95 + + col0 AS col1 FROM tab0 AS cor0
----
-15100068
-1731360
-893758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT ALL + col0 * + col2 - + col2 * + 85 * - col2 + - CAST( - col2 AS SIGNED ) * + col0 AS col2 FROM tab1 cor0
----
305915
405416
793152

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + col0 * + col2 - + col2 * + 85 * - col2 + - CAST ( - col2 AS INTEGER ) * + col0 AS col2 FROM tab1 cor0
----
305915
405416
793152

query I rowsort
SELECT - col0 + col0 FROM tab1 AS cor0 WHERE + 2 IS NULL
----

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab1 AS cor0 WHERE + 37 / - + col1 * - ( + col2 ) + + col1 + col0 + + col1 * - - col1 * - 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT + MAX( - + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8252
SELECT + MAX ( - + col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT ALL col1 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL COUNT( col1 ) - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL COUNT ( col1 ) - - COUNT ( * ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-8255
SELECT DISTINCT col2 DIV + 86 - - col1 AS col1, col0 FROM tab2
----
51
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-8255
SELECT DISTINCT col2 / + 86 - - col1 AS col1, col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8256
SELECT DISTINCT MIN( ALL + col0 ) * + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT MIN ( ALL + col0 ) * + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
153

query I rowsort
SELECT DISTINCT + col2 * - col0 * + + col1 FROM tab1
----
-25075
-290836
-68544

query II rowsort
SELECT ALL + 52 AS col0, col0 FROM tab1
----
52
51
52
85
52
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT COUNT( * ) * COUNT( + 20 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8259
SELECT COUNT ( * ) * COUNT ( + 20 ) FROM tab1
----
9

query I rowsort
SELECT + 53 * 5 FROM tab1
----
265
265
265

query I rowsort
SELECT ALL + 95 * + col1 AS col0 FROM tab0
----
1995
7695
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8262
SELECT 54 DIV - - COUNT( * ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-8262
SELECT 54 / - - COUNT ( * ) AS col2 FROM tab0
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8264
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8265
SELECT DISTINCT CAST( - col0 AS SIGNED ) * col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * col2 FROM tab2
----
-1058
-2560
-4350

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT DISTINCT - 16 DIV - + col2 col2 FROM tab0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8267
SELECT DISTINCT - 16 / - + col2 col2 FROM tab0
----
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 37 IS NULL
----

query II rowsort
SELECT - + col2 * 51, col2 FROM tab2 AS cor0
----
-1173
23
-2040
40
-2958
58

query I rowsort
SELECT col1 * - 98 FROM tab1 cor0
----
-1372
-4606
-490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT + CAST( NULL AS SIGNED ) / - 1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 33 * + col0 + + + 51 FROM tab2 AS cor0
----
1569
2163
2526

query I rowsort
SELECT DISTINCT col1 + + 25 FROM tab2
----
102
76
92

onlyif mysql # DIV for integer division: 
query II rowsort label-8274
SELECT ALL - 9 DIV + ( - + col2 ) + col0 * + col2 * + - col1 - + 87 * + - col1 AS col0, 92 AS col0 FROM tab1
----
-24640
92
-286747
92
-67326
92

skipif mysql # not compatible
query II rowsort label-8274
SELECT ALL - 9 / + ( - + col2 ) + col0 * + col2 * + - col1 - + 87 * + - col1 AS col0, 92 AS col0 FROM tab1
----
-24640
92
-286747
92
-67326
92

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8276
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + + col0 + + + CAST( + col1 AS SIGNED ), col0 * + ( + - col2 ), + + col0 + - 0, col0 )
----

skipif mysql # not compatible
query III rowsort label-8276
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + + col0 + + + CAST ( + col1 AS INTEGER ), col0 * + ( + - col2 ), + + col0 + - 0, col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < - 18
----

query I rowsort
SELECT DISTINCT + col0 * - - col1 * + - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 69 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-69

query I rowsort
SELECT - - 26 * - 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cbd873c0c665268ab6e70a2105125d5e

query III rowsort
SELECT * FROM tab0 WHERE NULL < - 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab1 WHERE - col0 * + + 55 IS NOT NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT - - col2 - + - col2 AS col0, col0 FROM tab0 cor0
----
198
97
20
87
94
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT - + MAX( DISTINCT - col0 ) + 60 AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT - + MAX ( DISTINCT - col0 ) + 60 AS col1 FROM tab0 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT ALL - col0 - - col1 DIV - + 95 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - col0 - - col1 / - + 95 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8287
SELECT DISTINCT + - MIN( DISTINCT 8 ) AS col2, ( SUM( - col0 ) ) FROM tab2 AS cor0
----
-8
-185

skipif mysql # not compatible
query II rowsort label-8287
SELECT DISTINCT + - MIN ( DISTINCT 8 ) AS col2, ( SUM ( - col0 ) ) FROM tab2 AS cor0
----
-8
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8288
SELECT + col0 col1, + ( + 19 ) * - 90 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8288
SELECT + col0 col1, + ( + 19 ) * - 90 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT + ( - - col2 ), col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

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

query I rowsort
SELECT DISTINCT + + 36 FROM tab2 WHERE NOT - + 63 IS NULL
----
36

query I rowsort
SELECT DISTINCT 68 * - col2 FROM tab0
----
-3196
-6732
-680

query I rowsort
SELECT ALL col2 * + ( - col0 ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - COUNT( * ) * + 10 AS col0 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8296
SELECT - COUNT ( * ) * + 10 AS col0 FROM tab0 cor0
----
-30

query II rowsort
SELECT ALL - col2, + col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + - 97 ) * col0 AS col2 FROM tab1
----
4947
8245
8827

query II rowsort
SELECT + col0 AS col0, + col0 + - 32 AS col2 FROM tab2
----
46
14
64
32
75
43

query II rowsort
SELECT DISTINCT + ( + + 74 ) * + col1, col2 AS col1 FROM tab0 AS cor0
----
1554
10
5994
47
74
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 62 col0 FROM tab0 AS cor0
----
-19
41
61

query I rowsort
SELECT ALL - col0 + - col1 + + - ( - col0 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + - 69 FROM tab2 cor0 WHERE NULL < col0 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT + 2 + ( - 11 ) * + + col2 * + CAST( - col0 AS SIGNED ) - col0 FROM tab1 AS cor0
----
53807
55082
67979

skipif mysql # not compatible
query I rowsort label-8306
SELECT + 2 + ( - 11 ) * + + col2 * + CAST ( - col0 AS INTEGER ) - col0 FROM tab1 AS cor0
----
53807
55082
67979

query I rowsort
SELECT DISTINCT 70 * col1 FROM tab1 AS cor0
----
3290
350
980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8308
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) * + 24 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) * + 24 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8309
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8309
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT + 27 * - ( - col0 ) FROM tab0
----
2349
2619
405

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT ALL MAX( - ( + col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL MAX ( - ( + col0 ) ) FROM tab2
----
-46

query I rowsort
SELECT ALL + 68 - 22 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - MAX( + 7 ) FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8314
SELECT - MAX ( + 7 ) FROM tab2 cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8315
SELECT - col0 * + col1 + CAST( NULL AS SIGNED ) - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col0, - 79 )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * 57 >= NULL
----

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

query I rowsort
SELECT 75 + col1 FROM tab2
----
126
142
152

query I rowsort
SELECT ALL - + ( - 50 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT - 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 15 + 92 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * col2 + - + 46 FROM tab0 AS cor0
----
164
3761
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 74, col0, 38 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL COUNT( ALL + 45 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL COUNT ( ALL + 45 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 62 * 85 FROM tab1
----
5270

query I rowsort
SELECT + ( 31 ) FROM tab2
----
31
31
31

query II rowsort
SELECT DISTINCT + col0 AS col0, + col1 * - col0 FROM tab0
----
15
-1215
87
-1827
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT - MIN( DISTINCT - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8330
SELECT - MIN ( DISTINCT - col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT + 49 * col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT - SUM( - + 27 ) AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT - SUM ( - + 27 ) AS col2 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT + ( MIN( ( + 72 ) ) ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8333
SELECT + ( MIN ( ( + 72 ) ) ) AS col1 FROM tab0
----
72

query II rowsort
SELECT ALL col0, - 12 * - + col2 AS col0 FROM tab1
----
51
1152
85
708
91
816

onlyif mysql # aggregate syntax: 
query II rowsort label-8335
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) + - - COUNT( * ) * + COUNT( * ) FROM tab0 cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-8335
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) + - - COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0
----
3
12

query I rowsort
SELECT col2 + + + 10 AS col2 FROM tab2 cor0
----
33
50
68

query II rowsort
SELECT ALL + col2, + 68 * + col0 FROM tab1 AS cor0
----
59
5780
68
6188
96
3468

query I rowsort
SELECT col2 + + 73 * - 31 + - col2 FROM tab1 AS cor0
----
-2263
-2263
-2263

onlyif mysql # DIV for integer division: 
query II rowsort label-8339
SELECT ALL 51 + col1, - col0 + - col1 DIV - col0 AS col1 FROM tab0
----
132
-10
52
-97
72
-87

skipif mysql # not compatible
query II rowsort label-8339
SELECT ALL 51 + col1, - col0 + - col1 / - col0 AS col1 FROM tab0
----
132
-10
52
-97
72
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8340
SELECT + + CAST( + 5 AS SIGNED ) col0, col0 FROM tab0 AS cor0 WHERE + col0 + + col0 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8340
SELECT + + CAST ( + 5 AS INTEGER ) col0, col0 FROM tab0 AS cor0 WHERE + col0 + + col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - - 19 + + + col0 NOT IN ( - 97, - col0 * + col2 + 42, 68 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT + COUNT( * ) * MAX( + - col0 ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8342
SELECT + COUNT ( * ) * MAX ( + - col0 ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT ALL col2 * 26 + col2 + + 12 FROM tab2 AS cor0
----
1092
1578
633

query II rowsort
SELECT - col0 AS col1, 26 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 + + 23 * - - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT - MIN( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-8345
SELECT - MIN ( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT + - COUNT( DISTINCT + + col0 ) * 6 * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8346
SELECT + - COUNT ( DISTINCT + + col0 ) * 6 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT - 71 + + - col0 AS col2 FROM tab2 AS cor0
----
-117
-135
-146

query I rowsort
SELECT ALL 39 + + col0 + - col1 * - col2 + - 88 FROM tab2 AS cor0
----
1170
3095
3912

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8349
SELECT col2 + + CAST( NULL AS DECIMAL ) + + - col1 / col0 + 50 * - 88 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 34 * - + col2 + col2 AS col2 FROM tab0
----
-1551
-3267
-330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8351
SELECT ALL + 86, + CAST( NULL AS SIGNED ) col1 FROM tab0
----
86
NULL
86
NULL
86
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8351
SELECT ALL + 86, + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
86
NULL
86
NULL
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT - ( SUM( - 93 ) ) col2 FROM tab2
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8352
SELECT DISTINCT - ( SUM ( - 93 ) ) col2 FROM tab2
----
279

query II rowsort
SELECT ALL 49 AS col1, col1 FROM tab0
----
49
1
49
21
49
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT DISTINCT + COUNT( * ) - + SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT + COUNT ( * ) - + SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 70 * + 58 FROM tab2
----
4060
4060
4060

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT ALL col0 DIV - + col0 col2 FROM tab0 AS cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT DISTINCT - + 29 * - + ( COUNT( * ) ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT - + 29 * - + ( COUNT ( * ) ) FROM tab0 AS cor0
----
87

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

query I rowsort
SELECT + col0 + ( - col1 ) + + 87 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL OR - 14 IS NULL
----
124
131
167

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 89 NOT IN ( + 9 * + col2 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( 83 ) FROM tab0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT 4 * - 22 FROM tab2
----
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 59 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 73, - col1 * 91 AS col1 FROM tab0
----
-73
-1911
-73
-7371
-73
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT + - 88 * + COUNT( * ) FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-8368
SELECT + - 88 * + COUNT ( * ) FROM tab0 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query II rowsort label-8369
SELECT ALL - - 84 AS col2, COUNT( * ) * - 76 AS col2 FROM tab2 AS cor0
----
84
-228

skipif mysql # not compatible
query II rowsort label-8369
SELECT ALL - - 84 AS col2, COUNT ( * ) * - 76 AS col2 FROM tab2 AS cor0
----
84
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-8370
SELECT DISTINCT - 87, + COUNT( * ) AS col2 FROM tab1
----
-87
3

skipif mysql # not compatible
query II rowsort label-8370
SELECT DISTINCT - 87, + COUNT ( * ) AS col2 FROM tab1
----
-87
3

query I rowsort
SELECT ALL 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8372
SELECT DISTINCT + CAST( + CAST( - 15 AS SIGNED ) AS SIGNED ) * ( 45 ) + 9, 57 AS col0 FROM tab1
----
-666
57

skipif mysql # not compatible
query II rowsort label-8372
SELECT DISTINCT + CAST ( + CAST ( - 15 AS INTEGER ) AS INTEGER ) * ( 45 ) + 9, 57 AS col0 FROM tab1
----
-666
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL - COUNT( ALL - - 34 ) + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - COUNT ( ALL - - 34 ) + + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL > - col2 + + 85 AND + 55 + + col0 = - col1
----

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

query I rowsort
SELECT col2 + - col1 + + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-2629
-4498
-5966

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8377
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8377
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 + + + col1 - + col0 FROM tab1 AS cor0
----
-112
-133
-139

query I rowsort
SELECT DISTINCT - 34 + - col0 AS col2 FROM tab2 AS cor0
----
-109
-80
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8380
SELECT + col0 * CAST( - - col2 AS SIGNED ) AS col1 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-8380
SELECT + col0 * CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT - 67 * - + col2 AS col0 FROM tab0
----
3149
6633
670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8382
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0 WHERE NOT + 14 = - 0
----
1

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 14 = - 0
----
1

query I rowsort
SELECT - 94 - - col1 AS col1 FROM tab1
----
-47
-80
-89

query II rowsort
SELECT DISTINCT - 23 * + 65, - col1 AS col0 FROM tab2
----
-1495
-51
-1495
-67
-1495
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ( COUNT( * ) ) - - 98 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-8385
SELECT ( COUNT ( * ) ) - - 98 FROM tab0
----
101

query I rowsort
SELECT col1 * - + col2 + - - col1 - + - col1 FROM tab2 AS cor0
----
-1071
-2926
-3752

query I rowsort
SELECT - col0 + + - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-196
-62
-97

query II rowsort
SELECT DISTINCT - 71 AS col2, 42 FROM tab1 WHERE NULL IS NULL
----
-71
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT - col1 * col2 DIV - 99 FROM tab1 AS cor0
----
13
2
32

skipif mysql # not compatible
query I rowsort label-8389
SELECT - col1 * col2 / - 99 FROM tab1 AS cor0
----
13
2
32

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - + 5 + + col0 * col1 <> NULL )
----

query I rowsort
SELECT - + 65 * col0 * 87 FROM tab2 cor0
----
-260130
-361920
-424125

query I rowsort
SELECT ALL - 50 * + - col2 FROM tab0
----
2350
4950
500

onlyif mysql # DIV for integer division: 
query I rowsort label-8393
SELECT col0 DIV - 27 FROM tab1
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-8393
SELECT col0 / - 27 FROM tab1
----
-1
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT - CAST( + ( - 83 ) AS SIGNED ) FROM tab0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-8394
SELECT - CAST ( + ( - 83 ) AS INTEGER ) FROM tab0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT SUM( 11 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-8395
SELECT SUM ( 11 ) AS col0 FROM tab1
----
33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - ( MIN( ALL + 61 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT - ( MIN ( ALL + 61 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT DISTINCT - - ( + CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT - - ( + CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8399
SELECT COUNT( * ) DIV - + 52 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8399
SELECT COUNT ( * ) / - + 52 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT CAST( NULL AS SIGNED ) * - ( + col1 ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT SUM( col0 ) + COUNT( * ) FROM tab2 WHERE + 38 IS NOT NULL
----
188

skipif mysql # not compatible
query I rowsort label-8401
SELECT SUM ( col0 ) + COUNT ( * ) FROM tab2 WHERE + 38 IS NOT NULL
----
188

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 76 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 > + 22
----

query I rowsort
SELECT - 80 AS col1 FROM tab2 cor0 WHERE col2 * - col1 IS NOT NULL
----
-80
-80
-80

query I rowsort
SELECT - col0 - + col0 FROM tab1 AS cor0 WHERE - col1 * - 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE col1 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE col1 * + col1 IS NULL
----
0

query I rowsort
SELECT - col2 * ( - - col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
-200
-3760
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT 93 DIV - - col1 + - col1 FROM tab0 AS cor0
----
-17
-80
92

skipif mysql # not compatible
query I rowsort label-8409
SELECT 93 / - - col1 + - col1 FROM tab0 AS cor0
----
-17
-80
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + + 61 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - 99 - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + col0 + - - col1 - + + 25 AS col1 FROM tab0 AS cor0
----
71
73
83

query I rowsort
SELECT ALL ( 98 ) FROM tab2
----
98
98
98

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 AS col2 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8415
SELECT ALL + col0 * - col1 DIV col1 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL + col0 * - col1 / col1 AS col0 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 28 col0 FROM tab1 WHERE NOT + 43 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT DISTINCT + 90 * COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1
----
810

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT + 90 * COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1
----
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 + - col1 col1 FROM tab0
----
-49
-98
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT DISTINCT ( col0 ) * - ( - - CAST( - ( + + col1 ) AS SIGNED ) ) col2 FROM tab1
----
425
4277
714

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

query II rowsort
SELECT DISTINCT - - col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT - 64 * - col0 AS col0 FROM tab1 AS cor0
----
3264
5440
5824

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT DISTINCT 22 AS col2, COUNT( * ) FROM tab2 cor0
----
22
3

skipif mysql # not compatible
query II rowsort label-8422
SELECT DISTINCT 22 AS col2, COUNT ( * ) FROM tab2 cor0
----
22
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 82 NOT BETWEEN + col2 AND NULL
----
97
1
99

query I rowsort
SELECT DISTINCT - col1 * + col1 * - + col0 FROM tab2
----
119646
336675
379456

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + 4 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 41 + - col1 col1 FROM tab2 AS cor0
----
1835
2547
3008

query I rowsort
SELECT + + col0 * - + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT + + MAX( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8428
SELECT + + MAX ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-8429
SELECT ALL - col1 * col2 DIV - col2 + col2 * + col2 AS col2, col2 + - + col0 FROM tab2 AS cor0
----
1677
-24
3431
-17
580
-23

skipif mysql # not compatible
query II rowsort label-8429
SELECT ALL - col1 * col2 / - col2 + col2 * + col2 AS col2, col2 + - + col0 FROM tab2 AS cor0
----
1677
-24
3431
-17
580
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT ALL col1 * + col0 * CAST( + 5 AS SIGNED ) AS col1 FROM tab2
----
11730
24640
25125

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL col1 * + col0 * CAST ( + 5 AS INTEGER ) AS col1 FROM tab2
----
11730
24640
25125

onlyif mysql # DIV for integer division: 
query I rowsort label-8431
SELECT DISTINCT + 51 DIV + col1 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT + 51 / + col1 FROM tab1
----
1
10
3

query I rowsort
SELECT DISTINCT 83 * + 12 AS col1 FROM tab1
----
996

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8433
SELECT DISTINCT * FROM tab0 WHERE ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8433
SELECT DISTINCT * FROM tab0 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8434
SELECT COUNT( * ), 59 * COUNT( * ) DIV - + 27 AS col0 FROM tab0
----
3
-6

skipif mysql # not compatible
query II rowsort label-8434
SELECT COUNT ( * ), 59 * COUNT ( * ) / - + 27 AS col0 FROM tab0
----
3
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 + + 14 AS col0 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8436
SELECT 1, - SUM( - - 3 ) * COUNT( * ) col0 FROM tab2
----
1
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8436
SELECT 1, - SUM ( - - 3 ) * COUNT ( * ) col0 FROM tab2
----
1
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT ALL + 55 + - CAST( + - 71 AS SIGNED ) AS col2 FROM tab1
----
126
126
126

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + 55 + - CAST ( + - 71 AS INTEGER ) AS col2 FROM tab1
----
126
126
126

onlyif mysql # aggregate syntax: 
query II rowsort label-8438
SELECT - COUNT( * ) AS col2, MAX( ALL + 12 ) AS col1 FROM tab1 AS cor0
----
-3
12

skipif mysql # not compatible
query II rowsort label-8438
SELECT - COUNT ( * ) AS col2, MAX ( ALL + 12 ) AS col1 FROM tab1 AS cor0
----
-3
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT DISTINCT - + col1 + 65 DIV - col1 AS col2 FROM tab0 AS cor0
----
-24
-66
-81

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT - + col1 + 65 / - col1 AS col2 FROM tab0 AS cor0
----
-24
-66
-81

query I rowsort
SELECT ALL - col2 * - 12 + 91 AS col2 FROM tab1
----
1243
799
907

query I rowsort
SELECT 10 * 80 AS col0 FROM tab0
----
800
800
800

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT 47 * + COUNT( * ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-8442
SELECT 47 * + COUNT ( * ) FROM tab1
----
141

query I rowsort
SELECT 16 * + col2 AS col0 FROM tab2
----
368
640
928

query III rowsort
SELECT ALL * FROM tab2 WHERE 57 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 88 * - col1 <= ( - 24 - + 93 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col1 FROM tab0 WHERE NULL IS NULL
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 90 col2 FROM tab0 WHERE NOT NULL <> ( col0 )
----

query I rowsort
SELECT col1 * - 91 FROM tab2
----
-4641
-6097
-7007

query III rowsort
SELECT * FROM tab2 WHERE NULL = ( - col0 )
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( + col2 ) <= ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8451
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + col0 NOT BETWEEN CAST( 60 AS DECIMAL ) + - col0 * + 30 AND ( + col0 + 52 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-8451
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + col0 NOT BETWEEN CAST ( 60 AS REAL ) + - col0 * + 30 AND ( + col0 + 52 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 64 AS col0 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND col1 - - 87
----

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 64 AS col0 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND col1 - - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT 31 * SUM( - col2 ) FROM tab1
----
-6913

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT 31 * SUM ( - col2 ) FROM tab1
----
-6913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT - CAST( NULL AS SIGNED ) - + col2 * + col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT + 76 - - SUM( DISTINCT col0 ) FROM tab1
----
303

skipif mysql # not compatible
query I rowsort label-8455
SELECT + 76 - - SUM ( DISTINCT col0 ) FROM tab1
----
303

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT COUNT( * ) * - 68 AS col1 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT COUNT ( * ) * - 68 AS col1 FROM tab1
----
-204

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8458
SELECT * FROM tab1 WHERE ( 48 + - 5 ) NOT BETWEEN - col1 AND CAST( + ( 53 ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8458
SELECT * FROM tab1 WHERE ( 48 + - 5 ) NOT BETWEEN - col1 AND CAST ( + ( 53 ) AS REAL )
----

query I rowsort
SELECT + col0 + 99 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT MIN( DISTINCT + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT MIN ( DISTINCT + col2 ) AS col2 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8462
SELECT DISTINCT col2 DIV - ( - 51 ) FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT col2 / - ( - 51 ) FROM tab2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col0 FROM tab2 WHERE - col2 * col2 IS NULL
----

query I rowsort
SELECT ( col2 ) * + col0 + 11 * + col1 FROM tab0 WHERE NOT - col2 IS NULL
----
1101
1596
9614

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

query I rowsort
SELECT DISTINCT + col0 - - col2 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT - col2 - col0 AS col0 FROM tab2 WHERE NOT ( + col0 * col0 ) IS NULL
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL + COUNT( * ) - MAX( DISTINCT - col2 + col0 ) FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL + COUNT ( * ) - MAX ( DISTINCT - col2 + col0 ) FROM tab0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8469
SELECT + COUNT( * ) DIV CAST( + SUM( DISTINCT - col2 ) AS SIGNED ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8469
SELECT + COUNT ( * ) / CAST ( + SUM ( DISTINCT - col2 ) AS INTEGER ) AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL 70 + COUNT( * ) AS col2 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL 70 + COUNT ( * ) AS col2 FROM tab1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8473
SELECT DISTINCT col0 + 68 AS col2 FROM tab0 AS cor0 WHERE NOT + ( + ( ( 72 ) ) ) * CAST( NULL AS SIGNED ) < col2
----

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT col0 + 68 AS col2 FROM tab0 AS cor0 WHERE NOT + ( + ( ( 72 ) ) ) * CAST ( NULL AS INTEGER ) < col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8474
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - col2 AND 20 + CAST( NULL AS DECIMAL ) * 0
----

skipif mysql # not compatible
query III rowsort label-8474
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - col2 AND 20 + CAST ( NULL AS REAL ) * 0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( col1 ) * - col1 <> col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT AVG ( ( + col2 ) ) + - 43 FROM tab2 AS cor0 WHERE NOT 16 > - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT AVG ( ( + col2 ) ) + - 43 FROM tab2 AS cor0 WHERE NOT 16 > - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + col0 * 39 FROM tab2 WHERE 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8478
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT DISTINCT + MIN( + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT + MIN ( + col2 ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT - + SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8480
SELECT - + SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
195

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 > ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL + - MIN( ALL - 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + - MIN ( ALL - 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT - COUNT( * ) * - 71 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - COUNT ( * ) * - 71 FROM tab2 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8485
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT DISTINCT - SUM( CAST( NULL AS SIGNED ) ) * - 9 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT - SUM ( CAST ( NULL AS INTEGER ) ) * - 9 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + 77 + col2 ) > ( 95 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT + - col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-8488
SELECT + - col0 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT 3 * 40 AS col0 FROM tab1
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT COUNT( * ) + + 49 * COUNT( * ) FROM tab0 WHERE NOT + 37 NOT BETWEEN col0 AND 79
----
50

skipif mysql # not compatible
query I rowsort label-8490
SELECT COUNT ( * ) + + 49 * COUNT ( * ) FROM tab0 WHERE NOT + 37 NOT BETWEEN col0 AND 79
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8491
SELECT - COUNT( * ) DIV - - 28 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8491
SELECT - COUNT ( * ) / - - 28 FROM tab1
----
0

query I rowsort
SELECT col1 * - ( col0 ) + - 16 AS col1 FROM tab1
----
-4293
-441
-730

query I rowsort
SELECT DISTINCT 86 * + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT ALL 4 DIV col0 + + 7 FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL 4 / col0 + + 7 FROM tab0
----
7
7
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT ALL - col1 DIV col1 + 91 AS col2 FROM tab0
----
90
90
90

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

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

query I rowsort
SELECT - 97 + - 37 * col0 AS col0 FROM tab0 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT 14 FROM tab0 AS cor0 WHERE 56 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col2 + - + col0 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT ALL - 5 * + col1 + col0 AS col1 FROM tab1 cor0
----
-144
-19
60

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8501
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < ( col0 - CAST( NULL AS DECIMAL ) * - 0 )
----

skipif mysql # not compatible
query III rowsort label-8501
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < ( col0 - CAST ( NULL AS REAL ) * - 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST( - col0 AS SIGNED ) * + col0 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8503
SELECT ALL col1 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8504
SELECT DISTINCT - + COUNT( * ) DIV - SUM( DISTINCT ( + 93 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT - + COUNT ( * ) / - SUM ( DISTINCT ( + 93 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 92 - + - col0 AS col1 FROM tab2 AS cor0
----
138
156
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8506
SELECT ALL COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 37 + + ( col1 ) * col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 9 * + col2 - - col1 * - col0 FROM tab1 cor0
----
-1578
-4889
-956

query I rowsort
SELECT ALL + col1 + + 91 AS col1 FROM tab2 AS cor0 WHERE NULL = col1 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL = 14
----
0

skipif mysql # not compatible
query I rowsort label-8511
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL = 14
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - - col0 * + + col0 col2 FROM tab0 AS cor0
----
210
7482
9312

query I rowsort
SELECT DISTINCT - ( - ( - col1 ) ) - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1224
-3157
-3953

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( col1 ) <> NULL ) OR NOT NULL BETWEEN 51 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8515
SELECT - 76 * MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - AVG ( + 5 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT - 76 * MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - AVG ( + 5 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 28 - + - col0 AS col0 FROM tab0 AS cor0
----
-13
59
69

query I rowsort
SELECT DISTINCT 33 - 11 + + col1 FROM tab0 AS cor0
----
103
23
43

query I rowsort
SELECT - ( - 56 ) + - 27 AS col2 FROM tab1 cor0
----
29
29
29

query I rowsort
SELECT 23 + col2 + - + col1 + col0 AS col0 FROM tab0 AS cor0
----
218
4
99

query I rowsort
SELECT DISTINCT + col2 - + - 42 AS col1 FROM tab0 AS cor0
----
141
52
89

query II rowsort
SELECT + 65 + + 15 AS col2, col0 AS col1 FROM tab1
----
80
51
80
85
80
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8522
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT ( col1 ) NOT IN ( col2 + + col2 * 1 )
----

skipif mysql # not compatible
query I rowsort label-8522
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT ( col1 ) NOT IN ( col2 + + col2 * 1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN 37 AND col0 / + 49 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 58 + - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL 80 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 + col2 col2 FROM tab2 cor0
----
1196
3120
3944

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - 58 BETWEEN NULL AND col1 / col0 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8528
SELECT + MAX( - CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT + MAX ( - CAST ( NULL AS REAL ) ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT col1 - + col1 FROM tab2 WHERE NOT - + 65 + - 60 < - col0 / col2 + + 13
----

query I rowsort
SELECT ALL - ( + + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - 42 + col1 FROM tab0 AS cor0
----
-21
-41
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + + col0 * + col2 + - col2 + - col1 col1 FROM tab2 AS cor0
----
1513
4043
7589

query I rowsort
SELECT DISTINCT + ( - col2 ) * + - col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8535
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( + col2 AS DECIMAL ) <> - 78 + + - 1 + col1
----

skipif mysql # not compatible
query III rowsort label-8535
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( + col2 AS REAL ) <> - 78 + + - 1 + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT + 54 + MAX( DISTINCT - - col0 ) / + COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT + 54 + MAX ( DISTINCT - - col0 ) / + COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8537
SELECT DISTINCT - 85 * - col2 FROM tab1 AS cor0 WHERE + col0 - + + col1 NOT BETWEEN - 21 AND - CAST( NULL AS SIGNED ) - 47
----

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT - 85 * - col2 FROM tab1 AS cor0 WHERE + col0 - + + col1 NOT BETWEEN - 21 AND - CAST ( NULL AS INTEGER ) - 47
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 16 - + 24 > ( - col1 / + 90 + - col2 )
----

query I rowsort
SELECT ALL 32 * + col1 + col1 FROM tab0 AS cor0
----
2673
33
693

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT DISTINCT + + 92 * COUNT( * ) FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT + + 92 * COUNT ( * ) FROM tab2 AS cor0
----
276

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 * + 45 * + + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col2, col0 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col0 * + - col2 * - col1 col1, ( - - col2 ) AS col1 FROM tab0
----
-182700
10
-2683935
47
-950697
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8545
SELECT * FROM tab2 WHERE ( NOT 95 + CAST( + col0 AS SIGNED ) NOT BETWEEN - col1 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-8545
SELECT * FROM tab2 WHERE ( NOT 95 + CAST ( + col0 AS INTEGER ) NOT BETWEEN - col1 AND NULL )
----

query I rowsort
SELECT ALL ( + 72 ) + 33 FROM tab1
----
105
105
105

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT ALL + ( + - col1 ) * + 6 + - 17 DIV - col2 AS col0 FROM tab0 AS cor0
----
-125
-486
-6

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL + ( + - col1 ) * + 6 + - 17 / - col2 AS col0 FROM tab0 AS cor0
----
-125
-486
-6

query II rowsort
SELECT DISTINCT col1 AS col1, - col2 + - + col1 AS col2 FROM tab0 cor0
----
1
-100
21
-31
81
-128

query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT 74 + - col2 * 71 + + - 24 FROM tab2 AS cor0
----
-1583
-2790
-4068

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL + COUNT( DISTINCT 96 ) * 56 AS col2 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL + COUNT ( DISTINCT 96 ) * 56 AS col2 FROM tab1
----
56

query I rowsort
SELECT - - col1 FROM tab1 WHERE NULL <= col1
----

query I rowsort
SELECT ALL 17 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8554
SELECT ALL col1 + ( col1 ) + CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
124
162
69

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL col1 + ( col1 ) + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
124
162
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8555
SELECT MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL + - 34 + - 67 AS col1 FROM tab1 AS cor0
----
-101
-101
-101

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8557
SELECT * FROM tab2 AS cor0 WHERE ( NOT + 78 * + col0 * - + CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-8557
SELECT * FROM tab2 AS cor0 WHERE ( NOT + 78 * + col0 * - + CAST ( NULL AS INTEGER ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT - COUNT( * ) DIV - + 63 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT - COUNT ( * ) / - + 63 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 28 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - + col1 + + - col0 + - 33 AS col0 FROM tab0 AS cor0
----
-1263
-1947
-227

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NOT + 72 + + - 72 - + - 80 * - col1 BETWEEN NULL AND ( col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT + MIN( col1 ) - - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT + MIN ( col1 ) - - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) col0 FROM tab2 AS cor0 WHERE - ( 23 ) = ( col0 * - col0 * - col0 + - 68 )
----

query I rowsort
SELECT - 14 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col0 AS col1, 84 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT - col0 * + col2 + - + CAST( + 7 AS SIGNED ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8568
SELECT - col0 * + col2 + - + CAST ( + 7 AS INTEGER ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8569
SELECT DISTINCT 57, - SUM( DISTINCT + col2 ) AS col2 FROM tab2
----
57
-121

skipif mysql # not compatible
query II rowsort label-8569
SELECT DISTINCT 57, - SUM ( DISTINCT + col2 ) AS col2 FROM tab2
----
57
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + 30 col1 FROM tab1
----
51
30
85
30
91
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8571
SELECT ALL COUNT( * ) AS col0, - SUM( + col2 ) AS col0 FROM tab0
----
3
-156

skipif mysql # not compatible
query II rowsort label-8571
SELECT ALL COUNT ( * ) AS col0, - SUM ( + col2 ) AS col0 FROM tab0
----
3
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT + ( + CAST( - 77 AS SIGNED ) ) * - 28 FROM tab0
----
2156
2156
2156

skipif mysql # not compatible
query I rowsort label-8572
SELECT + ( + CAST ( - 77 AS INTEGER ) ) * - 28 FROM tab0
----
2156
2156
2156

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 85 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 4 NOT IN ( + 1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8576
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 77 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8576
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 77 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + col1 FROM tab1 AS cor0 WHERE NOT - col1 IN ( - + col2 * + ( - col2 ) + 63, + 54 )
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT DISTINCT + CAST( 52 AS SIGNED ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT + CAST ( 52 AS INTEGER ) FROM tab1 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT - MIN( - col0 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8579
SELECT DISTINCT - MIN ( - col0 ) col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT ALL - 50 + - MAX( DISTINCT 45 ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - 50 + - MAX ( DISTINCT 45 ) FROM tab2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT ALL - CAST( 26 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - CAST ( 26 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 >= ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL + + MAX( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + + MAX ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT 98 * - col1 + 93 AS col0 FROM tab2
----
-4905
-6473
-7453

query I rowsort
SELECT - col0 + - - 85 * col0 * + 1 FROM tab0
----
1260
7308
8148

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL MAX( + 73 ) AS col2 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL MAX ( + 73 ) AS col2 FROM tab2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT - CAST( - - col2 AS SIGNED ) + - + 33 AS col1 FROM tab0
----
-132
-43
-80

skipif mysql # not compatible
query I rowsort label-8588
SELECT - CAST ( - - col2 AS INTEGER ) + - + 33 AS col1 FROM tab0
----
-132
-43
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT 71 DIV - + 95 + col2 * col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8589
SELECT 71 / - + 95 + col2 * col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 - + col1 * + - 11 + - 73 FROM tab2 AS cor0
----
511
722
814

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + COUNT( + 20 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8592
SELECT + COUNT ( + 20 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT DISTINCT - - CAST( + + col0 AS SIGNED ) - 62 AS col0 FROM tab2 AS cor0
----
-16
13
2

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT - - CAST ( + + col0 AS INTEGER ) - 62 AS col0 FROM tab2 AS cor0
----
-16
13
2

query I rowsort
SELECT - - 80 AS col2 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT 56 * + col2 AS col0 FROM tab2
----
1288
2240
3248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT + CAST( 33 AS SIGNED ) * - 2 * - + col2 + col2 BETWEEN ( + col0 ) AND col1
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT + CAST ( 33 AS INTEGER ) * - 2 * - + col2 + col2 BETWEEN ( + col0 ) AND col1
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + MIN( + - 85 ) AS col2 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-8598
SELECT + MIN ( + - 85 ) AS col2 FROM tab0 AS cor0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT - - 3 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8599
SELECT - - 3 / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT + - COUNT( DISTINCT - 6 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8600
SELECT + - COUNT ( DISTINCT - 6 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT - MIN( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8602
SELECT - MIN ( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
75

query II rowsort
SELECT DISTINCT + col1 AS col0, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-8604
SELECT 73 AS col0, + 12 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
73
36

skipif mysql # not compatible
query II rowsort label-8604
SELECT 73 AS col0, + 12 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
73
36

query I rowsort
SELECT DISTINCT + col0 * - col0 - - col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

query I rowsort
SELECT ALL + 81 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT col2 * - - 78 FROM tab1
----
4602
5304
7488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 37 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 37 FROM tab1
----
NULL

query I rowsort
SELECT - ( - 17 ) * + - col2 + + col2 + col0 * - col0 FROM tab2
----
-2484
-4736
-6553

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 63 * col1 * - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT - COUNT( * ) * MAX( - - col2 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-8612
SELECT - COUNT ( * ) * MAX ( - - col2 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 75, col0 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
75
46
75
64
75
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE 26 IS NULL
----

query I rowsort
SELECT - 91 - + 80 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - ( - col0 ) + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT DISTINCT + - MAX( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + - MAX ( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL - 17 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - ( - 33 ) AS col1 FROM tab2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT CAST( NULL AS SIGNED ) / - col1 * + 57 AS col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - MIN( col0 ) AS col2 FROM tab0 WHERE col0 * - col2 + 3 * + 0 <= + - col2 + - ( + col1 ) OR - + col2 <= col0 + + col0
----
-15

skipif mysql # not compatible
query I rowsort label-8621
SELECT - MIN ( col0 ) AS col2 FROM tab0 WHERE col0 * - col2 + 3 * + 0 <= + - col2 + - ( + col1 ) OR - + col2 <= col0 + + col0
----
-15

query I rowsort
SELECT DISTINCT - - 63 AS col1 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - 97 * - col0 FROM tab1
----
4947
8245
8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * + ( - + col1 ) * - - 97 - 50 * + - col1 col0 FROM tab0 cor0
----
-1771140
-5535135
-931441

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT - 36 + - - MAX( + 95 ) FROM tab2 cor0
----
59

skipif mysql # not compatible
query I rowsort label-8625
SELECT - 36 + - - MAX ( + 95 ) FROM tab2 cor0
----
59

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

query II rowsort
SELECT col1, + col0 + col1 FROM tab0
----
1
98
21
108
81
96

query I rowsort
SELECT - ( + + 62 ) FROM tab2
----
-62
-62
-62

query I rowsort
SELECT ( + - 25 ) * + - 67 FROM tab0
----
1675
1675
1675

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 70 AS col1, 90 - + 31 * col0 FROM tab0 AS cor0
----
70
-2607
70
-2917
70
-375

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8632
SELECT + + col0 / + ( - col2 ) / - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 + - + ( + col1 ), col2 + + 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8634
SELECT col1, - 62 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8634
SELECT col1, - 62 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT + col2 * - 68 + - 8, - 6 AS col2 FROM tab0 WHERE NOT - 63 + + + col1 + + 79 - + + col1 < NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 * - - col1 col2 FROM tab2
----
2805
3685
4235

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col1 / ( + col2 ), + 77 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8639
SELECT DISTINCT - COUNT( * ), 80 AS col0 FROM tab0
----
-3
80

skipif mysql # not compatible
query II rowsort label-8639
SELECT DISTINCT - COUNT ( * ), 80 AS col0 FROM tab0
----
-3
80

query I rowsort
SELECT + 57 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
4980
5530
936

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - 48 + - 82 * + COUNT( * ) FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-8641
SELECT - 48 + - 82 * + COUNT ( * ) FROM tab2 AS cor0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT - + SUM( ALL - col2 ) + + 28 FROM tab2 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-8642
SELECT - + SUM ( ALL - col2 ) + + 28 FROM tab2 AS cor0
----
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab1 WHERE NOT + 90 * - - col2 < - col1
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + - col1 + ( + + col2 ) >= col2
----

query I rowsort
SELECT ALL - 34 * + 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to af42cb801487ce5e55be63e0653d3aac

query I rowsort
SELECT 63 * + - col0 + - - ( + 68 ) FROM tab2 AS cor0
----
-2830
-3964
-4657

query I rowsort
SELECT - ( ( - 56 ) ) FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT ALL + + 31 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
31
31
31

query I rowsort
SELECT ALL - - col0 * + 61 * + 18 + col0 * + 50 FROM tab1 cor0
----
104468
58548
97580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + 16 * - col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT - + 52 * + col2 + - col2 AS col1 FROM tab0 cor0
----
-2491
-5247
-530

query I rowsort
SELECT 16 + col1 AS col2 FROM tab2 AS cor0
----
67
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT DISTINCT + + COUNT( * ) - - + 49 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT + + COUNT ( * ) - - + 49 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-144

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * 52 - - col1 - col2 / - 51 / 8 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8655
SELECT ALL + col2 / - CAST( NULL AS SIGNED ) / + + col1 col2, + 36 FROM tab0
----
NULL
36
NULL
36
NULL
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8655
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) / + + col1 col2, + 36 FROM tab0
----
NULL
36
NULL
36
NULL
36

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( ( NULL ) >= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 62 BETWEEN + col1 + col1 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 + col0 * + col1 AS col0, col2 col0 FROM tab1
----
4318
68
466
59
755
96

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL <> + + ( col0 )
----

query I rowsort
SELECT + + col1 AS col0 FROM tab0 WHERE - col2 IS NULL
----

query II rowsort
SELECT ALL col2, 12 FROM tab1
----
59
12
68
12
96
12

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <= ( + col1 - - col1 )
----

query I rowsort
SELECT ALL - 48 - - + 62 FROM tab2 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col0 * col0 * - col2 * + 0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + col2 AND - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT + 74 * - SUM( 30 ) AS col2 FROM tab1 cor0
----
-6660

skipif mysql # not compatible
query I rowsort label-8666
SELECT + 74 * - SUM ( 30 ) AS col2 FROM tab1 cor0
----
-6660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8667
SELECT + col0 * col1 * CAST( - 31 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-152768
-155775
-72726

skipif mysql # not compatible
query I rowsort label-8667
SELECT + col0 * col1 * CAST ( - 31 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-152768
-155775
-72726

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( - col2 ) > - 35
----

query I rowsort
SELECT DISTINCT + + col2 * col1 * - 81 AS col2 FROM tab2 AS cor0
----
-249480
-314766
-95013

query I rowsort
SELECT ( + 77 ) * col2 AS col0 FROM tab0 AS cor0
----
3619
7623
770

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT ALL - + col2 * + col1 * - col2 * col0 DIV + col2 FROM tab1 AS cor0
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL - + col2 * + col1 * - col2 * col0 / + col2 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT DISTINCT ( + 91 ) * COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT ( + 91 ) * COUNT ( * ) FROM tab1
----
273

query II rowsort
SELECT DISTINCT + col1 AS col2, ( - - col2 ) FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab2 WHERE NOT 63 / - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT DISTINCT col2 + + CAST( - col1 AS SIGNED ) + - + 66 AS col0 FROM tab0
----
-100
-77
32

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT col2 + + CAST ( - col1 AS INTEGER ) + - + 66 AS col0 FROM tab0
----
-100
-77
32

query I rowsort
SELECT DISTINCT + + 63 * + 52 AS col2 FROM tab2 AS cor0
----
3276

query I rowsort
SELECT ALL col1 * + 94 * + + col0 * + col1 + - + 76 * - 23 AS col1 FROM tab1 AS cor0
----
18897534
201498
941372

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT DISTINCT + SUM( ALL + col2 ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT + SUM ( ALL + col2 ) AS col1 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT DISTINCT COUNT( * ) * - 94 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-846

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT COUNT ( * ) * - 94 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-846

query I rowsort
SELECT ALL - col1 + + 50 * + 99 AS col1 FROM tab0
----
4869
4929
4949

query I rowsort
SELECT DISTINCT + col1 + - 79 FROM tab1 AS cor0
----
-32
-65
-74

query I rowsort
SELECT + col1 + 92 FROM tab2 AS cor0
----
143
159
169

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8684
SELECT ALL - col2 * + + CAST( NULL AS DECIMAL ) - - ( col0 ) * CAST( - - 94 AS SIGNED ) AS col0, + 72 FROM tab2 AS cor0
----
NULL
72
NULL
72
NULL
72

skipif mysql # not compatible
query II rowsort label-8684
SELECT ALL - col2 * + + CAST ( NULL AS REAL ) - - ( col0 ) * CAST ( - - 94 AS INTEGER ) AS col0, + 72 FROM tab2 AS cor0
----
NULL
72
NULL
72
NULL
72

query I rowsort
SELECT - col2 * + col0 * - + col1 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

query II rowsort
SELECT ALL col1 AS col1, col0 + + - col1 FROM tab1 AS cor0
----
14
37
47
44
5
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 = col1
----

query I rowsort
SELECT ALL 69 - - col1 FROM tab0 AS cor0
----
150
70
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8689
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN ( + col0 ) AND + CAST( NULL AS SIGNED )
----
75
67
58

skipif mysql # not compatible
query III rowsort label-8689
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN ( + col0 ) AND + CAST ( NULL AS INTEGER )
----
75
67
58

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 56 - + col1, col1 AS col0 FROM tab1
----
-103
47
-61
5
-70
14

query I rowsort
SELECT 62 * + + col1 - - col2 AS col1 FROM tab1
----
2982
369
964

onlyif mysql # aggregate syntax: 
query II rowsort label-8693
SELECT DISTINCT - ( 54 ), SUM( - 18 ) col2 FROM tab1
----
-54
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8693
SELECT DISTINCT - ( 54 ), SUM ( - 18 ) col2 FROM tab1
----
-54
-54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8696
SELECT ALL 1 DIV + COUNT( ALL col0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL 1 / + COUNT ( ALL col0 ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8697
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col0, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query II rowsort label-8697
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1
-3

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE col2 * + 83 <> 50 + - - ( + col0 )
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 55 AS col2 FROM tab1
----
51
55
85
55
91
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8700
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8700
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 - - - col0 AND 64 * 71 * - col2
----

query II rowsort
SELECT ALL - col2, - 97 AS col0 FROM tab1 AS cor0
----
-59
-97
-68
-97
-96
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8704
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT DISTINCT COUNT( col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT COUNT ( col0 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL + SUM( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL + SUM ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-121

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

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( NOT - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT + SUM( ALL + - 46 ) AS col2 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-8709
SELECT + SUM ( ALL + - 46 ) AS col2 FROM tab2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8710
SELECT + CAST( NULL AS SIGNED ) * - 66 * ( - + col1 ) * + ( + ( col2 ) ) FROM tab0 WHERE NOT - ( + col1 ) <> + + col1
----

skipif mysql # not compatible
query I rowsort label-8710
SELECT + CAST ( NULL AS INTEGER ) * - 66 * ( - + col1 ) * + ( + ( col2 ) ) FROM tab0 WHERE NOT - ( + col1 ) <> + + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8711
SELECT - CAST( + col1 AS SIGNED ) DIV - 19 + + ( 57 ) FROM tab1
----
57
57
59

skipif mysql # not compatible
query I rowsort label-8711
SELECT - CAST ( + col1 AS INTEGER ) / - 19 + + ( 57 ) FROM tab1
----
57
57
59

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( + 45 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT - 94 + COUNT( * ) AS col1 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-8713
SELECT - 94 + COUNT ( * ) AS col1 FROM tab0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT DISTINCT SUM( DISTINCT + - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT SUM ( DISTINCT + - col0 ) AS col0 FROM tab2
----
-185

query III rowsort
SELECT * FROM tab0 WHERE - 3 < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 82 + - 61 col1 FROM tab2 cor0
----
3711
5187
6089

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col1 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 62 AS col2, 19 * - col2 FROM tab0
----
62
-1881
62
-190
62
-893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT DISTINCT 17 * + - col2 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8720
SELECT - - 51 DIV col1 AS col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col0 AND col2
----
2

skipif mysql # not compatible
query I rowsort label-8720
SELECT - - 51 / col1 AS col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col0 AND col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL + COUNT( * ) + + 70 AS col2 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL + COUNT ( * ) + + 70 AS col2 FROM tab2 AS cor0
----
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 90 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT - - COUNT( * ) + 56 col0 FROM tab2 AS cor0 WHERE col2 + - col2 IS NULL
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8723
SELECT - - COUNT ( * ) + 56 col0 FROM tab2 AS cor0 WHERE col2 + - col2 IS NULL
----
56

query I rowsort
SELECT - + col1 - + ( + - col0 ) + - col1 FROM tab0 AS cor0
----
-147
45
95

query I rowsort
SELECT DISTINCT 20 + - - col1 FROM tab1 AS cor0
----
25
34
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT DISTINCT 28 + 96 * col1 + + + CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
125
2065
7885

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT 28 + 96 * col1 + + + CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
125
2065
7885

query I rowsort
SELECT ALL - - 11 + + ( + + col1 ) + - 14 + - 18 AS col1 FROM tab0 AS cor0
----
-20
0
60

query I rowsort
SELECT DISTINCT + 60 - + col1 + + 0 AS col0 FROM tab2 AS cor0
----
-17
-7
9

query I rowsort
SELECT DISTINCT + 30 - - 58 FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8732
SELECT ALL + 48 col2, + COUNT( * ) AS col1 FROM tab0
----
48
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8732
SELECT ALL + 48 col2, + COUNT ( * ) AS col1 FROM tab0
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT MAX( DISTINCT col1 ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT MAX ( DISTINCT col1 ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + - col0
----
NULL

query I rowsort
SELECT DISTINCT col0 * - 84 FROM tab1
----
-4284
-7140
-7644

onlyif mysql # DIV for integer division: 
query II rowsort label-8735
SELECT DISTINCT 84 AS col1, 9 DIV 58 AS col2 FROM tab1
----
84
0

skipif mysql # not compatible
query II rowsort label-8735
SELECT DISTINCT 84 AS col1, 9 / 58 AS col2 FROM tab1
----
84
0

query I rowsort
SELECT DISTINCT col2 * + + 41 * + col1 FROM tab0
----
156087
4059
8610

query II rowsort
SELECT + col2 AS col1, col1 * + - 14 AS col1 FROM tab0 cor0
----
10
-294
47
-1134
99
-14

query I rowsort
SELECT ALL - ( - 51 ) * - col0 + - 8 FROM tab2 AS cor0
----
-2354
-3272
-3833

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT DISTINCT ( - COUNT( * ) ) + + + 59 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
522

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT ( - COUNT ( * ) ) + + + 59 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL SUM( DISTINCT + + col0 ) col2 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8740
SELECT ALL SUM ( DISTINCT + + col0 ) col2 FROM tab1
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8741
SELECT COUNT( ( + 93 ) ), 11 / + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-8741
SELECT COUNT ( ( + 93 ) ), 11 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
NULL

query I rowsort
SELECT DISTINCT 34 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
34

query I rowsort
SELECT 25 + + col1 + + col2 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT - 80 + - SUM( col1 ) AS col1 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - 80 + - SUM ( col1 ) AS col1 FROM tab0 AS cor0
----
-183

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - - col0 * - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT MAX( ALL - 40 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT MAX ( ALL - 40 ) FROM tab2 AS cor0
----
-40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - + 21 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 30 * + 37 + - col1 AS col1 FROM tab0 cor0
----
-1111
-1131
-1191

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT COUNT( * ) col0, + 47 FROM tab2
----
3
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8752
SELECT COUNT ( * ) col0, + 47 FROM tab2
----
3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT COUNT( DISTINCT - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8753
SELECT COUNT ( DISTINCT - col1 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8754
SELECT DISTINCT + 74, + MAX( DISTINCT - + col1 ) col0 FROM tab0 AS cor0
----
74
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8754
SELECT DISTINCT + 74, + MAX ( DISTINCT - + col1 ) col0 FROM tab0 AS cor0
----
74
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * - 25 + ( + - col2 ) - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - + col0 + 78 * + 73 * - - col2
----

query I rowsort
SELECT col1 * + col1 + - + 8 AS col1 FROM tab2
----
2593
4481
5921

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 63
----

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab2 AS cor0 WHERE + col1 * 49 + 50 < + col0 + + ( + col2 ) + - - 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 80 ) * - - 36 * + + col0 col0 FROM tab0
----
250560
279360
43200

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - - col2 ) IS NOT NULL
----

query I rowsort
SELECT 53 * - col2 FROM tab2
----
-1219
-2120
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT COUNT( * ) * - COUNT( * ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8763
SELECT COUNT ( * ) * - COUNT ( * ) col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8764
SELECT DISTINCT ( + 48 ) * + MIN( CAST( 5 AS SIGNED ) ) FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT ( + 48 ) * + MIN ( CAST ( 5 AS INTEGER ) ) FROM tab2
----
240

query II rowsort
SELECT DISTINCT 92, col0 AS col2 FROM tab1
----
92
51
92
85
92
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 86 + - 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT MIN( - 28 ) FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-8767
SELECT MIN ( - 28 ) FROM tab1
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - 54 FROM tab2
----
46
-54
64
-54
75
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 col1, ( + ( + col1 ) ) AS col0, - 27 FROM tab2 AS cor0
----
9 values hashing to 624809d65edc7e8d5f51920ecd5615c8

query II rowsort
SELECT DISTINCT - 92, + col0 FROM tab0 cor0
----
-92
15
-92
87
-92
97

query I rowsort
SELECT - + 68 * - col2 AS col1 FROM tab2 AS cor0
----
1564
2720
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT - COUNT( - col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8772
SELECT - COUNT ( - col1 ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT + + col2 - - + CAST( + 48 AS SIGNED ) - - 17 * col1 * - col1 - - 11 FROM tab0 WHERE - col0 <> 26
----
-111431
-7428
141

skipif mysql # not compatible
query I rowsort label-8773
SELECT + + col2 - - + CAST ( + 48 AS INTEGER ) - - 17 * col1 * - col1 - - 11 FROM tab0 WHERE - col0 <> 26
----
-111431
-7428
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT - SUM( DISTINCT - 94 ) * 57 AS col0 FROM tab0
----
5358

skipif mysql # not compatible
query I rowsort label-8774
SELECT - SUM ( DISTINCT - 94 ) * 57 AS col0 FROM tab0
----
5358

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + - col0 ) >= + - 61
----
15
81
47

query I rowsort
SELECT + 63 * + col0 + - 71 AS col2 FROM tab0
----
5410
6040
874

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT DISTINCT - 39 DIV col0 * - 86 + + col0 - + + 14 AS col0 FROM tab1
----
37
71
77

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT - 39 / col0 * - 86 + + col0 - + + 14 AS col0 FROM tab1
----
37
71
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8778
SELECT ALL COUNT( * ) * - MAX( + col0 ) + - - 75 DIV + + COUNT( * ) AS col0, 71 FROM tab0
----
-266
71

skipif mysql # not compatible
query II rowsort label-8778
SELECT ALL COUNT ( * ) * - MAX ( + col0 ) + - - 75 / + + COUNT ( * ) AS col0, 71 FROM tab0
----
-266
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT + COUNT( * ) FROM tab2 WHERE - 49 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8779
SELECT + COUNT ( * ) FROM tab2 WHERE - 49 IS NOT NULL
----
3

query I rowsort
SELECT ALL - col0 + + col1 - + - col1 + 65 AS col0 FROM tab0
----
-30
20
212

query I rowsort
SELECT DISTINCT - 48 + - col2 + + ( - col0 ) * + 20 - + col2 FROM tab2 AS cor0
----
-1014
-1408
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT - - MAX( + col0 ) + 62 + - - COUNT( ALL col0 ) AS col1 FROM tab2 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT - - MAX ( + col0 ) + 62 + - - COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
140

query I rowsort
SELECT DISTINCT ( col2 ) + 97 FROM tab1 AS cor0 WHERE NULL IS NULL
----
156
165
193

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT + MIN( - 23 ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8784
SELECT + MIN ( - 23 ) FROM tab0 AS cor0
----
-23

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 cor0 WHERE NOT + col1 IN ( - 15, 32, + - 83 * 80 + + + col2 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT + COUNT( * ) + + COUNT( * ) + - 93 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-75

skipif mysql # not compatible
query I rowsort label-8786
SELECT + COUNT ( * ) + + COUNT ( * ) + - 93 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT - COUNT( * ) + 81 AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8787
SELECT - COUNT ( * ) + 81 AS col0 FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT COUNT( - 71 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8788
SELECT COUNT ( - 71 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT + CAST( + 69 AS SIGNED ) FROM tab2 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-8789
SELECT + CAST ( + 69 AS INTEGER ) FROM tab2 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - COUNT( col1 ) * COUNT( * ) + COUNT( + col2 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8790
SELECT - COUNT ( col1 ) * COUNT ( * ) + COUNT ( + col2 ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ALL MAX( ALL - - 44 ) AS col2 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL MAX ( ALL - - 44 ) AS col2 FROM tab1 AS cor0
----
44

query I rowsort
SELECT ALL - col1 * - col0 + + 68 FROM tab0 AS cor0
----
1283
165
1895

query I rowsort
SELECT DISTINCT col2 * - col0 * - + 98 AS col2 FROM tab1
----
479808
491470
606424

query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 93 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT SUM( DISTINCT col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT SUM ( DISTINCT col0 ) FROM tab1 cor0
----
227

query I rowsort
SELECT + ( - ( - 87 ) ) AS col1 FROM tab0 cor0
----
87
87
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - col2 * - + col2
----

query I rowsort
SELECT DISTINCT + col1 * + ( + - col0 ) + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 75 + + - col2 FROM tab0 AS cor0
----
-24
28
65

query I rowsort
SELECT - col1 + + - col0 AS col0 FROM tab2 AS cor0
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT - 62 * + COUNT( * ) + 23 + + + 19 AS col1 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-8803
SELECT - 62 * + COUNT ( * ) + 23 + + + 19 AS col1 FROM tab1 AS cor0
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT DISTINCT + col1 DIV - - 45 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT + col1 / - - 45 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT col2 + - ( - - col0 ) + col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + 32 + - col0 AS col1 FROM tab1 AS cor0
----
-19
-53
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT ALL col2 DIV - 17 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL col2 / - 17 FROM tab0 AS cor0
----
-2
-5
0

query I rowsort
SELECT + 65 + - ( - 78 ) AS col2 FROM tab1 AS cor0
----
143
143
143

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN + - 49 * col2 + + + col1 + col2 AND + - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT COUNT( ALL - - 75 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8810
SELECT COUNT ( ALL - - 75 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * - + col1 col2 FROM tab0
----
-1134
-4374
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - 27 col2 FROM tab2
----
50
67
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8813
SELECT ALL col0 + col2 * CAST( col2 AS SIGNED ) AS col0, 87 AS col1 FROM tab1
----
3566
87
4715
87
9267
87

skipif mysql # not compatible
query II rowsort label-8813
SELECT ALL col0 + col2 * CAST ( col2 AS INTEGER ) AS col0, 87 AS col1 FROM tab1
----
3566
87
4715
87
9267
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT DISTINCT col2 DIV + col1 + + 1 + - - col1 AS col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT col2 / + col1 + + 1 + - - col1 AS col1 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT DISTINCT + col2 - - - col1 AS col1 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 59 + - col1 AS col1 FROM tab0 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT + SUM( - + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT + SUM ( - + col1 ) FROM tab2
----
-195

query II rowsort
SELECT + col0 * 89, + col0 AS col2 FROM tab0 AS cor0
----
1335
15
7743
87
8633
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT + SUM( ALL + + 41 ) AS col1 FROM tab2 AS cor0 WHERE NOT 29 < + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT + SUM ( ALL + + 41 ) AS col1 FROM tab2 AS cor0 WHERE NOT 29 < + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8821
SELECT DISTINCT + COUNT( * ), - COUNT( * ) - + - 92 col2 FROM tab1 AS cor0 WHERE NOT col0 / + + 79 NOT IN ( - ( - col2 ), + 54 )
----
0
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8821
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) - + - 92 col2 FROM tab1 AS cor0 WHERE NOT col0 / + + 79 NOT IN ( - ( - col2 ), + 54 )
----
0
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT DISTINCT COUNT( - - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT COUNT ( - - col0 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( 21 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8824
SELECT ALL - MAX( ALL + ( - 62 ) ) AS col0, - 41 FROM tab0
----
62
-41

skipif mysql # not compatible
query II rowsort label-8824
SELECT ALL - MAX ( ALL + ( - 62 ) ) AS col0, - 41 FROM tab0
----
62
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IN ( - 46, col0 )
----

skipif mysql # not compatible
query I rowsort label-8825
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IN ( - 46, col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - 45 * - col1 col1, col2 + + 66 AS col2 FROM tab0
----
19845
76
295245
113
45
165

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 19 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT + + COUNT( col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT + + COUNT ( col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col2 * + col1 + + 13 AS col0 FROM tab0 AS cor0
----
112
223
3820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8832
SELECT + CAST( - + col1 AS SIGNED ) AS col1, - col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

skipif mysql # not compatible
query II rowsort label-8832
SELECT + CAST ( - + col1 AS INTEGER ) AS col1, - col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

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

query I rowsort
SELECT ALL + col0 + + - col1 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - 9 - + + 23 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL 49 + SUM( + + col0 ) AS col1 FROM tab0 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL 49 + SUM ( + + col0 ) AS col1 FROM tab0 AS cor0
----
248

query I rowsort
SELECT - 34 + - col2 AS col0 FROM tab2 AS cor0
----
-57
-74
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8838
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col2 + col0 AND - 38 * + CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-8838
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col2 + col0 AND - 38 * + CAST ( NULL AS INTEGER ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT 70 + - COUNT( * ) FROM tab2 cor0
----
67

skipif mysql # not compatible
query I rowsort label-8839
SELECT 70 + - COUNT ( * ) FROM tab2 cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT + 43 + - - COUNT( DISTINCT - 85 ) FROM tab0 cor0
----
44

skipif mysql # not compatible
query I rowsort label-8840
SELECT + 43 + - - COUNT ( DISTINCT - 85 ) FROM tab0 cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL SUM( - - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL SUM ( - - col2 ) FROM tab2
----
121

query III rowsort
SELECT * FROM tab2 WHERE 52 + - - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT ALL COUNT( ALL - col2 ) AS col1, COUNT( * ) AS col2 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8843
SELECT ALL COUNT ( ALL - col2 ) AS col1, COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----
0
0

query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 76 - + 64 / 56 / - - col0 < - col1 / - + 64 + - 76 + - - 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8846
SELECT * FROM tab0 WHERE - - 88 + - col2 + + CAST( NULL AS SIGNED ) <> - col1 - col2 * - - col1
----

skipif mysql # not compatible
query III rowsort label-8846
SELECT * FROM tab0 WHERE - - 88 + - col2 + + CAST ( NULL AS INTEGER ) <> - col1 - col2 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT MIN( DISTINCT - + 70 ) AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8847
SELECT MIN ( DISTINCT - + 70 ) AS col1 FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + MIN( DISTINCT col2 ) - + COUNT( * ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8848
SELECT + MIN ( DISTINCT col2 ) - + COUNT ( * ) FROM tab2 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT - ( + + SUM( 72 ) ) AS col0 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT - ( + + SUM ( 72 ) ) AS col0 FROM tab0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT ( + + MIN( + ( 76 ) ) ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8850
SELECT ( + + MIN ( + ( 76 ) ) ) FROM tab2 AS cor0
----
76

query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8852
SELECT - 13, + col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-13
1
-13
1
-13
1

skipif mysql # not compatible
query II rowsort label-8852
SELECT - 13, + col1 / + col1 AS col2 FROM tab0 AS cor0
----
-13
1
-13
1
-13
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56, + ( + col0 ) col2 FROM tab0 AS cor0
----
56
15
56
87
56
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT DISTINCT + col0 DIV + col1 - + 2 FROM tab1 AS cor0
----
-1
1
15

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT + col0 / + col1 - + 2 FROM tab1 AS cor0
----
-1
1
15

query I rowsort
SELECT - ( col2 ) * - + 30 + - + col1 AS col0 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8856
SELECT + col0 * - + 29 + col1 + CAST( NULL AS DECIMAL ), + 85 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
NULL
85
NULL
85
NULL
85

skipif mysql # not compatible
query II rowsort label-8856
SELECT + col0 * - + 29 + col1 + CAST ( NULL AS REAL ), + 85 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
NULL
85
NULL
85
NULL
85

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8858
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 + - CAST( - + 68 AS SIGNED ) + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8858
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 + - CAST ( - + 68 AS INTEGER ) + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8860
SELECT MIN( col2 ) AS col0, - COUNT( * ) AS col0 FROM tab0
----
10
-3

skipif mysql # not compatible
query II rowsort label-8860
SELECT MIN ( col2 ) AS col0, - COUNT ( * ) AS col0 FROM tab0
----
10
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL CAST( - ( + ( + COUNT( * ) ) ) AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL CAST ( - ( + ( + COUNT ( * ) ) ) AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT + + 91 * - col0 AS col2, + ( - col2 ) * + + col0 AS col2 FROM tab1 AS cor0
----
-4641
-4896
-7735
-5015
-8281
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT - CAST( NULL AS SIGNED ) * + col2 * + + 82 FROM tab2 cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * + 74 + ( + ( 26 ) ) col2 FROM tab2 AS cor0
----
-5894
-5894
-5894

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT + COUNT( * ) * + + COUNT( - - col0 ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8865
SELECT + COUNT ( * ) * + + COUNT ( - - col0 ) FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL - MAX( DISTINCT - + ( + + 35 ) ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL - MAX ( DISTINCT - + ( + + 35 ) ) FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT COUNT( * ) + + 72 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8867
SELECT COUNT ( * ) + + 72 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8869
SELECT * FROM tab0 AS cor0 WHERE ( ( 22 = CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-8869
SELECT * FROM tab0 AS cor0 WHERE ( ( 22 = CAST ( NULL AS REAL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8870
SELECT DISTINCT + col2 DIV + 69 + + 39 AS col2, - col1 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
39
NULL
40
NULL

skipif mysql # not compatible
query II rowsort label-8870
SELECT DISTINCT + col2 / + 69 + + 39 AS col2, - col1 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
39
NULL
40
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8871
SELECT + COUNT( DISTINCT - - col0 ) AS col1, COUNT( * ) * + 44 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
132

skipif mysql # not compatible
query II rowsort label-8871
SELECT + COUNT ( DISTINCT - - col0 ) AS col1, COUNT ( * ) * + 44 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ALL + ( COUNT( * ) ) + - ( + 93 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL + ( COUNT ( * ) ) + - ( + 93 ) FROM tab0 AS cor0
----
-90

query II rowsort
SELECT DISTINCT col0 * + col1, + ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
425
85
4277
91
714
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 92 * + 5, 86 col1 FROM tab1
----
460
86
460
86
460
86

onlyif mysql # DIV for integer division: 
query II rowsort label-8875
SELECT DISTINCT + 81 * + - 57 AS col2, col1 DIV + - col0 AS col0 FROM tab2
----
-4617
-1
-4617
0

skipif mysql # not compatible
query II rowsort label-8875
SELECT DISTINCT + 81 * + - 57 AS col2, col1 / + - col0 AS col0 FROM tab2
----
-4617
-1
-4617
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 80 col0 FROM tab2
----
1840
3200
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT 44 - COUNT( * ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-8877
SELECT 44 - COUNT ( * ) FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT COUNT( * ) - ( 74 ) * + + COUNT( * ) FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-8878
SELECT COUNT ( * ) - ( 74 ) * + + COUNT ( * ) FROM tab2
----
-219

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8879
SELECT * FROM tab1 WHERE - 85 * 40 + + col0 - CAST( - col1 AS DECIMAL ) BETWEEN NULL AND - 22 - - col2
----

skipif mysql # not compatible
query III rowsort label-8879
SELECT * FROM tab1 WHERE - 85 * 40 + + col0 - CAST ( - col1 AS REAL ) BETWEEN NULL AND - 22 - - col2
----

query I rowsort
SELECT + 63 * - col0 + - col2 * + col1 + - 97 AS col1 FROM tab1 cor0
----
-4654
-5747
-9026

query I rowsort
SELECT DISTINCT - - col0 + 73 + + + col0 * col0 * + col1 FROM tab2 AS cor0
----
108035
315529
377023

query I rowsort
SELECT + 70 + - 32 + - 87 - - col2 FROM tab0 AS cor0
----
-2
-39
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8883
SELECT ALL + col2 DIV + 90 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
0
NULL
0
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-8883
SELECT ALL + col2 / + 90 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
0
NULL
0
NULL
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8884
SELECT DISTINCT + + col0 * + + col2 col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
705
NULL
870
NULL
9603
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8884
SELECT DISTINCT + + col0 * + + col2 col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
705
NULL
870
NULL
9603
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8885
SELECT + CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8885
SELECT + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 41 + 64 FROM tab2, tab1 AS cor0
----
9 values hashing to a8f8daa1a1bfedb1421594e2314a6b6d

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT - MAX( - col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8887
SELECT - MAX ( - col0 ) AS col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8888
SELECT ALL 78 * - MAX( - - col1 ) * - 23 + + - 91 AS col0, - COUNT( - ( 58 ) ) FROM tab1
----
84227
-3

skipif mysql # not compatible
query II rowsort label-8888
SELECT ALL 78 * - MAX ( - - col1 ) * - 23 + + - 91 AS col0, - COUNT ( - ( 58 ) ) FROM tab1
----
84227
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL + 52 * + COUNT( * ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + 52 * + COUNT ( * ) FROM tab1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT CAST( NULL AS SIGNED ) / + - col1 col0 FROM tab1
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT + 58 * ( col1 ) AS col0, col2 AS col1 FROM tab0
----
1218
10
4698
47
58
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8892
SELECT + + 12 + - + col1 col2 FROM tab2 AS cor0 WHERE NOT - col1 >= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8892
SELECT + + 12 + - + col1 col2 FROM tab2 AS cor0 WHERE NOT - col1 >= CAST ( NULL AS REAL )
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 37 * - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT DISTINCT - 79 DIV + col2 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT - 79 / + col2 FROM tab2 AS cor0
----
-1
-3

query II rowsort
SELECT col2, + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT DISTINCT + 61, col2 * 70 * + col2 AS col1 FROM tab0
----
61
154630
61
686070
61
7000

query II rowsort
SELECT col1 AS col1, + 25 AS col2 FROM tab0
----
1
25
21
25
81
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8899
SELECT ALL + 2, CAST( + 35 AS SIGNED ) AS col1 FROM tab2
----
2
35
2
35
2
35

skipif mysql # not compatible
query II rowsort label-8899
SELECT ALL + 2, CAST ( + 35 AS INTEGER ) AS col1 FROM tab2
----
2
35
2
35
2
35

query I rowsort
SELECT ALL col2 + + 57 AS col2 FROM tab0
----
104
156
67

query I rowsort
SELECT DISTINCT + 13 * - col2 AS col1 FROM tab1
----
-1248
-767
-884

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8902
SELECT DISTINCT 96 DIV COUNT( * ) col0 FROM tab0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8902
SELECT DISTINCT 96 / COUNT ( * ) col0 FROM tab0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8903
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8903
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL - 79 + col2 + + col0 + + + 35 AS col0 FROM tab0
----
152
18
53

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - ( + col0 ) * + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + 29 * 0 / - - col0 * + col1 + - - ( - 16 ) <> NULL
----

query I rowsort
SELECT ALL 13 + 98 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0085b5b605f50e9a12a763af4b7ec627

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT - + col1 - - col0 DIV + - col1 FROM tab0 AS cor0
----
-25
-81
-98

skipif mysql # not compatible
query I rowsort label-8908
SELECT - + col1 - - col0 / + - col1 FROM tab0 AS cor0
----
-25
-81
-98

query I rowsort
SELECT ALL ( col2 ) * - col2 + + - col2 - + col1 * + col2 * + col0 * - col2 * 37 + ( + 3 ) AS col1 FROM tab0 AS cor0
----
35165892
6759793
99303342

query I rowsort
SELECT - col1 * - - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL - COUNT( * ) - - ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL - COUNT ( * ) - - ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col2 - + col1 + + - col0 FROM tab1 AS cor0
----
-31
-70
31

query I rowsort
SELECT col1 + + + 57 AS col2 FROM tab1
----
104
62
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT - ( + col0 ) + - ( - col2 ) DIV ( - ( - col2 ) ) col1 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8914
SELECT - ( + col0 ) + - ( - col2 ) / ( - ( - col2 ) ) col1 FROM tab1
----
-50
-84
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT ALL + COUNT( * ) * 73 * - + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL + COUNT ( * ) * 73 * - + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT DISTINCT - 46 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT - 46 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + + 6 AS col2 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8918
SELECT col1, col1 DIV col1 * - - 53 AS col1 FROM tab2 AS cor0
----
51
53
67
53
77
53

skipif mysql # not compatible
query II rowsort label-8918
SELECT col1, col1 / col1 * - - 53 AS col1 FROM tab2 AS cor0
----
51
53
67
53
77
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT ALL - 65 * ( + - 44 ) DIV + 3 AS col0 FROM tab1 AS cor0
----
953
953
953

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL - 65 * ( + - 44 ) / + 3 AS col0 FROM tab1 AS cor0
----
953
953
953

query II rowsort
SELECT + + col0, col0 * + - 45 FROM tab0 AS cor0
----
15
-675
87
-3915
97
-4365

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL + + MIN( 5 ) AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL + + MIN ( 5 ) AS col1 FROM tab0 AS cor0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8922
SELECT + CAST( NULL AS DECIMAL ) / + col1 FROM tab1 WHERE NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8922
SELECT + CAST ( NULL AS REAL ) / + col1 FROM tab1 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( + col0 ) <> 26 + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE 3 NOT BETWEEN + col1 AND ( - ( 63 ) * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * 9 FROM tab1 WHERE - 76 / col1 BETWEEN + col2 AND ( - col1 - col1 )
----

query I rowsort
SELECT 2 - + col1 * - col0 AS col0 FROM tab2
----
2348
4930
5027

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT 40 + COUNT( * ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-8927
SELECT 40 + COUNT ( * ) AS col2 FROM tab1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT CAST( + 54 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8928
SELECT CAST ( + 54 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT col1 - - col2 * + col0 AS col1 FROM tab0
----
786
891
9604

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8931
SELECT DISTINCT + CAST( NULL AS SIGNED ) - CAST( + col0 AS DECIMAL ) AS col0 FROM tab0 WHERE NOT ( 72 + - col0 ) < col1
----

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - CAST ( + col0 AS REAL ) AS col0 FROM tab0 WHERE NOT ( 72 + - col0 ) < col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT ALL CAST( + 55 AS SIGNED ) AS col2 FROM tab0
----
55
55
55

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

query I rowsort
SELECT ALL + col2 * - col2 FROM tab2 WHERE NOT NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 95 * - 99 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8938
SELECT * FROM tab1 WHERE NOT - CAST( col0 AS SIGNED ) = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8938
SELECT * FROM tab1 WHERE NOT - CAST ( col0 AS INTEGER ) = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT COUNT( * ) + 54 AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT COUNT ( * ) + 54 AS col2 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT - SUM( ALL - ( - 57 ) ) AS col0 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-8940
SELECT - SUM ( ALL - ( - 57 ) ) AS col0 FROM tab2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - SUM( + 74 ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-8941
SELECT - SUM ( + 74 ) FROM tab1
----
-222

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT col0 + 49 BETWEEN ( NULL ) AND ( col2 )
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + col1 - 39
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8944
SELECT * FROM tab1 WHERE + CAST( NULL AS DECIMAL ) <> 31 + col2
----

skipif mysql # not compatible
query III rowsort label-8944
SELECT * FROM tab1 WHERE + CAST ( NULL AS REAL ) <> 31 + col2
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + 31 NOT BETWEEN NULL AND + 51 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT 36 + - COUNT( * ) * 15 AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8946
SELECT 36 + - COUNT ( * ) * 15 AS col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT COUNT( * ) + - 91 FROM tab2 WHERE NOT NULL <= NULL
----
-91

skipif mysql # not compatible
query I rowsort label-8947
SELECT COUNT ( * ) + - 91 FROM tab2 WHERE NOT NULL <= NULL
----
-91

query III rowsort
SELECT * FROM tab0 WHERE - 43 / col1 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - col1 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 58 * - 54 + + col1 * 23 ) IS NOT NULL
----

query I rowsort
SELECT + AVG ( ALL + col0 ) FROM tab0 cor0 WHERE ( 60 + col1 ) BETWEEN + col1 AND - col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 79 + col0 NOT IN ( + col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT + MAX( col0 ) AS col1 FROM tab2 WHERE NOT ( - 37 + - 45 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + MAX ( col0 ) AS col1 FROM tab2 WHERE NOT ( - 37 + - 45 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT ALL - MIN( - ( col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL - MIN ( - ( col0 ) ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT DISTINCT + - col1 + ( - CAST( col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT + - col1 + ( - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT + 38 - col0 FROM tab2 AS cor0
----
-26
-37
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT - SUM( DISTINCT ( 91 ) ) - 15 FROM tab2 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT - SUM ( DISTINCT ( 91 ) ) - 15 FROM tab2 AS cor0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL + 29 - + COUNT( * ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL + 29 - + COUNT ( * ) FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col2 - + 66 FROM tab1
----
-125
-134
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT + 13 - SUM( ALL col0 ) AS col2 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT + 13 - SUM ( ALL col0 ) AS col2 FROM tab0
----
-186

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 * - ( ( - 83 ) ) - col2 ) NOT IN ( 24 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 80 - + - 96 + + ( - col1 ) * 17 FROM tab1
----
-62
-623
91

query I rowsort
SELECT col0 - - col2 - - col2 FROM tab0
----
107
109
295

query I rowsort
SELECT 59 * + 95 AS col0 FROM tab2
----
5605
5605
5605

query I rowsort
SELECT + 17 AS col1 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
17
17
17

query I rowsort
SELECT DISTINCT col2 * + - 38 FROM tab1
----
-2242
-2584
-3648

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT - col0 DIV + 36 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8968
SELECT - col0 / + 36 AS col0 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 WHERE - col2 IS NOT NULL OR ( + col1 * + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8970
SELECT CAST( COUNT( * ) AS SIGNED ) DIV - 34 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8970
SELECT CAST ( COUNT ( * ) AS INTEGER ) / - 34 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab0 AS cor0 WHERE col1 + - col1 >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT DISTINCT col0 * + CAST( 4 * + 19 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE 15 * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT col0 * + CAST ( 4 * + 19 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE 15 * - col1 IS NULL
----

query I rowsort
SELECT + + 10 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT ( + col1 ) > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8975
SELECT - - 82 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8975
SELECT - - 82 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8976
SELECT - CAST( + MAX( + col0 ) AS SIGNED ) * 0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8976
SELECT - CAST ( + MAX ( + col0 ) AS INTEGER ) * 0 FROM tab2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8978
SELECT 79, - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
79
15
79
87
79
97

skipif mysql # not compatible
query II rowsort label-8978
SELECT 79, - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
79
15
79
87
79
97

query I rowsort
SELECT DISTINCT - - 63 AS col2 FROM tab2 cor0
----
63

query I rowsort
SELECT DISTINCT col0 * col0 * col1 * - col0 FROM tab1 AS cor0
----
-1857114
-3070625
-35417837

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT DISTINCT - + 40 * col2 DIV + col1 FROM tab0 AS cor0
----
-19
-23
-3960

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT - + 40 * col2 / + col1 FROM tab0 AS cor0
----
-19
-23
-3960

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

query II rowsort
SELECT ALL - 79 * - 46 AS col0, col2 AS col2 FROM tab2
----
3634
23
3634
40
3634
58

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * col0 * + + col2 AS col0 FROM tab2
----
197120
291450
53958

query III rowsort
SELECT * FROM tab2 WHERE ( + + col0 ) NOT BETWEEN NULL AND 35 * - col2 + 78 * col0
----

query I rowsort
SELECT + col1 + + 1 * - col0 AS col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT - col2 + - + col1 * - 63 + + - col0 * 81 AS col2 FROM tab1
----
-3345
-4478
-6629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + 30 col2 FROM tab1
----
-1770
-2040
-2880

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + col2 * - - col2 + col1 + col2 FROM tab2
----
1757
3547
626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT DISTINCT + ( + - CAST( col0 AS SIGNED ) ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + ( + - CAST ( col0 AS INTEGER ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL COUNT( * ) + 23 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL COUNT ( * ) + 23 FROM tab1
----
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < - 55 * 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL MIN( - + col0 ) + - MAX( ALL 16 ) FROM tab1 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL MIN ( - + col0 ) + - MAX ( ALL 16 ) FROM tab1 AS cor0
----
-107

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 >= 96
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 BETWEEN + 54 AND + - col2 * - col1
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT col2 <> ( + col2 + - 14 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 + - + col0 ) < + 39 + - 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 24 + - col2 AS col1 FROM tab1 WHERE ( 89 * - col1 ) NOT IN ( ( - col0 ) * col2 ) OR NULL NOT BETWEEN col1 AND ( NULL )
----
-35
-44
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT DISTINCT + MAX( ALL + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT + MAX ( ALL + col2 ) AS col0 FROM tab0
----
99

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

query I rowsort
SELECT + 52 + + 66 + col2 + + col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + col0 ) <= - 70 * - - 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL + - MIN( - col2 ) + 27 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + - MIN ( - col2 ) + 27 FROM tab2 AS cor0
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9008
SELECT col0 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) + - - col1 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9008
SELECT col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) + - - col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL + 20 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL + 20 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9010
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / col0 + 18 col1, + 31 + + 50 + + col1 * 79 FROM tab1 AS cor0
----
NULL
1187
NULL
3794
NULL
476

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9010
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / col0 + 18 col1, + 31 + + 50 + + col1 * 79 FROM tab1 AS cor0
----
NULL
1187
NULL
3794
NULL
476

query I rowsort
SELECT DISTINCT + ( ( + 38 ) ) - - - col1 AS col1 FROM tab0 AS cor0
----
-43
17
37

query I rowsort
SELECT 52 + + + 45 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT col2 * - - 50 + + 57 FROM tab1 AS cor0
----
3007
3457
4857

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 39 IS NULL
----

query I rowsort
SELECT ALL - col0 * - col0 + + col2 + + 16 AS col1 FROM tab0 AS cor0
----
288
7595
9524

query I rowsort
SELECT DISTINCT + 1 - + col0 + - col1 FROM tab0 AS cor0
----
-107
-95
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9018
SELECT DISTINCT + - SUM( ALL - - col0 ) DIV - 44 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT + - SUM ( ALL - - col0 ) / - 44 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9019
SELECT DISTINCT + 93 AS col1, COUNT( * ) FROM tab2
----
93
3

skipif mysql # not compatible
query II rowsort label-9019
SELECT DISTINCT + 93 AS col1, COUNT ( * ) FROM tab2
----
93
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT COUNT( * ) * + 65 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-9020
SELECT COUNT ( * ) * + 65 FROM tab1
----
195

query I rowsort
SELECT ALL 78 AS col1 FROM tab2 WHERE NOT + col0 + + - 60 >= + col0 + - - col0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT - + ( - - CAST( NULL AS SIGNED ) ) - + ( - 90 ) + - ( 66 ) * col0 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9022
SELECT - + ( - - CAST ( NULL AS INTEGER ) ) - + ( - 90 ) + - ( 66 ) * col0 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9023
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9023
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-9024
SELECT + ( - - 14 ) col2, COUNT( * ) FROM tab2
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9024
SELECT + ( - - 14 ) col2, COUNT ( * ) FROM tab2
----
14
3

query I rowsort
SELECT DISTINCT + 76 * col2 FROM tab1 AS cor0
----
4484
5168
7296

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <= + + 3
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9027
SELECT ALL 50 * CAST( NULL AS SIGNED ) * + col0, 99 * + ( - col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
-120285
NULL
-180873
NULL
-9603

skipif mysql # not compatible
query II rowsort label-9027
SELECT ALL 50 * CAST ( NULL AS INTEGER ) * + col0, 99 * + ( - col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
-120285
NULL
-180873
NULL
-9603

query I rowsort
SELECT DISTINCT - 7 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
3474
4617
9209

query I rowsort
SELECT - + 57 + col2 * - col2 FROM tab0 AS cor0
----
-157
-2266
-9858

query I rowsort
SELECT ALL - 77 * - col1 AS col1 FROM tab0 AS cor0
----
1617
6237
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) = - 34 )
----

query I rowsort
SELECT + 94 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 33 + - 0 AND - - ( + ( - ( + col0 ) ) ) * - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT - + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT - + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----
0

query I rowsort
SELECT ALL col2 * + 29 AS col0 FROM tab1
----
1711
1972
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT + 0 DIV + 32 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9035
SELECT + 0 / + 32 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT + SUM( + + 79 ) FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-9036
SELECT + SUM ( + + 79 ) FROM tab2
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT ALL col2 * - - CAST( NULL AS SIGNED ) FROM tab1 WHERE ( col0 - + col1 ) IS NOT NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT + 81 * - + 8 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-648
-648
-648

query I rowsort
SELECT ALL - 52 * - col0 + + - ( - col2 ) FROM tab1 AS cor0
----
2748
4479
4800

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9042
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NULL OR + 73 * + CAST( + 13 AS SIGNED ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif mysql # not compatible
query IIIIII rowsort label-9042
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NULL OR + 73 * + CAST ( + 13 AS INTEGER ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT + ( + + MAX( DISTINCT - col0 ) ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9043
SELECT + ( + + MAX ( DISTINCT - col0 ) ) AS col1 FROM tab2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT ( - + 19 ) DIV col2 AS col1 FROM tab1
----
0
0
0

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

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( + col1 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 57 * + 48 + + ( 23 ) FROM tab0 AS cor0
----
2759
2759
2759

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( col0, - col0 * 51 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 + - ( + 38 ), - col1, - col0 + + 13 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT ALL + 2 AS col2 FROM tab0 WHERE + + 61 - + CAST( NULL AS SIGNED ) = col2
----

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL + 2 AS col2 FROM tab0 WHERE + + 61 - + CAST ( NULL AS INTEGER ) = col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 50, 41 )
----

query I rowsort
SELECT - 5 * - col2 * + col0 * - - col1 AS col2 FROM tab2
----
1457250
269790
985600

query I rowsort
SELECT DISTINCT 19 * + col1 * col0 * - - 81 AS col0 FROM tab2
----
3610494
7584192
7733475

query I rowsort
SELECT DISTINCT ( col0 ) / 34 + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - col1 FROM tab1 WHERE NOT - - 6 >= 42
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + col2 * + 57 BETWEEN - 42 AND + + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9058
SELECT DISTINCT col2 AS col0, - CAST( NULL AS SIGNED ) + 31 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9058
SELECT DISTINCT col2 AS col0, - CAST ( NULL AS INTEGER ) + 31 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT - + 26 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ALL + MAX( - + col0 ) + 14 AS col0 FROM tab2 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL + MAX ( - + col0 ) + 14 AS col0 FROM tab2 cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL + 35 + - 21 - - + SUM( ALL + col2 ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL + 35 + - 21 - - + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
237

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 93 + + 46 >= 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 95 AS col1 FROM tab0 AS cor0
----
1
95
21
95
81
95

query I rowsort
SELECT + col1 + 64 - - col0 FROM tab0 AS cor0
----
160
162
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT + col2 * + CAST( + 90 AS SIGNED ) + + col2 * + col2 AS col2 FROM tab2
----
2599
5200
8584

skipif mysql # not compatible
query I rowsort label-9066
SELECT + col2 * + CAST ( + 90 AS INTEGER ) + + col2 * + col2 AS col2 FROM tab2
----
2599
5200
8584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9067
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT DISTINCT MAX( ALL - col0 ) + COUNT( * ) AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT MAX ( ALL - col0 ) + COUNT ( * ) AS col1 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT COUNT( * ) * 4 * - + 89 FROM tab2 WHERE NULL IS NULL
----
-1068

skipif mysql # not compatible
query I rowsort label-9069
SELECT COUNT ( * ) * 4 * - + 89 FROM tab2 WHERE NULL IS NULL
----
-1068

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT - 91 + - col1 DIV col0 DIV - col2 col2 FROM tab0
----
-91
-91
-91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9071
SELECT DISTINCT - SUM( DISTINCT - - col0 ), - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-199
NULL

skipif mysql # not compatible
query II rowsort label-9071
SELECT DISTINCT - SUM ( DISTINCT - - col0 ), - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-199
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - + 25 + col2 AS col1 FROM tab1 AS cor0
----
34
43
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9074
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - MIN( DISTINCT - 7 ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - 92 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 78 * - - col0 AS col2 FROM tab2 cor0
----
-3588
-4992
-5850

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9077
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 40 NOT IN ( + col0 * + - 5 * - CAST( col0 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9077
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 40 NOT IN ( + col0 * + - 5 * - CAST ( col0 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT - 33 * - col2 * - + col1 * - col2 + + ( + ( - - col2 ) ) * + col1 * + col2 + - col2 IS NULL AND NOT ( - col1 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 11 * 31 - col0 BETWEEN + - 88 * - - 96 AND ( NULL )
----

query II rowsort
SELECT + - col0, 71 AS col2 FROM tab0 cor0
----
-15
71
-87
71
-97
71

query I rowsort
SELECT - col2 * col2 * + + col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

query II rowsort
SELECT ALL + 46, - 81 + col0 * col1 AS col1 FROM tab2 AS cor0
----
46
2265
46
4847
46
4944

query II rowsort
SELECT - 24 AS col2, 28 FROM tab0 AS cor0
----
-24
28
-24
28
-24
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT - CAST( + + 6 AS SIGNED ) FROM tab1 cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-9084
SELECT - CAST ( + + 6 AS INTEGER ) FROM tab1 cor0
----
-6
-6
-6

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9086
SELECT ALL 68 DIV + COUNT( * ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL 68 / + COUNT ( * ) FROM tab0
----
22

query III rowsort
SELECT * FROM tab2 WHERE NOT + 85 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT DISTINCT - 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - CAST( 40 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT - 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - CAST ( 40 AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9089
SELECT + col1 * + ( col0 ) * 95 + - col2 + - col1 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 29 FROM tab1 AS cor0 WHERE - 15 * - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT - - 57 + + - SUM( DISTINCT + ( - + col0 ) ) FROM tab2 AS cor0
----
242

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - - 57 + + - SUM ( DISTINCT + ( - + col0 ) ) FROM tab2 AS cor0
----
242

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT + COUNT( + - 37 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9094
SELECT + COUNT ( + - 37 ) col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9096
SELECT MAX( ALL - 3 ), - COUNT( * ) AS col1 FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9096
SELECT MAX ( ALL - 3 ), - COUNT ( * ) AS col1 FROM tab2
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT + 40 * - + COUNT( * ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-9097
SELECT + 40 * - + COUNT ( * ) FROM tab1
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9098
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + col2 + - + col1 FROM tab0
----
NULL
-11
NULL
-34
NULL
98

skipif mysql # not compatible
query II rowsort label-9098
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col2 + - + col1 FROM tab0
----
NULL
-11
NULL
-34
NULL
98

query I rowsort
SELECT ALL ( - col2 ) - + + 21 AS col0 FROM tab0 AS cor0
----
-120
-31
-68

query I rowsort
SELECT - - col0 * + 80 * + + 74 + col0 + - col0 AS col0 FROM tab0 AS cor0
----
515040
574240
88800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 - col1 col0 FROM tab2 cor0
----
-32
-48
-58

query I rowsort
SELECT DISTINCT col1 - + 70 AS col2 FROM tab2 AS cor0
----
-19
-3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT COUNT( * ) * 11 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-9103
SELECT COUNT ( * ) * 11 FROM tab1
----
33

query I rowsort
SELECT - + 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - + col2 * + ( - col2 ) FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 6 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9108
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 71 ) NOT BETWEEN - - 37 + + col0 AND + + CAST( + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9108
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 71 ) NOT BETWEEN - - 37 + + col0 AND + + CAST ( + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL SUM( DISTINCT + 62 ) * 59 + - + MIN( ALL - col1 ) - - COUNT( * ) * - COUNT( * ) FROM tab1
----
3696

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL SUM ( DISTINCT + 62 ) * 59 + - + MIN ( ALL - col1 ) - - COUNT ( * ) * - COUNT ( * ) FROM tab1
----
3696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT DISTINCT - col1 * + CAST( + 23 AS SIGNED ) AS col2 FROM tab0
----
-1863
-23
-483

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT - col1 * + CAST ( + 23 AS INTEGER ) AS col2 FROM tab0
----
-1863
-23
-483

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

onlyif mysql # DIV for integer division: 
query II rowsort label-9112
SELECT col2, + 94 DIV - - col2 AS col0 FROM tab0
----
10
9
47
2
99
0

skipif mysql # not compatible
query II rowsort label-9112
SELECT col2, + 94 / - - col2 AS col0 FROM tab0
----
10
9
47
2
99
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9113
SELECT ALL - AVG ( DISTINCT + col2 ) / CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT col1 + - 80 AS col2 FROM tab1 AS cor0
----
-33
-66
-75

query I rowsort
SELECT ALL + + 85 * 68 * - + col2 * - col2 FROM tab0 AS cor0
----
12768020
56649780
578000

query I rowsort
SELECT - 94 * + col0 AS col1 FROM tab2 AS cor0
----
-4324
-6016
-7050

query I rowsort
SELECT ( - ( col0 ) ) FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT + COUNT( * ) * + 83 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
747

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT + COUNT ( * ) * + 83 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
747

query I rowsort
SELECT + - 81 * + + col0 + - 71 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
-3137
-4034
-6530

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT - MAX( - col2 ) FROM tab1 AS cor0 WHERE 82 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT - MAX ( - col2 ) FROM tab1 AS cor0 WHERE 82 >= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9122
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + - COUNT( * ) - - CAST( - MIN( ALL - - col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT - CAST ( NULL AS REAL ) * + - COUNT ( * ) - - CAST ( - MIN ( ALL - - col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9123
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * + - col0 * - col0 * col1 * CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9123
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * + - col0 * - col0 * col1 * CAST ( col2 AS INTEGER ) AND NULL
----

query I rowsort
SELECT + col2 + + - col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL COUNT( ( - - 13 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL COUNT ( ( - - 13 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT DISTINCT 69 DIV - col1 AS col0 FROM tab0
----
-3
-69
0

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT 69 / - col1 AS col0 FROM tab0
----
-3
-69
0

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE ( - col1 / col1 * col1 / - - col0 ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT - 84 + - - col0 DIV ( col0 ) col2 FROM tab1
----
-83
-83
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9128
SELECT - 84 + - - col0 / ( col0 ) col2 FROM tab1
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT COUNT( * ) + - COUNT( * ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9129
SELECT COUNT ( * ) + - COUNT ( * ) col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL - COUNT( - - 19 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - COUNT ( - - 19 ) FROM tab1
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT ALL col2 + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT DISTINCT - SUM( ALL 43 ) AS col1 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - SUM ( ALL 43 ) AS col1 FROM tab1 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT + + SUM( - + 45 ) col1 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9134
SELECT DISTINCT + + SUM ( - + 45 ) col1 FROM tab0 AS cor0
----
-135

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 BETWEEN - col0 - - 51 + + - 64 * ( + col0 ) AND + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL + - 55 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT DISTINCT + 43 * - + col1 AS col1 FROM tab2
----
-2193
-2881
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT ALL + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9139
SELECT ALL + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 32 AS col1, 74 * + col0 * - col1 + + col2 * + col2 col1 FROM tab1
----
-32
-27969
-32
-311874
-32
-43620

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9141
SELECT + - SUM( + + col0 ) DIV - - ( 79 ), 48 AS col2 FROM tab2 cor0
----
-2
48

skipif mysql # not compatible
query II rowsort label-9141
SELECT + - SUM ( + + col0 ) / - - ( 79 ), 48 AS col2 FROM tab2 cor0
----
-2
48

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9143
SELECT - col2 * - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT col2, 80 FROM tab1 AS cor0
----
59
80
68
80
96
80

query II rowsort
SELECT 95, + col1 AS col0 FROM tab2 AS cor0
----
95
51
95
67
95
77

query I rowsort
SELECT ALL - 38 * col1 FROM tab1 AS cor0
----
-1786
-190
-532

query I rowsort
SELECT - + col2 * 55 FROM tab1 AS cor0
----
-3245
-3740
-5280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9148
SELECT - COUNT( ALL col0 ) * CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9149
SELECT DISTINCT + - COUNT( DISTINCT - + 69 ) col2, - 30 * + COUNT( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
-1
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9149
SELECT DISTINCT + - COUNT ( DISTINCT - + 69 ) col2, - 30 * + COUNT ( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
-1
-90

query I rowsort
SELECT DISTINCT - col2 * 77 AS col0 FROM tab1
----
-4543
-5236
-7392

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT DISTINCT - 12 + + col0 DIV - 82 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT - 12 + + col0 / - 82 FROM tab2 AS cor0
----
-12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 36 BETWEEN - - col1 AND ( 67 )
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NULL ) NOT BETWEEN NULL AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * - 98 col0 FROM tab2 AS cor0
----
-8918
-8918
-8918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 + - col1 col1 FROM tab0
----
-102
-162
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, - col1 + col0 col0 FROM tab0
----
10
66
47
-66
99
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT ALL CAST( + col0 AS SIGNED ) col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9157
SELECT ALL CAST ( + col0 AS INTEGER ) col2 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT + CAST( ( - - 30 ) AS SIGNED ) + + + col0 FROM tab1
----
115
121
81

skipif mysql # not compatible
query I rowsort label-9158
SELECT + CAST ( ( - - 30 ) AS INTEGER ) + + + col0 FROM tab1
----
115
121
81

query I rowsort
SELECT col0 * 1 + + col0 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9160
SELECT ALL * FROM tab1 WHERE + - col0 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9160
SELECT ALL * FROM tab1 WHERE + - col0 > + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9161
SELECT DISTINCT * FROM tab0 cor0 WHERE 49 * + col1 * + CAST( NULL AS SIGNED ) * col2 * - col2 = - + col0
----

skipif mysql # not compatible
query III rowsort label-9161
SELECT DISTINCT * FROM tab0 cor0 WHERE 49 * + col1 * + CAST ( NULL AS INTEGER ) * col2 * - col2 = - + col0
----

query I rowsort
SELECT DISTINCT 28 FROM tab2 AS cor0 WHERE ( NULL ) = + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9163
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + + col1 + - - 59 * - col2 - + 71 AS col1 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT - ( - + COUNT( * ) ) * - COUNT( * ) + + 18 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT - ( - + COUNT ( * ) ) * - COUNT ( * ) + + 18 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT ALL col0 + - ( CAST( + - ( - col2 ) AS SIGNED ) ) * col2 AS col2 FROM tab2 AS cor0
----
-1536
-3289
-483

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL col0 + - ( CAST ( + - ( - col2 ) AS INTEGER ) ) * col2 AS col2 FROM tab2 AS cor0
----
-1536
-3289
-483

query I rowsort
SELECT DISTINCT - 34 + + - 91 FROM tab1 AS cor0
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT ALL + col0 DIV col1 - col0 AS col0 FROM tab1 AS cor0
----
-48
-68
-90

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + col0 / col1 - col0 AS col0 FROM tab1 AS cor0
----
-48
-68
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT ALL + 89 DIV + - 35 * - + 47 DIV - + 36 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + 89 / + - 35 * - + 47 / - + 36 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL + COUNT( * ) - MIN( - col0 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL + COUNT ( * ) - MIN ( - col0 ) FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT MAX( - - col0 ) - 44 AS col1 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT MAX ( - - col0 ) - 44 AS col1 FROM tab2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9171
SELECT col1 - + - ( - - col0 ) * - col0 AS col1, + CAST( NULL AS SIGNED ) FROM tab1
----
-2587
NULL
-7220
NULL
-8234
NULL

skipif mysql # not compatible
query II rowsort label-9171
SELECT col1 - + - ( - - col0 ) * - col0 AS col1, + CAST ( NULL AS INTEGER ) FROM tab1
----
-2587
NULL
-7220
NULL
-8234
NULL

query I rowsort
SELECT ALL + col2 + 88 * col1 * 56 FROM tab2
----
251351
330234
379496

query II rowsort
SELECT DISTINCT + ( col2 ) AS col1, - col1 AS col2 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9174
SELECT DISTINCT + COUNT( DISTINCT - ( + 86 ) ) DIV + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT + COUNT ( DISTINCT - ( + 86 ) ) / + COUNT ( * ) AS col0 FROM tab0
----
0

query II rowsort
SELECT + col2 AS col1, 9 FROM tab1
----
59
9
68
9
96
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT 30 * col0 < + - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT 30 * col0 < + - col1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 22 - - col2 * - - ( - col2 ) NOT IN ( col2 * + - col1 - + ( col0 ) + col1 + + col1 * + 97 + 17 * - ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT + col2 < - col2
----
-3

skipif mysql # not compatible
query I rowsort label-9179
SELECT - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT + col2 < - col2
----
-3

query II rowsort
SELECT ALL + 18, - ( + col2 ) AS col2 FROM tab1
----
18
-59
18
-68
18
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT DISTINCT - 4 * col0 DIV - col1 FROM tab1
----
14
68
7

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT - 4 * col0 / - col1 FROM tab1
----
14
68
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL COUNT( DISTINCT col0 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9183
SELECT ALL COUNT ( DISTINCT col0 ) col2 FROM tab1
----
3

query I rowsort
SELECT ALL - 65 + - col2 AS col1 FROM tab0
----
-112
-164
-75

query I rowsort
SELECT + 33 + col0 AS col1 FROM tab2
----
108
79
97

query I rowsort
SELECT 92 + col2 - - col0 AS col1 FROM tab0
----
154
189
288

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9187
SELECT * FROM tab2 WHERE NULL <= - - 48 - + - CAST( 34 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9187
SELECT * FROM tab2 WHERE NULL <= - - 48 - + - CAST ( 34 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 95 * - + col2 * - + col1 + + col1 - - - col1 AS col0 FROM tab0 AS cor0
----
-19950
-361665
-9405

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL + COUNT( * ) * + + 50 + COUNT( * ) - - 77 AS col0 FROM tab2, tab0 AS cor0 WHERE NOT NULL >= + 14
----
77

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + COUNT ( * ) * + + 50 + COUNT ( * ) - - 77 AS col0 FROM tab2, tab0 AS cor0 WHERE NOT NULL >= + 14
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9192
SELECT ALL COUNT( * ) DIV - + CAST( 85 AS SIGNED ) FROM tab2, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL COUNT ( * ) / - + CAST ( 85 AS INTEGER ) FROM tab2, tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + + col0 + 84 FROM tab0 AS cor0 WHERE NULL < 11
----

query I rowsort
SELECT ALL + - 21 - - 43 + + 55 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9196
SELECT col2 + CAST( NULL AS DECIMAL ) - - - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9197
SELECT col0 FROM tab2 AS cor0 WHERE ( - CAST( 63 AS DECIMAL ) * - ( col0 ) ) NOT IN ( - col2 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9197
SELECT col0 FROM tab2 AS cor0 WHERE ( - CAST ( 63 AS REAL ) * - ( col0 ) ) NOT IN ( - col2 )
----
46
64
75

query I rowsort
SELECT DISTINCT + + col2 + 95 + + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-2425
-4197
-940

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9199
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 8 <> - 73 - - ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9199
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 8 <> - 73 - - ( CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT - MIN( + col2 ) * - - 51 * + + 46 * - 18 AS col0 FROM tab2
----
971244

skipif mysql # not compatible
query I rowsort label-9200
SELECT - MIN ( + col2 ) * - - 51 * + + 46 * - 18 AS col0 FROM tab2
----
971244

query I rowsort
SELECT DISTINCT + col1 - + 68 FROM tab0
----
-47
-67
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT + MAX( ALL col2 ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT + MAX ( ALL col2 ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT - 71, col0 AS col0 FROM tab2
----
-71
46
-71
64
-71
75

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <> 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 * - - col1 col0 FROM tab2
----
459
603
693

query I rowsort
SELECT - col2 * - + 75 AS col0 FROM tab2
----
1725
3000
4350

query I rowsort
SELECT DISTINCT - 33 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT ALL + col2 DIV + 44 AS col1 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL + col2 / + 44 AS col1 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9209
SELECT + - ( - - CAST( - + 91 AS SIGNED ) ), + 74 + col0 AS col2 FROM tab0 AS cor0
----
91
161
91
171
91
89

skipif mysql # not compatible
query II rowsort label-9209
SELECT + - ( - - CAST ( - + 91 AS INTEGER ) ), + 74 + col0 AS col2 FROM tab0 AS cor0
----
91
161
91
171
91
89

query II rowsort
SELECT + col0, 86 * + col1 FROM tab2 AS cor0
----
46
4386
64
6622
75
5762

query I rowsort
SELECT DISTINCT 64 * - + col2 * - 82 AS col2 FROM tab0
----
246656
519552
52480

query I rowsort
SELECT + + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - COUNT( * ) * - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9213
SELECT - COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT + + SUM( DISTINCT - col2 ) + - COUNT( * ) * - 50 AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9214
SELECT + + SUM ( DISTINCT - col2 ) + - COUNT ( * ) * - 50 AS col1 FROM tab0 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-9215
SELECT DISTINCT - 67 DIV - col1, col0 FROM tab0 AS cor0
----
0
15
3
87
67
97

skipif mysql # not compatible
query II rowsort label-9215
SELECT DISTINCT - 67 / - col1, col0 FROM tab0 AS cor0
----
0
15
3
87
67
97

query I rowsort
SELECT ALL + 74 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT col0 * - - col2 * - col0 + + col2 + + 58 AS col2 FROM tab1 AS cor0
----
-249542
-426158
-562982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT - CAST( NULL AS SIGNED ) + + - CAST( + ( - COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9219
SELECT + CAST( NULL AS SIGNED ) + + col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9219
SELECT + CAST ( NULL AS INTEGER ) + + col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT DISTINCT - 51 * col2 FROM tab0 AS cor0 WHERE NOT NULL > 8 + 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9221
SELECT * FROM tab1 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9221
SELECT * FROM tab1 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 + + col1 FROM tab2 WHERE ( - + 7 + - col0 ) > - 55
----
0

query II rowsort
SELECT col2 AS col0, col1 * - - col1 FROM tab1
----
59
25
68
2209
96
196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9224
SELECT DISTINCT * FROM tab0 WHERE + - 48 BETWEEN + + CAST( NULL AS SIGNED ) AND col2
----

skipif mysql # not compatible
query III rowsort label-9224
SELECT DISTINCT * FROM tab0 WHERE + - 48 BETWEEN + + CAST ( NULL AS INTEGER ) AND col2
----

query I rowsort
SELECT ALL ( + col0 ) * - col2 + - - col0 + + col0 * + - col1 * col1 - 15 AS col0 FROM tab2
----
-120673
-340965
-381967

query I rowsort
SELECT - 65 * + 61 AS col0 FROM tab0 AS cor0
----
-3965
-3965
-3965

query I rowsort
SELECT - col0 + - - col1 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL + ( col1 ) + + + col1 FROM tab0 AS cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 col2 FROM tab1 cor0
----
14
51
47
91
5
85

query I rowsort
SELECT 41 + + + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT ALL + col2 * + 46 + + + CAST( NULL AS SIGNED ) + - CAST( - 97 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - + 2 + + + 60 AS col0 FROM tab1 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9233
SELECT DISTINCT 3 DIV - + 55 - 60 DIV 3 - - col2 FROM tab0 AS cor0
----
-10
27
79

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT 3 / - + 55 - 60 / 3 - - col2 FROM tab0 AS cor0
----
-10
27
79

query I rowsort
SELECT ALL - col0 * - 35 * + 22 FROM tab0
----
11550
66990
74690

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 72 * - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9236
SELECT ALL CAST( + 36 AS SIGNED ) * col0 + col0 FROM tab2
----
1702
2368
2775

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL CAST ( + 36 AS INTEGER ) * col0 + col0 FROM tab2
----
1702
2368
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT MAX( ALL - + col2 ) * - COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT MAX ( ALL - + col2 ) * - COUNT ( * ) FROM tab1
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT + col1 * CAST( - 80 AS SIGNED ) AS col1 FROM tab2
----
-4080
-5360
-6160

skipif mysql # not compatible
query I rowsort label-9238
SELECT + col1 * CAST ( - 80 AS INTEGER ) AS col1 FROM tab2
----
-4080
-5360
-6160

query I rowsort
SELECT ALL - 9 * - col0 * - 14 AS col0 FROM tab2
----
-5796
-8064
-9450

onlyif mysql # DIV for integer division: 
query I rowsort label-9240
SELECT - 88 DIV + col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-9240
SELECT - 88 / + col0 FROM tab0
----
-1
-5
0

query I rowsort
SELECT - 24 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + col0 + - ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 80 FROM tab0 AS cor0 WHERE - col2 >= - + col1
----
1680
6480

query I rowsort
SELECT - + ( + + 10 ) AS col1 FROM tab2 AS cor0
----
-10
-10
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT DISTINCT - + SUM( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT - + SUM ( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT ALL - col2 AS col1, col2 * - - col1 FROM tab0 cor0
----
-10
210
-47
3807
-99
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> - col0 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> - col0 * + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT 58 + - ( col0 ) - - 91 AS col2 FROM tab2 AS cor0 WHERE NULL >= 21 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9250
SELECT 58 + - ( col0 ) - - 91 AS col2 FROM tab2 AS cor0 WHERE NULL >= 21 * - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - + col0 + + 71 AS col0 FROM tab0 AS cor0
----
-16
-26
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9252
SELECT - AVG ( + col2 ) * + CAST( NULL AS SIGNED ) + + COUNT( col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT - AVG ( + col2 ) * + CAST ( NULL AS INTEGER ) + + COUNT ( col2 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT SUM( 85 ) + + SUM( - - col1 ) * ( + 45 ) col1 FROM tab1
----
3225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9253
SELECT SUM ( 85 ) + + SUM ( - - col1 ) * ( + 45 ) col1 FROM tab1
----
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT + 41 + + COUNT( DISTINCT - + col2 ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9254
SELECT + 41 + + COUNT ( DISTINCT - + col2 ) FROM tab1
----
44

query I rowsort
SELECT ALL + col0 * 91 FROM tab2
----
4186
5824
6825

query I rowsort
SELECT - col0 + + col2 + - col2 * col0 FROM tab2
----
-1081
-2584
-4367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT CAST( NULL AS SIGNED ) + + 51 / - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT CAST ( NULL AS INTEGER ) + + 51 / - + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT - MIN( - 42 ) + - 58 AS col1 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-9258
SELECT - MIN ( - 42 ) + - 58 AS col1 FROM tab1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT + + COUNT( * ), - 88 AS col0 FROM tab0 WHERE + col1 IS NULL
----
0
-88

skipif mysql # not compatible
query II rowsort label-9259
SELECT + + COUNT ( * ), - 88 AS col0 FROM tab0 WHERE + col1 IS NULL
----
0
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT col2 + + 6 + - + col0 + 49 DIV ( - - col1 ) DIV + 48 FROM tab0 AS cor0 WHERE 59 IS NOT NULL
----
-71
38
9

skipif mysql # not compatible
query I rowsort label-9260
SELECT col2 + + 6 + - + col0 + 49 / ( - - col1 ) / + 48 FROM tab0 AS cor0 WHERE 59 IS NOT NULL
----
-71
38
9

query I rowsort
SELECT DISTINCT col0 * ( + + 45 ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col1 FROM tab2
----
38
38
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT ALL SUM( + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9263
SELECT ALL SUM ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( + 16 ) AS col2 FROM tab0 cor0
----
16
16
16

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9266
SELECT DISTINCT - col0 AS col0, - col0 DIV col2 FROM tab2
----
-46
-2
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-9266
SELECT DISTINCT - col0 AS col0, - col0 / col2 FROM tab2
----
-46
-2
-64
-1
-75
-1

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE + ( - + 85 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT ( + CAST( NULL AS SIGNED ) ) * + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT ( + CAST ( NULL AS INTEGER ) ) * + + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 90
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9271
SELECT 18 AS col0, col0 DIV - col1 FROM tab2 AS cor0
----
18
-1
18
0
18
0

skipif mysql # not compatible
query II rowsort label-9271
SELECT 18 AS col0, col0 / - col1 FROM tab2 AS cor0
----
18
-1
18
0
18
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 > col1 * col0 + + col1 + - + col0
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + col1 + - 81 + + + 92 FROM tab2 AS cor0
----
62
78
88

query II rowsort
SELECT DISTINCT + 89, + col0 + - 7 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL >= + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT + col2 DIV + col1 + - 87 FROM tab0 AS cor0
----
-87
-87
12

skipif mysql # not compatible
query I rowsort label-9275
SELECT + col2 / + col1 + - 87 FROM tab0 AS cor0
----
-87
-87
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( + - col2 ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT ALL col1 * 81 DIV - - col0 + - col1 FROM tab2 AS cor0
----
20
38
5

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL col1 * 81 / - - col0 + - col1 FROM tab2 AS cor0
----
20
38
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9278
SELECT DISTINCT ( + col0 ) / + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9278
SELECT DISTINCT ( + col0 ) / + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 56, col0 * 4 col1 FROM tab0
----
56
348
56
388
56
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9281
SELECT - col0, CAST( + - col0 AS SIGNED ) FROM tab1
----
-51
-51
-85
-85
-91
-91

skipif mysql # not compatible
query II rowsort label-9281
SELECT - col0, CAST ( + - col0 AS INTEGER ) FROM tab1
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT - col1 * + col1 * - col1 - - col0 + + col1 * col0 - col0 AS col2 FROM tab1
----
108100
3458
550

query I rowsort
SELECT col0 - - + ( + - 53 ) AS col2 FROM tab1
----
-2
32
38

query I rowsort
SELECT ( + 7 ) + - + 97 + + col2 - - + col1 * + 76 + col1 * 49 * - 24 - + + 68 FROM tab2
----
-56235
-73800
-84818

query I rowsort
SELECT DISTINCT ( - - ( + - 46 ) ) AS col0 FROM tab0 AS cor0
----
-46

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> + col1 + - col1 * ( - col1 ) * + - 46
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + + col0 * col2 IS NULL OR ( NOT NULL > ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - ( - - MIN( + + col0 ) ) AS col1 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9288
SELECT - ( - - MIN ( + + col0 ) ) AS col1 FROM tab0 cor0
----
-15

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, - col1 AS col0 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT MIN( + 19 ) col1 FROM tab0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9291
SELECT MIN ( + 19 ) col1 FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9292
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-3

query I rowsort
SELECT 91 * - - col1 AS col2 FROM tab2
----
4641
6097
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL 77 - + + COUNT( + 7 ) AS col0 FROM tab1 WHERE col1 + + 89 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL 77 - + + COUNT ( + 7 ) AS col0 FROM tab1 WHERE col1 + + 89 IS NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT 41 * COUNT( * ) col2 FROM tab1 cor0
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9295
SELECT 41 * COUNT ( * ) col2 FROM tab1 cor0
----
123

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 16 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * 1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL + 4 + + COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + 4 + + COUNT ( * ) FROM tab0
----
7

query I rowsort
SELECT DISTINCT - 77 + - col0 FROM tab1
----
-128
-162
-168

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 50 AND + 60 + ( - + 94 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9302
SELECT ALL + SUM( DISTINCT - + col2 ) * + - SUM( ALL + 68 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + SUM ( DISTINCT - + col2 ) * + - SUM ( ALL + 68 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + col2 * + - 45 FROM tab1 AS cor0
----
-2714
-3128
-4416

query I rowsort
SELECT ( + col1 ) * 18 + - + col0 + col1 FROM tab1
----
10
215
802

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT - col1 DIV + col1 + - + col0 * - + 65 FROM tab0
----
5654
6304
974

skipif mysql # not compatible
query I rowsort label-9305
SELECT - col1 / + col1 + - + col0 * - + 65 FROM tab0
----
5654
6304
974

query I rowsort
SELECT + 51 + 91 AS col2 FROM tab2
----
142
142
142

query I rowsort
SELECT DISTINCT col0 + col0 - - col1 + - col0 + + 45 FROM tab0
----
141
143
153

query I rowsort
SELECT DISTINCT - - 36 * - + col2 * - - col1 + - + col0 FROM tab2 WHERE + - 42 >= + + 40
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9309
SELECT DISTINCT 63 DIV 61 + - - COUNT( DISTINCT + - 11 ) AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT 63 / 61 + - - COUNT ( DISTINCT + - 11 ) AS col0 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - - COUNT( * ) * + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + 24
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9310
SELECT - - COUNT ( * ) * + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + 24
----
0

query I rowsort
SELECT + + col1 - + ( - col2 ) AS col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE + 18 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + + ( - col1 ) + - + col0 + + - 64 AS col1 FROM tab0 AS cor0
----
-160
-162
-172

query II rowsort
SELECT ALL 67 AS col2, + col1 FROM tab1
----
67
14
67
47
67
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9315
SELECT - CAST( - + col2 AS SIGNED ) * CAST( NULL AS SIGNED ), 92 AS col1 FROM tab0 AS cor0
----
NULL
92
NULL
92
NULL
92

skipif mysql # not compatible
query II rowsort label-9315
SELECT - CAST ( - + col2 AS INTEGER ) * CAST ( NULL AS INTEGER ), 92 AS col1 FROM tab0 AS cor0
----
NULL
92
NULL
92
NULL
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col0 FROM tab1 cor0
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9317
SELECT DISTINCT 22 DIV CAST( - - ( - 14 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT 22 / CAST ( - - ( - 14 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL MAX( ALL + 98 ) * - + MIN( ALL col2 ) FROM tab1 cor0 WHERE NOT ( - + col0 / - - col1 NOT BETWEEN col2 AND - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL MAX ( ALL + 98 ) * - + MIN ( ALL col2 ) FROM tab1 cor0 WHERE NOT ( - + col0 / - - col1 NOT BETWEEN col2 AND - + col0 )
----
NULL

query II rowsort
SELECT - col0, 66 AS col2 FROM tab2 AS cor0
----
-46
66
-64
66
-75
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT - MIN( ALL - 79 ) AS col0 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9320
SELECT - MIN ( ALL - 79 ) AS col0 FROM tab2 AS cor0
----
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9322
SELECT DISTINCT - CAST( 36 AS SIGNED ) AS col2, col1 AS col1 FROM tab1
----
-36
14
-36
47
-36
5

skipif mysql # not compatible
query II rowsort label-9322
SELECT DISTINCT - CAST ( 36 AS INTEGER ) AS col2, col1 AS col1 FROM tab1
----
-36
14
-36
47
-36
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT ALL MIN( DISTINCT + + 35 ) AS col0 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL MIN ( DISTINCT + + 35 ) AS col0 FROM tab1
----
35

query I rowsort
SELECT ALL + col1 + + 69 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 60 AND - 79
----

query I rowsort
SELECT ALL + + col0 * + 43 + - col2 AS col2 FROM tab2 AS cor0 WHERE - 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT - - ( - + ( + - COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9327
SELECT - - ( - + ( + - COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9328
SELECT DISTINCT - 15 + - - 90 * + + CAST( NULL AS DECIMAL ) col2, - 38 + CAST( + AVG ( ALL + 75 ) AS SIGNED ) FROM tab0 cor0
----
NULL
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9328
SELECT DISTINCT - 15 + - - 90 * + + CAST ( NULL AS REAL ) col2, - 38 + CAST ( + AVG ( ALL + 75 ) AS INTEGER ) FROM tab0 cor0
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT - ( - + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9329
SELECT - ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT - + COUNT( ALL 71 ) - - 92 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - + COUNT ( ALL 71 ) - - 92 FROM tab2 AS cor0
----
89

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 - col1 + + col2 FROM tab1
----
112
133
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT 36 * + - COUNT( + ( col0 ) ) AS col0 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-9333
SELECT 36 * + - COUNT ( + ( col0 ) ) AS col0 FROM tab2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL + MIN( - 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL + MIN ( - 96 ) FROM tab0
----
-96

query III rowsort
SELECT * FROM tab0 WHERE - 9 > - - 51
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT + ( - - col0 ) * - col2 - + col0 DIV + 18 AS col0 FROM tab1
----
-4898
-5019
-6193

skipif mysql # not compatible
query I rowsort label-9336
SELECT + ( - - col0 ) * - col2 - + col0 / + 18 AS col0 FROM tab1
----
-4898
-5019
-6193

query II rowsort
SELECT - col2 - - col1 AS col2, - 17 AS col0 FROM tab2
----
28
-17
37
-17
9
-17

query I rowsort
SELECT - col2 - - col1 * + 9 FROM tab0
----
-90
179
682

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - MIN( DISTINCT + 23 ) + - - 95 AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-9339
SELECT - MIN ( DISTINCT + 23 ) + - - 95 AS col1 FROM tab1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT col2 + + col1 - + col1 * col0 + + - col2 + + 46 + - CAST( NULL AS SIGNED ) + - col1 / ( - col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT col2 + + col1 - + col1 * col0 + + - col2 + + 46 + - CAST ( NULL AS INTEGER ) + - col1 / ( - col0 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 26 + 32 + - - 7 AS col2 FROM tab1
----
-20
-26
14

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query I rowsort label-9343
SELECT + 2 DIV + 95 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9343
SELECT + 2 / + 95 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + + col1 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN - 28 AND 46
----
46
51
23

query II rowsort
SELECT DISTINCT col1, col1 * + 92 * + - 72 AS col0 FROM tab2
----
51
-337824
67
-443808
77
-510048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 * - col0 col1 FROM tab1
----
1581
2635
2821

query II rowsort
SELECT + col0 AS col1, 82 FROM tab1
----
51
82
85
82
91
82

query II rowsort
SELECT 80 AS col1, 2 * + 51 FROM tab2
----
80
102
80
102
80
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT + MIN( DISTINCT 83 ) + - ( + COUNT( - col2 ) ) col0 FROM tab1
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9351
SELECT + MIN ( DISTINCT 83 ) + - ( + COUNT ( - col2 ) ) col0 FROM tab1
----
80

query I rowsort
SELECT - col1 + - col2 + + 3 FROM tab0 cor0
----
-125
-28
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NOT 8 * + col1 NOT BETWEEN NULL AND ( - col0 * - col2 + + CAST( - col1 AS SIGNED ) * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NOT 8 * + col1 NOT BETWEEN NULL AND ( - col0 * - col2 + + CAST ( - col1 AS INTEGER ) * col1 )
----
0

query I rowsort
SELECT ALL col0 * + 48 FROM tab2
----
2208
3072
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT MAX( DISTINCT 67 ) * 99 AS col2 FROM tab2
----
6633

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT MAX ( DISTINCT 67 ) * 99 AS col2 FROM tab2
----
6633

query I rowsort
SELECT col0 - 12 AS col2 FROM tab2
----
34
52
63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / 86 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT col0 - CAST( + col1 AS SIGNED ) col1 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9358
SELECT col0 - CAST ( + col1 AS INTEGER ) col1 FROM tab2
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 WHERE NOT col2 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - ( ( 60 ) ) * col1 FROM tab1
----
-2820
-300
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT ALL - col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) < + col1
----

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 WHERE NULL BETWEEN + 11 AND 73
----

query III rowsort
SELECT * FROM tab0 WHERE 13 >= NULL
----

query I rowsort
SELECT - col1 * 34 FROM tab2
----
-1734
-2278
-2618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT CAST( + col1 AS SIGNED ) * - col1 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-9365
SELECT CAST ( + col1 AS INTEGER ) * - col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9366
SELECT 93 * SUM( DISTINCT col2 DIV + 43 ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-9366
SELECT 93 * SUM ( DISTINCT col2 / + 43 ) FROM tab1
----
279

query I rowsort
SELECT 26 / + ( + 34 ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - ( + col1 ) - 14 FROM tab0
----
-15
-35
-95

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT DISTINCT - 8 * COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT - 8 * COUNT ( * ) FROM tab1
----
-24

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( + 13 ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 84 + 38 AS col2 FROM tab1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - MIN( - col1 ) * 8 AS col1 FROM tab2 WHERE NOT + 3 NOT IN ( - ( col2 ) * ( col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT - MIN ( - col1 ) * 8 AS col1 FROM tab2 WHERE NOT + 3 NOT IN ( - ( col2 ) * ( col0 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT 72 + ( - SUM( col1 ) ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-123

skipif mysql # not compatible
query I rowsort label-9374
SELECT 72 + ( - SUM ( col1 ) ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ( COUNT( * ) ) * + 23 AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9375
SELECT ( COUNT ( * ) ) * + 23 AS col0 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT - MIN( ALL col2 ) + + 92 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-9376
SELECT - MIN ( ALL col2 ) + + 92 FROM tab0
----
82

query I rowsort
SELECT - col0 * + 16 AS col2 FROM tab2
----
-1024
-1200
-736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9378
SELECT ALL COUNT( * ) DIV 29 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL COUNT ( * ) / 29 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col1 * 23 + col0 FROM tab1 WHERE NOT col1 IS NULL
----
-271
-30
-990

query I rowsort
SELECT 89 AS col0 FROM tab2 WHERE col1 * col2 IS NOT NULL
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT - COUNT( * ) * SUM( ALL col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT - COUNT ( * ) * SUM ( ALL col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL ( + COUNT( DISTINCT col2 ) ) * 15 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL ( + COUNT ( DISTINCT col2 ) ) * 15 FROM tab2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT DISTINCT col1 DIV - 38 AS col2 FROM tab1 WHERE NOT 17 IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT col1 / - 38 AS col2 FROM tab1 WHERE NOT 17 IS NULL
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL + 78 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL + 78 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
234

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 43 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT MIN( ALL 89 ) * 55 - 94 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT MIN ( ALL 89 ) * 55 - 94 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-9388
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9389
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9390
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 + col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 93 * - col1 col0 FROM tab1 AS cor0
----
1302
4371
465

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 35 * 13 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) IN ( col0 / - 42 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9394
SELECT ALL COUNT( * ) DIV + 63 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL COUNT ( * ) / + 63 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT + 82 * ( - col1 DIV col0 ) FROM tab2 AS cor0
----
-82
-82
0

skipif mysql # not compatible
query I rowsort label-9395
SELECT + 82 * ( - col1 / col0 ) FROM tab2 AS cor0
----
-82
-82
0

query I rowsort
SELECT DISTINCT AVG ( ALL - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 91 + - col2 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 5 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT - - ( + col0 ) DIV + 88 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9398
SELECT - - ( + col0 ) / + 88 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL MIN( ALL + col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9399
SELECT ALL MIN ( ALL + col2 ) col2 FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - col0
----

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT DISTINCT col1 * + 25 FROM tab2 AS cor0 WHERE NOT ( col0 * col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT DISTINCT 64 * + SUM( ALL col0 ) AS col1 FROM tab1
----
14528

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT 64 * + SUM ( ALL col0 ) AS col1 FROM tab1
----
14528

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / + col2 NOT IN ( - col2 * - 4 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT ALL - col0 DIV - + col0 col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9405
SELECT ALL - col0 / - + col0 col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - MAX( DISTINCT + 55 ) + 24 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT - MAX ( DISTINCT + 55 ) + 24 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 77 * col1 * - 80 FROM tab0
----
-129360
-498960
-6160

query I rowsort
SELECT DISTINCT + col2 + - 32 * + col1 AS col2 FROM tab2
----
-1609
-2086
-2424

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT IN ( 5 * - col1 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT DISTINCT - + CAST( - + SUM( + col0 ) AS SIGNED ) + - 58 FROM tab2 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT - + CAST ( - + SUM ( + col0 ) AS INTEGER ) + - 58 FROM tab2 AS cor0
----
127

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 / col2 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 2 * - col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT ALL + 10 + - - col1 FROM tab2 AS cor0
----
61
77
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 81 col2 FROM tab1 AS cor0
----
140
149
177

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT + 12 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9415
SELECT + 12 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - col0 * + 31 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - col0 * + 31 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= ( + 58 * + col2 )
----

query I rowsort
SELECT 20 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT 67 + - + 0 + - 14 - 77 * + COUNT( * ) AS col0 FROM tab0
----
-178

skipif mysql # not compatible
query I rowsort label-9420
SELECT 67 + - + 0 + - 14 - 77 * + COUNT ( * ) AS col0 FROM tab0
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT 46 * + COUNT( * ) AS col0 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-9421
SELECT 46 * + COUNT ( * ) AS col0 FROM tab1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - - COUNT( * ) + - + 5 col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9422
SELECT ALL - - COUNT ( * ) + - + 5 col0 FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9423
SELECT + col0, CAST( NULL AS SIGNED ) + + 59 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9423
SELECT + col0, CAST ( NULL AS INTEGER ) + + 59 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT ALL + 0 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + + 42 AS col0 FROM tab1 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT - COUNT( ALL - 63 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9426
SELECT - COUNT ( ALL - 63 ) AS col2 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 >= ( NULL )
----

query I rowsort
SELECT ALL + + 37 - + + 88 AS col1 FROM tab2 AS cor0
----
-51
-51
-51

query II rowsort
SELECT + col1, - col0 AS col2 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT DISTINCT col1 * 20 + - 29 + col2 * col1 FROM tab2 AS cor0
----
2164
4591
5197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT ALL + col2 * - 30 - - + ( + CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-1711
-1972
-2784

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL + col2 * - 30 - - + ( + CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-1711
-1972
-2784

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + 9 > 11 * - col1
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( 67 ) IS NULL
----
1
21
81

query I rowsort
SELECT + 44 - - col1 FROM tab2 cor0
----
111
121
95

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT 64 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + ( col1 ) AS col1, col0 + - col1 FROM tab2
----
51
-5
67
8
77
-13

query I rowsort
SELECT + 55 FROM tab0 WHERE NOT - col0 - 72 IS NOT NULL
----

query I rowsort
SELECT + col2 * + 82 AS col1 FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND col0
----

query I rowsort
SELECT 31 AS col2 FROM tab0 WHERE NOT - col1 <= ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT ALL + MIN( + col2 ) * - MAX( + 37 ) FROM tab1 WHERE NULL < + CAST( - col2 AS SIGNED ) * + 0 / - col2 OR ( col1 ) IS NOT NULL
----
-2183

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL + MIN ( + col2 ) * - MAX ( + 37 ) FROM tab1 WHERE NULL < + CAST ( - col2 AS INTEGER ) * + 0 / - col2 OR ( col1 ) IS NOT NULL
----
-2183

onlyif mysql # DIV for integer division: 
query I rowsort label-9444
SELECT 86 * - ( 9 ) + ( + + col0 ) - - 96 DIV col1 col2 FROM tab1 cor0
----
-670
-681
-717

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9444
SELECT 86 * - ( 9 ) + ( + + col0 ) - - 96 / col1 col2 FROM tab1 cor0
----
-670
-681
-717

query I rowsort
SELECT - ( - 35 ) * + + col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
2065
2380
3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col2, - col2 * - 48 FROM tab2 cor0
----
23
1104
40
1920
58
2784

query I rowsort
SELECT DISTINCT 46 FROM tab2 AS cor0 WHERE NOT col0 + + col0 * - 49 IS NULL
----
46

query I rowsort
SELECT ALL - col1 * + 95 - col1 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-11502
-194
-2205

query I rowsort
SELECT + 21 - col1 FROM tab2 cor0 WHERE NOT + col0 NOT BETWEEN ( - col1 / 89 ) AND + col2 * ( 12 ) + col1
----
-30
-46
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL - COUNT( * ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - COUNT ( * ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-3

query I rowsort
SELECT + col1 FROM tab0 WHERE ( - col1 IS NOT NULL )
----
1
21
81

query II rowsort
SELECT ALL + 55 + col2 + 72 + + + col2 AS col1, - col1 - col1 AS col2 FROM tab1
----
245
-10
263
-94
319
-28

query III rowsort
SELECT * FROM tab2 WHERE - col1 IN ( col1 / - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9454
SELECT ALL + 11 DIV + col2 AS col1, 6 * + 69 DIV - 63 + - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-9454
SELECT ALL + 11 / + col2 AS col1, 6 * + 69 / - 63 + - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
0
NULL
0
NULL
0
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - 55 >= ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT - col0 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT - col0 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9457
SELECT - 77 * - COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT - 77 * - COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 76 + + col0 FROM tab2
----
122
140
151

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( + col0 * col0 / - ( + 8 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + MIN( - + col2 ) + + 81 AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9460
SELECT + MIN ( - + col2 ) + + 81 AS col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9461
SELECT ALL - 38 * - - COUNT( * ) * + + 73 + - - 4, COUNT( * ) AS col0 FROM tab1
----
-8318
3

skipif mysql # not compatible
query II rowsort label-9461
SELECT ALL - 38 * - - COUNT ( * ) * + + 73 + - - 4, COUNT ( * ) AS col0 FROM tab1
----
-8318
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9462
SELECT DISTINCT + col1 DIV col2 * + col1 AS col1 FROM tab2
----
102
67
77

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT + col1 / col2 * + col1 AS col1 FROM tab2
----
102
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT + col0 DIV + col2 + + col2 * + col2 + 15 AS col2 FROM tab1 AS cor0
----
3497
4640
9231

skipif mysql # not compatible
query I rowsort label-9463
SELECT + col0 / + col2 + + col2 * + col2 + 15 AS col2 FROM tab1 AS cor0
----
3497
4640
9231

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + + + col2 <> 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + + 6 AS col0 FROM tab0 AS cor0
----
-81
-9
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT + + col2 + - CAST( - - col1 AS SIGNED ) * + col1 * - + col1 + - col2 * + col1 + + col1 * 78 FROM tab2 AS cor0
----
135479
302161
459499

skipif mysql # not compatible
query I rowsort label-9466
SELECT + + col2 + - CAST ( - - col1 AS INTEGER ) * + col1 * - + col1 + - col2 * + col1 + + col1 * 78 FROM tab2 AS cor0
----
135479
302161
459499

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 61 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + col2 + - + col1 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9469
SELECT ALL + COUNT( * ) + + - 1 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
2
3

skipif mysql # not compatible
query II rowsort label-9469
SELECT ALL + COUNT ( * ) + + - 1 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
2
3

query I rowsort
SELECT + col0 + - - col2 AS col1 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 59 ) col1 FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL + MIN( col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL + MIN ( col0 ) AS col0 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT DISTINCT col2 * - CAST( 79 AS SIGNED ) col1 FROM tab0
----
-3713
-7821
-790

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9474
SELECT DISTINCT col2 * - CAST ( 79 AS INTEGER ) col1 FROM tab0
----
-3713
-7821
-790

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - col0 + col0 )
----

query I rowsort
SELECT - col2 + + col2 FROM tab2 WHERE NOT + 69 - col1 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT - col1 * - + CAST( - col0 AS SIGNED ) * col0 AS col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9477
SELECT - col1 * - + CAST ( - col0 AS INTEGER ) * col0 AS col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT col2 >= NULL
----

query II rowsort
SELECT col0, - col0 + - col0 AS col0 FROM tab0
----
15
-30
87
-174
97
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9480
SELECT ALL CAST( + COUNT( ALL + col2 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL CAST ( + COUNT ( ALL + col2 ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT ( - 71 ) AS col2 FROM tab1 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT COUNT( * ), + ( + COUNT( * ) ) col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9482
SELECT COUNT ( * ), + ( + COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL + - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL + - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 71 * - col1 AS col0 FROM tab2 AS cor0
----
-3621
-4757
-5467

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9486
SELECT SUM( 27 ) DIV COUNT( * ) AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9486
SELECT SUM ( 27 ) / COUNT ( * ) AS col0 FROM tab0
----
27

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT ( - 24 + 36 * + 97 * - 28 + + + 59 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT - + CAST( 45 AS SIGNED ) + + 5 AS col1 FROM tab2 cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-9488
SELECT - + CAST ( 45 AS INTEGER ) + + 5 AS col1 FROM tab2 cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - 9 + - - 84 FROM tab1 cor0
----
75

query I rowsort
SELECT DISTINCT AVG ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < + col2
----
NULL

query I rowsort
SELECT - col2 + col0 * + col0 + - 88 AS col2 FROM tab0 AS cor0
----
7471
90
9222

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT COUNT( 84 ) + 20 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9492
SELECT COUNT ( 84 ) + 20 FROM tab1 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 NOT IN ( + col0, + col1 )
----

query I rowsort
SELECT - + ( - ( + + 1 ) ) + - col1 + col0 AS col2 FROM tab0 AS cor0
----
-65
67
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT ALL + COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT - - 65 * + CAST( NULL AS SIGNED ) * + - 82 * + - col2 + 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT - - 65 * + CAST ( NULL AS INTEGER ) * + - 82 * + - col2 + 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL - + COUNT( ALL + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - + COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 4 * + 11 * + 71 AS col2 FROM tab1 AS cor0
----
3124

query I rowsort
SELECT ALL + - col2 * - - 78 FROM tab1 AS cor0
----
-4602
-5304
-7488

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0 * + 69 )
----

query II rowsort
SELECT ALL + 62 AS col1, - col0 AS col1 FROM tab2
----
62
-46
62
-64
62
-75

query I rowsort
SELECT col2 * + - 79 FROM tab0
----
-3713
-7821
-790

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9503
SELECT 17, CAST( + col1 AS DECIMAL ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9503
SELECT 17, CAST ( + col1 AS REAL ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + - col1 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT col1 + + - col1 AS col1, + col1 FROM tab1 WHERE - 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT + ( ( - COUNT( * ) ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9506
SELECT + ( ( - COUNT ( * ) ) ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT DISTINCT 5 + - CAST( + + col1 AS SIGNED ) * 97 AS col1 FROM tab0
----
-2032
-7852
-92

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT 5 + - CAST ( + + col1 AS INTEGER ) * 97 AS col1 FROM tab0
----
-2032
-7852
-92

query I rowsort
SELECT + 57 - + + 44 * - + col2 FROM tab0 AS cor0
----
2125
4413
497

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - - col0 * + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT - CAST( - ( col2 ) AS SIGNED ) + - 94 * + col2 FROM tab2 AS cor0
----
-2139
-3720
-5394

skipif mysql # not compatible
query I rowsort label-9510
SELECT - CAST ( - ( col2 ) AS INTEGER ) + - 94 * + col2 FROM tab2 AS cor0
----
-2139
-3720
-5394

query I rowsort
SELECT - 64 + 90 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL COUNT( * ) - - + 78 * - COUNT( * ) FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL COUNT ( * ) - - + 78 * - COUNT ( * ) FROM tab1 AS cor0
----
-231

query I rowsort
SELECT DISTINCT - col2 * - col0 * - - 2 FROM tab2
----
2116
5120
8700

query II rowsort
SELECT DISTINCT - col0 AS col0, - col2 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT - - 0 * col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col0 + 20 * - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + + 94, - 0, - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < col0 * - 96 / - col0 + + + col0 * - + col0
----

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
46
64
75

query II rowsort
SELECT DISTINCT col1 * - col1 AS col2, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-441
87
-6561
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT ALL 15 * ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL 15 * ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9521
SELECT ALL - - col0 DIV - col1, - 82 AS col1 FROM tab2 AS cor0
----
-1
-82
0
-82
0
-82

skipif mysql # not compatible
query II rowsort label-9521
SELECT ALL - - col0 / - col1, - 82 AS col1 FROM tab2 AS cor0
----
-1
-82
0
-82
0
-82

query I rowsort
SELECT 45 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * + - 91 * col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + MAX( - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9523
SELECT + MAX ( - col0 ) AS col2 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT 1 * col2 FROM tab1 WHERE ( - 72 * col2 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL + MAX( 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + MAX ( 33 ) FROM tab1
----
33

query II rowsort
SELECT + col2 * + col2 AS col1, col2 FROM tab2
----
1600
40
3364
58
529
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT + 31 * - + COUNT( * ) AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-9527
SELECT + 31 * - + COUNT ( * ) AS col1 FROM tab0
----
-93

query I rowsort
SELECT - - col1 - 98 * - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + + col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 6, + col1 AS col2 FROM tab2
----
-6
51
-6
67
-6
77

query II rowsort
SELECT ALL 18 AS col0, col0 AS col2 FROM tab0
----
18
15
18
87
18
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT MAX( ALL + col1 ) / - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT MAX ( ALL + col1 ) / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT CAST( - + col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9532
SELECT CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col2 + - 33 * - col1 AS col1 FROM tab0 AS cor0
----
132
2720
703

query I rowsort
SELECT DISTINCT - + col2 + 75 FROM tab2 cor0
----
17
35
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT + 64 + 79 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - 63 + col2 + 66 BETWEEN NULL AND - 71
----

skipif mysql # not compatible
query I rowsort label-9535
SELECT + 64 + 79 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - 63 + col2 + 66 BETWEEN NULL AND - 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, 16 FROM tab1 AS cor0
----
-59
16
-68
16
-96
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT MIN( 55 ) + 55 col1 FROM tab0 cor0
----
110

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9537
SELECT DISTINCT MIN ( 55 ) + 55 col1 FROM tab0 cor0
----
110

query I rowsort
SELECT + 0 + - 62 AS col1 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT ALL - col0 * 96 + + col2 + col2 AS col2 FROM tab0 AS cor0
----
-1346
-8332
-9114

query I rowsort
SELECT ( - col2 ) + + col0 - col0 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 90 AS col2 FROM tab1
----
90

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NULL <= 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT MAX( DISTINCT - 54 ) + + 55 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9543
SELECT MAX ( DISTINCT - 54 ) + + 55 FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE 1 + - col1 - - 12 / - 47 BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9545
SELECT ALL + + CAST( NULL AS SIGNED ) * + col1 + + col1 + + col0 - - - CAST( - ( - - CAST( col0 AS DECIMAL ) ) AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col1 + + col1 + + col0 - - - CAST ( - ( - - CAST ( col0 AS REAL ) ) AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 77 - 49 AS col1 FROM tab2 AS cor0
----
28

query I rowsort
SELECT + 97 * + ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL COUNT( * ) - - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL COUNT ( * ) - - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL 41 + + - SUM( + col0 ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL 41 + + - SUM ( + col0 ) FROM tab2 AS cor0
----
-144

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9550
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9550
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9551
SELECT - CAST( NULL AS SIGNED ) - + COUNT( * ) + - CAST( + 20 AS SIGNED ) + - + 84 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + - CAST ( + 20 AS INTEGER ) + - + 84 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9553
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) / + + col1 * + + col0 * - + 51 BETWEEN NULL AND ( - + col0 )
----

skipif mysql # not compatible
query III rowsort label-9553
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) / + + col1 * + + col0 * - + 51 BETWEEN NULL AND ( - + col0 )
----

query I rowsort
SELECT DISTINCT col1 * 70 FROM tab2
----
3570
4690
5390

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9556
SELECT + COUNT( * ) DIV 52 AS col1, + 91 - - 14 + + 62 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 DIV - 90 IS NULL
----
0
167

skipif mysql # not compatible
query II rowsort label-9556
SELECT + COUNT ( * ) / 52 AS col1, + 91 - - 14 + + 62 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 / - 90 IS NULL
----
0
167

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / - 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col1, col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT - col1 * + col2 + + 8 * 79 * - 55 FROM tab1 cor0
----
-35055
-36104
-37956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 91 col0 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT + + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT ALL - 25, col0 AS col2 FROM tab2 AS cor0
----
-25
46
-25
64
-25
75

query I rowsort
SELECT DISTINCT col2 + + + col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9564
SELECT + AVG ( ALL + CAST( NULL AS DECIMAL ) ) col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9564
SELECT + AVG ( ALL + CAST ( NULL AS REAL ) ) col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN + 9 + + 67 + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9566
SELECT + col2 AS col2, - CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9566
SELECT + col2 AS col2, - CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT DISTINCT - col1 * + 50 AS col0 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT DISTINCT col2 * - 28 * col2 FROM tab2
----
-14812
-44800
-94192

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT ALL 60 DIV col1 AS col2 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL 60 / col1 AS col2 FROM tab1
----
1
12
4

query II rowsort
SELECT - - col0 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL + SUM( DISTINCT - ( col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL + SUM ( DISTINCT - ( col2 ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT - 41 DIV - col1 + + + col0 DIV col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9572
SELECT - 41 / - col1 + + + col0 / col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT - + CAST( - 71 AS SIGNED ) FROM tab0 cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-9573
SELECT - + CAST ( - 71 AS INTEGER ) FROM tab0 cor0
----
71
71
71

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - col1 AND - + col2
----

query I rowsort
SELECT col0 + - + col2 AS col1 FROM tab1 WHERE col0 <= + 91
----
-45
23
26

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9576
SELECT * FROM tab1 AS cor0 WHERE 76 * + + col1 * + 87 * - col0 BETWEEN ( col1 + CAST( NULL AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9576
SELECT * FROM tab1 AS cor0 WHERE 76 * + + col1 * + 87 * - col0 BETWEEN ( col1 + CAST ( NULL AS REAL ) ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT ALL - CAST( NULL AS SIGNED ) + ( + col0 ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - CAST ( NULL AS INTEGER ) + ( + col0 ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + ( - 12 ) + col0 + - col1 * + + col2, 8 * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1139
-385
-3028
-576
-3823
-478

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9579
SELECT - CAST( - col1 AS SIGNED ) col0, + col0 + col2 * - col0 * + col1 * col2 FROM tab0 AS cor0
----
1
-950600
21
-182613
81
-2683920

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9579
SELECT - CAST ( - col1 AS INTEGER ) col0, + col0 + col2 * - col0 * + col1 * col2 FROM tab0 AS cor0
----
1
-950600
21
-182613
81
-2683920

query I rowsort
SELECT ALL - 48 * - - col2 + + 95 FROM tab1 AS cor0
----
-2737
-3169
-4513

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9581
SELECT DISTINCT + col2 + - 93, - 11 - + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
-25
NULL
-34
NULL
3
NULL

skipif mysql # not compatible
query II rowsort label-9581
SELECT DISTINCT + col2 + - 93, - 11 - + - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
-25
NULL
-34
NULL
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL MAX( DISTINCT + + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL MAX ( DISTINCT + + col0 ) AS col0 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9583
SELECT * FROM tab2 WHERE ( NOT - CAST( - + 48 AS SIGNED ) > + col2 )
----
75
67
58

skipif mysql # not compatible
query III rowsort label-9583
SELECT * FROM tab2 WHERE ( NOT - CAST ( - + 48 AS INTEGER ) > + col2 )
----
75
67
58

query I rowsort
SELECT 95 - + 83 AS col1 FROM tab2
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT col1 - - + CAST( + + 64 AS SIGNED ) + - + 97 FROM tab1
----
-19
-28
14

skipif mysql # not compatible
query I rowsort label-9585
SELECT col1 - - + CAST ( + + 64 AS INTEGER ) + - + 97 FROM tab1
----
-19
-28
14

query I rowsort
SELECT ALL + col0 + - + 64 - - ( col0 ) * - col1 * + 59 FROM tab0
----
-107770
-5690
-71734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 * col1 col2 FROM tab2
----
4284
5628
6468

onlyif mysql # DIV for integer division: 
query II rowsort label-9588
SELECT DISTINCT - + col2 - - + col2 * - col0 AS col2, col1 DIV - 40 FROM tab2 AS cor0
----
-1081
-1
-2600
-1
-4408
-1

skipif mysql # not compatible
query II rowsort label-9588
SELECT DISTINCT - + col2 - - + col2 * - col0 AS col2, col1 / - 40 FROM tab2 AS cor0
----
-1081
-1
-2600
-1
-4408
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9589
SELECT ALL * FROM tab1 AS cor0 WHERE 1 NOT IN ( - col2 + - + CAST( + ( + + 42 ) AS DECIMAL ) + - 81 * + col1 * - ( + 51 ) + - + 77 + + CAST( NULL AS SIGNED ) * + + 39 )
----

skipif mysql # not compatible
query III rowsort label-9589
SELECT ALL * FROM tab1 AS cor0 WHERE 1 NOT IN ( - col2 + - + CAST ( + ( + + 42 ) AS REAL ) + - 81 * + col1 * - ( + 51 ) + - + 77 + + CAST ( NULL AS INTEGER ) * + + 39 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 - - + col2 + + col2 <= ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9591
SELECT MIN( - col0 ), - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-9591
SELECT MIN ( - col0 ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-91
NULL

query I rowsort
SELECT + 99 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT 59 * - + 91 * - - 98 + + col0 FROM tab1 AS cor0
----
-526071
-526077
-526111

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL NOT IN ( - col2 * + col2 ) )
----

query I rowsort
SELECT ALL - col0 * + + 9 AS col1 FROM tab0
----
-135
-783
-873

query II rowsort
SELECT 14 AS col2, 37 * - col0 AS col2 FROM tab2
----
14
-1702
14
-2368
14
-2775

query I rowsort
SELECT ( - col2 ) * - - col2 * + col1 AS col2 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT 17 * col0 FROM tab2
----
1088
1275
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 90 * + ( col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 90 * + ( col2 ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= col2 * + col0 OR col2 >= NULL
----

query I rowsort
SELECT - col0 + + 98 AS col0 FROM tab1
----
13
47
7

query II rowsort
SELECT DISTINCT - 71 AS col1, col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, col2, + col2 )
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 8 IS NOT NULL
----

query I rowsort
SELECT + 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT ALL col0 * + col2 * - col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - col2 - - - col1 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT + - 74 + MIN( - + col0 ) - - MAX( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9607
SELECT + - 74 + MIN ( - + col0 ) - - MAX ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( - col2 ) = NULL
----

query I rowsort
SELECT col0 * - 12 + col1 AS col0 FROM tab0 AS cor0
----
-1023
-1163
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9610
SELECT - COUNT( * ) + - - AVG ( - - CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT - COUNT ( * ) + - - AVG ( - - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col0 + + - 93 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-139
51
-157
77
-168
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9613
SELECT + 44 + - MAX( + CAST( NULL AS SIGNED ) ) + + AVG ( + 65 ) * + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT + 44 + - MAX ( + CAST ( NULL AS INTEGER ) ) + + AVG ( + 65 ) * + COUNT ( * ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + + col0 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9615
SELECT - col0 + CAST( + - 27 AS SIGNED ) AS col0, ( + col2 ) FROM tab1
----
-112
59
-118
68
-78
96

skipif mysql # not compatible
query II rowsort label-9615
SELECT - col0 + CAST ( + - 27 AS INTEGER ) AS col0, ( + col2 ) FROM tab1
----
-112
59
-118
68
-78
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9616
SELECT col1 / col1 + CAST( NULL AS DECIMAL ) * - 58 AS col2 FROM tab2 WHERE 38 BETWEEN + 48 AND ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-9616
SELECT col1 / col1 + CAST ( NULL AS REAL ) * - 58 AS col2 FROM tab2 WHERE 38 BETWEEN + 48 AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT DISTINCT + SUM( DISTINCT 76 ) col0 FROM tab2
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9617
SELECT DISTINCT + SUM ( DISTINCT 76 ) col0 FROM tab2
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9618
SELECT ALL COUNT( * ) * - CAST( NULL AS DECIMAL ) + + + ( - 77 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL COUNT ( * ) * - CAST ( NULL AS REAL ) + + + ( - 77 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - + ( - col0 ) FROM tab0 WHERE NOT - - col1 = 15
----
15
87
97

query I rowsort
SELECT - - col0 * + 28 FROM tab1 AS cor0
----
1428
2380
2548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT - + CAST( 36 AS SIGNED ) FROM tab0 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-9621
SELECT - + CAST ( 36 AS INTEGER ) FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT ALL + 20 * 51 FROM tab2 AS cor0
----
1020
1020
1020

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9624
SELECT - col1 DIV - col2 + - + 38, - col2 AS col2 FROM tab1 AS cor0
----
-38
-59
-38
-68
-38
-96

skipif mysql # not compatible
query II rowsort label-9624
SELECT - col1 / - col2 + - + 38, - col2 AS col2 FROM tab1 AS cor0
----
-38
-59
-38
-68
-38
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9625
SELECT - + COUNT( * ) * - CAST( NULL AS SIGNED ) + + - MAX( DISTINCT col2 ) - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + - MAX ( DISTINCT col2 ) - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9626
SELECT - + 81 col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9626
SELECT - + 81 col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT - ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9627
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL - SUM( DISTINCT - + col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9628
SELECT ALL - SUM ( DISTINCT - + col1 ) col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL + 96 * + + COUNT( * ) * - 54 * + - 77 FROM tab0 AS cor0
----
1197504

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL + 96 * + + COUNT ( * ) * - 54 * + - 77 FROM tab0 AS cor0
----
1197504

onlyif mysql # aggregate syntax: 
query II rowsort label-9630
SELECT 52 AS col0, COUNT( - col1 ) FROM tab2 AS cor0
----
52
3

skipif mysql # not compatible
query II rowsort label-9630
SELECT 52 AS col0, COUNT ( - col1 ) FROM tab2 AS cor0
----
52
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9631
SELECT - CAST( NULL AS DECIMAL ) * + col2 + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT - CAST ( NULL AS REAL ) * + col2 + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 * + - col1, - col1 + + col0 AS col2 FROM tab0
----
-1
96
-441
66
-6561
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NOT ( NOT ( NOT ( NOT ( ( NOT - col0 * - + col0 IS NULL ) ) ) ) ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT ALL col0 * - col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL col0 * - col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 * - + col1 AS col2, col1 FROM tab2
----
-1173
51
-3080
77
-3886
67

query I rowsort
SELECT ALL - + col2 * + 23 FROM tab2 AS cor0
----
-1334
-529
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT + 66 * - MAX( ALL - col1 ) * 50 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
504900

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT + 66 * - MAX ( ALL - col1 ) * 50 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
504900

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL MIN( DISTINCT + - col1 ) * - 24 - MAX( + - col0 ) FROM tab2 AS cor0
----
1894

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL MIN ( DISTINCT + - col1 ) * - 24 - MAX ( + - col0 ) FROM tab2 AS cor0
----
1894

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 50 + + col1 * - col0 > + - 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL - col1 + - col1 + CAST( col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL - col1 + - col1 + CAST ( col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE ( - 3 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - 79 ) + ( - 3 ) AS col1 FROM tab1
----
-82

query I rowsort
SELECT DISTINCT - col1 + + + col2 * - col0 + - + col1 + + col0 + + 57 * col0 FROM tab1
----
-1004
-1966
-95

query I rowsort
SELECT ALL 0 - + 10 FROM tab2
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT SUM( - col0 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9645
SELECT SUM ( - col0 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ( + 11 ) AS col0 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL - - 17 + - MAX( ALL col1 ) + + COUNT( * ) col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9647
SELECT ALL - - 17 + - MAX ( ALL col1 ) + + COUNT ( * ) col0 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT ALL - - col0 - - col0 + col2 * + col1 FROM tab0 AS cor0
----
293
3837
384

onlyif mysql # DIV for integer division: 
query I rowsort label-9649
SELECT ALL - col2 DIV + ( col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - col2 / + ( col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
0
20
80

query II rowsort
SELECT col1, col2 AS col2 FROM tab0 AS cor0 WHERE NULL = + 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT DISTINCT col1 DIV + 22 AS col1 FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT col1 / + 22 AS col1 FROM tab2 AS cor0
----
2
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 13 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL 85 - - COUNT( * ) AS col2 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL 85 - - COUNT ( * ) AS col2 FROM tab1
----
88

query I rowsort
SELECT - col2 - + + 60 FROM tab2
----
-100
-118
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9655
SELECT * FROM tab2 WHERE + - CAST( + + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9655
SELECT * FROM tab2 WHERE + - CAST ( + + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ( + + 7 ) FROM tab1 WHERE + 79 IS NOT NULL
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT MAX( DISTINCT + 68 ) * SUM( + col0 ) AS col1 FROM tab1
----
15436

skipif mysql # not compatible
query I rowsort label-9657
SELECT MAX ( DISTINCT + 68 ) * SUM ( + col0 ) AS col1 FROM tab1
----
15436

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT + col1 DIV col2 * + col2 FROM tab2
----
40
46
58

skipif mysql # not compatible
query I rowsort label-9658
SELECT + col1 / col2 * + col2 FROM tab2
----
40
46
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 19, 28 col0 FROM tab0
----
19
28
19
28
19
28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 77 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT - col0 * + col2 DIV col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9661
SELECT - col0 * + col2 / col2 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 2 * + col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 + col1 < col1 * col2 - - - col1
----

query I rowsort
SELECT - - 61 - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 39 IS NULL
----
107
125
136

query I rowsort
SELECT - col2 * + - col2 * col2 AS col2 FROM tab1 AS cor0
----
205379
314432
884736

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + col2 / 91
----

query II rowsort
SELECT - col0 * col1 + col2 AS col2, - col0 * - 14 * - col0 FROM tab0
----
-1168
-3150
-1817
-105966
2
-131726

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT COUNT( ALL - - 48 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9669
SELECT COUNT ( ALL - - 48 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT col0 NOT BETWEEN - 35 AND + 37 ) )
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT - 89 * + col1 IS NOT NULL )
----

query I rowsort
SELECT - - 10 * + col2 FROM tab1 AS cor0
----
590
680
960

query I rowsort
SELECT - 95 * + + col2 FROM tab1
----
-5605
-6460
-9120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9674
SELECT ALL CAST( - 39 AS SIGNED ), 12 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 2d853ba17120c3d119b19f4684b99fc1

skipif mysql # not compatible
query II rowsort label-9674
SELECT ALL CAST ( - 39 AS INTEGER ), 12 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 2d853ba17120c3d119b19f4684b99fc1

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT - + 34 + col1 + + 68 * 87 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT - + 34 + col1 + + 68 * 87 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + col1 + + + col2 FROM tab2 AS cor0
----
2624
4547
5969

query I rowsort
SELECT ALL - col2 + - col1 * + col1 AS col1 FROM tab1 cor0
----
-2277
-292
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL + SUM( ( + 10 ) ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + SUM ( ( + 10 ) ) FROM tab0 AS cor0
----
30

query II rowsort
SELECT - col1 + 25, 10 AS col1 FROM tab0 AS cor0
----
-56
10
24
10
4
10

query I rowsort
SELECT col2 * col1 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9682
SELECT * FROM tab0 WHERE + col2 * CAST( NULL AS SIGNED ) * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9682
SELECT * FROM tab0 WHERE + col2 * CAST ( NULL AS INTEGER ) * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT col0 DIV 5 FROM tab1
----
10
17
18

skipif mysql # not compatible
query I rowsort label-9683
SELECT col0 / 5 FROM tab1
----
10
17
18

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 + + + col2 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + - 90 * 40 - + col0 * + col2 FROM tab1 AS cor0
----
-175388
-23015
-55296

onlyif mysql # aggregate syntax: 
query II rowsort label-9686
SELECT DISTINCT - - 77 * + + 60, + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
4620
9

skipif mysql # not compatible
query II rowsort label-9686
SELECT DISTINCT - - 77 * + + 60, + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
4620
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT CAST( CAST( 3 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif mysql # not compatible
query I rowsort label-9687
SELECT CAST ( CAST ( 3 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 11 col2 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT + ( - col0 ) + col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - + 56 * - 34, + col1 FROM tab2 AS cor0
----
1904
51
1904
67
1904
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9692
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 66 <= ( + 87 + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 66 <= ( + 87 + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT col0 * ( - ( - + col2 ) ) AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL + - col2 + col0 / - col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9695
SELECT + COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT DISTINCT 59 + + MIN( DISTINCT + ( - + CAST( + col0 AS SIGNED ) ) ) + + + 74 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT 59 + + MIN ( DISTINCT + ( - + CAST ( + col0 AS INTEGER ) ) ) + + + 74 FROM tab2
----
58

query I rowsort
SELECT + ( + - col0 ) * - col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT 89 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query II rowsort
SELECT - 39, 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
18 values hashing to 9ed4946632be998015e9e9d24a3962d0

query I rowsort
SELECT + col1 * - + 44 AS col0 FROM tab0
----
-3564
-44
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT DISTINCT col1 DIV - + 73 + col0 + 13 col0 FROM tab1 AS cor0
----
104
64
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9701
SELECT DISTINCT col1 / - + 73 + col0 + 13 col0 FROM tab1 AS cor0
----
104
64
98

query I rowsort
SELECT ALL - ( + 36 ) - - col1 + col2 AS col2 FROM tab1 AS cor0
----
28
74
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT - COUNT( * ) - - 37 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
37

skipif mysql # not compatible
query I rowsort label-9703
SELECT - COUNT ( * ) - - 37 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
37

query I rowsort
SELECT + - col2 - - - ( - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT + 97 - - - COUNT( * ) * - 57 FROM tab0 cor0
----
268

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT + 97 - - - COUNT ( * ) * - 57 FROM tab0 cor0
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE col2 / 44 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9706
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 / 44 + col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + - 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT - + 79 * + + MIN( ALL - col2 ) AS col1 FROM tab1 cor0
----
7584

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT - + 79 * + + MIN ( ALL - col2 ) AS col1 FROM tab1 cor0
----
7584

query II rowsort
SELECT ALL - 6 AS col2, + 58 FROM tab2 AS cor0
----
-6
58
-6
58
-6
58

query I rowsort
SELECT ALL + - col2 - - col1 FROM tab1 WHERE + col2 IS NOT NULL
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( - + col1 ) ) col2 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL - + 65 * col0 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 48 <= + 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 65 * - 67 FROM tab2
----
-4355
-4355
-4355

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + COUNT( * ) * - + 42 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-9715
SELECT + COUNT ( * ) * - + 42 FROM tab0
----
-126

query I rowsort
SELECT 8 * - 87 AS col0 FROM tab2
----
-696
-696
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-9717
SELECT ALL - 85 DIV + - col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL - 85 / + - col0 FROM tab0
----
0
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT 49 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9718
SELECT 49 / 83 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL - MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9720
SELECT DISTINCT - - ( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT - - ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9721
SELECT 87 / - + CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT 87 / - + CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - col1 AND col1 / col1
----
75
67
58

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col0 ) AND + col2
----

query II rowsort
SELECT - 70 + + ( col1 ) AS col1, ( - 64 ) AS col1 FROM tab1 cor0
----
-23
-64
-56
-64
-65
-64

query I rowsort
SELECT ALL 41 * + - col2 AS col1 FROM tab0 AS cor0
----
-1927
-4059
-410

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT + col2 DIV + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-9726
SELECT + col2 / + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-21
-81
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - 52 col0 FROM tab0
----
-47
42
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 81 AS col0, col2 col1 FROM tab0
----
-81
10
-81
47
-81
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT col1 + - col1 + + + col1 DIV - - col2 - + col0 + + - 67 + + + 96 + - - 55 + col1 FROM tab2
----
77
91
98

skipif mysql # not compatible
query I rowsort label-9729
SELECT col1 + - col1 + + + col1 / - - col2 - + col0 + + - 67 + + + 96 + - - 55 + col1 FROM tab2
----
77
91
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT - COUNT( * ) + + 75 AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-9730
SELECT - COUNT ( * ) + + 75 AS col0 FROM tab1
----
72

query I rowsort
SELECT col1 + - + 86 FROM tab0
----
-5
-65
-85

query III rowsort
SELECT * FROM tab1 WHERE ( + + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT ALL 16 + - + col2 DIV + + col2 AS col2 FROM tab2
----
15
15
15

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL 16 + - + col2 / + + col2 AS col2 FROM tab2
----
15
15
15

query III rowsort
SELECT * FROM tab0 WHERE - 53 + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 56, + 43 col2 FROM tab0 cor0
----
-56
43
-56
43
-56
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9736
SELECT ALL - CAST( NULL AS DECIMAL ) * COUNT( * ) * + MAX( DISTINCT - + col0 ) + - 43 / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL - CAST ( NULL AS REAL ) * COUNT ( * ) * + MAX ( DISTINCT - + col0 ) + - 43 / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col2 * - 74 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL + MAX( - 18 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL + MAX ( - 18 ) FROM tab1 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9739
SELECT ALL CAST( - - MAX( DISTINCT + - 12 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL CAST ( - - MAX ( DISTINCT + - 12 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT DISTINCT CAST( + - ( 49 ) AS SIGNED ) * + 65 + 12 AS col1 FROM tab0 AS cor0
----
-3173

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT CAST ( + - ( 49 ) AS INTEGER ) * + 65 + 12 AS col1 FROM tab0 AS cor0
----
-3173

query I rowsort
SELECT DISTINCT + - 48 FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT - SUM( - 63 ) AS col1 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-9742
SELECT - SUM ( - 63 ) AS col1 FROM tab2 AS cor0
----
189

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - + col2 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL + + MIN( ALL - 30 ) AS col2 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + + MIN ( ALL - 30 ) AS col2 FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT MAX( - 34 ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9745
SELECT MAX ( - 34 ) FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT COUNT( - 26 ) + - 23 AS col0 FROM tab0 cor0 WHERE 45 + + col1 IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT COUNT ( - 26 ) + - 23 AS col0 FROM tab0 cor0 WHERE 45 + + col1 IS NULL
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 45 + col0 * ( + col2 ) col2 FROM tab1
----
51
4941
85
5060
91
6233

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 <> NULL
----

query I rowsort
SELECT ALL + 7 * 65 * + - 54 FROM tab1
----
-24570
-24570
-24570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9750
SELECT DISTINCT - 24 / - COUNT( * ) / + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - 24 / - COUNT ( * ) / + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL - ( - - COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - ( - - COUNT ( * ) ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT DISTINCT - col0 * - col0 * CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT - col0 * - col0 * CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 5 AS col1 FROM tab0 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT - MIN( + col2 ) * - 53 FROM tab2 AS cor0
----
1219

skipif mysql # not compatible
query I rowsort label-9754
SELECT - MIN ( + col2 ) * - 53 FROM tab2 AS cor0
----
1219

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - SUM( ALL - - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - SUM ( ALL - - col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + col2 * + col1 FROM tab0 cor0 WHERE NOT + col0 <= - 21
----
210
3807
99

query I rowsort
SELECT DISTINCT + - col1 + col2 * col2 / + 27 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT col2, - 89 * - col1 AS col0 FROM tab1 AS cor0
----
59
445
68
4183
96
1246

query I rowsort
SELECT DISTINCT col2 * - 60 AS col0 FROM tab2
----
-1380
-2400
-3480

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL >= ( 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT + CAST( + + col1 AS SIGNED ) + - col1 col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9761
SELECT + CAST ( + + col1 AS INTEGER ) + - col1 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9762
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) + + + COUNT( * ) + - + 65, 97 AS col2 FROM tab0 AS cor0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-9762
SELECT ALL - MIN ( - CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) + - + 65, 97 AS col2 FROM tab0 AS cor0
----
NULL
97

query I rowsort
SELECT DISTINCT + 89 * - - col2 + - col0 AS col0 FROM tab2 AS cor0
----
2001
3496
5087

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT ALL 51 DIV - - col1 + 43 AS col1 FROM tab1 AS cor0
----
44
46
53

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL 51 / - - col1 + 43 AS col1 FROM tab1 AS cor0
----
44
46
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9765
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 10 col2 FROM tab0 AS cor0
----
109
20
57

query I rowsort
SELECT 70 * - col2 AS col1 FROM tab2 AS cor0
----
-1610
-2800
-4060

query I rowsort
SELECT DISTINCT - col1 * - + col1 * + col0 + + col0 FROM tab0 AS cor0
----
194
38454
98430

query I rowsort
SELECT 5 * + 20 FROM tab1 AS cor0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT + MAX( col2 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-9770
SELECT + MAX ( col2 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
174

query II rowsort
SELECT + col1 * 86 AS col2, - col2 FROM tab1 AS cor0 WHERE NULL >= - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT + col0 AS col0 FROM tab1 WHERE CAST( 82 AS SIGNED ) NOT BETWEEN NULL AND + - col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9773
SELECT + col0 AS col0 FROM tab1 WHERE CAST ( 82 AS INTEGER ) NOT BETWEEN NULL AND + - col1
----
51
85
91

query I rowsort
SELECT DISTINCT - 91 + + col2 FROM tab2
----
-33
-51
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9775
SELECT + COUNT( * ) - 39 DIV + COUNT( * ) + - 23 AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-9775
SELECT + COUNT ( * ) - 39 / + COUNT ( * ) + - 23 AS col0 FROM tab1
----
-33

query I rowsort
SELECT col1 - 40 FROM tab0
----
-19
-39
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT + COUNT( * ) + 14 - 16 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9777
SELECT + COUNT ( * ) + 14 - 16 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + col1 + 86 AS col2 FROM tab0 AS cor0
----
107
167
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 * + col0 + - 89 col0, + col2 * + col1 FROM tab1 AS cor0
----
-4366
3196
-514
295
-803
1344

query I rowsort
SELECT ALL + + 78 + - + 8 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * col0 col1 FROM tab2
----
-2392
-3328
-3900

query I rowsort
SELECT + 19 * + + col2 * - col0 AS col1 FROM tab2
----
-20102
-48640
-82650

onlyif mysql # aggregate syntax: 
query III rowsort label-9783
SELECT - 56, - 2 AS col2, + - COUNT( * ) * COUNT( * ) + 55 AS col0 FROM tab1 AS cor0
----
-56
-2
46

skipif mysql # not compatible
query III rowsort label-9783
SELECT - 56, - 2 AS col2, + - COUNT ( * ) * COUNT ( * ) + 55 AS col0 FROM tab1 AS cor0
----
-56
-2
46

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) = 27
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 col1 FROM tab2 AS cor0
----
15
15
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - 33 * - + 72 + - + col0 + 16 + + col2 * - 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) > + - col0 + + 28
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9787
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) > + - col0 + + 28
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9788
SELECT DISTINCT - col1 AS col2, + col1 - col0 + col0 - + + CAST( - col2 AS SIGNED ) + + + col0 * - col0 * - - col0 * - col1 AS col2 FROM tab0 cor0
----
-1
912773
-21
13828594
-81
273503

skipif mysql # not compatible
query II rowsort label-9788
SELECT DISTINCT - col1 AS col2, + col1 - col0 + col0 - + + CAST ( - col2 AS INTEGER ) + + + col0 * - col0 * - - col0 * - col1 AS col2 FROM tab0 cor0
----
-1
912773
-21
13828594
-81
273503

query II rowsort
SELECT DISTINCT - col2, - 81 * 16 AS col2 FROM tab1 AS cor0
----
-59
-1296
-68
-1296
-96
-1296

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9790
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) - + + col2 AND 36
----

skipif mysql # not compatible
query III rowsort label-9790
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) - + + col2 AND 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + COUNT( + 19 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9791
SELECT + COUNT ( + 19 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL MAX( ALL ( + + ( + col2 ) ) ) * COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL MAX ( ALL ( + + ( + col2 ) ) ) * COUNT ( * ) FROM tab1
----
288

query I rowsort
SELECT - col1 * - 58 AS col1 FROM tab1
----
2726
290
812

onlyif mysql # DIV for integer division: 
query I rowsort label-9794
SELECT ALL col1 + 76 + - col2 DIV - + col0 * col0 AS col2 FROM tab2
----
127
143
153

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL col1 + 76 + - col2 / - + col0 * col0 AS col2 FROM tab2
----
127
143
153

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 + + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT 94 DIV - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9796
SELECT 94 / - col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT + MAX( ALL + 8 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-9797
SELECT + MAX ( ALL + 8 ) FROM tab2
----
8

query II rowsort
SELECT - 20 AS col2, col1 * - 95 AS col2 FROM tab1
----
-20
-1330
-20
-4465
-20
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT - + 24 * + ( SUM( col0 ) ) + MAX( + 38 ) FROM tab2 AS cor0
----
-4402

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT - + 24 * + ( SUM ( col0 ) ) + MAX ( + 38 ) FROM tab2 AS cor0
----
-4402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT ALL CAST( NULL AS SIGNED ) / + col1 / col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL CAST ( NULL AS INTEGER ) / + col1 / col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9801
SELECT - 1 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT - 1 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + col2 + - col2 * 41 AS col0 FROM tab2 AS cor0
----
-1536
-2245
-874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9803
SELECT ALL - + COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - + COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 WHERE - + col0 * 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 71 * + ( + col0 ) + + 87 FROM tab1
----
3708
6122
6548

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT - 63 DIV + col2 + 4 FROM tab0
----
-2
3
4

skipif mysql # not compatible
query I rowsort label-9806
SELECT - 63 / + col2 + 4 FROM tab0
----
-2
3
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9807
SELECT DISTINCT - COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL col1 * col0 - + col2 AS col1 FROM tab0 AS cor0
----
-2
1168
1817

onlyif mysql # DIV for integer division: 
query II rowsort label-9809
SELECT + col2 - + 65 * + - col1 * + col1 AS col2, - 16 DIV - col1 + col0 + col0 AS col2 FROM tab1 AS cor0
----
12836
103
143653
182
1684
173

skipif mysql # not compatible
query II rowsort label-9809
SELECT + col2 - + 65 * + - col1 * + col1 AS col2, - 16 / - col1 + col0 + col0 AS col2 FROM tab1 AS cor0
----
12836
103
143653
182
1684
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9810
SELECT ALL + COUNT( col1 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL + COUNT ( col1 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + 59 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9812
SELECT ALL - + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL - + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 41 < - col2 + 46 * - col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9813
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 41 < - col2 + 46 * - col1 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9814
SELECT + COUNT( * ) AS col2, - COUNT( * ) FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9814
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2 cor0
----
3
-3

query I rowsort
SELECT ALL + 34 AS col1 FROM tab0 cor0
----
34
34
34

query II rowsort
SELECT col1 AS col0, 52 FROM tab2 AS cor0
----
51
52
67
52
77
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT + - col1 DIV - + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9817
SELECT + - col1 / - + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9818
SELECT DISTINCT 98 DIV - col0 + + 47, + col2 + - + col0 - 83 DIV + - col0 col1 FROM tab0 WHERE + col1 IS NOT NULL
----
41
37
46
-77
46
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9818
SELECT DISTINCT 98 / - col0 + + 47, + col2 + - + col0 - 83 / + - col0 col1 FROM tab0 WHERE + col1 IS NOT NULL
----
41
37
46
-77
46
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT - COUNT( * ) * + - ( + 14 ) AS col1 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT - COUNT ( * ) * + - ( + 14 ) AS col1 FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT MAX( DISTINCT + 2 ) AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT MAX ( DISTINCT + 2 ) AS col2 FROM tab1
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 87 AS col1, + col2 col1 FROM tab0
----
87
10
87
47
87
99

query I rowsort
SELECT DISTINCT col0 - + col0 AS col2 FROM tab1 WHERE NOT - 66 * - col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - ( - col2 ) ) col1 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = 27
----

query I rowsort
SELECT + 35 * col1 * - - 39 FROM tab0
----
110565
1365
28665

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) < + col1
----

query I rowsort
SELECT ALL - + col2 * - 31 FROM tab2 AS cor0
----
1240
1798
713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 40, 9 col1 FROM tab0 AS cor0
----
40
9
40
9
40
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9829
SELECT CAST( NULL AS SIGNED ) / + + 94 + - + 72 AS col1, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9829
SELECT CAST ( NULL AS INTEGER ) / + + 94 + - + 72 AS col1, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT - 0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + col2 ) * 21 < - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9832
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9832
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ALL - - 21 * + col2 * col0 + + + col2 AS col0 FROM tab0 AS cor0
----
14852
18280
201762

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ( + COUNT( - 95 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9834
SELECT ( + COUNT ( - 95 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 / + col0 * + 35 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 48 * + - 24 + - col2 + col1 AS col2 FROM tab2 AS cor0
----
-1115
-1124
-1143

query I rowsort
SELECT ALL + ( - 12 ) - + col0 AS col0 FROM tab2 AS cor0
----
-58
-76
-87

query I rowsort
SELECT DISTINCT col1 + - - 63 AS col1 FROM tab2 AS cor0
----
114
130
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT - col2 * + - 88 - + CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
5251
6052
8544

skipif mysql # not compatible
query I rowsort label-9839
SELECT - col2 * + - 88 - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
5251
6052
8544

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 60 + + 18 FROM tab2
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT col1 + + - CAST( NULL AS SIGNED ) - - 0 * - + 42 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT col1 + + - CAST ( NULL AS INTEGER ) - - 0 * - + 42 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT - COUNT( * ) * - - ( MAX( DISTINCT - 44 ) ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - COUNT ( * ) * - - ( MAX ( DISTINCT - 44 ) ) FROM tab0
----
132

query I rowsort
SELECT - col2 + - + 49 AS col1 FROM tab2 AS cor0
----
-107
-72
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL + + ( + 25 ) * + - COUNT( * ) col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9845
SELECT ALL + + ( + 25 ) * + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT DISTINCT - col2 DIV 13 AS col2 FROM tab0 AS cor0
----
-3
-7
0

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT - col2 / 13 AS col2 FROM tab0 AS cor0
----
-3
-7
0

query I rowsort
SELECT 47 FROM tab2 WHERE ( col1 ) IN ( 63 + - col0 )
----

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab0 WHERE NOT NULL = ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 22 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( DISTINCT - col1 ) col0 FROM tab0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT ALL + col0 * - 46 AS col0 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
-4002
-4462
-690

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9852
SELECT ALL * FROM tab2 WHERE ( CAST( - 78 AS DECIMAL ) * col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9852
SELECT ALL * FROM tab2 WHERE ( CAST ( - 78 AS REAL ) * col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + 49 * col0 BETWEEN 79 AND col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 + 57 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9855
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 + 57 col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab0 WHERE col1 * 8 <= col0
----
-76

query I rowsort
SELECT col2 FROM tab0 WHERE NOT col0 * - col1 IS NULL
----
10
47
99

query I rowsort
SELECT ALL ( 20 ) AS col0 FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT + MAX( - ( col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + MAX ( - ( col0 ) ) FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + ( - 72 + + 93 ) FROM tab1
----
117
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT col2 * + ( + col2 ) AS col1 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 61 ) NOT BETWEEN ( NULL ) AND 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL + 56 - CAST( col2 AS SIGNED ) FROM tab0
----
-43
46
9

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + 56 - CAST ( col2 AS INTEGER ) FROM tab0
----
-43
46
9

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 = 13 * 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col0 BETWEEN 27 AND ( NULL )
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + col1 * - col2 BETWEEN 29 AND ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 + col2 * col2 col1 FROM tab2 WHERE + col1 + - ( + 73 ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT 86 + - 15 FROM tab0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col0 FROM tab0 AS cor0 WHERE NOT col0 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT 42 FROM tab2 AS cor0 WHERE NOT 17 IS NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) * + col0 + - 67 IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) * + col0 + - 67 IS NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 <= NULL
----

query I rowsort
SELECT ( col1 ) AS col2 FROM tab2 WHERE 58 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9882
SELECT ALL COUNT( * ) + COUNT( * ) DIV - COUNT( * ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL COUNT ( * ) + COUNT ( * ) / - COUNT ( * ) FROM tab2 cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT DISTINCT - col0 + 81 DIV - col2 col0 FROM tab1 AS cor0
----
-51
-86
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9883
SELECT DISTINCT - col0 + 81 / - col2 col0 FROM tab1 AS cor0
----
-51
-86
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0 * + col1 )
----

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab1 cor0 WHERE col1 + - col0 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * col0 NOT IN ( ( - 98 ) - col2 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 84 * 3 - col1 FROM tab0 AS cor0
----
171
231
251

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 - 88 / + col0 <> 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT + + CAST( NULL AS SIGNED ) * 62 + + ( - col2 + 48 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT + + CAST ( NULL AS INTEGER ) * 62 + + ( - col2 + 48 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + 37 + 4 * MAX( ALL col0 + 35 ) FROM tab1 AS cor0
----
541

skipif mysql # not compatible
query I rowsort label-9890
SELECT + 37 + 4 * MAX ( ALL col0 + 35 ) FROM tab1 AS cor0
----
541

query I rowsort
SELECT + - col2 * + 87 + + col2 FROM tab0 AS cor0
----
-4042
-8514
-860

query I rowsort
SELECT ALL + 39 * - + col2 - col1 AS col0 FROM tab1
----
-2306
-2699
-3758

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ( - COUNT( * ) ) * 48 AS col0 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-9893
SELECT ( - COUNT ( * ) ) * 48 AS col0 FROM tab1
----
-144

query III rowsort
SELECT * FROM tab1 WHERE 6 NOT BETWEEN NULL AND + 2 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT DISTINCT 35 * - + 19 - + MIN( + col2 ) AS col2 FROM tab0
----
-675

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT 35 * - + 19 - + MIN ( + col2 ) AS col2 FROM tab0
----
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT - 29 * - CAST( col2 AS SIGNED ) FROM tab2
----
1160
1682
667

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - 29 * - CAST ( col2 AS INTEGER ) FROM tab2
----
1160
1682
667

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 / 2 + col1 = ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT DISTINCT - MIN( DISTINCT col2 ) * 26 FROM tab1
----
-1534

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT - MIN ( DISTINCT col2 ) * 26 FROM tab1
----
-1534

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 <> NULL
----

query I rowsort
SELECT - ( + 14 ) FROM tab1 WHERE NOT ( + ( - col2 ) ) BETWEEN ( 21 ) AND - 36
----
-14
-14
-14

query I rowsort
SELECT 72 FROM tab2 WHERE NOT - 52 IS NULL
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9903
SELECT * FROM tab2 WHERE NOT ( - col2 ) < ( - col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9903
SELECT * FROM tab2 WHERE NOT ( - col2 ) < ( - col0 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 8 AS col2 FROM tab1 WHERE NOT NULL >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT DISTINCT col0 DIV - 18 AS col1 FROM tab2 AS cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT col0 / - 18 AS col1 FROM tab2 AS cor0
----
-2
-3
-4

query II rowsort
SELECT + col1, 25 AS col2 FROM tab0 AS cor0
----
1
25
21
25
81
25

query I rowsort
SELECT + col2 * + col0 * 87 - + col1 * col0 AS col2 FROM tab1 AS cor0
----
425238
435880
534079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9909
SELECT DISTINCT 34 * + col0 + - CAST( 15 AS SIGNED ) col1 FROM tab1 AS cor0
----
1719
2875
3079

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9909
SELECT DISTINCT 34 * + col0 + - CAST ( 15 AS INTEGER ) col1 FROM tab1 AS cor0
----
1719
2875
3079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9910
SELECT + COUNT( * ) DIV - SUM( ALL 96 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT + COUNT ( * ) / - SUM ( ALL 96 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT - - 76, + col0 * col0 AS col0 FROM tab2 AS cor0
----
76
2116
76
4096
76
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT DISTINCT COUNT( * ) + - - COUNT( - col2 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT COUNT ( * ) + - - COUNT ( - col2 ) AS col1 FROM tab2
----
6

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE + - col2 * col2 + - 73 NOT BETWEEN col0 AND - col2
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + + 54 < + col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9915
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) < - + col1
----

skipif mysql # not compatible
query III rowsort label-9915
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) < - + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( + 87 ) AND + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL + MAX( col2 ) * 99 AS col1 FROM tab0 WHERE col0 = ( + + ( col1 ) + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + MAX ( col2 ) * 99 AS col1 FROM tab0 WHERE col0 = ( + + ( col1 ) + col0 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) NOT IN ( 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( 8 ) + + col0 IN ( - 50 )
----
0

skipif mysql # not compatible
query I rowsort label-9919
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( 8 ) + + col0 IN ( - 50 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9920
SELECT + col0 * - 41 + - - col2 DIV 29 FROM tab1 AS cor0
----
-2088
-3483
-3729

skipif mysql # not compatible
query I rowsort label-9920
SELECT + col0 * - 41 + - - col2 / 29 FROM tab1 AS cor0
----
-2088
-3483
-3729

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT MIN( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-9921
SELECT MIN ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT ALL + ( + col2 ) - + - ( CAST( + 5 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
101
64
73

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + ( + col2 ) - + - ( CAST ( + 5 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
101
64
73

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) < - - 71 * + 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT DISTINCT + col0 - - CAST( - + 1 AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + col0 - - CAST ( - + 1 AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

query II rowsort
SELECT col0 AS col2, col1 AS col2 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT 35 * ( - col2 ) AS col1 FROM tab1
----
-2065
-2380
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - 10 FROM tab0
----
-15
-10
-87
-10
-97
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT MIN( ALL 74 ) AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-9929
SELECT MIN ( ALL 74 ) AS col1 FROM tab1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9930
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) * - col0 * - - 57 ) NOT BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query III rowsort label-9930
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) * - col0 * - - 57 ) NOT BETWEEN NULL AND - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < ( NULL )
----

query I rowsort
SELECT ALL - - col2 * + 52 + + col2 AS col0 FROM tab2 AS cor0
----
1219
2120
3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT DISTINCT - col0 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT - col0 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + - 39 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT - ( + COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9935
SELECT - ( + COUNT ( * ) ) col0 FROM tab0
----
-3

query I rowsort
SELECT 29 * - - 79 AS col1 FROM tab0
----
2291
2291
2291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT + COUNT( ALL + CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9937
SELECT + COUNT ( ALL + CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9938
SELECT DISTINCT + 18 DIV + SUM( ALL + 68 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT + 18 / + SUM ( ALL + 68 ) / - COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9940
SELECT DISTINCT + - SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT + - SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + 99 * + ( - col2 ) + + - 94 + col1 FROM tab0 cor0 WHERE NOT - col2 <> col1
----

query I rowsort
SELECT DISTINCT + + 22 * ( - + 37 ) FROM tab0 AS cor0
----
-814

query I rowsort
SELECT DISTINCT + col2 * - ( 20 ) FROM tab2 AS cor0
----
-1160
-460
-800

onlyif mysql # aggregate syntax: 
query II rowsort label-9944
SELECT DISTINCT 40 * - 82, COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
-3280
3

skipif mysql # not compatible
query II rowsort label-9944
SELECT DISTINCT 40 * - 82, COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
-3280
3

query I rowsort
SELECT DISTINCT - col1 + + 9 AS col1 FROM tab2 AS cor0 WHERE ( NOT + col0 <= ( + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9946
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col2 BETWEEN ( + + col0 + + CAST( NULL AS SIGNED ) * - col0 * col2 ) AND - 0 )
----

skipif mysql # not compatible
query III rowsort label-9946
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col2 BETWEEN ( + + col0 + + CAST ( NULL AS INTEGER ) * - col0 * col2 ) AND - 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9947
SELECT * FROM tab1 WHERE + - col1 * - col0 IN ( + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9947
SELECT * FROM tab1 WHERE + - col1 * - col0 IN ( + CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9948
SELECT ALL + COUNT( * ) col1, - ( SUM( - col0 ) ) AS col2 FROM tab1
----
3
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9948
SELECT ALL + COUNT ( * ) col1, - ( SUM ( - col0 ) ) AS col2 FROM tab1
----
3
227

query II rowsort
SELECT col2 * - 27 * - col0 + 84, - 93 AS col1 FROM tab1
----
132276
-93
135489
-93
167160
-93

query I rowsort
SELECT col0 FROM tab1 WHERE - + 61 IS NULL
----

query I rowsort
SELECT col0 + - col2 * + col2 * - col0 * + col1 AS col1 FROM tab0
----
182787
2683950
950794

query I rowsort
SELECT DISTINCT - 67 * 56 AS col1 FROM tab2
----
-3752

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9953
SELECT * FROM tab2 WHERE + + CAST( - + CAST( + col2 AS SIGNED ) AS SIGNED ) NOT BETWEEN + 63 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9953
SELECT * FROM tab2 WHERE + + CAST ( - + CAST ( + col2 AS INTEGER ) AS INTEGER ) NOT BETWEEN + 63 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 / col1 NOT IN ( col2, - col2 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 73 + + col0 * + col0 * - 9 FROM tab2
----
-19117
-36937
-50698

query I rowsort
SELECT ALL - + col0 * + - 21 FROM tab2 cor0
----
1344
1575
966

query I rowsort
SELECT ALL 71 + + col1 FROM tab2 AS cor0
----
122
138
148

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * + - col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT ALL + col1 / - ( col1 ) + + - 29 * CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + CAST( NULL AS SIGNED ) * + 11 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL + col1 / - ( col1 ) + + - 29 * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + CAST ( NULL AS INTEGER ) * + 11 ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 + col1 + col1 + - col2 FROM tab1 AS cor0
----
-44
-54
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9962
SELECT - col2, - CAST( col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-59
-5
-68
-47
-96
-14

skipif mysql # not compatible
query II rowsort label-9962
SELECT - col2, - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT - ( - - 43 ) * + ( + CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-3483
-43
-903

skipif mysql # not compatible
query I rowsort label-9963
SELECT - ( - - 43 ) * + ( + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-3483
-43
-903

query I rowsort
SELECT ALL - - 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL SUM( - - col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9965
SELECT ALL SUM ( - - col1 ) col0 FROM tab0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9966
SELECT ALL - ( SUM( ALL 4 ) ) DIV + + 10 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL - ( SUM ( ALL 4 ) ) / + + 10 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL - ( - MIN( + - 7 ) ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL - ( - MIN ( + - 7 ) ) FROM tab0 AS cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <= - - col0
----

query I rowsort
SELECT ALL ( ( + 56 ) ) FROM tab1
----
56
56
56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 8 <> 11 * - - 65
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 40 ) BETWEEN - + col2 AND ( + col2 * - 71 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 AS col1, - col0 AS col1 FROM tab0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT DISTINCT col0 + + 12 - col0 + + - 44 AS col0 FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT 98 + - COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-9977
SELECT 98 + - COUNT ( * ) FROM tab0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9978
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > col0 - + CAST( - - ( ( + 83 ) ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9978
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > col0 - + CAST ( - - ( ( + 83 ) ) AS INTEGER )
----

query I rowsort
SELECT + 97 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT DISTINCT + + 38 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT + + 38 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + 71 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT col0 * + col2 * + - col1 + + - CAST( - - 63 AS SIGNED ) FROM tab1 AS cor0
----
-25138
-290899
-68607

skipif mysql # not compatible
query I rowsort label-9982
SELECT col0 * + col2 * + - col1 + + - CAST ( - - 63 AS INTEGER ) FROM tab1 AS cor0
----
-25138
-290899
-68607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT ALL - - 81 * 11 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - - 81 * 11 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 / - - CAST( NULL AS SIGNED ) * - 41 IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 / - - CAST ( NULL AS INTEGER ) * - 41 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT + col0 AS col1, 9 + - ( - col1 ) AS col1 FROM tab2 AS cor0
----
46
60
64
86
75
76

query I rowsort
SELECT DISTINCT + col2 * - 62 * - 98 FROM tab1 AS cor0
----
358484
413168
583296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT - ( - - CAST( NULL AS SIGNED ) ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 43 * - col0 + + col2 IN ( - - col0, - 84 )
----

query I rowsort
SELECT ALL - - col1 * + 72 * - 62 FROM tab0 AS cor0
----
-361584
-4464
-93744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9990
SELECT ALL 50 * - + 35 * 49 * - + col0 * - CAST( col0 AS SIGNED ) + + 88, + 65 AS col0 FROM tab2
----
-181446912
65
-351231912
65
-482343662
65

skipif mysql # not compatible
query II rowsort label-9990
SELECT ALL 50 * - + 35 * 49 * - + col0 * - CAST ( col0 AS INTEGER ) + + 88, + 65 AS col0 FROM tab2
----
-181446912
65
-351231912
65
-482343662
65

query II rowsort
SELECT ALL col1 * - 36, - col1 AS col1 FROM tab2
----
-1836
-51
-2412
-67
-2772
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT + COUNT( * ) * - 27 AS col0 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-9992
SELECT + COUNT ( * ) * - 27 AS col0 FROM tab1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 37 + - + col2 * - 68 * - - col2 BETWEEN NULL AND + ( + 60 )
----

query I rowsort
SELECT + 49 - col0 AS col0 FROM tab2
----
-15
-26
3

query II rowsort
SELECT DISTINCT 28 * - col1 + + 45 + - 85 * + - col0, 87 AS col0 FROM tab2
----
2527
87
3329
87
4544
87

query II rowsort
SELECT col1 * 48 + - + col2 AS col1, - ( + + col1 ) FROM tab1
----
181
-5
2188
-47
576
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9997
SELECT DISTINCT COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT + + 68 + MAX( DISTINCT col0 ) FROM tab1 cor0
----
159

skipif mysql # not compatible
query I rowsort label-9998
SELECT + + 68 + MAX ( DISTINCT col0 ) FROM tab1 cor0
----
159

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 * + - col0 >= NULL
----

