sqllogictest
Artifact Content
Not logged in

Artifact e9fec5d6c647913d006e7ed209a002a6f71a9697:


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