sqllogictest
Artifact Content
Not logged in

Artifact 68a44c7261af15aded72223e093dfc1dd0d6fccf:


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 # DIV for integer division: 
query I rowsort label-0
SELECT DISTINCT col2 DIV + + 65 AS col0 FROM tab0
----
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT COUNT( * ) - 61 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-1
SELECT COUNT ( * ) - 61 FROM tab0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT 3 * + COUNT( * ) - MAX( - - col1 ) AS col0 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-2
SELECT 3 * + COUNT ( * ) - MAX ( - - col1 ) AS col0 FROM tab2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3
SELECT ALL - CAST( NULL AS SIGNED ) + ( + 90 ) col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL COUNT( * ) + + 68 * - 46 AS col1 FROM tab2 AS cor0
----
-3125

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL COUNT ( * ) + + 68 * - 46 AS col1 FROM tab2 AS cor0
----
-3125

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col0 * - - col0 - 42 BETWEEN + 23 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT + MAX( - + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8
SELECT + MAX ( - + col2 ) FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-10
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) AS col2, 55 FROM tab1 AS cor0
----
-51
55
-85
55
-91
55

skipif mysql # not compatible
query II rowsort label-10
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) AS col2, 55 FROM tab1 AS cor0
----
-51
55
-85
55
-91
55

query II rowsort
SELECT - col0 AS col1, 46 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + col2 <> NULL
----

query II rowsort
SELECT ALL + 31, col1 FROM tab0 AS cor0
----
31
1
31
21
31
81

query II rowsort
SELECT DISTINCT + col2, + ( + + col1 ) AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT + col1 AS col0, - col0 AS col1 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query II rowsort
SELECT DISTINCT col2, col1 + - 21 + col1 AS col1 FROM tab2 AS cor0
----
23
81
40
133
58
113

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-16
SELECT ALL * FROM tab0 WHERE - CAST( 87 AS SIGNED ) / + col1 - - col1 - - 44 NOT BETWEEN col2 + - - col1 + - col2 AND - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-16
SELECT ALL * FROM tab0 WHERE - CAST ( 87 AS INTEGER ) / + col1 - - col1 - - 44 NOT BETWEEN col2 + - - col1 + - col2 AND - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-17
SELECT COUNT( * ) + - - 16 DIV - 80 AS col0 FROM tab0 WHERE NOT - - CAST( + - CAST( + col0 AS SIGNED ) AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-17
SELECT COUNT ( * ) + - - 16 / - 80 AS col0 FROM tab0 WHERE NOT - - CAST ( + - CAST ( + col0 AS INTEGER ) AS INTEGER ) IS NULL
----
3

query I rowsort
SELECT DISTINCT col0 + + + col2 + - col1 FROM tab1
----
112
133
139

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT - - ( + 29 ) IS NULL
----
1
21
81

query I rowsort
SELECT + 36 + - col0 FROM tab0 AS cor0
----
-51
-61
21

query I rowsort
SELECT DISTINCT - + col0 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-22
SELECT - COUNT( * ) AS col0, MIN( + col2 ) FROM tab0 cor0
----
-3
10

skipif mysql # not compatible
query II rowsort label-22
SELECT - COUNT ( * ) AS col0, MIN ( + col2 ) FROM tab0 cor0
----
-3
10

query I rowsort
SELECT DISTINCT + - col2 * 4 + + - col2 + col1 AS col1 FROM tab1 AS cor0
----
-290
-293
-466

query I rowsort
SELECT - + 49 FROM tab1 AS cor0 WHERE NULL <= col2
----

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

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

query I rowsort
SELECT col2 / + col2 FROM tab0 AS cor0 WHERE col2 = + col2 * - 52 - - - col0 + + ( + + 52 ) * + ( - 11 )
----

query I rowsort
SELECT + col0 - + + col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL - ( - 31 ) - - ( - col1 ) + + 36 - - + col2 * col2 + + + 61 * - 48 * + 65 AS col2 FROM tab1 AS cor0
----
-181051
-185676
-186777

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

onlyif mysql # DIV for integer division: 
query I rowsort label-30
SELECT ALL + col1 DIV + + 12 AS col1 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL + col1 / + + 12 AS col1 FROM tab0 AS cor0
----
0
1
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - - col1 BETWEEN - - col0 * + 49 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 8 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT DISTINCT 94 * + COUNT( * ) FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT 94 * + COUNT ( * ) FROM tab2
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT SUM( + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-34
SELECT SUM ( + - col2 ) FROM tab2
----
-121

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT - 69 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-36
SELECT - 69 / col2 AS col1 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT DISTINCT + 48 DIV 99 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT + 48 / 99 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + 37 * 57 + + + 50 FROM tab1
----
2159
2159
2159

query I rowsort
SELECT col0 + - + 14 AS col2 FROM tab0
----
1
73
83

query II rowsort
SELECT + 90 AS col0, col0 AS col1 FROM tab0
----
90
15
90
87
90
97

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT MIN( + - 62 ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-43
SELECT MIN ( + - 62 ) FROM tab1
----
-62

query I rowsort
SELECT DISTINCT col1 + col2 + + col0 FROM tab2
----
120
181
200

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT 41 + - COUNT( - col2 ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-47
SELECT 41 + - COUNT ( - col2 ) FROM tab1
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-48
SELECT DISTINCT col1 + - + col2 + - 18 + col2 + - col2 * CAST( NULL AS DECIMAL ) + 77 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT col1 + - + col2 + - 18 + col2 + - col2 * CAST ( NULL AS REAL ) + 77 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-49
SELECT DISTINCT - COUNT( DISTINCT + CAST( + - 68 AS DECIMAL ) ) + + COUNT( * ) FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT - COUNT ( DISTINCT + CAST ( + - 68 AS REAL ) ) + + COUNT ( * ) FROM tab1 cor0
----
2

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE col1 + col1 <> + 51
----
10
47
99

query I rowsort
SELECT - col1 * - col1 FROM tab0 WHERE ( + + col1 ) IS NOT NULL
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT 38 - + - COUNT( * ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-52
SELECT 38 - + - COUNT ( * ) FROM tab2
----
41

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

query I rowsort
SELECT col2 - - col0 * col2 * + col0 AS col0 FROM tab1
----
249792
426334
563176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 * + col1 col0 FROM tab0
----
1458
18
378

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

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

query I rowsort
SELECT ALL + ( ( - 57 ) ) * + col2 + + 37 + + - col2 * + - col1 FROM tab1
----
-3031
-4091
-643

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 16 = - 8 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 64 * + - col0 FROM tab2
----
-2944
-4096
-4800

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 >= + 52 * + - col1 + 6
----

query I rowsort
SELECT DISTINCT col0 * + + 63 FROM tab0 AS cor0
----
5481
6111
945

onlyif mysql # aggregate syntax: 
query II rowsort label-62
SELECT - - 87 AS col0, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
87
-3

skipif mysql # not compatible
query II rowsort label-62
SELECT - - 87 AS col0, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
87
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL + - MIN( - + col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-63
SELECT ALL + - MIN ( - + col0 ) col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 WHERE NULL < - 59 + + col2
----

query I rowsort
SELECT + col0 + 86 AS col1 FROM tab2
----
132
150
161

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * + 90 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-68
SELECT DISTINCT col1 * ( + col1 ) - + CAST( NULL AS DECIMAL ) * col0 FROM tab0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT ALL col1 DIV - col0 + - col0 FROM tab2
----
-47
-65
-75

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL col1 / - col0 + - col0 FROM tab2
----
-47
-65
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT - CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) FROM tab0 WHERE NOT - col2 NOT BETWEEN ( - col2 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-70
SELECT - CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) FROM tab0 WHERE NOT - col2 NOT BETWEEN ( - col2 ) AND ( NULL )
----

query I rowsort
SELECT 88 + + col2 FROM tab2
----
111
128
146

query I rowsort
SELECT col1 + 44 FROM tab0
----
125
45
65

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

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

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

query I rowsort
SELECT - 79 + col2 AS col0 FROM tab1
----
-11
-20
17

query I rowsort
SELECT + col1 * + col2 + col1 FROM tab2
----
1224
3157
3953

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT ALL - CAST( - 54 AS SIGNED ) * 14 AS col2 FROM tab2
----
756
756
756

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL - CAST ( - 54 AS INTEGER ) * 14 AS col2 FROM tab2
----
756
756
756

query I rowsort
SELECT ALL - 34 * col2 AS col2 FROM tab1
----
-2006
-2312
-3264

onlyif mysql # DIV for integer division: 
query I rowsort label-81
SELECT col1 + - 34 DIV - col1 FROM tab0
----
22
35
81

skipif mysql # not compatible
query I rowsort label-81
SELECT col1 + - 34 / - col1 FROM tab0
----
22
35
81

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( + 66 ) * 76 + 51 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT ALL + 9 + + COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL + 9 + + COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL MIN( + col1 ) - - COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL MIN ( + col1 ) - - COUNT ( * ) FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-86
SELECT + col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( col2 * - CAST( NULL AS SIGNED ) ) AND + 66
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-87
SELECT ALL 37 + - CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab1 cor0
----
34

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL 37 + - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab1 cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT + 42 + SUM( + col2 ) AS col0 FROM tab0 cor0
----
198

skipif mysql # not compatible
query I rowsort label-88
SELECT + 42 + SUM ( + col2 ) AS col0 FROM tab0 cor0
----
198

query I rowsort
SELECT - 56 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
1002
2504
4294

query I rowsort
SELECT ALL ( 84 ) + col2 FROM tab0 AS cor0
----
131
183
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-92
SELECT DISTINCT 10 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT ALL - MAX( CAST( + 49 AS SIGNED ) ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL - MAX ( CAST ( + 49 AS INTEGER ) ) FROM tab1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + ( COUNT( * ) ) * 73 AS col0 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-94
SELECT + ( COUNT ( * ) ) * 73 AS col0 FROM tab0
----
219

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) NOT BETWEEN 77 + - 24 AND + col2 * col1
----
46
51
23

query I rowsort
SELECT 0 FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + col1 * 99 - + col2 * col1 AS col2 FROM tab2 AS cor0
----
2747
3876
4543

onlyif mysql # DIV for integer division: 
query I rowsort label-98
SELECT ALL col0 * ( col0 DIV + 50 ) + - col2 * col2 col0 FROM tab0 AS cor0
----
-13
-2209
-9704

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-98
SELECT ALL col0 * ( col0 / + 50 ) + - col2 * col2 col0 FROM tab0 AS cor0
----
-13
-2209
-9704

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

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

query I rowsort
SELECT DISTINCT - 65 FROM tab2 AS cor0 WHERE 65 = 7 / - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 > ( NULL )
----

query I rowsort
SELECT - col1 + + ( - col1 ) AS col1 FROM tab1 cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-103
SELECT ALL 13 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IN ( - col1 + + 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 * - ( - 68 ) + - col0 * - col0 col1 FROM tab1 AS cor0
----
10185
4505
9129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT + col0 FROM tab1 cor0 WHERE + CAST( col1 AS SIGNED ) IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-107
SELECT ALL - 80 DIV - ( 75 - - col2 ) - 7 AS col1 FROM tab0 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - 80 / - ( 75 - - col2 ) - 7 AS col1 FROM tab0 AS cor0
----
-7
-7
-7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 > ( col2 / col2 )
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 72 )
----

query I rowsort
SELECT DISTINCT - 40 * col1 * col2 AS col1 FROM tab1
----
-11800
-127840
-53760

query I rowsort
SELECT + AVG ( + col1 ) AS col0 FROM tab0 WHERE NOT NULL <= - 59
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( ( - col0 ) * col1 )
----

query I rowsort
SELECT ALL - 25 + - 82 FROM tab2 WHERE NULL < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT - 15 DIV + col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-115
SELECT - 15 / + col0 col2 FROM tab1
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-117
SELECT SUM ( - - col0 ) AS col0 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT ALL - 95 * - + SUM( DISTINCT col1 ) AS col2 FROM tab2
----
18525

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL - 95 * - + SUM ( DISTINCT col1 ) AS col2 FROM tab2
----
18525

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

query I rowsort
SELECT DISTINCT col2 * - 80 * col0 AS col1 FROM tab2
----
-204800
-348000
-84640

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN ( NULL ) AND col1 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col2 FROM tab1 WHERE NOT ( - 78 * 26 ) IS NULL
----
77
77
77

query I rowsort
SELECT + 61 * col0 FROM tab1
----
3111
5185
5551

query I rowsort
SELECT - col0 * col0 * col2 AS col0 FROM tab0
----
-10575
-75690
-931491

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - - col2 col2 FROM tab2 AS cor0
----
-1600
-3364
-529

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

query I rowsort
SELECT DISTINCT 28 * + + col1 FROM tab0
----
2268
28
588

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT - 34 * + COUNT( * ) AS col2 FROM tab0 WHERE NOT col0 BETWEEN ( NULL ) AND col1 - + col0
----
-68

skipif mysql # not compatible
query I rowsort label-130
SELECT - 34 * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col0 BETWEEN ( NULL ) AND col1 - + col0
----
-68

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT ALL + 83 + + COUNT( * ) FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL + 83 + + COUNT ( * ) FROM tab2 AS cor0
----
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT - 9 + - 38 + 64 + + COUNT( * ) * + 47 FROM tab0 cor0
----
158

skipif mysql # not compatible
query I rowsort label-135
SELECT - 9 + - 38 + 64 + + COUNT ( * ) * + 47 FROM tab0 cor0
----
158

query II rowsort
SELECT ALL 39, - 93 * + - 49 * col1 AS col0 FROM tab0 cor0
----
39
369117
39
4557
39
95697

query II rowsort
SELECT ALL + - col0 AS col0, 27 * col0 FROM tab0 AS cor0
----
-15
405
-87
2349
-97
2619

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 / - col1 + col0 BETWEEN 89 + col0 AND ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 20 * - + col0 + - col1 AS col1 FROM tab1 cor0
----
1006
1695
1773

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT - 87 + - - MIN( DISTINCT + + 95 ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-141
SELECT - 87 + - - MIN ( DISTINCT + + 95 ) AS col0 FROM tab1
----
8

query I rowsort
SELECT DISTINCT + col0 * col2 + col0 AS col1 FROM tab1 WHERE NOT ( col2 ) IN ( col0 )
----
4947
5100
6279

query I rowsort
SELECT DISTINCT col1 * - col0 * + 6 * col1 FROM tab1
----
-1206114
-12750
-59976

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT MIN( col2 ) AS col2 FROM tab1 WHERE col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-144
SELECT MIN ( col2 ) AS col2 FROM tab1 WHERE col0 > NULL
----
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-146
SELECT ALL + CAST( + - col1 AS SIGNED ) * - + col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL + CAST ( + - col1 AS INTEGER ) * - + col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + 88 * - 10 * + 93 AS col1 FROM tab0
----
-81840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-148
SELECT ALL col2 + + ( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL col2 + + ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-149
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + - 88 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-149
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + - 88 IS NOT NULL
----

query I rowsort
SELECT col1 * col0 * - col2 AS col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT - 17 + - col2 + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * col0 AS col0 FROM tab1 AS cor0 WHERE + col1 * + ( - col0 ) NOT BETWEEN NULL AND ( - col0 * col0 )
----
2601
7225
8281

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-154
SELECT + CAST( col1 AS SIGNED ) / + 77 FROM tab0 AS cor0 WHERE ( - CAST( col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-154
SELECT + CAST ( col1 AS INTEGER ) / + 77 FROM tab0 AS cor0 WHERE ( - CAST ( col0 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE - col2 * col1 * 47 <> ( ( - col0 ) )
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> + col2 - col1
----

query I rowsort
SELECT col0 + + - col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT COUNT( * ) + - - SUM( ALL - 72 ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-158
SELECT COUNT ( * ) + - - SUM ( ALL - 72 ) FROM tab1
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + 53 col1 FROM tab0
----
-43
-6
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + 74
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 3 BETWEEN + 79 AND - col1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col1 + - + col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-163
SELECT ALL * FROM tab1 AS cor0 WHERE ( 32 - + + col2 + + + 15 ) IN ( - col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-163
SELECT ALL * FROM tab1 AS cor0 WHERE ( 32 - + + col2 + + + 15 ) IN ( - col2 * CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL - col1 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-165
SELECT ( CAST( NULL AS SIGNED ) ) + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 * - ( - col0 ) * + - col1 + - 82 ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-165
SELECT ( CAST ( NULL AS INTEGER ) ) + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 * - ( - col0 ) * + - col1 + - 82 ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-166
SELECT CAST( + MIN( ALL + col1 ) AS SIGNED ) FROM tab1
----
5

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <> + col2 + col2 - + + ( 10 ) * 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL 24 AS col0, + 43, col1 * + + 84 * + col1 + col0 AS col2 FROM tab0
----
9 values hashing to 034c4a08be87d166c369c3742db19adc

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

skipif mysql # not compatible
query II rowsort label-169
SELECT COUNT ( * ) AS col0, - 82 FROM tab2
----
3
-82

query I rowsort
SELECT ( 83 ) AS col0 FROM tab0
----
83
83
83

query III rowsort
SELECT * FROM tab2 WHERE NOT 22 * - - 25 * + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-172
SELECT DISTINCT + 43 col0, - 35 * + MIN( DISTINCT - 0 ) + + 22 FROM tab0
----
43
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-172
SELECT DISTINCT + 43 col0, - 35 * + MIN ( DISTINCT - 0 ) + + 22 FROM tab0
----
43
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT + COUNT( * ) + - - 71 AS col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-174
SELECT + COUNT ( * ) + - - 71 AS col1 FROM tab0 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT ALL - 47 * - MIN( - col1 ) FROM tab1 AS cor0
----
-2209

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL - 47 * - MIN ( - col1 ) FROM tab1 AS cor0
----
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT - MAX( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT + - 28 NOT BETWEEN - 52 AND - col0 OR NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-176
SELECT - MAX ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT + - 28 NOT BETWEEN - 52 AND - col0 OR NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col0 - - 22
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT + COUNT( * ) + - + SUM( + 52 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-459

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT + COUNT ( * ) + - + SUM ( + 52 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL MAX( DISTINCT - 93 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL MAX ( DISTINCT - 93 ) FROM tab1
----
-93

query I rowsort
SELECT ALL + col2 * + 81 AS col1 FROM tab2 AS cor0
----
1863
3240
4698

query I rowsort
SELECT + + 57 * - col0 * + 30 FROM tab1 AS cor0
----
-145350
-155610
-87210

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - ( + col2 ) col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-186
SELECT ALL + - CAST( 34 AS SIGNED ) * - + col1 AS col1 FROM tab0 AS cor0
----
2754
34
714

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL + - CAST ( 34 AS INTEGER ) * - + col1 AS col1 FROM tab0 AS cor0
----
2754
34
714

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT - col0 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-187
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT - col0 IS NULL )
----
-3

query I rowsort
SELECT ALL 84 * - - ( + 61 ) FROM tab2
----
5124
5124
5124

onlyif mysql # DIV for integer division: 
query I rowsort label-189
SELECT DISTINCT + col2 DIV - 6 FROM tab1
----
-11
-16
-9

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT + col2 / - 6 FROM tab1
----
-11
-16
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col2, 66 * col2 + + 73, + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + - 75 NOT IN ( col1 + - col2, col0 * - 32 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) = - 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-193
SELECT + MAX( - - ( col0 ) ) * + COUNT( * ) + - COUNT( * ) + - - COUNT( * ) AS col1, CAST( + + 51 AS SIGNED ) AS col0 FROM tab2 cor0
----
225
51

skipif mysql # not compatible
query II rowsort label-193
SELECT + MAX ( - - ( col0 ) ) * + COUNT ( * ) + - COUNT ( * ) + - - COUNT ( * ) AS col1, CAST ( + + 51 AS INTEGER ) AS col0 FROM tab2 cor0
----
225
51

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-195
SELECT + 96 AS col0, COUNT( * ) * - 70 + - MIN( - 83 ) * - ( - 34 ) AS col1 FROM tab0 AS cor0
----
96
2612

skipif mysql # not compatible
query II rowsort label-195
SELECT + 96 AS col0, COUNT ( * ) * - 70 + - MIN ( - 83 ) * - ( - 34 ) AS col1 FROM tab0 AS cor0
----
96
2612

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT SUM( ALL - 88 ) FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-196
SELECT SUM ( ALL - 88 ) FROM tab0 AS cor0
----
-264

query I rowsort
SELECT + col2 + + + col1 FROM tab1 AS cor0 WHERE - col0 * - 32 <= - 86
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 NOT BETWEEN NULL AND ( - col1 * - + 58 / + ( + - col1 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col2 AND + 14
----
87
21
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 55 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - 95 IS NULL
----

query I rowsort
SELECT col2 * - col0 / + col1 * - 18 + col0 + - 16 * col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 AS col1, + 43 AS col1 FROM tab1
----
59
43
68
43
96
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( - col1 ) ) col2 FROM tab1
----
-14
-47
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT COUNT( * ) * + 87 * - 23 FROM tab1
----
-6003

skipif mysql # not compatible
query I rowsort label-206
SELECT COUNT ( * ) * + 87 * - 23 FROM tab1
----
-6003

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 / - col2 * + col2 NOT BETWEEN 9 * 51 AND + 38 / + 69 - - 60 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + + 17 * 70 FROM tab1 AS cor0
----
114240
70210
80920

query II rowsort
SELECT ALL 88 AS col0, col1 AS col0 FROM tab2 AS cor0
----
88
51
88
67
88
77

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT ALL MAX( col1 ) col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-210
SELECT ALL MAX ( col1 ) col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + - 50 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 * 73 AS col2 FROM tab2
----
1679
2920
4234

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

query I rowsort
SELECT + col2 + - - col1 + 82 FROM tab1
----
146
192
197

query I rowsort
SELECT + - 90 * - col0 + - col1 - col0 + - + col2 AS col2 FROM tab1 AS cor0
----
4429
7501
7984

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 NOT BETWEEN - col2 + + col2 AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 76 * - - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-23
1586
6109

query I rowsort
SELECT + - col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

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

query I rowsort
SELECT ALL - col0 * + 63 * + col0 AS col0 FROM tab2 AS cor0
----
-133308
-258048
-354375

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 5 * + col1 FROM tab2 AS cor0
----
255
335
385

query I rowsort
SELECT - col2 + ( + + col1 ) FROM tab0 AS cor0
----
-98
11
34

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

query I rowsort
SELECT col1 * + - 32 + + + col1 FROM tab1 AS cor0
----
-1457
-155
-434

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col0 - col0 <> ( NULL ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 92 * + col1 IN ( + 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT col0 DIV + - 47 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-228
SELECT col0 / + - 47 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-229
SELECT DISTINCT col0 + - col2 / - + 60 + + 16 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT col0 + - col2 / - + 60 + + 16 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) = 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT 24 + - - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-231
SELECT DISTINCT 24 + - - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
27

query I rowsort
SELECT DISTINCT + col1 * + + col1 - - col1 AS col2 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT - ( + 81 ) * - col0 AS col2 FROM tab2
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL - COUNT( * ) * - 45 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - COUNT ( * ) * - 45 FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT DISTINCT + + 38 * + COUNT( ALL + - ( 81 ) ) * + - 99 FROM tab2 AS cor0
----
-11286

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT + + 38 * + COUNT ( ALL + - ( 81 ) ) * + - 99 FROM tab2 AS cor0
----
-11286

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT - - 39 * - COUNT( * ) col2 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-236
SELECT DISTINCT - - 39 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-117

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

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT + - COUNT( * ) * - SUM( + 8 ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-238
SELECT + - COUNT ( * ) * - SUM ( + 8 ) AS col2 FROM tab2 AS cor0
----
72

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT + col1 DIV + - col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-240
SELECT + col1 / + - col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-241
SELECT ALL COUNT( * ) DIV - ( + 6 ) + + 58 AS col0, - COUNT( * ) FROM tab1 cor0
----
58
-3

skipif mysql # not compatible
query II rowsort label-241
SELECT ALL COUNT ( * ) / - ( + 6 ) + + 58 AS col0, - COUNT ( * ) FROM tab1 cor0
----
58
-3

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

query I rowsort
SELECT 10 * + + col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
590
680
960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + 10 * + + col2 AS col0 FROM tab0
----
100
470
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-247
SELECT - - ( - - 83 ) AS col1 FROM tab2 WHERE NOT + CAST( + col0 AS SIGNED ) + + 92 = - - col2
----
83
83
83

skipif mysql # not compatible
query I rowsort label-247
SELECT - - ( - - 83 ) AS col1 FROM tab2 WHERE NOT + CAST ( + col0 AS INTEGER ) + + 92 = - - col2
----
83
83
83

query I rowsort
SELECT col1 * + 27 + + - 60 AS col0 FROM tab1 cor0
----
1209
318
75

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT DISTINCT + MIN( + col0 ) * - 71 FROM tab0 AS cor0
----
-1065

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT + MIN ( + col0 ) * - 71 FROM tab0 AS cor0
----
-1065

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 54 / + 72 + - + 86 * - col1 NOT BETWEEN col0 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT MAX( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-251
SELECT MAX ( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-252
SELECT + - 96 + + col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 18 AND CAST( - - col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-252
SELECT + - 96 + + col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 18 AND CAST ( - - col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - COUNT( * ) - 82 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-253
SELECT - COUNT ( * ) - 82 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT + - col1 - col1 AS col1 FROM tab0 cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT DISTINCT ( + ( + 96 ) ) - MAX( ALL + col0 ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT ( + ( + 96 ) ) - MAX ( ALL + col0 ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT - 52 - + COUNT( + - col0 ) FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-256
SELECT - 52 - + COUNT ( + - col0 ) FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT - COUNT( * ) - 33 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-257
SELECT - COUNT ( * ) - 33 FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL 32 - - COUNT( * ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL 32 - - COUNT ( * ) FROM tab2 AS cor0
----
35

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IS NULL AND NOT 58 IS NOT NULL
----

query I rowsort
SELECT col1 + - - 51 AS col1 FROM tab1
----
56
65
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT - CAST( + - 79 AS SIGNED ) AS col2 FROM tab1 WHERE - - col1 * - + col1 + col2 BETWEEN + + col0 AND + 40
----

skipif mysql # not compatible
query I rowsort label-262
SELECT - CAST ( + - 79 AS INTEGER ) AS col2 FROM tab1 WHERE - - col1 * - + col1 + col2 BETWEEN + + col0 AND + 40
----

query I rowsort
SELECT DISTINCT ( + col1 ) * - 15 AS col2 FROM tab1
----
-210
-705
-75

query I rowsort
SELECT col0 * - 17 AS col2 FROM tab0
----
-1479
-1649
-255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + 66 col0 FROM tab1
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, + 30 AS col0 FROM tab1 AS cor0
----
51
30
85
30
91
30

query II rowsort
SELECT - + 34 AS col2, 85 * - + 30 FROM tab2 AS cor0
----
-34
-2550
-34
-2550
-34
-2550

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

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL - 68 / COUNT ( * ) FROM tab2 AS cor0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + col2 / - + ( col1 ) + - col2 + - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL + 83 * - COUNT( DISTINCT + 71 ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL + 83 * - COUNT ( DISTINCT + 71 ) FROM tab1 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-272
SELECT DISTINCT + - 67 DIV + 18 - + - col2 AS col2 FROM tab1 AS cor0
----
56
65
93

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT + - 67 / + 18 - + - col2 AS col2 FROM tab1 AS cor0
----
56
65
93

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT + MAX( - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-273
SELECT + MAX ( - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - + SUM( + ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-274
SELECT - + SUM ( + ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT 73 DIV + col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-275
SELECT 73 / + col0 FROM tab0 AS cor0
----
0
0
4

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

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

query I rowsort
SELECT DISTINCT col0 + - - col1 FROM tab1 AS cor0 WHERE col0 * - ( - - col2 ) + - - 7 - + 64 - - - col1 IS NOT NULL
----
138
65
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL + SUM( col0 ) col0 FROM tab0 WHERE - 46 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-279
SELECT ALL + SUM ( col0 ) col0 FROM tab0 WHERE - 46 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL COUNT( * ) + - 22 AS col2 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL COUNT ( * ) + - 22 AS col2 FROM tab1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT DISTINCT + COUNT( DISTINCT + col1 ) * - + 83 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) * - + 83 FROM tab2
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL - 23 * - COUNT( * ) * - - 0 * - ( + COUNT( * ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - 23 * - COUNT ( * ) * - - 0 * - ( + COUNT ( * ) ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT SUM( 79 ) col1 FROM tab1
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-283
SELECT SUM ( 79 ) col1 FROM tab1
----
237

query II rowsort
SELECT col1, 58 AS col0 FROM tab1
----
14
58
47
58
5
58

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col0 col2 FROM tab0 AS cor0
----
108
96
98

query II rowsort
SELECT DISTINCT 2 AS col1, 36 AS col1 FROM tab2 AS cor0
----
2
36

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-288
SELECT * FROM tab0 WHERE + CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-288
SELECT * FROM tab0 WHERE + CAST ( NULL AS REAL ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 53 + - ( col1 ) + 2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE - col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE - col0 <> NULL
----
0

query II rowsort
SELECT ALL + - col1, col1 * + 78 FROM tab0 AS cor0 WHERE ( NULL ) < - 4
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-292
SELECT - CAST( SUM( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE - col0 * - - col1 IS NULL
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-293
SELECT + MIN( DISTINCT + CAST( - ( ( 14 ) ) AS SIGNED ) ) * 54 + + ( 32 ) - - COUNT( * ) FROM tab2 AS cor0
----
-721

skipif mysql # not compatible
query I rowsort label-293
SELECT + MIN ( DISTINCT + CAST ( - ( ( 14 ) ) AS INTEGER ) ) * 54 + + ( 32 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-721

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 10 )
----

query II rowsort
SELECT DISTINCT 37 * - 81 * + col0 + col1 AS col2, - 88 + col2 * - col1 FROM tab2 AS cor0
----
-137811
-1261
-191731
-3168
-224708
-3974

query I rowsort
SELECT DISTINCT col1 - + col1 * - col2 FROM tab1 AS cor0
----
1358
300
3243

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT + SUM( - 30 ) - 84 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-299
SELECT + SUM ( - 30 ) - 84 FROM tab0
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-300
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

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

query I rowsort
SELECT 77 - + + col0 FROM tab2
----
13
2
31

query I rowsort
SELECT DISTINCT - col0 * 1 * - col2 AS col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL - COUNT( ALL - col1 ) * + COUNT( DISTINCT + col2 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - COUNT ( ALL - col1 ) * + COUNT ( DISTINCT + col2 ) AS col1 FROM tab2
----
-9

query II rowsort
SELECT DISTINCT + col0, 1 * - ( 10 ) FROM tab0 AS cor0
----
15
-10
87
-10
97
-10

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

query I rowsort
SELECT - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 22 = NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-308
SELECT SUM( - 2 ) AS col1, 16 * - 58 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18
-928

skipif mysql # not compatible
query II rowsort label-308
SELECT SUM ( - 2 ) AS col1, 16 * - 58 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18
-928

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab0
----
54

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-311
SELECT ALL + col1 col2, - ( + + col1 ) + + + col1 DIV - 37 AS col2 FROM tab2 AS cor0
----
51
-52
67
-68
77
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-311
SELECT ALL + col1 col2, - ( + + col1 ) + + + col1 / - 37 AS col2 FROM tab2 AS cor0
----
51
-52
67
-68
77
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ALL - col1 * - col1 * col2 AS col1 FROM tab1 AS cor0
----
1475
150212
18816

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

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT - + col1 DIV - 74 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-315
SELECT - + col1 / - 74 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-316
SELECT + - CAST( - MAX( ALL col1 ) AS SIGNED ) DIV - 59 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-316
SELECT + - CAST ( - MAX ( ALL col1 ) AS INTEGER ) / - 59 AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 86 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 96 * + col1 * - - 8 FROM tab0 AS cor0
----
16128
62208
768

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 - - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT ALL - COUNT( ALL 57 ) * 66 AS col0 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL - COUNT ( ALL 57 ) * 66 AS col0 FROM tab0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-322
SELECT + col2 * 82 / - - 49 + + - col2 - col0 - + col2 * + - 17 + + ( 30 ) * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2 + + - col0 * + col1
----

skipif mysql # not compatible
query I rowsort label-322
SELECT + col2 * 82 / - - 49 + + - col2 - col0 - + col2 * + - 17 + + ( 30 ) * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2 + + - col0 * + col1
----

query I rowsort
SELECT DISTINCT col2 * + + 40 AS col2 FROM tab1
----
2360
2720
3840

query I rowsort
SELECT ALL - col1 + - col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT - col1 DIV col1 * col2 + + + 1 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-325
SELECT - col1 / col1 * col2 + + + 1 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT ALL - - ( + + 37 ) + - - 95 FROM tab2 AS cor0
----
132
132
132

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT DISTINCT - + ( + 46 ) + - + 83 * COUNT( * ) FROM tab2 AS cor0
----
-295

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT - + ( + 46 ) + - + 83 * COUNT ( * ) FROM tab2 AS cor0
----
-295

query I rowsort
SELECT ALL - 43 * - 28 AS col0 FROM tab1 AS cor0
----
1204
1204
1204

query I rowsort
SELECT - + ( col1 ) * + ( - ( col0 ) ) * - 3 FROM tab0 AS cor0
----
-291
-3645
-5481

onlyif mysql # aggregate syntax: 
query II rowsort label-330
SELECT DISTINCT + COUNT( * ) AS col0, 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
27

skipif mysql # not compatible
query II rowsort label-330
SELECT DISTINCT + COUNT ( * ) AS col0, 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
27

query I rowsort
SELECT DISTINCT 25 + + + 75 AS col0 FROM tab0
----
100

query I rowsort
SELECT + ( col1 ) FROM tab2 AS cor0 WHERE - 53 * 88 IS NULL
----

query I rowsort
SELECT DISTINCT - 32 + - col0 - - 14 FROM tab1 AS cor0
----
-103
-109
-69

query I rowsort
SELECT DISTINCT col1 + - col2 - 36 * - 42 AS col0 FROM tab2 AS cor0
----
1521
1540
1549

query I rowsort
SELECT DISTINCT + 63 + + col0 FROM tab1 AS cor0
----
114
148
154

query I rowsort
SELECT + col1 * + + 39 * col2 AS col2 FROM tab0 cor0 WHERE NOT + - ( 0 ) IS NOT NULL AND ( NULL ) <= NULL
----

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

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

query I rowsort
SELECT DISTINCT + + col0 - - 19 FROM tab2 AS cor0
----
65
83
94

onlyif mysql # DIV for integer division: 
query II rowsort label-339
SELECT DISTINCT + ( - col0 ) DIV + 28 + - col2 AS col0, 58 AS col1 FROM tab1 cor0
----
-62
58
-71
58
-97
58

skipif mysql # not compatible
query II rowsort label-339
SELECT DISTINCT + ( - col0 ) / + 28 + - col2 AS col0, 58 AS col1 FROM tab1 cor0
----
-62
58
-71
58
-97
58

query I rowsort
SELECT - ( + - col0 ) * - col0 * col0 + col1 + - + col0 FROM tab0 AS cor0
----
-3309
-658569
-912769

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-341
SELECT - CAST( col2 AS SIGNED ) + - col0 * - - col0 AS col2, col0 FROM tab2
----
-2139
46
-4136
64
-5683
75

skipif mysql # not compatible
query II rowsort label-341
SELECT - CAST ( col2 AS INTEGER ) + - col0 * - - col0 AS col2, col0 FROM tab2
----
-2139
46
-4136
64
-5683
75

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-344
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT - CAST ( NULL AS REAL ) * - + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT DISTINCT MIN( col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT MIN ( col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - col2 ) + - - ( 94 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT DISTINCT + COUNT( ALL + - col0 ) * - 87 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT + COUNT ( ALL + - col0 ) * - 87 FROM tab0
----
-261

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

query II rowsort
SELECT DISTINCT + - 76 AS col0, 81 + 54 FROM tab0 cor0
----
-76
135

query I rowsort
SELECT - 12 + - - 7 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-351
SELECT DISTINCT - CAST( NULL AS DECIMAL ), col0 FROM tab1 AS cor0 WHERE NOT ( NOT + ( 35 ) = + + 55 / + 97 )
----

skipif mysql # not compatible
query II rowsort label-351
SELECT DISTINCT - CAST ( NULL AS REAL ), col0 FROM tab1 AS cor0 WHERE NOT ( NOT + ( 35 ) = + + 55 / + 97 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( col2 IN ( - col0 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-353
SELECT DISTINCT + - COUNT( * ), 77 col2 FROM tab1 AS cor0
----
-3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-353
SELECT DISTINCT + - COUNT ( * ), 77 col2 FROM tab1 AS cor0
----
-3
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT DISTINCT - col0 DIV + - col2 FROM tab2 WHERE NOT + 0 * - - 80 IN ( col0 )
----
1
2

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT - col0 / + - col2 FROM tab2 WHERE NOT + 0 * - - 80 IN ( col0 )
----
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( 10 ) col1 FROM tab2
----
510
670
770

query I rowsort
SELECT DISTINCT - 12 FROM tab1 WHERE - col1 < NULL
----

query II rowsort
SELECT 64, col1 + col2 AS col2 FROM tab0
----
64
100
64
128
64
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-359
SELECT - col1, ( + - CAST( + ( - col0 ) AS SIGNED ) ) AS col0 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-359
SELECT - col1, ( + - CAST ( + ( - col0 ) AS INTEGER ) ) AS col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-360
SELECT DISTINCT - 78 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT + 20 * + col2 + - - 70 FROM tab1 AS cor0
----
1250
1430
1990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL - COUNT( * ) / + - SUM( + col2 ) AS col1 FROM tab2 WHERE NOT NULL >= 99
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - COUNT ( * ) / + - SUM ( + col2 ) AS col1 FROM tab2 WHERE NOT NULL >= 99
----
NULL

query I rowsort
SELECT ALL + 92 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT 18 <> + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT ALL col0 DIV + + 59 + + 57 + - col2 - col0 + 96 FROM tab2 AS cor0
----
21
50
84

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL col0 / + + 59 + + 57 + - col2 - col0 + 96 FROM tab2 AS cor0
----
21
50
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 87 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-370
SELECT ALL - COUNT( * ) * + 1 DIV - 52 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-370
SELECT ALL - COUNT ( * ) * + 1 / - 52 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 60 FROM tab2 cor0
----
60

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

query I rowsort
SELECT 24 + + col2 + - col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - - 76 + 23 AND NULL
----

query I rowsort
SELECT + ( - - 34 ) * col2 AS col1 FROM tab1
----
2006
2312
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL - SUM( ALL col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL - SUM ( ALL col1 ) FROM tab2
----
-195

query I rowsort
SELECT DISTINCT - + ( + col0 ) AS col2 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT - - ( - - 73 ) FROM tab0 cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + 22 * - col1 FROM tab1 AS cor0
----
-1034
-110
-308

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 71 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT DISTINCT col2 DIV - 29 - - + col1 col2 FROM tab1 AS cor0
----
11
3
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-380
SELECT DISTINCT col2 / - 29 - - + col1 col2 FROM tab1 AS cor0
----
11
3
45

query I rowsort
SELECT ALL + 30 AS col1 FROM tab1
----
30
30
30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 BETWEEN NULL AND - 81
----

query II rowsort
SELECT DISTINCT + 22 * - 35, col1 FROM tab1 cor0
----
-770
14
-770
47
-770
5

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + + 61 col0 FROM tab0
----
502
62
6622

query I rowsort
SELECT 91 + - col0 AS col1 FROM tab2
----
16
27
45

query III rowsort
SELECT * FROM tab0 WHERE ( + 87 + - + col2 ) >= 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT DISTINCT + + 4 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT + + 4 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
7

query II rowsort
SELECT - 85, + col1 FROM tab0 cor0
----
-85
1
-85
21
-85
81

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

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

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE 96 <> - 41
----
-10
-47
-99

query I rowsort
SELECT ALL + - col1 * - 8 FROM tab0 AS cor0
----
168
648
8

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-395
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT ALL ( + ( + + ( 94 ) ) ) * + col0 * + CAST( + col0 AS SIGNED ) - + col1 AS col0 FROM tab1 AS cor0
----
244480
679145
778367

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL ( + ( + + ( 94 ) ) ) * + col0 * + CAST ( + col0 AS INTEGER ) - + col1 AS col0 FROM tab1 AS cor0
----
244480
679145
778367

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col1 + + col0 NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( 33, col0 / - - col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL - + col1 / - 66 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT + col0 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-404
SELECT - - 80 col0, 70 + - 41 + col2 + + CAST( NULL AS SIGNED ) + + col1 / 93 * - col0 + col0 FROM tab2 AS cor0
----
80
NULL
80
NULL
80
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-404
SELECT - - 80 col0, 70 + - 41 + col2 + + CAST ( NULL AS INTEGER ) + + col1 / 93 * - col0 + col0 FROM tab2 AS cor0
----
80
NULL
80
NULL
80
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-406
SELECT * FROM tab1 WHERE NOT + col1 * col1 - + col0 + - col2 IN ( - CAST( NULL AS SIGNED ) + - - ( - col0 ), + CAST( NULL AS SIGNED ), + - 53 )
----

skipif mysql # not compatible
query III rowsort label-406
SELECT * FROM tab1 WHERE NOT + col1 * col1 - + col0 + - col2 IN ( - CAST ( NULL AS INTEGER ) + - - ( - col0 ), + CAST ( NULL AS INTEGER ), + - 53 )
----

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

query I rowsort
SELECT + 57 * - 88 AS col2 FROM tab1
----
-5016
-5016
-5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT - 23 * + CAST( - col2 AS SIGNED ) * - + col2 FROM tab2
----
-12167
-36800
-77372

skipif mysql # not compatible
query I rowsort label-409
SELECT - 23 * + CAST ( - col2 AS INTEGER ) * - + col2 FROM tab2
----
-12167
-36800
-77372

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - col2 * + col1 * - col0 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL - COUNT( ALL - - col1 ) * 98 col0 FROM tab0
----
-294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-411
SELECT ALL - COUNT ( ALL - - col1 ) * 98 col0 FROM tab0
----
-294

query I rowsort
SELECT - 90 * - 91 AS col1 FROM tab2
----
8190
8190
8190

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-413
SELECT 97 / - SUM ( + + col1 ) col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-414
SELECT ALL 38 * 74 AS col2, + CAST( NULL AS SIGNED ), - col1 AS col2 FROM tab2
----
9 values hashing to 059b947f8097423d517e025ecbf3bd10

skipif mysql # not compatible
query III rowsort label-414
SELECT ALL 38 * 74 AS col2, + CAST ( NULL AS INTEGER ), - col1 AS col2 FROM tab2
----
9 values hashing to 059b947f8097423d517e025ecbf3bd10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 38 col2 FROM tab2 AS cor0
----
1520
2204
874

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

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT DISTINCT COUNT( DISTINCT 96 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT COUNT ( DISTINCT 96 ) FROM tab0
----
1

query II rowsort
SELECT col0 AS col1, col1 + + col2 * - 17 + - col0 FROM tab1
----
51
-1669
85
-1083
91
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL 60 + + - COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL 60 + + - COUNT ( * ) FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - - col1 * col2 * + - col1 + 76 FROM tab2 AS cor0
----
-237084
-260286
-59747

query I rowsort
SELECT DISTINCT - col2 * - - col2 + + col0 + + col0 + 77 AS col2 FROM tab0 AS cor0 WHERE NOT 6 * col0 + - - col0 - - 77 - + 29 + - + col0 * + col1 / - - 14 IS NOT NULL
----

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

query II rowsort
SELECT + 96, 34 * + col0 FROM tab0 WHERE - 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT + COUNT( col0 ) FROM tab2 WHERE - col0 < + + col1 * - 40 / - + col0 + + ( ( col1 ) )
----
3

skipif mysql # not compatible
query I rowsort label-424
SELECT + COUNT ( col0 ) FROM tab2 WHERE - col0 < + + col1 * - 40 / - + col0 + + ( ( col1 ) )
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT ALL + SUM( DISTINCT ( + 36 ) ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL + SUM ( DISTINCT ( + 36 ) ) FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL 30 * - 31 + - COUNT( * ) FROM tab1
----
-933

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL 30 * - 31 + - COUNT ( * ) FROM tab1
----
-933

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-429
SELECT - - CAST( col1 AS SIGNED ) + - 43 FROM tab0 AS cor0
----
-22
-42
38

skipif mysql # not compatible
query I rowsort label-429
SELECT - - CAST ( col1 AS INTEGER ) + - 43 FROM tab0 AS cor0
----
-22
-42
38

query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-431
SELECT - COUNT ( ALL - + col0 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + + + col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + + + col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 50 FROM tab0
----
4350
4850
750

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT MIN( col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-434
SELECT MIN ( col0 ) AS col2 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-435
SELECT ALL + CAST( + - col1 AS SIGNED ) DIV ( ( - col0 ) ) AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL + CAST ( + - col1 AS INTEGER ) / ( ( - col0 ) ) AS col1 FROM tab0
----
0
0
5

query II rowsort
SELECT DISTINCT - 6, - col0 AS col2 FROM tab1 cor0
----
-6
-51
-6
-85
-6
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT ALL + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT - 35 BETWEEN + 68 AND - + 74
----
3

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT - 35 BETWEEN + 68 AND - + 74
----
3

query I rowsort
SELECT DISTINCT col0 * + 11 FROM tab1
----
1001
561
935

query I rowsort
SELECT - + col2 * col0 AS col0 FROM tab0 cor0 WHERE 87 IS NULL
----

query I rowsort
SELECT DISTINCT - - 42 + ( + col0 ) FROM tab0 AS cor0
----
129
139
57

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT - MIN( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-441
SELECT - MIN ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - + col1 * - col1 * 35 FROM tab1 AS cor0
----
6860
77315
875

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

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

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

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

query I rowsort
SELECT col0 + - col2 + col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-446
SELECT ALL - CAST( col2 AS SIGNED ) + + 17 + col1 * - col2 col1 FROM tab1
----
-1423
-3247
-337

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-446
SELECT ALL - CAST ( col2 AS INTEGER ) + + 17 + col1 * - col2 col1 FROM tab1
----
-1423
-3247
-337

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

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

query I rowsort
SELECT ALL - ( col0 ) FROM tab2 AS cor0 WHERE + 1 * + col1 IS NOT NULL
----
-46
-64
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT + 65 * + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
585

skipif mysql # not compatible
query I rowsort label-451
SELECT + 65 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
585

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-452
SELECT + + MAX ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT - SUM( - - 49 ) FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-453
SELECT - SUM ( - - 49 ) FROM tab2 AS cor0
----
-147

query I rowsort
SELECT + 84 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-455
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 78 - + col0 NOT BETWEEN NULL AND 18 * 43
----

query I rowsort
SELECT ALL 97 * - + 68 AS col1 FROM tab1
----
-6596
-6596
-6596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT CAST( NULL AS SIGNED ) / + col1 - - - ( - col2 ) col1 FROM tab0 WHERE NOT - + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-458
SELECT CAST ( NULL AS INTEGER ) / + col1 - - - ( - col2 ) col1 FROM tab0 WHERE NOT - + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-459
SELECT CAST( + 74 AS SIGNED ) * col1 FROM tab1
----
1036
3478
370

skipif mysql # not compatible
query I rowsort label-459
SELECT CAST ( + 74 AS INTEGER ) * col1 FROM tab1
----
1036
3478
370

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + col2 + 64 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 45 * col1 * + - col0 FROM tab1 cor0
----
-19125
-192465
-32130

query I rowsort
SELECT + + 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

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

query I rowsort
SELECT DISTINCT - - 21 AS col0 FROM tab2 AS cor0 WHERE + 97 IS NOT NULL
----
21

query I rowsort
SELECT - col1 * 23 + + col1 FROM tab0 AS cor0
----
-1782
-22
-462

onlyif mysql # aggregate syntax: 
query II rowsort label-467
SELECT DISTINCT - COUNT( * ) AS col0, 18 AS col0 FROM tab2 AS cor0 WHERE + col1 BETWEEN - col1 / 58 / col0 * + - col2 AND - + ( - col1 )
----
-3
18

skipif mysql # not compatible
query II rowsort label-467
SELECT DISTINCT - COUNT ( * ) AS col0, 18 AS col0 FROM tab2 AS cor0 WHERE + col1 BETWEEN - col1 / 58 / col0 * + - col2 AND - + ( - col1 )
----
-3
18

query I rowsort
SELECT DISTINCT - col1 - + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-210
-2256
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( - + col2 )
----

query I rowsort
SELECT ALL ( ( + col0 ) ) * col1 * col1 AS col1 FROM tab2 AS cor0
----
119646
336675
379456

query I rowsort
SELECT - col0 * + + col2 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT ALL MAX( - + ( + + col1 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL MAX ( - + ( + + col1 ) ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT 42 - COUNT( * ) col1 FROM tab1
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-473
SELECT 42 - COUNT ( * ) col1 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT COUNT( * ) * 17 - + 21 * - 6 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-474
SELECT COUNT ( * ) * 17 - + 21 * - 6 FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT DISTINCT - COUNT( + 29 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT - COUNT ( + 29 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND + 96
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + + col2 ) col1 FROM tab1 WHERE NOT NULL > - 13 * - 38
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-480
SELECT DISTINCT + + ( + - 10 ) DIV col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 34 IS NULL
----
-10
0

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + + ( + - 10 ) / col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 34 IS NULL
----
-10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT DISTINCT MAX( ALL - 50 ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT MAX ( ALL - 50 ) FROM tab0 AS cor0
----
-50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + col2 AND ( NULL )
----
51
14
96

query I rowsort
SELECT ALL + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT ALL - + 83, MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
-83
-75

skipif mysql # not compatible
query II rowsort label-484
SELECT ALL - + 83, MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
-83
-75

query I rowsort
SELECT - col0 * - col1 - - col1 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT - 35 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-486
SELECT - 35 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - + col2 / - col1 AS col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT DISTINCT + col2 * CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT + col2 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT ALL col0 + col2 + - col0 * col2 DIV + + 96 FROM tab1
----
92
95
96

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL col0 + col2 + - col0 * col2 / + + 96 FROM tab1
----
92
95
96

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT COUNT( * ) col0 FROM tab0 WHERE NOT - 42 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-490
SELECT COUNT ( * ) col0 FROM tab0 WHERE NOT - 42 IS NULL
----
3

query II rowsort
SELECT ALL - ( + + 30 ) + 12 * + 88 + - 37 + + ( + - 40 ) + - - 24 * + col1, + col0 AS col2 FROM tab1
----
1069
85
1285
51
2077
91

query I rowsort
SELECT DISTINCT col1 * + col2 + 72 FROM tab0
----
171
282
3879

query II rowsort
SELECT - col1 * 80 + - col1 * - 54, col2 FROM tab1
----
-1222
68
-130
59
-364
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT + col0 + - col0 + - 35 * - CAST( + 13 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
10465
18200
26390

skipif mysql # not compatible
query I rowsort label-494
SELECT + col0 + - col0 + - 35 * - CAST ( + 13 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
10465
18200
26390

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 85 NOT BETWEEN - + col1 * - + col1 AND col2 * - 53 - - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT - - 14 + MIN( + 97 ) * + - 54 col1 FROM tab0 AS cor0
----
-5224

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-496
SELECT - - 14 + MIN ( + 97 ) * + - 54 col1 FROM tab0 AS cor0
----
-5224

query I rowsort
SELECT ALL - col0 * - 83 FROM tab0 AS cor0
----
1245
7221
8051

query I rowsort
SELECT 15 + 70 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL + COUNT( * ) * + 57 * + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
4617

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL + COUNT ( * ) * + 57 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
4617

query I rowsort
SELECT DISTINCT - 77 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2 - + + col1 - + col1 + + 89 * col2 * 3
----

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT - 65 - - - 48 + 40 DIV col1 FROM tab0 AS cor0
----
-112
-113
-73

skipif mysql # not compatible
query I rowsort label-501
SELECT - 65 - - - 48 + 40 / col1 FROM tab0 AS cor0
----
-112
-113
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT col2 FROM tab1 AS cor0 WHERE + ( + 5 ) NOT BETWEEN + + 31 * + - 52 * + 95 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-502
SELECT col2 FROM tab1 AS cor0 WHERE + ( + 5 ) NOT BETWEEN + + 31 * + - 52 * + 95 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 68 - + - col0 AS col1 FROM tab1 AS cor0
----
-17
17
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col0 + - + col2 + 24 * - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <= + + col2 * - col1
----

query I rowsort
SELECT - col0 - - - col0 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT - col0 + - - col1 DIV + col2 * - - 13 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-507
SELECT - col0 + - - col1 / + col2 * - - 13 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 + - col0 * + col2 col1 FROM tab1 AS cor0
----
-4881
-5000
-6173

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT ALL - + col1 - col0 + - 98 DIV col2 * - col2 * - 17 - - col0 FROM tab1 AS cor0
----
-1008
-1203
-1646

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - + col1 - col0 + - 98 / col2 * - col2 * - 17 - - col0 FROM tab1 AS cor0
----
-1008
-1203
-1646

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT - COUNT( * ) + - - 1 + 36 FROM tab1 cor0
----
34

skipif mysql # not compatible
query I rowsort label-511
SELECT - COUNT ( * ) + - - 1 + 36 FROM tab1 cor0
----
34

query I rowsort
SELECT + col0 + col1 + + 79 FROM tab2 AS cor0
----
176
220
221

query I rowsort
SELECT - 67 + col2 + col0 FROM tab0 AS cor0
----
-5
129
30

query I rowsort
SELECT DISTINCT col0 / - col0 FROM tab0 WHERE + 89 <> NULL AND NOT NULL < NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-515
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 33 col2 FROM tab1
----
NULL

query II rowsort
SELECT - - col0 AS col2, - 8 AS col2 FROM tab1 AS cor0
----
51
-8
85
-8
91
-8

query I rowsort
SELECT + - 9 * - col0 FROM tab2 AS cor0
----
414
576
675

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT ALL + ( + + COUNT( * ) ) * - + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL + ( + + COUNT ( * ) ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT ALL + col0 DIV 33 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + col0 / 33 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 5 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 5 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-521
SELECT ALL + COUNT( - col2 ) / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL + COUNT ( - col2 ) / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * - col1 * - + 7 col1 FROM tab2 AS cor0
----
22848
30016
34496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT DISTINCT 41 FROM tab2 AS cor0 WHERE NOT + 37 + - col2 + col2 <> + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT 41 FROM tab2 AS cor0 WHERE NOT + 37 + - col2 + col2 <> + - CAST ( NULL AS INTEGER )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT - MAX ( + - ( + - col2 ) ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - col2 * + 2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT - + col2 + - 19 - - 41 AS col2 FROM tab1 AS cor0
----
-37
-46
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 79 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 98 * col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 97 <> - + 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-531
SELECT - MIN ( ALL 94 ) FROM tab2 AS cor0
----
-94

query I rowsort
SELECT ALL - 61 + col0 AS col2 FROM tab2 AS cor0
----
-15
14
3

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN ( - + col1 ) AND NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-536
SELECT ALL col0 FROM tab2 WHERE CAST( + col1 AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL col0 FROM tab2 WHERE CAST ( + col1 AS INTEGER ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT + col1 * - 42 AS col1 FROM tab1
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT COUNT( DISTINCT 29 ) + SUM( - col1 ) AS col1 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-538
SELECT COUNT ( DISTINCT 29 ) + SUM ( - col1 ) AS col1 FROM tab1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT + COUNT( * ) + 99 * 59 FROM tab0
----
5844

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT + COUNT ( * ) + 99 * 59 FROM tab0
----
5844

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT CAST( + 4 AS SIGNED ) + 72 * - MAX( - col0 + + col2 ) FROM tab2
----
1228

skipif mysql # not compatible
query I rowsort label-541
SELECT CAST ( + 4 AS INTEGER ) + 72 * - MAX ( - col0 + + col2 ) FROM tab2
----
1228

query I rowsort
SELECT 86 * - 37 AS col1 FROM tab1
----
-3182
-3182
-3182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-543
SELECT * FROM tab2 WHERE 30 BETWEEN ( ( CAST( - ( - 66 ) AS SIGNED ) ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-543
SELECT * FROM tab2 WHERE 30 BETWEEN ( ( CAST ( - ( - 66 ) AS INTEGER ) ) ) AND ( NULL )
----

query I rowsort
SELECT - col1 + - 41 FROM tab1
----
-46
-55
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT ALL + MAX( col0 ) * - 41 FROM tab0
----
-3977

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL + MAX ( col0 ) * - 41 FROM tab0
----
-3977

query I rowsort
SELECT ALL + AVG ( 85 ) FROM tab2 WHERE NOT NULL NOT BETWEEN 90 AND + col0
----
NULL

query I rowsort
SELECT col1 + 29 * - col0 FROM tab0
----
-2502
-2812
-354

query I rowsort
SELECT 82 + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
133
149
159

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT COUNT( * ) * - 82 col1 FROM tab1 WHERE NOT - 24 IN ( ( + col2 ) + ( + 41 ) )
----
-246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-549
SELECT COUNT ( * ) * - 82 col1 FROM tab1 WHERE NOT - 24 IN ( ( + col2 ) + ( + 41 ) )
----
-246

query I rowsort
SELECT + 42 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT 27 * + 16 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + + col1 col2 FROM tab2
----
101
75
91

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 >= 58
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT - 13 + - col2 DIV + col1 AS col0 FROM tab1
----
-14
-19
-24

skipif mysql # not compatible
query I rowsort label-555
SELECT - 13 + - col2 / + col1 AS col0 FROM tab1
----
-14
-19
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 99 NOT BETWEEN col0 * col0 AND + col1 + col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col0 ) + 49 * - col1 FROM tab2
----
-2453
-3208
-3709

query I rowsort
SELECT + 21 FROM tab0 WHERE NOT ( - col2 - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-559
SELECT + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) > col1 * + col1
----
NULL
NULL

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

query I rowsort
SELECT ALL 8 * + ( + 74 ) FROM tab2 AS cor0
----
592
592
592

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-561
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT NULL > ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-561
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT NULL > ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-562
SELECT + - col2 DIV 59 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-562
SELECT + - col2 / 59 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-563
SELECT - + 43 * MIN( - col1 DIV + col1 + col2 ) FROM tab0 cor0
----
-387

skipif mysql # not compatible
query I rowsort label-563
SELECT - + 43 * MIN ( - col1 / + col1 + col2 ) FROM tab0 cor0
----
-387

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 11 NOT IN ( col2 )
----

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

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

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

query I rowsort
SELECT - 72 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-72
-72
-72

query I rowsort
SELECT ALL - 78 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( 54 ) IS NULL
----
-1638
-6318
-78

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

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

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

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

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

query I rowsort
SELECT DISTINCT 12 + 7 * 16 AS col0 FROM tab0 WHERE NOT ( + col1 * + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT 25 + + + ( COUNT( * ) ) + - 29 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-574
SELECT 25 + + + ( COUNT ( * ) ) + - 29 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 + col1 ) IN ( col0 * col2 )
----

query I rowsort
SELECT ALL col1 + + col1 * - col0 AS col1 FROM tab2
----
-2295
-4851
-4958

query I rowsort
SELECT ALL ( + col1 ) + 85 FROM tab0
----
106
166
86

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + 22 col0 FROM tab0 WHERE ( col0 ) <= - col1
----

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

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

skipif mysql # not compatible
query I rowsort label-581
SELECT CAST ( + - 47 AS INTEGER ) + COUNT ( * ) FROM tab1
----
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN - col1 AND - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT + MAX( ALL + + col1 ) + 17 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + MAX ( ALL + + col1 ) + 17 FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT COUNT( * ) + 67 + + MIN( 65 + + col2 ) AS col0 FROM tab2 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-584
SELECT COUNT ( * ) + 67 + + MIN ( 65 + + col2 ) AS col0 FROM tab2 AS cor0
----
158

query I rowsort
SELECT ALL ( - 95 ) FROM tab1 AS cor0 WHERE NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT + 59 + - ( - COUNT( * ) ) AS col2 FROM tab2 cor0
----
62

skipif mysql # not compatible
query I rowsort label-586
SELECT + 59 + - ( - COUNT ( * ) ) AS col2 FROM tab2 cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT + COUNT( * ) + - COUNT( ( col2 ) ) + - 1 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-587
SELECT + COUNT ( * ) + - COUNT ( ( col2 ) ) + - 1 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ALL 45 - + + COUNT( * ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL 45 - + + COUNT ( * ) FROM tab2 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + col1 * ( 42 ) + col2 col1 FROM tab2
----
51
2165
67
2872
77
3274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - col0 ) col0 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT + SUM( 74 ) * 12 + COUNT( * ) * + 51 FROM tab0 AS cor0 WHERE + col0 * + + col2 * - 61 IS NOT NULL
----
2817

skipif mysql # not compatible
query I rowsort label-591
SELECT + SUM ( 74 ) * 12 + COUNT ( * ) * + 51 FROM tab0 AS cor0 WHERE + col0 * + + col2 * - 61 IS NOT NULL
----
2817

query I rowsort
SELECT ALL - 19 + - col2 + + ( + 97 ) * + col2 * + col0 FROM tab2 AS cor0
----
102584
248261
421873

query I rowsort
SELECT 14 + 5 AS col1 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT col0 + - + 35 AS col1 FROM tab2 cor0
----
11
29
40

query I rowsort
SELECT - col2 * col0 + + 66 + - col2 AS col0 FROM tab1 AS cor0
----
-4926
-5008
-6190

onlyif mysql # aggregate syntax: 
query II rowsort label-596
SELECT DISTINCT - 63 AS col1, COUNT( * ) AS col1 FROM tab0 cor0
----
-63
3

skipif mysql # not compatible
query II rowsort label-596
SELECT DISTINCT - 63 AS col1, COUNT ( * ) AS col1 FROM tab0 cor0
----
-63
3

query II rowsort
SELECT - 35, + col1 AS col0 FROM tab2 AS cor0
----
-35
51
-35
67
-35
77

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT + COUNT( * ) + + 35 FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----
35

skipif mysql # not compatible
query I rowsort label-598
SELECT + COUNT ( * ) + + 35 FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-599
SELECT ALL COUNT( 83 ) DIV COUNT( * ) - - 99 FROM tab0 WHERE NOT + col1 - + + col0 - + col0 * - 17 IS NULL
----
100

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL COUNT ( 83 ) / COUNT ( * ) - - 99 FROM tab0 WHERE NOT + col1 - + + col0 - + col0 * - 17 IS NULL
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-600
SELECT ALL AVG ( DISTINCT + - 10 ) * + MAX( + 51 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL AVG ( DISTINCT + - 10 ) * + MAX ( + 51 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + col1 - ( - 1 ) + 69 * - 70 AND NULL
----

query I rowsort
SELECT ALL - 53 * + 44 AS col2 FROM tab0
----
-2332
-2332
-2332

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 83 + 62 + - 27 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 22 * - - col2 + col0 ) NOT BETWEEN NULL AND col1 + col0
----

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

query I rowsort
SELECT + col1 * 14 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT ALL + - SUM( + 13 ) AS col1 FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL + - SUM ( + 13 ) AS col1 FROM tab2 cor0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-609
SELECT - MAX( ALL col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( ( - col0 + - CAST( + col1 AS SIGNED ) ) NOT BETWEEN ( + 22 - 29 ) AND ( + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT - MAX ( ALL col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( ( - col0 + - CAST ( + col1 AS INTEGER ) ) NOT BETWEEN ( + 22 - 29 ) AND ( + col2 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-610
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-610
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col1 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 87 ) / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-615
SELECT ALL - CAST( NULL AS SIGNED ) / col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL - CAST ( NULL AS INTEGER ) / col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL + - COUNT( * ) * + 52 AS col1 FROM tab0 WHERE NULL IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + - COUNT ( * ) * + 52 AS col1 FROM tab0 WHERE NULL IS NULL
----
-156

onlyif mysql # DIV for integer division: 
query II rowsort label-617
SELECT - col0 + - col2 * - 8, col1 DIV + 34 AS col1 FROM tab2
----
138
1
256
2
389
1

skipif mysql # not compatible
query II rowsort label-617
SELECT - col0 + - col2 * - 8, col1 / + 34 AS col1 FROM tab2
----
138
1
256
2
389
1

query I rowsort
SELECT + 10 + 66 AS col2 FROM tab2 cor0
----
76
76
76

query I rowsort
SELECT ALL - + ( col2 ) + - - col1 + - col1 * + - col0 AS col0 FROM tab1 AS cor0
----
371
4256
632

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

query I rowsort
SELECT col0 * + col1 * 39 FROM tab2 AS cor0 WHERE + col0 + 13 IS NOT NULL
----
192192
195975
91494

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

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT DISTINCT col1 DIV - + col2 + col0 FROM tab0
----
14
85
97

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT col1 / - + col2 + col0 FROM tab0
----
14
85
97

query II rowsort
SELECT DISTINCT + 97, col2 FROM tab0
----
97
10
97
47
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-625
SELECT - CAST( NULL AS SIGNED ) * + 50 AS col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col1 + + - col1 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-627
SELECT + col0 DIV - - col0 AS col1, col0 * + col1 col1 FROM tab1
----
1
425
1
4277
1
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-627
SELECT + col0 / - - col0 AS col1, col0 * + col1 col1 FROM tab1
----
1
425
1
4277
1
714

query I rowsort
SELECT - - 51 * - - 15 * 75 AS col2 FROM tab0 WHERE NULL BETWEEN - col1 AND - 56
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT DISTINCT + - 13 + + - CAST( + 34 AS SIGNED ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT + - 13 + + - CAST ( + 34 AS INTEGER ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE NOT NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT ALL COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-633
SELECT + ( - col2 ) AS col1, col0 DIV + 10 FROM tab1
----
-59
8
-68
9
-96
5

skipif mysql # not compatible
query II rowsort label-633
SELECT + ( - col2 ) AS col1, col0 / + 10 FROM tab1
----
-59
8
-68
9
-96
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT ALL CAST( NULL AS SIGNED ) * - AVG ( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-639
SELECT ALL + CAST( col1 AS SIGNED ) * - 86 col0 FROM tab2 AS cor0 WHERE NOT ( + CAST( - 28 AS SIGNED ) * + col1 * 61 IS NULL )
----
-4386
-5762
-6622

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-639
SELECT ALL + CAST ( col1 AS INTEGER ) * - 86 col0 FROM tab2 AS cor0 WHERE NOT ( + CAST ( - 28 AS INTEGER ) * + col1 * 61 IS NULL )
----
-4386
-5762
-6622

query II rowsort
SELECT col2, + 38 FROM tab2
----
23
38
40
38
58
38

query I rowsort
SELECT ( + + 37 ) FROM tab0
----
37
37
37

query I rowsort
SELECT ALL 29 * + 21 AS col2 FROM tab1
----
609
609
609

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

skipif mysql # not compatible
query II rowsort label-643
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
3
3

query II rowsort
SELECT DISTINCT col0, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT + COUNT( * ) * MIN( col2 ) AS col0 FROM tab0 WHERE NOT + 86 * col1 - - 56 - - + col1 + 45 + - + col0 * - 58 NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-645
SELECT + COUNT ( * ) * MIN ( col2 ) AS col0 FROM tab0 WHERE NOT + 86 * col1 - - 56 - - + col1 + 45 + - + col0 * - 58 NOT IN ( - col1 )
----
NULL

query II rowsort
SELECT 62, - 60 AS col1 FROM tab0
----
62
-60
62
-60
62
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT ALL 3 * + - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL 3 * + - COUNT ( * ) AS col1 FROM tab2
----
-9

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT + col1 DIV 18 AS col0 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-650
SELECT + col1 / 18 AS col0 FROM tab1 AS cor0
----
0
0
2

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) <> - col0 * + col1
----

query I rowsort
SELECT ALL + col0 * - + 61 * + + col2 FROM tab2
----
-156160
-265350
-64538

query I rowsort
SELECT - 47 * + 9 AS col1 FROM tab1 AS cor0 WHERE NULL >= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-654
SELECT DISTINCT AVG ( - 37 ) + + SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT AVG ( - 37 ) + + SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-655
SELECT DISTINCT - - COUNT( * ) * SUM( ALL + - col1 ) DIV - + COUNT( * ) AS col0 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT - - COUNT ( * ) * SUM ( ALL + - col1 ) / - + COUNT ( * ) AS col0 FROM tab0 cor0
----
103

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

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT - - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + 68 + col2 FROM tab0
----
115
167
78

query I rowsort
SELECT ALL - 90 * 51 * + col0 FROM tab0
----
-399330
-445230
-68850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 + col0 col0 FROM tab2
----
23
34
5

query I rowsort
SELECT DISTINCT + col0 + - 28 FROM tab1
----
23
57
63

query I rowsort
SELECT + 73 + - col0 AS col0 FROM tab1
----
-12
-18
22

query II rowsort
SELECT + col1, - col2 + + + col0 AS col2 FROM tab0 AS cor0
----
1
-2
21
77
81
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT - - MIN( + - col0 ) AS col2 FROM tab1 WHERE NOT NULL >= + ( - + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT - - MIN ( + - col0 ) AS col2 FROM tab1 WHERE NOT NULL >= + ( - + 60 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( + ( + - col1 ) * col0 / - col2 + - ( + col1 ) + col0 ) OR NOT - col1 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-665
SELECT col2, + 52 DIV + col2 FROM tab0 cor0
----
10
5
47
1
99
0

skipif mysql # not compatible
query II rowsort label-665
SELECT col2, + 52 / + col2 FROM tab0 cor0
----
10
5
47
1
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ALL + COUNT( ALL + 69 ) * + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL + COUNT ( ALL + 69 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-667
SELECT + col1 DIV + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0, col0 col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-669
SELECT ALL + 42, + ( - + COUNT( * ) ) col1 FROM tab1 AS cor0
----
42
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-669
SELECT ALL + 42, + ( - + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
42
-3

query I rowsort
SELECT + + 6 * - 41 + - col2 FROM tab0 AS cor0
----
-256
-293
-345

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + 37
----

query II rowsort
SELECT ALL 93 AS col0, - ( - col1 ) FROM tab1 AS cor0
----
93
14
93
47
93
5

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

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

query I rowsort
SELECT - col0 * + - col0 * + - col0 AS col2 FROM tab2
----
-262144
-421875
-97336

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - 67 / - col2 * + col1 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * + col0 - - col2 AS col0 FROM tab0 cor0
----
272
7579
9508

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT - COUNT( * ) + + ( + MIN( ALL - col0 ) ) AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-679
SELECT - COUNT ( * ) + + ( + MIN ( ALL - col0 ) ) AS col1 FROM tab1
----
-94

query I rowsort
SELECT - + 25 * col1 * + col2 + - ( - col1 ) + + 62 AS col1 FROM tab1 cor0
----
-33524
-7308
-79791

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT - COUNT( * ) + + MAX( DISTINCT 34 ) AS col0 FROM tab0 cor0
----
31

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT - COUNT ( * ) + + MAX ( DISTINCT 34 ) AS col0 FROM tab0 cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT ALL - COUNT( * ) * + 31 + 62 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL - COUNT ( * ) * + 31 + 62 FROM tab2 AS cor0
----
-31

query I rowsort
SELECT DISTINCT + 28 - + + col2 FROM tab1 AS cor0
----
-31
-40
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + - col0 ) col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + 59 - 28 * + 84 FROM tab1 AS cor0 WHERE NOT ( NOT + col0 + - col2 * - + col1 IS NOT NULL )
----
-2293
-2293
-2293

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NULL OR NOT NULL < ( col1 + - 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT ALL - col2 FROM tab0 WHERE NOT - col1 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL - col2 FROM tab0 WHERE NOT - col1 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - ( - + col0 ) * 58 * - ( ( - 60 ) ) AS col2 FROM tab1
----
177480
295800
316680

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT COUNT( * ) * - 0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-689
SELECT COUNT ( * ) * - 0 FROM tab2
----
0

query I rowsort
SELECT - col0 - + col1 + col2 FROM tab2
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT ALL SUM( - + 19 ) AS col2 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL SUM ( - + 19 ) AS col2 FROM tab1
----
-57

query I rowsort
SELECT - col1 * col2 + + 39 AS col1 FROM tab0 AS cor0
----
-171
-3768
-60

query I rowsort
SELECT ALL - col2 - col2 * - col0 FROM tab0 AS cor0
----
658
860
9504

query II rowsort
SELECT DISTINCT ( - - 24 ), col2 + col2 AS col2 FROM tab1 AS cor0
----
24
118
24
136
24
192

query I rowsort
SELECT ALL ( + 57 ) FROM tab0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT ALL MIN( DISTINCT + col0 ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL MIN ( DISTINCT + col0 ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT + MIN( ALL + 23 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-697
SELECT + MIN ( ALL + 23 ) FROM tab1
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( - ( - 61 ) + - col2 * col0 * 0, + col1 * + ( + 58 ) * + col2, - 13 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NULL ) >= - + col0 + + col2 - 21 ) OR + + col2 NOT IN ( + + col0, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 62 NOT IN ( + col0 * col2 + + col0 * - col1 )
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-703
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-56

query I rowsort
SELECT DISTINCT + ( ( + 58 ) ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT DISTINCT - MIN( - col0 ) * COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT - MIN ( - col0 ) * COUNT ( * ) FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT MAX( DISTINCT + 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-707
SELECT MAX ( DISTINCT + 83 ) FROM tab2
----
83

query I rowsort
SELECT ALL col1 + + - ( + 26 ) FROM tab1 cor0
----
-12
-21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT DISTINCT + col1 DIV 90 + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT + col1 / 90 + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT + COUNT( * ) + + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-710
SELECT + COUNT ( * ) + + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
26

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 56 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 + - - 48 AS col0, 91 AS col0 FROM tab2
----
115
91
125
91
99
91

query I rowsort
SELECT - + 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL 13 + + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL 13 + + COUNT ( * ) FROM tab0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT DISTINCT + + col2 DIV 86 * - col0 * - 24 + - 23 col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-716
SELECT DISTINCT + + col2 / 86 * - col0 * - 24 + - 23 col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL 30 + + 5 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT ALL - 19 + - col0 AS col0 FROM tab2 AS cor0
----
-65
-83
-94

query I rowsort
SELECT ALL - + col2 - + 52 AS col0 FROM tab1 cor0
----
-111
-120
-148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 * - col0 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3366
-5610
-6006

query I rowsort
SELECT - ( + col1 ) - - - col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT - + col2 - + - col1 AS col1 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT col1 * - + col1 + + col1 - col1 + - 10 + ( - + 69 ) FROM tab2 AS cor0
----
-2680
-4568
-6008

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-725
SELECT ALL - CAST( + 33 AS DECIMAL ) - - - ( + - CAST( NULL AS SIGNED ) ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT DISTINCT SUM( ALL - ( + 17 ) ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT SUM ( ALL - ( + 17 ) ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query III rowsort label-728
SELECT ALL - col0 DIV - col2 + + col1 AS col0, + 70, + 5 AS col0 FROM tab1
----
9 values hashing to 8de6dc1b0fbd4c925b0f15ffcbfbf540

skipif mysql # not compatible
query III rowsort label-728
SELECT ALL - col0 / - col2 + + col1 AS col0, + 70, + 5 AS col0 FROM tab1
----
9 values hashing to 8de6dc1b0fbd4c925b0f15ffcbfbf540

query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) * col0 + col1 * + 43 AS col1 FROM tab1 WHERE NOT 37 * + ( + col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT DISTINCT col0 + - CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT col0 + - CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL + 65 * col0 AS col1 FROM tab2 AS cor0
----
2990
4160
4875

query I rowsort
SELECT 44 * + + col2 FROM tab0 AS cor0
----
2068
4356
440

query I rowsort
SELECT DISTINCT + col2 * + 84 AS col0 FROM tab1 AS cor0
----
4956
5712
8064

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL - SUM( - + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL - SUM ( - + col1 ) AS col0 FROM tab2
----
195

query I rowsort
SELECT - col0 * - - col2 * col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT DISTINCT - - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-739
SELECT ALL 13 * - 26 AS col0, - col1 + + CAST( NULL AS SIGNED ) / col2 / + 8 FROM tab2
----
-338
NULL
-338
NULL
-338
NULL

skipif mysql # not compatible
query II rowsort label-739
SELECT ALL 13 * - 26 AS col0, - col1 + + CAST ( NULL AS INTEGER ) / col2 / + 8 FROM tab2
----
-338
NULL
-338
NULL
-338
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL > col2 / 86 * - 61
----

query II rowsort
SELECT col1 * 51, - col2 AS col2 FROM tab1
----
2397
-68
255
-59
714
-96

query I rowsort
SELECT col1 * - + col1 * 70 FROM tab2 AS cor0
----
-182070
-314230
-415030

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 11 - col1 - 48 + col1 >= ( + 23 ) * - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT - + col0 DIV + col1 col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-744
SELECT - + col0 / + col1 col1 FROM tab1 cor0
----
-1
-17
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT + 39 DIV 55 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-746
SELECT + 39 / 55 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT DISTINCT COUNT( * ) DIV ( - + MIN( DISTINCT - + col1 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT COUNT ( * ) / ( - + MIN ( DISTINCT - + col1 ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL - MIN( ALL - + ( - 60 ) ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL - MIN ( ALL - + ( - 60 ) ) FROM tab0 AS cor0
----
-60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 67 * - - col1 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 25 <> 86
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 73 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-753
SELECT + + CAST( NULL AS SIGNED ) * 50 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * + col2 * - col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-753
SELECT + + CAST ( NULL AS INTEGER ) * 50 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * + col2 * - col0 > NULL
----

query I rowsort
SELECT - col1 - + 24 AS col0 FROM tab1 WHERE NOT + 27 + - + 20 <= NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 BETWEEN ( + + 60 ) * + ( - + col1 ) AND - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + + col0 * 1 AS col1 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT DISTINCT + MIN( ALL col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT + MIN ( ALL col1 ) FROM tab1
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-759
SELECT ALL 1 FROM tab2 WHERE NOT NULL < ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL 1 FROM tab2 WHERE NOT NULL < ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT DISTINCT - COUNT( * ) + SUM( - 64 ) col2, MAX( col2 ) AS col2 FROM tab2 AS cor0
----
-195
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-760
SELECT DISTINCT - COUNT ( * ) + SUM ( - 64 ) col2, MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
-195
58

query I rowsort
SELECT DISTINCT 93 * - + col2 + col2 * + col2 FROM tab2 AS cor0
----
-1610
-2030
-2120

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT + ( - + COUNT( * ) ) + - 37 col0 FROM tab2
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-762
SELECT + ( - + COUNT ( * ) ) + - 37 col0 FROM tab2
----
-40

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + ( + col2 ) IS NOT NULL
----

query II rowsort
SELECT + col0 AS col2, - col0 AS col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT DISTINCT - ( - - COUNT( * ) ) * 70 * + 63 * + + COUNT( * ) + - 52 + - ( 53 ) AS col2 FROM tab0 AS cor0
----
-39795

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT - ( - - COUNT ( * ) ) * 70 * + 63 * + + COUNT ( * ) + - 52 + - ( 53 ) AS col2 FROM tab0 AS cor0
----
-39795

query I rowsort
SELECT DISTINCT 12 + + col2 FROM tab2 AS cor0
----
35
52
70

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

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

query II rowsort
SELECT ALL + 45, + col2 AS col0 FROM tab2 AS cor0
----
45
23
45
40
45
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-770
SELECT ALL col2 / - 60 - + + 25 - + CAST( NULL AS SIGNED ) + + - col2 - + 96 + - col1 * + + col1 - + col0 - - 10 / - + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL col2 / - 60 - + + 25 - + CAST ( NULL AS INTEGER ) + + - col2 - + 96 + - col1 * + + col1 - + col0 - - 10 / - + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - - + col2 * + 41 FROM tab0
----
2008
4060
431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-772
SELECT DISTINCT ( + CAST( SUM( - + col1 ) AS SIGNED ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT ( + CAST ( SUM ( - + col1 ) AS INTEGER ) ) AS col2 FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT DISTINCT - col0 DIV col2 * 70 - + + col2 FROM tab1
----
-129
-138
-96

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT - col0 / col2 * 70 - + + col2 FROM tab1
----
-129
-138
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-774
SELECT ALL + + CAST( NULL AS SIGNED ) / + AVG ( + 11 ) col2 FROM tab0 WHERE NOT 74 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-774
SELECT ALL + + CAST ( NULL AS INTEGER ) / + AVG ( + 11 ) col2 FROM tab0 WHERE NOT 74 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 * ( 43 ) FROM tab2
----
2193
2881
3311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-776
SELECT 17 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT col1 + - col1 IN ( 40 * - 89 - + + col2 + - col1 + col0 * 57 * + col2, - 22 * 11 * + - col2, + CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-776
SELECT 17 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT col1 + - col1 IN ( 40 * - 89 - + + col2 + - col1 + col0 * 57 * + col2, - 22 * 11 * + - col2, + CAST ( NULL AS INTEGER ) ) ) )
----

query I rowsort
SELECT ALL col0 * 1 FROM tab1
----
51
85
91

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT - 72 = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-780
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1, col1 + + 36 AS col2 FROM tab1 AS cor0
----
NULL
41
NULL
50
NULL
83

skipif mysql # not compatible
query II rowsort label-780
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, col1 + + 36 AS col2 FROM tab1 AS cor0
----
NULL
41
NULL
50
NULL
83

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= ( 37 * - ( - col1 ) )
----

query I rowsort
SELECT ALL col0 * - - 46 AS col0 FROM tab2 AS cor0
----
2116
2944
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT MAX( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 40 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT MAX ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 40 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 17 * + col2 AS col0 FROM tab1
----
1003
1156
1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-786
SELECT COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-786
SELECT COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT ALL 44 DIV 90 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL 44 / 90 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT DISTINCT 83 * - COUNT( + ( - col0 ) ) col2 FROM tab1
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-788
SELECT DISTINCT 83 * - COUNT ( + ( - col0 ) ) col2 FROM tab1
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT ALL + col2 DIV 37 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + col2 / 37 AS col2 FROM tab0
----
0
1
2

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT IN ( + + col0 * + 16, ( 49 ), - col1 * col0 + - 92, col2, col1 / + col2, - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT 16 + 36 DIV + + col1 FROM tab2
----
16
16
16

skipif mysql # not compatible
query I rowsort label-791
SELECT 16 + 36 / + + col1 FROM tab2
----
16
16
16

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

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

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

query I rowsort
SELECT DISTINCT + col2 + + 20 + - + ( - 31 ) FROM tab0 AS cor0
----
150
61
98

query I rowsort
SELECT - col2 * + - 1 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL - ( - 48 ) + - - col1 + - col2 FROM tab1 AS cor0
----
-34
-6
27

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT DISTINCT - col0 - - - col0 DIV col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT - col0 - - - col0 / col2 / col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-798
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + 57 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-799
SELECT + + col2, - col0 AS col0 FROM tab2 cor0 WHERE 88 NOT BETWEEN - - CAST( + col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-799
SELECT + + col2, - col0 AS col0 FROM tab2 cor0 WHERE 88 NOT BETWEEN - - CAST ( + col1 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-800
SELECT ALL + 12 - + CAST( NULL AS SIGNED ) + - 53 * + col1 * - 13 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - + col2 - 81 AS col0 FROM tab1 AS cor0
----
-140
-149
-177

query I rowsort
SELECT + 64 + + - 9 FROM tab0 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT - 68 + COUNT( * ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-803
SELECT - 68 + COUNT ( * ) FROM tab2 AS cor0
----
-65

query I rowsort
SELECT 89 * + col2 FROM tab1
----
5251
6052
8544

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

skipif mysql # not compatible
query II rowsort label-805
SELECT ( + MIN ( + - col0 ) ) * - 68 AS col2, - COUNT ( * ) AS col0 FROM tab1
----
6188
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT - COUNT( * ) * - 67 - + ( + - 61 ) AS col2 FROM tab2 WHERE NOT - 65 IS NOT NULL
----
61

skipif mysql # not compatible
query I rowsort label-806
SELECT - COUNT ( * ) * - 67 - + ( + - 61 ) AS col2 FROM tab2 WHERE NOT - 65 IS NOT NULL
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT COUNT( * ) * + - 86 AS col2 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-807
SELECT COUNT ( * ) * + - 86 AS col2 FROM tab1
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-808
SELECT DISTINCT + ( + - 3 ), - 97 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + + - col1 * - col0 IS NULL
----
-3
-97

skipif mysql # not compatible
query II rowsort label-808
SELECT DISTINCT + ( + - 3 ), - 97 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + - col1 * - col0 IS NULL
----
-3
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-809
SELECT DISTINCT - COUNT( * ) AS col0, + COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-809
SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
-3
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT ALL - COUNT( * ) * + COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL - COUNT ( * ) * + COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
71

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

skipif mysql # not compatible
query I rowsort label-813
SELECT - COUNT ( col2 ) AS col1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col2 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * + + col2 + + col2 AS col0 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT ALL - MIN( + col2 ) * SUM( col2 ) AS col1 FROM tab0 AS cor0
----
-1560

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL - MIN ( + col2 ) * SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
-1560

query I rowsort
SELECT ALL - + 51 * col0 * - - 58 * - col0 AS col1 FROM tab0 AS cor0
----
22389102
27831822
665550

query I rowsort
SELECT + - col1 * - + col2 * - - col1 FROM tab0 WHERE + + col2 NOT BETWEEN + 21 AND NULL
----
4410

query I rowsort
SELECT DISTINCT col0 + - - col0 AS col2 FROM tab2
----
128
150
92

query II rowsort
SELECT DISTINCT 36 AS col1, + 72 + + col0 FROM tab1 WHERE NULL IS NULL
----
36
123
36
157
36
163

query II rowsort
SELECT ALL + + ( - col1 ) + col0 + - - ( + 8 ) * + col0 * ( - col0 ), - col0 AS col0 FROM tab1 AS cor0
----
-20771
-51
-57720
-85
-66204
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT ALL - col0 + + col1 * - + CAST( - 83 AS SIGNED ) FROM tab1 AS cor0
----
1111
330
3810

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL - col0 + + col1 * - + CAST ( - 83 AS INTEGER ) FROM tab1 AS cor0
----
1111
330
3810

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT DISTINCT MAX( ALL + 10 ) + - - MIN( + 59 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT MAX ( ALL + 10 ) + - - MIN ( + 59 ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT 51 AS col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-825
SELECT ALL + COUNT( * ) DIV - + COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + COUNT ( * ) / - + COUNT ( * ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT + 20 * + COUNT( col1 ) col0 FROM tab0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-826
SELECT DISTINCT + 20 * + COUNT ( col1 ) col0 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT + ( + COUNT( * ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-827
SELECT + ( + COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - col1 + + - 99 FROM tab1
----
-104
-113
-146

query I rowsort
SELECT col0 * - 55 FROM tab0 WHERE - col2 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT ALL col2 DIV - 37 - + 51 AS col2 FROM tab0 AS cor0
----
-51
-52
-53

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL col2 / - 37 - + 51 AS col2 FROM tab0 AS cor0
----
-51
-52
-53

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-833
SELECT ALL - + col2 DIV + - col1 AS col0 FROM tab2 cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT DISTINCT col1 DIV + 54 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT col1 / + 54 AS col2 FROM tab2 AS cor0
----
0
1

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-839
SELECT - col1 DIV - CAST( - - 6 AS SIGNED ) - 81 + + col1 AS col2 FROM tab1 AS cor0
----
-27
-65
-76

skipif mysql # not compatible
query I rowsort label-839
SELECT - col1 / - CAST ( - - 6 AS INTEGER ) - 81 + + col1 AS col2 FROM tab1 AS cor0
----
-27
-65
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-840
SELECT + col0 - col1 + + - col2 * + col1 * + CAST( - col1 AS SIGNED ) col0 FROM tab2
----
237147
260370
59818

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-840
SELECT + col0 - col1 + + - col2 * + col1 * + CAST ( - col1 AS INTEGER ) col0 FROM tab2
----
237147
260370
59818

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 38 IS NULL
----

query I rowsort
SELECT ALL - 13 * - 55 FROM tab0
----
715
715
715

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-844
SELECT MAX( - col0 ) AS col0, COUNT( * ) + + ( + 94 ) * 96 FROM tab1
----
-51
9027

skipif mysql # not compatible
query II rowsort label-844
SELECT MAX ( - col0 ) AS col0, COUNT ( * ) + + ( + 94 ) * 96 FROM tab1
----
-51
9027

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

query I rowsort
SELECT - ( - + 27 ) * 91 AS col1 FROM tab0 AS cor0
----
2457
2457
2457

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-847
SELECT + 43 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-847
SELECT + 43 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 - CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 75 col1 FROM tab2 AS cor0
----
-1725
-3000
-4350

query I rowsort
SELECT DISTINCT col0 * 9 AS col1 FROM tab2
----
414
576
675

query I rowsort
SELECT 26 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT 29 + - 5 AS col0 FROM tab2 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT 20 AS col1, col1 FROM tab0
----
20
1
20
21
20
81

query I rowsort
SELECT - 27 * + + col0 AS col2 FROM tab2
----
-1242
-1728
-2025

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT - 80 DIV + + 62 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-854
SELECT - 80 / + + 62 FROM tab1 AS cor0
----
-1
-1
-1

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

query II rowsort
SELECT ALL 21 + - 42 / - - 62, col0 AS col0 FROM tab1 cor0 WHERE 53 + - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT + - CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-857
SELECT + - CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - + 15 AS col1 FROM tab2 cor0
----
-15
-15
-15

query I rowsort
SELECT - + 91 * + - 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - 36 + col1 FROM tab2 AS cor0
----
15
31
41

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

query I rowsort
SELECT DISTINCT - + col0 + + col2 * + - col0 * col0 FROM tab2 AS cor0
----
-163904
-326325
-48714

query I rowsort
SELECT + 66 + + - 87 FROM tab0 WHERE - col1 >= - ( col2 ) - + 90
----
-21
-21
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT DISTINCT col1 DIV - 41 + + col2 AS col0 FROM tab0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT col1 / - 41 + + col2 AS col0 FROM tab0
----
10
46
99

query I rowsort
SELECT DISTINCT + 54 * + 69 * - col2 + - + 60 - - col0 AS col0 FROM tab0
----
-175167
-368837
-37233

query I rowsort
SELECT ALL col0 * + 87 + 6 - + 62 FROM tab2
----
3946
5512
6469

query II rowsort
SELECT 89 + + 26 + col0 - + ( ( 46 ) ) AS col0, + ( + - col0 ) * + col1 - 94 + - col2 AS col2 FROM tab1
----
120
-904
154
-578
160
-4439

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / col1 IS NULL
----

query II rowsort
SELECT - - col1, + col2 + - 6 AS col1 FROM tab1 AS cor0
----
14
90
47
62
5
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-871
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 * + CAST( - 42 AS DECIMAL ) - - 74 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 * + CAST ( - 42 AS REAL ) - - 74 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 34 > NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-874
SELECT COUNT( * ) * - COUNT( * ) DIV + - 94 + COUNT( * ) FROM tab2 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT DISTINCT - MAX( DISTINCT col0 ) AS col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT - MAX ( DISTINCT col0 ) AS col2 FROM tab2 cor0
----
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL - COUNT( + 88 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL - COUNT ( + 88 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - ( 42 ) AS col0 FROM tab1
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL + MAX( DISTINCT + 89 ) AS col0 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL + MAX ( DISTINCT + 89 ) AS col0 FROM tab0
----
89

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-881
SELECT + CAST( + - 93 AS SIGNED ) DIV COUNT( * ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-881
SELECT + CAST ( + - 93 AS INTEGER ) / COUNT ( * ) FROM tab2
----
-31

query I rowsort
SELECT DISTINCT - 53 * - col0 AS col0 FROM tab0
----
4611
5141
795

onlyif mysql # DIV for integer division: 
query I rowsort label-883
SELECT DISTINCT col1 DIV - col0 * + col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT col1 / - col0 * + col2 AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT col2 DIV + 55 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-884
SELECT col2 / + 55 FROM tab0
----
0
0
1

query I rowsort
SELECT 88 * - col1 AS col2 FROM tab0
----
-1848
-7128
-88

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

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

query I rowsort
SELECT DISTINCT + col2 * - - 42 AS col2 FROM tab0 AS cor0
----
1974
4158
420

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT + MIN( + - 67 ) FROM tab0 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT + MIN ( + - 67 ) FROM tab0 cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT ALL + 24 + - col0 * - col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + col1 NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL + 24 + - col0 * - col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + col1 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-890
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-890
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - 35 + - 29 * + col0 AS col2 FROM tab2
----
-2139
-3256
-4205

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT 6 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col2 * ( 3 ) AS col2 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT ALL col2 DIV - col2 + + col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL col2 / - col2 + + col2 FROM tab1
----
58
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-895
SELECT * FROM tab2 WHERE ( NULL ) <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-895
SELECT * FROM tab2 WHERE ( NULL ) <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 + col1 * - col0 AS col0 FROM tab2
----
-2295
-4851
-4958

query I rowsort
SELECT - col2 * - ( + col1 ) AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT - 43 + - CAST( - 68 AS SIGNED ) FROM tab1
----
25
25
25

skipif mysql # not compatible
query I rowsort label-898
SELECT - 43 + - CAST ( - 68 AS INTEGER ) FROM tab1
----
25
25
25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT - col2 * CAST( + 2 AS SIGNED ) AS col2 FROM tab2
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-900
SELECT - col2 * CAST ( + 2 AS INTEGER ) AS col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT - 33 * - ( - col2 ) FROM tab1
----
-1947
-2244
-3168

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) * 51 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT DISTINCT + CAST( ( 39 ) AS SIGNED ) * 82 FROM tab0
----
3198

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT + CAST ( ( 39 ) AS INTEGER ) * 82 FROM tab0
----
3198

query III rowsort
SELECT * FROM tab1 WHERE - col2 < col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col2 AND - 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL 3 + COUNT( * ) FROM tab2 WHERE NOT ( - col1 * - col1 ) BETWEEN - 55 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL 3 + COUNT ( * ) FROM tab2 WHERE NOT ( - col1 * - col1 ) BETWEEN - 55 AND NULL
----
3

query I rowsort
SELECT DISTINCT - 20 * 94 FROM tab2
----
-1880

query I rowsort
SELECT + 23 + - col1 AS col2 FROM tab1
----
-24
18
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + col1 col0 FROM tab0
----
109
169
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-910
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT - CAST ( NULL AS REAL ) * col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-911
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-911
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 35 * 45 + col2 / - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <> 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT ALL 36 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL 36 / col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - ( - 90 ) AS col1 FROM tab1
----
90
90
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT + 18 * - SUM( - col1 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
1857

skipif mysql # not compatible
query I rowsort label-917
SELECT + 18 * - SUM ( - col1 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1857

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 91 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT COUNT( * ) + 84 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-919
SELECT COUNT ( * ) + 84 FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT col2 + CAST( col0 + col0 AS SIGNED ) FROM tab2 AS cor0
----
115
168
208

skipif mysql # not compatible
query I rowsort label-920
SELECT col2 + CAST ( col0 + col0 AS INTEGER ) FROM tab2 AS cor0
----
115
168
208

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 10 <= col0
----

query I rowsort
SELECT col0 + + 39 * 22 AS col2 FROM tab1 cor0
----
909
943
949

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT + SUM( - col1 ) FROM tab0 WHERE - col2 IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT + SUM ( - col1 ) FROM tab0 WHERE - col2 IN ( col0 )
----
NULL

query I rowsort
SELECT ALL + 41 + + col0 FROM tab2
----
105
116
87

query I rowsort
SELECT DISTINCT col0 * 63 AS col1 FROM tab1 WHERE ( 38 * + col2 ) <= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL - + ( + COUNT( DISTINCT 34 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - + ( + COUNT ( DISTINCT 34 ) ) FROM tab0 AS cor0
----
-1

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

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

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

query I rowsort
SELECT DISTINCT 4 FROM tab1 cor0 WHERE NOT + 40 IS NULL
----
4

query I rowsort
SELECT + + col0 * + ( col1 * + col1 ) AS col0 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT ALL MAX( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-934
SELECT MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT DISTINCT + MAX( ALL - 61 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - 1 + col0 * + 62 ) = 63
----
-61

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT + MAX ( ALL - 61 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - 1 + col0 * + 62 ) = 63
----
-61

query I rowsort
SELECT DISTINCT 29 * col1 AS col2 FROM tab1
----
1363
145
406

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

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT ALL SUM( - col0 ) AS col0 FROM tab1 WHERE NOT ( NULL ) < 62
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL SUM ( - col0 ) AS col0 FROM tab1 WHERE NOT ( NULL ) < 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT ALL 47 * - ( COUNT( * ) ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL 47 * - ( COUNT ( * ) ) FROM tab1
----
-141

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col0 BETWEEN - 53 AND NULL
----
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT - 16 * col2 + 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-942
SELECT ( MAX( col0 ) ) FROM tab0 WHERE NOT col0 NOT BETWEEN + col0 + col2 AND 21 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT ( MAX ( col0 ) ) FROM tab0 WHERE NOT col0 NOT BETWEEN + col0 + col2 AND 21 * CAST ( NULL AS REAL )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= + col0 OR ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab0 WHERE NOT ( col1 - col1 ) <> + 62 * 72
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT DISTINCT COUNT( * ) * ( 53 ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT COUNT ( * ) * ( 53 ) FROM tab2
----
159

query I rowsort
SELECT ALL col0 * 71 AS col2 FROM tab1
----
3621
6035
6461

query I rowsort
SELECT DISTINCT ( - 74 ) AS col2 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT 53 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
53

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 30 NOT BETWEEN ( - col2 / - 20 + + col2 ) AND ( - col0 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT ALL - col1 * col2 DIV - col0 + - 48 FROM tab2
----
-23
0
3

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - col1 * col2 / - col0 + - 48 FROM tab2
----
-23
0
3

query I rowsort
SELECT ALL - 27 + - + 63 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-956
SELECT + MIN( + col1 ) DIV + 9 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-956
SELECT + MIN ( + col1 ) / + 9 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT + + SUM( col2 ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-957
SELECT + + SUM ( col2 ) AS col0 FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT ALL - + col1 + - col1 - - + col0 FROM tab0 AS cor0
----
-147
45
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT DISTINCT col1 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 * - CAST( NULL AS SIGNED ) AND - 5 * - 82
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-961
SELECT DISTINCT col1 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 * - CAST ( NULL AS INTEGER ) AND - 5 * - 82
----

query I rowsort
SELECT DISTINCT - col0 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-2392
-4992
-5100

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 40 NOT BETWEEN + col0 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-964
SELECT + MIN( + col2 ) + - - SUM( 0 ) + + CAST( NULL AS SIGNED ) * 35 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT + MIN ( + col2 ) + - - SUM ( 0 ) + + CAST ( NULL AS INTEGER ) * 35 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT - COUNT( * ) + 69 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT - COUNT ( * ) + 69 FROM tab1
----
66

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 IN ( col1 ) AND NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 < col2
----
51
14
96

query I rowsort
SELECT ALL - col2 * - + col2 + 31 * col0 + - ( 31 + col1 * 85 ) FROM tab1
----
3419
5660
9576

query II rowsort
SELECT ALL - ( + col1 ), - 24 + + col0 AS col1 FROM tab0
----
-1
73
-21
63
-81
-9

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT - ( MIN( 60 ) ) AS col0 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-973
SELECT - ( MIN ( 60 ) ) AS col0 FROM tab1
----
-60

query I rowsort
SELECT ALL col1 - col1 * + + 45 - col0 AS col2 FROM tab0
----
-1011
-141
-3579

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT - ( MIN( - - ( - 72 ) ) ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-975
SELECT - ( MIN ( - - ( - 72 ) ) ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT DISTINCT - 64 FROM tab1 cor0
----
-64

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = ( 81 )
----

query I rowsort
SELECT - 29 AS col0 FROM tab2 WHERE - col1 BETWEEN ( - col1 ) AND 60
----
-29
-29
-29

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

query I rowsort
SELECT - col0 * col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT 89 FROM tab2 WHERE + col0 * - col1 * - col1 * col0 <= + col0
----

query II rowsort
SELECT - 12 AS col1, col0 - col0 + + col1 + + col1 FROM tab1
----
-12
10
-12
28
-12
94

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + - - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT - + COUNT( * ) * + + 10 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-987
SELECT - + COUNT ( * ) * + + 10 FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT + SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-988
SELECT + SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-989
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST( - 71 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-989
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( - 71 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-990
SELECT + CAST( NULL AS SIGNED ) * col2 col0, + col2 * - 19 AS col0 FROM tab2
----
NULL
-1102
NULL
-437
NULL
-760

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-990
SELECT + CAST ( NULL AS INTEGER ) * col2 col0, + col2 * - 19 AS col0 FROM tab2
----
NULL
-1102
NULL
-437
NULL
-760

onlyif mysql # aggregate syntax: 
query II rowsort label-991
SELECT ALL COUNT( * ) AS col2, COUNT( * ) * + + COUNT( DISTINCT col1 ) FROM tab2
----
3
9

skipif mysql # not compatible
query II rowsort label-991
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * + + COUNT ( DISTINCT col1 ) FROM tab2
----
3
9

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT COUNT( * ) * + - 77 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-992
SELECT COUNT ( * ) * + - 77 FROM tab2
----
-231

onlyif mysql # DIV for integer division: 
query II rowsort label-993
SELECT col0 DIV 87, + col1 AS col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-993
SELECT col0 / 87, + col1 AS col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT 46 * col2 FROM tab0 WHERE NOT ( + + col2 + - + 92 + 20 / + col0 ) <= NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-996
SELECT ALL - CAST( COUNT( DISTINCT - 47 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL - CAST ( COUNT ( DISTINCT - 47 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 7 / + + col1 ) <> ( col2 )
----

query I rowsort
SELECT ALL - col2 * + + col2 * + col2 + + ( + - ( + - col2 ) ) AS col0 FROM tab1 cor0
----
-205320
-314364
-884640

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( col2 ) <= 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1000
SELECT DISTINCT ( + + 70 ) DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT ( + + 70 ) / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NULL <> 55 * 18 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1002
SELECT + + col2 DIV + col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1002
SELECT + + col2 / + col1 AS col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT col0 IS NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1005
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - CAST( + + 28 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1005
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - CAST ( + + 28 AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT MIN( ALL - 32 ) * 81 AS col2 FROM tab1 AS cor0
----
-2592

skipif mysql # not compatible
query I rowsort label-1006
SELECT MIN ( ALL - 32 ) * 81 AS col2 FROM tab1 AS cor0
----
-2592

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT - 51 * - - 31 * COUNT( * ) col0 FROM tab1 AS cor0
----
-4743

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1008
SELECT - 51 * - - 31 * COUNT ( * ) col0 FROM tab1 AS cor0
----
-4743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1009
SELECT - COUNT( * ) AS col0, 77 * - CAST( NULL AS SIGNED ) FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1009
SELECT - COUNT ( * ) AS col0, 77 * - CAST ( NULL AS INTEGER ) FROM tab0
----
-3
NULL

query I rowsort
SELECT DISTINCT 31 + 34 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT ALL COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + + col2 NOT BETWEEN ( - 86 * + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1013
SELECT + 81 + + - 8 AS col0 FROM tab0 WHERE + ( col1 ) * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1013
SELECT + 81 + + - 8 AS col0 FROM tab0 WHERE + ( col1 ) * CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col0 * + col2 - - col2 FROM tab1
----
4992
5074
6256

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1016
SELECT + - CAST( NULL AS DECIMAL ) AS col0, col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-1016
SELECT + - CAST ( NULL AS REAL ) AS col0, col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ALL 75 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1018
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT 49 BETWEEN col0 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT 49 BETWEEN col0 AND - col2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + col1 + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1020
SELECT + CAST( + MAX( - + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-46

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1021
SELECT ALL - - CAST( 5 AS SIGNED ) FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL - - CAST ( 5 AS INTEGER ) FROM tab0 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT MAX( + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-1022
SELECT MAX ( + col2 ) FROM tab1 cor0
----
96

query I rowsort
SELECT + + col0 * - - ( - 89 ) FROM tab2 AS cor0
----
-4094
-5696
-6675

query I rowsort
SELECT ALL ( + + col2 ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT DISTINCT COUNT( - - 82 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT COUNT ( - - 82 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1026
SELECT - 22 + - CAST( - 44 AS SIGNED ) - + COUNT( * ) + + MIN( ALL - - 70 ) + + + 23 FROM tab2
----
112

skipif mysql # not compatible
query I rowsort label-1026
SELECT - 22 + - CAST ( - 44 AS INTEGER ) - + COUNT ( * ) + + MIN ( ALL - - 70 ) + + + 23 FROM tab2
----
112

query I rowsort
SELECT - + col0 + - col2 * - ( 50 ) FROM tab2 AS cor0
----
1104
1936
2825

query II rowsort
SELECT ALL - col2, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT DISTINCT 12 * 50 FROM tab1 cor0
----
600

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

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

query I rowsort
SELECT DISTINCT + - 12 + - col1 FROM tab2 cor0
----
-63
-79
-89

query I rowsort
SELECT DISTINCT - - 39 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
39

query I rowsort
SELECT DISTINCT + + 76 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
76

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - 16 * 21 * + col2 + 17 = + col2
----

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

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

query II rowsort
SELECT DISTINCT - 36 * - 46, - 13 AS col0 FROM tab1
----
1656
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT col0 - - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1038
SELECT ALL - - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT - 66 + + COUNT( * ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1040
SELECT - 66 + + COUNT ( * ) FROM tab2 AS cor0
----
-63

query I rowsort
SELECT + ( col1 ) * - ( 1 ) + + - 39 + 52 * col0 FROM tab0 AS cor0
----
4464
5004
660

query I rowsort
SELECT col0 FROM tab0 WHERE ( NOT + 36 IS NULL )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT COUNT( col2 ) + - 26 + + COUNT( * ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT COUNT ( col2 ) + - 26 + + COUNT ( * ) FROM tab2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * col1 + 17 FROM tab2
----
NULL
NULL
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL + + 53 - - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + + 53 - - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT + MAX( DISTINCT + + 86 ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-1048
SELECT + MAX ( DISTINCT + + 86 ) FROM tab0
----
86

query I rowsort
SELECT ALL col1 * - 89 AS col0 FROM tab2
----
-4539
-5963
-6853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT + CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT 31 * - COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT 31 * - COUNT ( * ) FROM tab1
----
-93

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1053
SELECT - 42 AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-42
3

skipif mysql # not compatible
query II rowsort label-1053
SELECT - 42 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-42
3

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 28 <= ( NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1056
SELECT DISTINCT - 19 DIV - COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - 19 / - COUNT ( * ) FROM tab1 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 18 + col0 - + + col0 col0 FROM tab2 AS cor0
----
-1152
-1350
-828

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = + 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT + COUNT( + 99 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1059
SELECT + COUNT ( + 99 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1060
SELECT DISTINCT * FROM tab1 WHERE + 78 * - + CAST( NULL AS SIGNED ) + + col1 + + col2 + + + col1 <= - 20
----

skipif mysql # not compatible
query III rowsort label-1060
SELECT DISTINCT * FROM tab1 WHERE + 78 * - + CAST ( NULL AS INTEGER ) + + col1 + + col2 + + + col1 <= - 20
----

query I rowsort
SELECT - ( - - col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT ALL - 7 DIV col2 DIV col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL - 7 / col2 / col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1063
SELECT - COUNT( * ) DIV - 42 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT - COUNT ( * ) / - 42 FROM tab2
----
0

query I rowsort
SELECT ALL + + col2 * + + col2 FROM tab2 WHERE NOT - 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1065
SELECT - COUNT( * ) * COUNT( ALL col2 ) + - 39 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
-48
-3

skipif mysql # not compatible
query II rowsort label-1065
SELECT - COUNT ( * ) * COUNT ( ALL col2 ) + - 39 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
-48
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 88 + - col1 col0 FROM tab1 AS cor0
----
41
74
83

query I rowsort
SELECT ALL col0 + - 55 AS col2 FROM tab2
----
-9
20
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1068
SELECT col0 DIV + CAST( + - col0 AS SIGNED ) + 35 FROM tab0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-1068
SELECT col0 / + CAST ( + - col0 AS INTEGER ) + 35 FROM tab0
----
34
34
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1069
SELECT - 70 col0, + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-70
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1069
SELECT - 70 col0, + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-70
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT DISTINCT MIN( 29 ) AS col2 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT MIN ( 29 ) AS col2 FROM tab1 AS cor0
----
29

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

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

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

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

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

query II rowsort
SELECT col1 AS col1, col1 / 77 * + 92 + - 37 AS col1 FROM tab2 AS cor0 WHERE NULL > + col2
----

query I rowsort
SELECT ALL col2 + + - col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT ALL + 74 DIV - col0 + + + col2 * + 14 FROM tab0
----
1386
140
654

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + 74 / - col0 + + + col2 * + 14 FROM tab0
----
1386
140
654

query I rowsort
SELECT + 72 - - - col1 AS col1 FROM tab2
----
-5
21
5

query I rowsort
SELECT DISTINCT + col2 * 74 * + 4 AS col1 FROM tab1
----
17464
20128
28416

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT 4 + + + col0 DIV + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
5
5
5

skipif mysql # not compatible
query I rowsort label-1080
SELECT 4 + + + col0 / + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
5
5
5

query I rowsort
SELECT ALL + col2 * + - 14 AS col2 FROM tab0 AS cor0
----
-1386
-140
-658

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

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

query I rowsort
SELECT DISTINCT col0 * 80 AS col0 FROM tab1
----
4080
6800
7280

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT COUNT( * ) * 22 AS col0 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-1085
SELECT COUNT ( * ) * 22 AS col0 FROM tab0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT - ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT col1 * col2 * ( CAST( + - col0 AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1086
SELECT - ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT col1 * col2 * ( CAST ( + - col0 AS INTEGER ) ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 * + col1 + - col0 * - col1 + - + 22 AS col1 FROM tab1 AS cor0
----
2036
698
7451

query I rowsort
SELECT 98 * + 56 FROM tab1 cor0
----
5488
5488
5488

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL + MIN( ALL - col1 ) * + 47 + + ( - 16 ) * COUNT( * ) FROM tab1 AS cor0
----
-2257

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL + MIN ( ALL - col1 ) * + 47 + + ( - 16 ) * COUNT ( * ) FROM tab1 AS cor0
----
-2257

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 + + col2 > - - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col0 ) < NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * + - col1 col0 FROM tab0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT ALL - - COUNT( * ) AS col2 FROM tab1 WHERE NOT + col2 <> + col0 / + col2
----
0

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col2 <> + col0 / + col2
----
0

query II rowsort
SELECT DISTINCT 83, 13 AS col0 FROM tab0
----
83
13

query I rowsort
SELECT ( 67 ) + - + 23 * col2 AS col2 FROM tab0
----
-1014
-163
-2210

query I rowsort
SELECT ALL - 7 * + + 51 + + + 80 FROM tab1
----
-277
-277
-277

query II rowsort
SELECT + + 95 * + col2 + - col1 AS col2, ( col1 ) * + + ( - col1 ) FROM tab0 AS cor0
----
4384
-6561
929
-441
9404
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT - col1 - + col2 DIV 46 + col2 - - ( 46 ) AS col0 FROM tab0
----
11
142
35

skipif mysql # not compatible
query I rowsort label-1103
SELECT - col1 - + col2 / 46 + col2 - - ( 46 ) AS col0 FROM tab0
----
11
142
35

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 46 IS NULL
----

query I rowsort
SELECT - + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1107
SELECT col0 / + ( - 42 ) * + col1 + + CAST( NULL AS SIGNED ) + 15 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 * col0 / - + 35 >= ( + 54 )
----
3

skipif mysql # not compatible
query I rowsort label-1108
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 * col0 / - + 35 >= ( + 54 )
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1111
SELECT DISTINCT + + COUNT( + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1112
SELECT * FROM tab1 WHERE NOT + col2 IN ( + CAST( NULL AS SIGNED ), - col1 * - + col1, + 65 * col2 + - + 35 )
----

skipif mysql # not compatible
query III rowsort label-1112
SELECT * FROM tab1 WHERE NOT + col2 IN ( + CAST ( NULL AS INTEGER ), - col1 * - + col1, + 65 * col2 + - + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT - MAX( ALL - + 75 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1113
SELECT - MAX ( ALL - + 75 ) FROM tab2
----
75

query I rowsort
SELECT - col1 + 79 + col1 AS col0 FROM tab1 WHERE NOT col2 * - col0 IS NULL
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT - SUM( ALL + col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1115
SELECT - SUM ( ALL + col1 ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT ( - 35 ) FROM tab1
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT - COUNT( * ) * + - 16 AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-1119
SELECT - COUNT ( * ) * + - 16 AS col1 FROM tab2
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1120
SELECT DISTINCT 92 / - - CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1120
SELECT DISTINCT 92 / - - CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT + + COUNT( * ) * + ( - COUNT( - 13 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT + + COUNT ( * ) * + ( - COUNT ( - 13 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-1122
SELECT ALL + 4, COUNT( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
4
3

skipif mysql # not compatible
query II rowsort label-1122
SELECT ALL + 4, COUNT ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
4
3

query III rowsort
SELECT ALL - col2 AS col2, + col2 AS col2, + ( + - col1 ) * + 76 AS col0 FROM tab2 AS cor0
----
9 values hashing to e014e6d08d192b9d765a268faec5d128

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col0 + - + col2 + + col1 + + - col0 * - col2 * + col2 * - col1 AND + 58
----

query I rowsort
SELECT DISTINCT col1 * + col1 + - 23 + col2 + - + col0 FROM tab0 AS cor0
----
-20
341
6570

query I rowsort
SELECT DISTINCT + col0 + col2 + - col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1127
SELECT SUM( DISTINCT col1 ) col1, - 22 AS col2 FROM tab2
----
195
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1127
SELECT SUM ( DISTINCT col1 ) col1, - 22 AS col2 FROM tab2
----
195
-22

query I rowsort
SELECT ALL ( col2 ) + - 36 AS col1 FROM tab2
----
-13
22
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 / + col0 col1 FROM tab1 WHERE - col1 * - + 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT - COUNT( * ) + - 92 AS col0 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT - COUNT ( * ) + - 92 AS col0 FROM tab0 AS cor0
----
-95

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

query I rowsort
SELECT 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + SUM( DISTINCT - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1134
SELECT + SUM ( DISTINCT - col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT COUNT( * ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-1135
SELECT COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-3

query II rowsort
SELECT ALL - col2 AS col2, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT - col2 * + + col0 * + 5 AS col0, col1 AS col1 FROM tab1 AS cor0
----
-24480
14
-25075
5
-30940
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1138
SELECT - - col2 DIV - 46 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1138
SELECT - - col2 / - 46 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT ALL col2 - 10 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
37
89

query II rowsort
SELECT DISTINCT - + col0 AS col1, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query II rowsort
SELECT ALL - col2, + 79 + - col1 AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-23
28
-40
2
-58
12

query I rowsort
SELECT ALL 4 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + 46 ) col0 FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT + MAX( ALL + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1145
SELECT + MAX ( ALL + col0 ) AS col1 FROM tab0
----
97

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT 74 * + col2 * - col2 NOT IN ( + col2 )
----

query I rowsort
SELECT ALL ( - 19 ) FROM tab2
----
-19
-19
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT - COUNT( * ) * 87 AS col1 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-1149
SELECT - COUNT ( * ) * 87 AS col1 FROM tab1
----
-261

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

skipif mysql # not compatible
query I rowsort label-1150
SELECT + 77 * col1 / - CAST ( NULL AS INTEGER ) - 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - + col1 + - col2 * - 28 AS col2 FROM tab2 AS cor0
----
1003
1499
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT DISTINCT + COUNT( * ) * + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT + COUNT ( * ) * + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT ALL 62 * 55 * + + COUNT( * ) FROM tab1 AS cor0
----
10230

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL 62 * 55 * + + COUNT ( * ) FROM tab1 AS cor0
----
10230

query II rowsort
SELECT - col1 * + 13 * col2 AS col0, col1 FROM tab2 AS cor0
----
-15249
51
-40040
77
-50518
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT - MIN( - - 24 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1155
SELECT - MIN ( - - 24 ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE + col0 + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE + col0 + - col0 IS NULL
----
0

query II rowsort
SELECT DISTINCT 54, col2 FROM tab0
----
54
10
54
47
54
99

query I rowsort
SELECT - 37 + - + col0 AS col1 FROM tab1
----
-122
-128
-88

query II rowsort
SELECT col1, col1 FROM tab0 cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 * col0 col1 FROM tab0 AS cor0
----
-1131
-1261
-195

query I rowsort
SELECT + + col0 * - 10 FROM tab2 AS cor0
----
-460
-640
-750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT DISTINCT - + 52 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
2652
3484
4004

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT - + 52 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
2652
3484
4004

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1164
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1164
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - col2 + + 82 - + col2 FROM tab0
----
172
2244
9784

query I rowsort
SELECT ALL 43 * + col0 + + 94 + - col1 FROM tab2
----
2021
2769
3252

query I rowsort
SELECT DISTINCT + 57 + + + 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > ( - col2 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 99 * - col0 + - - col1, - 66 + - 38 )
----

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

query I rowsort
SELECT col2 * - + ( - + col2 ) AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT MIN( ALL - + 15 ) * + SUM( col1 ) AS col0 FROM tab1
----
-990

skipif mysql # not compatible
query I rowsort label-1173
SELECT MIN ( ALL - + 15 ) * + SUM ( col1 ) AS col0 FROM tab1
----
-990

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1174
SELECT + col1 DIV col1 * 66, - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-1174
SELECT + col1 / col1 * 66, - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
66
NULL
66
NULL
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT 45 * COUNT( * ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-1175
SELECT 45 * COUNT ( * ) FROM tab2
----
135

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 * col1 * + + col2 col2 FROM tab1
----
37632
8260
89488

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT + SUM( 98 ) AS col1 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-1178
SELECT + SUM ( 98 ) AS col1 FROM tab2
----
294

query I rowsort
SELECT + 47 AS col0 FROM tab2 cor0
----
47
47
47

query I rowsort
SELECT ALL col2 + - - col2 AS col2 FROM tab0
----
198
20
94

query II rowsort
SELECT + ( - col1 ), + col2 FROM tab0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT 42 * + - col0 FROM tab2
----
-1932
-2688
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT 91 + - COUNT( * ) * - 4 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1183
SELECT 91 + - COUNT ( * ) * - 4 FROM tab0
----
103

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

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

query I rowsort
SELECT ALL + 39 * + col0 AS col1 FROM tab0 AS cor0
----
3393
3783
585

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT - 60 + 2 + + col2 FROM tab0 AS cor0
----
-11
-48
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL 40 + + COUNT( * ) + + COUNT( * ) + - SUM( 80 ) AS col2 FROM tab1 AS cor0
----
-194

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 40 + + COUNT ( * ) + + COUNT ( * ) + - SUM ( 80 ) AS col2 FROM tab1 AS cor0
----
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1189
SELECT DISTINCT - col2 * - + col0 * + CAST( - - col1 AS SIGNED ) + - + col2 + - 85 col1 FROM tab2 AS cor0
----
196995
291307
53850

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1189
SELECT DISTINCT - col2 * - + col0 * + CAST ( - - col1 AS INTEGER ) + - + col2 + - 85 col1 FROM tab2 AS cor0
----
196995
291307
53850

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( 20 ) IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT ALL col0 DIV 56 + col2 - + - col2 * - + 19 * col0 * - 19 FROM tab0
----
254552
314081
3466783

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL col0 / 56 + col2 - + - col2 * - + 19 * col0 * - 19 FROM tab0
----
254552
314081
3466783

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT - COUNT( DISTINCT + 95 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1193
SELECT - COUNT ( DISTINCT + 95 ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1194
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( + + 36 ), + 47 AS col0 FROM tab1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-1194
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( + + 36 ), + 47 AS col0 FROM tab1
----
NULL
47

query I rowsort
SELECT ALL - 15 AS col0 FROM tab0 WHERE NOT - col0 * - col1 IS NOT NULL
----

query II rowsort
SELECT - col2 * - 28 + col2 + - 74 AS col0, - col1 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, - col0 + + 97 )
----

query I rowsort
SELECT - col1 + + - col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1198
SELECT CAST( NULL AS SIGNED ) * - 19 + + 43 * - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2, col1 * - + col0 col2 FROM tab0 AS cor0 WHERE NOT + col0 - - col2 > + 9
----

query II rowsort
SELECT ALL col1, col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - col0 * + 50 FROM tab2
----
-2300
-3200
-3750

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT ALL - 38 DIV + - 54 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - 38 / + - 54 FROM tab1
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT + 26 * - ( + - COUNT( * ) ) col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1205
SELECT + 26 * - ( + - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
78

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

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

query I rowsort
SELECT + - 62 * col1 FROM tab0 AS cor0
----
-1302
-5022
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT + - MAX( - 12 ) * ( - - 92 ) col1 FROM tab0 cor0
----
1104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1208
SELECT + - MAX ( - 12 ) * ( - - 92 ) col1 FROM tab0 cor0
----
1104

query I rowsort
SELECT ALL + col1 * - 34 FROM tab2 AS cor0
----
-1734
-2278
-2618

query I rowsort
SELECT 77 * + col1 FROM tab2 AS cor0
----
3927
5159
5929

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1212
SELECT ALL ( CAST( AVG ( ALL - 60 ) AS SIGNED ) ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL ( CAST ( AVG ( ALL - 60 ) AS INTEGER ) ) FROM tab2
----
-60

query II rowsort
SELECT + col2 * - col1, + col2 FROM tab1
----
-1344
96
-295
59
-3196
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 20 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < 61
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 NOT BETWEEN + - col0 AND + + col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1218
SELECT DISTINCT col2 * + col2 AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
100
NULL
2209
NULL
9801
NULL

skipif mysql # not compatible
query II rowsort label-1218
SELECT DISTINCT col2 * + col2 AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
100
NULL
2209
NULL
9801
NULL

query I rowsort
SELECT - ( + + col1 ) * 9 AS col2 FROM tab1
----
-126
-423
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL - SUM( DISTINCT col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL - SUM ( DISTINCT col0 ) AS col2 FROM tab2
----
-185

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / - col1 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT + col2 * - col0 - + col0 AS col1 FROM tab0 AS cor0
----
-720
-957
-9700

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1227
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT ALL + COUNT( - ( - + 15 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL + COUNT ( - ( - + 15 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 22 + + - 15 AS col0 FROM tab2 AS cor0
----
7
7
7

query II rowsort
SELECT DISTINCT col0, col2 AS col1 FROM tab1 cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT 12 + + col1 FROM tab2 AS cor0
----
63
79
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT + SUM( + + 8 ) + + COUNT( * ) FROM tab1 WHERE + ( - 77 ) <> col2
----
27

skipif mysql # not compatible
query I rowsort label-1233
SELECT + SUM ( + + 8 ) + + COUNT ( * ) FROM tab1 WHERE + ( - 77 ) <> col2
----
27

query I rowsort
SELECT - 82 + - + col1 FROM tab1
----
-129
-87
-96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT col0 * + + 1 * - 62 + - + col1 DIV - + 13 AS col0 FROM tab1
----
-3161
-5270
-5639

skipif mysql # not compatible
query I rowsort label-1236
SELECT col0 * + + 1 * - 62 + - + col1 / - + 13 AS col0 FROM tab1
----
-3161
-5270
-5639

query I rowsort
SELECT ALL + col2 - + + 58 + col2 AS col1 FROM tab2
----
-12
22
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + 89 col0, col2 AS col0 FROM tab2
----
112
23
129
40
147
58

query I rowsort
SELECT 63 * - - col2 * + 16 FROM tab1 WHERE col2 + - 42 IN ( + ( 28 ) )
----

query II rowsort
SELECT - 63 * col1 - - col2 * col0, - ( + 86 ) AS col1 FROM tab2 AS cor0
----
-2155
-86
-2291
-86
129
-86

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

query I rowsort
SELECT DISTINCT - - ( + 88 ) - col2 AS col0 FROM tab2 AS cor0
----
30
48
65

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1243
SELECT ALL - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT - 64 * + col2 AS col0 FROM tab2 AS cor0
----
-1472
-2560
-3712

query I rowsort
SELECT DISTINCT + 4 * + col1 FROM tab2
----
204
268
308

onlyif mysql # DIV for integer division: 
query I rowsort label-1246
SELECT + col1 DIV ( - - col0 ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1246
SELECT + col1 / ( - - col0 ) FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT MIN( + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT MIN ( + col2 ) FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1248
SELECT DISTINCT - 77 DIV - col0 AS col1 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT - 77 / - col0 AS col1 FROM tab0
----
0
5

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

skipif mysql # not compatible
query I rowsort label-1249
SELECT + + COUNT ( ALL col2 ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 52 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1251
SELECT ALL + col1 DIV - col2 + col1 * + col2 AS col2 FROM tab2 AS cor0 WHERE ( col2 * + col0 ) NOT BETWEEN 94 AND col1
----
1171
3079
3885

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + col1 / - col2 + col1 * + col2 AS col2 FROM tab2 AS cor0 WHERE ( col2 * + col0 ) NOT BETWEEN 94 AND col1
----
1171
3079
3885

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT DISTINCT - 25 * + + MIN( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-1275

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - 25 * + + MIN ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-1275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1253
SELECT + + col1 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1253
SELECT + + col1 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - col2 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT + + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1254
SELECT + + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

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

query I rowsort
SELECT + col2 * - col0 * - ( + + col1 ) AS col0 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT - 35 * 99 FROM tab2
----
-3465
-3465
-3465

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1259
SELECT DISTINCT + ( - + 48 ) DIV + - CAST( + 97 AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT + ( - + 48 ) / + - CAST ( + 97 AS INTEGER ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 * + ( - col1 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ALL MAX( 99 ) AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL MAX ( 99 ) AS col0 FROM tab1
----
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT ALL + - col1 + + + CAST( - ( + + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL + - col1 + + + CAST ( - ( + + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 + + col2 col0 FROM tab2 AS cor0
----
113
78
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1266
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab1
----
55

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 - - col1 * col2 * col2 NOT BETWEEN + + col2 * + col0 + 82 + - col0 AND 12
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - MIN( DISTINCT + - 88 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1271
SELECT - MIN ( DISTINCT + - 88 ) FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL - SUM( col2 ) / + + AVG ( - col2 ) + - + COUNT( * ) + MAX( - col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - SUM ( col2 ) / + + AVG ( - col2 ) + - + COUNT ( * ) + MAX ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - - col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT + + col2 DIV + - 26 col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1273
SELECT + + col2 / + - 26 col1 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT - 6 * - 16 FROM tab0 cor0
----
96
96
96

query III rowsort
SELECT * FROM tab1 WHERE 45 + - 58 + + 56 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE + + ( + col0 ) / + + 1 NOT IN ( + 44, col0 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL <= col0 * + col2 + - col2 * + + col2 * + + ( - col1 ) + - col1
----

query I rowsort
SELECT 39 / + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL - ( - col2 ) - - + col2 AS col0 FROM tab2
----
116
46
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL + 72 - + - SUM( + - col2 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL + 72 - + - SUM ( + - col2 ) FROM tab2
----
-49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query II rowsort
SELECT - col0, - col1 + - col2 + + 97 AS col0 FROM tab1 AS cor0
----
-51
-13
-85
33
-91
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT COUNT( ALL ( col0 ) ) col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1285
SELECT COUNT ( ALL ( col0 ) ) col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL - - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1289
SELECT + 79 FROM tab1 cor0 WHERE NOT + col1 * - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-1289
SELECT + 79 FROM tab1 cor0 WHERE NOT + col1 * - CAST ( NULL AS INTEGER ) <= NULL
----

query II rowsort
SELECT ALL + + ( - + col0 ) AS col2, + col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT - 93 AS col2 FROM tab0 cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL - - 37 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL - - 37 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
40

query I rowsort
SELECT + + col1 * + - 91 + - col2 * - - col2 * - + col0 FROM tab0 AS cor0
----
25764
6789
950606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1294
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT - ( - 40 ) FROM tab2
----
40

query I rowsort
SELECT ALL + 38 * 74 * + 86 FROM tab1
----
241832
241832
241832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL col1 AS col2 FROM tab1 cor0 WHERE NOT CAST( 54 AS SIGNED ) * + 37 + - + col2 <= + 47
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL col1 AS col2 FROM tab1 cor0 WHERE NOT CAST ( 54 AS INTEGER ) * + 37 + - + col2 <= + 47
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT - MIN( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1298
SELECT - MIN ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-5

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

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

skipif mysql # not compatible
query I rowsort label-1300
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - col1 - + 76 * - col2 FROM tab2
----
1697
2963
4341

query I rowsort
SELECT - 15 - - + 13 AS col1 FROM tab2
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT ALL + - col1 DIV - + col2 - + col0 AS col2 FROM tab2 AS cor0
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL + - col1 / - + col2 - + col0 AS col2 FROM tab2 AS cor0
----
-44
-63
-74

query II rowsort
SELECT DISTINCT - 14 AS col0, col2 FROM tab0 AS cor0
----
-14
10
-14
47
-14
99

query I rowsort
SELECT - 67 + + - 66 + 2 AS col1 FROM tab0 AS cor0
----
-131
-131
-131

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

query I rowsort
SELECT - + 16 FROM tab0, tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT 98 DIV - 42 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1308
SELECT 98 / - 42 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT + ( 65 ) FROM tab1
----
65
65
65

query II rowsort
SELECT col1 * + col2 * + 21 AS col1, - col1 FROM tab0
----
2079
-1
4410
-21
79947
-81

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

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
-14
-47
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 * - col0 * col2 col0, col2 AS col1 FROM tab1
----
-63648
96
-65195
59
-80444
68

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT + ( - + 43 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-1316
SELECT + ( - + 43 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-129

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col1 * + col0, col1 + col2, + 46 + col2 * + 4 )
----

query I rowsort
SELECT col2 * + - 53 AS col1 FROM tab1 AS cor0
----
-3127
-3604
-5088

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL 7 * - COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL 7 * - COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

query I rowsort
SELECT + 38 / - + 13 AS col0 FROM tab2 WHERE NOT NULL >= - - col1
----

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

query II rowsort
SELECT col0 AS col0, 88 + col1 FROM tab0 AS cor0
----
15
169
87
109
97
89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + + col0 / - col2 >= 90 + + - col2 / - 32 + - - col0
----

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab2 cor0
----
82

query I rowsort
SELECT ( col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col1 * - ( + + 51 ) col0 FROM tab0 AS cor0
----
-1061
-4084
48

query I rowsort
SELECT - ( 35 ) AS col1 FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT 8 + - + col1 AS col0 FROM tab0
----
-13
-73
7

query I rowsort
SELECT ( 65 ) * + col1 AS col2 FROM tab2
----
3315
4355
5005

query I rowsort
SELECT 79 * + 82 AS col0 FROM tab2
----
6478
6478
6478

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

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL MAX ( DISTINCT + - col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1332
SELECT - col0 * CAST( NULL AS SIGNED ) AS col0, col0 * - col1 AS col1 FROM tab1
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
query II rowsort label-1332
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col0, col0 * - col1 AS col1 FROM tab1
----
NULL
-425
NULL
-4277
NULL
-714

query I rowsort
SELECT ALL + col0 * - 93 FROM tab0
----
-1395
-8091
-9021

query I rowsort
SELECT DISTINCT - col2 * + + ( + col2 ) AS col1 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL SUM( DISTINCT + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL SUM ( DISTINCT + col1 ) FROM tab2
----
195

query I rowsort
SELECT DISTINCT col0 * - 88 FROM tab1 cor0
----
-4488
-7480
-8008

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - ( ( 54 ) ) * - 27
----

query I rowsort
SELECT ALL - 5 * + - col0 AS col0 FROM tab1 AS cor0
----
255
425
455

query I rowsort
SELECT ALL col2 * col1 + col2 * col1 + + - 54 FROM tab0 AS cor0
----
144
366
7560

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT col1 DIV - col2 * 95 * ( - 55 ) + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1344
SELECT col1 / - col2 * 95 * ( - 55 ) + col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + col1 * + 45 FROM tab0
----
3645
45
945

onlyif mysql # DIV for integer division: 
query II rowsort label-1346
SELECT - ( - 31 ) * col1 AS col2, ( + col2 ) DIV + col0 - + + ( + col1 ) FROM tab2 AS cor0
----
1581
-51
2077
-67
2387
-77

skipif mysql # not compatible
query II rowsort label-1346
SELECT - ( - 31 ) * col1 AS col2, ( + col2 ) / + col0 - + + ( + col1 ) FROM tab2 AS cor0
----
1581
-51
2077
-67
2387
-77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + - col0 col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-33
-43
39

query I rowsort
SELECT - + col0 - + col0 - - col1 + + 47 * + col2 * + - 46 FROM tab2 cor0
----
-125479
-49767
-86531

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 28 IS NULL
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1355
SELECT ALL - col0, col2 + + 77 + - 3 + - + col0 DIV 70 AS col1 FROM tab0
----
-15
121
-87
83
-97
172

skipif mysql # not compatible
query II rowsort label-1355
SELECT ALL - col0, col2 + + 77 + - 3 + - + col0 / 70 AS col1 FROM tab0
----
-15
121
-87
83
-97
172

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT ALL 33 * 84, + COUNT( * ) AS col1 FROM tab2
----
2772
3

skipif mysql # not compatible
query II rowsort label-1356
SELECT ALL 33 * 84, + COUNT ( * ) AS col1 FROM tab2
----
2772
3

query I rowsort
SELECT DISTINCT + col2 * + - col2 AS col1 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL + ( col2 ) * 18 FROM tab1
----
1062
1224
1728

query III rowsort
SELECT ALL * FROM tab1 WHERE - 69 / 20 + + + col2 + + - col2 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT DISTINCT MAX( + - 28 ) FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT MAX ( + - 28 ) FROM tab2 AS cor0
----
-28

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 73 + - col1 * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 + 11 IS NOT NULL
----

query II rowsort
SELECT col0 * - 46 * - 94 AS col2, col0 FROM tab1 AS cor0
----
220524
51
367540
85
393484
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col2 FROM tab2 cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1366
SELECT + CAST( - 91 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-1366
SELECT + CAST ( - 91 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL 38 + + - 94 - - - ( - - COUNT( ALL + 35 ) ) AS col0 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL 38 + + - 94 - - - ( - - COUNT ( ALL + 35 ) ) AS col0 FROM tab1 cor0
----
-59

query I rowsort
SELECT ALL 52 * - 81 + - 73 AS col0 FROM tab1
----
-4285
-4285
-4285

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT DISTINCT 36 + + COUNT( * ) * 58 AS col2 FROM tab0, tab2 cor0
----
558

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT 36 + + COUNT ( * ) * 58 AS col2 FROM tab0, tab2 cor0
----
558

query I rowsort
SELECT 66 + col0 FROM tab0
----
153
163
81

query I rowsort
SELECT DISTINCT 91 + - col0 FROM tab1
----
0
40
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1372
SELECT DISTINCT + 87 * + CAST( - + 41 AS SIGNED ), col1 AS col2 FROM tab0
----
-3567
1
-3567
21
-3567
81

skipif mysql # not compatible
query II rowsort label-1372
SELECT DISTINCT + 87 * + CAST ( - + 41 AS INTEGER ), col1 AS col2 FROM tab0
----
-3567
1
-3567
21
-3567
81

query I rowsort
SELECT - col1 + - 38 + ( + - 0 ) - 50 * - - col1 FROM tab1
----
-2435
-293
-752

query II rowsort
SELECT ALL - col0, col1 AS col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT + COUNT( ALL - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT + COUNT ( ALL - col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT 34 + - + 76 AS col1 FROM tab0 AS cor0
----
-42
-42
-42

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

skipif mysql # not compatible
query I rowsort label-1377
SELECT COUNT ( - col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1378
SELECT + COUNT( - col1 ) DIV - 69 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1378
SELECT + COUNT ( - col1 ) / - 69 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 - 22 IS NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = ( + col0 ) - + col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT COUNT( * ) + - 74 AS col2 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-1382
SELECT COUNT ( * ) + - 74 AS col2 FROM tab0
----
-71

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

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

query I rowsort
SELECT 96 + 29 FROM tab0
----
125
125
125

onlyif mysql # DIV for integer division: 
query I rowsort label-1385
SELECT 33 DIV - col1 AS col2 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-1385
SELECT 33 / - col1 AS col2 FROM tab1
----
-2
-6
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT 39 * COUNT( * ) AS col0 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-1387
SELECT 39 * COUNT ( * ) AS col0 FROM tab0
----
117

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 79 >= ( 73 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 0 * - col2 + + 56 >= col0
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab1 WHERE NOT col2 * - col2 + + col2 IS NULL
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT + col2 + + col2 DIV - 21 FROM tab0
----
10
45
95

skipif mysql # not compatible
query I rowsort label-1393
SELECT + col2 + + col2 / - 21 FROM tab0
----
10
45
95

query I rowsort
SELECT DISTINCT col0 + - col2 * col0 AS col0 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT - COUNT( * ) + + 2 col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1395
SELECT - COUNT ( * ) + + 2 col0 FROM tab1
----
-1

query I rowsort
SELECT - col2 + + 5 AS col0 FROM tab2
----
-18
-35
-53

query I rowsort
SELECT ALL + col1 * col0 AS col1 FROM tab1 WHERE NOT 10 NOT BETWEEN ( + col2 - col0 / col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 * col1 ) IS NULL
----

query I rowsort
SELECT + col2 * 59 + col1 FROM tab2
----
1408
2437
3489

query III rowsort
SELECT * FROM tab2 WHERE ( - 42 ) IS NULL
----

query I rowsort
SELECT col2 + ( 11 ) AS col2 FROM tab1
----
107
70
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > col1 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 + col1 col0 FROM tab0
----
111
171
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 4
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * 22 = ( 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col0 ) col2 FROM tab2 WHERE NOT NULL = ( col1 + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 28 ) IN ( + 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT ALL + COUNT( * ) * 6 FROM tab1 AS cor0 CROSS JOIN tab1
----
54

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + COUNT ( * ) * 6 FROM tab1 AS cor0 CROSS JOIN tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT 93 * MAX( + ( - 59 ) ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5487

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1412
SELECT 93 * MAX ( + ( - 59 ) ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5487

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL + + MAX( DISTINCT - 60 ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL + + MAX ( DISTINCT - 60 ) FROM tab2 AS cor0
----
-60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 79
----

query I rowsort
SELECT DISTINCT - col2 + + 50 AS col1 FROM tab1 AS cor0
----
-18
-46
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 cor0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT ALL + col1 DIV - col1 + col1 AS col0 FROM tab0 AS cor0
----
0
20
80

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - 48
----

query I rowsort
SELECT ALL - col0 * - 89 + 69 FROM tab0 cor0
----
1404
7812
8702

query I rowsort
SELECT - - col0 * ( + col0 ) FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT 37 * - COUNT( * ) AS col1 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-1422
SELECT 37 * - COUNT ( * ) AS col1 FROM tab0
----
-111

query I rowsort
SELECT ALL + ( + col2 ) + col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT DISTINCT COUNT( * ) + + 16 * ( + 54 ) FROM tab2
----
867

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT COUNT ( * ) + + 16 * ( + 54 ) FROM tab2
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT DISTINCT SUM( ALL + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT SUM ( ALL + col0 ) FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 + - 88 + + col1 * - col0 col1 FROM tab1
----
-4374
-522
-811

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > col0 + - col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 / + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 * 56 AS col1 FROM tab2
----
2856
3752
4312

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1432
SELECT - - 89 DIV - + COUNT( * ) + + COUNT( * ) col2 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1432
SELECT - - 89 / - + COUNT ( * ) + + COUNT ( * ) col2 FROM tab0 AS cor0
----
-26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1434
SELECT + + MIN( CAST( NULL AS SIGNED ) ) * MAX( ( - col1 ) * - ( + col2 + col1 ) ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1435
SELECT * FROM tab2 AS cor0 WHERE ( CAST( NULL AS DECIMAL ) ) * col2 = - col2
----

skipif mysql # not compatible
query III rowsort label-1435
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS REAL ) ) * col2 = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 84 col1 FROM tab2
----
-135
-151
-161

query I rowsort
SELECT + ( + col2 ) * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IN ( + col1 )
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT SUM( ALL - col2 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-1438
SELECT SUM ( ALL - col2 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
669

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE - 20 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE - col1 IN ( - col1 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 IN ( - col1 * col1 )
----
0

query II rowsort
SELECT DISTINCT + col1, + 11 FROM tab0 cor0
----
1
11
21
11
81
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1443
SELECT DISTINCT - 18 * - CAST( - ( - 69 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1242

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - 18 * - CAST ( - ( - 69 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1242

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

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

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

query I rowsort
SELECT - col1 * col1 + - - col1 FROM tab1 AS cor0
----
-182
-20
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT + - SUM( ALL - - ( 55 ) ) AS col1 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-1447
SELECT + - SUM ( ALL - - ( 55 ) ) AS col1 FROM tab2 AS cor0
----
-165

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

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

query I rowsort
SELECT DISTINCT 87 FROM tab1 AS cor0 WHERE NOT ( 67 + - col2 * 56 ) IN ( 93 * + col0 )
----
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * col1 + ( + col0 ) IS NULL
----

query I rowsort
SELECT ALL - 52 AS col0 FROM tab1
----
-52
-52
-52

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT - - col2 + - col2 + col0 NOT IN ( col1 + col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1453
SELECT - col1 / + + 57 FROM tab2
----
-1
-1
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 * - 34, + col2 AS col2 FROM tab0
----
-2754
47
-34
99
-714
10

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

query I rowsort
SELECT 26 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND + - 63 * 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT + MIN( ALL + 29 ) AS col0 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-1459
SELECT + MIN ( ALL + 29 ) AS col0 FROM tab0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT COUNT( * ) * - 83 AS col1 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-1460
SELECT COUNT ( * ) * - 83 AS col1 FROM tab1 AS cor0
----
-249

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-1462
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT + col1 * + 22 * 84 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col1 * + 22 * 84 IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1463
SELECT - - AVG ( + CAST( NULL AS DECIMAL ) ) FROM tab0 WHERE + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1463
SELECT - - AVG ( + CAST ( NULL AS REAL ) ) FROM tab0 WHERE + + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1464
SELECT DISTINCT - ( + ( 89 ) ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
-89
3

skipif mysql # not compatible
query II rowsort label-1464
SELECT DISTINCT - ( + ( 89 ) ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-89
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) <= col1 / - + col1
----
3

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) <= col1 / - + col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT + + 49 * + - CAST( COUNT( ALL + + 32 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-1466
SELECT + + 49 * + - CAST ( COUNT ( ALL + + 32 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-147

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

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

query I rowsort
SELECT - + col2 + - 89 FROM tab2 cor0
----
-112
-129
-147

query I rowsort
SELECT DISTINCT + - col2 * + + 86 + + col1 + + col1 + + col2 * + 86 AS col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1470
SELECT DISTINCT + 30 * - + 76 + + - COUNT( - CAST( 60 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-2283

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT + 30 * - + 76 + + - COUNT ( - CAST ( 60 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-2283

query III rowsort
SELECT * FROM tab1 WHERE + 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT COUNT( * ) AS col0 FROM tab2 WHERE col1 - + - col0 BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-1472
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE col1 - + - col0 BETWEEN NULL AND + col0
----
0

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

query I rowsort
SELECT col2 * + - ( - 36 ) + 92 AS col1 FROM tab2
----
1532
2180
920

onlyif mysql # aggregate syntax: 
query II rowsort label-1475
SELECT COUNT( * ) AS col2, + 16 AS col2 FROM tab2
----
3
16

skipif mysql # not compatible
query II rowsort label-1475
SELECT COUNT ( * ) AS col2, + 16 AS col2 FROM tab2
----
3
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1476
SELECT ALL ( COUNT( * ) ) AS col1, 98 FROM tab0
----
3
98

skipif mysql # not compatible
query II rowsort label-1476
SELECT ALL ( COUNT ( * ) ) AS col1, 98 FROM tab0
----
3
98

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

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

query II rowsort
SELECT DISTINCT - col1 AS col0, - col0 FROM tab2 cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1480
SELECT * FROM tab2 WHERE NOT - - CAST( NULL AS DECIMAL ) * ( + - col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1480
SELECT * FROM tab2 WHERE NOT - - CAST ( NULL AS REAL ) * ( + - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT 34 DIV - - 3 AS col1 FROM tab1
----
11
11
11

skipif mysql # not compatible
query I rowsort label-1481
SELECT 34 / - - 3 AS col1 FROM tab1
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL - + COUNT( ALL + + 96 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - + COUNT ( ALL + + 96 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 98 FROM tab0 AS cor0 WHERE NOT + col1 - col0 + - col2 * - 17 * - + 9 NOT BETWEEN NULL AND ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1485
SELECT * FROM tab2 AS cor0 WHERE NOT ( 23 * + - ( - col2 ) * + + 93 * + 80 ) >= ( - ( - CAST( col2 AS SIGNED ) ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-1485
SELECT * FROM tab2 AS cor0 WHERE NOT ( 23 * + - ( - col2 ) * + + 93 * + 80 ) >= ( - ( - CAST ( col2 AS INTEGER ) ) * col2 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NULL BETWEEN - col1 AND - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NULL BETWEEN - col1 AND - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT col1 * - - col0 AS col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 * + + col2 - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1490
SELECT CAST( + - col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1490
SELECT CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

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

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

query I rowsort
SELECT DISTINCT 49 * + col0 AS col1 FROM tab1
----
2499
4165
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL SUM( ( + - 36 ) ) AS col0 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL SUM ( ( + - 36 ) ) AS col0 FROM tab2
----
-108

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT col1 * - - CAST( + 19 AS SIGNED ) AS col2 FROM tab0 cor0
----
1539
19
399

skipif mysql # not compatible
query I rowsort label-1495
SELECT col1 * - - CAST ( + 19 AS INTEGER ) AS col2 FROM tab0 cor0
----
1539
19
399

query I rowsort
SELECT DISTINCT + - col1 * + - ( col0 ) FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT col1 * 88 AS col2 FROM tab2 cor0
----
4488
5896
6776

query I rowsort
SELECT ALL - col1 + 18 AS col2 FROM tab1 cor0
----
-29
13
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT - MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1499
SELECT - MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT + 96 * col0 FROM tab0 cor0
----
1440
8352
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT + COUNT( * ) * 61 + - 59 AS col0 FROM tab0
----
124

skipif mysql # not compatible
query I rowsort label-1501
SELECT + COUNT ( * ) * 61 + - 59 AS col0 FROM tab0
----
124

query I rowsort
SELECT col0 + + 25 + - - 27 AS col0 FROM tab1
----
103
137
143

query II rowsort
SELECT DISTINCT col1 * + 76 AS col1, - col2 FROM tab0
----
1596
-10
6156
-47
76
-99

query II rowsort
SELECT - col0 + 96 AS col1, - col2 FROM tab1 AS cor0
----
11
-59
45
-96
5
-68

query I rowsort
SELECT ALL col2 * - - col1 + + + col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL <> + col1 + 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT - + 6 DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT + 61 * - MAX( + 7 ) AS col0 FROM tab2 AS cor0
----
-427

skipif mysql # not compatible
query I rowsort label-1508
SELECT + 61 * - MAX ( + 7 ) AS col0 FROM tab2 AS cor0
----
-427

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT ALL COUNT( * ) * - - 20 + 95 FROM tab0 cor0
----
155

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL COUNT ( * ) * - - 20 + 95 FROM tab0 cor0
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-1510
SELECT - + col2 DIV 36 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-68
-78

skipif mysql # not compatible
query I rowsort label-1510
SELECT - + col2 / 36 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-68
-78

query I rowsort
SELECT ALL 12 * col1 * 24 + 93 FROM tab1 AS cor0
----
13629
1533
4125

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

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

query I rowsort
SELECT ALL 53 * - col0 + + 80 FROM tab1
----
-2623
-4425
-4743

query I rowsort
SELECT - 7 - col2 AS col0 FROM tab1
----
-103
-66
-75

query I rowsort
SELECT ALL - 0 + + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT col0 - col2 * 94 + col1 + - 26 FROM tab2
----
-2091
-3645
-5336

query I rowsort
SELECT ALL 61 * - col2 + + 26 AS col1 FROM tab0
----
-2841
-584
-6013

query I rowsort
SELECT ALL - ( + col2 ) - - col0 - 7 AS col2 FROM tab1
----
-52
16
19

query I rowsort
SELECT DISTINCT col0 * - 96 * + col2 FROM tab0
----
-67680
-83520
-921888

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 76 + 60 ) IS NOT NULL
----

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

query I rowsort
SELECT + 8 * + ( - 82 ) AS col1 FROM tab0
----
-656
-656
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT + MIN( DISTINCT + 49 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-1523
SELECT + MIN ( DISTINCT + 49 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT + COUNT( ALL - col2 ) * - + ( COUNT( * ) ) AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1524
SELECT + COUNT ( ALL - col2 ) * - + ( COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1525
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 > + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1527
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) DIV - 21 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) / - 21 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT DISTINCT + COUNT( * ) * - 25 AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT + COUNT ( * ) * - 25 AS col2 FROM tab0 AS cor0
----
-75

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

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

query II rowsort
SELECT col1, col1 + + 49 FROM tab2 AS cor0
----
51
100
67
116
77
126

query II rowsort
SELECT - col1 AS col1, - 68 AS col2 FROM tab1 AS cor0
----
-14
-68
-47
-68
-5
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT + CAST( + 72 AS SIGNED ) FROM tab2 cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-1532
SELECT + CAST ( + 72 AS INTEGER ) FROM tab2 cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + + 86, col2 AS col0, + col0 col2 FROM tab1 AS cor0
----
9 values hashing to 2d84090dcd7a2941de8aa3e3b19cf1f9

query II rowsort
SELECT ALL + + 42 AS col0, + 1 * - 78 AS col1 FROM tab2 AS cor0
----
42
-78
42
-78
42
-78

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1535
SELECT ALL + + COUNT ( * ) col0 FROM tab0 AS cor0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1537
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 / 21 * + - CAST( + col1 AS SIGNED ) IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1537
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 / 21 * + - CAST ( + col1 AS INTEGER ) IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col2, col1 * 29 FROM tab1 AS cor0
----
14
406
47
1363
5
145

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 / col2 IS NOT NULL
----

query I rowsort
SELECT ALL 98 * + - 6 * - - 30 * 21 FROM tab0
----
-370440
-370440
-370440

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - COUNT( * ) + + - 58 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-1541
SELECT - COUNT ( * ) + + - 58 FROM tab1
----
-61

query II rowsort
SELECT + - 64 - col2 AS col0, col0 FROM tab1 WHERE NOT ( NULL <= ( + + 41 ) * + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT DISTINCT - MIN( - 42 ) AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT - MIN ( - 42 ) AS col1 FROM tab0
----
42

query I rowsort
SELECT DISTINCT - col2 * - + col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT DISTINCT - ( - + COUNT( * ) ) + - - 42 AS col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT - ( - + COUNT ( * ) ) + - - 42 AS col1 FROM tab2 AS cor0
----
45

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1547
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 90 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1547
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 90 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1548
SELECT DISTINCT + col2 + + CAST( - col2 AS SIGNED ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1548
SELECT DISTINCT + col2 + + CAST ( - col2 AS INTEGER ) col2 FROM tab0
----
0

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

query I rowsort
SELECT ALL + 99 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 36 ) - - 15 col1 FROM tab0
----
51
51
51

query I rowsort
SELECT + - 9 - - col0 * col0 AS col2 FROM tab2 AS cor0
----
2107
4087
5616

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col1
----

query I rowsort
SELECT + 68 AS col0 FROM tab2 AS cor0 WHERE + 28 IS NULL
----

query I rowsort
SELECT + - col1 + + - col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 * + - col1 - col1 + ( - col0 ) col2 FROM tab1 AS cor0
----
-1924
-280
-597

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 26 * + 13 < NULL
----

query I rowsort
SELECT ALL + col1 * 87 FROM tab1 AS cor0
----
1218
4089
435

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT + + col0 DIV 11 + - col0 FROM tab1 cor0
----
-47
-78
-83

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT + + col0 / 11 + - col0 FROM tab1 cor0
----
-47
-78
-83

query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) FROM tab2 cor0
----
-17
-23
-24

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT ALL - - CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL - - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT DISTINCT - COUNT( DISTINCT 15 ) - + - 12 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT - COUNT ( DISTINCT 15 ) - + - 12 FROM tab0
----
11

query I rowsort
SELECT DISTINCT 5 + col2 * col2 AS col1 FROM tab0
----
105
2214
9806

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT ALL col1 * - - col0 - - col2 DIV + col2 AS col0 FROM tab2
----
2347
4929
5026

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL col1 * - - col0 - - col2 / + col2 AS col0 FROM tab2
----
2347
4929
5026

query I rowsort
SELECT DISTINCT - ( - col0 ) * + - col0 - + + 13 FROM tab2
----
-2129
-4109
-5638

query I rowsort
SELECT - col2 * 22 * - - col0 AS col1 FROM tab2
----
-23276
-56320
-95700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1569
SELECT DISTINCT + 50 * - CAST( NULL AS SIGNED ) * col0 col2, col1 * - 93 AS col2 FROM tab0 AS cor0
----
NULL
-1953
NULL
-7533
NULL
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1569
SELECT DISTINCT + 50 * - CAST ( NULL AS INTEGER ) * col0 col2, col1 * - 93 AS col2 FROM tab0 AS cor0
----
NULL
-1953
NULL
-7533
NULL
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1571
SELECT ALL + + COUNT( * ) DIV ( - COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + + COUNT ( * ) / ( - COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 * col2 col1 FROM tab0
----
-1128
-2376
-240

query I rowsort
SELECT ALL col0 * - - col2 AS col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT - MIN( DISTINCT - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1574
SELECT - MIN ( DISTINCT - col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT + COUNT( * ) * - MIN( DISTINCT + col0 ) AS col1 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-1575
SELECT + COUNT ( * ) * - MIN ( DISTINCT + col0 ) AS col1 FROM tab2
----
-138

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1577
SELECT 18 DIV - col1 AS col0 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1577
SELECT 18 / - col1 AS col0 FROM tab1
----
-1
-3
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 12 <> NULL
----

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

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

query I rowsort
SELECT col1 * + col0 + - 89 FROM tab0 AS cor0
----
1126
1738
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT 66 + - + COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1581
SELECT 66 + - + COUNT ( * ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT - + col2 + - + col2 + - + col1 FROM tab0 cor0
----
-175
-199
-41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > col1
----

query I rowsort
SELECT col1 + - 61 AS col0 FROM tab0
----
-40
-60
20

query I rowsort
SELECT - 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 41 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1588
SELECT - + ( col0 ) + - 28 FROM tab2 AS cor0 WHERE + CAST( + col0 AS SIGNED ) IS NOT NULL
----
-103
-74
-92

skipif mysql # not compatible
query I rowsort label-1588
SELECT - + ( col0 ) + - 28 FROM tab2 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) IS NOT NULL
----
-103
-74
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL SUM( DISTINCT + 26 ) AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL SUM ( DISTINCT + 26 ) AS col1 FROM tab2 AS cor0
----
26

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT COUNT( * ) - + 11 FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1593
SELECT COUNT ( * ) - + 11 FROM tab0 cor0
----
-8

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

query I rowsort
SELECT DISTINCT + col1 - + - 48 AS col0 FROM tab2
----
115
125
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1596
SELECT ALL + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT + 95 - - col1 + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + 55 * + col0 AS col0 FROM tab1
----
2805
4675
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT + - COUNT( * ) FROM tab0 WHERE NOT NULL > - 17
----
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT + - COUNT ( * ) FROM tab0 WHERE NOT NULL > - 17
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE ( NULL IS NULL )
----
59
68
96

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

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT + col1, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, 99 AS col0 FROM tab0 AS cor0
----
10
99
47
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT - + MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1604
SELECT - + MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-1605
SELECT DISTINCT + + 7 DIV - col0 AS col2, ( + - col1 ) FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

skipif mysql # not compatible
query II rowsort label-1605
SELECT DISTINCT + + 7 / - col0 AS col2, ( + - col1 ) FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

query II rowsort
SELECT DISTINCT - + col1 + + - col0 * + col2 + + + col1 * - col0 AS col1, col1 * - col2 + + 96 * - col2 FROM tab1 cor0 WHERE + col0 - - + col1 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL + 95 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
95
95
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1608
SELECT DISTINCT + 5 + + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT + 5 + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
2

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND + - col1 * + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1612
SELECT ALL col1 + ( - CAST( NULL AS DECIMAL ) ) - + col1 * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 * - - 84 + - col2 FROM tab2
----
1909
3320
4814

onlyif mysql # aggregate syntax: 
query II rowsort label-1614
SELECT DISTINCT COUNT( * ), 34 AS col1 FROM tab2
----
3
34

skipif mysql # not compatible
query II rowsort label-1614
SELECT DISTINCT COUNT ( * ), 34 AS col1 FROM tab2
----
3
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT col2 + col1 * - ( col0 ) DIV - + col0 + col2 AS col2 FROM tab1
----
123
183
206

skipif mysql # not compatible
query I rowsort label-1615
SELECT col2 + col1 * - ( col0 ) / - + col0 + col2 AS col2 FROM tab1
----
123
183
206

query I rowsort
SELECT DISTINCT - col1 * col0 * + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT - MAX( col1 ) col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1617
SELECT - MAX ( col1 ) col1 FROM tab0 AS cor0
----
-81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1618
SELECT SUM ( - - col0 ) col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL 73 * + + col1 + + col1 + - - 30 FROM tab2 AS cor0
----
3804
4988
5728

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT AVG ( + + 2 ) FROM tab1 WHERE ( + col1 ) IS NULL
----
NULL

query I rowsort
SELECT + - col2 * col1 + - 31 - col2 * 78 * col2 FROM tab1 AS cor0
----
-271844
-363899
-720223

query I rowsort
SELECT + col0 + + + 12 FROM tab0 AS cor0
----
109
27
99

query I rowsort
SELECT - 79 FROM tab0 AS cor0 WHERE 71 IS NULL
----

query I rowsort
SELECT - col0 + ( + col1 ) AS col0 FROM tab2 cor0
----
-8
13
5

query II rowsort
SELECT DISTINCT - col2, + col0 AS col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * - 66 col0 FROM tab1
----
792
792
792

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1630
SELECT + 4 AS col1, MIN( col2 ) * - CAST( + - 10 AS SIGNED ) AS col0 FROM tab1 WHERE NOT 49 + col0 IS NULL
----
4
590

skipif mysql # not compatible
query II rowsort label-1630
SELECT + 4 AS col1, MIN ( col2 ) * - CAST ( + - 10 AS INTEGER ) AS col0 FROM tab1 WHERE NOT 49 + col0 IS NULL
----
4
590

query I rowsort
SELECT ALL ( + col1 ) * + 34 FROM tab0
----
2754
34
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT 45 * SUM( col1 ) FROM tab2
----
8775

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT 45 * SUM ( col1 ) FROM tab2
----
8775

query I rowsort
SELECT col2 * + 97 AS col0 FROM tab1
----
5723
6596
9312

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1636
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > + col2 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1636
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > + col2 - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 3 * 16 + - col1 + col2 + col1 * col1 AS col1 FROM tab0 WHERE - + 95 * col2 * col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT - col0 DIV 86 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1639
SELECT - col0 / 86 FROM tab0
----
-1
-1
0

query I rowsort
SELECT ALL + 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - MIN( DISTINCT + 65 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1641
SELECT - MIN ( DISTINCT + 65 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT - MAX( DISTINCT col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1642
SELECT - MAX ( DISTINCT col1 ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT - + ( + 90 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-1644
SELECT ALL + col0 AS col2, - col0 DIV - col2 AS col2 FROM tab2
----
46
2
64
1
75
1

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL + col0 AS col2, - col0 / - col2 AS col2 FROM tab2
----
46
2
64
1
75
1

query II rowsort
SELECT col2 + + col0 * 72 AS col2, - col1 AS col0 FROM tab2 cor0
----
3335
-51
4648
-77
5458
-67

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE NOT + col0 < NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, 66 + + 49 AS col1 FROM tab1 AS cor0
----
51
115
85
115
91
115

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

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

query I rowsort
SELECT ALL col0 * - 27 + - col1 FROM tab2
----
-1293
-1805
-2092

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT - COUNT( * ) * - 40 col0 FROM tab0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1651
SELECT - COUNT ( * ) * - 40 col0 FROM tab0
----
120

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

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

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab0
----
-2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col0 ) col1, col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT - + ( + - col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + col1 + + col0 AS col1 FROM tab0 cor0 WHERE col1 + col1 <> NULL
----

query I rowsort
SELECT ALL + 44 + - - ( - col2 ) - - col1 + col0 * + + col0 FROM tab2 AS cor0
----
2188
4177
5678

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT col1 DIV - - col2 AS col0 FROM tab0 AS cor0
----
0
1
2

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

query I rowsort
SELECT + + 25 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT COUNT( 46 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1661
SELECT COUNT ( 46 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 47 * col1 FROM tab2 cor0
----
2397
3149
3619

onlyif mysql # DIV for integer division: 
query I rowsort label-1663
SELECT ( + 7 ) DIV ( - ( + 13 ) ) + 49 AS col0 FROM tab1 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-1663
SELECT ( + 7 ) / ( - ( + 13 ) ) + 49 AS col0 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT + 88 * - - col2 AS col0 FROM tab0
----
4136
8712
880

query I rowsort
SELECT ALL - col2 * + 7 AS col2 FROM tab1
----
-413
-476
-672

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL MAX( ALL - - ( - col1 ) ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL MAX ( ALL - - ( - col1 ) ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT ALL - col2 + - 25 FROM tab2 WHERE NULL IN ( + 39 * + ( - 76 ) + 13, 45 / col1 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL + COUNT( ALL col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL + COUNT ( ALL col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1672
SELECT + 17, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
NULL
17
NULL
17
NULL

skipif mysql # not compatible
query II rowsort label-1672
SELECT + 17, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
NULL
17
NULL
17
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 18 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT - SUM( ALL + 42 ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-1674
SELECT - SUM ( ALL + 42 ) FROM tab2 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT DISTINCT 27 * - COUNT( * ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT 27 * - COUNT ( * ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT ALL + 56 * + 35 * + - col1 * + - col1 FROM tab2
----
11620840
5097960
8798440

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( 7 * - 25, col2 * - col0, - 10 )
----

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

query I rowsort
SELECT DISTINCT 11 * + col0 + + 73 + + + 99 AS col1 FROM tab1 AS cor0
----
1107
1173
733

query II rowsort
SELECT - col2 * + 70, 22 AS col1 FROM tab0 AS cor0
----
-3290
22
-6930
22
-700
22

query I rowsort
SELECT ALL + + 14 + col2 - + col1 FROM tab0 AS cor0
----
-20
112
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 > NULL
----

query II rowsort
SELECT + col1 + - col2, col1 AS col0 FROM tab2 AS cor0
----
28
51
37
77
9
67

query III rowsort
SELECT * FROM tab0 cor0 WHERE 10 - - 99 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT DISTINCT + + ( COUNT( * ) ) + + 77 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT + + ( COUNT ( * ) ) + + 77 FROM tab2 AS cor0
----
80

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

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL + - COUNT( * ) + + 14 AS col2 FROM tab2 WHERE NULL IS NULL
----
11

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL + - COUNT ( * ) + + 14 AS col2 FROM tab2 WHERE NULL IS NULL
----
11

query I rowsort
SELECT ALL col1 + - col0 + + ( + col1 ) AS col2 FROM tab2
----
56
59
90

query I rowsort
SELECT 30 * - col2 FROM tab0
----
-1410
-2970
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1692
SELECT DISTINCT + 45 * + - col2 - - CAST( - 82 AS SIGNED ) FROM tab1
----
-2737
-3142
-4402

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT + 45 * + - col2 - - CAST ( - 82 AS INTEGER ) FROM tab1
----
-2737
-3142
-4402

query I rowsort
SELECT ALL 87 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT DISTINCT - col2 DIV 14 col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1694
SELECT DISTINCT - col2 / 14 col2 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT DISTINCT - col1 * 94 * + col1 + 99 FROM tab0 AS cor0
----
-41355
-616635
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT 75 * + + COUNT( * ) FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-1696
SELECT 75 * + + COUNT ( * ) FROM tab1 AS cor0
----
225

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT SUM( + ( + + col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1699
SELECT SUM ( + ( + + col2 ) ) FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 40 col1 FROM tab2 cor0
----
-40
-40
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col0, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT - 16 * - SUM( DISTINCT - + col0 ) * + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9549

skipif mysql # not compatible
query I rowsort label-1702
SELECT - 16 * - SUM ( DISTINCT - + col0 ) * + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9549

query II rowsort
SELECT + col2 * + 34 * + - 78 AS col2, + col1 AS col0 FROM tab0
----
-124644
81
-262548
1
-26520
21

query I rowsort
SELECT + 70 * + col0 AS col1 FROM tab1
----
3570
5950
6370

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

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

query I rowsort
SELECT - - col2 + col0 FROM tab1 WHERE NOT + 97 > - + 72 + col2 - col1 * - + col1 + + col2
----
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT + col1 * col2 * col2 * + - CAST( - col0 AS SIGNED ) col2 FROM tab1
----
1479425
19776848
6580224

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1707
SELECT + col1 * col2 * col2 * + - CAST ( - col0 AS INTEGER ) col2 FROM tab1
----
1479425
19776848
6580224

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT MAX( + 24 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-1708
SELECT MAX ( + 24 ) FROM tab2
----
24

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

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) FROM tab0
----
-3

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

query II rowsort
SELECT DISTINCT - - 62 AS col1, + ( - + col1 ) - + + ( 90 ) FROM tab0 AS cor0
----
62
-111
62
-171
62
-91

query I rowsort
SELECT col0 * + + col1 + + col1 + col1 AS col1 FROM tab1
----
435
4371
742

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 < 42 * ( - - 46 ) + + 78 + + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0, - col1 - - col0 FROM tab1 AS cor0
----
51
37
85
80
91
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT DISTINCT - COUNT( ALL + 15 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT - COUNT ( ALL + 15 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + 50 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
50
50
50

query I rowsort
SELECT DISTINCT + - 43 * - col1 FROM tab1 AS cor0
----
2021
215
602

query I rowsort
SELECT DISTINCT - 39 + - + col2 AS col0 FROM tab1 AS cor0
----
-107
-135
-98

onlyif mysql # DIV for integer division: 
query III rowsort label-1719
SELECT + 37 col1, + col0 * 55 - + 18, - col1 DIV - 76 col1 FROM tab1 AS cor0
----
9 values hashing to 91069c3d8d223d542257dbb5e454207c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1719
SELECT + 37 col1, + col0 * 55 - + 18, - col1 / - 76 col1 FROM tab1 AS cor0
----
9 values hashing to 91069c3d8d223d542257dbb5e454207c

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - + ( - 3 ) + + + 55 + - - col2 / + - ( + + col2 ) NOT BETWEEN NULL AND + 54 * - 96 )
----

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

query I rowsort
SELECT 42 * col2 FROM tab0 WHERE 80 - col0 + - ( - 4 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + 83 FROM tab2
----
106
123
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT + ( - COUNT( * ) ) * + - COUNT( * ) col1 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1724
SELECT DISTINCT + ( - COUNT ( * ) ) * + - COUNT ( * ) col1 FROM tab0
----
9

query II rowsort
SELECT DISTINCT + col0 - - col2, + col2 + 29 AS col1 FROM tab0
----
196
128
62
76
97
39

query II rowsort
SELECT ALL 56 * + col0 AS col0, col1 * + col0 FROM tab2
----
2576
2346
3584
4928
4200
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-1727
SELECT DISTINCT 95 + + 58, COUNT( * ) AS col2 FROM tab0
----
153
3

skipif mysql # not compatible
query II rowsort label-1727
SELECT DISTINCT 95 + + 58, COUNT ( * ) AS col2 FROM tab0
----
153
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT 67 * - COUNT( * ) FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT 67 * - COUNT ( * ) FROM tab1 AS cor0
----
-201

query I rowsort
SELECT ALL col1 * - col0 * + 4 - + - 4 AS col2 FROM tab1 AS cor0
----
-1696
-17104
-2852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 7, + col0 col0 FROM tab0
----
-7
15
-7
87
-7
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1731
SELECT - COUNT ( ALL + col0 ) col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - COUNT( * ) FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1732
SELECT - COUNT ( * ) FROM tab0, tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2 AS col2, col1 - - col0 col0 FROM tab2 AS cor0
----
2
141
2
142
2
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1735
SELECT DISTINCT 99 DIV COUNT( * ) col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1735
SELECT DISTINCT 99 / COUNT ( * ) col1 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL - + MIN( + - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL - + MIN ( + - col1 ) FROM tab0 AS cor0
----
81

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

query I rowsort
SELECT + col1 * + - col0 - - - 63 + + col1 AS col1 FROM tab2 AS cor0
----
-2358
-4914
-5021

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1739
SELECT + ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1741
SELECT + + 56 AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
56
3

skipif mysql # not compatible
query II rowsort label-1741
SELECT + + 56 AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
56
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT CAST( + - col2 AS SIGNED ) * - col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1742
SELECT CAST ( + - col2 AS INTEGER ) * - col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + 96 * + + col1 * - + col0 FROM tab2
----
-225216
-473088
-482400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1744
SELECT col1 * col2 col1, + CAST( - - col2 AS SIGNED ) AS col0 FROM tab0
----
210
10
3807
47
99
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1744
SELECT col1 * col2 col1, + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab0
----
210
10
3807
47
99
99

query II rowsort
SELECT ALL col0 * + col0 * col0 * + col2 AS col2, ( + + 34 ) FROM tab0
----
158625
34
6585030
34
90354627
34

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - 23 ) NOT BETWEEN + col2 * col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( + col2 ) * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT MAX( - ( - 5 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT MAX ( - ( - 5 ) ) AS col1 FROM tab1
----
5

query I rowsort
SELECT DISTINCT + + 67 AS col2 FROM tab1 cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL + COUNT( * ) * 18 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL + COUNT ( * ) * 18 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT DISTINCT - 2 + - - MAX( + - 93 ) FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT - 2 + - - MAX ( + - 93 ) FROM tab1 AS cor0
----
-95

query I rowsort
SELECT + 4 AS col0 FROM tab0 WHERE + - col1 * 84 / - 60 IS NULL
----

query I rowsort
SELECT 51 + + + col2 AS col2 FROM tab1 AS cor0
----
110
119
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT - - CAST( - col1 AS SIGNED ) + + + 57 AS col2 FROM tab2 AS cor0
----
-10
-20
6

skipif mysql # not compatible
query I rowsort label-1755
SELECT - - CAST ( - col1 AS INTEGER ) + + + 57 AS col2 FROM tab2 AS cor0
----
-10
-20
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 + + col2 * - + 44 col1 FROM tab0 AS cor0
----
-2018
-390
-4306

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL + COUNT( * ) * - + COUNT( + 28 ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + COUNT ( * ) * - + COUNT ( + 28 ) AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - 27 + - - col0 AS col1 FROM tab1 AS cor0
----
24
58
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL - - COUNT( DISTINCT 29 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL - - COUNT ( DISTINCT 29 ) FROM tab0 AS cor0
----
1

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

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

query I rowsort
SELECT DISTINCT - col1 + + 8 AS col1 FROM tab2 AS cor0
----
-43
-59
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT DISTINCT + ( - COUNT( * ) ) + 84 AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT + ( - COUNT ( * ) ) + 84 AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1763
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col1 FROM tab0 WHERE - col0 * + col0 + - col0 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1763
SELECT DISTINCT - CAST ( NULL AS REAL ) col1 FROM tab0 WHERE - col0 * + col0 + - col0 < NULL
----

query II rowsort
SELECT ALL + col1 + - - ( - ( + col1 ) ) * - col2 * col1 AS col1, col2 FROM tab0
----
100
99
308448
47
4431
10

query III rowsort
SELECT * FROM tab2 WHERE - + col2 NOT BETWEEN 5 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + - 14 * + col0 FROM tab2
----
-621
-856
-992

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + + 63
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1769
SELECT ALL + - 39 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
-39
3

skipif mysql # not compatible
query II rowsort label-1769
SELECT ALL + - 39 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
-39
3

query II rowsort
SELECT - + 47 * 65, col0 AS col0 FROM tab1 AS cor0
----
-3055
51
-3055
85
-3055
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT DISTINCT + 7 * COUNT( * ) FROM tab2 cor0
----
21

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT + 7 * COUNT ( * ) FROM tab2 cor0
----
21

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

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

query II rowsort
SELECT ALL col0 AS col0, - col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col1
----

query I rowsort
SELECT + ( + col1 ) / col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT ALL col0, col2 * col0 FROM tab0
----
15
705
87
870
97
9603

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 84 / + col1 + - - 47 + + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ( COUNT( DISTINCT + ( - - col0 ) ) ) * + + 51 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-1777
SELECT ( COUNT ( DISTINCT + ( - - col0 ) ) ) * + + 51 FROM tab0
----
153

query I rowsort
SELECT - 89 FROM tab1 WHERE NOT + col0 * col0 + col1 BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL col0 * ( col2 ), col0, + col1 AS col0 FROM tab2
----
9 values hashing to bb2cc4b678f43cce0f375b3d04ddffab

query I rowsort
SELECT 96 * - + ( col1 ) AS col0 FROM tab2
----
-4896
-6432
-7392

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1781
SELECT + col0 AS col0 FROM tab2 WHERE NOT NULL >= ( - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1781
SELECT + col0 AS col0 FROM tab2 WHERE NOT NULL >= ( - + CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT ALL + 56 DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL + 56 / + col0 FROM tab1
----
0
0
1

query II rowsort
SELECT ALL - 11, + 18 AS col2 FROM tab1
----
-11
18
-11
18
-11
18

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

skipif mysql # not compatible
query II rowsort label-1784
SELECT - COUNT ( * ), + ( + COUNT ( * ) ) AS col0 FROM tab0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1785
SELECT ALL 44 AS col2, + CAST( - 88 AS SIGNED ) col2 FROM tab2 AS cor0
----
44
-88
44
-88
44
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1785
SELECT ALL 44 AS col2, + CAST ( - 88 AS INTEGER ) col2 FROM tab2 AS cor0
----
44
-88
44
-88
44
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * + col1 + 99 col1 FROM tab2 AS cor0
----
4281
5593
6413

query I rowsort
SELECT - col0 + + 32 FROM tab1 AS cor0
----
-19
-53
-59

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + 20 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT 90 + + col2 + col0 FROM tab1
----
234
237
249

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT COUNT( + 38 ) AS col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1791
SELECT COUNT ( + 38 ) AS col1 FROM tab0, tab0 AS cor0
----
9

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1794
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1794
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT COUNT( * ) - - COUNT( ALL - - col2 ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1796
SELECT COUNT ( * ) - - COUNT ( ALL - - col2 ) AS col0 FROM tab0
----
6

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

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL col0 + + col2 / col0 + - + col0 FROM tab1
----
0
0
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT - 29 - + + col0 + - col0 DIV + - col2 + + col2 AS col0 FROM tab0
----
-27
-98
3

skipif mysql # not compatible
query I rowsort label-1799
SELECT - 29 - + + col0 + - col0 / + - col2 + + col2 AS col0 FROM tab0
----
-27
-98
3

query I rowsort
SELECT DISTINCT - ( + - col0 ) + - col2 * col0 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT - - col2 * - - 66 / + col2 AS col0 FROM tab1 WHERE + 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT COUNT( * ) - ( + - COUNT( - col1 ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT COUNT ( * ) - ( + - COUNT ( - col1 ) ) FROM tab2
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE - 22 BETWEEN NULL AND col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT - 42 * + - COUNT( * ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1805
SELECT - 42 * + - COUNT ( * ) FROM tab0 AS cor0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 42 col2, col0 + + col1 + + + col1 * + col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( col0 ) - + col0 NOT BETWEEN NULL AND ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1807
SELECT - - COUNT( * ) AS col2, 60 FROM tab0 AS cor0
----
3
60

skipif mysql # not compatible
query II rowsort label-1807
SELECT - - COUNT ( * ) AS col2, 60 FROM tab0 AS cor0
----
3
60

query I rowsort
SELECT DISTINCT + 60 * + col1 FROM tab1 AS cor0
----
2820
300
840

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1811
SELECT DISTINCT 90 * SUM( + col1 ) DIV + 25 AS col0 FROM tab0
----
370

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT 90 * SUM ( + col1 ) / + 25 AS col0 FROM tab0
----
370

query I rowsort
SELECT DISTINCT + ( - 31 ) FROM tab2
----
-31

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

query I rowsort
SELECT + - ( - col0 ) AS col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL + + 40 AS col2 FROM tab1 AS cor0 WHERE col2 / - col1 IS NOT NULL
----
40
40
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT - MIN( col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1817
SELECT - MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT - + SUM( col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1818
SELECT - + SUM ( col2 ) FROM tab2 AS cor0
----
-121

query II rowsort
SELECT col1, col2 FROM tab0 cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL 65 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 AS col0, col0 col2 FROM tab2 AS cor0
----
57
46
57
64
57
75

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL col1 * col1 / + col2 * - + col1 + + - col0 + 77 FROM tab1 WHERE NOT ( NOT ( NOT - 99 NOT IN ( + col0, 32 ) ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1826
SELECT DISTINCT col0 DIV - col1 AS col1, - col1 AS col0 FROM tab0
----
-4
-21
-97
-1
0
-81

skipif mysql # not compatible
query II rowsort label-1826
SELECT DISTINCT col0 / - col1 AS col1, - col1 AS col0 FROM tab0
----
-4
-21
-97
-1
0
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT MAX( ALL - 99 ) + - - SUM( ALL + col0 ) FROM tab1
----
128

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT MAX ( ALL - 99 ) + - - SUM ( ALL + col0 ) FROM tab1
----
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - + 27 col2, + 97 FROM tab0
----
-126
97
-37
97
-74
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1829
SELECT + col1 + CAST( + col2 AS SIGNED ) - + + 11 * 21 FROM tab2
----
-106
-114
-157

skipif mysql # not compatible
query I rowsort label-1829
SELECT + col1 + CAST ( + col2 AS INTEGER ) - + + 11 * 21 FROM tab2
----
-106
-114
-157

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT - + col2 DIV col0 - - + 0 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL 94 + + col2 AS col1 FROM tab2
----
117
134
152

query I rowsort
SELECT col2 * ( + 56 ) FROM tab1
----
3304
3808
5376

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + + - col2 col1 FROM tab1
----
-23
14
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 + - + col1 col2 FROM tab0 cor0 WHERE NULL < 44 + 70 + 38
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT + CAST( + - 80 AS SIGNED ) + + + col2 + + + 71 * col0 * - col0 + col0 FROM tab0 AS cor0
----
-15993
-537382
-667923

skipif mysql # not compatible
query I rowsort label-1838
SELECT + CAST ( + - 80 AS INTEGER ) + + + col2 + + + 71 * col0 * - col0 + col0 FROM tab0 AS cor0
----
-15993
-537382
-667923

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 8 < ( - 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT + SUM( ALL + col2 ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT + SUM ( ALL + col2 ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT - 72 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1841
SELECT - 72 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-1842
SELECT ALL COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1842
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab1 cor0
----
3
3

query II rowsort
SELECT DISTINCT col2, - 32 * 47 FROM tab1 AS cor0
----
59
-1504
68
-1504
96
-1504

query I rowsort
SELECT ALL - ( col2 ) * + - 86 + + + col1 FROM tab0
----
4123
8515
881

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT DISTINCT - 63 + + - SUM( DISTINCT + 56 ) AS col0 FROM tab2
----
-119

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - 63 + + - SUM ( DISTINCT + 56 ) AS col0 FROM tab2
----
-119

query I rowsort
SELECT ALL col1 + + 0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col2 FROM tab1 WHERE + col0 = - col1 - - + col2
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1848
SELECT - COUNT ( ALL 75 ), - COUNT ( col1 ) + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) col2 FROM tab2
----
-3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT COUNT( * ) DIV 58 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT COUNT ( * ) / 58 FROM tab2
----
0

query II rowsort
SELECT + ( 93 ) AS col0, - col0 FROM tab1
----
93
-51
93
-85
93
-91

query II rowsort
SELECT - - ( + + 42 ) AS col2, 95 * col0 AS col2 FROM tab0 AS cor0
----
42
1425
42
8265
42
9215

query I rowsort
SELECT - 13 * + col0 * + col1 FROM tab0 AS cor0
----
-1261
-15795
-23751

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 82 NOT BETWEEN NULL AND - - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN + + 50 AND NULL
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT - col1 + + col0 FROM tab1 AS cor0 WHERE NOT + col0 + + 96 > + CAST( NULL AS SIGNED ) * - - col1
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1, col2, - 91, + + col2, + - col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL - SUM( ALL - + 70 ) FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - SUM ( ALL - + 70 ) FROM tab2 AS cor0
----
210

query I rowsort
SELECT DISTINCT 17 + + col1 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
115
1313
1865

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL - 30 + - - COUNT( * ) + + ( - - ( - + COUNT( * ) ) ) col2 FROM tab1
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1861
SELECT ALL - 30 + - - COUNT ( * ) + + ( - - ( - + COUNT ( * ) ) ) col2 FROM tab1
----
-30

query II rowsort
SELECT + col1, 68 * - 15 * + col0 * - ( - 82 ) FROM tab1
----
14
-4265640
47
-7611240
5
-7109400

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

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

query II rowsort
SELECT DISTINCT - 37 AS col2, col0 FROM tab0
----
-37
15
-37
87
-37
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1865
SELECT + 51 * - 46 AS col1, MAX( + col2 ) AS col1 FROM tab0
----
-2346
99

skipif mysql # not compatible
query II rowsort label-1865
SELECT + 51 * - 46 AS col1, MAX ( + col2 ) AS col1 FROM tab0
----
-2346
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT DISTINCT ( + + 54 ) + + - COUNT( * ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT ( + + 54 ) + + - COUNT ( * ) AS col0 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT DISTINCT - 23 * + col2 FROM tab1 WHERE + - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - 23 * + col2 FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT - COUNT( * ) * MIN( DISTINCT - col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-1868
SELECT - COUNT ( * ) * MIN ( DISTINCT - col1 ) FROM tab1
----
141

query I rowsort
SELECT - - col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 29 AS col1, col0 AS col0 FROM tab2
----
29
46
29
64
29
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + col0 * + col2 AS col0 FROM tab2
----
23
1058
40
2560
58
4350

query I rowsort
SELECT DISTINCT - ( + - col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT - + col1 AS col1 FROM tab0 AS cor0 WHERE 87 IS NOT NULL
----
-1
-21
-81

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

query I rowsort
SELECT + 48 * - col1 + - + col0 FROM tab0 AS cor0
----
-1095
-145
-3903

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + + col2 * - - ( + - col0 ) AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 82 BETWEEN - 84 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT ALL 28 DIV + 74 col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1879
SELECT ALL 28 / + 74 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 35 - - col0 AS col0 FROM tab1 AS cor0
----
120
126
86

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

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

query I rowsort
SELECT 47 * - col2 * + + ( + + 91 ) AS col0 FROM tab1 AS cor0
----
-252343
-290836
-410592

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT - MIN( + 58 ) AS col0 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1884
SELECT - MIN ( + 58 ) AS col0 FROM tab0 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT + SUM( - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-1885
SELECT + SUM ( - col0 ) AS col1 FROM tab0
----
-199

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

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

query II rowsort
SELECT DISTINCT col1 AS col0, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT col0 / + 93 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 / + 93 IS NULL
----
3

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col1 * 5 * - - col1 + + col1 IS NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1891
SELECT + 4 / + COUNT ( * ) AS col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + 78 * - col2 AS col1 FROM tab1
----
-4602
-5304
-7488

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

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL + MAX ( - ( - col0 ) ) AS col2 FROM tab1
----
91

query I rowsort
SELECT - col0 * + col0 * + - 86 * - col2 FROM tab2
----
-14090240
-28057500
-4185448

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1895
SELECT ALL * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1895
SELECT ALL * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col0 FROM tab1 AS cor0 WHERE + 58 BETWEEN - 30 AND NULL
----

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

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

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

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

query II rowsort
SELECT DISTINCT + + 57 AS col0, col2 FROM tab1 AS cor0
----
57
59
57
68
57
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1901
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1901
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT + ( + 46 ) FROM tab0
----
46
46
46

query I rowsort
SELECT DISTINCT + 37 + + col1 FROM tab1
----
42
51
84

query I rowsort
SELECT col1 * - col2 + - col2 AS col1 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT - ( - 41 ) FROM tab2
----
41
41
41

query I rowsort
SELECT + col0 * - col1 + + 97 AS col0 FROM tab1
----
-328
-4180
-617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT + 87 AS col2 FROM tab1 WHERE col0 BETWEEN + CAST( NULL AS SIGNED ) AND col0 * col0 + col0
----

skipif mysql # not compatible
query I rowsort label-1907
SELECT + 87 AS col2 FROM tab1 WHERE col0 BETWEEN + CAST ( NULL AS INTEGER ) AND col0 * col0 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col0 + col0 NOT BETWEEN ( 55 ) AND - col0
----

query I rowsort
SELECT - ( col2 ) + - col0 * + col2 AS col2 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE 32 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1911
SELECT ALL - CAST( col0 AS SIGNED ) + - 44 FROM tab1
----
-129
-135
-95

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL - CAST ( col0 AS INTEGER ) + - 44 FROM tab1
----
-129
-135
-95

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1913
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT - CAST ( NULL AS REAL ) * col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + MIN( 97 ) FROM tab1 WHERE - 48 BETWEEN ( col0 ) AND - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT + MIN ( 97 ) FROM tab1 WHERE - 48 BETWEEN ( col0 ) AND - 28
----
NULL

query I rowsort
SELECT col2 * + 71 AS col2 FROM tab0
----
3337
7029
710

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT + ( COUNT( * ) ) * + 22 + + COUNT( * ) AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-1916
SELECT + ( COUNT ( * ) ) * + 22 + + COUNT ( * ) AS col1 FROM tab0
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + 8 * 60 + - col2 FROM tab2
----
422
440
457

query I rowsort
SELECT - col0 * 27 + + 69 AS col2 FROM tab1
----
-1308
-2226
-2388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT DISTINCT - col1 * + 27 + - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 WHERE NULL NOT IN ( 9 )
----

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT - col1 * + 27 + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 WHERE NULL NOT IN ( 9 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT ( - 61 ) AS col2 FROM tab2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT DISTINCT - COUNT( * ) * 64 AS col0 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - COUNT ( * ) * 64 AS col0 FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT - 81 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT - 81 IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1927
SELECT CAST( 88 AS SIGNED ) DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1927
SELECT CAST ( 88 AS INTEGER ) / - col1 FROM tab2 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT col0 - + ( - 13 ) FROM tab0
----
100
110
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT DISTINCT col1 - + 28 DIV - col0 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT col1 - + 28 / - col0 AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + 89 * 44 FROM tab0
----
3916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 18 col1 FROM tab2 AS cor0 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT - + col1 * 83 AS col1 FROM tab2 AS cor0
----
-4233
-5561
-6391

query I rowsort
SELECT DISTINCT - 67 * 1 AS col1 FROM tab0 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1935
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( + 78 + + col1 ) BETWEEN 65 AND 78
----

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( + 78 + + col1 ) BETWEEN 65 AND 78
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + 8 + - 64 )
----

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

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

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT IN ( 69 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT - SUM( ALL - col2 ) * CAST( COUNT( * ) AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT - SUM ( ALL - col2 ) * CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT 87 DIV + + col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1941
SELECT 87 / + + col0 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT - col1 * + col2 * - 52 FROM tab2
----
160160
202072
60996

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + col0 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + col0 + col1 IS NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 / - col0 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 * col0 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) BETWEEN ( + 53 + - col0 ) AND ( NULL )
----

query I rowsort
SELECT 4 * 46 + col1 * - ( 48 ) FROM tab1 AS cor0
----
-2072
-488
-56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 3 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col1 FROM tab0 AS cor0 WHERE NOT 69 NOT IN ( - 17 * - col0 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1951
SELECT DISTINCT - 73, - col1 DIV ( ( - 81 ) ) AS col1 FROM tab2
----
-73
0

skipif mysql # not compatible
query II rowsort label-1951
SELECT DISTINCT - 73, - col1 / ( ( - 81 ) ) AS col1 FROM tab2
----
-73
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT DISTINCT - MIN( ALL - 33 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT - MIN ( ALL - 33 ) FROM tab2
----
33

query I rowsort
SELECT - col1 + + + 78 AS col2 FROM tab2
----
1
11
27

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 11 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT DISTINCT col0 DIV 75 DIV - + col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT col0 / 75 / - + col0 AS col2 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) BETWEEN 12 * ( 19 ) AND 63 / - 12 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT - 93 + + 45 * - - 23 FROM tab1 AS cor0
----
942

query I rowsort
SELECT 59 * col1 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL 5 + col1 FROM tab0 AS cor0
----
26
6
86

query I rowsort
SELECT ALL col1 * 95 + + + col2 FROM tab2 AS cor0
----
4868
6423
7355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1963
SELECT DISTINCT + 67 + - ( - 3 ) DIV + + MIN( - 99 ) col2 FROM tab1
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1963
SELECT DISTINCT + 67 + - ( - 3 ) / + + MIN ( - 99 ) col2 FROM tab1
----
67

query I rowsort
SELECT col1 / 67 FROM tab1 WHERE ( + col0 * - col0 ) BETWEEN ( - col2 / col1 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN + + col1 AND - 28 * - 94
----
0

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN + + col1 AND - 28 * - 94
----
0

query I rowsort
SELECT - col1 + - col1 FROM tab1 WHERE ( NULL ) IN ( 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL + SUM( - col2 ) * ( - ( MAX( 8 ) ) ) AS col0 FROM tab1
----
1784

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL + SUM ( - col2 ) * ( - ( MAX ( 8 ) ) ) AS col0 FROM tab1
----
1784

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

query I rowsort
SELECT + 47 + + + col2 AS col2 FROM tab2 AS cor0
----
105
70
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 + 60 + col2 * + col2 > col0 * + col2
----
51
14
96

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

query I rowsort
SELECT DISTINCT 37 + - - 57 * - 91 AS col1 FROM tab0 AS cor0
----
-5150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col0 FROM tab2 WHERE col0 + col2 <> - 38 + col0
----
-24
-24
-24

query I rowsort
SELECT + 92 * - col0 AS col1 FROM tab2
----
-4232
-5888
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT - MAX( ALL + col0 ) FROM tab0 WHERE ( NULL ) <> - col0 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT - MAX ( ALL + col0 ) FROM tab0 WHERE ( NULL ) <> - col0 * col0
----
NULL

query I rowsort
SELECT ( 31 ) AS col0 FROM tab0
----
31
31
31

query I rowsort
SELECT ALL + ( + 63 ) - + col0 FROM tab0
----
-24
-34
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT DISTINCT + 87 DIV - 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT + 87 / - 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT 51 AS col1 FROM tab2 WHERE NOT NULL IN ( col0, - CAST( + - 39 AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-1979
SELECT 51 AS col1 FROM tab2 WHERE NOT NULL IN ( col0, - CAST ( + - 39 AS INTEGER ) * col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL + MAX( + - col1 ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1981
SELECT ALL + MAX ( + - col1 ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + - 42 * - col0 / col0 - 57 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * ( - col1 ) * + col1 * - col0 AS col2 FROM tab1 AS cor0
----
180625
18292729
509796

query I rowsort
SELECT ALL + col1 * - 62 FROM tab1 AS cor0 WHERE col0 * col2 BETWEEN ( - col1 ) AND ( col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col1 <= - ( 96 )
----
85
5
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <> 73 / - col1 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT + + 61 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-1987
SELECT + + 61 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
183

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 + + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT COUNT( + 13 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1990
SELECT COUNT ( + 13 ) col0 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - 3 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1992
SELECT CAST( MIN( ALL ( col2 ) ) AS SIGNED ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1992
SELECT CAST ( MIN ( ALL ( col2 ) ) AS INTEGER ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col2 >= ( + col1 * - - 57 * + 54 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1994
SELECT COUNT( * ) DIV + - 28 * - - ( + 99 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1994
SELECT COUNT ( * ) / + - 28 * - - ( + 99 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT COUNT( * ) * - 89 AS col0 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT COUNT ( * ) * - 89 AS col0 FROM tab2
----
-267

query II rowsort
SELECT DISTINCT ( - - col1 ) * - - col2 + - + col2 AS col0, + col0 + + + col0 AS col1 FROM tab2
----
1150
92
3040
128
3828
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1997
SELECT ALL 31 DIV + COUNT( * ) AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL 31 / + COUNT ( * ) AS col1 FROM tab2
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - col2 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + ( 23 ) * - col1 - col0 = ( col0 * ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT DISTINCT MIN( ALL + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT MIN ( ALL + col0 ) FROM tab0
----
15

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 >= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT col1 * CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2004
SELECT col1 * CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + - col0 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT DISTINCT 35 * - + SUM( CAST( col0 AS SIGNED ) ) AS col2 FROM tab1
----
-7945

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT 35 * - + SUM ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1
----
-7945

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2008
SELECT - CAST( - + 30 AS SIGNED ) AS col0 FROM tab0
----
30
30
30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT ALL - + col2 DIV + - col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
99

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL - + col2 / + - col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
99

query I rowsort
SELECT col0 * - ( + + col1 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + - 66 AS col2 FROM tab2 AS cor0 WHERE + 18 * + - 78 IS NULL
----

query I rowsort
SELECT DISTINCT ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * + col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT - - ( - + 57 ) + + + 93 * - ( + 73 ) + + - col2 FROM tab1 AS cor0
----
-6905
-6914
-6942

query II rowsort
SELECT + col2 AS col1, + col2 + - 58 FROM tab2 AS cor0 WHERE col2 + - col1 <> - col0
----
23
-35
40
-18
58
0

query I rowsort
SELECT ( + col0 ) + + - 11 AS col0 FROM tab0 cor0
----
4
76
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND ( ( + + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT MIN( col1 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT MIN ( col1 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
51

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE - 0 * + - col2 + + col2 * + col0 <> + col0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT DISTINCT 86 DIV col1 + col0 AS col2 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT 86 / col1 + col0 AS col2 FROM tab2
----
47
65
76

query III rowsort
SELECT * FROM tab2 WHERE + ( - - col0 ) * - ( - col1 ) >= col0 * - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL MAX( ALL + 28 ) FROM tab1 WHERE ( col2 ) NOT IN ( - 21 )
----
28

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL MAX ( ALL + 28 ) FROM tab1 WHERE ( col2 ) NOT IN ( - 21 )
----
28

query I rowsort
SELECT + + 82 FROM tab0 WHERE - - col0 IS NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT DISTINCT - col2 / + - CAST( NULL AS SIGNED ) + - + CAST( - col1 AS SIGNED ) FROM tab0
----
NULL

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

query I rowsort
SELECT ALL 20 - + + col1 * - col2 AS col2 FROM tab2
----
1193
3100
3906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, ( - - ( 50 ) ) AS col1 FROM tab1
----
51
50
85
50
91
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT - MAX( + + col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2028
SELECT - MAX ( + + col2 ) col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT + + SUM( + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2029
SELECT + + SUM ( + col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT SUM( ALL col2 ) FROM tab2 AS cor0 WHERE NOT ( - col1 + + + col1 ) IS NOT NULL AND NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT SUM ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT ( - col1 + + + col1 ) IS NOT NULL AND NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT DISTINCT COUNT( * ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT COUNT ( * ) FROM tab0, tab0 AS cor0
----
9

query I rowsort
SELECT ALL 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT + 74 * MIN( + 91 ) AS col2 FROM tab1
----
6734

skipif mysql # not compatible
query I rowsort label-2033
SELECT + 74 * MIN ( + 91 ) AS col2 FROM tab1
----
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT + SUM( DISTINCT + ( - + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2034
SELECT + SUM ( DISTINCT + ( - + col0 ) ) FROM tab0
----
-199

query II rowsort
SELECT ALL - - col1 AS col1, + col2 AS col1 FROM tab1 AS cor0 WHERE - col2 / + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 50 * col0 + col1 * col2 FROM tab1 AS cor0
----
-1206
-1354
-3955

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT DISTINCT - 91 * - COUNT( * ) AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT - 91 * - COUNT ( * ) AS col0 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT - COUNT( * ) * + 71 col0 FROM tab2
----
-213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2038
SELECT - COUNT ( * ) * + 71 col0 FROM tab2
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2039
SELECT DISTINCT * FROM tab0 WHERE NOT 27 NOT BETWEEN NULL AND col2 * ( - ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2039
SELECT DISTINCT * FROM tab0 WHERE NOT 27 NOT BETWEEN NULL AND col2 * ( - ( - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT + 74 * - col1 FROM tab0
----
-1554
-5994
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT ALL + 22 * - + CAST( NULL AS SIGNED ) / COUNT( * ) AS col0 FROM tab0
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 + + col0 NOT IN ( - + col2 / - + 71, + col1 + - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2043
SELECT ALL * FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) + - ( - col2 ) + + + col1 + + - 22 + col0 * 83 - - - ( + col1 ) - col0 ) < - 24
----

skipif mysql # not compatible
query III rowsort label-2043
SELECT ALL * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) + - ( - col2 ) + + + col1 + + - 22 + col0 * 83 - - - ( + col1 ) - col0 ) < - 24
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2044
SELECT ( - + ( - 87 ) ) DIV + MAX( 89 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2044
SELECT ( - + ( - 87 ) ) / + MAX ( 89 ) AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col2 ) - + 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 + 4 col1 FROM tab0
----
85
85
85

query I rowsort
SELECT DISTINCT - col0 * - + col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query II rowsort label-2050
SELECT ALL - col1 + - col0 + - col0 DIV + + 81 + 41 * + + col2 AS col1, - ( + + col1 ) + - col2 FROM tab2 AS cor0
----
1499
-117
2236
-125
846
-74

skipif mysql # not compatible
query II rowsort label-2050
SELECT ALL - col1 + - col0 + - col0 / + + 81 + 41 * + + col2 AS col1, - ( + + col1 ) + - col2 FROM tab2 AS cor0
----
1499
-117
2236
-125
846
-74

query I rowsort
SELECT DISTINCT col0 + + - col2 + - + col0 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL col1 + - + 46 * - - 12 FROM tab2 AS cor0
----
-475
-485
-501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2053
SELECT AVG ( CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT AVG ( CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 33 AS col2 FROM tab1 cor0 WHERE NULL IN ( + ( + col0 ) - + col0 + col0 - - ( + + col1 ), 63 )
----

query I rowsort
SELECT - + 88 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT - + 1 + 7 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT - MAX( DISTINCT + col1 ) + - + COUNT( * ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-2058
SELECT - MAX ( DISTINCT + col1 ) + - + COUNT ( * ) FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL + MAX( DISTINCT - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + MAX ( DISTINCT - + col2 ) FROM tab2
----
-23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 46 / - col0 IS NULL
----

query I rowsort
SELECT col1 * 71 FROM tab2
----
3621
4757
5467

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT DISTINCT - + CAST( - 38 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT - + CAST ( - 38 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-2064
SELECT 64 * ( + col2 ), + 54 DIV col1 AS col2 FROM tab0 AS cor0
----
3008
0
6336
54
640
2

skipif mysql # not compatible
query II rowsort label-2064
SELECT 64 * ( + col2 ), + 54 / col1 AS col2 FROM tab0 AS cor0
----
3008
0
6336
54
640
2

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
23
40
58

query I rowsort
SELECT + + 0 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT col2 AS col1, + 2 - - + col0 + + col2 + col2 AS col2 FROM tab0 AS cor0
----
10
109
47
111
99
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT MAX( + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT MAX ( + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT + SUM( + - col0 ) col1 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2069
SELECT DISTINCT + SUM ( + - col0 ) col1 FROM tab2
----
-185

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

query I rowsort
SELECT DISTINCT - - col2 * + 1 AS col1 FROM tab2 WHERE NOT - col1 + + + col0 + col0 >= NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL ( + + COUNT ( col2 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT + col2 + + 27 * - CAST( - + col2 AS SIGNED ) AS col2 FROM tab2
----
1120
1624
644

skipif mysql # not compatible
query I rowsort label-2074
SELECT + col2 + + 27 * - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2
----
1120
1624
644

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT DISTINCT + ( + MAX( ALL - col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT + ( + MAX ( ALL - col2 ) ) FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2076
SELECT ALL + + col0 * - col0 + ( - ( + CAST( - 5 AS SIGNED ) ) ) + 32 DIV - col2 + + col1 col2, col2 FROM tab1 AS cor0
----
-2582
96
-7215
59
-8229
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2076
SELECT ALL + + col0 * - col0 + ( - ( + CAST ( - 5 AS INTEGER ) ) ) + 32 / - col2 + + col1 col2, col2 FROM tab1 AS cor0
----
-2582
96
-7215
59
-8229
68

query I rowsort
SELECT + - col1 + + - col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

query II rowsort
SELECT DISTINCT col2 + - - col2 AS col0, - col1 FROM tab1 AS cor0
----
118
-5
136
-47
192
-14

query I rowsort
SELECT DISTINCT 8 + + - ( col2 ) AS col0 FROM tab2
----
-15
-32
-50

query I rowsort
SELECT DISTINCT + 86 - - col2 FROM tab0 AS cor0
----
133
185
96

query I rowsort
SELECT 9 + + 94 FROM tab0 AS cor0
----
103
103
103

query I rowsort
SELECT DISTINCT + + 91 * col1 AS col1 FROM tab2 AS cor0
----
4641
6097
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-2083
SELECT 44 + + 66 DIV - + col0 AS col1 FROM tab2 AS cor0
----
43
43
44

skipif mysql # not compatible
query I rowsort label-2083
SELECT 44 + + 66 / - + col0 AS col1 FROM tab2 AS cor0
----
43
43
44

query I rowsort
SELECT ALL - 28 * - + 64 AS col1 FROM tab1 AS cor0
----
1792
1792
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT - 31 * - + COUNT( * ) - + 33 FROM tab0 cor0 WHERE NULL IS NULL
----
60

skipif mysql # not compatible
query I rowsort label-2085
SELECT - 31 * - + COUNT ( * ) - + 33 FROM tab0 cor0 WHERE NULL IS NULL
----
60

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-14
-47
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 63 col1 FROM tab1
----
114
148
154

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2090
SELECT 74, + COUNT( * ) AS col1 FROM tab1
----
74
3

skipif mysql # not compatible
query II rowsort label-2090
SELECT 74, + COUNT ( * ) AS col1 FROM tab1
----
74
3

query I rowsort
SELECT DISTINCT 42 - col2 + - + col2 FROM tab2
----
-38
-4
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * 23 col2 FROM tab0
----
-1863
-1863
-1863

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT ALL - ( - col2 ) DIV 87 * - - ( - col1 ) col2 FROM tab1
----
-14
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2093
SELECT ALL - ( - col2 ) / 87 * - - ( - col1 ) col2 FROM tab1
----
-14
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT SUM( DISTINCT + + col2 ) * + 30 * - + SUM( ALL + col1 ) AS col1 FROM tab2
----
-707850

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT SUM ( DISTINCT + + col2 ) * + 30 * - + SUM ( ALL + col1 ) AS col1 FROM tab2
----
-707850

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT ( MAX( DISTINCT + col0 ) ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2095
SELECT DISTINCT ( MAX ( DISTINCT + col0 ) ) col2 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2096
SELECT DISTINCT - col2 AS col0, col0 + - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-2096
SELECT DISTINCT - col2 AS col0, col0 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( - col2 )
----

query I rowsort
SELECT ALL - ( - + 14 ) * - + col1 FROM tab2 AS cor0
----
-1078
-714
-938

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 7 / - - col0 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2100
SELECT DISTINCT COUNT ( DISTINCT + col2 ) col0 FROM tab0
----
3

query I rowsort
SELECT col0 * + 27 FROM tab2
----
1242
1728
2025

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 65 * col2 * + 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - MAX( ALL + - 96 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2103
SELECT - MAX ( ALL + - 96 ) FROM tab2 AS cor0
----
96

query II rowsort
SELECT ALL 65 * + - 24 AS col2, - col1 - ( ( ( + col2 ) ) ) FROM tab0 AS cor0 WHERE + col2 + + col1 + col0 * - col1 IS NOT NULL
----
-1560
-100
-1560
-128
-1560
-31

query I rowsort
SELECT DISTINCT - 54 + - - col1 AS col2 FROM tab2 AS cor0
----
-3
13
23

query I rowsort
SELECT - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL + SUM( DISTINCT + - 3 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL + SUM ( DISTINCT + - 3 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 79 - + col0 * - col1 * + col0 + col0 * col1 * - 98 * - - col0 AS col2 FROM tab2 AS cor0 WHERE NULL <= + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT + - MAX( ALL - 5 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-2110
SELECT + - MAX ( ALL - 5 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
5

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

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

query I rowsort
SELECT DISTINCT + 87 * - 74 + + - col1 + + 16 - 9 - + - 29 FROM tab1
----
-6407
-6416
-6449

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL - 96 + COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - 96 + COUNT ( * ) FROM tab0
----
-93

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

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

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

query II rowsort
SELECT col2 * - ( - - col1 ), + col2 AS col2 FROM tab0
----
-210
10
-3807
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT MIN( - + 22 ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-2118
SELECT MIN ( - + 22 ) FROM tab0
----
-22

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT ALL 56 AS col0, 25 + + COUNT( * ) FROM tab1
----
56
28

skipif mysql # not compatible
query II rowsort label-2120
SELECT ALL 56 AS col0, 25 + + COUNT ( * ) FROM tab1
----
56
28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT - col0 DIV 7 FROM tab0
----
-12
-13
-2

skipif mysql # not compatible
query I rowsort label-2122
SELECT - col0 / 7 FROM tab0
----
-12
-13
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL MAX( ALL - 64 ) AS col1 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL MAX ( ALL - 64 ) AS col1 FROM tab1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT COUNT( * ) * + - 61 col0 FROM tab0
----
-183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2124
SELECT DISTINCT COUNT ( * ) * + - 61 col0 FROM tab0
----
-183

query I rowsort
SELECT DISTINCT col0 * + col2 * - col0 + - col0 + + 67 FROM tab2 AS cor0
----
-163837
-326258
-48647

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - col1 BETWEEN ( NULL ) AND + col1 )
----

query I rowsort
SELECT ALL + + col2 + - - 74 FROM tab0 cor0
----
121
173
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT - ( - CAST( + col0 AS SIGNED ) ) - - 37 - - 25 AS col2 FROM tab0 AS cor0
----
149
159
77

skipif mysql # not compatible
query I rowsort label-2129
SELECT - ( - CAST ( + col0 AS INTEGER ) ) - - 37 - - 25 AS col2 FROM tab0 AS cor0
----
149
159
77

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

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

query I rowsort
SELECT - ( + + col1 ) - - ( col0 ) FROM tab2
----
-13
-5
8

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

skipif mysql # not compatible
query I rowsort label-2132
SELECT SUM ( - + col0 ) FROM tab2
----
-185

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT + CAST( + - col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2136
SELECT + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT ALL ( - + col1 ) FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-2138
SELECT ALL + 79 AS col1, col2 DIV - col1 AS col1 FROM tab0
----
79
-99
79
0
79
0

skipif mysql # not compatible
query II rowsort label-2138
SELECT ALL + 79 AS col1, col2 / - col1 AS col1 FROM tab0
----
79
-99
79
0
79
0

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( ( NULL > - ( - CAST( NULL AS SIGNED ) ) + - - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( ( NULL > - ( - CAST ( NULL AS INTEGER ) ) + - - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT COUNT( * ) * 76 * 17 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
104652

skipif mysql # not compatible
query I rowsort label-2141
SELECT COUNT ( * ) * 76 * 17 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
104652

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT SUM( - + 91 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-273

skipif mysql # not compatible
query I rowsort label-2142
SELECT SUM ( - + 91 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT + COUNT( + col2 ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2143
SELECT + COUNT ( + col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col1 <> NULL ) OR NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT + + SUM( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2145
SELECT + + SUM ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - col2 + 62 + + col0 FROM tab0 AS cor0
----
139
30
60

query I rowsort
SELECT ALL - ( - + col2 ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) <> - - 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT DISTINCT - col2 DIV - 6 + + - col2 FROM tab1
----
-50
-57
-80

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - col2 / - 6 + + - col2 FROM tab1
----
-50
-57
-80

query I rowsort
SELECT col2 + 99 * + col0 AS col0 FROM tab0
----
1532
8623
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 + - 0 + - + col1 col0 FROM tab2
----
-21
-37
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2152
SELECT DISTINCT ( - 85 ) AS col2, + COUNT( * ) FROM tab1
----
-85
3

skipif mysql # not compatible
query II rowsort label-2152
SELECT DISTINCT ( - 85 ) AS col2, + COUNT ( * ) FROM tab1
----
-85
3

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

query I rowsort
SELECT DISTINCT - col0 * + - 9 + - - 68 AS col2 FROM tab1 AS cor0
----
527
833
887

query I rowsort
SELECT DISTINCT col2 - 79 AS col1 FROM tab1
----
-11
-20
17

query I rowsort
SELECT col0 + + 82 AS col1 FROM tab1
----
133
167
173

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT + SUM( DISTINCT + col2 ) + 89 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-2157
SELECT + SUM ( DISTINCT + col2 ) + 89 FROM tab2
----
210

query II rowsort
SELECT 94 * + - 62 + + 33, ( - col1 ) AS col1 FROM tab1
----
-5795
-14
-5795
-47
-5795
-5

query I rowsort
SELECT col0 + + + col0 AS col0 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query II rowsort label-2160
SELECT DISTINCT + 68 AS col1, 39 + + SUM( - ( - ( col1 ) ) ) FROM tab1 AS cor0
----
68
105

skipif mysql # not compatible
query II rowsort label-2160
SELECT DISTINCT + 68 AS col1, 39 + + SUM ( - ( - ( col1 ) ) ) FROM tab1 AS cor0
----
68
105

query I rowsort
SELECT ALL + col1 - + + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 16 FROM tab0 cor0
----
-16

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT COUNT( * ) * - - 23 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-2164
SELECT COUNT ( * ) * - - 23 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT DISTINCT 37 * + COUNT( * ) col0 FROM tab2
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2165
SELECT DISTINCT 37 * + COUNT ( * ) col0 FROM tab2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - COUNT( * ) * + 33 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-2166
SELECT - COUNT ( * ) * + 33 FROM tab2
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 58 ) col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col0 FROM tab1
----
88
88
88

query I rowsort
SELECT DISTINCT 3 * - col0 FROM tab2
----
-138
-192
-225

onlyif mysql # aggregate syntax: 
query II rowsort label-2170
SELECT DISTINCT + SUM( + 60 ) AS col1, - 22 FROM tab1
----
180
-22

skipif mysql # not compatible
query II rowsort label-2170
SELECT DISTINCT + SUM ( + 60 ) AS col1, - 22 FROM tab1
----
180
-22

query I rowsort
SELECT + ( + 42 ) FROM tab2
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2172
SELECT ALL 35 * CAST( NULL AS SIGNED ) AS col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2172
SELECT ALL 35 * CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 < - col0
----
75
67
58

query I rowsort
SELECT DISTINCT - col2 * - ( ( + col1 ) ) FROM tab0 AS cor0
----
210
3807
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT 15 + + COUNT( * ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2176
SELECT 15 + + COUNT ( * ) AS col2 FROM tab1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2177
SELECT DISTINCT ( - + 71 ) DIV COUNT( * ) AS col1, 48 * - 67 col1 FROM tab0
----
-23
-3216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2177
SELECT DISTINCT ( - + 71 ) / COUNT ( * ) AS col1, 48 * - 67 col1 FROM tab0
----
-23
-3216

query I rowsort
SELECT ALL - col1 + col1 * + col0 + + col2 + + col2 FROM tab2 AS cor0
----
2341
4931
5074

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2180
SELECT - ( - - SUM ( - col2 ) ) col0 FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 46 / col2 * col1 / - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 = - 84
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT + COUNT( * ) + - + 90 AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + COUNT ( * ) + - + 90 AS col0 FROM tab0
----
-87

query I rowsort
SELECT ALL - 20 FROM tab0 WHERE - col1 * - col2 IS NULL
----

query II rowsort
SELECT col2 AS col1, 48 * + + col2 * + + col1 * col1 FROM tab0
----
10
211680
47
14801616
99
4752

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

query I rowsort
SELECT DISTINCT - col1 + + + col1 + - col2 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT + col1 AS col2, col0 + + - col1 FROM tab1
----
14
37
47
44
5
80

query II rowsort
SELECT DISTINCT col0 + 39 AS col2, col0 AS col0 FROM tab1
----
124
85
130
91
90
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2193
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 89 FROM tab2
----
NULL
89
NULL
89
NULL
89

skipif mysql # not compatible
query II rowsort label-2193
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 89 FROM tab2
----
NULL
89
NULL
89
NULL
89

query I rowsort
SELECT ALL + 24 - col0 FROM tab0
----
-63
-73
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2195
SELECT DISTINCT - 68 col2, COUNT( * ) + - 24 AS col2 FROM tab0 AS cor0
----
-68
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2195
SELECT DISTINCT - 68 col2, COUNT ( * ) + - 24 AS col2 FROM tab0 AS cor0
----
-68
-21

query I rowsort
SELECT + col0 + - - col1 + 94 FROM tab1 AS cor0
----
159
184
232

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2197
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2197
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL + MAX( DISTINCT + 84 ) + + MIN( ALL + - col0 ) AS col1 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL + MAX ( DISTINCT + 84 ) + + MIN ( ALL + - col0 ) AS col1 FROM tab0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT DISTINCT col1 - CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2200
SELECT ALL CAST( NULL AS SIGNED ) - + - CAST( NULL AS SIGNED ) AS col2, - ( + COUNT( * ) ) DIV 47 FROM tab1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2200
SELECT ALL CAST ( NULL AS INTEGER ) - + - CAST ( NULL AS INTEGER ) AS col2, - ( + COUNT ( * ) ) / 47 FROM tab1
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2201
SELECT DISTINCT + - 19 col1, + MIN( - 69 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-19
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2201
SELECT DISTINCT + - 19 col1, + MIN ( - 69 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-19
-69

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 71 * - col0 col2 FROM tab0 AS cor0
----
-129717
-6887
-86265

onlyif mysql # DIV for integer division: 
query I rowsort label-2205
SELECT - - col2 DIV + col1 + - + 50 AS col0 FROM tab2 AS cor0
----
-50
-50
-50

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

query II rowsort
SELECT + col0 * - - col2, 51 AS col1 FROM tab1 AS cor0
----
4896
51
5015
51
6188
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2207
SELECT ALL + + CAST( NULL AS SIGNED ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 46 col0 FROM tab2
----
2116
2944
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT COUNT( * ) * - 85 col2 FROM tab2
----
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2209
SELECT DISTINCT COUNT ( * ) * - 85 col2 FROM tab2
----
-255

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT col2 * - CAST( NULL AS SIGNED ) * 19 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT col2 * - CAST ( NULL AS INTEGER ) * 19 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 25 * - - ( 49 ) FROM tab2
----
-1225
-1225
-1225

query I rowsort
SELECT DISTINCT + ( ( 61 ) ) * + ( - col1 ) AS col1 FROM tab1
----
-2867
-305
-854

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

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

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

query I rowsort
SELECT - 49 * + 67 + - col1 FROM tab2 AS cor0
----
-3334
-3350
-3360

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

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * 31 AS col0 FROM tab1 AS cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 * 42 * - col1 / - - 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 / - 79 + + - 39 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 28 * - - col0 FROM tab1 AS cor0
----
-1428
-2380
-2548

query I rowsort
SELECT + + ( + 6 ) + + 24 AS col1 FROM tab2 AS cor0
----
30
30
30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= + - ( col1 ) AND NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT - COUNT( + col0 ) + 58 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT - COUNT ( + col0 ) + 58 FROM tab2 AS cor0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT - 14 + - 0 DIV col0 AS col1 FROM tab1 AS cor0
----
-14
-14
-14

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

query I rowsort
SELECT ALL + col1 + + col2 + + + ( - - col2 ) AS col1 FROM tab1 cor0
----
123
183
206

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

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

query I rowsort
SELECT 97 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - + col2 * col1 AND 34
----

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

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

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT col2 + - col2 < NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT - ( col0 ) - + 15 * + CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2234
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT - - col2 * CAST( col0 AS SIGNED ) - - + 70 * col1 <= - - col1 )
----

skipif mysql # not compatible
query III rowsort label-2234
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT - - col2 * CAST ( col0 AS INTEGER ) - - + 70 * col1 <= - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT + + COUNT( col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + + COUNT ( col1 ) FROM tab0 cor0
----
3

query II rowsort
SELECT ALL col0, - ( col2 ) AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1, col1 + col0 - - col1 col0 FROM tab0 AS cor0
----
-1
99
-21
129
-81
177

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 - + + 68 * - - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1, - col2 AS col1 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT ALL - + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + - 35 FROM tab0 WHERE NOT - - 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT COUNT( * ) * - + COUNT( DISTINCT - 35 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2243
SELECT COUNT ( * ) * - + COUNT ( DISTINCT - 35 ) AS col1 FROM tab1
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL + col1 * CAST( - col0 AS SIGNED ) col0 FROM tab2 WHERE + ( - - col1 ) + - + ( + - col0 ) - + col1 - - 16 + - col1 - + 86 * - 80 + - col2 = ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2245
SELECT ALL + col1 * CAST ( - col0 AS INTEGER ) col0 FROM tab2 WHERE + ( - - col1 ) + - + ( + - col0 ) - + col1 - - 16 + - col1 - + 86 * - 80 + - col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT - - MAX( + col1 ) * - COUNT( * ) + + 5 FROM tab2 AS cor0 WHERE NOT - col0 / + col0 NOT BETWEEN - col2 + + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT - - MAX ( + col1 ) * - COUNT ( * ) + + 5 FROM tab2 AS cor0 WHERE NOT - col0 / + col0 NOT BETWEEN - col2 + + col1 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

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

query II rowsort
SELECT 97 + col0 * - col2 AS col0, + col2 FROM tab2
----
-2463
40
-4253
58
-961
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT ALL - 54 * 85 DIV + col2 AS col1 FROM tab2
----
-114
-199
-79

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL - 54 * 85 / + col2 AS col1 FROM tab2
----
-114
-199
-79

query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE NULL <> + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2252
SELECT + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE 99 NOT BETWEEN - + col2 AND col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE 99 NOT BETWEEN - + col2 AND col1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 3 col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( col2 ) AND + col1
----

query I rowsort
SELECT ALL - 20 + + + 72 AS col1 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT 81 FROM tab1 AS cor0 WHERE col2 * col0 IS NOT NULL
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2257
SELECT ALL CAST( - + 93 AS SIGNED ) * - + 72 FROM tab0 cor0 WHERE NOT ( - col2 ) >= NULL OR NOT NULL IS NOT NULL
----
6696
6696
6696

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL CAST ( - + 93 AS INTEGER ) * - + 72 FROM tab0 cor0 WHERE NOT ( - col2 ) >= NULL OR NOT NULL IS NOT NULL
----
6696
6696
6696

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT - COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2258
SELECT - COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + 97 + col2 * - 4 AS col1 FROM tab2 AS cor0
----
-135
-63
5

query I rowsort
SELECT DISTINCT - 47 + - ( col1 ) * - + col0 FROM tab0 AS cor0
----
1168
1780
50

query I rowsort
SELECT ALL 47 - - col1 + - col0 + + col1 FROM tab0
----
-48
194
2

query I rowsort
SELECT 67 * col1 + col1 AS col0 FROM tab2
----
3468
4556
5236

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT DISTINCT + col0 DIV + col1 + 8 AS col0 FROM tab1 cor0
----
11
25
9

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + col0 / + col1 + 8 AS col0 FROM tab1 cor0
----
11
25
9

query I rowsort
SELECT col2 + - col1 AS col0 FROM tab0 AS cor0 WHERE ( ( NOT ( NOT + - 68 >= col0 ) ) )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2265
SELECT - 53 + + + CAST ( NULL AS INTEGER ) * + 49 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT + CAST( 49 AS SIGNED ) * - col2 * + - col0 FROM tab2 AS cor0
----
125440
213150
51842

skipif mysql # not compatible
query I rowsort label-2266
SELECT + CAST ( 49 AS INTEGER ) * - col2 * + - col0 FROM tab2 AS cor0
----
125440
213150
51842

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col2 <= NULL )
----

query I rowsort
SELECT DISTINCT + col2 * + 67 FROM tab0 AS cor0
----
3149
6633
670

query I rowsort
SELECT + 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # DIV for integer division: 
query I rowsort label-2270
SELECT DISTINCT col1 DIV + + col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT col1 / + + col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL MIN( ALL - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL MIN ( ALL - col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2272
SELECT - CAST( + ( + SUM( - col0 ) ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + ( - + 17 ) IS NULL
----
199

skipif mysql # not compatible
query I rowsort label-2272
SELECT - CAST ( + ( + SUM ( - col0 ) ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + ( - + 17 ) IS NULL
----
199

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2274
SELECT + + COUNT ( * ) col2 FROM tab1 cor0
----
3

query I rowsort
SELECT + + col1 * - 8 FROM tab0 AS cor0
----
-168
-648
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2276
SELECT ALL - CAST( NULL AS DECIMAL ) 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-2276
SELECT ALL - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 33, + col0 FROM tab1
----
33
51
33
85
33
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT + 86 * - + MIN( ALL col2 ) col2 FROM tab1
----
-5074

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2278
SELECT + 86 * - + MIN ( ALL col2 ) col2 FROM tab1
----
-5074

query I rowsort
SELECT + col0 + + + col2 AS col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT + 58 + + MIN( DISTINCT - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT + 58 + + MIN ( DISTINCT - col2 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT ALL MAX( DISTINCT - + 35 ) col0 FROM tab1
----
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT + COUNT( * ) * + SUM( + col0 ) AS col1 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + COUNT ( * ) * + SUM ( + col0 ) AS col1 FROM tab0
----
597

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

query I rowsort
SELECT + + 2 + + col0 AS col1 FROM tab2 AS cor0
----
48
66
77

query I rowsort
SELECT - + col0 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 * 71, col1 * + - col1 - 53 AS col2 FROM tab1
----
-3337
-2262
-355
-78
-994
-249

query I rowsort
SELECT 93 + ( col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
118
2302
289

query I rowsort
SELECT + 95 + + col2 FROM tab1 cor0
----
154
163
191

query I rowsort
SELECT ALL col2 * - 48 + + col0 + - 33 - + col0 FROM tab2 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - col2 * - 66 + col1 FROM tab0 AS cor0
----
3183
6535
681

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

query I rowsort
SELECT DISTINCT + - ( - ( col0 ) ) + + 54 + + col2 * - - 46 + - col2 AS col1 FROM tab2 AS cor0
----
1135
1918
2739

query I rowsort
SELECT 66 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT col1 * 76 + col1 - - col1 AS col2 FROM tab1 AS cor0
----
1092
3666
390

query I rowsort
SELECT ( + - col2 ) AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT COUNT( - 17 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2296
SELECT COUNT ( - 17 ) AS col2 FROM tab1
----
3

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

skipif mysql # not compatible
query I rowsort label-2297
SELECT SUM ( + col2 ) FROM tab1
----
223

query II rowsort
SELECT ALL col0 - + col0 * + col2 AS col1, + 62 AS col0 FROM tab0
----
-690
62
-783
62
-9506
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT DISTINCT + 21 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT - ( + col0 ) - + 2 + 71 FROM tab0
----
-18
-28
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT col1 DIV - 90 FROM tab0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2301
SELECT col1 / - 90 FROM tab0 WHERE NULL IS NULL
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 43 - col1 + - col2 col2 FROM tab0 AS cor0
----
-57
-85
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT + COUNT( * ) + - - SUM( DISTINCT 60 ) FROM tab0, tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT + COUNT ( * ) + - - SUM ( DISTINCT 60 ) FROM tab0, tab1 AS cor0
----
69

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 69
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE + 63 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE + 63 IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT ALL + CAST( + 83 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
83
83
83

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

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

query I rowsort
SELECT DISTINCT 15 + + col0 AS col1 FROM tab0
----
102
112
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - SUM( DISTINCT - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2312
SELECT - SUM ( DISTINCT - col1 ) FROM tab2
----
195

query I rowsort
SELECT + col1 * - + 77 AS col0 FROM tab0
----
-1617
-6237
-77

query I rowsort
SELECT - 3 * ( + col0 ) AS col0 FROM tab1
----
-153
-255
-273

query I rowsort
SELECT DISTINCT + 77 AS col2 FROM tab0
----
77

query I rowsort
SELECT ALL 49 * - col0 FROM tab0
----
-4263
-4753
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT - ( MIN( DISTINCT col0 ) ) * + COUNT( * ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-2317
SELECT - ( MIN ( DISTINCT col0 ) ) * + COUNT ( * ) FROM tab2
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-2318
SELECT DISTINCT - col0 DIV - - col2 AS col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT - col0 / - - col2 AS col1 FROM tab2
----
-1
-2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 62 + - col0 col1 FROM tab1 AS cor0
----
-23
-29
11

query I rowsort
SELECT DISTINCT 22 + + ( 75 ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT - CAST( - 69 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

skipif mysql # not compatible
query I rowsort label-2322
SELECT - CAST ( - 69 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT - 56 * 51 - + 26 AS col1 FROM tab0
----
-2882

query II rowsort
SELECT DISTINCT 56 AS col1, col2 FROM tab2 AS cor0
----
56
23
56
40
56
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <= - 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = 58
----

query I rowsort
SELECT - + col0 - + col0 AS col2 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT + col2 - + col1 + 79 * col1 FROM tab0 AS cor0
----
1648
177
6365

query II rowsort
SELECT - 78 - col2, - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-125
-3807
-177
-99
-88
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT col1 DIV col2 - ( + - col0 ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2331
SELECT col1 / col2 - ( + - col0 ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + - 18 * - - COUNT( * ) - - - COUNT( * ) * 18 + - MIN( DISTINCT - col0 ) + + 15 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2332
SELECT + - 18 * - - COUNT ( * ) - - - COUNT ( * ) * 18 + - MIN ( DISTINCT - col0 ) + + 15 FROM tab0 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 + + + col0 col2 FROM tab0
----
118
143
197

query I rowsort
SELECT DISTINCT col2 * 43 + - col1 FROM tab1
----
2532
2877
4114

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2335
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + - 25 DIV + - col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + - 25 / + - col0 AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT DISTINCT + 48 - - COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT + 48 - - COUNT ( * ) FROM tab0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + col1 + + + col0 * ( - col1 ), + col2 + + col1 + col0 * + col2 col2 FROM tab0
----
-1215
833
-1827
901
-97
9703

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT + COUNT( * ) + + 61 * - COUNT( * ) - + MIN( ALL + + col0 ) AS col2 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-2339
SELECT + COUNT ( * ) + + 61 * - COUNT ( * ) - + MIN ( ALL + + col0 ) AS col2 FROM tab1
----
-231

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 <> + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT MAX( + col2 ) col2 FROM tab2
----
58

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE + col1 * - - 40 BETWEEN NULL AND + 73
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 + col0 + + col0 AND + col0 + + - 60
----

query I rowsort
SELECT ALL - col2 * col0 * + 1 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL 29 AS col0 FROM tab2 WHERE - col0 - + 16 * col0 < - col2 * + - col1 + - - col1
----
29
29
29

query II rowsort
SELECT ALL + - 31 AS col2, - 12 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT + MIN( DISTINCT - - 27 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + MIN ( DISTINCT - - 27 ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT DISTINCT 5 FROM tab1 AS cor0 WHERE NULL IS NULL
----
5

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE 27 * - col0 + + 4 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 9 AS col2, col1 + + 51 col0 FROM tab0 AS cor0
----
-9
132
-9
52
-9
72

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2351
SELECT DISTINCT CAST ( + + 57 AS INTEGER ) + CAST ( NULL AS INTEGER ) + col1 * + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2352
SELECT + CAST( + - COUNT( 1 ) AS SIGNED ) + - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2352
SELECT + CAST ( + - COUNT ( 1 ) AS INTEGER ) + - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT + col0 + + - 85 + + col2 - - col2 + 63 FROM tab0
----
273
85
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL - ( + 55 ) * + MAX( + + col2 ) AS col1 FROM tab2
----
-3190

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL - ( + 55 ) * + MAX ( + + col2 ) AS col1 FROM tab2
----
-3190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( - + col2 ) ) col1 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT ALL - col1 * - col0 - + col1 * - ( - col1 ), + 19 + + col2 / 42 + - 67 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 * - - 31 + + + col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query II rowsort
SELECT DISTINCT - col0 * ( 13 ) * + 95, + 64 AS col0 FROM tab0 cor0
----
-107445
64
-119795
64
-18525
64

query I rowsort
SELECT ALL - - 95 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + 23 - - + 9 AS col0 FROM tab1 AS cor0
----
32
32
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL - SUM( - 8 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - SUM ( - 8 ) FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT + - MAX( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE - 47 > - + col0
----
64

skipif mysql # not compatible
query I rowsort label-2363
SELECT + - MAX ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE - 47 > - + col0
----
64

query I rowsort
SELECT ALL ( - 71 ) FROM tab1 cor0
----
-71
-71
-71

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 3 AND ( + - col0 * - - 19 / - ( - col1 ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + ( 34 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2367
SELECT - CAST( + col0 AS SIGNED ) * + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2367
SELECT - CAST ( + col0 AS INTEGER ) * + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT + COUNT( ALL - col0 ), COUNT( * ) + + 58 col0 FROM tab0
----
3
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2368
SELECT + COUNT ( ALL - col0 ), COUNT ( * ) + + 58 col0 FROM tab0
----
3
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( - col1 BETWEEN + - col2 AND + - col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( - col1 BETWEEN + - col2 AND + - col0 )
----
NULL
NULL
NULL

query II rowsort
SELECT 54, col1 AS col1 FROM tab2 AS cor0
----
54
51
54
67
54
77

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

query I rowsort
SELECT ALL col1 * 46 FROM tab0 cor0
----
3726
46
966

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 49 - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ( + + MIN( ALL - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2374
SELECT ( + + MIN ( ALL - col0 ) ) FROM tab2
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + col2 ) / col1 + - - 61 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - ( - - COUNT( * ) ) * + 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - ( - - COUNT ( * ) ) * + 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col0 * col2 col2 FROM tab1
----
295885
420784
470016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2378
SELECT 75 * col1 AS col1, CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
3825
51
5025
67
5775
77

skipif mysql # not compatible
query II rowsort label-2378
SELECT 75 * col1 AS col1, CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
3825
51
5025
67
5775
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT DISTINCT + COUNT( ALL + col1 ) AS col1, - COUNT( * ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-2379
SELECT DISTINCT + COUNT ( ALL + col1 ) AS col1, - COUNT ( * ) AS col1 FROM tab1
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col1 + + 86
----

query II rowsort
SELECT ALL 27 * - col1 AS col0, col0 + - + col2 - - + 18 AS col1 FROM tab1 cor0
----
-1269
41
-135
44
-378
-27

query I rowsort
SELECT ALL + 81 + + col0 + + col1 * col2 FROM tab0 AS cor0
----
277
378
3903

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

query II rowsort
SELECT col2 AS col0, - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
-10
47
-47
99
-99

query I rowsort
SELECT + 17 * - col0 FROM tab1 AS cor0
----
-1445
-1547
-867

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

query III rowsort
SELECT * FROM tab2 WHERE - 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 71, - col2 AS col1 FROM tab0
----
71
-10
71
-47
71
-99

query I rowsort
SELECT DISTINCT + ( - 79 ) FROM tab0
----
-79

query I rowsort
SELECT col1 * - + col2 AS col0 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT - col0 * + col0 + col1 * 30, col0 FROM tab0
----
-6939
87
-9379
97
2205
15

query I rowsort
SELECT ALL + col0 * + - 3 FROM tab1
----
-153
-255
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 + - 31 col0 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT + 67 + + - ( - 18 ) + + COUNT( * ) * - + SUM( - - 60 ) FROM tab1 AS cor0
----
-455

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 67 + + - ( - 18 ) + + COUNT ( * ) * - + SUM ( - - 60 ) FROM tab1 AS cor0
----
-455

query I rowsort
SELECT + + col2 * + + col2 + + - col0 AS col1 FROM tab1 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + + col1 AS col0 FROM tab0 cor0 WHERE + col0 * - col2 * + 42 + col1 + col1 IS NOT NULL
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL + MIN ( col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT COUNT( * ) * - SUM( col2 ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT COUNT ( * ) * - SUM ( col2 ) FROM tab0
----
-468

query I rowsort
SELECT + 55 * + col0 AS col0 FROM tab1
----
2805
4675
5005

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

skipif mysql # not compatible
query I rowsort label-2401
SELECT CAST ( 74 AS INTEGER ) AS col2 FROM tab0
----
74
74
74

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT 64 IS NULL
----
51
85
91

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT 49 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT DISTINCT + col0 DIV - ( - 20 ) AS col1 FROM tab1
----
2
4

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT + col0 / - ( - 20 ) AS col1 FROM tab1
----
2
4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 <= ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + COUNT( + 93 ) + 48 AS col2 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-2407
SELECT + COUNT ( + 93 ) + 48 AS col2 FROM tab0
----
51

query I rowsort
SELECT DISTINCT ( - col2 ) - - 53 FROM tab1
----
-15
-43
-6

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

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL COUNT ( ALL + col2 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT - 26 * + col1 + - col1 * col2 FROM tab0 WHERE NULL IN ( + 39 )
----

query I rowsort
SELECT DISTINCT + col1 / ( + col1 ) AS col2 FROM tab2 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT ALL col0 * 87 FROM tab1 WHERE 39 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 39 + + 93 AS col1 FROM tab0
----
132
132
132

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT + 28 + 31 FROM tab2
----
59
59
59

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 / + col2 + col2 <> - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT - MAX( ALL 14 ) FROM tab2 WHERE NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT - MAX ( ALL 14 ) FROM tab2 WHERE NULL BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT 90 * + col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT 90 * + col0 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 45 AS col0 FROM tab1
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2424
SELECT * FROM tab1 WHERE CAST( col1 AS SIGNED ) / + 24 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2424
SELECT * FROM tab1 WHERE CAST ( col1 AS INTEGER ) / + 24 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT DISTINCT 68 * - 75 + 65 * + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE + CAST( ( - 25 ) AS SIGNED ) <= ( - col1 * col0 )
----

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT 68 * - 75 + 65 * + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 WHERE + CAST ( ( - 25 ) AS INTEGER ) <= ( - col1 * col0 )
----

query I rowsort
SELECT DISTINCT - 91 * col0 FROM tab0 AS cor0
----
-1365
-7917
-8827

onlyif mysql # DIV for integer division: 
query I rowsort label-2427
SELECT ALL 14 DIV + col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL 14 / + col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - 47 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 >= col2 + - col0
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT col2 - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( col2 ) * - col0 + col1 FROM tab1
----
-4882
-5010
-6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL 8 AS col2 FROM tab2 WHERE ( + col2 ) NOT IN ( + 50 )
----
8
8
8

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2437
SELECT COUNT ( * ) col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT - 15 DIV + 57 col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2438
SELECT - 15 / + 57 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 69
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2440
SELECT DISTINCT - 66 * - 84 AS col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * + col2 <> - 1 * col1
----

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT - 66 * - 84 AS col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) * + col2 <> - 1 * col1
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT - SUM( DISTINCT - col1 ) + - 29 * 40 FROM tab0 AS cor0
----
-1057

skipif mysql # not compatible
query I rowsort label-2444
SELECT - SUM ( DISTINCT - col1 ) + - 29 * 40 FROM tab0 AS cor0
----
-1057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2445
SELECT DISTINCT - + COUNT( * ) * ( CAST( - 13 AS SIGNED ) * COUNT( * ) ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - + COUNT ( * ) * ( CAST ( - 13 AS INTEGER ) * COUNT ( * ) ) FROM tab2 AS cor0
----
117

query I rowsort
SELECT DISTINCT - 26 * + col2 + 78 * - col2 AS col0 FROM tab1 cor0 WHERE ( col2 ) BETWEEN ( col2 * 30 - - col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT COUNT( ALL + 53 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE - col0 + - ( ( - col0 ) - - col0 ) / + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT COUNT ( ALL + 53 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE - col0 + - ( ( - col0 ) - - col0 ) / + col1 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 20 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT 53 + - COUNT( * ) FROM tab0 cor0
----
50

skipif mysql # not compatible
query I rowsort label-2449
SELECT 53 + - COUNT ( * ) FROM tab0 cor0
----
50

query I rowsort
SELECT DISTINCT + - 28 * + col0 + col2 * col2 FROM tab0 AS cor0
----
-2336
1789
7085

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT DISTINCT - 58 + + 10 - 35 * + COUNT( 69 ) AS col0 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - 58 + + 10 - 35 * + COUNT ( 69 ) AS col0 FROM tab0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-2453
SELECT col2 DIV - 35 + - col2 FROM tab0
----
-10
-101
-48

skipif mysql # not compatible
query I rowsort label-2453
SELECT col2 / - 35 + - col2 FROM tab0
----
-10
-101
-48

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

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

query I rowsort
SELECT DISTINCT - col0 * 23 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 * - 77 AS col1 FROM tab0
----
-1617
-6237
-77

query I rowsort
SELECT DISTINCT - 25 + - col0 FROM tab0 WHERE NULL NOT BETWEEN ( 66 ) AND - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL COUNT( * ) * 86 * - 6 AS col1 FROM tab0
----
-1548

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL COUNT ( * ) * 86 * - 6 AS col1 FROM tab0
----
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT DISTINCT COUNT( * ) - 51 * + COUNT( * ) FROM tab1 WHERE NOT + col0 - col2 <> + col0 * + ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT COUNT ( * ) - 51 * + COUNT ( * ) FROM tab1 WHERE NOT + col0 - col2 <> + col0 * + ( col1 )
----
0

query I rowsort
SELECT 32 FROM tab0 WHERE + 42 + - col2 NOT BETWEEN col2 AND + col2
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT + + col1 DIV 2 - + col0 FROM tab0 cor0
----
-77
-97
25

skipif mysql # not compatible
query I rowsort label-2461
SELECT + + col1 / 2 - + col0 FROM tab0 cor0
----
-77
-97
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 27 - - col1 IS NULL
----

query I rowsort
SELECT - 78 + + col2 AS col0 FROM tab1
----
-10
-19
18

query I rowsort
SELECT ALL - col1 + 32 AS col1 FROM tab2
----
-19
-35
-45

query I rowsort
SELECT 81 + 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec2e101908a0c2a3287de7292cabaa57

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT - ( SUM( DISTINCT col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT - ( SUM ( DISTINCT col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 * - ( - 52 ) ) >= ( + col0 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > + col1 * - col2 * - col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2470
SELECT DISTINCT - CAST ( - MAX ( ALL 33 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT DISTINCT CAST( + - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2471
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT - MIN( ALL + col2 ) AS col2, + SUM( DISTINCT - col2 ) FROM tab0
----
-10
-156

skipif mysql # not compatible
query II rowsort label-2472
SELECT - MIN ( ALL + col2 ) AS col2, + SUM ( DISTINCT - col2 ) FROM tab0
----
-10
-156

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 90 + + 60 >= ( - col1 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT DISTINCT MIN( ALL - col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2474
SELECT DISTINCT MIN ( ALL - col2 ) col2 FROM tab2
----
-58

query II rowsort
SELECT + col1 * - col2 AS col1, 48 FROM tab2
----
-1173
48
-3080
48
-3886
48

query II rowsort
SELECT ALL + col1 * - - col2 AS col0, col2 * + ( 99 ) * col0 FROM tab1
----
1344
484704
295
496485
3196
612612

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT MIN( - - 7 ) AS col2 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2477
SELECT MIN ( - - 7 ) AS col2 FROM tab0 AS cor0
----
7

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 = + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 57 + + + 15 = col1 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT + 82 DIV + 69 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2481
SELECT + 82 / + 69 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2482
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2482
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT + col0 DIV + 80 AS col0 FROM tab0 AS cor0
----
0
1
1

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

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NULL IN ( + 13, col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2486
SELECT DISTINCT 59 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
59
-3

skipif mysql # not compatible
query II rowsort label-2486
SELECT DISTINCT 59 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
59
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2487
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( - - 3 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2487
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( - - 3 AS INTEGER ) IS NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

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

query I rowsort
SELECT DISTINCT - ( + + 97 ) + - - col1 AS col0 FROM tab2 cor0
----
-20
-30
-46

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

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

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

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

query I rowsort
SELECT ALL + col0 + - - 65 FROM tab2 AS cor0
----
111
129
140

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2495
SELECT * FROM tab2 WHERE ( 53 * col2 ) BETWEEN + CAST( NULL AS SIGNED ) * + col1 AND + 86 + 92 * - col0
----

skipif mysql # not compatible
query III rowsort label-2495
SELECT * FROM tab2 WHERE ( 53 * col2 ) BETWEEN + CAST ( NULL AS INTEGER ) * + col1 AND + 86 + 92 * - col0
----

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

query I rowsort
SELECT ALL 68 * - 75 + + col2 AS col2 FROM tab2
----
-5042
-5060
-5077

onlyif mysql # DIV for integer division: 
query I rowsort label-2498
SELECT - col1 + + col1 DIV - + col2 FROM tab0
----
-1
-23
-82

skipif mysql # not compatible
query I rowsort label-2498
SELECT - col1 + + col1 / - + col2 FROM tab0
----
-1
-23
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT + ( - 94 ) + - - 8 * - ( - + MAX( ALL - - 56 ) ) + + 96 FROM tab0
----
450

skipif mysql # not compatible
query I rowsort label-2499
SELECT + ( - 94 ) + - - 8 * - ( - + MAX ( ALL - - 56 ) ) + + 96 FROM tab0
----
450

query II rowsort
SELECT DISTINCT 48 - - col0, col1 FROM tab1
----
133
5
139
47
99
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT ALL - COUNT( ALL + 76 ) AS col2 FROM tab0, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - COUNT ( ALL + 76 ) AS col2 FROM tab0, tab0 cor0
----
-9

query I rowsort
SELECT ALL 93 + col0 FROM tab0 WHERE ( ( - + col1 ) ) IS NOT NULL
----
108
180
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 97, 78 col2 FROM tab2 AS cor0
----
-97
78

query I rowsort
SELECT DISTINCT + 63 + 99 FROM tab0 AS cor0
----
162

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - + col1 - + + 36 AND - col2
----

query I rowsort
SELECT - col1 - - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - COUNT( * ) * 81 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-2508
SELECT - COUNT ( * ) * 81 FROM tab0 AS cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT ALL CAST( + 76 AS SIGNED ) * - col1 * col2 + 3 AS col1 FROM tab0 AS cor0
----
-15957
-289329
-7521

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL CAST ( + 76 AS INTEGER ) * - col1 * col2 + 3 AS col1 FROM tab0 AS cor0
----
-15957
-289329
-7521

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 * - col2 col0 FROM tab0
----
-1485
-150
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL + COUNT( * ) * + 96 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + COUNT ( * ) * + 96 FROM tab2
----
288

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

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

query I rowsort
SELECT DISTINCT - col0 / 29 FROM tab2 WHERE NOT ( + + 55 + - col1 ) <> ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT - col1 DIV - - col2 col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT - col1 / - - col2 col1 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT + 2 * + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT col1 * - 69 + 29 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1420
-40
-5560

query I rowsort
SELECT DISTINCT 21 * + col1 AS col0 FROM tab1
----
105
294
987

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT - MAX( DISTINCT - col2 ) col1 FROM tab2
----
23

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2519
SELECT ALL col1 DIV 62 DIV col0 AS col1, col0 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-2519
SELECT ALL col1 / 62 / col0 AS col1, col0 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT col1 * col2 DIV + - col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2520
SELECT col1 * col2 / + - col1 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT DISTINCT + col2, + 4 FROM tab1 AS cor0
----
59
4
68
4
96
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT - MAX( col0 ) AS col1 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2522
SELECT - MAX ( col0 ) AS col1 FROM tab0 cor0
----
-97

query I rowsort
SELECT ALL - - 61 * - 84 + + col0 + - - col0 FROM tab1 AS cor0
----
-4942
-4954
-5022

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT DISTINCT - COUNT( * ) * - SUM( - col2 ) AS col1 FROM tab2 WHERE NOT ( ( 31 * + col1 IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT - COUNT ( * ) * - SUM ( - col2 ) AS col1 FROM tab2 WHERE NOT ( ( 31 * + col1 IS NOT NULL ) )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2526
SELECT - 13 * col2 + + - col1 * + col2 AS col2, - 68, + 67 - col2 + + CAST( NULL AS SIGNED ) + + 17 * col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 42ddb5f495e10c555584bdda95360320

skipif mysql # not compatible
query III rowsort label-2526
SELECT - 13 * col2 + + - col1 * + col2 AS col2, - 68, + 67 - col2 + + CAST ( NULL AS INTEGER ) + + 17 * col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 42ddb5f495e10c555584bdda95360320

query I rowsort
SELECT + 64 + - + col2 AS col1 FROM tab1 AS cor0
----
-32
-4
5

query II rowsort
SELECT + + col1 + - 60, col1 * + 49 AS col2 FROM tab1 AS cor0
----
-13
2303
-46
686
-55
245

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 < ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT DISTINCT + 86 + - - MIN( ALL + - col2 ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT + 86 + - - MIN ( ALL + - col2 ) FROM tab2 AS cor0
----
28

query I rowsort
SELECT DISTINCT + + ( - - col2 ) FROM tab2 WHERE ( col2 ) * + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2532
SELECT DISTINCT col2 FROM tab0 WHERE NULL < col0 - - CAST( + 14 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT col2 FROM tab0 WHERE NULL < col0 - - CAST ( + 14 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2533
SELECT DISTINCT - 14 + - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT - 14 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2534
SELECT DISTINCT + CAST( + - SUM( col0 ) AS SIGNED ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT + CAST ( + - SUM ( col0 ) AS INTEGER ) FROM tab1
----
-227

query I rowsort
SELECT - 18 + 88 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL COUNT( * ) FROM tab2 WHERE + ( + 52 ) IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL COUNT ( * ) FROM tab2 WHERE + ( + 52 ) IN ( col2 )
----
0

query I rowsort
SELECT DISTINCT 2 - - + col1 AS col2 FROM tab1 AS cor0
----
16
49
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL + SUM( + 40 ) FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL + SUM ( + 40 ) FROM tab0 AS cor0
----
120

query I rowsort
SELECT + - col2 * - col0 * + 89 - col2 FROM tab2 AS cor0
----
227800
387092
94139

query II rowsort
SELECT DISTINCT + + 6 AS col1, col1 AS col1 FROM tab0 AS cor0
----
6
1
6
21
6
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT DISTINCT - SUM( 9 ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT - SUM ( 9 ) FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT + MIN( + 53 ) AS col1 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-2542
SELECT + MIN ( + 53 ) AS col1 FROM tab2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2543
SELECT ALL - MAX( ALL - col1 ) DIV + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - MAX ( ALL - col1 ) / + - COUNT ( * ) FROM tab0
----
0

query II rowsort
SELECT + col1 AS col0, 50 FROM tab1 AS cor0
----
14
50
47
50
5
50

query I rowsort
SELECT 8 + col0 * - col2 * + 94 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT ALL COUNT( DISTINCT + 72 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0 + - col0 * + - col1, 21 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL COUNT ( DISTINCT + 72 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0 + - col0 * + - col1, 21 * col1 )
----
0

query I rowsort
SELECT ALL - 12 * - 6 * + 29 FROM tab2 AS cor0
----
2088
2088
2088

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2549
SELECT DISTINCT - - MAX( - 1 ) AS col2, - 12 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-2549
SELECT DISTINCT - - MAX ( - 1 ) AS col2, - 12 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
NULL
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT ALL - 73 DIV + + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - 73 / + + col0 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT ( + col0 ) AS col0, 79 AS col2 FROM tab1
----
51
79
85
79
91
79

query III rowsort
SELECT * FROM tab0 WHERE NOT + 86 - 41 IS NOT NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2554
SELECT CAST( NULL AS DECIMAL ) * + col1 * - 32 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT CAST ( NULL AS REAL ) * + col1 * - 32 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2555
SELECT col1 DIV - 95, 94 + col2 AS col0 FROM tab1
----
0
153
0
162
0
190

skipif mysql # not compatible
query II rowsort label-2555
SELECT col1 / - 95, 94 + col2 AS col0 FROM tab1
----
0
153
0
162
0
190

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL + MAX( col2 ) * + - MAX( - - col1 ) AS col2 FROM tab2
----
-4466

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + MAX ( col2 ) * + - MAX ( - - col1 ) AS col2 FROM tab2
----
-4466

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + + col0 * 42 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL COUNT( col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL COUNT ( col0 ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE 93 < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( + col2 ) col1 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL col1 + + 32 AS col0 FROM tab2
----
109
83
99

query I rowsort
SELECT + col2 * - 68 + col2 * col0 AS col0 FROM tab1
----
-1632
1003
1564

query I rowsort
SELECT DISTINCT - + 37 * - 85 - + + col1 AS col1 FROM tab0 cor0
----
3064
3124
3144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 32 BETWEEN ( + col2 * + ( - + col1 ) ) AND - 57 )
----

query I rowsort
SELECT ALL - 63 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 37 - + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2567
SELECT COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2568
SELECT DISTINCT + - col1 + - col0 + - ( - + CAST( NULL AS DECIMAL ) ) / - + col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL 17 + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL 17 + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT + - CAST( - col2 AS SIGNED ) - - col0 + + + col2 AS col1 FROM tab1 cor0
----
203
227
243

skipif mysql # not compatible
query I rowsort label-2570
SELECT + - CAST ( - col2 AS INTEGER ) - - col0 + + + col2 AS col1 FROM tab1 cor0
----
203
227
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT SUM( + col2 ) * - 12 - 1 FROM tab2
----
-1453

skipif mysql # not compatible
query I rowsort label-2571
SELECT SUM ( + col2 ) * - 12 - 1 FROM tab2
----
-1453

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2572
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) + - 65
----

skipif mysql # not compatible
query III rowsort label-2572
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) + - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT 33 - + COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2573
SELECT 33 - + COUNT ( * ) FROM tab2
----
30

query I rowsort
SELECT DISTINCT + 14 - - col1 * - + ( 71 ) * - - ( 72 ) FROM tab2
----
-260698
-342490
-393610

query I rowsort
SELECT DISTINCT - col1 + - - 6 * ( 90 ) * + col2 AS col2 FROM tab1
----
31855
36673
51826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2576
SELECT 73 - + col1 + + + 45 / ( + + 50 ) FROM tab0 WHERE + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-2576
SELECT 73 - + col1 + + + 45 / ( + + 50 ) FROM tab0 WHERE + CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) <> - col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT ( + + 2 ) AS col1 FROM tab2 cor0
----
2
2
2

query II rowsort
SELECT + 79, + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - col2 - 27 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 32 + + + col0 * 73 AND + col0 * - ( + col1 )
----

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

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT - MIN ( DISTINCT - 99 ) FROM tab2 AS cor0
----
99

query II rowsort
SELECT + col0 AS col2, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT + + ( + COUNT( * ) ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2587
SELECT + + ( + COUNT ( * ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

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

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL + COUNT ( * ) * + 38 FROM tab1 AS cor0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2589
SELECT ( + + col1 ), col1 * + col2 FROM tab2 AS cor0 WHERE NOT - col0 + - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query II rowsort label-2589
SELECT ( + + col1 ), col1 * + col2 FROM tab2 AS cor0 WHERE NOT - col0 + - CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + ( 15 ) ) AS col0 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT ALL + - col0 * - ( + col2 ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

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

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

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

query II rowsort
SELECT ALL + col0, - col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT 47 + + + SUM( CAST( NULL AS SIGNED ) ) - - COUNT( * ) + + MAX( + col1 ) + - 18 * - + COUNT( * ) * + + SUM( - col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT 47 + + + SUM ( CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) + + MAX ( + col1 ) + - 18 * - + COUNT ( * ) * + + SUM ( - col0 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col1 + col1 * - 34 AS col1 FROM tab0
----
-2673
-33
-693

query II rowsort
SELECT + col2 AS col2, + col2 FROM tab1 WHERE NOT col2 IS NULL
----
59
59
68
68
96
96

query II rowsort
SELECT col2 + - + 94, - 87 AS col1 FROM tab2
----
-36
-87
-54
-87
-71
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT - 53 DIV 5 DIV ( + col0 ) DIV + col0 + - col1 * - col0 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-2600
SELECT - 53 / 5 / ( + col0 ) / + col0 + - col1 * - col0 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, - 72 + - - col0 col2 FROM tab0
----
10
15
47
-57
99
25

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

query I rowsort
SELECT ALL - 70 * + + col0 FROM tab2 AS cor0
----
-3220
-4480
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT + SUM( ALL - col2 ) * - ( MIN( ALL - col1 ) ) col1 FROM tab2 AS cor0
----
-9317

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2604
SELECT DISTINCT + SUM ( ALL - col2 ) * - ( MIN ( ALL - col1 ) ) col1 FROM tab2 AS cor0
----
-9317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 * - col1 + + col2 * - col1 col2 FROM tab2
----
131478
296877
453453

query I rowsort
SELECT ALL + 66 FROM tab0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT + col1 FROM tab2 WHERE + col1 <> - col1
----
51
67
77

query I rowsort
SELECT 73 + + 65 AS col0 FROM tab0 AS cor0
----
138
138
138

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT DISTINCT 26 DIV col1 * - + col1 + - - 1 AS col1 FROM tab1 AS cor0
----
-13
-24
1

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT 26 / col1 * - + col1 + - - 1 AS col1 FROM tab1 AS cor0
----
-13
-24
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 27 * col2 IS NOT NULL
----

query I rowsort
SELECT + 1 + + + col2 + + 34 FROM tab2 cor0
----
58
75
93

query II rowsort
SELECT + col1 * - col0, col0 AS col1 FROM tab2 AS cor0
----
-2346
46
-4928
64
-5025
75

query I rowsort
SELECT ALL - col1 * + 54 + + col1 * + col2 + + - col2 AS col2 FROM tab2 AS cor0
----
-1118
-1604
210

query I rowsort
SELECT ALL + 77 + + 82 FROM tab1 AS cor0
----
159
159
159

query I rowsort
SELECT DISTINCT 7 + col0 AS col0 FROM tab0
----
104
22
94

query I rowsort
SELECT ALL + 4 + + col2 FROM tab0
----
103
14
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - - 50 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, 19 FROM tab1
----
14
19
47
19
5
19

query II rowsort
SELECT ALL + col0 AS col1, col0 + + + col1 * 87 FROM tab2
----
46
4483
64
6763
75
5904

query II rowsort
SELECT + col0 AS col0, - col2 AS col0 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT + SUM( - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + SUM ( - + col0 ) FROM tab1
----
-227

query III rowsort
SELECT * FROM tab0 WHERE NOT 24 + - col1 <= + ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT ALL 27, COUNT( * ) * COUNT( 90 ) AS col1 FROM tab0
----
27
9

skipif mysql # not compatible
query II rowsort label-2625
SELECT ALL 27, COUNT ( * ) * COUNT ( 90 ) AS col1 FROM tab0
----
27
9

query II rowsort
SELECT 64, + col0 FROM tab1
----
64
51
64
85
64
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + MAX( + 82 ) AS col2 FROM tab0, tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2627
SELECT + MAX ( + 82 ) AS col2 FROM tab0, tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT MIN( 0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT MIN ( 0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 50 > NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2631
SELECT ALL CAST( - SUM( + - 43 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
129

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL CAST ( - SUM ( + - 43 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT COUNT( * ) + + - SUM( + ( + - col2 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
226

skipif mysql # not compatible
query I rowsort label-2632
SELECT COUNT ( * ) + + - SUM ( + ( + - col2 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + col2 - - col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
164
182
238

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL + + SUM( DISTINCT - + col2 ) + + 98 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + + SUM ( DISTINCT - + col2 ) + + 98 FROM tab2 cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 7, + col2 col2 FROM tab0 AS cor0 WHERE NOT + col2 - 82 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-2637
SELECT + + MAX ( DISTINCT + 57 ) AS col2 FROM tab2 AS cor0
----
57

query III rowsort
SELECT * FROM tab0 WHERE NOT - 52 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT DISTINCT - col1 DIV - - 90 * + col2 + - - 92 AS col0 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT - col1 / - - 90 * + col2 + - - 92 AS col0 FROM tab0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2641
SELECT ALL + ( - - 3 ) + - COUNT( * ), - 80 + 84 DIV 15 * COUNT( * ) AS col0 FROM tab2
----
0
-65

skipif mysql # not compatible
query II rowsort label-2641
SELECT ALL + ( - - 3 ) + - COUNT ( * ), - 80 + 84 / 15 * COUNT ( * ) AS col0 FROM tab2
----
0
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL COUNT( * ) * - 91 AS col0 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL COUNT ( * ) * - 91 AS col0 FROM tab1
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2643
SELECT * FROM tab1 WHERE ( + col1 ) <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2643
SELECT * FROM tab1 WHERE ( + col1 ) <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT + - COUNT( * ), - 48 AS col2 FROM tab0 WHERE + col0 + - + col2 * col2 * - + 47 BETWEEN NULL AND - col1
----
0
-48

skipif mysql # not compatible
query II rowsort label-2644
SELECT + - COUNT ( * ), - 48 AS col2 FROM tab0 WHERE + col0 + - + col2 * col2 * - + 47 BETWEEN NULL AND - col1
----
0
-48

query I rowsort
SELECT - 58 * - col2 AS col1 FROM tab1
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + - + ( 52 ) FROM tab1 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + - + ( 52 ) FROM tab1 cor0
----
-43

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

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - ( - COUNT ( * ) ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab1 WHERE col2 <> - 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 * col1 + + col1 AS col0 FROM tab1 WHERE col0 > - - col1
----
210
2256
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT ALL 43 DIV + 26 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL 43 / + 26 FROM tab0
----
1
1
1

query I rowsort
SELECT + 74 - - + col0 + + col1 FROM tab2 cor0
----
171
215
216

onlyif mysql # aggregate syntax: 
query II rowsort label-2652
SELECT ALL COUNT( * ), 92 col0 FROM tab1 AS cor0
----
3
92

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2655
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1, + 53 FROM tab0 AS cor0
----
NULL
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2655
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1, + 53 FROM tab0 AS cor0
----
NULL
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT - col1 DIV 30 - + - 15 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1
1
3

skipif mysql # not compatible
query I rowsort label-2656
SELECT - col1 / 30 - + - 15 / + col1 AS col0 FROM tab1 AS cor0
----
-1
1
3

query I rowsort
SELECT - - col1 - + ( ( 45 ) ) + - col2 + col2 + - col2 + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1190
-3088
-3922

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col2 FROM tab2
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 16 * - ( + col2 ) * 99 * + col2, col0 * ( + col0 ) * - col0 * + col0 col0 FROM tab0
----
-15524784
-88529281
-158400
-57289761
-3499056
-50625

query II rowsort
SELECT - 29 * col1 * col0 AS col2, col0 AS col0 FROM tab1
----
-12325
85
-124033
91
-20706
51

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 95
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT + - COUNT( ALL + 52 ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - col0
----
0

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + - COUNT ( ALL + 52 ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - col0
----
0

query I rowsort
SELECT ( + - col0 ) AS col2 FROM tab2
----
-46
-64
-75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2668
SELECT ALL + - ( CAST( + - col2 AS SIGNED ) ), - col1 * + + col1 AS col1 FROM tab2 cor0 WHERE NOT 63 IS NULL
----
23
-2601
40
-5929
58
-4489

skipif mysql # not compatible
query II rowsort label-2668
SELECT ALL + - ( CAST ( + - col2 AS INTEGER ) ), - col1 * + + col1 AS col1 FROM tab2 cor0 WHERE NOT 63 IS NULL
----
23
-2601
40
-5929
58
-4489

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

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

query I rowsort
SELECT + ( + 77 ) AS col1 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT + - MAX( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2671
SELECT + - MAX ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT - - SUM( ALL - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2674
SELECT - - SUM ( ALL - col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT + CAST( + + ( + - 35 ) AS SIGNED ) + - col1 + - + CAST( - + 17 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-23
-32
-65

skipif mysql # not compatible
query I rowsort label-2675
SELECT + CAST ( + + ( + - 35 ) AS INTEGER ) + - col1 + - + CAST ( - + 17 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-23
-32
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 + - 4 + - - col0 * - col1 col1 FROM tab2 AS cor0
----
-2396
-4978
-5075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT DISTINCT 97 AS col0 FROM tab0 WHERE ( - 46 ) * - + col2 + - col0 + 60 * + col2 * 50 <= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT 97 AS col0 FROM tab0 WHERE ( - 46 ) * - + col2 + - col0 + 60 * + col2 * 50 <= - + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col0 FROM tab2 WHERE NOT - col2 IS NULL
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT + 75 + + COUNT( * ) * 14 AS col1 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-2679
SELECT + 75 + + COUNT ( * ) * 14 AS col1 FROM tab1
----
117

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

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

query I rowsort
SELECT DISTINCT - 11 * - col0 + - ( - 64 ) AS col0 FROM tab0 cor0
----
1021
1131
229

query I rowsort
SELECT ALL col1 + + ( + 12 ) FROM tab0 AS cor0
----
13
33
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT DISTINCT 53 - - SUM( col0 ) AS col2 FROM tab1
----
280

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT 53 - - SUM ( col0 ) AS col2 FROM tab1
----
280

query I rowsort
SELECT DISTINCT 92 + - - ( + 25 ) AS col0 FROM tab2
----
117

query I rowsort
SELECT DISTINCT col1 - + - col2 FROM tab2
----
117
125
74

query I rowsort
SELECT - col2 + + 15 AS col2 FROM tab2
----
-25
-43
-8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2688
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 74 ) * - CAST( NULL AS SIGNED ) - - - 25 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2688
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 74 ) * - CAST ( NULL AS INTEGER ) - - - 25 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 73 = col2 + + 20 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT ALL + 11 DIV + COUNT( * ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2690
SELECT ALL + 11 / + COUNT ( * ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2691
SELECT * FROM tab2 WHERE NOT - col0 IN ( - + col2 + + - col1, + CAST( NULL AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-2691
SELECT * FROM tab2 WHERE NOT - col0 IN ( - + col2 + + - col1, + CAST ( NULL AS INTEGER ) + + col2 )
----

query II rowsort
SELECT ALL col2 AS col0, ( + 22 ) FROM tab2
----
23
22
40
22
58
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT MIN( ALL - 32 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT MIN ( ALL - 32 ) FROM tab1
----
-32

query I rowsort
SELECT - AVG ( - - ( + - ( + col0 ) ) ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2695
SELECT ALL * FROM tab1 WHERE CAST( col2 AS SIGNED ) + + col0 * CAST( 92 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2695
SELECT ALL * FROM tab1 WHERE CAST ( col2 AS INTEGER ) + + col0 * CAST ( 92 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL COUNT( ALL - + 59 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL COUNT ( ALL - + 59 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 11 * - - col0 FROM tab1
----
1001
561
935

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT ALL - COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 69 <> col1
----
-3

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 69 <> col1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT ALL - - col2 AS col2, 38 * - col1 AS col1 FROM tab2 cor0
----
23
-1938
40
-2926
58
-2546

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 <= - - 53 + + col2 / + 82 )
----
97
1
99

query I rowsort
SELECT ALL - ( - col0 ) * col0 FROM tab1
----
2601
7225
8281

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

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL + col0 / 85 FROM tab0
----
0
1
1

query I rowsort
SELECT col2 * ( - col1 ) + + 97 AS col2 FROM tab2
----
-1076
-2983
-3789

query I rowsort
SELECT + + ( + 84 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 27 col2 FROM tab0
----
126
37
74

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2710
SELECT ALL - MAX( ALL + col1 ) AS col2, COUNT( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-77
3

skipif mysql # not compatible
query II rowsort label-2710
SELECT ALL - MAX ( ALL + col1 ) AS col2, COUNT ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-77
3

query I rowsort
SELECT ALL col2 * ( - + col2 ) + 23 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2 - + 86 * + - col0
----

query I rowsort
SELECT DISTINCT - col1 * col1 + - + col1 * + + col2 * - + 7 * col0 * + col1 + - 72 + + + col0 FROM tab0 AS cor0
----
2685264
32371917
67245

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT DISTINCT + COUNT( * ) * + 12 * - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + COUNT ( * ) * + 12 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2715
SELECT ALL COUNT( * ) / - + COUNT( * ) + + CAST( NULL AS SIGNED ), 4 AS col2 FROM tab1 cor0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-2715
SELECT ALL COUNT ( * ) / - + COUNT ( * ) + + CAST ( NULL AS INTEGER ), 4 AS col2 FROM tab1 cor0
----
NULL
4

query I rowsort
SELECT DISTINCT 43 * - - ( 68 ) + + 64 FROM tab0 AS cor0
----
2988

query I rowsort
SELECT ALL - col2 + - - col1 AS col2 FROM tab2
----
28
37
9

query I rowsort
SELECT ( + - col1 ) FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT ALL 17 DIV col1 AS col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL 17 / col1 AS col1 FROM tab1
----
0
1
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - 79 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2721
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND + 38 )
----

skipif mysql # not compatible
query III rowsort label-2721
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND + 38 )
----

query I rowsort
SELECT + 93 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 - - - col2 col1 FROM tab1
----
-21
-30
-58

query I rowsort
SELECT DISTINCT + ( - ( - - col2 ) ) FROM tab0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= 65
----

query I rowsort
SELECT ALL - 86 FROM tab0 cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-2727
SELECT - ( - 38 ), 71 + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
38
68

skipif mysql # not compatible
query II rowsort label-2727
SELECT - ( - 38 ), 71 + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
38
68

query I rowsort
SELECT DISTINCT - - 24 AS col1 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT + col1 * CAST( 35 AS SIGNED ) col1 FROM tab1 cor0
----
1645
175
490

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2729
SELECT + col1 * CAST ( 35 AS INTEGER ) col1 FROM tab1 cor0
----
1645
175
490

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + col2 * - - col1 AND - col2
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT 70 DIV + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT 70 / + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT + - SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT + - SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 * - col2 * - col1 col1 FROM tab2 AS cor0
----
15400
19430
5865

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - ( 15 ) * + 22 + + - COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-336

skipif mysql # not compatible
query I rowsort label-2735
SELECT - ( 15 ) * + 22 + + - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-336

query I rowsort
SELECT + 89 * + col0 AS col0 FROM tab2
----
4094
5696
6675

query I rowsort
SELECT + ( + - col1 ) AS col2 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 39 AS col2 FROM tab0
----
-1833
-3861
-390

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2740
SELECT * FROM tab1 WHERE NOT 83 + + col1 + col0 * - CAST( NULL AS SIGNED ) * 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2740
SELECT * FROM tab1 WHERE NOT 83 + + col1 + col0 * - CAST ( NULL AS INTEGER ) * 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2, + col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

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

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

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col2 FROM tab1 WHERE NOT - 52 IS NULL
----
14
47
5

query I rowsort
SELECT 52 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 47 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT COUNT( * ) * - 69 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-2746
SELECT COUNT ( * ) * - 69 FROM tab2
----
-207

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 5 + - col1 * + col2 + + 96 * - - 77 * - + 78 col1 FROM tab0 cor0
----
-576670
-576781
-580378

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 95 BETWEEN - col2 AND - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2751
SELECT - ( col0 ) col2 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( - 45 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2751
SELECT - ( col0 ) col2 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( - 45 )
----

query I rowsort
SELECT DISTINCT - col2 + + - col1 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = - col1
----

query I rowsort
SELECT ALL + - col1 + - 81 FROM tab1 AS cor0
----
-128
-86
-95

query I rowsort
SELECT - col2 + col0 * 91 FROM tab2 AS cor0
----
4163
5784
6767

query I rowsort
SELECT DISTINCT - col0 + - 15 - - col0 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT + - col0 + - + 12 AS col0 FROM tab0 AS cor0
----
-109
-27
-99

query I rowsort
SELECT ALL col1 + - 65 + - - 57 * - col0 * + col1 + + + 79 FROM tab1 cor0 WHERE NULL IS NULL
----
-24206
-243728
-40670

query I rowsort
SELECT + + ( + 67 ) + - col0 FROM tab0 cor0
----
-20
-30
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND col2
----

query I rowsort
SELECT - col0 + + col2 + - col1 FROM tab1 cor0
----
-31
-70
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL COUNT( * ) + - - 51 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL COUNT ( * ) + - - 51 FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL 82 - + COUNT( * ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL 82 - + COUNT ( * ) FROM tab2
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT DISTINCT - COUNT( * ) - SUM( DISTINCT col2 ) FROM tab2
----
-124

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT - COUNT ( * ) - SUM ( DISTINCT col2 ) FROM tab2
----
-124

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 < - 34 * col2 * + 11 OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2768
SELECT ALL COUNT ( * ) + - 70 col2 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT ALL 73 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2770
SELECT - CAST( NULL AS SIGNED ) / - 24 * 51, COUNT( * ) AS col1, + 27 AS col1 FROM tab0
----
NULL
3
27

skipif mysql # not compatible
query III rowsort label-2770
SELECT - CAST ( NULL AS INTEGER ) / - 24 * 51, COUNT ( * ) AS col1, + 27 AS col1 FROM tab0
----
NULL
3
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT - SUM( ALL 73 ) AS col1 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-2771
SELECT - SUM ( ALL 73 ) AS col1 FROM tab0
----
-219

query I rowsort
SELECT ALL + 3 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2774
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT 63 NOT BETWEEN + col0 AND + col1
----

skipif mysql # not compatible
query I rowsort label-2774
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT 63 NOT BETWEEN + col0 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col0 col1 FROM tab0 AS cor0 WHERE NOT 19 IS NULL
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT - - 12 AS col2 FROM tab1 AS cor0
----
12

query I rowsort
SELECT + 88 * 73 AS col2 FROM tab0 AS cor0
----
6424
6424
6424

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

query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab1 WHERE NOT NULL > - 28 * - - 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL MAX( DISTINCT + - 59 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL MAX ( DISTINCT + - 59 ) FROM tab0
----
-59

query I rowsort
SELECT col2 * 38 AS col0 FROM tab1
----
2242
2584
3648

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2782
SELECT ALL - 39 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - 39 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 63 * + col1 AS col1 FROM tab0 cor0
----
-1323
-5103
-63

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + ( + col2 ) + col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND 54
----

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

query I rowsort
SELECT DISTINCT - - col1 * + - 85 FROM tab2 AS cor0
----
-4335
-5695
-6545

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE NOT + col2 < + col0
----
96

query I rowsort
SELECT - - 41 * - col2 + + col0 + col2 * - col2 / - col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 90 * col0 AND - - col2
----

query I rowsort
SELECT DISTINCT col0 * - + col0 * + 3 AS col1 FROM tab1 AS cor0
----
-21675
-24843
-7803

onlyif mysql # DIV for integer division: 
query I rowsort label-2791
SELECT ALL - - 47 DIV - col0 - - - 71 + + col0 AS col1 FROM tab0 AS cor0
----
-59
16
26

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - - 47 / - col0 - - - 71 + + col0 AS col1 FROM tab0 AS cor0
----
-59
16
26

query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10

query I rowsort
SELECT DISTINCT 82 + + - 89 AS col0 FROM tab2 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT + MIN( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2794
SELECT + MIN ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT + 33 * + col2 FROM tab2
----
1320
1914
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( - col2 ) col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT + ( MIN( + - 24 ) ) * 65 FROM tab0
----
-1560

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + ( MIN ( + - 24 ) ) * 65 FROM tab0
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL 39 * - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL 39 * - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT ALL + - 28 DIV - col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + - 28 / - col2 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT SUM( DISTINCT - 27 ) AS col2 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2800
SELECT SUM ( DISTINCT - 27 ) AS col2 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE col0 * - col2 IN ( + 2, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT DISTINCT + 55 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + 55 / - col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT ALL 71 DIV + col0 + col2 FROM tab0 AS cor0
----
10
51
99

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL 71 / + col0 + col2 FROM tab0 AS cor0
----
10
51
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2804
SELECT DISTINCT ( COUNT( * ) ), MAX( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
3
-46

skipif mysql # not compatible
query II rowsort label-2804
SELECT DISTINCT ( COUNT ( * ) ), MAX ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
3
-46

query I rowsort
SELECT - col2 * 44 * - 41 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2806
SELECT + COUNT( * ) * + COUNT( * ) DIV MIN( DISTINCT + 93 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT + COUNT ( * ) * + COUNT ( * ) / MIN ( DISTINCT + 93 ) FROM tab2 AS cor0
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2809
SELECT DISTINCT + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2809
SELECT DISTINCT + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

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

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

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

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

query II rowsort
SELECT - col0 AS col0, + 52 * + col2 AS col1 FROM tab0 AS cor0
----
-15
2444
-87
520
-97
5148

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN + ( - - 52 ) AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2814
SELECT ALL - col0 * - col0 + 28 + + col0 DIV - + col1 AS col2 FROM tab2 AS cor0
----
2144
4124
5652

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - col0 * - col0 + 28 + + col0 / - + col1 AS col2 FROM tab2 AS cor0
----
2144
4124
5652

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 13 BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT - + COUNT( DISTINCT - col1 ) + 21 AS col0 FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2817
SELECT - + COUNT ( DISTINCT - col1 ) + 21 AS col0 FROM tab2 cor0
----
18

query I rowsort
SELECT ALL - 41 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 - + - ( - 44 ) IS NULL
----
-3321
-41
-861

query I rowsort
SELECT col1 + + 97 * + col0 FROM tab1 AS cor0
----
4961
8250
8874

onlyif mysql # aggregate syntax: 
query II rowsort label-2820
SELECT + COUNT( * ) + + 39 AS col0, SUM( + + col1 ) FROM tab0 AS cor0
----
42
103

skipif mysql # not compatible
query II rowsort label-2820
SELECT + COUNT ( * ) + + 39 AS col0, SUM ( + + col1 ) FROM tab0 AS cor0
----
42
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT - SUM( + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2821
SELECT - SUM ( + col2 ) FROM tab2
----
-121

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NULL <= + 49
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL > col1 * + - col0 * col2 * col0 * + col0 * + + col0
----

query I rowsort
SELECT col0 + + col0 + 84 / - 1 / + - col0 FROM tab1 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT 77 - + - 93 AS col1 FROM tab0
----
170
170
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 - + col1 col1 FROM tab0
----
144
7548
9408

query I rowsort
SELECT DISTINCT ( 87 ) FROM tab1 AS cor0
----
87

query I rowsort
SELECT - col1 * + + 13 FROM tab0 AS cor0
----
-1053
-13
-273

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 7 / + col1 * - - 10 + 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

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

skipif mysql # not compatible
query II rowsort label-2832
SELECT - + COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + + col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + SUM( DISTINCT - 91 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * - - 31 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT - 91 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * - - 31 * + col1 IS NULL
----
NULL

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

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

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2837
SELECT ALL col1 * col0 col1, + 3 DIV col0 + - 88 AS col0 FROM tab0
----
1215
-88
1827
-88
97
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2837
SELECT ALL col1 * col0 col1, + 3 / col0 + - 88 AS col0 FROM tab0
----
1215
-88
1827
-88
97
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2838
SELECT + ( - col0 ) DIV - + ( + col1 ) FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2838
SELECT + ( - col0 ) / - + ( + col1 ) FROM tab0
----
0
4
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT DISTINCT + 71 DIV + ( - col1 ) FROM tab0
----
-3
-71
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT + 71 / + ( - col1 ) FROM tab0
----
-3
-71
0

query I rowsort
SELECT ALL - col1 * - - 58 * col1 * - 33 AS col2 FROM tab0
----
12557754
1914
844074

onlyif mysql # DIV for integer division: 
query I rowsort label-2841
SELECT ALL + ( + 97 ) DIV 2 AS col1 FROM tab2
----
48
48
48

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + ( + 97 ) / 2 AS col1 FROM tab2
----
48
48
48

query I rowsort
SELECT + ( - + 7 ) FROM tab0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL - SUM( ALL + ( + + col2 ) ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - SUM ( ALL + ( + + col2 ) ) AS col0 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + 27 < col1
----
3

skipif mysql # not compatible
query I rowsort label-2844
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + 27 < col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT DISTINCT - col2 DIV - col2 + + col2 - + + col2 AS col2 FROM tab1 AS cor0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> col0 * - + 24
----

skipif mysql # not compatible
query I rowsort label-2846
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> col0 * - + 24
----

query I rowsort
SELECT col2 + + - 70 FROM tab2
----
-12
-30
-47

query I rowsort
SELECT - - 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 + - col1 col0 FROM tab1 WHERE + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL ( - + MAX( ALL + - 81 ) ) - + 80 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL ( - + MAX ( ALL + - 81 ) ) - + 80 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - ( col1 ) FROM tab0 cor0 WHERE + 54 * + col2 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col1 * 15 + - col2 FROM tab2 AS cor0
----
1115
742
947

query I rowsort
SELECT - - 86 - - col2 FROM tab2 AS cor0
----
109
126
144

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN col0 AND NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab0 WHERE col1 IS NOT NULL
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT + COUNT ( + + col0 ) FROM tab0
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT MIN( DISTINCT + + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2859
SELECT MIN ( DISTINCT + + col0 ) AS col1 FROM tab0
----
15

query II rowsort
SELECT ALL - col2 * + col2 AS col2, - 41 FROM tab1 cor0
----
-3481
-41
-4624
-41
-9216
-41

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT + SUM( + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2863
SELECT + SUM ( + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT + + 6 * - + SUM( col1 ) AS col2 FROM tab1 cor0
----
-396

skipif mysql # not compatible
query I rowsort label-2864
SELECT + + 6 * - + SUM ( col1 ) AS col2 FROM tab1 cor0
----
-396

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 91 * - - col1 * - col1 + - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2866
SELECT DISTINCT - - col2, - col2 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE 42 BETWEEN + 76 + + col0 AND NULL
----

skipif mysql # not compatible
query II rowsort label-2866
SELECT DISTINCT - - col2, - col2 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE 42 BETWEEN + 76 + + col0 AND NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 - col2 * - - col0 + ( - + ( col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT - MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2870
SELECT - MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT DISTINCT + + COUNT( * ) + 64 + - 34 + + SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
218

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT + + COUNT ( * ) + 64 + - 34 + + SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
218

query I rowsort
SELECT DISTINCT - 76 * + col1 + + col0 AS col0 FROM tab0
----
-1509
-6141
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT DISTINCT - 43 + - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - 43 + - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 + col1 + - col1 * - 63 * ( + 33 ) + col2 AS col0 FROM tab2
----
106149
139493
160264

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

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

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

query II rowsort
SELECT - 9 * col2 AS col0, 84 + - col2 FROM tab2
----
-207
61
-360
44
-522
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 72 IS NULL
----

query I rowsort
SELECT 75 * + col0 AS col2 FROM tab2 AS cor0
----
3450
4800
5625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT DISTINCT + MIN( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 * - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT - + 91 AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-91
-91
-91

query I rowsort
SELECT 34 + col1 * + + col2 + col1 FROM tab1
----
1392
3277
334

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

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

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

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

query I rowsort
SELECT DISTINCT ( + - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2889
SELECT + col1 DIV - CAST( - 18 AS SIGNED ) AS col2, - col1 AS col1 FROM tab0
----
0
-1
1
-21
4
-81

skipif mysql # not compatible
query II rowsort label-2889
SELECT + col1 / - CAST ( - 18 AS INTEGER ) AS col2, - col1 AS col1 FROM tab0
----
0
-1
1
-21
4
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT DISTINCT - COUNT( * ) col1 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2890
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL - MIN( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - MIN ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + col2 * - 51 FROM tab1 AS cor0
----
-3009
-3468
-4896

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT 64 >= NULL
----

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

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

query I rowsort
SELECT ALL + col1 * + 1 + ( 95 ) AS col2 FROM tab1 cor0
----
100
109
142

query I rowsort
SELECT + 39 * - 5 AS col2 FROM tab0 AS cor0
----
-195
-195
-195

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 / - col0 ) < ( col0 * + col1 )
----

query I rowsort
SELECT + col0 * - 22 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1914
-2134
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT + MAX( - ( col1 ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2899
SELECT + MAX ( - ( col1 ) ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab2
----
-74

query I rowsort
SELECT + col2 * + 69 AS col1 FROM tab0
----
3243
6831
690

query I rowsort
SELECT DISTINCT 21 + col2 FROM tab0
----
120
31
68

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

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL < ( 16 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col1 FROM tab1 WHERE - 5 <= col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2906
SELECT * FROM tab1 WHERE - 33 NOT BETWEEN + CAST( NULL AS SIGNED ) AND ( - col0 * 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2906
SELECT * FROM tab1 WHERE - 33 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND ( - col0 * 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 58 ) BETWEEN ( NULL ) AND col1 + 81
----

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

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT 59 + col2 DIV - col1 AS col2 FROM tab0
----
-40
59
59

skipif mysql # not compatible
query I rowsort label-2910
SELECT 59 + col2 / - col1 AS col2 FROM tab0
----
-40
59
59

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL BETWEEN 45 AND - 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2912
SELECT ( - col0 ) + + col1 DIV col0 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2912
SELECT ( - col0 ) + + col1 / col0 AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col2 * 9 FROM tab2
----
-207
-360
-522

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT col1 + + CAST( + col1 + - col0 AS SIGNED ) FROM tab0
----
-45
-95
147

skipif mysql # not compatible
query I rowsort label-2915
SELECT col1 + + CAST ( + col1 + - col0 AS INTEGER ) FROM tab0
----
-45
-95
147

query III rowsort
SELECT * FROM tab1 WHERE ( 30 * 37 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col2 / col1 )
----

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

query I rowsort
SELECT DISTINCT 16 * 27 FROM tab0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT COUNT( col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2920
SELECT COUNT ( col0 ) FROM tab1
----
3

query I rowsort
SELECT + 5 * + col1 FROM tab2
----
255
335
385

query I rowsort
SELECT DISTINCT - col0 + 58 FROM tab1
----
-27
-33
7

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NULL = - col2 + - 52
----

query I rowsort
SELECT DISTINCT - col1 * 67 FROM tab2 AS cor0
----
-3417
-4489
-5159

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

query I rowsort
SELECT col2 + ( - ( col0 ) ) FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL - COUNT( * ) * 57 AS col0 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - COUNT ( * ) * 57 AS col0 FROM tab1 AS cor0
----
-171

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2929
SELECT ALL + 18 DIV COUNT( * ) - + MIN( DISTINCT - 46 ) * COUNT( * ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + 18 / COUNT ( * ) - + MIN ( DISTINCT - 46 ) * COUNT ( * ) FROM tab1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2930
SELECT ALL * FROM tab2 WHERE ( 79 ) = - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2930
SELECT ALL * FROM tab2 WHERE ( 79 ) = - CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT + 7 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0 WHERE - col1 <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2932
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0 WHERE - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT COUNT( * ) - - 92 FROM tab2 AS cor0 WHERE - col0 * + ( - ( - col0 ) ) BETWEEN + col2 AND col2
----
92

skipif mysql # not compatible
query I rowsort label-2933
SELECT COUNT ( * ) - - 92 FROM tab2 AS cor0 WHERE - col0 * + ( - ( - col0 ) ) BETWEEN + col2 AND col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT DISTINCT + 16 DIV + col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT + 16 / + col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + col2 ) >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT col2 DIV + ( + 48 ) FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2936
SELECT col2 / + ( + 48 ) FROM tab0 cor0
----
0
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2937
SELECT ALL COUNT( * ) DIV + 27 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL COUNT ( * ) / + 27 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT + 53 DIV + col0 + + col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24
40
58

skipif mysql # not compatible
query I rowsort label-2938
SELECT + 53 / + col0 + + col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT - + 46 DIV - col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2939
SELECT - + 46 / - col0 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2940
SELECT ALL * FROM tab1 WHERE NOT - CAST( col2 AS SIGNED ) = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2940
SELECT ALL * FROM tab1 WHERE NOT - CAST ( col2 AS INTEGER ) = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT - SUM( 32 ) FROM tab1 WHERE NOT 43 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-2941
SELECT - SUM ( 32 ) FROM tab1 WHERE NOT 43 IS NULL
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT COUNT( * ) * 84 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-2942
SELECT COUNT ( * ) * 84 FROM tab2
----
252

query I rowsort
SELECT col2 * + + col2 * + col2 AS col0 FROM tab0
----
1000
103823
970299

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * col0 NOT BETWEEN - 79 AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL + MIN( ALL - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL + MIN ( ALL - col1 ) FROM tab0
----
-81

query I rowsort
SELECT - 80 FROM tab0 WHERE NOT col2 * col0 <> NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT + 49 * + + COUNT( * ) FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + 49 * + + COUNT ( * ) FROM tab0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT - - MAX( DISTINCT - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT - - MAX ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 + - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT + ( + + 12 ) * - AVG ( DISTINCT 65 / + col0 - + 29 * + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT + ( + + 12 ) * - AVG ( DISTINCT 65 / + col0 - + 29 * + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT + 71 + COUNT( * ) + COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT + 71 + COUNT ( * ) + COUNT ( * ) FROM tab1
----
77

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( col2 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 90 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2957
SELECT + CAST( - - ( + 16 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
16
16
16

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

query I rowsort
SELECT + + col2 * + - col0 - col1 AS col2 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT DISTINCT col2 * - col2 + - 61 AS col0 FROM tab0 AS cor0
----
-161
-2270
-9862

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

query I rowsort
SELECT 82 + 33 FROM tab1 AS cor0
----
115
115
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT - col1 + + CAST( - col2 AS SIGNED ) col2 FROM tab2 cor0
----
-117
-125
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2962
SELECT - col1 + + CAST ( - col2 AS INTEGER ) col2 FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT + 2 * + 69 AS col0 FROM tab1 AS cor0
----
138

query I rowsort
SELECT DISTINCT 96 FROM tab0 AS cor0 WHERE 84 IS NULL
----

query I rowsort
SELECT col1 + 49 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
130
50
70

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( - 32 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - COUNT( col2 ) AS col2 FROM tab0 WHERE - + col0 * + - col1 - - col0 * + col0 = ( col0 + 0 * 59 )
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT - COUNT ( col2 ) AS col2 FROM tab0 WHERE - + col0 * + - col1 - - col0 * + col0 = ( col0 + 0 * 59 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( + col2 ) ) + - 89 col1 FROM tab1
----
-21
-30
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT - 83 * - - COUNT( * ) AS col0 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-2969
SELECT - 83 * - - COUNT ( * ) AS col0 FROM tab1
----
-249

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2970
SELECT + 62 DIV + COUNT( * ) AS col1, - COUNT( * ) DIV + 94 FROM tab1
----
20
0

skipif mysql # not compatible
query II rowsort label-2970
SELECT + 62 / + COUNT ( * ) AS col1, - COUNT ( * ) / + 94 FROM tab1
----
20
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2971
SELECT - COUNT ( * ) * - 56 col1 FROM tab1 WHERE NULL >= col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( - + 39 ) ) * + col0 col1 FROM tab1
----
-1989
-3315
-3549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col2 + ( + col1 ) - + CAST( NULL AS SIGNED ) * col0 )
----

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

query I rowsort
SELECT - - 12 * + 1 * col0 FROM tab0 AS cor0
----
1044
1164
180

query I rowsort
SELECT col1 * + + col2 - + col1 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
2180
5563
8169

query I rowsort
SELECT DISTINCT + + col1 + + col1 AS col2 FROM tab0 AS cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + - ( + 66 ) col1 FROM tab1 cor0
----
-19
-52
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2979
SELECT MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - col2 * - 46 AS col1 FROM tab2 AS cor0
----
1058
1840
2668

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - col2 + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT DISTINCT col0 DIV - + col1 AS col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT col0 / - + col1 AS col1 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT ALL + col1 DIV - 35 AS col0 FROM tab0 AS cor0
----
-2
0
0

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

query I rowsort
SELECT ALL - 29 AS col2 FROM tab1
----
-29
-29
-29

query II rowsort
SELECT ALL + 46, ( - 12 ) AS col0 FROM tab1
----
46
-12
46
-12
46
-12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN col2 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 69 AS col0, + 11 AS col1 FROM tab0
----
-69
11

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

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

query I rowsort
SELECT ALL - col2 * col2 * + col2 AS col0 FROM tab2
----
-12167
-195112
-64000

query I rowsort
SELECT + - 99 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-99
-99
-99

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 61 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT 24 * + COUNT( * ) + + COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-2994
SELECT 24 * + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
75

query I rowsort
SELECT + col2 FROM tab0 WHERE - - col2 * - + col0 * - 93 < - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / - 32 * - - col0 IS NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 73 = ( + + 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL - 23 AS col1 FROM tab1 AS cor0 WHERE + 12 < - + col1
----

query I rowsort
SELECT ALL - + col2 + - + 35 AS col0 FROM tab1 AS cor0
----
-103
-131
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT COUNT( * ) + + 80 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT COUNT ( * ) + + 80 FROM tab0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + COUNT( * ) + + + 80 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-3005
SELECT + COUNT ( * ) + + + 80 FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT DISTINCT + 99 - - - COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT + 99 - - - COUNT ( * ) FROM tab1
----
96

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

query I rowsort
SELECT DISTINCT - 72 * - + col1 FROM tab0
----
1512
5832
72

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * - 86 ) NOT BETWEEN + col0 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT - - COUNT( ALL + 3 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT - - COUNT ( ALL + 3 ) FROM tab0 cor0
----
3

query I rowsort
SELECT + + 6 * + - col0 FROM tab1 AS cor0
----
-306
-510
-546

query I rowsort
SELECT DISTINCT 57 * 65 FROM tab0
----
3705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3014
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 FROM tab1 WHERE ( NULL ) BETWEEN - 7 AND ( - - col0 / col2 )
----

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 FROM tab1 WHERE ( NULL ) BETWEEN - 7 AND ( - - col0 / col2 )
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ALL COUNT( * ) * - SUM( DISTINCT - + col2 ) FROM tab0 cor0
----
468

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT - + col2 ) FROM tab0 cor0
----
468

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3018
SELECT - + col2 * col0, - CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
-4896
NULL
-5015
NULL
-6188
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3018
SELECT - + col2 * col0, - CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
-4896
NULL
-5015
NULL
-6188
NULL

query II rowsort
SELECT ALL - ( + - col2 ), col1 + + ( + - col2 ) AS col0 FROM tab2 AS cor0 WHERE ( - 90 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - COUNT( * ) * - COUNT( + col0 ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3021
SELECT - COUNT ( * ) * - COUNT ( + col0 ) AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT DISTINCT + - col1 * - + col1 + - - ( - col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
-98
231
2754

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3024
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - 40 ) NOT IN ( + col1, CAST( NULL AS SIGNED ), + + col1 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-3024
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - 40 ) NOT IN ( + col1, CAST ( NULL AS INTEGER ), + + col1 * + col0 )
----

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

query I rowsort
SELECT - - col1 FROM tab1 WHERE NOT col1 >= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3027
SELECT DISTINCT + col2 * - + col2 DIV col2 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + col2 * - + col2 / col2 AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL 13 * col2 AS col2 FROM tab1
----
1248
767
884

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT DISTINCT - - col2 DIV + col2 + col0 * 94 FROM tab2 WHERE + col0 * - col2 NOT BETWEEN ( - 43 * + col0 - + 83 ) AND ( NULL )
----
7051

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT - - col2 / + col2 + col0 * 94 FROM tab2 WHERE + col0 * - col2 NOT BETWEEN ( - 43 * + col0 - + 83 ) AND ( NULL )
----
7051

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3032
SELECT - 0 * - col0 - + 98 DIV - - 36 AS col2 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3032
SELECT - 0 * - col0 - + 98 / - - 36 AS col2 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3033
SELECT * FROM tab2 cor0 WHERE - 75 < + col1 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3033
SELECT * FROM tab2 cor0 WHERE - 75 < + col1 * + - CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-3034
SELECT - + MAX ( DISTINCT 17 ) AS col2 FROM tab2 AS cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query III rowsort
SELECT * FROM tab1 WHERE + 1 = - col0
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + 74 * + col1 + - col2 * + col0 / col2 * ( + 94 ) + + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + col2 + col1 + + 62, + 39 / + - ( col0 ) )
----

query I rowsort
SELECT - col2 * + - col0 - ( + col1 ) * + + col1 + - + ( - ( + + col2 ) ) FROM tab0 AS cor0
----
-5809
439
9701

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - - col1 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT col0 + + + 23 AS col2 FROM tab1 cor0
----
108
114
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT 89 + + col0 DIV ( + col0 ) + + col2 AS col2 FROM tab0 AS cor0
----
100
137
189

skipif mysql # not compatible
query I rowsort label-3043
SELECT 89 + + col0 / ( + col0 ) + + col2 AS col2 FROM tab0 AS cor0
----
100
137
189

query I rowsort
SELECT ALL 3 * + 36 * + col1 - col0 + ( col2 ) AS col2 FROM tab2
----
5485
7219
8292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3045
SELECT ALL - 12 + CAST( - MAX( - col2 ) AS SIGNED ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL - 12 + CAST ( - MAX ( - col2 ) AS INTEGER ) FROM tab2
----
11

query I rowsort
SELECT + col2 - ( - col0 ) FROM tab1
----
144
147
159

query I rowsort
SELECT ALL 24 - col1 AS col1 FROM tab1
----
-23
10
19

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 7 * 29 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL < - 37
----

query II rowsort
SELECT DISTINCT + col0 AS col0, 76 - + col1 FROM tab0
----
15
-5
87
55
97
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 WHERE NOT - 60 / + + col2 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT - COUNT( DISTINCT + 46 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3053
SELECT - COUNT ( DISTINCT + 46 ) AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3054
SELECT DISTINCT 7 AS col1, MAX( DISTINCT - 25 ) FROM tab1 AS cor0
----
7
-25

skipif mysql # not compatible
query II rowsort label-3054
SELECT DISTINCT 7 AS col1, MAX ( DISTINCT - 25 ) FROM tab1 AS cor0
----
7
-25

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - 40 + - ( + 33 ) AND 93
----

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

query II rowsort
SELECT + col1 AS col1, col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 72 col2 FROM tab2 AS cor0
----
3312
4608
5400

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

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

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

query I rowsort
SELECT DISTINCT col2 * + + col1 * - 89 AS col0 FROM tab2
----
-104397
-274120
-345854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT - CAST( NULL AS SIGNED ) / + + col2 col0 FROM tab0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL col2 / - CAST ( + 99 AS INTEGER ) FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 40 + - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( + ( - + col0 ) ) AS col0 FROM tab0
----
-15
-87
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3068
SELECT DISTINCT * FROM tab1 cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3068
SELECT DISTINCT * FROM tab1 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT - ( col1 ) * - 95 * - col1 AS col1 FROM tab1 cor0
----
-18620
-209855
-2375

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 + - ( + col0 ) + + - 60 col0 FROM tab2 AS cor0
----
-26
-44
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT + COUNT( * ) - - - 29 AS col0 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3073
SELECT + COUNT ( * ) - - - 29 AS col0 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT DISTINCT col0 + + col2 * 1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - col1 - col1 - - col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 47 + + ( 53 ) * col2 AS col2, - col2 col0 FROM tab0
----
2444
-47
483
-10
5200
-99

query I rowsort
SELECT ALL ( + + col0 ) + - + col1 AS col2 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3078
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) DIV - - MAX( - - 56 ) - - - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) / - - MAX ( - - 56 ) - - - COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col0 * - + col1 * - col2 AS col1 FROM tab1
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query II rowsort label-3080
SELECT DISTINCT - col2 AS col0, + 93 DIV ( col1 ) FROM tab2 AS cor0
----
-23
1
-40
1
-58
1

skipif mysql # not compatible
query II rowsort label-3080
SELECT DISTINCT - col2 AS col0, + 93 / ( col1 ) FROM tab2 AS cor0
----
-23
1
-40
1
-58
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3081
SELECT COUNT( * ) AS col1, - 41 * 32 FROM tab1 AS cor0
----
3
-1312

skipif mysql # not compatible
query II rowsort label-3081
SELECT COUNT ( * ) AS col1, - 41 * 32 FROM tab1 AS cor0
----
3
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT SUM( DISTINCT - 55 ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT SUM ( DISTINCT - 55 ) FROM tab2 AS cor0
----
-55

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

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

query I rowsort
SELECT 85 * - ( - col1 ) FROM tab2
----
4335
5695
6545

query I rowsort
SELECT DISTINCT 18 * + col0 FROM tab0
----
1566
1746
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 LEFT OUTER JOIN tab1 cor1 ON NOT NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3086
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 LEFT OUTER JOIN tab1 cor1 ON NOT NULL IS NULL
----
3

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NOT - - 0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT + + 72 AS col0 FROM tab0 AS cor0
----
72
72
72

query II rowsort
SELECT ALL - + col2 * + ( - col1 ) AS col2, + 31 AS col2 FROM tab1 AS cor0
----
1344
31
295
31
3196
31

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

query I rowsort
SELECT DISTINCT - ( - col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

query I rowsort
SELECT + 38 * - 44 + - 75 FROM tab2 AS cor0
----
-1747
-1747
-1747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3095
SELECT ALL CAST( - MIN( 64 ) AS SIGNED ) AS col2 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL CAST ( - MIN ( 64 ) AS INTEGER ) AS col2 FROM tab1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3096
SELECT ALL CAST( NULL AS SIGNED ) + + 11 * + MIN( - - col2 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL CAST ( NULL AS INTEGER ) + + 11 * + MIN ( - - col2 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 86 + + col1 + - - 48 * col0 * 86 FROM tab0
----
359243
400503
62087

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL + MAX( ALL 24 ) AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL + MAX ( ALL 24 ) AS col2 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - MAX( DISTINCT + 31 ) AS col2 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT - MAX ( DISTINCT + 31 ) AS col2 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL <> - col1 )
----

query I rowsort
SELECT col0 * + - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3104
SELECT - CAST( + - COUNT( + + col2 ) AS SIGNED ) * - COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3104
SELECT - CAST ( + - COUNT ( + + col2 ) AS INTEGER ) * - COUNT ( * ) FROM tab2 cor0
----
-9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT - COUNT( DISTINCT - + 14 ) col0 FROM tab0 cor0 WHERE col1 IN ( - 14, + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3107
SELECT - COUNT ( DISTINCT - + 14 ) col0 FROM tab0 cor0 WHERE col1 IN ( - 14, + col0 )
----
0

query I rowsort
SELECT ( + - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3109
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) > - + col0
----

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) > - + col0
----

query I rowsort
SELECT col1 FROM tab2 WHERE NULL = ( NULL ) AND NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( col0 ) - col2 * - 17 col2 FROM tab1
----
1428
2346
5433

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

query I rowsort
SELECT DISTINCT + - 28 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - AVG ( ALL 92 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 99 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + + 28 BETWEEN + 84 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT DISTINCT + CAST( 24 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-1944
-24
-504

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT + CAST ( 24 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-1944
-24
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT ALL - CAST( - col1 AS SIGNED ) * - col0 + - ( 31 ) * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-2391
-3119
-7166

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL - CAST ( - col1 AS INTEGER ) * - col0 + - ( 31 ) * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-2391
-3119
-7166

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3119
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 31 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 31 AS col0 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + SUM( ALL + 16 ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3121
SELECT + SUM ( ALL + 16 ) AS col2 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT MIN( - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3122
SELECT MIN ( - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - - 29 AS col2 FROM tab2 AS cor0
----
29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + - + 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL MIN( ALL - + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL MIN ( ALL - + col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3126
SELECT DISTINCT - - COUNT( * ), - 61 AS col0 FROM tab2 AS cor0
----
3
-61

skipif mysql # not compatible
query II rowsort label-3126
SELECT DISTINCT - - COUNT ( * ), - 61 AS col0 FROM tab2 AS cor0
----
3
-61

query I rowsort
SELECT ALL + col1 + + ( 84 ) FROM tab1 AS cor0
----
131
89
98

query I rowsort
SELECT ALL col1 + - 79 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3129
SELECT + COUNT( ALL + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3129
SELECT + COUNT ( ALL + CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3130
SELECT ALL + CAST( NULL AS SIGNED ) + + 28 / + + SUM( col0 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL + CAST ( NULL AS INTEGER ) + + 28 / + + SUM ( col0 ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE - + 81 <= NULL
----

query I rowsort
SELECT 92 * col1 AS col0 FROM tab0
----
1932
7452
92

query I rowsort
SELECT DISTINCT - - col1 - - col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 60 FROM tab0 WHERE col0 * 47 - 37 NOT BETWEEN + - 47 + - col0 AND - - col1 * + col1 * + 46
----
-60

query I rowsort
SELECT - 34 + col0 - - - 90 * - - col2 AS col0 FROM tab2
----
-2058
-3570
-5179

query I rowsort
SELECT ALL - + col1 * + - 36 FROM tab2 AS cor0
----
1836
2412
2772

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + 37 + + 79 * + - 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT ALL + col2 * col0 DIV + 89 + - col2 FROM tab1 AS cor0
----
-3
-41
1

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + col2 * col0 / + 89 + - col2 FROM tab1 AS cor0
----
-3
-41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT + SUM( - + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3139
SELECT + SUM ( - + col2 ) AS col1 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT SUM( + 45 ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-3140
SELECT SUM ( + 45 ) FROM tab1
----
135

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - + col0 AND - 13
----

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

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

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

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

query I rowsort
SELECT DISTINCT + - 2 - + col0 FROM tab0 cor0
----
-17
-89
-99

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3146
SELECT DISTINCT ( - 87 ) * + + col0, CAST( NULL AS SIGNED ) * + + 28 - ( col0 ) AS col2 FROM tab2 AS cor0
----
-4002
NULL
-5568
NULL
-6525
NULL

skipif mysql # not compatible
query II rowsort label-3146
SELECT DISTINCT ( - 87 ) * + + col0, CAST ( NULL AS INTEGER ) * + + 28 - ( col0 ) AS col2 FROM tab2 AS cor0
----
-4002
NULL
-5568
NULL
-6525
NULL

query I rowsort
SELECT + + col1 - 67 AS col0 FROM tab0 cor0
----
-46
-66
14

query I rowsort
SELECT col2 - + - col1 AS col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3149
SELECT DISTINCT - MAX( DISTINCT + 3 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - MAX ( DISTINCT + 3 ) / - COUNT ( * ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, 34 * - + 37 + + - ( - col0 ) col2 FROM tab0 AS cor0
----
10
-1171
47
-1243
99
-1161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT + + CAST( NULL AS SIGNED ) / - - col2 * + - ( + + 44 ) * + + 25 * - ( + 86 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL > + col1
----
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL > + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3153
SELECT ALL 6 * - - CAST( NULL AS SIGNED ) * - + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col1 * + + col1 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query II rowsort label-3155
SELECT DISTINCT COUNT( * ) * + 91 * - MAX( ALL - 26 ) AS col1, COUNT( * ) FROM tab2
----
7098
3

skipif mysql # not compatible
query II rowsort label-3155
SELECT DISTINCT COUNT ( * ) * + 91 * - MAX ( ALL - 26 ) AS col1, COUNT ( * ) FROM tab2
----
7098
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT ALL CAST( NULL AS SIGNED ) / + - 31 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL CAST ( NULL AS INTEGER ) / + - 31 AS col0 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT + + 82 * 77 AS col2 FROM tab1 AS cor0
----
6314
6314
6314

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT - 37 + + 65 * COUNT( - + col0 ) FROM tab0 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-3163
SELECT - 37 + + 65 * COUNT ( - + col0 ) FROM tab0 AS cor0
----
158

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

query I rowsort
SELECT + 77 + + - col2 + + - col1 FROM tab2
----
-40
-48
3

query I rowsort
SELECT 54 + - ( + - ( + col1 ) ) * 78 + + ( col0 ) + - + col0 FROM tab2
----
4032
5280
6060

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT DISTINCT COUNT( * ) AS col0, - 44 AS col0 FROM tab1
----
3
-44

skipif mysql # not compatible
query II rowsort label-3167
SELECT DISTINCT COUNT ( * ) AS col0, - 44 AS col0 FROM tab1
----
3
-44

query I rowsort
SELECT DISTINCT + + 68 * col2 FROM tab0 AS cor0
----
3196
6732
680

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 22, - 92 * + col1 col0 FROM tab2 AS cor0
----
-22
-4692
-22
-6164
-22
-7084

query I rowsort
SELECT + + ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + col0 + + col1 * 68 FROM tab1 AS cor0
----
1003
3287
425

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL + MAX( col2 ) + - COUNT( * ) * 10 AS col0 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + MAX ( col2 ) + - COUNT ( * ) * 10 AS col0 FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT - COUNT( * ) - - 28 * - MIN( - 21 ) + - - 72 FROM tab2 AS cor0
----
657

skipif mysql # not compatible
query I rowsort label-3174
SELECT - COUNT ( * ) - - 28 * - MIN ( - 21 ) + - - 72 FROM tab2 AS cor0
----
657

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

query I rowsort
SELECT DISTINCT + ( col1 ) - + 49 FROM tab0
----
-28
-48
32

query I rowsort
SELECT + 87 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT 99 FROM tab1 WHERE NOT - col1 / 78 * + - col1 + + - col1 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - + 15 AS col2 FROM tab1 AS cor0
----
36
70
76

query I rowsort
SELECT - + col1 + 99 FROM tab0 AS cor0
----
18
78
98

query I rowsort
SELECT col0 * - col2 * - col1 AS col0 FROM tab2 cor0
----
197120
291450
53958

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - - col1, + col0 + + col0 col0 FROM tab1 cor0
----
1344
102
295
170
3196
182

query I rowsort
SELECT + col2 * - col0 - + 81 + + - 55 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + ( col1 ) AND - + 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3185
SELECT * FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3185
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT col1 * col0 * + + 9 FROM tab2
----
21114
44352
45225

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT DISTINCT - MAX( DISTINCT - 94 ) * + - 64 FROM tab2
----
-6016

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT - MAX ( DISTINCT - 94 ) * + - 64 FROM tab2
----
-6016

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT ALL 3 * col1 DIV - col2 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL 3 * col1 / - col2 FROM tab1
----
-2
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT COUNT( * ) * - 21 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT COUNT ( * ) * - 21 FROM tab0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT ALL - 74 DIV - 11 AS col0 FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL - 74 / - 11 AS col0 FROM tab0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT - MIN( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - MIN ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
99

query II rowsort
SELECT + - col2, + col0 AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT ALL + col1 DIV + - 41 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + col1 / + - 41 FROM tab0 AS cor0
----
-1
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3195
SELECT ALL + COUNT ( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT ALL - - 0 + + - ( + - col2 ) AS col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL + COUNT( * ) + + 49 col2 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3198
SELECT ALL + COUNT ( * ) + + 49 col2 FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT + - MAX( - ( - col0 ) ) + - 96 AS col2 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT + - MAX ( - ( - col0 ) ) + - 96 AS col2 FROM tab2 AS cor0
----
-171

query I rowsort
SELECT 97 - + col1 FROM tab0 WHERE + + 27 * + col2 + col2 >= - col1
----
16
76
96

query I rowsort
SELECT ALL + col2 + ( + - 30 ) AS col1 FROM tab1
----
29
38
66

query I rowsort
SELECT DISTINCT 70 + - ( - col1 ) * - + 90 / - - 96 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 92 + - col2 AS col1 FROM tab2
----
34
52
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3204
SELECT col1 + + + 51 + + col0 * col1 DIV - ( - 67 ) + - 81 FROM tab1
----
-19
-6
80

skipif mysql # not compatible
query I rowsort label-3204
SELECT col1 + + + 51 + + col0 * col1 / - ( - 67 ) + - 81 FROM tab1
----
-19
-6
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + + col1 + + col1 FROM tab1 cor0
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 68 + 98 col2 FROM tab0 AS cor0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + COUNT( * ) col2 FROM tab0 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-3209
SELECT + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + col1 * ( + col1 ) FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL - 53 * + 86 + 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a96efce6c6077c7193f2e48c644c7422

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT MIN( ALL 40 ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT MIN ( ALL 40 ) FROM tab2
----
40

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col1 <= NULL
----

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

query I rowsort
SELECT DISTINCT - - col1 * - + col0 AS col2 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT col0 * - 72 AS col1 FROM tab0 AS cor0
----
-1080
-6264
-6984

query II rowsort
SELECT ALL - col0 AS col1, col0 - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 * + + col2 IS NULL
----
-46
23
-64
24
-75
17

query I rowsort
SELECT - 14 * + col0 * - 22 FROM tab1 AS cor0
----
15708
26180
28028

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) = 45 / - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT SUM( DISTINCT - + 15 ) AS col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3220
SELECT SUM ( DISTINCT - + 15 ) AS col0 FROM tab2 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col0, + col2 * - col0 col1 FROM tab1 AS cor0
----
-14
-4896
-47
-6188
-5
-5015

query I rowsort
SELECT - + ( + 82 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + - col1
----

query I rowsort
SELECT ALL - ( - - col1 ) AS col1 FROM tab1 cor0 WHERE NOT - 39 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3224
SELECT - col2 AS col0, - CAST( NULL AS SIGNED ) * - col1 * col1 + + col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-3224
SELECT - col2 AS col0, - CAST ( NULL AS INTEGER ) * - col1 * col1 + + col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 23 IN ( + 52 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 - - - col1 * - 55 FROM tab2 WHERE NOT NULL >= - + col1 * - 98 - - 26
----

query I rowsort
SELECT - 79 - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-138
-147
-175

onlyif mysql # DIV for integer division: 
query II rowsort label-3229
SELECT DISTINCT - 13 DIV 11 AS col1, ( + col1 ) + + - col1 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query II rowsort label-3229
SELECT DISTINCT - 13 / 11 AS col1, ( + col1 ) + + - col1 AS col0 FROM tab2
----
-1
0

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 + + - 56, + col1 * col2 * + 15 AS col1 FROM tab1 AS cor0
----
-5
20160
29
4425
35
47940

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT - MIN( ALL 93 ) AS col1 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3235
SELECT - MIN ( ALL 93 ) AS col1 FROM tab1 cor0
----
-93

query II rowsort
SELECT ALL col2 + + col1, 67 AS col2 FROM tab0 AS cor0
----
100
67
128
67
31
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT + col0 + + 94 FROM tab1 cor0
----
145
179
185

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT - col1 + col1 DIV + 41 + + - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-116
-124
-73

skipif mysql # not compatible
query I rowsort label-3239
SELECT - col1 + col1 / + 41 + + - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-116
-124
-73

query II rowsort
SELECT ALL - col0 + 45 * + col1, - 35 AS col0 FROM tab2 AS cor0
----
2249
-35
2940
-35
3401
-35

query I rowsort
SELECT DISTINCT + - col2 + + + col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT - - ( 96 ) + + - col1 AS col0 FROM tab2 AS cor0
----
19
29
45

query I rowsort
SELECT ALL + col2 + + col2 + col0 AS col1 FROM tab1 cor0
----
203
227
243

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL ( + - 22 ) + COUNT( * ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL ( + - 22 ) + COUNT ( * ) AS col0 FROM tab2
----
-19

query III rowsort
SELECT * FROM tab0 WHERE - - 52 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - col2 * - col1 * + col1 FROM tab1
----
1480
150259
18830

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

query I rowsort
SELECT - col0 * + - ( + + col1 ) AS col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT - COUNT( * ) * + 94 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-3249
SELECT - COUNT ( * ) * + 94 FROM tab0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + 71 * ( ( + COUNT( * ) ) ) col2 FROM tab1
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3250
SELECT + 71 * ( ( + COUNT ( * ) ) ) col2 FROM tab1
----
213

query I rowsort
SELECT ALL col2 * - col1 * + 60 FROM tab2 AS cor0
----
-184800
-233160
-70380

query II rowsort
SELECT - col0 - + col2, col1 AS col0 FROM tab2 AS cor0
----
-104
77
-133
67
-69
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 AS cor0 WHERE NOT 87 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT - COUNT( ALL + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3254
SELECT - COUNT ( ALL + col2 ) FROM tab1
----
-3

query I rowsort
SELECT + + 24 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

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

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

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

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

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

query II rowsort
SELECT + col2 AS col1, 8 * - 92 FROM tab1 AS cor0
----
59
-736
68
-736
96
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3260
SELECT DISTINCT CAST( + - col2 AS SIGNED ) * ( + + col0 ) AS col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) * ( + + col0 ) AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - col0 * - 80 * + - col1 AS col1 FROM tab2
----
-187680
-394240
-402000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3262
SELECT - COUNT( * ) * 22 AS col2, - CAST( + MIN( DISTINCT - col2 ) AS SIGNED ) FROM tab0
----
-66
99

skipif mysql # not compatible
query II rowsort label-3262
SELECT - COUNT ( * ) * 22 AS col2, - CAST ( + MIN ( DISTINCT - col2 ) AS INTEGER ) FROM tab0
----
-66
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT 24 DIV - col1 FROM tab0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-3263
SELECT 24 / - col1 FROM tab0
----
-1
-24
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, + ( - - 51 ) col0 FROM tab0 AS cor0
----
-1
51
-21
51
-81
51

query I rowsort
SELECT ALL - 10 FROM tab0 AS cor0 WHERE 33 + - + 92 * - col2 NOT IN ( - 84 + 34 )
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3267
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 19 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3267
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 19 / - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - - col0 FROM tab0 AS cor0 WHERE + col0 < col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 >= - 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col0 ) + 89 + + col1 col0 FROM tab2 cor0
----
102
81
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT DISTINCT COUNT( * ) + 45 AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT COUNT ( * ) + 45 AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT + + ( 15 ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + ( col2 ), - col0 * col0 * - + col0, + + col1, - col2 + - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT DISTINCT - ( - 17 ) + + ( - COUNT( * ) ) - + 64 + + 59 AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT - ( - 17 ) + + ( - COUNT ( * ) ) - + 64 + + 59 AS col1 FROM tab0
----
9

query I rowsort
SELECT - col0 * col0 + + - col1 + - col0 AS col1 FROM tab0
----
-321
-7677
-9507

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT + MIN( 25 ) FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT + MIN ( 25 ) FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

query I rowsort
SELECT ALL col0 * - + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + 91 * + 93 + - + 60 - - col1 FROM tab1 AS cor0
----
8408
8417
8450

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3280
SELECT DISTINCT + + 7 * + col0 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT + 55 - + ( - col1 ) AS col1 FROM tab2 AS cor0
----
106
122
132

query I rowsort
SELECT - ( + + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT ( + col2 ) + - - CAST( + 41 AS SIGNED ) AS col1 FROM tab0
----
140
51
88

skipif mysql # not compatible
query I rowsort label-3283
SELECT ( + col2 ) + - - CAST ( + 41 AS INTEGER ) AS col1 FROM tab0
----
140
51
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT COUNT( * ) * + 46 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT COUNT ( * ) * + 46 FROM tab1
----
138

query I rowsort
SELECT DISTINCT col2 + + + 72 AS col0 FROM tab2
----
112
130
95

query I rowsort
SELECT - 30 + col0 FROM tab2
----
16
34
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3287
SELECT ALL - col0 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - col0 / - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + 15 AS col2, + col0 FROM tab1 AS cor0
----
15
51
15
85
15
91

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 91 * - col0 >= NULL
----

query I rowsort
SELECT DISTINCT + + 47 * 38 AS col0 FROM tab2 AS cor0
----
1786

query I rowsort
SELECT ALL col0 * + col2 - + - col0 AS col0 FROM tab1 AS cor0
----
4947
5100
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT ALL - col1 DIV + 89 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-3295
SELECT ALL - col1 / + 89 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 * + 89 + + 66 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 * + 89 + + 66 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT - SUM( - 83 ) AS col0 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-3297
SELECT - SUM ( - 83 ) AS col0 FROM tab2 AS cor0
----
249

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + 79 * - + 35 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT - COUNT( * ) + + 91 AS col0 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3299
SELECT - COUNT ( * ) + + 91 AS col0 FROM tab1
----
88

query I rowsort
SELECT - - col2 AS col1 FROM tab2 WHERE NOT + 92 <= - 78
----
23
40
58

query I rowsort
SELECT ALL col1 + - 1 AS col0 FROM tab0
----
0
20
80

query I rowsort
SELECT DISTINCT - col0 * - col1 FROM tab2 WHERE NULL IS NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL - MIN( ALL - 70 ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - MIN ( ALL - 70 ) FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT - 64 + MIN( + ( - - 41 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - 64 + MIN ( + ( - - 41 ) ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + 41 + - - col2 + - 16 FROM tab1
----
121
84
93

query I rowsort
SELECT ALL col0 * 42 * col2 FROM tab2
----
107520
182700
44436

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 59 * + - 50 * 98 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT 7 * 43 AS col0 FROM tab1
----
301

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT COUNT( DISTINCT - 44 ) + - - COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-3310
SELECT COUNT ( DISTINCT - 44 ) + - - COUNT ( * ) FROM tab1
----
4

query I rowsort
SELECT - col0 + + + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 57 + - col2 + col0 + + 80 FROM tab0 cor0
----
105
135
214

query I rowsort
SELECT col1 + 22 + - + 48 FROM tab1 AS cor0
----
-12
-21
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3314
SELECT DISTINCT - 18 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
-18
3

skipif mysql # not compatible
query II rowsort label-3314
SELECT DISTINCT - 18 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
-18
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3315
SELECT ALL - + 11 DIV + 92 + 42 FROM tab1 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - + 11 / + 92 + 42 FROM tab1 AS cor0
----
42
42
42

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - 29 * - 88 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - 34 * 77 + + col2 FROM tab1 AS cor0
----
-2522
-2550
-2559

query II rowsort
SELECT DISTINCT - 45 + col2, col0 FROM tab2 AS cor0
----
-22
46
-5
64
13
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3320
SELECT + col1 - + + 98 + 49 * - CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-1174
-1981
-2873

skipif mysql # not compatible
query I rowsort label-3320
SELECT + col1 - + + 98 + 49 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-1174
-1981
-2873

query I rowsort
SELECT ALL col0 + 91 FROM tab1
----
142
176
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT COUNT( * ) + + 47 AS col0 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT COUNT ( * ) + + 47 AS col0 FROM tab0
----
50

query I rowsort
SELECT DISTINCT col0 * + 56 AS col0 FROM tab2
----
2576
3584
4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL

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

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

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

query I rowsort
SELECT - 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ( + + MIN( - col1 ) ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3327
SELECT ( + + MIN ( - col1 ) ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + SUM( - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3328
SELECT + SUM ( - col0 ) AS col0 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 81 > + col1
----

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

query I rowsort
SELECT ALL + 52 * - + 2 FROM tab0
----
-104
-104
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

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

skipif mysql # not compatible
query I rowsort label-3333
SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 35 - - col0 * col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT SUM( ALL + 92 ) AS col2 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-3335
SELECT SUM ( ALL + 92 ) AS col2 FROM tab1 AS cor0
----
276

query I rowsort
SELECT ALL + + 73 * - + col1 AS col1 FROM tab0 AS cor0
----
-1533
-5913
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3337
SELECT - - CAST( NULL AS SIGNED ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3337
SELECT - - CAST ( NULL AS INTEGER ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3338
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 92 * - + 57 * CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3338
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 92 * - + 57 * CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3339
SELECT ALL * FROM tab0 WHERE NOT + - 32 + + CAST( NULL AS SIGNED ) < col0 * ( - col1 ) - + col2 * - 95 * col1
----

skipif mysql # not compatible
query III rowsort label-3339
SELECT ALL * FROM tab0 WHERE NOT + - 32 + + CAST ( NULL AS INTEGER ) < col0 * ( - col1 ) - + col2 * - 95 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT + CAST( - - ( - col0 ) AS SIGNED ) * - col0 AS col1 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-3340
SELECT + CAST ( - - ( - col0 ) AS INTEGER ) * - col0 AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT - col0 * - 37 FROM tab0
----
3219
3589
555

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT - MIN( ALL + col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3342
SELECT - MIN ( ALL + col2 ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT col2 + + - 16 FROM tab1
----
43
52
80

query I rowsort
SELECT ALL col2 + col0 + - 38 + + - ( - 40 ) AS col0 FROM tab2 AS cor0
----
106
135
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT COUNT( * ) DIV - - 34 AS col0 FROM tab0, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( * ) / - - 34 AS col0 FROM tab0, tab2 AS cor0
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 9 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( - - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT + col1 - + ( + col2 ) FROM tab2 cor0 WHERE - col1 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3350
SELECT + col1 - + ( + col2 ) FROM tab2 cor0 WHERE - col1 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 40 - + col1 AS col2 FROM tab2 AS cor0
----
-107
-117
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col0 * - - col0 + - col0 <= + col0 * + col2 ) OR 21 + + col0 * 40 >= NULL
----

query I rowsort
SELECT DISTINCT + 45 FROM tab1 AS cor0 WHERE NOT col2 <= + - col0
----
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 <> + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3355
SELECT ALL - col1 AS col2, 6 DIV col2 * + col0 DIV col1 AS col0 FROM tab1
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-3355
SELECT ALL - col1 AS col2, 6 / col2 * + col0 / col1 AS col0 FROM tab1
----
-14
0
-47
0
-5
0

query II rowsort
SELECT DISTINCT - 96 * + 72, - col0 AS col0 FROM tab2
----
-6912
-46
-6912
-64
-6912
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT SUM( DISTINCT col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3357
SELECT SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
103

query II rowsort
SELECT col1 AS col2, col2 AS col1 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT ALL - col2 AS col2, col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3360
SELECT ALL + COUNT( * ) col0, ( COUNT( * ) ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3360
SELECT ALL + COUNT ( * ) col0, ( COUNT ( * ) ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT 79 * + col2 FROM tab2 AS cor0
----
1817
3160
4582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT - - CAST( 15 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-3362
SELECT - - CAST ( 15 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
15
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 65 NOT IN ( - - col2, col1 + 29, - col2 )
----

query I rowsort
SELECT 12 * + 18 * - 30 FROM tab0
----
-6480
-6480
-6480

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 2 * + col1 + + 31 FROM tab2 AS cor0
----
133
165
185

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 27 + + col0 < - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - - col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - col0 + + - col2 + - 92 + 57 AS col1 FROM tab1 AS cor0
----
-179
-182
-194

query II rowsort
SELECT DISTINCT - col0 + col1 + + col2 AS col1, col1 * 47 AS col1 FROM tab1 AS cor0
----
-21
235
24
2209
59
658

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT + 50 * - COUNT( * ) col1 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3372
SELECT DISTINCT + 50 * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT ALL - col0 DIV + col0 + + 69 FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - col0 / + col0 + + 69 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT ALL col0 DIV - + col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL col0 / - + col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT 6 + - col0 AS col1 FROM tab1
----
-45
-79
-85

query II rowsort
SELECT ALL - 96 AS col2, 63 FROM tab0
----
-96
63
-96
63
-96
63

query II rowsort
SELECT - 81 AS col1, + ( - + col1 ) * + - col2 FROM tab1
----
-81
1344
-81
295
-81
3196

query I rowsort
SELECT DISTINCT 39 FROM tab1 AS cor0 WHERE NOT - col1 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3379
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN NULL AND - 53 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3379
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN NULL AND - 53 / CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT ALL + col0 * - col0 FROM tab0 WHERE ( - col1 * + 46 + ( col0 ) ) NOT IN ( col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + col0 * - col0 FROM tab0 WHERE ( - col1 * + 46 + ( col0 ) ) NOT IN ( col1 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col2 + + 49 FROM tab0
----
148
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT - 93 * - COUNT( * ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - 93 * - COUNT ( * ) FROM tab0
----
279

query I rowsort
SELECT - col0 * - ( + 34 * 77 ) AS col1 FROM tab2
----
120428
167552
196350

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT DISTINCT 88 DIV + 20 + + 24 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT 88 / + 20 + + 24 FROM tab2
----
28

query I rowsort
SELECT + col2 * + 72 AS col2 FROM tab0
----
3384
7128
720

query I rowsort
SELECT ALL - 33 * + col1 AS col0 FROM tab2
----
-1683
-2211
-2541

query III rowsort
SELECT ALL * FROM tab1 WHERE - 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT DISTINCT - MAX( ( 47 ) ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT - MAX ( ( 47 ) ) FROM tab0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * - col0 + col2 <> col1 * + 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 51 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3391
SELECT DISTINCT COUNT( * ) DIV + CAST( MIN( 34 ) AS SIGNED ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT COUNT ( * ) / + CAST ( MIN ( 34 ) AS INTEGER ) AS col1 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( - 3 * - col2 )
----

query I rowsort
SELECT - 43 * col2 FROM tab1
----
-2537
-2924
-4128

query I rowsort
SELECT - 99 + + 95 FROM tab2
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT + 33 + COUNT( * ) * + 64 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-3395
SELECT + 33 + COUNT ( * ) * + 64 FROM tab0
----
225

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 50 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 <= col2 * col0 + col0
----

query III rowsort
SELECT * FROM tab2 WHERE + 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3399
SELECT * FROM tab0 WHERE NOT col2 = CAST( col2 AS SIGNED ) * 54
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3399
SELECT * FROM tab0 WHERE NOT col2 = CAST ( col2 AS INTEGER ) * 54
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT + col2 + - CAST( CAST( 59 AS SIGNED ) AS SIGNED ) FROM tab2
----
-1
-19
-36

skipif mysql # not compatible
query I rowsort label-3400
SELECT + col2 + - CAST ( CAST ( 59 AS INTEGER ) AS INTEGER ) FROM tab2
----
-1
-19
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT - SUM( ALL - col0 ) FROM tab2 WHERE + col0 + + 71 <> ( + col1 ) + col1
----
185

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - SUM ( ALL - col0 ) FROM tab2 WHERE + col0 + + 71 <> ( + col1 ) + col1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT COUNT( * ) - - 26 FROM tab2 WHERE NOT NULL IN ( + col0 )
----
26

skipif mysql # not compatible
query I rowsort label-3402
SELECT COUNT ( * ) - - 26 FROM tab2 WHERE NOT NULL IN ( + col0 )
----
26

query I rowsort
SELECT ALL - col0 + 60 AS col2 FROM tab1
----
-25
-31
9

query I rowsort
SELECT ALL - col1 + 63 AS col1 FROM tab1
----
16
49
58

query I rowsort
SELECT ALL col0 FROM tab0 cor0 WHERE NOT ( - 72 ) IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 78 >= 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT + COUNT( ALL 86 ) * 96 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + COUNT ( ALL 86 ) * 96 FROM tab1 AS cor0
----
288

query I rowsort
SELECT ALL + 25 * 30 AS col1 FROM tab0 cor0
----
750
750
750

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + 84 AND col2 + + col2 * col2
----

query I rowsort
SELECT DISTINCT col0 + + ( - col0 ) * 65 FROM tab0 AS cor0 WHERE NOT ( - col0 * col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 93 NOT BETWEEN - 22 AND 29 * 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL SUM( + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL SUM ( + col0 ) AS col2 FROM tab0
----
199

query I rowsort
SELECT + 58 + - col2 AS col2 FROM tab2
----
0
18
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT + SUM( ALL + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3414
SELECT + SUM ( ALL + col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3415
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + - col0 * 53 AS col2 FROM tab0 cor0 WHERE - 45 IS NOT NULL
----
-4524
-5044
-780

query I rowsort
SELECT ALL - 86 + + col1 FROM tab0 AS cor0 WHERE ( NULL ) = ( 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT + MAX( DISTINCT - 27 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + MAX ( DISTINCT - 27 ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL + MAX( DISTINCT + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL + MAX ( DISTINCT + col0 ) FROM tab0 cor0
----
97

query I rowsort
SELECT DISTINCT - - col2 + - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + 22 FROM tab2 AS cor0 WHERE + col1 NOT IN ( - col1 )
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT DISTINCT + col0 + col1 DIV - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT + col0 + col1 / - col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) IN ( + col2 * 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT MIN( 40 ) * COUNT( * ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-3426
SELECT MIN ( 40 ) * COUNT ( * ) FROM tab2
----
120

query I rowsort
SELECT ALL 12 + - - col2 AS col1 FROM tab0
----
111
22
59

query I rowsort
SELECT DISTINCT - col0 * - col1 + 59 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT COUNT( - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3429
SELECT COUNT ( - col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT col1 * - - col2 AS col0 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE 7 IN ( - 43 )
----

query I rowsort
SELECT - col0 + - + 69 FROM tab1
----
-120
-154
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT col1 + - + CAST( 92 AS SIGNED ) FROM tab1
----
-45
-78
-87

skipif mysql # not compatible
query I rowsort label-3433
SELECT col1 + - + CAST ( 92 AS INTEGER ) FROM tab1
----
-45
-78
-87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3434
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3434
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( - - ( col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL COUNT( * ) + 9 + - COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL COUNT ( * ) + 9 + - COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT DISTINCT ( - - 51 ) FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT - col2 FROM tab2 WHERE + col1 * col1 - CAST( NULL AS SIGNED ) * + col0 <> ( col1 )
----

skipif mysql # not compatible
query I rowsort label-3438
SELECT - col2 FROM tab2 WHERE + col1 * col1 - CAST ( NULL AS INTEGER ) * + col0 <> ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3439
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3439
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= CAST ( - col2 AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT ALL col2 + col2 DIV - col1 FROM tab1 cor0
----
48
67
90

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL col2 + col2 / - col1 FROM tab1 cor0
----
48
67
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3441
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + ( + MIN( DISTINCT - col0 ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + ( + MIN ( DISTINCT - col0 ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * 9 * - col1 FROM tab1 AS cor0
----
-12096
-2655
-28764

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3443
SELECT ALL - 22 + - CAST( + 28 AS SIGNED ) DIV + 32 FROM tab0 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - 22 + - CAST ( + 28 AS INTEGER ) / + 32 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL - SUM( DISTINCT - 17 ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - SUM ( DISTINCT - 17 ) FROM tab0 AS cor0
----
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( 96 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 68 + + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-2414
-4996
-5093

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT + 23 - - COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + 23 - - COUNT ( * ) FROM tab1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * - - col1 col2 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + 24 FROM tab1 WHERE ( NULL ) <> ( 66 / - 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL - - MAX( ALL col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - - MAX ( ALL col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-3452
SELECT CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + 65 + + col0 * 94 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 54 ) < ( - 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= - col0 + + 55
----
0

skipif mysql # not compatible
query I rowsort label-3455
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= - col0 + + 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3456
SELECT + MAX( ALL - ( + CAST( col2 AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3456
SELECT + MAX ( ALL - ( + CAST ( col2 AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - 51 + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 9 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT - ( + + MIN( ALL 78 ) ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - ( + + MIN ( ALL 78 ) ) FROM tab1 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col1 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3462
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT - MAX( DISTINCT - 41 ) + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT - MAX ( DISTINCT - 41 ) + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT - 28 DIV + 88 * + col2 * 46 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3464
SELECT - 28 / + 88 * + col2 * 46 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT + AVG ( ALL + - col1 ) / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT + AVG ( ALL + - col1 ) / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - col0 ) <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT BETWEEN NULL AND + + 17
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - + col2 AND 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( col2 ) IN ( - 17 / + col2 - - 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT DISTINCT COUNT( * ) - - 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
62

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT COUNT ( * ) - - 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
62

query I rowsort
SELECT - col2 + - 62 AS col1 FROM tab1 AS cor0
----
-121
-130
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 63 AS col0, + col0 col0 FROM tab1 AS cor0
----
63
51
63
85
63
91

query I rowsort
SELECT - + 4 + col2 AS col1 FROM tab2 AS cor0
----
19
36
54

query I rowsort
SELECT + col0 * - 58 * col0 + ( + col2 ) FROM tab0 AS cor0
----
-13003
-438992
-545623

query I rowsort
SELECT col0 + + ( col1 ) + - col2 AS col2 FROM tab1 cor0
----
-31
31
70

query I rowsort
SELECT DISTINCT col0 * col2 * + col0 AS col1 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3477
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 - - + CAST( NULL AS SIGNED ) ) BETWEEN ( col1 ) AND col2
----

skipif mysql # not compatible
query III rowsort label-3477
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 - - + CAST ( NULL AS INTEGER ) ) BETWEEN ( col1 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - col0 + + col1 - - col0 + 84 IS NULL
----

query I rowsort
SELECT ALL col0 * - + 42 + + col1 AS col1 FROM tab0 AS cor0
----
-3633
-4073
-549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT DISTINCT CAST( ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT CAST ( ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - ( COUNT( - - col2 ) ) + COUNT( col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3482
SELECT - ( COUNT ( - - col2 ) ) + COUNT ( col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT COUNT( * ) * + + 58 + + + 59 AS col2 FROM tab2 AS cor0
----
233

skipif mysql # not compatible
query I rowsort label-3483
SELECT COUNT ( * ) * + + 58 + + + 59 AS col2 FROM tab2 AS cor0
----
233

query I rowsort
SELECT ( + col2 ) + col2 FROM tab0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT DISTINCT + 42 DIV col0 + - ( col2 ) + + col0 + + 86 AS col1 FROM tab1
----
109
112
41

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT + 42 / col0 + - ( col2 ) + + col0 + + 86 AS col1 FROM tab1
----
109
112
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT - 62 DIV + 67 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3486
SELECT - 62 / + 67 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 30 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT col1 * 22 DIV 70 FROM tab1
----
1
14
4

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT col1 * 22 / 70 FROM tab1
----
1
14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL - 97 - COUNT( * ) AS col0 FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - 97 - COUNT ( * ) AS col0 FROM tab2
----
-100

query I rowsort
SELECT + col0 * - - col0 * 15 FROM tab0
----
113535
141135
3375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 43 ) * + + 75 col2 FROM tab1
----
-3225

query II rowsort
SELECT DISTINCT col0, col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + COUNT( * ) FROM tab1 WHERE NOT + + col1 / 42 > - col2 + col1
----
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + + col1 / 42 > - col2 + col1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * ( + 86 ) NOT BETWEEN ( - col2 - - - 15 ) AND + 20
----

query I rowsort
SELECT + col1 * 23 FROM tab0 cor0
----
1863
23
483

query I rowsort
SELECT - + 96 - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 31 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + 45 IS NOT NULL
----

query I rowsort
SELECT ALL ( + + col1 ) AS col1 FROM tab1
----
14
47
5

query II rowsort
SELECT col1 AS col1, + 0 AS col1 FROM tab0
----
1
0
21
0
81
0

query II rowsort
SELECT 97, col2 + + - ( + col0 ) - + 54 AS col0 FROM tab1
----
97
-77
97
-80
97
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3502
SELECT * FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS DECIMAL ) * 50 ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3502
SELECT * FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS REAL ) * 50 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 57 AS col2, - col2 AS col1 FROM tab0 cor0
----
57
-10
57
-47
57
-99

query I rowsort
SELECT col0 * + + col1 * - col2 + - col1 FROM tab1 AS cor0
----
-25080
-290883
-68558

query I rowsort
SELECT 56 * - 64 + - + 72 AS col2 FROM tab1
----
-3656
-3656
-3656

query I rowsort
SELECT col1 * - + col0 AS col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3508
SELECT + 54 * ( + 59 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-1062

skipif mysql # not compatible
query I rowsort label-3508
SELECT + 54 * ( + 59 ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1062

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL - + COUNT( * ) * MIN( ALL + + 51 ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL - + COUNT ( * ) * MIN ( ALL + + 51 ) FROM tab2 AS cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3512
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - CAST( NULL AS SIGNED ) ) IN ( + col0 * - - col2, - col0 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-3512
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - CAST ( NULL AS INTEGER ) ) IN ( + col0 * - - col2, - col0 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL + - COUNT( * ) + 61 AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + - COUNT ( * ) + 61 AS col2 FROM tab0 AS cor0
----
58

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL COUNT( ALL col1 ) + + 39 AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL COUNT ( ALL col1 ) + + 39 AS col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT col2 + 23 AS col0 FROM tab1
----
119
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT + COUNT( * ) - + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT + COUNT ( * ) - + + COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE - + 31 < - col2
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT DISTINCT + - col0 DIV - 71 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + - col0 / - 71 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - col1 - - col2 AS col1 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT - col0 * - - 98 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col2 * + 44 AS col2, - 55 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2596
-55
2992
-55
4224
-55

query I rowsort
SELECT - col0 * + - 33 AS col2 FROM tab0 AS cor0
----
2871
3201
495

query II rowsort
SELECT 51 * + col1 AS col1, - ( - col2 ) * + col1 * + 23 * - col0 FROM tab1
----
2397
-6689228
255
-576725
714
-1576512

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT DISTINCT 31 DIV - col1 - - + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT 31 / - col1 - - + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT DISTINCT 18, 18 FROM tab1 AS cor0
----
18
18

query I rowsort
SELECT + col1 * - 51 FROM tab2 AS cor0
----
-2601
-3417
-3927

query I rowsort
SELECT ALL + col1 * - + col1 FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - col1
----

query II rowsort
SELECT - col0, 19 AS col2 FROM tab2 AS cor0
----
-46
19
-64
19
-75
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT - MIN( ALL + col1 ) * + + MIN( ALL + 44 ) AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3532
SELECT - MIN ( ALL + col1 ) * + + MIN ( ALL + 44 ) AS col0 FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3533
SELECT - 60 AS col0, + COUNT( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-60
3

skipif mysql # not compatible
query II rowsort label-3533
SELECT - 60 AS col0, + COUNT ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-60
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3534
SELECT DISTINCT 3 AS col0, COUNT( * ) col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3534
SELECT DISTINCT 3 AS col0, COUNT ( * ) col1 FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT + - ( - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3536
SELECT + - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - 22 * + 19 + - ( - SUM( DISTINCT - + col2 ) ) + - MIN( + 28 ) FROM tab0 AS cor0
----
-602

skipif mysql # not compatible
query I rowsort label-3537
SELECT - 22 * + 19 + - ( - SUM ( DISTINCT - + col2 ) ) + - MIN ( + 28 ) FROM tab0 AS cor0
----
-602

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col0 BETWEEN NULL AND + - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3539
SELECT - col1 DIV + + 40 col1, + ( + - col2 ) * 95 * - col0 * - col1 * - col1 AS col0 FROM tab0
----
-2
439422975
0
36448650
0
912285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3539
SELECT - col1 / + + 40 col1, + ( + - col2 ) * 95 * - col0 * - col1 * - col1 AS col0 FROM tab0
----
-2
439422975
0
36448650
0
912285

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT ALL - col0 DIV - 43 AS col0 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - col0 / - 43 AS col0 FROM tab0
----
0
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT DISTINCT + 3 * + ( - col2 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + 3 * + ( - col2 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3543
SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND CAST( NULL AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-3543
SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) * col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND col2
----

query I rowsort
SELECT col2 * + 85 * + col1 * + col2 FROM tab0 AS cor0
----
15208965
178500
833085

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + + col2 - + col1 IS NOT NULL
----

query I rowsort
SELECT - - 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL + + 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE + col2 <= ( + + 57 - - 89 * 71 / + 24 ) AND NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + COUNT( - 37 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + COUNT ( - 37 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-3551
SELECT - 23 + + col0 DIV - col1, + 28 col0 FROM tab1 AS cor0
----
-24
28
-26
28
-40
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3551
SELECT - 23 + + col0 / - col1, + 28 col0 FROM tab1 AS cor0
----
-24
28
-26
28
-40
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 88, + col0 + - ( - - ( - col0 ) ) + - - 73 col1 FROM tab1 AS cor0
----
88
175
88
243
88
255

query I rowsort
SELECT DISTINCT col1 + + ( - 74 ) FROM tab0 AS cor0
----
-53
-73
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT ( col1 ) + - + col1 - + 23 + + ( - - 97 ) DIV + - 46 AS col2 FROM tab2 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-3554
SELECT ( col1 ) + - + col1 - + 23 + + ( - - 97 ) / + - 46 AS col2 FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3555
SELECT + + MAX( ALL col2 ) DIV - + COUNT( - + col1 ) + COUNT( * ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3555
SELECT + + MAX ( ALL col2 ) / - + COUNT ( - + col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT - - 10 + - CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-49
-58
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3556
SELECT - - 10 + - CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-49
-58
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT DISTINCT COUNT( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 + + 44 FROM tab1 AS cor0
----
129
135
95

query I rowsort
SELECT ALL + + col0 * ( col0 ) + - + col0 FROM tab2 AS cor0
----
2070
4032
5550

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE col2 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL - COUNT( * ) + - COUNT( - - 78 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL - COUNT ( * ) + - COUNT ( - - 78 ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT DISTINCT COUNT( * ) DIV + + COUNT( * ) - + 67 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT COUNT ( * ) / + + COUNT ( * ) - + 67 FROM tab2
----
-66

query I rowsort
SELECT DISTINCT col2 - + col2 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= NULL OR NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * + 20 - + 14 FROM tab1
----
-1194
-1374
-1934

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT SUM( ALL + 3 ) - - 45 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3567
SELECT SUM ( ALL + 3 ) - - 45 FROM tab0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3568
SELECT 1 DIV - COUNT( * ) - - + 21 AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3568
SELECT 1 / - COUNT ( * ) - - + 21 AS col0 FROM tab2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT - col0 * + - ( + - col1 ) - - CAST( - 19 AS SIGNED ) col2 FROM tab2 AS cor0
----
-2365
-4947
-5044

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3569
SELECT - col0 * + - ( + - col1 ) - - CAST ( - 19 AS INTEGER ) col2 FROM tab2 AS cor0
----
-2365
-4947
-5044

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + - 56 AS col1 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT col2 * + 26 AS col2 FROM tab1
----
1534
1768
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3573
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT SUM( DISTINCT + - 17 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-3574
SELECT SUM ( DISTINCT + - 17 ) FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL SUM( ALL - + col1 ) FROM tab1 WHERE NULL IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL SUM ( ALL - + col1 ) FROM tab1 WHERE NULL IS NULL
----
-66

query I rowsort
SELECT + ( + 88 ) FROM tab2 AS cor0
----
88
88
88

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 8 col1, col1 AS col2 FROM tab2 cor0
----
-8
51
-8
67
-8
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT - - COUNT( ALL - - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT - - COUNT ( ALL - - col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - + 82 * - 71 FROM tab0 AS cor0
----
5822
5822
5822

query I rowsort
SELECT DISTINCT col2 * + 29 AS col2 FROM tab0
----
1363
2871
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT ( - CAST( - - col0 AS SIGNED ) ) * - col2 AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-3582
SELECT ( - CAST ( - - col0 AS INTEGER ) ) * - col2 AS col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + + 31 + + - col0 IN ( - col0 + + + col0 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3584
SELECT 10 DIV COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3584
SELECT 10 / COUNT ( * ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3585
SELECT ( 43 ) DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3585
SELECT ( 43 ) / col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT ( col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT ( col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 68 * + col1 FROM tab0
----
-1428
-5508
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3588
SELECT DISTINCT - - 1 + + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT - col1 >= 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - - 1 + + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT - col1 >= 13
----
NULL

query III rowsort
SELECT DISTINCT + col0, col2 AS col1, col1 FROM tab2 cor0
----
9 values hashing to 4c5e1ac6c653a513042bb214b971db66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT - + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT - + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL COUNT( ( - col2 ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3592
SELECT ALL COUNT ( ( - col2 ) ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT + 72 + + + 66 + COUNT( * ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-3593
SELECT + 72 + + + 66 + COUNT ( * ) FROM tab1
----
141

query I rowsort
SELECT + - 87 AS col0 FROM tab2 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-3595
SELECT ALL SUM( 53 ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
159
-3

skipif mysql # not compatible
query II rowsort label-3595
SELECT ALL SUM ( 53 ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
159
-3

query I rowsort
SELECT DISTINCT + 93 * col2 + col0 FROM tab0 AS cor0
----
1017
4386
9304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 22 * + 99 + + + col1 col1 FROM tab2 AS cor0
----
-2101
-2111
-2127

query II rowsort
SELECT 1 + + ( + + col1 ) * - col0, col1 AS col0 FROM tab1
----
-424
5
-4276
47
-713
14

query I rowsort
SELECT ALL col0 * + - 21 * col2 * + col2 + + 53 FROM tab1
----
-6213532
-8836411
-9870283

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT - 36 + + COUNT( * ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-3600
SELECT - 36 + + COUNT ( * ) FROM tab0
----
-33

query I rowsort
SELECT col1 * - - col2 + - - 24 + - col0 + 83 * + + 99 AS col2 FROM tab1
----
11346
8451
9534

query I rowsort
SELECT + col1 + col1 FROM tab0 WHERE ( NULL ) IS NULL
----
162
2
42

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT - 21 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3604
SELECT ALL + - 45 * ( CAST( NULL AS SIGNED ) ) * + 15 + 53 * ( COUNT( * ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + - 45 * ( CAST ( NULL AS INTEGER ) ) * + 15 + 53 * ( COUNT ( * ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 56 IS NOT NULL
----

query I rowsort
SELECT - ( 61 ) AS col0 FROM tab1
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3608
SELECT SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT DISTINCT + col2 * - col0 * 5 + + col2 - - + col2 DIV - - 46 AS col0 FROM tab0 AS cor0
----
-3477
-4340
-47914

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT + col2 * - col0 * 5 + + col2 - - + col2 / - - 46 AS col0 FROM tab0 AS cor0
----
-3477
-4340
-47914

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT DISTINCT - + COUNT( - 4 ) AS col0, 56 * - 66 FROM tab1 AS cor0
----
-3
-3696

skipif mysql # not compatible
query II rowsort label-3610
SELECT DISTINCT - + COUNT ( - 4 ) AS col0, 56 * - 66 FROM tab1 AS cor0
----
-3
-3696

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT + col2 + - - col2 + - - ( + col0 ) AS col2 FROM tab0
----
107
109
295

query I rowsort
SELECT ( - + 17 ) + - col0 * - col1 FROM tab1
----
408
4260
697

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 88 IS NOT NULL
----

query I rowsort
SELECT col2 + + 37 FROM tab2
----
60
77
95

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN col0 * - 7 AND + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3617
SELECT + 38 DIV + COUNT( - col0 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3617
SELECT + 38 / + COUNT ( - col0 ) FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL - 15 + ( - col2 ) FROM tab1 AS cor0
----
-111
-74
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT + - 5 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + - 5 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + 51 + - - col1 + - + col1 FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( col2 + - col2 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL - COUNT( - + col1 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3623
SELECT ALL - COUNT ( - + col1 ) col1 FROM tab1
----
-3

query I rowsort
SELECT + col2 + - ( + 26 ) FROM tab2
----
-3
14
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - 47 ) * - col2 col2 FROM tab0 AS cor0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT + 63 + - COUNT( * ) FROM tab1 cor0
----
60

skipif mysql # not compatible
query I rowsort label-3626
SELECT + 63 + - COUNT ( * ) FROM tab1 cor0
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-3627
SELECT col2 * - 94 * - col0 + - - col2 + + + col2 DIV + col1, col0 FROM tab0 AS cor0
----
66317
15
81790
87
902880
97

skipif mysql # not compatible
query II rowsort label-3627
SELECT col2 * - 94 * - col0 + - - col2 + + + col2 / + col1, col0 FROM tab0 AS cor0
----
66317
15
81790
87
902880
97

query I rowsort
SELECT DISTINCT + + 55 * col0 * + 30 FROM tab0 AS cor0
----
143550
160050
24750

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL < col2 + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3630
SELECT + + col0 DIV - - 46 + col2 + + 79 AS col2, + 11 * col2 FROM tab0 AS cor0
----
126
517
180
1089
90
110

skipif mysql # not compatible
query II rowsort label-3630
SELECT + + col0 / - - 46 + col2 + + 79 AS col2, + 11 * col2 FROM tab0 AS cor0
----
126
517
180
1089
90
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL - MIN( + col1 ) * COUNT( * ) AS col1 FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL - MIN ( + col1 ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
-153

query I rowsort
SELECT ALL + + 72 AS col0 FROM tab1 AS cor0 WHERE + col2 + + - col1 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL - COUNT( * ) + + + 97 AS col0 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - COUNT ( * ) + + + 97 AS col0 FROM tab1 AS cor0
----
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - + col0 * - + 57 NOT BETWEEN NULL AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query II rowsort
SELECT DISTINCT + col0 AS col2, 41 AS col0 FROM tab0 AS cor0
----
15
41
87
41
97
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT ALL - MIN( ALL + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL - MIN ( ALL + col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT 59 AS col0 FROM tab0 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT + MIN( col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3640
SELECT + MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
51

query II rowsort
SELECT ALL - col2 AS col0, col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT + col0 + - col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE 88 + - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT COUNT( * ) + + 71 AS col0 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT COUNT ( * ) + + 71 AS col0 FROM tab1 AS cor0
----
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 53 * - col0 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - - ( + + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3646
SELECT - - ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT + ( - + COUNT( * ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3647
SELECT + ( - + COUNT ( * ) ) col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT ( + - col2 ) + - col1 + + - CAST( NULL AS SIGNED ) * - + 92 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT ( + - col2 ) + - col1 + + - CAST ( NULL AS INTEGER ) * - + 92 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT 11 DIV col0 * + col2 * col1 * - + col2 * + col1 + + - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3649
SELECT 11 / col0 * + col2 * col1 * - + col2 * + col1 + + - col2 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + col1 + + col1 + - col0 AS col1 FROM tab2
----
56
59
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + 5 + - COUNT( DISTINCT + col0 ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3651
SELECT + 5 + - COUNT ( DISTINCT + col0 ) AS col0 FROM tab0
----
2

query I rowsort
SELECT ALL + ( - - col1 ) + - col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - ( - col1 ) ) + + 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL COUNT( * ) * - - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL COUNT ( * ) * - - COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT ALL col1 - - 26 AS col1 FROM tab0 cor0
----
107
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT + MAX( ALL col2 ) * - - 51 AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT + MAX ( ALL col2 ) * - - 51 AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 AS cor0 WHERE NOT ( - 80 IS NULL )
----
23
40
58

query I rowsort
SELECT col0 - + 45 * + 52 FROM tab0 cor0
----
-2243
-2253
-2325

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT DISTINCT - col0 - + 45 DIV - 57 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT - col0 - + 45 / - 57 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT DISTINCT - col0 DIV + col2 col0 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3660
SELECT DISTINCT - col0 / + col2 col0 FROM tab1 cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3661
SELECT ALL COUNT( * ) / + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL COUNT ( * ) / + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT - - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3663
SELECT - - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + ( - 18 ) FROM tab0 AS cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3665
SELECT - 15 AS col1, CAST( NULL AS SIGNED ) - col1 col2 FROM tab1
----
-15
NULL
-15
NULL
-15
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3665
SELECT - 15 AS col1, CAST ( NULL AS INTEGER ) - col1 col2 FROM tab1
----
-15
NULL
-15
NULL
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL SUM( + col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL SUM ( + col1 ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT ALL 97 * + + COUNT( DISTINCT col1 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL 97 * + + COUNT ( DISTINCT col1 ) FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT MIN( + 78 ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3668
SELECT MIN ( + 78 ) AS col0 FROM tab0
----
78

query I rowsort
SELECT ALL - ( - ( - 56 ) ) * + col0 AS col1 FROM tab0
----
-4872
-5432
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ( - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3670
SELECT ( - COUNT ( * ) ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3672
SELECT ALL col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3672
SELECT ALL col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 19 / - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT ALL - col1 DIV col2 * + + col0 AS col2 FROM tab2 AS cor0
----
-64
-75
-92

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL - col1 / col2 * + + col0 AS col2 FROM tab2 AS cor0
----
-64
-75
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT CAST( - 90 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-4590
-6030
-6930

skipif mysql # not compatible
query I rowsort label-3675
SELECT CAST ( - 90 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-4590
-6030
-6930

query II rowsort
SELECT + 59, - col2 AS col2 FROM tab0 AS cor0
----
59
-10
59
-47
59
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col2 col0 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + + COUNT( * ) * 32 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3678
SELECT DISTINCT + + COUNT ( * ) * 32 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
288

query I rowsort
SELECT - + 35 * - col0 + + - col0 * ( + 21 ) FROM tab1 cor0
----
1190
1274
714

query I rowsort
SELECT 90 + + + col1 FROM tab2 AS cor0
----
141
157
167

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3681
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 97 / - + 57, ( CAST( NULL AS SIGNED ) ), - - col2, col1, col0 )
----

skipif mysql # not compatible
query III rowsort label-3681
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 97 / - + 57, ( CAST ( NULL AS INTEGER ) ), - - col2, col1, col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 BETWEEN 93 / - 21 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( ( col1 ) * + ( 50 ), col2, ( col0 ), col0, - 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT DISTINCT 3 + - + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT 3 + - + COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT DISTINCT + - COUNT( * ) AS col0, MIN( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-3
-75

skipif mysql # not compatible
query II rowsort label-3685
SELECT DISTINCT + - COUNT ( * ) AS col0, MIN ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-3
-75

query II rowsort
SELECT ALL - 2 AS col0, col1 AS col1 FROM tab1 AS cor0
----
-2
14
-2
47
-2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT DISTINCT - - ( + 27 ) + + COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT - - ( + 27 ) + + COUNT ( * ) FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT + col0 + + + col1 + - 19 FROM tab2 AS cor0
----
122
123
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT 65 + - col2 DIV 26 FROM tab0
----
62
64
65

skipif mysql # not compatible
query I rowsort label-3689
SELECT 65 + - col2 / 26 FROM tab0
----
62
64
65

query I rowsort
SELECT + 9 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL - + COUNT( DISTINCT - - 59 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL - + COUNT ( DISTINCT - - 59 ) FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT + - 6 * - col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3692
SELECT + - 6 * - col2 / + col2 AS col0 FROM tab1 AS cor0
----
6
6
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL + COUNT( 17 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3694
SELECT ALL + COUNT ( 17 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 * + 72 FROM tab1
----
-3672
-6120
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL + COUNT( * ) col0 FROM tab0 WHERE ( ( NOT ( NOT NULL IS NOT NULL ) ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3696
SELECT ALL + COUNT ( * ) col0 FROM tab0 WHERE ( ( NOT ( NOT NULL IS NOT NULL ) ) )
----
0

query I rowsort
SELECT ( 58 ) FROM tab2
----
58
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT 41 DIV + 81 * - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3698
SELECT 41 / + 81 * - col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT - COUNT( * ) * - 77 AS col1 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-3699
SELECT - COUNT ( * ) * - 77 AS col1 FROM tab1
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL MAX( DISTINCT - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL MAX ( DISTINCT - col2 ) FROM tab1
----
-59

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT + SUM( col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT + SUM ( col1 ) AS col2 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT 11 + + SUM( - - col1 ) AS col1 FROM tab2 cor0
----
206

skipif mysql # not compatible
query I rowsort label-3703
SELECT 11 + + SUM ( - - col1 ) AS col1 FROM tab2 cor0
----
206

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col1 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT col1 + - 22 + 50 FROM tab0
----
109
29
49

query I rowsort
SELECT DISTINCT + col1 * + + ( col2 ) FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT DISTINCT - MIN( - col0 ) AS col1 FROM tab0 WHERE NOT - 81 * + - 9 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - MIN ( - col0 ) AS col1 FROM tab0 WHERE NOT - 81 * + - 9 IS NOT NULL
----
NULL

query II rowsort
SELECT + + 14, col1 - col1 AS col1 FROM tab0 AS cor0
----
14
0
14
0
14
0

query II rowsort
SELECT ALL - - col2, - col0 AS col2 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3710
SELECT COUNT( + - 44 ) AS col2, + 17 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0
17

skipif mysql # not compatible
query II rowsort label-3710
SELECT COUNT ( + - 44 ) AS col2, + 17 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0
17

query II rowsort
SELECT - col1 AS col1, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL col1 + - 17 FROM tab0 cor0
----
-16
4
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3713
SELECT DISTINCT - ( - MAX( DISTINCT - - ( - CAST( NULL AS SIGNED ) ) ) ) + ( 56 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT - ( - MAX ( DISTINCT - - ( - CAST ( NULL AS INTEGER ) ) ) ) + ( 56 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + col0 + - col2 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT - col0 FROM tab1 WHERE - ( col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT COUNT( - col0 ) + + + MIN( DISTINCT - col1 ) * - 21 * + - 44 FROM tab0
----
-74841

skipif mysql # not compatible
query I rowsort label-3716
SELECT COUNT ( - col0 ) + + + MIN ( DISTINCT - col1 ) * - 21 * + - 44 FROM tab0
----
-74841

query II rowsort
SELECT - col1 + col0, col0 AS col2 FROM tab2
----
-13
64
-5
46
8
75

query III rowsort
SELECT * FROM tab2 WHERE + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col2 - + - col2 FROM tab0 WHERE + + col1 IS NOT NULL
----
-658
-860
-9504

query I rowsort
SELECT - 0 + - - col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT COUNT( * ) + 31 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-3721
SELECT COUNT ( * ) + 31 FROM tab1
----
34

query I rowsort
SELECT DISTINCT + ( + + ( - - col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( col1 ) FROM tab1 AS cor0 WHERE ( NULL ) < - 28
----

query I rowsort
SELECT DISTINCT + col0 * - col2 + 78 + - col2 FROM tab0 AS cor0
----
-674
-802
-9624

query I rowsort
SELECT ALL + col0 + - col1 * 55 FROM tab2 AS cor0
----
-2759
-3610
-4171

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT COUNT( ALL 26 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3726
SELECT COUNT ( ALL 26 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + 96 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col1 * - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT MAX( - col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT MAX ( - col2 ) AS col0 FROM tab0 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - COUNT( * ) + + + COUNT( * ) * + + ( - + AVG ( - 41 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT - COUNT ( * ) + + + COUNT ( * ) * + + ( - + AVG ( - 41 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

query II rowsort
SELECT + col0, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL MIN( - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL MIN ( - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT + MAX( ALL + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3733
SELECT + MAX ( ALL + col2 ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT + + 6 * + - col2 * col0, - 3 AS col1 FROM tab0 AS cor0
----
-4230
-3
-5220
-3
-57618
-3

query I rowsort
SELECT 23 * + col2 * + col2 AS col1 FROM tab1
----
106352
211968
80063

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT + SUM( + col1 ) * + 89 AS col2 FROM tab2
----
17355

skipif mysql # not compatible
query I rowsort label-3736
SELECT + SUM ( + col1 ) * + 89 AS col2 FROM tab2
----
17355

query I rowsort
SELECT - 37 * col2 FROM tab0
----
-1739
-3663
-370

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT DISTINCT + col0 DIV col1 * - col0 col0 FROM tab2
----
-75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3738
SELECT DISTINCT + col0 / col1 * - col0 col0 FROM tab2
----
-75
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 75 / - + col1 <= ( NULL )
----

query I rowsort
SELECT - ( - 21 ) FROM tab1
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL - SUM( ALL - + 76 ) AS col1 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL - SUM ( ALL - + 76 ) AS col1 FROM tab1
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT ALL AVG ( CAST( NULL AS SIGNED ) ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3742
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 15 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-14
426
6546

query I rowsort
SELECT DISTINCT 37 + col0 FROM tab2 AS cor0
----
101
112
83

query II rowsort
SELECT + 78 + + col0 * - + col0 AS col0, col0 AS col0 FROM tab0
----
-147
15
-7491
87
-9331
97

query I rowsort
SELECT - 88 + + + col1 - - + col0 * + col0 AS col1 FROM tab1 cor0
----
2527
7142
8240

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - - COUNT( * ) + 73 AS col0 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3747
SELECT - - COUNT ( * ) + 73 AS col0 FROM tab1 AS cor0
----
76

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + col0 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3749
SELECT ALL MAX( + + ( - CAST( - col2 AS SIGNED ) ) ) * - ( - 41 ) + - 81 AS col1 FROM tab2 AS cor0
----
2297

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL MAX ( + + ( - CAST ( - col2 AS INTEGER ) ) ) * - ( - 41 ) + - 81 AS col1 FROM tab2 AS cor0
----
2297

query I rowsort
SELECT ALL - - ( col0 ) + - col0 + + col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - 30 - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT - + COUNT( * ) + + - COUNT( * ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3752
SELECT - + COUNT ( * ) + + - COUNT ( * ) FROM tab2 cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 33 col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + ( col2 ) * - - 94 FROM tab2 cor0
----
2111
3683
5385

query I rowsort
SELECT 1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 98 + - - col1 FROM tab0
----
119
179
99

query III rowsort
SELECT * FROM tab2 WHERE + 73 IS NULL
----

query I rowsort
SELECT ALL - 70 - - + col1 FROM tab0
----
-49
-69
11

query I rowsort
SELECT ALL col1 * + col0 - + 8 FROM tab2
----
2338
4920
5017

query I rowsort
SELECT 15 * - + 10 - + col0 AS col0 FROM tab0
----
-165
-237
-247

query II rowsort
SELECT DISTINCT - col0, + 30 AS col2 FROM tab0 AS cor0
----
-15
30
-87
30
-97
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT COUNT( * ) + + - SUM( ALL - 58 ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-3763
SELECT COUNT ( * ) + + - SUM ( ALL - 58 ) FROM tab1 AS cor0
----
177

query I rowsort
SELECT ALL 92 * + - 38 * + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 / + col2 AS col0 FROM tab0 WHERE NOT ( col0 * col2 + + 7 + - - col0 / - col2 ) BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3767
SELECT + MIN( ALL - + 83 ) AS col0, - COUNT( * ) FROM tab2
----
-83
-3

skipif mysql # not compatible
query II rowsort label-3767
SELECT + MIN ( ALL - + 83 ) AS col0, - COUNT ( * ) FROM tab2
----
-83
-3

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT - ( + col1 ) IN ( - ( + col0 ) + - 44 )
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col1 FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 > col0
----
51
14
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - + 73 + + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT - ( + MAX( DISTINCT 56 ) ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - ( + MAX ( DISTINCT 56 ) ) FROM tab0 AS cor0
----
-56

query I rowsort
SELECT ALL - col1 * + col1 * col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + 60 * - SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-13620

skipif mysql # not compatible
query I rowsort label-3774
SELECT + 60 * - SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-13620

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3775
SELECT ALL * FROM tab1 WHERE NOT col2 + - CAST( - 62 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3775
SELECT ALL * FROM tab1 WHERE NOT col2 + - CAST ( - 62 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT CAST( - COUNT( * ) AS SIGNED ) * + + COUNT( * ) + - MIN( - + col2 ) AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3776
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) + - MIN ( - + col2 ) AS col2 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL - COUNT( - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - COUNT ( - col2 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT CAST( NULL AS SIGNED ) * + + 83 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT CAST ( NULL AS INTEGER ) * + + 83 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 FROM tab1 WHERE NOT 53 IS NULL
----
-51
-85
-91

query II rowsort
SELECT DISTINCT 37 AS col0, - col2 FROM tab2
----
37
-23
37
-40
37
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT COUNT( - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3781
SELECT COUNT ( - col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT + SUM( 77 ) + 60 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-3782
SELECT + SUM ( 77 ) + 60 FROM tab1 AS cor0
----
291

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 = col0 * col2
----

query I rowsort
SELECT ALL + - col2 + col0 + col2 * - + col1 AS col1 FROM tab1 cor0
----
-1389
-269
-3173

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL 34 * + COUNT( * ) AS col0 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL 34 * + COUNT ( * ) AS col0 FROM tab0
----
102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < ( 12 + - + 37 )
----

query I rowsort
SELECT DISTINCT - - col1 * + - ( - + col0 ) + - col0 - - + col1 * - - 60 AS col0 FROM tab0 AS cor0
----
3000
60
6060

query I rowsort
SELECT DISTINCT - - 66 + + 75 FROM tab0 AS cor0
----
141

query I rowsort
SELECT DISTINCT - 94 * + col0 AS col2 FROM tab0 AS cor0
----
-1410
-8178
-9118

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - col1 - + + col1 + - - 8 AND - - 7
----
51
67
77

query I rowsort
SELECT + 13 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT DISTINCT + + COUNT( DISTINCT col2 ) + - - 95 FROM tab1 cor0
----
98

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT + + COUNT ( DISTINCT col2 ) + - - 95 FROM tab1 cor0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT ALL + col2 DIV - 74 + col1 + col2 AS col0 FROM tab0
----
128
31
99

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL + col2 / - 74 + col1 + col2 AS col0 FROM tab0
----
128
31
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT ALL col2 + - col1 DIV + 50 AS col1 FROM tab0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL col2 + - col1 / + 50 AS col1 FROM tab0
----
10
46
99

query I rowsort
SELECT ALL - 48 * col0 FROM tab1
----
-2448
-4080
-4368

query I rowsort
SELECT + 74 FROM tab0 WHERE - - col1 IS NOT NULL
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT DISTINCT col1 * + - col0 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT col1 * + - col0 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 42 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3802
SELECT ALL + CAST( NULL AS SIGNED ) - + - 50 / COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL + CAST ( NULL AS INTEGER ) - + - 50 / COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3803
SELECT ALL + 21 DIV - col2 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL + 21 / - col2 AS col0 FROM tab0
----
-2
0
0

query I rowsort
SELECT DISTINCT - col2 - 57 FROM tab0 AS cor0
----
-104
-156
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT + SUM( + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT + SUM ( + col1 ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * ( - 75 ) * + col0 - + 29 * + + col0 AS col0 FROM tab1 AS cor0
----
29410
318136
52071

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * ( + col0 ) >= - + col2
----

query I rowsort
SELECT + 69 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - + col2 + - 78 col2, + col2 + + 53 - + + col1 FROM tab1 cor0
----
-3559
107
-4702
74
-9294
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL - ( - + col0 ) / ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL - ( - + col0 ) / ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT DISTINCT + - 32 DIV col0 AS col0 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT + - 32 / col0 AS col0 FROM tab0 AS cor0
----
-2
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 30 * + - 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + + col1 )
----

query II rowsort
SELECT DISTINCT col2, col2 * - + col0 AS col0 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

query II rowsort
SELECT + 2 AS col2, - 87 AS col1 FROM tab2 AS cor0
----
2
-87
2
-87
2
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + 74 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 42 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
42
42
42

query II rowsort
SELECT ALL + col1 AS col2, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL <= 76
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3821
SELECT DISTINCT + col2 * ( - 90 ), + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - + col1 DIV - - col2 * col2 NOT IN ( + col0, - col1, - col2 * + ( - + col1 ) * - col2 )
----
-5310
5
-6120
47
-8640
14

skipif mysql # not compatible
query II rowsort label-3821
SELECT DISTINCT + col2 * ( - 90 ), + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - + col1 / - - col2 * col2 NOT IN ( + col0, - col1, - col2 * + ( - + col1 ) * - col2 )
----
-5310
5
-6120
47
-8640
14

query I rowsort
SELECT col1 * - 36 + - 69 AS col0 FROM tab2 AS cor0
----
-1905
-2481
-2841

query II rowsort
SELECT + + col2 AS col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT - 21 * + COUNT( * ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT - 21 * + COUNT ( * ) FROM tab1 AS cor0
----
-63

query II rowsort
SELECT col1 AS col1, - 93 FROM tab0 AS cor0
----
1
-93
21
-93
81
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT + col2 / + - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT + col2 / + - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT DISTINCT - MIN( DISTINCT - 53 ) * - SUM( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-11819

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT - MIN ( DISTINCT - 53 ) * - SUM ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-11819

onlyif mysql # DIV for integer division: 
query II rowsort label-3828
SELECT DISTINCT - + col1 AS col2, - col1 DIV 69 + + col2 + - col2 * - col2 + 29 * + 38 * + + col0 col1 FROM tab0 AS cor0
----
-1
116794
-21
95984
-81
18785

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3828
SELECT DISTINCT - + col1 AS col2, - col1 / 69 + + col2 + - col2 * - col2 + 29 * + 38 * + + col0 col1 FROM tab0 AS cor0
----
-1
116794
-21
95984
-81
18785

query I rowsort
SELECT - 25 + + + col0 AS col0 FROM tab1
----
26
60
66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 37 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col2 FROM tab2
----
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 / + 34 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 56 * - - ( - 12 ) AS col1, - col1 + col0 FROM tab0 cor0
----
672
-66
672
66
672
96

query I rowsort
SELECT DISTINCT + col2 * + + col2 + col2 + - 74 FROM tab2 AS cor0
----
1566
3348
478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT col0 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT col0 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col1, - col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT ALL + - col2 DIV - ( + col1 ) + - - col1 FROM tab1 AS cor0
----
16
20
48

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + - col2 / - ( + col1 ) + - - col1 FROM tab1 AS cor0
----
16
20
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - MAX( ALL - 34 ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-3840
SELECT - MAX ( ALL - 34 ) FROM tab0
----
34

query I rowsort
SELECT - 51 FROM tab0 WHERE + ( + + 48 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3842
SELECT ALL - col1 DIV + col0 + col1 - + col2, col1 + - 26 + + col1 AS col0 FROM tab0
----
-98
-24
11
16
29
136

skipif mysql # not compatible
query II rowsort label-3842
SELECT ALL - col1 / + col0 + col1 - + col2, col1 + - 26 + + col1 AS col0 FROM tab0
----
-98
-24
11
16
29
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT - 2 * + + COUNT( * ) * MIN( DISTINCT + ( col2 ) ) col2 FROM tab2
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3843
SELECT - 2 * + + COUNT ( * ) * MIN ( DISTINCT + ( col2 ) ) col2 FROM tab2
----
-138

query II rowsort
SELECT DISTINCT - col1 * + col2 AS col1, + 89 AS col2 FROM tab2
----
-1173
89
-3080
89
-3886
89

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3846
SELECT ALL col2 DIV col0, - ( + 80 ) + - col1 AS col1 FROM tab1
----
0
-127
0
-85
1
-94

skipif mysql # not compatible
query II rowsort label-3846
SELECT ALL col2 / col0, - ( + 80 ) + - col1 AS col1 FROM tab1
----
0
-127
0
-85
1
-94

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 * + col1, + ( - col1 ) * + - 4 + - 52 + + - 41 + + col2 AS col0 FROM tab0 AS cor0
----
1215
278
1827
1
97
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL MAX( + - CAST( - 17 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL MAX ( + - CAST ( - 17 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
17

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 <> - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( - + 51 / + 19 IS NULL ) )
----

query I rowsort
SELECT + 23 * + 48 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 69a5ef91d59cd354961d0e01e6fdb0a3

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ( - - COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3853
SELECT ( - - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col1 ) AND col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 15 + 34 + + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3856
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE 96 / - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE 96 / - CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL 19 + + 58 AS col0 FROM tab2 AS cor0
----
77
77
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> - col2 + + 55
----

query I rowsort
SELECT ALL - 92 + col1 + - col1 + + 97 * - 68 * - - 36 - + + col0 AS col0 FROM tab1
----
-237599
-237633
-237639

query I rowsort
SELECT - col0 * 14 AS col0 FROM tab1
----
-1190
-1274
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT ALL - CAST( + col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL - CAST ( + col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - col1 + + 31 AS col2 FROM tab2
----
-20
-36
-46

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL - COUNT( ALL + 74 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - COUNT ( ALL + 74 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT + - 43 AS col2 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT 97 * + - col0 FROM tab1
----
-4947
-8245
-8827

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT 76 * 6 DIV - 79 FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-3867
SELECT 76 * 6 / - 79 FROM tab2
----
-5
-5
-5

query I rowsort
SELECT ALL - 99 - col2 AS col2 FROM tab1 AS cor0
----
-158
-167
-195

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + + 71 AS col2 FROM tab2 AS cor0
----
117
135
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT 0 * - 14 * MIN( ALL ( col0 ) ) * + 49 + - COUNT( * ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT 0 * - 14 * MIN ( ALL ( col0 ) ) * + 49 + - COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT + + MAX( ALL - col0 ) AS col0 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + + MAX ( ALL - col0 ) AS col0 FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT ( COUNT( + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT ( COUNT ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col0 + 5 + - - col2 + - col0 AS col1 FROM tab0 AS cor0
----
104
15
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT COUNT( ALL + 69 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3875
SELECT COUNT ( ALL + 69 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 * + + ( + col2 ) AS col1 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL 27 * + COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL 27 * + COUNT ( * ) FROM tab1
----
81

query I rowsort
SELECT ALL + 33 * + col1 FROM tab2
----
1683
2211
2541

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT col1 DIV 98 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT col1 / 98 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3880
SELECT DISTINCT - col1 / - CAST( NULL AS SIGNED ) / - col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3880
SELECT DISTINCT - col1 / - CAST ( NULL AS INTEGER ) / - col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT CAST( - - col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3881
SELECT CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 WHERE - + col1 / col0 + col1 + + + ( col2 ) = 41 + + col0 + - col0 + - col2 / + 70 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 44 col0, col0 AS col1 FROM tab2 AS cor0
----
44
46
44
64
44
75

query II rowsort
SELECT DISTINCT - col2, - 98 + + col0 AS col0 FROM tab0 cor0
----
-10
-11
-47
-83
-99
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT ALL COUNT( * ) AS col2, - MIN( ALL - ( ( 70 ) ) ) FROM tab1 AS cor0
----
3
70

skipif mysql # not compatible
query II rowsort label-3885
SELECT ALL COUNT ( * ) AS col2, - MIN ( ALL - ( ( 70 ) ) ) FROM tab1 AS cor0
----
3
70

query I rowsort
SELECT DISTINCT + - 56 FROM tab0 cor0
----
-56

query I rowsort
SELECT + 34 * - col2 AS col1 FROM tab1 AS cor0
----
-2006
-2312
-3264

query I rowsort
SELECT 58 * col0 FROM tab2 AS cor0
----
2668
3712
4350

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - ( - col0 ) NOT BETWEEN NULL AND col0 + + 77 - - 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col1 FROM tab1
----
40
40
40

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + col0 * + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND col2 * - ( col2 * - col0 )
----

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 - 3 <= + col1
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <= ( + col2 )
----
15
81
47
87
21
10

query I rowsort
SELECT - ( 15 ) + 15 * 23 FROM tab0
----
330
330
330

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT MAX( ALL col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3897
SELECT MAX ( ALL col0 ) AS col2 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 31 col2 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT - ( col0 ) * - 2 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL + col0 * - ( - col1 ) FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT - COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT col0 NOT IN ( + CAST( + col0 AS SIGNED ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3902
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT col0 NOT IN ( + CAST ( + col0 AS INTEGER ) )
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 89 - col1 ) <> + 67 / 88
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT 37 + 62 DIV + COUNT( * ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-3904
SELECT 37 + 62 / + COUNT ( * ) FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT CAST( NULL AS SIGNED ) * 30 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT CAST ( NULL AS INTEGER ) * 30 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 + col1 ) IS NULL
----

query I rowsort
SELECT 49 * + ( + col1 * + col1 ) AS col0 FROM tab2
----
127449
219961
290521

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 69 + - col0 AS col1 FROM tab0
----
-18
-28
54

query I rowsort
SELECT - 28 FROM tab1 WHERE 73 IS NOT NULL
----
-28
-28
-28

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND + 99
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT col1 + 10 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT ALL - CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + col0 * 83 + + col0 FROM tab1
----
4284
7140
7644

query I rowsort
SELECT DISTINCT - col1 * - col1 FROM tab1 AS cor0 WHERE NOT NULL >= 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3916
SELECT - MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT col2 DIV 76 col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3917
SELECT col2 / 76 col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3918
SELECT * FROM tab1 AS cor0 WHERE CAST( 79 AS DECIMAL ) < - col1
----

skipif mysql # not compatible
query III rowsort label-3918
SELECT * FROM tab1 AS cor0 WHERE CAST ( 79 AS REAL ) < - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * ( col2 / - col1 ) + - col2 * + col1 > NULL
----

query I rowsort
SELECT 51 - 33 FROM tab0 AS cor0
----
18
18
18

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( 50 + 53 * col1 )
----

query I rowsort
SELECT ALL - 21 - - col2 FROM tab1
----
38
47
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3923
SELECT ALL 65 DIV + COUNT( * ) + - 44 * COUNT( * ) FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL 65 / + COUNT ( * ) + - 44 * COUNT ( * ) FROM tab1
----
-111

query I rowsort
SELECT ALL - 71 FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 81 + col1 * col0 >= 27
----

query I rowsort
SELECT + + col1 * 18 FROM tab0 AS cor0
----
1458
18
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL COUNT( DISTINCT - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL COUNT ( DISTINCT - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 - 7 AS col2 FROM tab1 AS cor0 WHERE 70 IN ( + col0 + - 24 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT DISTINCT - col2 - - 90 AS col0 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 51 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT + - MIN( - 1 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT + - MIN ( - 1 ) AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT ALL + - MAX( col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL + - MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - + 89 AS col1 FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT 40 + - col1 BETWEEN NULL AND ( - 40 )
----
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( 41 * - 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 13 ) <= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT ALL + CAST( - 53 AS SIGNED ) FROM tab2
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + CAST ( - 53 AS INTEGER ) FROM tab2
----
-53
-53
-53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3941
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col0 * ( CAST( NULL AS SIGNED ) ) + + col1 * col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3941
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col0 * ( CAST ( NULL AS INTEGER ) ) + + col1 * col0 AND NULL
----

query I rowsort
SELECT 41 / 38 + + 59 AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 83 * 11 FROM tab2
----
913
913
913

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 AS cor0 WHERE col1 * col0 + - col1 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT DISTINCT - ( - - CAST( NULL AS SIGNED ) ) + + 24 * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT - ( - - CAST ( NULL AS INTEGER ) ) + + 24 * - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL 28 * + - MAX( DISTINCT + + 98 ) AS col2 FROM tab2
----
-2744

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL 28 * + - MAX ( DISTINCT + + 98 ) AS col2 FROM tab2
----
-2744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3948
SELECT DISTINCT COUNT( * ) * - + CAST( 5 AS SIGNED ) AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT COUNT ( * ) * - + CAST ( 5 AS INTEGER ) AS col2 FROM tab1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3949
SELECT DISTINCT + ( + MIN( ( 25 ) ) ) DIV - 14 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + ( + MIN ( ( 25 ) ) ) / - 14 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query I rowsort
SELECT ALL + ( + + col0 ) FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 54 / + + 42 * col1 <= - col0 + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT - + MAX( ALL + + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3952
SELECT - + MAX ( ALL + + col2 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT + col0 DIV col2 AS col1 FROM tab2 AS cor0 WHERE col1 * 98 > ( 62 )
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3953
SELECT + col0 / col2 AS col1 FROM tab2 AS cor0 WHERE col1 * 98 > ( 62 )
----
1
1
2

query I rowsort
SELECT ALL + col2 * + + col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + 80 NOT BETWEEN - col2 AND NULL
----

query II rowsort
SELECT DISTINCT - 0, + 6 AS col0 FROM tab0 AS cor0
----
0
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT - + CAST( NULL AS SIGNED ) * + 34 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT - + CAST ( NULL AS INTEGER ) * + 34 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 96 + - col0 NOT BETWEEN ( + col0 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * col0 + - + col2 AS col2 FROM tab1
----
366
4209
618

query I rowsort
SELECT DISTINCT 1 + col1 FROM tab2
----
52
68
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3963
SELECT COUNT( 96 ) * 54 + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT COUNT ( 96 ) * 54 + CAST ( NULL AS REAL ) FROM tab0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT DISTINCT MAX( ALL - 89 ) col1 FROM tab1
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3964
SELECT DISTINCT MAX ( ALL - 89 ) col1 FROM tab1
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 85 col1 FROM tab1
----
144
153
181

onlyif mysql # DIV for integer division: 
query I rowsort label-3966
SELECT ALL col0 + - 68 DIV + col2 col1 FROM tab2
----
44
63
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3966
SELECT ALL col0 + - 68 / + col2 col1 FROM tab2
----
44
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL - COUNT( ALL - ( 50 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - COUNT ( ALL - ( 50 ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - COUNT( * ) * + 71 + + + COUNT( * ) col2 FROM tab0
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3968
SELECT - COUNT ( * ) * + 71 + + + COUNT ( * ) col2 FROM tab0
----
-210

query I rowsort
SELECT ( 96 ) * - 61 + + col0 * - 99 FROM tab2
----
-10410
-12192
-13281

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT ALL ( - 58 ) / SUM( DISTINCT col2 - + col2 ) AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL AND + col2 NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL ( - 58 ) / SUM ( DISTINCT col2 - + col2 ) AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL AND + col2 NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col0 = col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 <= ( NULL )
----

query I rowsort
SELECT col1 + 88 + + col1 * - 2 AS col1 FROM tab0
----
67
7
87

query I rowsort
SELECT + 11 + + 14 AS col2 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - 69 + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col1 * 23 = NULL
----
-69

skipif mysql # not compatible
query I rowsort label-3975
SELECT - 69 + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col1 * 23 = NULL
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL + 70 * + COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL + 70 * + COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
210

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * col0 * ( 69 ) NOT IN ( ( - col2 ) * ( col1 * + col0 - 64 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT ALL - col2 * ( CAST( NULL AS SIGNED ) ) + - - col2 + col1 * 95 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - col2 * ( CAST ( NULL AS INTEGER ) ) + - - col2 + col1 * 95 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 73 NOT BETWEEN ( col2 * col1 ) AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( 57 ) AS col1 FROM tab0
----
57
57
57

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 * + + col1 ) NOT IN ( + col2 + 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 col1 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT + COUNT( * ) - + 36 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
-36

skipif mysql # not compatible
query I rowsort label-3983
SELECT + COUNT ( * ) - + 36 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-36

query I rowsort
SELECT - ( - 62 ) * - + col1 FROM tab1
----
-2914
-310
-868

query I rowsort
SELECT ALL + 73 AS col1 FROM tab0 cor0
----
73
73
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 <= NULL
----

query II rowsort
SELECT DISTINCT col1 AS col0, + ( + col0 ) + - col2 AS col1 FROM tab2 AS cor0
----
51
23
67
17
77
24

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3988
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - col2 * - + col1 - - CAST( NULL AS DECIMAL ) + ( 3 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3988
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - col2 * - + col1 - - CAST ( NULL AS REAL ) + ( 3 ) AND NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + 79 <= ( + - col0 - - col1 * - col2 )
----
23
40
58

query I rowsort
SELECT DISTINCT - + 27 * + + 85 * 54 * + - col1 * + + 75 AS col2 FROM tab2 AS cor0
----
474032250
622748250
715695750

query I rowsort
SELECT + - ( + - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT - col1, + col1 FROM tab1
----
-14
14
-47
47
-5
5

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - col1 - col0 * - col0 ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3995
SELECT DISTINCT CAST( + MIN( + col1 ) AS SIGNED ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT CAST ( + MIN ( + col1 ) AS INTEGER ) AS col2 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) * + - col1 NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * + - col1 NOT IN ( col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT + + 33 DIV col2 FROM tab1 WHERE NOT - col0 + + 38 <= - col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT + + 33 / col2 FROM tab1 WHERE NOT - col0 + + 38 <= - col0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT - col0 < col1 * - 30
----
-2

skipif mysql # not compatible
query I rowsort label-3998
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT - col0 < col1 * - 30
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4001
SELECT DISTINCT CAST( NULL AS SIGNED ), col2 col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4001
SELECT DISTINCT CAST ( NULL AS INTEGER ), col2 col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT - - 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
26

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 52 + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4004
SELECT COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

query I rowsort
SELECT 48 * - - 84 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a0e0539b6c778dc1428b967d1e327c8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT + + CAST( NULL AS SIGNED ) + - - MAX( + + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT + + CAST ( NULL AS INTEGER ) + - - MAX ( + + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( - - col0 ) + + - col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - col1 + + - col0 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-141
64
-142
75
-97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL + COUNT( DISTINCT col1 ) + - - 0 * 6 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL + COUNT ( DISTINCT col1 ) + - - 0 * 6 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4010
SELECT DISTINCT 19 * 25 - - col0 + + + col2 * + 69 AS col1, + 10 * - + col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1252
NULL
3733
NULL
7403
NULL

skipif mysql # not compatible
query II rowsort label-4010
SELECT DISTINCT 19 * 25 - - col0 + + + col2 * + 69 AS col1, + 10 * - + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1252
NULL
3733
NULL
7403
NULL

query I rowsort
SELECT ALL col2 * + - col2 + + - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3486
-4671
-9230

query I rowsort
SELECT - col1 + + - col2 * - col0 * - 14 * - col0 AS col2 FROM tab2 AS cor0
----
2293683
4567433
681301

query I rowsort
SELECT ALL + col2 + - + 92 - - 27 * ( + col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
117416
28497
69068

query I rowsort
SELECT DISTINCT - + 41 + - col1 AS col0 FROM tab2 AS cor0
----
-108
-118
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + - - col2 AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL col1 + + col1 + - col1 * col2 + 56 + - col0 FROM tab0
----
-138
-199
-3604

query I rowsort
SELECT ALL col0 * - - 58 * + col1 FROM tab2
----
136068
285824
291450

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT + 77 / + ( + - col1 ) IN ( - 24 * + col2 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT + SUM( col0 ) + - + COUNT( * ) FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + SUM ( col0 ) + - + COUNT ( * ) FROM tab2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT + COUNT( * ) * + 0 * + 13 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT + COUNT ( * ) * + 0 * + 13 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 - - ( - + col1 ) col1, 33 FROM tab2
----
-141
33
-142
33
-97
33

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4024
SELECT + SUM( col1 ) DIV - MAX( + 70 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4024
SELECT + SUM ( col1 ) / - MAX ( + 70 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL 31 * - - 43 AS col2 FROM tab0
----
1333
1333
1333

query I rowsort
SELECT DISTINCT - 36 - - - 70 AS col2 FROM tab1 AS cor0
----
-106

query I rowsort
SELECT ALL - - ( 16 ) FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT ALL + + col0 + + col2 + - 29 - - 6 + + col2 AS col0 FROM tab1 AS cor0
----
180
204
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT + CAST( NULL AS SIGNED ) - + + COUNT( * ) * - 72 + 88 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4029
SELECT + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) * - 72 + 88 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 88 - 79 FROM tab0 cor0
----
9
9
9

query I rowsort
SELECT ALL - ( - 35 ) + - - col1 + - col0 FROM tab1 AS cor0
----
-2
-45
-9

query I rowsort
SELECT DISTINCT col0 + + + col1 - + col0 * - + 71 / - + col1 AS col2 FROM tab2 WHERE 26 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 62 * - + 24 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 62 * - + 24 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * col2 col2 FROM tab1
----
2950
3400
4800

query III rowsort
SELECT * FROM tab1 WHERE NOT - 95 > - 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 55 * - - col2 AS col2 FROM tab2 AS cor0
----
-1265
-2200
-3190

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) BETWEEN - col0 + col2 AND NULL
----

query I rowsort
SELECT - 31 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 64 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4040
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( CAST( 56 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4040
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( CAST ( 56 AS REAL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL > - + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 10 IS NULL
----

query I rowsort
SELECT 52 * - 47 FROM tab1
----
-2444
-2444
-2444

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT ( - 94 ) DIV - 39 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4045
SELECT ( - 94 ) / - 39 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4046
SELECT col1 col2, 10 + + + CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4046
SELECT col1 col2, 10 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - + col1 + - 74 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT + + MIN( + col1 ) col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4050
SELECT DISTINCT + + MIN ( + col1 ) col2 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL col2 + 71 FROM tab2 AS cor0
----
111
129
94

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col1 FROM tab0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT 11 DIV - col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4054
SELECT 11 / - col2 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT AVG ( - ( + CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT AVG ( - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 87, 4 - + + ( - 36 ) col0 FROM tab2
----
-87
40
-87
40
-87
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4057
SELECT DISTINCT + 62, COUNT( * ) AS col1 FROM tab0
----
62
3

skipif mysql # not compatible
query II rowsort label-4057
SELECT DISTINCT + 62, COUNT ( * ) AS col1 FROM tab0
----
62
3

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 * 21 AND - - 15
----

query I rowsort
SELECT col2 / + + 37 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT DISTINCT + col2 + + col0 - ( + CAST( NULL AS SIGNED ) ) + col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT + col2 + + col0 - ( + CAST ( NULL AS INTEGER ) ) + col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( 1 )
----

query I rowsort
SELECT + 62 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col1 FROM tab0 WHERE - col1 > col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4065
SELECT - 42 DIV COUNT( * ) AS col1 FROM tab2, tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4065
SELECT - 42 / COUNT ( * ) AS col1 FROM tab2, tab0 cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT - col1 + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT - col1 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col2 col0 FROM tab0
----
100
2209
9801

query I rowsort
SELECT 74 + - 46 + + col0 AS col2 FROM tab1
----
113
119
79

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL NOT BETWEEN - col0 AND - col2 * + - col1 / + 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT MAX( ALL - 81 ) + 38 AS col0 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-4070
SELECT MAX ( ALL - 81 ) + 38 AS col0 FROM tab2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT - - 33 - 85 * 29 FROM tab0 WHERE + col2 * - col0 + + ( - - col1 ) + - - col0 > + col2 + - - CAST( - col2 AS SIGNED ) * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4071
SELECT - - 33 - 85 * 29 FROM tab0 WHERE + col2 * - col0 + + ( - - col1 ) + - - col0 > + col2 + - - CAST ( - col2 AS INTEGER ) * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL ( - 77 ) - COUNT( * ) col1 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4072
SELECT ALL ( - 77 ) - COUNT ( * ) col1 FROM tab1 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT ( + 97 ), col1 * + col2 AS col0 FROM tab1 cor0
----
97
1344
97
295
97
3196

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab1 cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT - 54 + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT - 54 + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-45

query II rowsort
SELECT col1 AS col0, + col0 - - 63 FROM tab1
----
14
114
47
154
5
148

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE col0 * - + 30 * col2 + + 3 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4079
SELECT ALL - CAST( - 88 AS SIGNED ) DIV - MAX( ALL col2 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL - CAST ( - 88 AS INTEGER ) / - MAX ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4080
SELECT DISTINCT 93 DIV + COUNT( * ) AS col0 FROM tab2 cor0
----
31

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT 93 / + COUNT ( * ) AS col0 FROM tab2 cor0
----
31

query II rowsort
SELECT ALL col1, col0 * + + 81 FROM tab1 AS cor0
----
14
4131
47
7371
5
6885

query I rowsort
SELECT 36 * + col1 FROM tab1 AS cor0
----
1692
180
504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 AS col0, + col0 col1 FROM tab2 cor0
----
23
46
40
64
58
75

query I rowsort
SELECT col0 * + + col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT - MIN( col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT - MIN ( col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT + 87 * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT + 87 * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + col1 AS col2, 70 AS col2 FROM tab2 AS cor0
----
-51
70
-67
70
-77
70

query I rowsort
SELECT DISTINCT + + col0 * + 15 FROM tab1 AS cor0
----
1275
1365
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - - COUNT( * ) * + 79 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-4089
SELECT - - COUNT ( * ) * + 79 FROM tab1 AS cor0
----
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col0 FROM tab1 WHERE NOT + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4091
SELECT col0 DIV - 42 col1, - 67 FROM tab1
----
-1
-67
-2
-67
-2
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4091
SELECT col0 / - 42 col1, - 67 FROM tab1
----
-1
-67
-2
-67
-2
-67

query II rowsort
SELECT DISTINCT 14 * ( - - col2 ) * + 89 AS col2, + ( - + 24 ) AS col1 FROM tab1
----
119616
-24
73514
-24
84728
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + 93 * + MAX( ALL - col2 ) AS col1 FROM tab2
----
-2139

skipif mysql # not compatible
query I rowsort label-4093
SELECT + 93 * + MAX ( ALL - col2 ) AS col1 FROM tab2
----
-2139

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + 8 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * + + col2 AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + - ( 41 ) + - col0 + ( col1 ) FROM tab2 AS cor0
----
-28
-36
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 41 col0 FROM tab2 cor0
----
41
41
41

query I rowsort
SELECT ALL + col2 + col2 + + + col0 FROM tab1 AS cor0
----
203
227
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT + + CAST( col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4102
SELECT + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE 33 > NULL
----

query I rowsort
SELECT ALL - col2 + 9 + + 62 * 87 * + + ( + + col0 ) FROM tab2
----
248110
345185
404501

query I rowsort
SELECT + 13 FROM tab0 WHERE + 47 NOT BETWEEN + col2 AND ( NULL )
----
13

query IIIIII rowsort
SELECT ALL * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT + col1 + + col2 * - + col1 * + 23 + + col0 + - col2, + 81 AS col1 FROM tab1 AS cor0
----
-30943
81
-6754
81
-73438
81

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT + COUNT( * ) + + - 80 AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT + COUNT ( * ) + + - 80 AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ( - ( + - COUNT( DISTINCT col0 ) ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4112
SELECT ( - ( + - COUNT ( DISTINCT col0 ) ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT DISTINCT + col1 + - col1 DIV + 59 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT + col1 + - col1 / + 59 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col2 FROM tab2 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col2 FROM tab0 cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT col0 - - 45 + + 59 FROM tab2
----
150
168
179

query I rowsort
SELECT ALL + col0 + - col0 - + col2 FROM tab2 WHERE col1 + - col0 - ( + + 68 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NULL AND NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4120
SELECT DISTINCT 29 DIV - COUNT( * ) - - - 96 AS col2 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT 29 / - COUNT ( * ) - - - 96 AS col2 FROM tab1
----
-105

query II rowsort
SELECT ALL col2 AS col2, + col1 AS col2 FROM tab2
----
23
51
40
77
58
67

query II rowsort
SELECT ALL - col1, col2 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-28
-67
-9
-77
-37

query I rowsort
SELECT + ( + - ( + col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT - 89 IN ( - col1, - 63, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT CAST( NULL AS SIGNED ) * + 24 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT CAST ( NULL AS INTEGER ) * + 24 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4126
SELECT ALL * FROM tab0 AS cor0 WHERE 79 - + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4126
SELECT ALL * FROM tab0 AS cor0 WHERE 79 - + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT DISTINCT - - MIN( + col2 ), + MIN( + col0 ) AS col0 FROM tab2 cor0
----
23
46

skipif mysql # not compatible
query II rowsort label-4128
SELECT DISTINCT - - MIN ( + col2 ), + MIN ( + col0 ) AS col0 FROM tab2 cor0
----
23
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT - col2 DIV col0 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4130
SELECT - col2 / col0 * - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + + + 92 AS col1 FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - + col1 + + 57 NOT IN ( + - 72 + col0 )
----

query I rowsort
SELECT + col2 * - 62 AS col1 FROM tab0
----
-2914
-6138
-620

query I rowsort
SELECT - 9 * - 72 AS col2 FROM tab0
----
648
648
648

query I rowsort
SELECT ALL - 85 FROM tab0 WHERE NOT NULL >= - 60
----

query I rowsort
SELECT DISTINCT + + col2 + 24 FROM tab0 WHERE NOT - + col2 + 84 + 22 < - col1
----
123
34
71

query I rowsort
SELECT ALL - + ( 47 ) AS col1 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - col0 * + 87 AS col1 FROM tab2 AS cor0
----
-4002
-5568
-6525

query III rowsort
SELECT * FROM tab2 cor0 WHERE + ( col1 ) <= NULL
----

query I rowsort
SELECT - + col2 - + col2 FROM tab0 cor0
----
-198
-20
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT DISTINCT + + CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT + + CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT col1 AS col2, + col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT COUNT( * ) + ( 10 ) - + 36 col0 FROM tab1
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4143
SELECT COUNT ( * ) + ( 10 ) - + 36 col0 FROM tab1
----
-23

query I rowsort
SELECT DISTINCT + 37 - - 81 AS col0 FROM tab0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT + ( - - 1 ) + + - 41 DIV col0 + - 17 * - - col1 AS col2 FROM tab0
----
-1378
-16
-356

skipif mysql # not compatible
query I rowsort label-4145
SELECT + ( - - 1 ) + + - 41 / col0 + - 17 * - - col1 AS col2 FROM tab0
----
-1378
-16
-356

query I rowsort
SELECT ALL - col0 + - ( + - col1 ) + + 27 AS col2 FROM tab0
----
-39
-69
93

query I rowsort
SELECT + 82 + 37 AS col1 FROM tab2
----
119
119
119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col0 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT ALL - + col0 AS col2, + col2 AS col2 FROM tab0 cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT + + COUNT( + col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4150
SELECT + + COUNT ( + col0 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ( - - col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT + 8 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 8 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
8

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4154
SELECT col2 DIV - col2 AS col1, ( + - col0 ) FROM tab0
----
-1
-15
-1
-87
-1
-97

skipif mysql # not compatible
query II rowsort label-4154
SELECT col2 / - col2 AS col1, ( + - col0 ) FROM tab0
----
-1
-15
-1
-87
-1
-97

query I rowsort
SELECT DISTINCT + ( + + col0 ) * col2 AS col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT IN ( ( + col2 ), + col2 * col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - 73
----

query I rowsort
SELECT ALL + - 88 AS col2 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE + col2 NOT IN ( col1 / - - 51 + - col2, - col2, CAST( + col2 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE + col2 NOT IN ( col1 / - - 51 + - col2, - col2, CAST ( + col2 AS INTEGER ), col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT - + SUM( ALL col0 ) col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4160
SELECT - + SUM ( ALL col0 ) col1 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - 11 * col2 FROM tab0 AS cor0
----
15
-517
87
-110
97
-1089

query I rowsort
SELECT col0 * - + 16 + col0 FROM tab0 AS cor0
----
-1305
-1455
-225

query I rowsort
SELECT - col2 + - - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4165
SELECT COUNT( * ) * 98 + - + 15 * + 38 AS col2, - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-276
-3

skipif mysql # not compatible
query II rowsort label-4165
SELECT COUNT ( * ) * 98 + - + 15 * + 38 AS col2, - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-276
-3

query I rowsort
SELECT col0 + + - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + + 89 FROM tab2 AS cor0 WHERE ( - - col0 IS NOT NULL )
----
89
89
89

query I rowsort
SELECT 88 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
19800
666072
827992

query I rowsort
SELECT ALL ( + + col2 ) + + + col2 AS col0 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT - col0 + + + 47 + + col2 AS col0 FROM tab2 AS cor0
----
23
24
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4171
SELECT ALL + - col0 DIV col1 + + 79 AS col2, 99 AS col0 FROM tab0 AS cor0
----
-18
99
75
99
79
99

skipif mysql # not compatible
query II rowsort label-4171
SELECT ALL + - col0 / col1 + + 79 AS col2, 99 AS col0 FROM tab0 AS cor0
----
-18
99
75
99
79
99

query I rowsort
SELECT DISTINCT col2 * - - col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT + COUNT( * ) DIV + MIN( col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT + COUNT ( * ) / + MIN ( col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4175
SELECT + col2 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT + col2 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + + 65 ) AS col2 FROM tab1 cor0
----
65
65
65

query I rowsort
SELECT + + ( - 91 ) * - 96 AS col1 FROM tab0 AS cor0
----
8736
8736
8736

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 54 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT DISTINCT - 20 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT - 20 / - col2 AS col0 FROM tab0 AS cor0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL - SUM( ALL + 41 ) AS col1 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL - SUM ( ALL + 41 ) AS col1 FROM tab0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT + CAST( + col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4181
SELECT + CAST ( + col2 AS INTEGER ) FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = + 12 + + + 61 + - + 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + ( - - col1 ) ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT - - col0 = - - 79
----
-3

skipif mysql # not compatible
query I rowsort label-4184
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - - col0 = - - 79
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND + col1 * 59 * - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - ( + SUM( ( - - col0 ) ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4186
SELECT - ( + SUM ( ( - - col0 ) ) ) FROM tab2
----
-185

query I rowsort
SELECT + ( + 89 ) AS col1 FROM tab2 AS cor0
----
89
89
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 92 * + 53 <= - - 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL + + ( - 25 ) + - ( + MAX( - 79 ) ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + + ( - 25 ) + - ( + MAX ( - 79 ) ) AS col1 FROM tab1 AS cor0
----
54

query III rowsort
SELECT * FROM tab0 WHERE + + 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT + col2 AS col2, + col1 AS col0, col0 FROM tab1
----
9 values hashing to 7524920890c0b0661487d144e07748cb

query I rowsort
SELECT + 98 AS col1 FROM tab2 WHERE ( + - 43 * + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL - COUNT( DISTINCT col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - COUNT ( DISTINCT col2 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT ALL CAST( NULL AS SIGNED ) * - - ( + col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL CAST ( NULL AS INTEGER ) * - - ( + col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) * + + col2 + - + col2 AS col0 FROM tab1
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT COUNT( * ) + - - 18 AS col1 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4196
SELECT COUNT ( * ) + - - 18 AS col1 FROM tab0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) * - col0 + + 52 col0 FROM tab2
----
2398
4980
5077

query II rowsort
SELECT col1 + + col0, col2 * + + 95 AS col0 FROM tab1
----
138
6460
65
9120
90
5605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT col2 + - 26 + CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
-103
-24
6

skipif mysql # not compatible
query I rowsort label-4199
SELECT col2 + - 26 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
-103
-24
6

query I rowsort
SELECT DISTINCT 3 * - + col2 FROM tab1
----
-177
-204
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT DISTINCT + COUNT( * ) col1 FROM ( tab2 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-4201
SELECT DISTINCT + COUNT ( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT DISTINCT 58 * col1 + - - CAST( + - ( - col0 ) AS SIGNED ) col1 FROM tab1
----
2817
375
863

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4202
SELECT DISTINCT 58 * col1 + - - CAST ( + - ( - col0 ) AS INTEGER ) col1 FROM tab1
----
2817
375
863

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + + col1 - + - 6 - 16 - - 77 - col2 * + 35 FROM tab1 AS cor0
----
-1993
-2266
-3279

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab0 cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + 14 * COUNT( + - 15 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4206
SELECT + 14 * COUNT ( + - 15 ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT + ( + col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT + col2, 22 AS col0 FROM tab1
----
59
22
68
22
96
22

query I rowsort
SELECT + - col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT - SUM( DISTINCT + ( - col2 ) ) AS col1, + COUNT( * ) FROM tab0
----
156
3

skipif mysql # not compatible
query II rowsort label-4210
SELECT - SUM ( DISTINCT + ( - col2 ) ) AS col1, + COUNT ( * ) FROM tab0
----
156
3

query II rowsort
SELECT col2 AS col1, col1 FROM tab0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 28 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT DISTINCT 8 DIV - - col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT 8 / - - col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 / + col1 IS NOT NULL
----

query I rowsort
SELECT + 64 FROM tab2 cor0 WHERE NOT + 90 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 58 - + - col1 > - - ( 30 ) + - + 88 * col0
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + 23 AS col1 FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL + ( + - COUNT( * ) ) + - - 49 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + ( + - COUNT ( * ) ) + - - 49 FROM tab0 AS cor0
----
46

query I rowsort
SELECT + + 71 * + ( - col0 ) * + col0 + + col2 + col0 FROM tab0 AS cor0
----
-15913
-537302
-667843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL >= 15
----

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL >= 15
----

query I rowsort
SELECT + + col0 * + + col0 + - col1 FROM tab1 AS cor0
----
2587
7220
8234

query I rowsort
SELECT + - 98 + + col0 FROM tab2 AS cor0
----
-23
-34
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL + + COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL + + COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4227
SELECT - col2 DIV - + 29 + + + col0 + + CAST( col1 AS SIGNED ) * 91 col0 FROM tab0 AS cor0
----
191
1998
7387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4227
SELECT - col2 / - + 29 + + + col0 + + CAST ( col1 AS INTEGER ) * 91 col0 FROM tab0 AS cor0
----
191
1998
7387

query II rowsort
SELECT DISTINCT - ( col1 ) AS col2, col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT + - col2 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab0 AS cor0 WHERE - 42 <> + 71
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 > col0
----

query I rowsort
SELECT DISTINCT col2 * + col0 + + col2 * + 23 FROM tab1
----
6372
7104
7752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col1 FROM tab2
----
44

query I rowsort
SELECT ALL - + col1 * - + col2 + + + col0 AS col0 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT - 72 DIV - col1 - - col2 + - - ( + + col2 ) FROM tab2 AS cor0
----
117
47
80

skipif mysql # not compatible
query I rowsort label-4235
SELECT - 72 / - col1 - - col2 + - - ( + + col2 ) FROM tab2 AS cor0
----
117
47
80

query II rowsort
SELECT 4 * ( + - col2 ) + col0 + 78 AS col1, col1 FROM tab1 AS cor0
----
-103
47
-255
14
-73
5

query I rowsort
SELECT + + col1 + - - col2 AS col1 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT ALL + CAST( NULL AS SIGNED ) / + + col0 - - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL + CAST ( NULL AS INTEGER ) / + + col0 - - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4241
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + - CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4241
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + - CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 24 * + 73 FROM tab1 AS cor0
----
1752
1752
1752

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 55 AND + ( - 60 ) * + 70 / - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT ALL col0 DIV + 25 AS col0 FROM tab0 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL col0 / + 25 AS col0 FROM tab0 AS cor0
----
0
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4245
SELECT 14 * - + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT 14 * - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 89 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
89
89
89

query I rowsort
SELECT DISTINCT + ( + 25 ) AS col1 FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT DISTINCT + MIN( - 88 ) AS col2 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + MIN ( - 88 ) AS col2 FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT DISTINCT + COUNT( - ( + + col2 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT + COUNT ( - ( + + col2 ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT + 66 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT + 66 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
198

query I rowsort
SELECT ALL + 84 * col0 FROM tab1
----
4284
7140
7644

query I rowsort
SELECT DISTINCT col1 * - ( - + col1 ) AS col0 FROM tab1
----
196
2209
25

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ( - + ( COUNT( + - col0 ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4254
SELECT ( - + ( COUNT ( + - col0 ) ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4255
SELECT + 99 DIV - CAST( col2 AS SIGNED ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4255
SELECT + 99 / - CAST ( col2 AS INTEGER ) FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT DISTINCT + 88 DIV col0 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT + 88 / col0 AS col1 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT DISTINCT col0 DIV - - col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT col0 / - - col2 FROM tab1 cor0
----
0
1

query I rowsort
SELECT + 58 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
58
58
58

query I rowsort
SELECT - - 71 AS col1 FROM tab1 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT DISTINCT + - ( + CAST( col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT + - ( + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4261
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL col1 + + + col1 FROM tab1 AS cor0
----
10
28
94

query II rowsort
SELECT ALL 12 AS col2, 3 FROM tab1 AS cor0
----
12
3
12
3
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT MIN( DISTINCT + 52 ) + COUNT( * ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT MIN ( DISTINCT + 52 ) + COUNT ( * ) FROM tab0 AS cor0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4265
SELECT ALL - CAST( NULL AS SIGNED ) * - + SUM( ALL col2 ) + - COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - CAST ( NULL AS INTEGER ) * - + SUM ( ALL col2 ) + - COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + + col2 + + 95 FROM tab2 AS cor0
----
118
135
153

query I rowsort
SELECT DISTINCT + col2 + col0 + col1 AS col2 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT col2 + + + ( 70 ) FROM tab0
----
117
169
80

query I rowsort
SELECT ALL - 62 + col0 AS col1 FROM tab1
----
-11
23
29

query I rowsort
SELECT - col0 + ( - col2 ) FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL col2 - + col1 AS col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - 37 + - col2 + col1 AS col0 FROM tab1
----
-119
-58
-91

query I rowsort
SELECT - - col2 + 25 FROM tab1 AS cor0
----
121
84
93

query I rowsort
SELECT DISTINCT col1 + - - ( + + col2 ) AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ( + + 1 ) FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + ( - + col2 ) AS col1 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT SUM( DISTINCT + 95 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 - - - col1 * - 63 * + + col2 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT SUM ( DISTINCT + 95 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 - - - col1 * - 63 * + + col2 * + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT ALL CAST( + - col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + ( - - col2 ) + + col0 * - 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT + MIN( + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4280
SELECT + MIN ( + col1 ) AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT + ( - 67 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT + 49 * - COUNT( + ( col0 ) ) DIV ( - - ( - + COUNT( * ) ) ) + - 51 AS col2 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4282
SELECT + 49 * - COUNT ( + ( col0 ) ) / ( - - ( - + COUNT ( * ) ) ) + - 51 AS col2 FROM tab1 cor0
----
-2

query II rowsort
SELECT + 37, col2 AS col2 FROM tab2 AS cor0
----
37
23
37
40
37
58

query I rowsort
SELECT - ( - + col1 ) * + 74 FROM tab1 AS cor0
----
1036
3478
370

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 17 * - ( + - col2 ) + - col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - col2 AS col2 FROM tab2 WHERE NOT ( 32 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4287
SELECT ALL - CAST( NULL AS SIGNED ) / - - col1, + col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4287
SELECT ALL - CAST ( NULL AS INTEGER ) / - - col1, + col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + ( - SUM( ALL col0 ) ) * - + ( COUNT( * ) ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-4288
SELECT + ( - SUM ( ALL col0 ) ) * - + ( COUNT ( * ) ) FROM tab2
----
555

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT ( ( NOT ( ( col1 * 10 ) IS NULL ) ) )
----

query II rowsort
SELECT col1, 58 AS col0 FROM tab0
----
1
58
21
58
81
58

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT - col1 * - 68 AS col1 FROM tab2
----
3468
4556
5236

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4294
SELECT DISTINCT + COUNT( DISTINCT + 72 ), 77 DIV + 9 AS col1 FROM tab1
----
1
8

skipif mysql # not compatible
query II rowsort label-4294
SELECT DISTINCT + COUNT ( DISTINCT + 72 ), 77 / + 9 AS col1 FROM tab1
----
1
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 + + 62 + + 28 col1 FROM tab1 AS cor0 WHERE 87 IS NOT NULL
----
62

query II rowsort
SELECT ALL - col0 AS col0, + col2 * - col0 FROM tab0 WHERE NOT + col0 NOT BETWEEN col0 * + col2 - + + col0 / col2 + - col1 AND + + col1 - + 82 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL 70 * + COUNT( * ) * + - 73 AS col1 FROM tab2 AS cor0
----
-15330

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL 70 * + COUNT ( * ) * + - 73 AS col1 FROM tab2 AS cor0
----
-15330

query I rowsort
SELECT col1 * - 34 + - 59 + + col1 FROM tab2 AS cor0
----
-1742
-2270
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 - ( col1 ) * - + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT - COUNT( * ) * COUNT( * ) + 89 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
89

skipif mysql # not compatible
query I rowsort label-4302
SELECT - COUNT ( * ) * COUNT ( * ) + 89 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL + 72 - COUNT( + ( - col1 ) ) AS col0 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + 72 - COUNT ( + ( - col1 ) ) AS col0 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT + 72 - - COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-4304
SELECT + 72 - - COUNT ( * ) FROM tab0
----
75

query I rowsort
SELECT + 53 * + + 62 - + - 20 FROM tab0
----
3306
3306
3306

query I rowsort
SELECT - + 65 + - 29 FROM tab2 AS cor0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 99, col0 col2 FROM tab2 AS cor0
----
99
46
99
64
99
75

query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab1, tab2 AS cor0
----
66

query I rowsort
SELECT - 69 * - - col1 * + col0 + + col0 FROM tab1 AS cor0
----
-29240
-295022
-49215

query I rowsort
SELECT + - col0 * 28 FROM tab2 AS cor0
----
-1288
-1792
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT - MIN( ALL + - ( - col2 ) ) * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT - MIN ( ALL + - ( - col2 ) ) * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - col0, 38 AS col1 FROM tab2
----
-46
38
-64
38
-75
38

query II rowsort
SELECT ALL col2 AS col0, col1 + col2 FROM tab2
----
23
74
40
117
58
125

query I rowsort
SELECT - 11 * 2 AS col2 FROM tab0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT MAX( - col0 ) * + - 70 FROM tab2
----
3220

skipif mysql # not compatible
query I rowsort label-4315
SELECT MAX ( - col0 ) * + - 70 FROM tab2
----
3220

query I rowsort
SELECT 17 * col2 FROM tab0
----
1683
170
799

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + COUNT( DISTINCT col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4317
SELECT + COUNT ( DISTINCT col0 ) col2 FROM tab0
----
3

query I rowsort
SELECT col1 + - + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4320
SELECT col0 * - col0, 91 / col1 AS col0 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) * + col2 = ( col0 )
----

skipif mysql # not compatible
query II rowsort label-4320
SELECT col0 * - col0, 91 / col1 AS col0 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) * + col2 = ( col0 )
----

query I rowsort
SELECT DISTINCT - ( + col2 ) + - col1 FROM tab2 AS cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 37 col2, col1 AS col2 FROM tab2
----
-37
51
-37
67
-37
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL - MAX( - ( col0 ) ) * + + 17 * + 10 col0 FROM tab1 AS cor0
----
8670

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4324
SELECT ALL - MAX ( - ( col0 ) ) * + + 17 * + 10 col0 FROM tab1 AS cor0
----
8670

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT ALL col1 DIV - + col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL col1 / - + col1 FROM tab2 cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 IS NOT NULL AND ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 + 1 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT + + 33 + col2 FROM tab0 AS cor0
----
132
43
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT col0 + - 67 DIV + 71 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4329
SELECT col0 + - 67 / + 71 FROM tab2
----
46
64
75

query I rowsort
SELECT col2 + - - col2 FROM tab2
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 93 + - col2 col1 FROM tab2
----
4255
5912
6917

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ( 3 ) + - COUNT( - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4332
SELECT ( 3 ) + - COUNT ( - col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL + COUNT( * ) + 71 col2 FROM tab2
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4333
SELECT ALL + COUNT ( * ) + 71 col2 FROM tab2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT ALL ( + SUM( + col0 ) ) - - COUNT( * ) DIV + 6 AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL ( + SUM ( + col0 ) ) - - COUNT ( * ) / + 6 AS col1 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL + 28 * 7 * MIN( DISTINCT - ( + col1 ) ) col0 FROM tab1 WHERE col0 + + 40 - - col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4335
SELECT ALL + 28 * 7 * MIN ( DISTINCT - ( + col1 ) ) col0 FROM tab1 WHERE col0 + + 40 - - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT DISTINCT 17 - - COUNT( * ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT 17 - - COUNT ( * ) FROM tab0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 61 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 61 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT ALL col2 DIV - ( - 82 ) + + col1 AS col0 FROM tab0 cor0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL col2 / - ( - 82 ) + + col1 AS col0 FROM tab0 cor0
----
2
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT 46 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + + col0 IN ( - 7, - col0 + - col2, + - col0 * CAST( - col0 AS SIGNED ) )
----
46
46
46

skipif mysql # not compatible
query I rowsort label-4339
SELECT 46 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + + col0 IN ( - 7, - col0 + - col2, + - col0 * CAST ( - col0 AS INTEGER ) )
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT + col2 DIV + + col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4340
SELECT + col2 / + + col0 FROM tab0
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT - 64 DIV 75 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT - 64 / 75 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT - ( - + CAST( - + MIN( + col2 ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4342
SELECT - ( - + CAST ( - + MIN ( + col2 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + - 98 * 3 FROM tab2 AS cor0
----
-294
-294
-294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4344
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4344
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 76 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-76

query I rowsort
SELECT ALL - - ( + 98 ) FROM tab1 cor0
----
98
98
98

query II rowsort
SELECT ALL + col2, + col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - 29 + - 48 FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL MAX( + ( - 15 ) ) AS col2 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL MAX ( + ( - 15 ) ) AS col2 FROM tab2 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL + SUM( col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL + SUM ( col1 ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT + col1 * + 28 FROM tab1
----
1316
140
392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4354
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) AS col0, + col0 col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4354
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) AS col0, + col0 col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 33 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 8 * + + ( - ( - + col1 ) ), + col1 * - + col0 AS col2 FROM tab2
----
408
-2346
536
-5025
616
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4358
SELECT DISTINCT + + col0 * - CAST( NULL AS SIGNED ) + + 61 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT + + col0 * - CAST ( NULL AS INTEGER ) + + 61 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 33 col0 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT ALL + ( + 39 ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + ( + 39 ) / - + COUNT ( * ) FROM tab1 AS cor0
----
-13

query I rowsort
SELECT - + 41 FROM tab0 cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT col2 + 39 * - - col2 FROM tab1 AS cor0
----
2360
2720
3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 24 col2 FROM tab2 AS cor0
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT - COUNT( * ) * - - MIN( + col2 ) * - 85 + - + 7 * 81 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1983

skipif mysql # not compatible
query I rowsort label-4364
SELECT - COUNT ( * ) * - - MIN ( + col2 ) * - 85 + - + 7 * 81 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL + col0 * - col0 - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + col0 * - col0 - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ( + - 86 ) FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT col0 + + + col0 + col0 FROM tab1
----
153
255
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT - MIN( ALL col1 ) + 39 col1 FROM tab0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4369
SELECT DISTINCT - MIN ( ALL col1 ) + 39 col1 FROM tab0
----
38

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND ( col1 + - col2 + - + col2 + - + ( + col2 ) - col0 ) IS NULL
----

query I rowsort
SELECT ALL - 18 * 48 FROM tab2
----
-864
-864
-864

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - ( - col1 ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + - col1 < - + ( 36 )
----
-47

query I rowsort
SELECT DISTINCT + 50 * + col2 FROM tab1
----
2950
3400
4800

query II rowsort
SELECT col2 AS col1, - col2 AS col1 FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT ALL - col0 * 46 * + - col0 AS col0 FROM tab0 AS cor0
----
10350
348174
432814

query I rowsort
SELECT col1 + - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT DISTINCT MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4379
SELECT DISTINCT - 25 DIV - MAX( ALL col0 ) + + MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT - 25 / - MAX ( ALL col0 ) + + MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT 79 * - 72 + - col1 FROM tab0 cor0
----
-5689
-5709
-5769

query I rowsort
SELECT DISTINCT - 26 FROM tab2 AS cor0 WHERE NOT col2 = - 53
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT COUNT( + + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4382
SELECT COUNT ( + + col2 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col0 FROM tab1 cor0
----
44
44
44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT col0 * 25 AS col1 FROM tab2
----
1150
1600
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 * + - 96 FROM tab1
----
-4896
-8160
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ( - 55 ) + COUNT( * ) * - SUM( ALL col2 ) FROM tab1
----
-724

skipif mysql # not compatible
query I rowsort label-4388
SELECT ( - 55 ) + COUNT ( * ) * - SUM ( ALL col2 ) FROM tab1
----
-724

query I rowsort
SELECT + 13 + - col1 FROM tab0
----
-68
-8
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4390
SELECT ALL CAST( NULL AS SIGNED ), 0 + + COUNT( * ) col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4390
SELECT ALL CAST ( NULL AS INTEGER ), 0 + + COUNT ( * ) col2 FROM tab0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT DISTINCT + col0 DIV 30 AS col1 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT + col0 / 30 AS col1 FROM tab0
----
0
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4392
SELECT * FROM tab2 WHERE NOT ( col1 / col0 ) NOT BETWEEN CAST( col0 AS SIGNED ) / - 59 AND - 1
----

skipif mysql # not compatible
query III rowsort label-4392
SELECT * FROM tab2 WHERE NOT ( col1 / col0 ) NOT BETWEEN CAST ( col0 AS INTEGER ) / - 59 AND - 1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4394
SELECT MAX( ALL col1 ) DIV MAX( + col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4394
SELECT MAX ( ALL col1 ) / MAX ( + col2 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 * col0 + - col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 * 80 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4397
SELECT DISTINCT MAX( - 56 ) DIV 38 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT MAX ( - 56 ) / 38 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT ALL + col0 - + col2 DIV - col1 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + col0 - + col2 / - col1 AS col2 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT + col2 DIV + ( col2 ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4399
SELECT + col2 / + ( col2 ) AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL NOT IN ( + 51 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT col0 DIV + col0 + - col1 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-4401
SELECT col0 / + col0 + - col1 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT + col1 * 27 + + col2 FROM tab1
----
1337
194
474

query I rowsort
SELECT + 7 * + ( 41 ) AS col2 FROM tab2
----
287
287
287

query I rowsort
SELECT DISTINCT - 24 + + col1 * - 57 AS col1 FROM tab0
----
-1221
-4641
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT col1 + col2 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT col1 + col2 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4408
SELECT * FROM tab0 WHERE + col1 + CAST( col1 AS SIGNED ) NOT BETWEEN - col2 * col2 + + 28 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4408
SELECT * FROM tab0 WHERE + col1 + CAST ( col1 AS INTEGER ) NOT BETWEEN - col2 * col2 + + 28 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( + col2 )
----

query I rowsort
SELECT - col1 * + col2 - col2 * col2 FROM tab2 WHERE - 6 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4411
SELECT - COUNT( * ) + + 70 DIV - ( - COUNT( * ) ) col1 FROM tab2
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4411
SELECT - COUNT ( * ) + + 70 / - ( - COUNT ( * ) ) col1 FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT 70 * MIN( DISTINCT + col0 ) + + MAX( DISTINCT col1 ) * COUNT( - col0 ) AS col0 FROM tab0 WHERE - 76 BETWEEN ( 19 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT 70 * MIN ( DISTINCT + col0 ) + + MAX ( DISTINCT col1 ) * COUNT ( - col0 ) AS col0 FROM tab0 WHERE - 76 BETWEEN ( 19 ) AND ( NULL )
----
NULL

query I rowsort
SELECT ALL col0 + 66 AS col1 FROM tab2 WHERE NOT ( - 33 * - col2 - + 75 ) <> ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT COUNT( * ) + ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT COUNT ( * ) + ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT + 76 * - 44 FROM tab2 AS cor0
----
-3344
-3344
-3344

query I rowsort
SELECT DISTINCT + 82 + 67 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
149

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + + col1 BETWEEN ( + col0 ) * + col2 + col1 AND - col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * - 88 FROM tab2 AS cor0
----
-2024
-3520
-5104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT - ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT - ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT + col1 * 2 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 60 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( 6 )
----
0

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( 6 )
----
0

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT ( 19 * + col0 ) IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL NOT IN ( + 73 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 83 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 20 + col0 NOT BETWEEN 36 AND NULL
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT + 74 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 92 IS NULL
----
-222

skipif mysql # not compatible
query I rowsort label-4428
SELECT + 74 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 92 IS NULL
----
-222

query I rowsort
SELECT - col2 + - 93 AS col2 FROM tab1 cor0
----
-152
-161
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT 31 * + COUNT( * ) AS col2 FROM tab1 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT 31 * + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT + 79 + 71 AS col1 FROM tab0 AS cor0
----
150
150
150

query I rowsort
SELECT DISTINCT + col0 * col2 + + 40 AS col1 FROM tab2 AS cor0
----
1098
2600
4390

query I rowsort
SELECT ALL + + col2 * + 64 + col1 AS col2 FROM tab2 AS cor0
----
1523
2637
3779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT - col0 / - CAST( NULL AS SIGNED ) + 40 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT - col0 / - CAST ( NULL AS INTEGER ) + 40 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + 6 AS col1 FROM tab0 AS cor0
----
27
7
87

query I rowsort
SELECT DISTINCT - 71 AS col2 FROM tab1 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT - COUNT( * ) + MAX( ALL col0 ) AS col2 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4437
SELECT - COUNT ( * ) + MAX ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT + COUNT( * ) + - 30 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT + COUNT ( * ) + - 30 FROM tab2 AS cor0
----
-27

query III rowsort
SELECT ALL * FROM tab0 WHERE - 90 IS NULL OR NOT ( + col1 * col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= 13
----

query I rowsort
SELECT DISTINCT - ( + col2 ) * ( 68 ) AS col1 FROM tab0
----
-3196
-6732
-680

query I rowsort
SELECT col1 * - 38 * - 85 FROM tab1
----
151810
16150
45220

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT COUNT( * ) FROM tab0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4443
SELECT COUNT ( * ) FROM tab0 WHERE - col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT DISTINCT - col0 DIV - - ( 75 ) FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT - col0 / - - ( 75 ) FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4445
SELECT + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL - 17 + MAX( col1 ) FROM tab1 WHERE NOT ( NULL ) = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - 17 + MAX ( col1 ) FROM tab1 WHERE NOT ( NULL ) = + col0
----
NULL

query I rowsort
SELECT ALL 25 + - col1 AS col0 FROM tab2 AS cor0
----
-26
-42
-52

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4448
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif mysql # not compatible
query IIIIII rowsort label-4448
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) BETWEEN + col2 AND ( - col2 * 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL 1 - - + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL 1 - - + COUNT ( * ) FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT - - CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4451
SELECT - - CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 43 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
43

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 IN ( ( - col1 ) * 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 63 * ( + - col1 ) - + col1 AS col2 FROM tab0
----
-1344
-5184
-64

query I rowsort
SELECT DISTINCT - 17 + + 7 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT - 89 AS col1, 89 AS col2 FROM tab0 AS cor0
----
-89
89
-89
89
-89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL + COUNT( * ) - + + COUNT( * ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4457
SELECT ALL + COUNT ( * ) - + + COUNT ( * ) col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 ) = NULL OR - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + col2 AS col0, col2 + - col2 AS col2 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + 14 + ( + col1 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - 80 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL + + col2 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4463
SELECT ALL + + col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4464
SELECT DISTINCT + + 52 AS col2, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
52
-3

skipif mysql # not compatible
query II rowsort label-4464
SELECT DISTINCT + + 52 AS col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
52
-3

query II rowsort
SELECT - col0, - 90 AS col1 FROM tab1 AS cor0
----
-51
-90
-85
-90
-91
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4466
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + ( - col0 ) ) BETWEEN ( NULL ) AND ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4466
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + ( - col0 ) ) BETWEEN ( NULL ) AND ( CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 10 = - col2 * 71 + ( + 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT MAX( DISTINCT col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT MAX ( DISTINCT col0 ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT ( - CAST( NULL AS SIGNED ) ) / - 18 / + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ( - CAST ( NULL AS INTEGER ) ) / - 18 / + + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL COUNT( + ( + - 74 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL COUNT ( + ( + - 74 ) ) FROM tab2
----
3

query II rowsort
SELECT ALL col1 * 17 AS col1, col0 + col2 AS col2 FROM tab2
----
1139
133
1309
104
867
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4472
SELECT ALL COUNT( * ) + 60 AS col1 FROM tab1 WHERE + ( + CAST( ( + 6 ) AS SIGNED ) ) + + col1 <= NULL
----
60

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL COUNT ( * ) + 60 AS col1 FROM tab1 WHERE + ( + CAST ( ( + 6 ) AS INTEGER ) ) + + col1 <= NULL
----
60

query III rowsort
SELECT * FROM tab1 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT DISTINCT COUNT( * ) * - MAX( - ( col0 ) ) * - 7 col1 FROM tab1
----
-1071

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4474
SELECT DISTINCT COUNT ( * ) * - MAX ( - ( col0 ) ) * - 7 col1 FROM tab1
----
-1071

onlyif mysql # aggregate syntax: 
query II rowsort label-4475
SELECT - COUNT( DISTINCT 77 ) AS col1, ( - 2 ) FROM tab1
----
-1
-2

skipif mysql # not compatible
query II rowsort label-4475
SELECT - COUNT ( DISTINCT 77 ) AS col1, ( - 2 ) FROM tab1
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL + + col2 DIV + 79 * 18 AS col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + + col2 / + 79 * 18 AS col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT - + MIN( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4478
SELECT - + MIN ( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL - - 21 * + col1 AS col0 FROM tab0 cor0
----
1701
21
441

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col2 * - col2 > NULL
----

query I rowsort
SELECT ALL ( 88 ) * 89 * + col0 AS col0 FROM tab2 AS cor0
----
360272
501248
587400

query I rowsort
SELECT + - 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT SUM( ALL 45 ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT SUM ( ALL 45 ) FROM tab1
----
135

query I rowsort
SELECT DISTINCT + - 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 = + 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT - ( + - col0 ) * - - col0 - + 83 + + 49 DIV + col2 AS col0 FROM tab0 AS cor0
----
143
7490
9326

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - ( + - col0 ) * - - col0 - + 83 + + 49 / + col2 AS col0 FROM tab0 AS cor0
----
143
7490
9326

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + + MAX( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4487
SELECT + + MAX ( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 - + col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 - + col0 = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4489
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE + ( + 23 ) BETWEEN NULL AND col0 / - col0 * - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE + ( + 23 ) BETWEEN NULL AND col0 / - col0 * - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL col2 + - + 0 * - 65 AS col1 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4491
SELECT 87 * CAST( + COUNT( * ) AS SIGNED ) + - 0 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-4491
SELECT 87 * CAST ( + COUNT ( * ) AS INTEGER ) + - 0 FROM tab1
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - 50 col2 FROM tab1
----
3
36
45

query I rowsort
SELECT ALL - col2 * + 78 - + col0 * + - 31 AS col0 FROM tab0
----
-3201
-4715
1917

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( - col2, col1 * + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL - - SUM( DISTINCT + + col0 ) * + - ( + + 74 ) FROM tab0 cor0
----
-14726

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - - SUM ( DISTINCT + + col0 ) * + - ( + + 74 ) FROM tab0 cor0
----
-14726

query I rowsort
SELECT - 74 * - 80 AS col1 FROM tab0 AS cor0
----
5920
5920
5920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT col1 - + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT col1 - + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - 8 - + col1 - - - col2 AS col2 FROM tab1
----
-104
-222
-491

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL MAX( DISTINCT + - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL MAX ( DISTINCT + - col0 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT + ( MAX( DISTINCT + - 46 ) ) AS col0 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + ( MAX ( DISTINCT + - 46 ) ) AS col0 FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT + MAX( - col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4501
SELECT + MAX ( - col2 ) AS col0 FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4502
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( + 12 / - + col2 )
----

skipif mysql # not compatible
query III rowsort label-4502
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( + 12 / - + col2 )
----

query I rowsort
SELECT ALL - 94 * + + col1 * - col2 FROM tab0 AS cor0
----
19740
357858
9306

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + col0 - + + col2 + col1 + - col0 / - col2 - ( col0 ) + - 98 ) BETWEEN 50 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT + MAX( + + col1 ) * + 28 * + + MIN( DISTINCT - ( + - col2 ) ) AS col0 FROM tab1
----
77644

skipif mysql # not compatible
query I rowsort label-4506
SELECT + MAX ( + + col1 ) * + 28 * + + MIN ( DISTINCT - ( + - col2 ) ) AS col0 FROM tab1
----
77644

query I rowsort
SELECT 13 FROM tab1 WHERE NOT + col2 - + - 92 + + col2 * - col1 IS NULL
----
13
13
13

query I rowsort
SELECT ALL - 51 AS col2 FROM tab1 WHERE NOT ( - - 29 * ( + - col2 ) / - + ( - + col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL - COUNT( * ) * - 24 AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - COUNT ( * ) * - 24 AS col1 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT - SUM( + - col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4510
SELECT - SUM ( + - col1 ) AS col0 FROM tab2
----
195

query II rowsort
SELECT - 61, - 94 AS col0 FROM tab1
----
-61
-94
-61
-94
-61
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT - col0 + - col0 * CAST( NULL AS SIGNED ) FROM tab2 WHERE - 16 * - 70 + + + col2 + - - 31 * 62 + 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - col0 + - col0 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE - 16 * - 70 + + + col2 + - - 31 * 62 + 26 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT col1, + 3 * + ( - - 72 ) FROM tab1
----
14
216
47
216
5
216

query II rowsort
SELECT DISTINCT - 10 AS col2, 33 * 77 - + - col0 AS col1 FROM tab0 AS cor0
----
-10
2556
-10
2628
-10
2638

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 80 - - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 17 * + + col2 FROM tab0
----
-1683
-170
-799

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT ALL col1 * + col0 DIV col0 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL col1 * + col0 / col0 AS col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT - 54 + COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4518
SELECT - 54 + COUNT ( * ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL 29 * + col0 FROM tab1 AS cor0
----
1479
2465
2639

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT 39 DIV 10 + - col0 AS col0 FROM tab1 AS cor0
----
-48
-82
-88

skipif mysql # not compatible
query I rowsort label-4520
SELECT 39 / 10 + - col0 AS col0 FROM tab1 AS cor0
----
-48
-82
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT DISTINCT - 89 + + col2 FROM tab0 AS cor0
----
-42
-79
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT ( + col0 ) + col1 DIV - + 97 + - ( + col1 ) FROM tab0 cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-4523
SELECT ( + col0 ) + col1 / - + 97 + - ( + col1 ) FROM tab0 cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT + COUNT( * ) * + + COUNT( - col0 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( - col0 ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 50 * + + col1 * col0 * col0 * col2 + + col2 + + + col1 * - col0 FROM tab2 AS cor0
----
1092932533
124101077
630779112

query I rowsort
SELECT ALL + col2 * - - col2 + col1 AS col0 FROM tab1 AS cor0
----
3486
4671
9230

query I rowsort
SELECT ALL col1 + 0 AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL - 85 FROM tab2 WHERE NOT 72 IS NULL
----
-85
-85
-85

query I rowsort
SELECT + col2 * 45 * - + col0 FROM tab1
----
-220320
-225675
-278460

onlyif mysql # aggregate syntax: 
query II rowsort label-4530
SELECT + 92 AS col2, COUNT( * ) + + 46 FROM tab0 WHERE + col0 <> ( col0 * - col2 + + col0 * - 12 )
----
92
49

skipif mysql # not compatible
query II rowsort label-4530
SELECT + 92 AS col2, COUNT ( * ) + + 46 FROM tab0 WHERE + col0 <> ( col0 * - col2 + + col0 * - 12 )
----
92
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL 23 * 96 * - + ( + 96 ) * 34 * + MAX( 62 ) FROM tab1
----
-446828544

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL 23 * 96 * - + ( + 96 ) * 34 * + MAX ( 62 ) FROM tab1
----
-446828544

query I rowsort
SELECT DISTINCT 21 - col1 + + 61 FROM tab1 WHERE NOT NULL IN ( col0 * col1 * 72 + + col0, + 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT + COUNT( * ) * SUM( - 75 ) * 11 AS col2 FROM tab0
----
-7425

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT + COUNT ( * ) * SUM ( - 75 ) * 11 AS col2 FROM tab0
----
-7425

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + + COUNT( * ) - + + COUNT( * ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4534
SELECT + + COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT + - 59 - + col0 FROM tab2 AS cor0
----
-105
-123
-134

query I rowsort
SELECT ALL - col0 * col0 * - - col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + ( + - 4 ) + 51 + - - COUNT( * ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4537
SELECT + ( + - 4 ) + 51 + - - COUNT ( * ) FROM tab0 AS cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT ALL + col2 * + col1 DIV + col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL + col2 * + col1 / + col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4539
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) + + + 69 DIV - ( + + 50 ) FROM tab1
----
3
-4

skipif mysql # not compatible
query II rowsort label-4539
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) + + + 69 / - ( + + 50 ) FROM tab1
----
3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4540
SELECT - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + - col1 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - COUNT( ALL + 54 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4542
SELECT - COUNT ( ALL + 54 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT - 21 * - col2 FROM tab1 cor0
----
1239
1428
2016

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + 15, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * col2 + + 90 FROM tab1 AS cor0
----
4986
5105
6278

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4546
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) + - 99, col2, - - col2, - + col2 )
----

skipif mysql # not compatible
query III rowsort label-4546
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) + - 99, col2, - - col2, - + col2 )
----

query I rowsort
SELECT ALL + col2 * + + col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 91 col2 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab0, tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL MIN( ALL + - 97 ) FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL MIN ( ALL + - 97 ) FROM tab1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4552
SELECT + 61 DIV + ( - col0 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4552
SELECT + 61 / + ( - col0 ) FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL + ( 50 ) AS col2 FROM tab0
----
50
50
50

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 <= 29
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 76 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 90 IN ( - 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col0 FROM tab2
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( col1 ) ) * + col0 col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + col0 * col0 + - 27 AS col2 FROM tab0 AS cor0
----
198
7542
9382

query I rowsort
SELECT DISTINCT - col2 * - + col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4561
SELECT - - 22 DIV - - COUNT( * ) col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4561
SELECT - - 22 / - - COUNT ( * ) col0 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT MIN( col2 ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT MIN ( col2 ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - col2 / + + col0 >= 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4565
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + col0 * + + col1 * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4565
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + col0 * + + col1 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT DISTINCT 33 + + 9 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT 33 + + 9 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4567
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) - - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 WHERE NOT - col1 NOT BETWEEN + col1 * - - 17 + + col0 AND - - ( - col1 ) - - ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - + col2 - + - 74 - + col2 + + + 81 - - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4570
SELECT ALL COUNT( * ) * + CAST( - 8 AS SIGNED ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL COUNT ( * ) * + CAST ( - 8 AS INTEGER ) FROM tab1
----
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 / + col0 < + - col2
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col1 * 76 * col1 AS col2 FROM tab0 AS cor0
----
33516
498636
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL + MAX( ALL - 47 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL + MAX ( ALL - 47 ) FROM tab1 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 41 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 41 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4576
SELECT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + 51 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 * + ( 99 ) + + + 69
----

query I rowsort
SELECT + 4 AS col1 FROM tab0 AS cor0 WHERE NOT 21 / + col0 * + col2 NOT BETWEEN - col0 / + - 51 AND - 4
----

query I rowsort
SELECT + - 80 FROM tab2 cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 75 col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT col0 * + + col1 * + col1 - + col1 FROM tab2 AS cor0
----
119595
336608
379379

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT SUM( DISTINCT - col0 ) col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4585
SELECT SUM ( DISTINCT - col0 ) col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + - COUNT( * ) * 89 AS col1 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-4586
SELECT + - COUNT ( * ) * 89 AS col1 FROM tab2 AS cor0
----
-267

query II rowsort
SELECT ALL 87 AS col2, + 63 * - - col2 FROM tab0
----
87
2961
87
6237
87
630

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 22 IS NOT NULL
----

query II rowsort
SELECT - col0, col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT col2 DIV + 35 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4590
SELECT col2 / + 35 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT 13 * COUNT( * ) AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-4591
SELECT 13 * COUNT ( * ) AS col1 FROM tab1
----
39

query I rowsort
SELECT col1 + + - 74 + + + col0 + 15 + + col0 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - col1 + - + 96 )
----

query I rowsort
SELECT ALL - 17 * + 84 * + col2 AS col0 FROM tab2
----
-32844
-57120
-82824

query I rowsort
SELECT DISTINCT ( col0 ) * + 51 FROM tab1
----
2601
4335
4641

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4595
SELECT DISTINCT col0 + - 72 + - + CAST( NULL AS SIGNED ) AS col0, col0 AS col2 FROM tab0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4595
SELECT DISTINCT col0 + - 72 + - + CAST ( NULL AS INTEGER ) AS col0, col0 AS col2 FROM tab0 WHERE + col0 IS NULL
----

query II rowsort
SELECT DISTINCT + col2, col2 AS col1 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query II rowsort label-4597
SELECT + 30 * - col2 AS col0, 41 * + col0 + col1 DIV - col0 FROM tab2 AS cor0
----
-1200
2623
-1740
3075
-690
1885

skipif mysql # not compatible
query II rowsort label-4597
SELECT + 30 * - col2 AS col0, 41 * + col0 + col1 / - col0 FROM tab2 AS cor0
----
-1200
2623
-1740
3075
-690
1885

query II rowsort
SELECT + - col1 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT - ( ( + 20 ) ) + col0 AS col1 FROM tab2
----
26
44
55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 49 * - - ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - 48 ) + 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 0 = + col0 + col2 + + col2
----

query I rowsort
SELECT + col1 * + col2 - + col2 + col1 FROM tab1 cor0
----
1262
241
3175

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT 98 + + MAX( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
145

skipif mysql # not compatible
query I rowsort label-4604
SELECT 98 + + MAX ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT DISTINCT - - col1 + - col0 * - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1296
1848
98

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT - - col1 + - col0 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT + 93 FROM tab1, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL CAST( + col1 AS SIGNED ) - ( - 35 ) AS col0 FROM tab1
----
40
49
82

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL CAST ( + col1 AS INTEGER ) - ( - 35 ) AS col0 FROM tab1
----
40
49
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4608
SELECT * FROM tab0 WHERE ( + - col1 + + - CAST( + col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4608
SELECT * FROM tab0 WHERE ( + - col1 + + - CAST ( + col1 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT COUNT( * ) - - 12 AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-4609
SELECT COUNT ( * ) - - 12 AS col0 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT 15 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
15
-3

skipif mysql # not compatible
query II rowsort label-4610
SELECT 15 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
15
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + + COUNT( - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4611
SELECT + + COUNT ( - col2 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL col2, 76 * - + 59 AS col0 FROM tab0 cor0
----
10
-4484
47
-4484
99
-4484

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL > 65
----
0

skipif mysql # not compatible
query I rowsort label-4614
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL > 65
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT + CAST( + 33 AS SIGNED ) FROM tab0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-4615
SELECT + CAST ( + 33 AS INTEGER ) FROM tab0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL + - COUNT( * ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4616
SELECT ALL + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + - 86 AS col2 FROM tab0 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - + col0 / - + col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4618
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - + col0 / - + col0 AND NULL
----
0

query II rowsort
SELECT DISTINCT - ( col1 ) AS col0, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 36 + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 36 + col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 34 + - 40 AS col1 FROM tab2
----
-6

query I rowsort
SELECT + col2 * - - 77 * + + col1 AS col0 FROM tab1
----
103488
22715
246092

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 BETWEEN ( - 12 + - + col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4625
SELECT * FROM tab0 WHERE NOT + CAST( - - 70 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4625
SELECT * FROM tab0 WHERE NOT + CAST ( - - 70 AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT 35 * - + col2 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT - col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT - col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT ALL + CAST( ( 42 ) AS SIGNED ) FROM tab1
----
42
42
42

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + CAST ( ( 42 ) AS INTEGER ) FROM tab1
----
42
42
42

query I rowsort
SELECT + - ( + col2 ) + + - 19 AS col0 FROM tab1 AS cor0
----
-115
-78
-87

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col2 FROM tab2 cor0
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col0 col1 FROM tab1 cor0
----
-45
23
26

onlyif mysql # DIV for integer division: 
query II rowsort label-4633
SELECT 29, - 38 DIV - col1 AS col0 FROM tab1
----
29
0
29
2
29
7

skipif mysql # not compatible
query II rowsort label-4633
SELECT 29, - 38 / - col1 AS col0 FROM tab1
----
29
0
29
2
29
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT ALL - col0 - 72 + + col0 * - ( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - col0 - 72 + + col0 * - ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT + SUM( DISTINCT - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT + SUM ( DISTINCT - col0 ) AS col2 FROM tab0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) <= 12
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 97 AND col1
----

query I rowsort
SELECT DISTINCT - col2 + - + col2 * - col1 FROM tab0 AS cor0
----
0
200
3760

query II rowsort
SELECT DISTINCT - + 35, - col2 + + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-35
-1440
-35
-3264
-35
-354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + ( + CAST( ( + col2 ) AS SIGNED ) ) > - col1 * 84
----
3

skipif mysql # not compatible
query I rowsort label-4640
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + ( + CAST ( ( + col2 ) AS INTEGER ) ) > - col1 * 84
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab1 WHERE NOT + 73 * + - ( - 71 ) * col1 IS NULL
----
-1

query I rowsort
SELECT DISTINCT + col0 * + + 68 - + 40 FROM tab0
----
5876
6556
980

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT MIN( ALL + 66 ) + + COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-4645
SELECT MIN ( ALL + 66 ) + + COUNT ( * ) FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL + SUM( col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + SUM ( col2 ) AS col2 FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col1 FROM tab2 cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 14 * + - col1 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT - + COUNT( col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4650
SELECT - + COUNT ( col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4651
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN CAST( NULL AS SIGNED ) / - col2 - - - col0 + + 92 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4651
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN CAST ( NULL AS INTEGER ) / - col2 - - - col0 + + 92 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7 * - + col0 col1, col2 FROM tab1 AS cor0
----
357
96
595
59
637
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4654
SELECT ALL ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE col0 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - 88 * + 34 * + MIN( + col0 ) + - COUNT( * ) + - 10 col2 FROM tab2 AS cor0
----
-137645

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4656
SELECT ALL - 88 * + 34 * + MIN ( + col0 ) + - COUNT ( * ) + - 10 col2 FROM tab2 AS cor0
----
-137645

query I rowsort
SELECT col0 + col2 * + - 19 FROM tab1 cor0
----
-1036
-1201
-1773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL CAST( NULL AS SIGNED ) * - ( col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL CAST ( NULL AS INTEGER ) * - ( col2 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT SUM( ALL + col1 ) col1 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4659
SELECT SUM ( ALL + col1 ) col1 FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 col1 FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT ALL 10 DIV col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL 10 / col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 85 FROM tab1 WHERE ( NULL IS NULL )
----
85
85
85

query I rowsort
SELECT DISTINCT + + 72 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - MIN( DISTINCT + + ( + - 33 ) ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4664
SELECT - MIN ( DISTINCT + + ( + - 33 ) ) FROM tab2 AS cor0
----
33

query I rowsort
SELECT - - ( - + 27 ) + + 75 + + ( + 38 ) + + col2 + col2 * + col2 FROM tab2 AS cor0
----
1726
3508
638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT CAST( col2 AS SIGNED ) + 30 FROM tab1 AS cor0
----
126
89
98

skipif mysql # not compatible
query I rowsort label-4666
SELECT CAST ( col2 AS INTEGER ) + 30 FROM tab1 AS cor0
----
126
89
98

query I rowsort
SELECT DISTINCT col2 + + - col0 + 30 + + col2 * + 39 FROM tab1
----
2305
2659
3819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col2 FROM tab0 cor0
----
85
85
85

query II rowsort
SELECT 7 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
7
23
7
40
7
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 11 col1 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT ALL 15 * ( + 63 ) FROM tab1 AS cor0
----
945
945
945

query I rowsort
SELECT ALL - col1 + + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + - col2 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + col2 * - col2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT COUNT( DISTINCT + 67 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4677
SELECT COUNT ( DISTINCT + 67 ) FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4678
SELECT + SUM( ALL CAST( NULL AS DECIMAL ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4678
SELECT + SUM ( ALL CAST ( NULL AS REAL ) ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT DISTINCT - ( + MAX( + 82 ) ) AS col0 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT - ( + MAX ( + 82 ) ) AS col0 FROM tab2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - - MAX( ALL - col2 ) AS col0 FROM tab0 WHERE NOT NULL <> - - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT - - MAX ( ALL - col2 ) AS col0 FROM tab0 WHERE NOT NULL <> - - 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT ALL CAST( NULL AS SIGNED ) * + ( - 52 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL CAST ( NULL AS INTEGER ) * + ( - 52 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 65 * 90 AS col0 FROM tab1 cor0
----
-5850

query I rowsort
SELECT - 42 AS col2 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - 82 + + + col1 - - - 85 * + 99 FROM tab1 AS cor0
----
-8450
-8483
-8492

query I rowsort
SELECT DISTINCT col0 + + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT + + MAX( col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + + MAX ( col2 ) FROM tab1 cor0
----
96

query I rowsort
SELECT 33 + + + 47 FROM tab2
----
80
80
80

query I rowsort
SELECT DISTINCT 41 + - 98 FROM tab0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 + + + col0 col2 FROM tab0
----
1
73
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT col1 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT col1 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT 56 + - - ( - - COUNT( * ) ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-4692
SELECT 56 + - - ( - - COUNT ( * ) ) FROM tab0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT CAST( NULL AS SIGNED ) + + - 13 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT CAST ( NULL AS INTEGER ) + + - 13 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT DISTINCT - COUNT( * ) * CAST( 4 AS SIGNED ) + + - COUNT( * ) + - 50 - + 79 FROM tab2 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - COUNT ( * ) * CAST ( 4 AS INTEGER ) + + - COUNT ( * ) + - 50 - + 79 FROM tab2 cor0
----
-144

query I rowsort
SELECT ALL - col2 * + 67 AS col1 FROM tab2 AS cor0
----
-1541
-2680
-3886

query I rowsort
SELECT ALL - 7 / + col2 FROM tab1 AS cor0 WHERE NOT ( NULL = NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 IN ( - - col2 * - col0, + col0 * col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 21 / - col0 * - 69 IS NOT NULL )
----

query I rowsort
SELECT ALL ( col1 ) * + 86 * - col1 AS col1 FROM tab1 cor0
----
-16856
-189974
-2150

query I rowsort
SELECT - 9 * + - 97 FROM tab2 AS cor0
----
873
873
873

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT ALL - col0 DIV - + 48 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL - col0 / - + 48 FROM tab2 cor0
----
0
1
1

query I rowsort
SELECT + - col0 * col2 - 62 AS col0 FROM tab2 cor0
----
-1120
-2622
-4412

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / ( - + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, 45 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
45
47
45
99
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL SUM( DISTINCT - - 69 ) col0 FROM tab1
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4705
SELECT ALL SUM ( DISTINCT - - 69 ) col0 FROM tab1
----
69

query II rowsort
SELECT - col2 AS col2, + col0 * - col1 * - - col2 FROM tab2
----
-23
-53958
-40
-197120
-58
-291450

query II rowsort
SELECT col0 AS col1, col1 AS col2 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL + COUNT( * ) - - - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + COUNT ( * ) - - - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT ALL - 13 * - col0 FROM tab0
----
1131
1261
195

query I rowsort
SELECT DISTINCT + + col0 * 1 AS col2 FROM tab2 WHERE ( NOT NULL > - 72 + - 47 + - col2 + + ( + col0 ) / + ( - + col0 ) )
----

query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-4712
SELECT ALL + COUNT( * ) AS col1, - 91 FROM tab2 AS cor0
----
3
-91

skipif mysql # not compatible
query II rowsort label-4712
SELECT ALL + COUNT ( * ) AS col1, - 91 FROM tab2 AS cor0
----
3
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL + col1 + + col1 - 14 FROM tab0 AS cor0
----
-12
148
28

query I rowsort
SELECT col0 * + - col0 AS col1 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT + - ( 66 ) + 53 FROM tab2 cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4717
SELECT ALL col0 AS col0, + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4717
SELECT ALL col0 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL 0 + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL 0 + - COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT + MAX( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT + MAX ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT - - col2 + col0 DIV - - col1 AS col1 FROM tab1 AS cor0
----
69
76
99

skipif mysql # not compatible
query I rowsort label-4720
SELECT - - col2 + col0 / - - col1 AS col1 FROM tab1 AS cor0
----
69
76
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT - - COUNT( * ) + - MAX( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4721
SELECT - - COUNT ( * ) + - MAX ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT col1 + CAST( + ( - + col2 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4722
SELECT col1 + CAST ( + ( - + col2 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT 15 + + col1 AS col0 FROM tab2 AS cor0
----
66
82
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT + CAST( NULL AS SIGNED ) * + 53 + col1 - - - 99 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT + CAST ( NULL AS INTEGER ) * + 53 + col1 - - - 99 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL MAX( - col1 ) + 39 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL MAX ( - col1 ) + 39 FROM tab0 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * - + col2 + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * - + col2 + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 + - 39 AS col0 FROM tab0 AS cor0
----
-18
-38
42

query I rowsort
SELECT DISTINCT 5 + - + col1 AS col2 FROM tab2
----
-46
-62
-72

query II rowsort
SELECT + ( 63 ), + col1 AS col2 FROM tab2
----
63
51
63
67
63
77

query I rowsort
SELECT ALL 23 + 21 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL col0 + - + col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( - - 96 ) - + col0 + col0 * col1 AS col2 FROM tab0
----
1296
1836
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + + 35 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col1 AND col1
----

query I rowsort
SELECT + - col2 AS col1 FROM tab2 WHERE NULL <> - col2
----

query I rowsort
SELECT - col1 * + ( + 79 ) - - + col2 AS col0 FROM tab0
----
-1649
-6352
20

query I rowsort
SELECT DISTINCT col0 * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT 82 * 99 + + - SUM( - 17 ) FROM tab0 AS cor0
----
8169

skipif mysql # not compatible
query I rowsort label-4738
SELECT 82 * 99 + + - SUM ( - 17 ) FROM tab0 AS cor0
----
8169

query II rowsort
SELECT + col0 + - col0 AS col1, - 73 FROM tab2 AS cor0
----
0
-73
0
-73
0
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT + SUM( DISTINCT + col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + SUM ( DISTINCT + col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT + col2 + 22 AS col0 FROM tab0
----
121
32
69

query I rowsort
SELECT + - 71 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT + ( + 89 ) * - col0 FROM tab2 AS cor0 WHERE NOT + 76 + + col1 IS NULL
----
-4094
-5696
-6675

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 28 + + - col2 + - col1, - 90, + 84, + col2 / + 74, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4745
SELECT + - col0 * + CAST( NULL AS SIGNED ) + - col2 AS col0, col1 - - col0 FROM tab1 AS cor0
----
NULL
138
NULL
65
NULL
90

skipif mysql # not compatible
query II rowsort label-4745
SELECT + - col0 * + CAST ( NULL AS INTEGER ) + - col2 AS col0, col1 - - col0 FROM tab1 AS cor0
----
NULL
138
NULL
65
NULL
90

query I rowsort
SELECT ALL + ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT + COUNT( * ) * + + ( - MIN( - 25 ) ) FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4747
SELECT + COUNT ( * ) * + + ( - MIN ( - 25 ) ) FROM tab1 cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4748
SELECT - - CAST( NULL AS SIGNED ) * 94 * + + COUNT( * ) / - + SUM( - + col2 ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT - - CAST ( NULL AS INTEGER ) * 94 * + + COUNT ( * ) / - + SUM ( - + col2 ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 80 * col2 AS col2 FROM tab1 AS cor0
----
4720
5440
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL - MIN( - - col2 ) AS col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL - MIN ( - - col2 ) AS col2 FROM tab0 cor0
----
-10

query I rowsort
SELECT ALL - col1 * 94 FROM tab1 AS cor0
----
-1316
-4418
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) <> NULL
----
0

query I rowsort
SELECT ALL + ( + ( col1 ) ) FROM tab1
----
14
47
5

query II rowsort
SELECT ALL - col1 * + + 15 AS col1, + 67 AS col1 FROM tab0
----
-1215
67
-15
67
-315
67

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + ( col0 )
----

query I rowsort
SELECT ALL ( - col0 ) * 83 - - 33 + - col1 AS col2 FROM tab2
----
-3836
-5356
-6259

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT DISTINCT - 46 * - - MIN( DISTINCT - 19 ) * + + ( + COUNT( * ) ) AS col2 FROM tab2
----
2622

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT - 46 * - - MIN ( DISTINCT - 19 ) * + + ( + COUNT ( * ) ) AS col2 FROM tab2
----
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT - SUM( ALL - 26 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-4758
SELECT - SUM ( ALL - 26 ) FROM tab2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT 57 DIV + + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT 57 / + + col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT DISTINCT 96 * + + MIN( ALL + col1 ) * + 95 * - 22 AS col1 FROM tab1
----
-1003200

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT 96 * + + MIN ( ALL + col1 ) * + 95 * - 22 AS col1 FROM tab1
----
-1003200

query I rowsort
SELECT DISTINCT - + col1 * + 12 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4762
SELECT CAST( - + 67 AS SIGNED ) AS col2, + col1 * col0 FROM tab0
----
-67
1215
-67
1827
-67
97

skipif mysql # not compatible
query II rowsort label-4762
SELECT CAST ( - + 67 AS INTEGER ) AS col2, + col1 * col0 FROM tab0
----
-67
1215
-67
1827
-67
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT COUNT( * ) + MAX( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4764
SELECT COUNT ( * ) + MAX ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT ALL + CAST( - col1 AS SIGNED ) + - 9 AS col2 FROM tab1 cor0
----
-14
-23
-56

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL + CAST ( - col1 AS INTEGER ) + - 9 AS col2 FROM tab1 cor0
----
-14
-23
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT + SUM( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT + SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + - col0 * + col2 = + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4769
SELECT DISTINCT + COUNT( * ) DIV 86 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT + COUNT ( * ) / 86 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4770
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN 87 AND + - CAST( - - col2 AS SIGNED ) * + - 61 + - 69
----

skipif mysql # not compatible
query III rowsort label-4770
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN 87 AND + - CAST ( - - col2 AS INTEGER ) * + - 61 + - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT - COUNT( * ) + + 60 AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - COUNT ( * ) + + 60 AS col1 FROM tab2 AS cor0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT - - 15 + - SUM( ALL - col2 ) * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT - - 15 + - SUM ( ALL - col2 ) * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT 8 + + col2 AS col2 FROM tab0
----
107
18
55

query I rowsort
SELECT col2 + - - col2 AS col0 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT col2 * - 83 + - 2 FROM tab2
----
-1911
-3322
-4816

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4776
SELECT ALL + ( - + 91 ) - - CAST( col1 AS SIGNED ), - ( - col1 ) AS col0 FROM tab1
----
-44
47
-77
14
-86
5

skipif mysql # not compatible
query II rowsort label-4776
SELECT ALL + ( - + 91 ) - - CAST ( col1 AS INTEGER ), - ( - col1 ) AS col0 FROM tab1
----
-44
47
-77
14
-86
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + col0 col1 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT DISTINCT col1 DIV col0 FROM tab1 WHERE col2 + + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT col1 / col0 FROM tab1 WHERE col2 + + - col1 IS NOT NULL
----
0

query I rowsort
SELECT 56 + - + 1 AS col0 FROM tab1
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT MAX( col0 ) col2 FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4780
SELECT MAX ( col0 ) col2 FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, + 48 * + col2 FROM tab1 AS cor0
----
14
4608
47
3264
5
2832

query I rowsort
SELECT - + 5 - - 73 * - col2 FROM tab1 AS cor0
----
-4312
-4969
-7013

query I rowsort
SELECT ALL + col0 + 62 AS col0 FROM tab2 AS cor0
----
108
126
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT CAST( + col2 AS SIGNED ) col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4784
SELECT CAST ( + col2 AS INTEGER ) col1 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - - col0 * 4 + + ( 6 ) AS col1 FROM tab1 AS cor0
----
210
346
370

query I rowsort
SELECT DISTINCT - - 64 AS col0 FROM tab0 cor0
----
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 99 * - 23 * + + 9 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT + + col0 DIV - 24 FROM tab1 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-4788
SELECT + + col0 / - 24 FROM tab1 AS cor0
----
-2
-3
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col2 * + col0 IS NULL ) )
----

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab2 WHERE NOT NULL < - col0
----

query I rowsort
SELECT + col2 * - 61 * - ( col2 ) AS col1 FROM tab2
----
205204
32269
97600

query I rowsort
SELECT DISTINCT - col2 * + 98 FROM tab2
----
-2254
-3920
-5684

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 < NULL
----

query I rowsort
SELECT col2 * - col0 * + + col0 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL - - 92 AS col2 FROM tab1 WHERE NOT NULL <= + col2 * + 30 - + col0 - + col2 + col0 / + col2 * col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + col1 * col1 AS col1 FROM tab2
----
23
2601
40
5929
58
4489

query I rowsort
SELECT - - 79 FROM tab2 WHERE NOT - col1 + + + ( + + 35 ) + col1 + - col0 IS NULL
----
79
79
79

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 + ( 11 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 AS col1, col1 * col1 + + col2 - - + ( - col1 ) + - - col2 * col0 * + 30 + - + ( + + ( - - col0 ) ) - 35 + + - col2 + 21 + + ( 52 ) * + col0 col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <> + 54
----

query I rowsort
SELECT + 7 AS col0 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL + - ( - COUNT( + col2 ) ) * - + COUNT( DISTINCT 84 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + - ( - COUNT ( + col2 ) ) * - + COUNT ( DISTINCT 84 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT + COUNT( * ) + - + SUM( DISTINCT - + col0 ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT + COUNT ( * ) + - + SUM ( DISTINCT - + col0 ) FROM tab0
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL - ( - COUNT( * ) ) AS col2 FROM tab2 WHERE NOT 54 * col2 <= + - col0
----
3

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT 54 * col2 <= + - col0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 52 + + 3 + + - 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + 0 * + 77 * - 5 * + + 38 AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT DISTINCT 40 + + COUNT( + col0 ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT 40 + + COUNT ( + col0 ) FROM tab0 AS cor0
----
43

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT DISTINCT col0 - + col2 / - col0 * + col1 FROM tab0 AS cor0 WHERE CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT col0 - + col2 / - col0 * + col1 FROM tab0 AS cor0 WHERE CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT - + MAX( - + col1 ) + 31 * + + 60 AS col0 FROM tab2 AS cor0
----
1911

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT - + MAX ( - + col1 ) + 31 * + + 60 AS col0 FROM tab2 AS cor0
----
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT MIN( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4813
SELECT MIN ( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL + COUNT( ALL - - col0 ) col0 FROM tab2 AS cor0 WHERE - col2 + - col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4814
SELECT ALL + COUNT ( ALL - - col0 ) col0 FROM tab2 AS cor0 WHERE - col2 + - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT ALL 58 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL 58 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4816
SELECT ALL 97 + + MIN( - col0 ) AS col0, COUNT( * ) AS col1 FROM tab2
----
22
3

skipif mysql # not compatible
query II rowsort label-4816
SELECT ALL 97 + + MIN ( - col0 ) AS col0, COUNT ( * ) AS col1 FROM tab2
----
22
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - col1
----

query I rowsort
SELECT ALL 24 + + - col0 + col1 FROM tab1
----
-13
-20
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4819
SELECT DISTINCT + COUNT( * ) AS col1, + COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4819
SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab2
----
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4820
SELECT ALL col0 DIV - col0 - col2 - - + ( + - col1 ) * + 10, col2 AS col2 FROM tab2
----
-534
23
-729
58
-811
40

skipif mysql # not compatible
query II rowsort label-4820
SELECT ALL col0 / - col0 - col2 - - + ( + - col1 ) * + 10, col2 AS col2 FROM tab2
----
-534
23
-729
58
-811
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4821
SELECT * FROM tab0 AS cor0 WHERE col0 <= + col2 / + - 68 * + col1 + - 20 / - ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4821
SELECT * FROM tab0 AS cor0 WHERE col0 <= + col2 / + - 68 * + col1 + - 20 / - ( - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - 91 * COUNT( * ) - ( + + 96 ) FROM tab0 AS cor0
----
-369

skipif mysql # not compatible
query I rowsort label-4822
SELECT - 91 * COUNT ( * ) - ( + + 96 ) FROM tab0 AS cor0
----
-369

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL - - MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - - MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT 54 AS col0 FROM tab0 cor0
----
54
54
54

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL - COUNT( DISTINCT - 46 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - COUNT ( DISTINCT - 46 ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL + ( ( - 0 ) ) AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 99 IS NULL
----

query II rowsort
SELECT ALL - + 31 AS col2, + 52 FROM tab1 AS cor0
----
-31
52
-31
52
-31
52

query I rowsort
SELECT ALL - col2 * 67 * + 77 AS col0 FROM tab0 AS cor0
----
-242473
-510741
-51590

query I rowsort
SELECT - + ( 50 ) FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - col0 / + + col2 BETWEEN ( - 6 * + + 64 ) AND col1 * - ( + col1 )
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 89 / - ( + - 49 ) IN ( + col1 - + col2 / - - col2 + - col0, - col0 + + ( ( col0 ) ) )
----

query II rowsort
SELECT ALL - 55, ( col1 ) FROM tab2 cor0
----
-55
51
-55
67
-55
77

query II rowsort
SELECT DISTINCT - + col1 AS col2, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4837
SELECT + 21 DIV - - col1 + + col1 DIV + 93 + col1 AS col2 FROM tab1
----
15
47
9

skipif mysql # not compatible
query I rowsort label-4837
SELECT + 21 / - - col1 + + col1 / + 93 + col1 AS col2 FROM tab1
----
15
47
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT DISTINCT + col2 * + + col0 * CAST( 28 AS SIGNED ) FROM tab1 cor0
----
137088
140420
173264

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT + col2 * + + col0 * CAST ( 28 AS INTEGER ) FROM tab1 cor0
----
137088
140420
173264

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - COUNT( * ) * - 52 AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4839
SELECT - COUNT ( * ) * - 52 AS col2 FROM tab0
----
156

query I rowsort
SELECT DISTINCT + 91 * - 98 FROM tab2
----
-8918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4841
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) / + ( + + 7 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + ( + + 7 ) FROM tab1
----
NULL

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT 34 * + col1 FROM tab1
----
1598
170
476

query III rowsort
SELECT * FROM tab0 WHERE + + col1 >= NULL
----

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NOT + 34 <> NULL
----

query I rowsort
SELECT ALL + col1 + + - col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 > NULL
----

query II rowsort
SELECT ALL + col2 - - - col0 * + 40 * ( + - col2 ) * col2, + 55 AS col0 FROM tab0 AS cor0
----
1325447
55
348010
55
38027979
55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4850
SELECT col1 + + - col1 AS col2, col2 DIV + col1 FROM tab1
----
0
1
0
11
0
6

skipif mysql # not compatible
query II rowsort label-4850
SELECT col1 + + - col1 AS col2, col2 / + col1 FROM tab1
----
0
1
0
11
0
6

query I rowsort
SELECT DISTINCT col1 + - 75 FROM tab0
----
-54
-74
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT COUNT( * ) - + MIN( col1 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT COUNT ( * ) - + MIN ( col1 ) FROM tab2
----
-48

query I rowsort
SELECT DISTINCT + 42 + ( + col2 ) FROM tab2
----
100
65
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT DISTINCT + COUNT( * ) - + - 91 + + + COUNT( * ) * - 17 * - MIN( ALL + col0 ) AS col2 FROM tab0
----
859

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT + COUNT ( * ) - + - 91 + + + COUNT ( * ) * - 17 * - MIN ( ALL + col0 ) AS col2 FROM tab0
----
859

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + MAX( DISTINCT - + 47 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4855
SELECT + MAX ( DISTINCT - + 47 ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4856
SELECT * FROM tab2 WHERE NULL <= - ( + - col1 ) / - col2 * col2 + + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4856
SELECT * FROM tab2 WHERE NULL <= - ( + - col1 ) / - col2 * col2 + + CAST ( col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <> + 97
----

query II rowsort
SELECT ALL col2 * + 89 AS col2, ( - col2 ) - + 49 FROM tab2 AS cor0
----
2047
-72
3560
-89
5162
-107

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT SUM( - + 83 ) col0 FROM tab0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4860
SELECT DISTINCT SUM ( - + 83 ) col0 FROM tab0
----
-249

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 40
----

query I rowsort
SELECT DISTINCT + col0 + + col0 + col0 FROM tab1 AS cor0
----
153
255
273

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT col1 + - ( - 69 ) FROM tab0 cor0
----
150
70
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT ALL - col0 + + CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL - col0 + + CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT + 86 + + 19 - + 26 AS col2 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT ALL - + 28 * - col2 + col1 FROM tab0 AS cor0
----
1397
2773
301

query I rowsort
SELECT DISTINCT col0 + - + ( - 78 ) FROM tab2
----
124
142
153

query I rowsort
SELECT + col2 * - 66 FROM tab0
----
-3102
-6534
-660

query II rowsort
SELECT ALL + col0, col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT + SUM( - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4871
SELECT + SUM ( - col2 ) FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( col0 ) col2 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query II rowsort label-4873
SELECT DISTINCT col1 AS col1, + 13 DIV col2 AS col0 FROM tab0
----
1
0
21
1
81
0

skipif mysql # not compatible
query II rowsort label-4873
SELECT DISTINCT col1 AS col1, + 13 / col2 AS col0 FROM tab0
----
1
0
21
1
81
0

query I rowsort
SELECT ALL - 37 AS col0 FROM tab2
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL + MAX( 90 ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL + MAX ( 90 ) FROM tab1
----
90

query III rowsort
SELECT * FROM tab1 WHERE NULL > + + 22
----

query III rowsort
SELECT * FROM tab0 WHERE 67 BETWEEN + col0 * 50 * col0 AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL SUM( DISTINCT + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL SUM ( DISTINCT + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT - SUM( - ( + 80 ) ) FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-4879
SELECT - SUM ( - ( + 80 ) ) FROM tab1 AS cor0
----
240

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 65 + + 72 AS col2 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT + 32 + + 55 AS col2 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT 44 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4883
SELECT 44 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
47

query I rowsort
SELECT + 36 + - col0 * + col0 FROM tab0 AS cor0
----
-189
-7533
-9373

query I rowsort
SELECT col2 * - + col1 + + col0 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4886
SELECT DISTINCT * FROM tab0 WHERE - col0 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4886
SELECT DISTINCT * FROM tab0 WHERE - col0 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT - 34 FROM tab1 WHERE NOT NULL NOT BETWEEN + - col0 AND - CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - 34 FROM tab1 WHERE NOT NULL NOT BETWEEN + - col0 AND - CAST ( + - col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 + - - col2 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT DISTINCT CAST( NULL AS SIGNED ) / 11 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4889
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 11 col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2 - - 94, - col1 AS col0 FROM tab2 AS cor0
----
36
-67
54
-77
71
-51

query I rowsort
SELECT DISTINCT + - 76 * + + col2 AS col2 FROM tab1 AS cor0
----
-4484
-5168
-7296

query I rowsort
SELECT DISTINCT + col2 + + - col1 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 BETWEEN + 57 AND - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT MAX( - col1 ) + - - 38 FROM tab0 AS cor0 WHERE - 44 IS NOT NULL
----
37

skipif mysql # not compatible
query I rowsort label-4895
SELECT MAX ( - col1 ) + - - 38 FROM tab0 AS cor0 WHERE - 44 IS NOT NULL
----
37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( - col0 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4897
SELECT ALL + 89 + - 61 - col2 DIV + col1 FROM tab1 AS cor0
----
17
22
27

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + 89 + - 61 - col2 / + col1 FROM tab1 AS cor0
----
17
22
27

query I rowsort
SELECT + col2 - - 32 FROM tab1
----
100
128
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT ALL + MIN( DISTINCT + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL + MIN ( DISTINCT + col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL COUNT( * ) * - COUNT( * ) AS col1 FROM tab2, tab1 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2, tab1 cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4901
SELECT + ( - CAST( + - col0 AS SIGNED ) ) AS col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-4901
SELECT + ( - CAST ( + - col0 AS INTEGER ) ) AS col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( + col1 )
----

query I rowsort
SELECT ALL 5 * + 96 FROM tab1
----
480
480
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT DISTINCT - 8 * + 51 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT - 8 * + 51 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT col1 + - 1 AS col2 FROM tab2 WHERE NOT col1 >= + - col0 / col0 / + col1 - - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL - COUNT( * ) * + - 27 * + - COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - COUNT ( * ) * + - 27 * + - COUNT ( * ) FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT + COUNT( * ) * - + 43 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + COUNT ( * ) * - + 43 FROM tab0 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT - COUNT( * ), 31 AS col0 FROM tab2 AS cor0
----
-3
31

skipif mysql # not compatible
query II rowsort label-4909
SELECT - COUNT ( * ), 31 AS col0 FROM tab2 AS cor0
----
-3
31

query I rowsort
SELECT DISTINCT - col0 - 15 AS col0 FROM tab2
----
-61
-79
-90

query I rowsort
SELECT - ( 74 ) AS col2 FROM tab2
----
-74
-74
-74

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 6
----

query I rowsort
SELECT DISTINCT col0 + 20 * col1 FROM tab1
----
1031
185
331

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) > + col1 + col2
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE 70 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 + ( - col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE 56 > col2 / ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE - 65 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 65 * + col1 > ( - 3 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT col2 + col0 DIV col0 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4920
SELECT col2 + col0 / col0 FROM tab0
----
100
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4921
SELECT ALL - 4 + + ( 46 + 11 DIV - col2 ) * + 16 AS col2 FROM tab1
----
732
732
732

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL - 4 + + ( 46 + 11 / - col2 ) * + 16 AS col2 FROM tab1
----
732
732
732

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4922
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) / - col1 NOT BETWEEN NULL AND ( col2 )
----

skipif mysql # not compatible
query III rowsort label-4922
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) / - col1 NOT BETWEEN NULL AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT 91 * CAST( col1 * + ( - col2 ) AS SIGNED ) + + col0 FROM tab1 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-4923
SELECT 91 * CAST ( col1 * + ( - col2 ) AS INTEGER ) + + col0 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NULL >= + col2
----

query III rowsort
SELECT * FROM tab0 WHERE col0 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 42 ) <> NULL
----

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT col1 < col1
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( - col0 ) * col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN 89 AND col1 + + ( 17 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 15 IS NOT NULL
----

query I rowsort
SELECT - col0 + 0 AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 21 * + 37 AS col0 FROM tab0
----
777
777
777

query I rowsort
SELECT + 8 + + col0 AS col1 FROM tab1
----
59
93
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT COUNT( + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT COUNT ( + col0 ) FROM tab0
----
3

query I rowsort
SELECT 57 AS col2 FROM tab2 WHERE NOT - 27 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 42 ) + col2 FROM tab2
----
-19
-2
16

query I rowsort
SELECT 21 - + col2 FROM tab1 AS cor0 WHERE - 35 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT COUNT( * ) * MIN( ALL col2 ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT COUNT ( * ) * MIN ( ALL col2 ) FROM tab1 AS cor0
----
177

query I rowsort
SELECT DISTINCT + col1 + - col0 * col0 FROM tab0 cor0
----
-144
-7548
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4941
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - 73 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4941
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - 73 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * - col1 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 - - col0 AS col0 FROM tab1 cor0
----
102
170
182

query I rowsort
SELECT 23 AS col1 FROM tab2 WHERE col2 * - 9 <= 19
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT 29 - + COUNT( * ) AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT 29 - + COUNT ( * ) AS col2 FROM tab2
----
26

query I rowsort
SELECT + col0 - col1 * + col1 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT DISTINCT 88 * + col0 FROM tab0 AS cor0
----
1320
7656
8536

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT - 63 + 18 DIV col1 AS col2 FROM tab0 AS cor0
----
-45
-63
-63

skipif mysql # not compatible
query I rowsort label-4948
SELECT - 63 + 18 / col1 AS col2 FROM tab0 AS cor0
----
-45
-63
-63

query I rowsort
SELECT ALL + 80 * col0 FROM tab2 cor0
----
3680
5120
6000

query I rowsort
SELECT - 56 * 68 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-3709
-3761
-3798

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * 88 > ( col1 * col2 - + 44 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 < 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - COUNT( DISTINCT + 54 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4954
SELECT - COUNT ( DISTINCT + 54 ) AS col1 FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + ( - 31 ) + + col2 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT 30 * + COUNT( * ) * + COUNT( * ) col0 FROM tab0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4956
SELECT 30 * + COUNT ( * ) * + COUNT ( * ) col0 FROM tab0
----
270

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + col0 + + col2 IN ( + col0 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT COUNT( DISTINCT + - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4958
SELECT COUNT ( DISTINCT + - col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + ( - - ( + col1 ) ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT ALL COUNT( + col1 ) FROM tab0 WHERE - CAST( NULL AS SIGNED ) * col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL COUNT ( + col1 ) FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( - + 92 ) * + col1 AS col2 FROM tab0
----
-1932
-7452
-92

query I rowsort
SELECT ALL + col1 * 46 * col2 FROM tab2
----
141680
178756
53958

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( + 97 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT CAST( ( - 3 ) AS SIGNED ) * + 1 col1 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4964
SELECT CAST ( ( - 3 ) AS INTEGER ) * + 1 col1 FROM tab1
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) - + col1 * - 45 NOT BETWEEN ( col1 ) AND ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + col1 * - 45 NOT BETWEEN ( col1 ) AND ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4966
SELECT ALL 14 DIV - 29 + + 57 AS col2 FROM tab0 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL 14 / - 29 + + 57 AS col2 FROM tab0 AS cor0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col0 ) col1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + ( - 24 ) * + col0 BETWEEN 36 * + ( - 0 ) AND ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4969
SELECT MIN( DISTINCT + 66 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT MIN ( DISTINCT + 66 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0 WHERE ( 92 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0 WHERE ( 92 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 * - 43 col1 FROM tab2 AS cor0
----
-43
-43
-43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 40 * - col0 BETWEEN NULL AND 16
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 13 )
----

query II rowsort
SELECT col1 AS col0, + col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + + col1 NOT IN ( 29 )
----

query I rowsort
SELECT + 68 + 89 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 93e725bb36fefb7e2c3eba395d50fc7f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4977
SELECT CAST( NULL AS SIGNED ) * AVG ( col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT CAST ( NULL AS INTEGER ) * AVG ( col0 ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col2 ) NOT IN ( - ( + col0 ) )
----

query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT ALL col2 DIV + - col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL col2 / + - col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - col2 ) IS NOT NULL ) OR ( + ( - 99 ) ) / + col1 BETWEEN ( + col1 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( 71 ) AS col1 FROM tab1 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col1 + + col0 col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 * col1 AS col1 FROM tab0 AS cor0 WHERE ( col2 + col2 + col1 ) IS NOT NULL
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4985
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - 44 BETWEEN CAST( col0 AS SIGNED ) + + 25 AND ( 22 ) * - col0
----

skipif mysql # not compatible
query III rowsort label-4985
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - 44 BETWEEN CAST ( col0 AS INTEGER ) + + 25 AND ( 22 ) * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT 97 DIV - col0 + + col1 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4986
SELECT 97 / - col0 + + col1 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4987
SELECT + col2 col2, - col2 DIV + col1 FROM tab0 AS cor0
----
10
0
47
0
99
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4987
SELECT + col2 col2, - col2 / + col1 FROM tab0 AS cor0
----
10
0
47
0
99
-99

query I rowsort
SELECT - ( - col0 ) * - + col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - COUNT( DISTINCT - - ( + col1 ) ) * COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4989
SELECT - COUNT ( DISTINCT - - ( + col1 ) ) * COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT ALL 52 * col0 + - col2 FROM tab1
----
2556
4361
4664

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT SUM( ALL + col0 ) - 85 FROM tab0 WHERE ( + + 71 ) * col2 NOT IN ( + 74 + 79 )
----
114

skipif mysql # not compatible
query I rowsort label-4991
SELECT SUM ( ALL + col0 ) - 85 FROM tab0 WHERE ( + + 71 ) * col2 NOT IN ( + 74 + 79 )
----
114

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4992
SELECT - col0 DIV + 39 + + col0 DIV + col0 AS col2 FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4992
SELECT - col0 / + 39 + + col0 / + col0 AS col2 FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL MAX( DISTINCT - col1 ) + - ( + 8 ) FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL MAX ( DISTINCT - col1 ) + - ( + 8 ) FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 2 * + 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * col1 + col2 + 94 * + col1 FROM tab1 AS cor0
----
1290
234
68

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT col2 BETWEEN + col0 - col2 + 66 AND ( NULL )
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - - 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 5 + + + col2 FROM tab0
----
104
15
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5001
SELECT * FROM tab2 WHERE CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5001
SELECT * FROM tab2 WHERE CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT ALL + col2 DIV - 56 - - - col2 * + + ( - 35 ) FROM tab2
----
1400
2029
805

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + col2 / - 56 - - - col2 * + + ( - 35 ) FROM tab2
----
1400
2029
805

query I rowsort
SELECT + + 64 AS col2 FROM tab2 WHERE NULL IS NULL
----
64
64
64

query I rowsort
SELECT DISTINCT col2 * - col1 - - col0 + - col1 * col1 AS col0 FROM tab2
----
-3728
-8300
-8945

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - + MAX( + col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5006
SELECT - + MAX ( + col2 ) AS col1 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 68 + - col0 ) IS NULL
----

query I rowsort
SELECT - - 93 * 90 + - 51 + + col0 AS col1 FROM tab1 AS cor0
----
8370
8404
8410

query I rowsort
SELECT + col1 * 68 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * + ( - 77 ) * - + 77 <> ( col1 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col2 + 42 FROM tab2 AS cor0
----
51
65
67
100
77
82

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + ( - - 36 ) ) = NULL
----

query I rowsort
SELECT DISTINCT - + col0 + - 40 FROM tab0 AS cor0 WHERE col2 < + 29
----
-127

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT col2 DIV + 58 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5013
SELECT col2 / + 58 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT ( + 92 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-5014
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT ( + 92 IS NOT NULL )
----

query I rowsort
SELECT ALL col0 * 15 FROM tab1 WHERE ( NOT ( - col0 / + - ( + col2 ) * - col1 ) <> ( - 30 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT SUM( DISTINCT - ( col0 ) ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5016
SELECT SUM ( DISTINCT - ( col0 ) ) col1 FROM tab0
----
-199

query I rowsort
SELECT ALL col1 * + 32 AS col0 FROM tab1
----
1504
160
448

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5018
SELECT DISTINCT - CAST( CAST( + - col1 AS DECIMAL ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT - CAST ( CAST ( + - col1 AS REAL ) AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5019
SELECT 8, - SUM( - 60 ) AS col2 FROM tab2
----
8
180

skipif mysql # not compatible
query II rowsort label-5019
SELECT 8, - SUM ( - 60 ) AS col2 FROM tab2
----
8
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - ( COUNT( ALL - col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5020
SELECT - ( COUNT ( ALL - col0 ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5021
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 = ( - - CAST( - col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5021
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 = ( - - CAST ( - col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 30 * ( - 35 ) FROM tab2
----
-1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5023
SELECT ALL - CAST( - ( + col1 ) AS SIGNED ) + - ( col0 ) FROM tab2 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL - CAST ( - ( + col1 ) AS INTEGER ) + - ( col0 ) FROM tab2 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + ( - + col2 ) col1 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 75 + ( + 98 ) FROM tab1 cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( + col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL - COUNT( * ) * - 65 FROM tab2 AS cor0 WHERE NULL IS NULL
----
195

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL - COUNT ( * ) * - 65 FROM tab2 AS cor0 WHERE NULL IS NULL
----
195

query II rowsort
SELECT ALL 24 + + 78, col1 FROM tab0 AS cor0
----
102
1
102
21
102
81

query I rowsort
SELECT 91 + + + col0 FROM tab0
----
106
178
188

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT - 18 + - COUNT( * ) AS col1 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-5031
SELECT - 18 + - COUNT ( * ) AS col1 FROM tab0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + 66 BETWEEN - + 19 * col0 * + - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT CAST( + col1 AS SIGNED ) * + col1 - - col1 + - - ( - CAST( - col1 AS SIGNED ) ) + ( col0 ) + - col0 AS col0 FROM tab2
----
2703
4623
6083

skipif mysql # not compatible
query I rowsort label-5033
SELECT CAST ( + col1 AS INTEGER ) * + col1 - - col1 + - - ( - CAST ( - col1 AS INTEGER ) ) + ( col0 ) + - col0 AS col0 FROM tab2
----
2703
4623
6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 13 col2 FROM tab0
----
14
34
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT + 78 DIV - col2 AS col0 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5035
SELECT + 78 / - col2 AS col0 FROM tab1 cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 / col0 > - col0
----
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 / col0 > - col0
----
0

query II rowsort
SELECT - ( + col2 ) AS col1, col2 AS col0 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT + MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT + MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5041
SELECT ALL + - SUM( ALL col2 ), - 95 AS col2 FROM tab1 cor0
----
-223
-95

skipif mysql # not compatible
query II rowsort label-5041
SELECT ALL + - SUM ( ALL col2 ), - 95 AS col2 FROM tab1 cor0
----
-223
-95

query II rowsort
SELECT ALL + + col1 * - col1, + col0 FROM tab0 cor0
----
-1
97
-441
87
-6561
15

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5044
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - 84 NOT BETWEEN ( + + col0 ) AND - CAST( - - col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5044
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - 84 NOT BETWEEN ( + + col0 ) AND - CAST ( - - col1 AS REAL )
----

query I rowsort
SELECT + 12 FROM tab2 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5046
SELECT COUNT( DISTINCT - - 27 ) DIV - - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT COUNT ( DISTINCT - - 27 ) / - - COUNT ( * ) FROM tab2
----
0

query II rowsort
SELECT 36 AS col0, 56 FROM tab2
----
36
56
36
56
36
56

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND + + col1
----

query I rowsort
SELECT - 27 - + ( + col2 ) FROM tab2 WHERE NOT + 98 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col1 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 <= + 79
----
51
14
96

query I rowsort
SELECT + + ( - - col2 ) * col1 FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5053
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5054
SELECT ALL - MAX( + col2 ) / CAST( NULL AS SIGNED ) * - - AVG ( + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL - MAX ( + col2 ) / CAST ( NULL AS INTEGER ) * - - AVG ( + col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5056
SELECT COUNT( * ) DIV - 34 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5056
SELECT COUNT ( * ) / - 34 FROM tab2
----
0

query I rowsort
SELECT + ( - - ( col2 ) ) * - col0 + - col2 + - 95 AS col1 FROM tab0
----
-847
-975
-9797

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 <> - col0 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + + col2 * + 41 FROM tab0 cor0
----
1974
4158
420

query I rowsort
SELECT DISTINCT ( - ( - col0 ) ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - col0 * + col2 * + col1 col0 FROM tab0 AS cor0
----
-33379290
-69382575
-931491

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - + col1 - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + 36 FROM tab1 AS cor0 WHERE + 47 * + col0 NOT BETWEEN NULL AND col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT + - 8, - MAX( - + col1 ) AS col2 FROM tab0 AS cor0
----
-8
1

skipif mysql # not compatible
query II rowsort label-5065
SELECT + - 8, - MAX ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-8
1

query I rowsort
SELECT DISTINCT + col0 * - col2 + col0 FROM tab2
----
-1012
-2496
-4275

query II rowsort
SELECT ALL col2 - - 2, + col0 FROM tab2
----
25
46
42
64
60
75

query III rowsort
SELECT ALL * FROM tab2 WHERE 49 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 + 86 + - + col0 col0 FROM tab2
----
117
88
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - 73 + - + 97 + + COUNT( * ) AS col2 FROM tab2 WHERE + col1 > - - col1
----
-170

skipif mysql # not compatible
query I rowsort label-5070
SELECT - 73 + - + 97 + + COUNT ( * ) AS col2 FROM tab2 WHERE + col1 > - - col1
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL COUNT( * ) * CAST( 54 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL COUNT ( * ) * CAST ( 54 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * - - 92 * + 90 col2 FROM tab2 AS cor0
----
-380931
-529997
-621067

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL - COUNT( ALL - col1 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5073
SELECT ALL - COUNT ( ALL - col1 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5074
SELECT ALL * FROM tab2 WHERE 87 BETWEEN + - ( col1 ) + col1 * 25 - + col1 + + CAST( - 24 AS SIGNED ) * - + ( - 54 ) AND ( - 48 * 69 )
----

skipif mysql # not compatible
query III rowsort label-5074
SELECT ALL * FROM tab2 WHERE 87 BETWEEN + - ( col1 ) + col1 * 25 - + col1 + + CAST ( - 24 AS INTEGER ) * - + ( - 54 ) AND ( - 48 * 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + MAX( DISTINCT + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5075
SELECT + MAX ( DISTINCT + - col1 ) FROM tab1
----
-5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = 8
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col1
----

query II rowsort
SELECT col0 AS col2, col0 + + 63 FROM tab1 AS cor0
----
51
114
85
148
91
154

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT - - ( - + 92 ) * - - COUNT( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT + 41 NOT IN ( col2, + 39 * - + 61 + - col1 * - col0 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5079
SELECT - - ( - + 92 ) * - - COUNT ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT + 41 NOT IN ( col2, + 39 * - + 61 + - col1 * - col0 * col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

query II rowsort
SELECT + col0 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT + MIN( ALL - + 75 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT + MIN ( ALL - + 75 ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + + ( + + 58 ) AS col1 FROM tab2 cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * - 35 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5085
SELECT col2 col2 FROM tab2 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5085
SELECT col2 col2 FROM tab2 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL - SUM( col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL - SUM ( col1 ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT + 84 * + col0 FROM tab0
----
1260
7308
8148

query I rowsort
SELECT - + 65 + col0 FROM tab1 WHERE NOT + 42 > - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT 7 * - + COUNT( * ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-5089
SELECT 7 * - + COUNT ( * ) FROM tab0
----
-21

query I rowsort
SELECT - col0 + + - ( col0 ) AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL - 75 * + ( - SUM( - - 14 ) ) FROM tab0 AS cor0
----
3150

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - 75 * + ( - SUM ( - - 14 ) ) FROM tab0 AS cor0
----
3150

query I rowsort
SELECT col1 * - ( - ( + - 55 ) ) * - + col0 + col0 AS col0 FROM tab0 AS cor0 WHERE 39 NOT IN ( - 50 )
----
100572
5432
66840

query I rowsort
SELECT + - col2 * + col1 + - 55 * 47 * + col1 + + - col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5094
SELECT COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + + COUNT( * ) * COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-5095
SELECT + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT - 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * - - 38 * col2 AS col2 FROM tab1
----
-132278
-175712
-350208

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 * 44 FROM tab2
----
-2244
-2948
-3388

query I rowsort
SELECT col0 * - + col2 + + 45 * col2 AS col2 FROM tab2 AS cor0
----
-1740
-23
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT ( - 31 ) * 72 + + COUNT( * ) + - - COUNT( * ) * + 13 FROM tab0 cor0
----
-2190

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT ( - 31 ) * 72 + + COUNT ( * ) + - - COUNT ( * ) * + 13 FROM tab0 cor0
----
-2190

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 79 IN ( + + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col0 - - + col2 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5104
SELECT + ( - CAST( NULL AS SIGNED ) ), col1 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5104
SELECT + ( - CAST ( NULL AS INTEGER ) ), col1 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT 35 + col1 + - + col0 * col2 DIV + + 87 - col1 AS col0 FROM tab2 AS cor0
----
-15
23
6

skipif mysql # not compatible
query I rowsort label-5105
SELECT 35 + col1 + - + col0 * col2 / + + 87 - col1 AS col0 FROM tab2 AS cor0
----
-15
23
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT DISTINCT + + 5 + - + col2 * CAST( 7 AS SIGNED ) FROM tab1 AS cor0
----
-408
-471
-667

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT + + 5 + - + col2 * CAST ( 7 AS INTEGER ) FROM tab1 AS cor0
----
-408
-471
-667

query I rowsort
SELECT ALL 91 + - + 6 FROM tab2
----
85
85
85

query I rowsort
SELECT ALL + 97 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT 49 DIV - + 48 + + COUNT( * ) * + 91 + + COUNT( DISTINCT col0 ) * + 16 AS col1 FROM tab0
----
320

skipif mysql # not compatible
query I rowsort label-5109
SELECT 49 / - + 48 + + COUNT ( * ) * + 91 + + COUNT ( DISTINCT col0 ) * + 16 AS col1 FROM tab0
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT + MAX( ALL + 76 ) + + - 15 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-5110
SELECT + MAX ( ALL + 76 ) + + - 15 FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT + 89 + + COUNT( - col0 ) AS col2 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-5111
SELECT + 89 + + COUNT ( - col0 ) AS col2 FROM tab1
----
92

query I rowsort
SELECT ( + 65 ) AS col0 FROM tab1
----
65
65
65

query II rowsort
SELECT DISTINCT col0 - col2 AS col2, + col2 AS col0 FROM tab2
----
17
58
23
23
24
40

query I rowsort
SELECT ALL + col0 * - - col0 AS col0 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 49 + - 66 / + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5116
SELECT + CAST( NULL AS SIGNED ) AS col2, col0 AS col0, - - col0 * col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to db3f5c03bcea1a11d36a6c0645ae1cf8

skipif mysql # not compatible
query III rowsort label-5116
SELECT + CAST ( NULL AS INTEGER ) AS col2, col0 AS col0, - - col0 * col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to db3f5c03bcea1a11d36a6c0645ae1cf8

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT DISTINCT col2 DIV + + col2 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT col2 / + + col2 AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5118
SELECT ALL + col1 DIV + col0 * col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL + col1 / + col0 * col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 70 + + col1, + col0 - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5120
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) * + 88 AND - + col1 + + CAST( + col2 AS DECIMAL ) * + 49
----

skipif mysql # not compatible
query III rowsort label-5120
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) * + 88 AND - + col1 + + CAST ( + col2 AS REAL ) * + 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT DISTINCT - - col1 DIV - ( + - 12 ) + 56 FROM tab0 cor0
----
56
57
62

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT - - col1 / - ( + - 12 ) + 56 FROM tab0 cor0
----
56
57
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + - MIN( DISTINCT 90 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5122
SELECT + - MIN ( DISTINCT 90 ) FROM tab1 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5123
SELECT - MAX( DISTINCT col2 ), 14 AS col1 FROM tab0 AS cor0
----
-99
14

skipif mysql # not compatible
query II rowsort label-5123
SELECT - MAX ( DISTINCT col2 ), 14 AS col1 FROM tab0 AS cor0
----
-99
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - COUNT( * ) * + SUM( + col0 ) AS col2 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5124
SELECT - COUNT ( * ) * + SUM ( + col0 ) AS col2 FROM tab1
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL COUNT( * ) * - SUM( - col0 ) col2 FROM tab0
----
597

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5125
SELECT ALL COUNT ( * ) * - SUM ( - col0 ) col2 FROM tab0
----
597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 WHERE NOT ( col2 >= - col0 * - col2 )
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col2 IS NULL )
----

query II rowsort
SELECT DISTINCT - 2 AS col2, + col1 * - - col0 FROM tab2
----
-2
2346
-2
4928
-2
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5129
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 41 + + col2 FROM tab0
----
NULL
140
NULL
51
NULL
88

skipif mysql # not compatible
query II rowsort label-5129
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 41 + + col2 FROM tab0
----
NULL
140
NULL
51
NULL
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5130
SELECT * FROM tab1 AS cor0 WHERE + col1 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IN ( + col2, col0 + + 0 + - col2 + - + 8, col2 * - + 49 - + 43 )
----

skipif mysql # not compatible
query III rowsort label-5130
SELECT * FROM tab1 AS cor0 WHERE + col1 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IN ( + col2, col0 + + 0 + - col2 + - + 8, col2 * - + 49 - + 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT - 17 * CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1683
170
799

skipif mysql # not compatible
query I rowsort label-5131
SELECT - 17 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1683
170
799

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT - MAX( ALL - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5132
SELECT - MAX ( ALL - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL 0 + - 62 + col1 AS col0 FROM tab0 AS cor0
----
-41
-61
19

query I rowsort
SELECT ALL + col2 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - + COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT - + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 65 + - + col0 + + 98 FROM tab1
----
112
72
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * 42 col2, - col1 col2 FROM tab2
----
-2142
-51
-2814
-67
-3234
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL SUM( + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL SUM ( + - col0 ) FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + ( 21 ) ) + - + col2, - 0 * + 57 col1 FROM tab2 AS cor0
----
-44
0
-61
0
-79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT + 63 DIV + col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5140
SELECT + 63 / + col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + ( + col0 ) * - - col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - + 16 + 94 + 16 AS col1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT - col0 * - 42 FROM tab0 AS cor0
----
3654
4074
630

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT 55 * + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5144
SELECT 55 * + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT - MIN( col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5145
SELECT - MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 WHERE col1 * + col1 NOT BETWEEN - + 30 - - + col1 AND + 68
----
15
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL - COUNT( * ) FROM tab0 WHERE - 61 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - 61 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * - col0 AS col1 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * - col0 AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5149
SELECT DISTINCT - CAST( NULL AS SIGNED ), col2 col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5149
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col2 col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL - col1 * - 75 AS col1 FROM tab2
----
3825
5025
5775

query II rowsort
SELECT col2, + col1 + + ( - - col0 ) FROM tab0
----
10
108
47
96
99
98

query I rowsort
SELECT DISTINCT + col2 * - + col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT + 36 DIV - col0 + + - col1 FROM tab1 AS cor0 WHERE NOT 28 IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5153
SELECT + 36 / - col0 + + - col1 FROM tab1 AS cor0 WHERE NOT 28 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 * + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 * + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE - 4 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL - + col2 * 90 AS col2 FROM tab0 AS cor0
----
-4230
-8910
-900

query I rowsort
SELECT ALL + - 59 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-59
-59

query I rowsort
SELECT ALL - 79 * 73 + col2 FROM tab0 AS cor0
----
-5668
-5720
-5757

query I rowsort
SELECT ALL - - col1 * col0 FROM tab2 cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 * col0 + - col2 col0 FROM tab2 AS cor0
----
299
408
467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + 65 col1 FROM tab1
----
-3055
-325
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT - 93 DIV - ( + col1 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5165
SELECT - 93 / - ( + col1 ) AS col0 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT - 11 DIV + - col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5166
SELECT - 11 / + - col1 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT + MAX( ( 42 ) ) + - + COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-5167
SELECT + MAX ( ( 42 ) ) + - + COUNT ( * ) FROM tab2
----
39

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - 98
----

query III rowsort
SELECT * FROM tab1 WHERE + - col2 IS NULL
----

query I rowsort
SELECT 81 + + col2 FROM tab1
----
140
149
177

query I rowsort
SELECT DISTINCT + + 78 * - + col0 + - 50 FROM tab2 AS cor0
----
-3638
-5042
-5900

query II rowsort
SELECT DISTINCT - col0 AS col0, 29 FROM tab0
----
-15
29
-87
29
-97
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - 86 col2 FROM tab0
----
-10
-86
-47
-86
-99
-86

query I rowsort
SELECT col0 - + - col0 AS col1 FROM tab2
----
128
150
92

query I rowsort
SELECT - col2 * + - ( + col2 ) - + 19 + - col1 AS col2 FROM tab2
----
1504
3278
459

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5176
SELECT ALL - col1 AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-5176
SELECT ALL - col1 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab2
----
9

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab2 cor0
----
88

query I rowsort
SELECT + col0 + + 21 FROM tab1 cor0
----
106
112
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL - MAX( ALL + 9 ) FROM tab2 AS cor0 WHERE NOT 68 + col1 BETWEEN NULL AND + - col1
----
-9

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL - MAX ( ALL + 9 ) FROM tab2 AS cor0 WHERE NOT 68 + col1 BETWEEN NULL AND + - col1
----
-9

query I rowsort
SELECT + - 62 + - col0 FROM tab2 AS cor0
----
-108
-126
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT DISTINCT 44 + + - CAST( + + 81 AS SIGNED ) * - - 42 + 82 * + col2 col2 FROM tab0
----
-2538
4760
496

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5182
SELECT DISTINCT 44 + + - CAST ( + + 81 AS INTEGER ) * - - 42 + 82 * + col2 col2 FROM tab0
----
-2538
4760
496

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT DISTINCT + COUNT( ( 78 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT + COUNT ( ( 78 ) ) FROM tab2
----
3

query I rowsort
SELECT ALL 29 * - ( col0 ) AS col1 FROM tab2
----
-1334
-1856
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT COUNT( * ) * + 47 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT COUNT ( * ) * + 47 FROM tab2
----
141

query I rowsort
SELECT ALL + col2 * - col0 / - col0 - - 95 FROM tab1 AS cor0 WHERE NOT + 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL SUM( ALL - col1 ) * COUNT( * ) + - 68 FROM tab2
----
-653

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL SUM ( ALL - col1 ) * COUNT ( * ) + - 68 FROM tab2
----
-653

query I rowsort
SELECT 74 * - col0 AS col1 FROM tab2
----
-3404
-4736
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 73 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 50 - col2 + - 1 / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL 55 * - - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( col1, + 10 )
----
0

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL 55 * - - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( col1, + 10 )
----
0

query I rowsort
SELECT - col1 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT col0 DIV + - col2 + - col1 * + + col0 FROM tab0 AS cor0
----
-1215
-1835
-97

skipif mysql # not compatible
query I rowsort label-5194
SELECT col0 / + - col2 + - col1 * + + col0 FROM tab0 AS cor0
----
-1215
-1835
-97

query I rowsort
SELECT - ( col0 ) + col1 AS col2 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT ALL + ( + - 67 ) + + - col1 AS col1 FROM tab0
----
-148
-68
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL ( + COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL ( + COUNT ( * ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT 2 * 36 AS col2 FROM tab2
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT DISTINCT col2 * 67 * col0 + - + ( + - col1 ) DIV + + col0 FROM tab2
----
171521
291450
70887

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT col2 * 67 * col0 + - + ( + - col1 ) / + + col0 FROM tab2
----
171521
291450
70887

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - COUNT( * ) FROM tab2 WHERE - 88 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5200
SELECT - COUNT ( * ) FROM tab2 WHERE - 88 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5201
SELECT + 68 DIV + COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-5201
SELECT + 68 / + COUNT ( * ) FROM tab1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5202
SELECT DISTINCT col2 AS col2, - CAST( NULL AS SIGNED ) * + - col1 * + - 19 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5202
SELECT DISTINCT col2 AS col2, - CAST ( NULL AS INTEGER ) * + - col1 * + - 19 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL + col1 * col0 + + 50 AS col2 FROM tab1
----
4327
475
764

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 35 + - - 60 + col1 * - col1 <> + col0 - 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col1, - 78 FROM tab1
----
14
-78
47
-78
5
-78

query I rowsort
SELECT ( + 98 ) * col2 FROM tab1
----
5782
6664
9408

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT + 70 * - col0 DIV + col0 FROM tab1 WHERE NULL IS NULL
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-5207
SELECT + 70 * - col0 / + col0 FROM tab1 WHERE NULL IS NULL
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ( + - COUNT( * ) ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT ( + - COUNT ( * ) ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL - 91, col2 - 14 AS col2 FROM tab2 AS cor0
----
-91
26
-91
44
-91
9

query I rowsort
SELECT DISTINCT + 8 - col0 FROM tab0 cor0
----
-7
-79
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col1 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT 32 + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT 32 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT - col1 * col0 * + col2 DIV col2 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-5213
SELECT - col1 * col0 * + col2 / col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5214
SELECT + COUNT( * ) DIV ( + 21 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5214
SELECT + COUNT ( * ) / ( + 21 ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN ( NULL ) AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) * - - 96 AS col0 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * - - 96 AS col0 FROM tab1 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT SUM( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5217
SELECT SUM ( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT + + COUNT( * ) * - - COUNT( DISTINCT 32 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5218
SELECT + + COUNT ( * ) * - - COUNT ( DISTINCT 32 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 15 * - 69, col2 + - col0 + col1 - 56, 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT + MAX( DISTINCT - 2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT + MAX ( DISTINCT - 2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL MIN( DISTINCT + - 9 ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL MIN ( DISTINCT + - 9 ) AS col1 FROM tab0
----
-9

query II rowsort
SELECT col2, + 82 AS col0 FROM tab2
----
23
82
40
82
58
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - COUNT( + col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5223
SELECT - COUNT ( + col2 ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 49 col1, - col1 * 77 - + col1 * - col1 * + - col0 AS col1 FROM tab1
----
-49
-11074
-49
-204638
-49
-2510

onlyif mysql # aggregate syntax: 
query II rowsort label-5225
SELECT - - ( + ( COUNT( + 90 ) ) ), - 22 AS col1 FROM tab2 AS cor0
----
3
-22

skipif mysql # not compatible
query II rowsort label-5225
SELECT - - ( + ( COUNT ( + 90 ) ) ), - 22 AS col1 FROM tab2 AS cor0
----
3
-22

query II rowsort
SELECT + + col0, - col1 FROM tab0 cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT + - ( - 61 ) * col2 + + 93 * ( col1 ) FROM tab2 AS cor0
----
6146
9601
9769

query I rowsort
SELECT + col2 * + + 36 FROM tab2 AS cor0
----
1440
2088
828

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col2, col0, + col2 * - - col1 + - + col1 )
----

query I rowsort
SELECT - 99 * - col2 AS col0 FROM tab0
----
4653
9801
990

query I rowsort
SELECT + + ( + + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 49 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT DISTINCT COUNT( DISTINCT col1 ) * 25 + - - 85 FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT COUNT ( DISTINCT col1 ) * 25 + - - 85 FROM tab0 AS cor0
----
160

query I rowsort
SELECT DISTINCT + 21 + col1 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
2622
4510
5950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) + + col2 + 86 AS col0 FROM tab1 cor0
----
107
140
168

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) + + col2 + 86 AS col0 FROM tab1 cor0
----
107
140
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL + 72 + 50 + + 26 + + COUNT( + + ( - + col1 ) ) FROM tab0
----
151

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + 72 + 50 + + 26 + + COUNT ( + + ( - + col1 ) ) FROM tab0
----
151

query III rowsort
SELECT * FROM tab0 WHERE + 50 / col1 IS NULL
----

query I rowsort
SELECT - col0 * + 58 + - col0 AS col0 FROM tab2
----
-2714
-3776
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT DISTINCT 45 * + COUNT( * ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT 45 * + COUNT ( * ) FROM tab0
----
135

query I rowsort
SELECT - col1 * col2 * col2 + col0 AS col1 FROM tab2
----
-123136
-225313
-26933

query I rowsort
SELECT 45 + + col2 AS col0 FROM tab0 AS cor0
----
144
55
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT - CAST( 90 AS SIGNED ) AS col1 FROM tab0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-5242
SELECT - CAST ( 90 AS INTEGER ) AS col1 FROM tab0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5244
SELECT - col2 * + 72 * + 35 * - - CAST( NULL AS DECIMAL ) - - col2 + + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT - col2 * + 72 * + 35 * - - CAST ( NULL AS REAL ) - - col2 + + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN + col0 AND NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT COUNT( * ) - - 40 AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-5246
SELECT COUNT ( * ) - - 40 AS col0 FROM tab0
----
43

query I rowsort
SELECT ALL - col1 * 10 AS col2 FROM tab0 AS cor0
----
-10
-210
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col1 ) col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL - - MIN( col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL - - MIN ( col2 ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT + 67 + + 89 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT + col0 * - - 33 AS col2, 44 + - col2, - ( 31 ) * + col1 * + 65 AS col1 FROM tab0 AS cor0
----
9 values hashing to 501e07d00c9aa62c23e714b753a1769d

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT SUM( - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5252
SELECT SUM ( - col1 ) AS col0 FROM tab0
----
-103

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT - - MAX( - - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT - - MAX ( - - col1 ) FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col2 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5256
SELECT + - 63, + CAST( - 67 AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 7be65c71df43210c4c20603f50b9b908

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5256
SELECT + - 63, + CAST ( - 67 AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 7be65c71df43210c4c20603f50b9b908

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 28 * + - 66 = col2
----

query II rowsort
SELECT - col1 + ( - col1 ), 81 AS col0 FROM tab1 AS cor0
----
-10
81
-28
81
-94
81

query I rowsort
SELECT DISTINCT col0 + + - col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT DISTINCT + col2 * - 84 * - 89 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
441084
-85
508368
-91
717696
-51

query I rowsort
SELECT DISTINCT - col0 * - col1 - - 52 + - col2 FROM tab0 AS cor0
----
1220
1869
50

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL + - COUNT( * ) + - 20 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL + - COUNT ( * ) + - 20 FROM tab0 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT 58 + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT 58 + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT + ( + COUNT( * ) ) + 50 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
50

skipif mysql # not compatible
query I rowsort label-5266
SELECT + ( + COUNT ( * ) ) + 50 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
50

query I rowsort
SELECT DISTINCT ( 91 ) AS col0 FROM tab0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE ( - col2 ) < NULL
----

query II rowsort
SELECT + col1 - + col1, 44 AS col1 FROM tab2
----
0
44
0
44
0
44

query I rowsort
SELECT - col0 + - + ( + 78 ) AS col0 FROM tab2 AS cor0
----
-124
-142
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + ( - COUNT( * ) ) + + 28 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5271
SELECT + ( - COUNT ( * ) ) + + 28 FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT + 89 + 4 AS col1 FROM tab1 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + - col2 col0 FROM tab2 AS cor0
----
-17
-34
-52

query I rowsort
SELECT - ( - 26 ) * 52 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
1353
1793
7913

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 + - - 57 * + col2 / + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 33 * + 59 AS col2 FROM tab1
----
1947

query I rowsort
SELECT 29 * col2 - + col0 * col2 FROM tab2 AS cor0 WHERE NOT - col1 * + ( col1 ) - col1 NOT IN ( - + col1, - col0, + 97 * col1, + col2, - col2 + col1, - ( + col2 ) )
----

query II rowsort
SELECT - col2 AS col1, 4 AS col1 FROM tab2 AS cor0
----
-23
4
-40
4
-58
4

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

query II rowsort
SELECT + col0, - col0 * col1 + col2 FROM tab2 cor0
----
46
-2323
64
-4888
75
-4967

query II rowsort
SELECT DISTINCT col1, 82 AS col1 FROM tab2 AS cor0
----
51
82
67
82
77
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT COUNT( * ) * COUNT( ALL - 55 ) * - 38 FROM tab2 AS cor0
----
-342

skipif mysql # not compatible
query I rowsort label-5283
SELECT COUNT ( * ) * COUNT ( ALL - 55 ) * - 38 FROM tab2 AS cor0
----
-342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( col2 ) col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT DISTINCT - + 54 FROM tab2 AS cor0 WHERE NOT + col1 * - CAST( + - 14 AS SIGNED ) < + col2
----
-54

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT - + 54 FROM tab2 AS cor0 WHERE NOT + col1 * - CAST ( + - 14 AS INTEGER ) < + col2
----
-54

query I rowsort
SELECT - + col0 * 73 * - - col0 FROM tab1 AS cor0
----
-189873
-527425
-604513

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT + ( + + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT + ( + + COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL COUNT( * ) * - 61 AS col1 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL COUNT ( * ) * - 61 AS col1 FROM tab0
----
-183

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND 97
----

query II rowsort
SELECT 96 AS col0, col1 * + col1 AS col0 FROM tab1
----
96
196
96
2209
96
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT MAX( DISTINCT + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5293
SELECT MAX ( DISTINCT + + col1 ) FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col2, - 17 FROM tab1 AS cor0
----
14
-17
47
-17
5
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5295
SELECT ALL + COUNT( * ) DIV + 36 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5295
SELECT ALL + COUNT ( * ) / + 36 col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5296
SELECT ALL + - SUM( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE + - ( 28 ) / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 23 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT - ( - MAX( + CAST( - + col2 AS SIGNED ) ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5300
SELECT - ( - MAX ( + CAST ( - + col2 AS INTEGER ) ) ) FROM tab2
----
-23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

query II rowsort
SELECT DISTINCT - 75 + + col2 AS col0, + 85 FROM tab0 AS cor0
----
-28
85
-65
85
24
85

query II rowsort
SELECT + ( - 43 ), + AVG ( ALL 71 ) * - 88 AS col1 FROM tab0 AS cor0 WHERE ( NOT - + 63 * - col2 IS NOT NULL )
----
-43
NULL

query II rowsort
SELECT ALL - col0 * col1 / - + col0 + + col0 * 86, ( 84 ) * - col0 * - 60 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT - col0 + + + 46 AS col2 FROM tab0
----
-41
-51
31

query I rowsort
SELECT ALL + col2 - + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT ALL col0 * + CAST( - - col1 AS SIGNED ) AS col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL col0 * + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT + 5 + - col1 DIV + col1 + + col2 col0 FROM tab0
----
103
14
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5308
SELECT + 5 + - col1 / + col1 + + col2 col0 FROM tab0
----
103
14
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5309
SELECT + col1 * - CAST( NULL AS SIGNED ) + - col1 AS col0, 38 FROM tab2
----
NULL
38
NULL
38
NULL
38

skipif mysql # not compatible
query II rowsort label-5309
SELECT + col1 * - CAST ( NULL AS INTEGER ) + - col1 AS col0, 38 FROM tab2
----
NULL
38
NULL
38
NULL
38

query I rowsort
SELECT - ( - col1 ) * + col0 AS col2 FROM tab0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT DISTINCT + 84 * + col1 DIV col1 AS col0 FROM tab2 cor0 WHERE NOT 37 BETWEEN NULL AND + col2
----
84

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT + 84 * + col1 / col1 AS col0 FROM tab2 cor0 WHERE NOT 37 BETWEEN NULL AND + col2
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col1, + 34 FROM tab1 cor0
----
14
34
47
34
5
34

query II rowsort
SELECT ALL col2 AS col2, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT DISTINCT 10 AS col2, col1 AS col2 FROM tab2 AS cor0
----
10
51
10
67
10
77

onlyif mysql # aggregate syntax: 
query III rowsort label-5317
SELECT DISTINCT - COUNT( * ) * - - COUNT( ALL + col0 ) + MIN( ALL - 57 ) AS col0, - COUNT( * ) AS col0, - 61 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - 47
----
NULL
0
-61

skipif mysql # not compatible
query III rowsort label-5317
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( ALL + col0 ) + MIN ( ALL - 57 ) AS col0, - COUNT ( * ) AS col0, - 61 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - 47
----
NULL
0
-61

query I rowsort
SELECT ALL 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT col1 * - + 95 * 68 FROM tab2 AS cor0
----
-329460
-432820
-497420

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL - + COUNT( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - + COUNT ( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT + ( - col1 ) * - col0 AS col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - 46 * + + col2 + col1 * - 16 * - + 29 ) AND 95 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT DISTINCT 25 * + - MIN( DISTINCT - col2 ) AS col0 FROM tab2
----
1450

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT 25 * + - MIN ( DISTINCT - col2 ) AS col0 FROM tab2
----
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5324
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-9

query II rowsort
SELECT ALL col1 * - 61 * + col2 AS col1, - col1 FROM tab1
----
-17995
-5
-194956
-47
-81984
-14

query I rowsort
SELECT - col0 * + 70 AS col0 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT + + 81 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5327
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + + 81 IS NULL
----
-3

query I rowsort
SELECT - 44 * 53 AS col0 FROM tab0
----
-2332
-2332
-2332

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5329
SELECT DISTINCT * FROM tab1 WHERE - 73 + + - 34 <= - col0 * + CAST( + 52 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5329
SELECT DISTINCT * FROM tab1 WHERE - 73 + + - 34 <= - col0 * + CAST ( + 52 AS INTEGER )
----

query I rowsort
SELECT + ( - + col0 ) + 34 AS col0 FROM tab1 WHERE NOT + 35 IS NULL
----
-17
-51
-57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 36, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT DISTINCT + SUM( - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT + SUM ( - col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT col0 + + + col0 FROM tab0 AS cor0
----
174
194
30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5335
SELECT 18 * COUNT( * ) + - COUNT( * ) / - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT 18 * COUNT ( * ) + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * 83 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + ( - col1 ) IS NULL
----

query II rowsort
SELECT ALL - col1, col0 * ( - 11 ) AS col2 FROM tab2 AS cor0
----
-51
-506
-67
-825
-77
-704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5339
SELECT - - ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT - - ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5340
SELECT * FROM tab2 AS cor0 WHERE ( 80 ) BETWEEN - + col2 - - - col2 + - - CAST( + col1 AS SIGNED ) AND - 25
----

skipif mysql # not compatible
query III rowsort label-5340
SELECT * FROM tab2 AS cor0 WHERE ( 80 ) BETWEEN - + col2 - - - col2 + - - CAST ( + col1 AS INTEGER ) AND - 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + col2 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5341
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + col2 col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT + 81 DIV - + 43 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5343
SELECT + 81 / - + 43 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT - ( SUM( 46 ) ) - - + 64 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-5344
SELECT - ( SUM ( 46 ) ) - - + 64 FROM tab0
----
-74

query II rowsort
SELECT ALL col0 - - + 94, ( - 62 ) AS col0 FROM tab1
----
145
-62
179
-62
185
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT + + 19 * + + COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5346
SELECT + + 19 * + + COUNT ( * ) FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5348
SELECT 88 DIV SUM( + + col2 ), + 19 AS col2 FROM tab1
----
0
19

skipif mysql # not compatible
query II rowsort label-5348
SELECT 88 / SUM ( + + col2 ), + 19 AS col2 FROM tab1
----
0
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - 47 FROM tab2
----
-51
-47
-67
-47
-77
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL + MIN( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + MIN ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + col2 * + 31 FROM tab0 AS cor0
----
1457
3069
310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * - col2 col2 FROM tab0 AS cor0
----
-1457
-3069
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL + COUNT( + 50 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL + COUNT ( + 50 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5354
SELECT - 11, - col2 DIV + - col1 AS col2 FROM tab2 cor0
----
-11
0
-11
0
-11
0

skipif mysql # not compatible
query II rowsort label-5354
SELECT - 11, - col2 / + - col1 AS col2 FROM tab2 cor0
----
-11
0
-11
0
-11
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 * - col0 * col2 / + col0 + col1 AND ( + col1 / - - col2 * - col1 )
----

query II rowsort
SELECT DISTINCT + col2, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5357
SELECT DISTINCT 18 * + + COUNT( * ) + + 8 * CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5357
SELECT DISTINCT 18 * + + COUNT ( * ) + + 8 * CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL
3

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 + col2 > + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 58 col0 FROM tab1
----
1
10
38

query I rowsort
SELECT - col1 + + 66 AS col1 FROM tab1
----
19
52
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - + col2 + - + 61 FROM tab0 cor0
----
-108
-160
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col1 ) * - 54 <> - 64 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - 94 FROM tab0
----
-1974
-7614
-94

query I rowsort
SELECT col1 * - 70 FROM tab2
----
-3570
-4690
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT SUM( ALL - col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT SUM ( ALL - col1 ) AS col1 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1, tab1 cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <> + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - + col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT - col2 * col0 + - col1 + ( - - col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT - - col2 + - + col0 + - col0 + - + col1 * + - col2 * + col1 * col1 FROM tab2 AS cor0
----
17444162
18261232
3050904

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE col2 / col0 * - + 50 IS NULL
----

query I rowsort
SELECT ALL - + 61 AS col2 FROM tab0 cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5375
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col2 + col0 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5375
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col2 + col0 col2 FROM tab0
----
NULL

query I rowsort
SELECT col0 * - + 25 + + - 36 FROM tab2
----
-1186
-1636
-1911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - MIN( ALL - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5379
SELECT - MIN ( ALL - col1 ) FROM tab1
----
47

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + col1 ) > - ( + col0 ) + col2
----
85
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col1, col1 col1 FROM tab1 cor0
----
14
14
47
47
5
5

query II rowsort
SELECT DISTINCT 62, + col0 AS col0 FROM tab1 AS cor0
----
62
51
62
85
62
91

query I rowsort
SELECT col1 * 30 AS col2 FROM tab2
----
1530
2010
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT MAX( DISTINCT - col2 ) col1 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5384
SELECT DISTINCT MAX ( DISTINCT - col2 ) col1 FROM tab1
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col2 ) = NULL
----

query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab1 AS cor0 WHERE NULL > - 61
----

query I rowsort
SELECT + col0 + + - 3 FROM tab1 AS cor0
----
48
82
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT ALL col2 + - - CAST( + 69 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
116
168
79

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL col2 + - - CAST ( + 69 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
116
168
79

query I rowsort
SELECT ALL + - 87 AS col0 FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT + ( - - ( - col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
0

query I rowsort
SELECT + col2 * + col1 * - 38 FROM tab1
----
-11210
-121448
-51072

query I rowsort
SELECT 46 * col2 FROM tab2
----
1058
1840
2668

query II rowsort
SELECT + col0 AS col0, 83 AS col2 FROM tab0
----
15
83
87
83
97
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL - MIN( DISTINCT + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL - MIN ( DISTINCT + col0 ) FROM tab1
----
-51

query I rowsort
SELECT + col0 + - 51 AS col2 FROM tab0 cor0
----
-36
36
46

query I rowsort
SELECT ALL 11 + + col1 AS col2 FROM tab0 AS cor0
----
12
32
92

query I rowsort
SELECT - col1 * 72 AS col1 FROM tab2
----
-3672
-4824
-5544

query I rowsort
SELECT - ( 6 ) * 99 AS col2 FROM tab2
----
-594
-594
-594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT ALL - col0 * CAST( - 47 AS SIGNED ) col2 FROM tab1
----
2397
3995
4277

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5400
SELECT ALL - col0 * CAST ( - 47 AS INTEGER ) col2 FROM tab1
----
2397
3995
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT DISTINCT SUM( - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT SUM ( - col2 ) FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT - ( col0 ) * ( - 32 + + col2 DIV col2 ) FROM tab2
----
1426
1984
2325

skipif mysql # not compatible
query I rowsort label-5402
SELECT - ( col0 ) * ( - 32 + + col2 / col2 ) FROM tab2
----
1426
1984
2325

query I rowsort
SELECT ( - col1 ) FROM tab1 WHERE col0 * col2 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT DISTINCT - MAX( - 22 ) DIV - MIN( DISTINCT col1 ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - MAX ( - 22 ) / - MIN ( DISTINCT col1 ) FROM tab0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5405
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5405
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 + 59 col0 FROM tab2
----
47
47
47

query I rowsort
SELECT DISTINCT ( ( - 19 ) ) FROM tab1
----
-19

query I rowsort
SELECT ALL col0 * 66 FROM tab1
----
3366
5610
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-5409
SELECT - col0 DIV - 55 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5409
SELECT - col0 / - 55 AS col1 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT - 81 DIV 70 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5410
SELECT - 81 / 70 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 9 + col2 AS col1 FROM tab1
----
105
68
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5412
SELECT COUNT( * ) DIV + 3 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5412
SELECT COUNT ( * ) / + 3 AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5413
SELECT * FROM tab1 WHERE ( col0 - col1 ) NOT BETWEEN - CAST( NULL AS SIGNED ) / 38 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5413
SELECT * FROM tab1 WHERE ( col0 - col1 ) NOT BETWEEN - CAST ( NULL AS INTEGER ) / 38 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 - 47 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 = ( col1 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT BETWEEN NULL AND col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT + 10 * COUNT( * ) + ( - 56 ) AS col0 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + 10 * COUNT ( * ) + ( - 56 ) AS col0 FROM tab2
----
-26

query I rowsort
SELECT ( - 85 ) AS col0 FROM tab2
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT MIN( 78 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT MIN ( 78 ) FROM tab2
----
78

query I rowsort
SELECT ( - 58 ) * - col1 FROM tab1 WHERE NOT + col1 / + col0 IN ( - 31 )
----
2726
290
812

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5421
SELECT DISTINCT * FROM tab1 WHERE - CAST( + 92 AS DECIMAL ) + - col1 IN ( col1 * col0 )
----

skipif mysql # not compatible
query III rowsort label-5421
SELECT DISTINCT * FROM tab1 WHERE - CAST ( + 92 AS REAL ) + - col1 IN ( col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT CAST( 0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5422
SELECT CAST ( 0 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT + 50 AS col2 FROM tab1 WHERE NOT ( ( 97 ) ) > 93 * + 83 + col0
----
50
50
50

query I rowsort
SELECT 81 * - col0 AS col1 FROM tab2 cor0
----
-3726
-5184
-6075

query I rowsort
SELECT ALL - 37 * + col0 FROM tab1 AS cor0
----
-1887
-3145
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - MAX( + 22 ) AS col1 FROM tab1 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5426
SELECT - MAX ( + 22 ) AS col1 FROM tab1 cor0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT ALL - 88 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-88

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - 88 / col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - col2 + col2 * col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5429
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0 cor0 WHERE ( col0 ) = ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0 cor0 WHERE ( col0 ) = ( col2 )
----

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT SUM( + 1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5431
SELECT SUM ( + 1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 / + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT ALL - - 20 + - COUNT( DISTINCT - 58 ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL - - 20 + - COUNT ( DISTINCT - 58 ) FROM tab0 AS cor0
----
19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT COUNT( * ) * - SUM( ( + 89 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 > ( col1 )
----
-801

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT COUNT ( * ) * - SUM ( ( + 89 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 > ( col1 )
----
-801

query I rowsort
SELECT DISTINCT + 73 + - col0 FROM tab0 cor0
----
-14
-24
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT col0 * + col2 + col1 AS col1 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5439
SELECT ALL col2 + CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5439
SELECT ALL col2 + CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 25 * + 35 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT COUNT( * ) AS col1 FROM tab2 WHERE ( NULL ) >= + col2 * ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE ( NULL ) >= + col2 * ( col0 )
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( 54 * col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 48 * + col2 * 86 AS col2 FROM tab2
----
165120
239424
94944

query I rowsort
SELECT 64 + + + col1 AS col2 FROM tab0
----
145
65
85

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN + col1 * + col2 + - 48 * col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5448
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( + CAST( NULL AS SIGNED ) ) AND col0 * col2
----

skipif mysql # not compatible
query III rowsort label-5448
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND col0 * col2
----

query I rowsort
SELECT - ( - + col2 ) AS col2 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <> ( + col0 )
----

query I rowsort
SELECT + col0 - 25 AS col1 FROM tab0
----
-10
62
72

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL < NULL )
----

query I rowsort
SELECT ALL 15 * - 61 - - col0 FROM tab1
----
-824
-830
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col0 * - + 97 + + 65 col2 FROM tab1 AS cor0
----
4961
8225
8801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT DISTINCT - 60 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) = col2 * col2 OR NOT NULL IS NOT NULL
----
-60

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT - 60 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = col2 * col2 OR NOT NULL IS NOT NULL
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT 69 + - - COUNT( * ) col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5456
SELECT 69 + - - COUNT ( * ) col0 FROM tab2 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT + 93 DIV col1 FROM tab1 AS cor0 WHERE 15 + - 61 IS NOT NULL
----
1
18
6

skipif mysql # not compatible
query I rowsort label-5457
SELECT + 93 / col1 FROM tab1 AS cor0 WHERE 15 + - 61 IS NOT NULL
----
1
18
6

query II rowsort
SELECT ALL - col2, col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 / + ( - 53 ) * 23 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT - SUM( DISTINCT - + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5462
SELECT - SUM ( DISTINCT - + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5463
SELECT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5463
SELECT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + ( col1 ) ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - 46 col0 FROM tab0
----
2162
4554
460

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * col2 * col2 IS NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE - 86 NOT IN ( + + col1 )
----
1
21
81

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE ( 55 ) BETWEEN col1 + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT COUNT( - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5469
SELECT COUNT ( - col1 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 85 ) > ( 47 * 57 )
----

query I rowsort
SELECT col1 * col0 AS col2 FROM tab1 WHERE NOT - col2 * - col1 * + col0 NOT IN ( - 89 / - col1 )
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT - 73 NOT IN ( - 64 * - 66 )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE - 43 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 68 + - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT - + 65 * + + COUNT( * ) + - + 25 FROM tab0 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-5476
SELECT - + 65 * + + COUNT ( * ) + - + 25 FROM tab0 AS cor0
----
-220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col0 FROM tab2
----
8
8
8

query I rowsort
SELECT + 76 * + 53 FROM tab0
----
4028
4028
4028

query I rowsort
SELECT 90 * col2 AS col0 FROM tab1
----
5310
6120
8640

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5480
SELECT ALL - 26 * col0 DIV + CAST( - col0 AS SIGNED ) FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL - 26 * col0 / + CAST ( - col0 AS INTEGER ) FROM tab1
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 + col1 * + - col1 ) > 75
----
15
81
47
87
21
10

query I rowsort
SELECT + 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT - - 10 AS col1 FROM tab1 AS cor0 WHERE - 1 IS NOT NULL
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 / ( 27 ) * + col2 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT - MAX( - 2 ) + - + 7 AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT - MAX ( - 2 ) + - + 7 AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT - - col0 * + + col2 + col0 + col2 FROM tab2 AS cor0
----
1127
2664
4483

query I rowsort
SELECT + col2 * - - col0 AS col2 FROM tab0 cor0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT col0 * + ( + 8 ) + col0 FROM tab0 AS cor0
----
135
783
873

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + SUM( ALL + 73 ) AS col0 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-5491
SELECT + SUM ( ALL + 73 ) AS col0 FROM tab1 AS cor0
----
219

query I rowsort
SELECT + col1 * + + col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT DISTINCT - - 99 + - COUNT( * ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT - - 99 + - COUNT ( * ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL + col0 * 1 + - 17 * + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1065
-1581
-918

query II rowsort
SELECT + col2, - 57 FROM tab0 AS cor0
----
10
-57
47
-57
99
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT ALL col1 DIV - col2 + - col0 col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5496
SELECT ALL col1 / - col2 + - col0 col2 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT col0 AS col2, - col0 FROM tab2
----
46
-46
64
-64
75
-75

query I rowsort
SELECT col1 * - + col2 AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5499
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 72 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 72 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL + + COUNT( * ) * + 79 FROM tab1 WHERE NOT - 87 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL + + COUNT ( * ) * + 79 FROM tab1 WHERE NOT - 87 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT MAX( DISTINCT col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5501
SELECT MAX ( DISTINCT col2 ) AS col0 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT ALL + col0 - - col1 DIV col2 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL + col0 - - col1 / col2 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT + ( - 84 ) FROM tab2 WHERE ( 30 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5504
SELECT * FROM tab2 WHERE - CAST( - 79 AS SIGNED ) * - - col2 + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5504
SELECT * FROM tab2 WHERE - CAST ( - 79 AS INTEGER ) * - - col2 + col1 IS NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5506
SELECT ( - 54 ) DIV + COUNT( * ) + + COUNT( * ) + 71 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5506
SELECT ( - 54 ) / + COUNT ( * ) + + COUNT ( * ) + 71 FROM tab0 AS cor0
----
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( 69 * col2 ) <= ( NULL ) ) OR + col2 NOT BETWEEN 59 AND 94 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col0 + col0 - + - col1 - - - 77 * + + 2 FROM tab2 AS cor0
----
-103
-77
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT - 77 + + + MAX( DISTINCT 35 ) AS col0 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5509
SELECT - 77 + + + MAX ( DISTINCT 35 ) AS col0 FROM tab2 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - 19 col1 FROM tab1 AS cor0
----
104
110
70

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5511
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col2 FROM tab0 WHERE NULL NOT IN ( - col1, CAST( - + 93 AS DECIMAL ) - - - col2 )
----

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 WHERE NULL NOT IN ( - col1, CAST ( - + 93 AS REAL ) - - - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 / 84 * col1 * + - col2 * ( + col0 ) - 18 * 99 BETWEEN 66 * col2 - col2 * 51 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL + + SUM( col2 ) * + + SUM( col2 ) FROM tab1 AS cor0
----
49729

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + + SUM ( col2 ) * + + SUM ( col2 ) FROM tab1 AS cor0
----
49729

query I rowsort
SELECT ( + 93 ) * - 93 + + - col1 FROM tab1 AS cor0
----
-8654
-8663
-8696

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN ( col1 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT - - col1 DIV + col0 + + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5516
SELECT - - col1 / + col0 + + col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 - col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - - col1 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + 87 + + 93 * col1 / ( 45 ) * 52 IS NOT NULL
----

query I rowsort
SELECT - 77 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col2 / col2 AND + 40
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5521
SELECT DISTINCT col0 * + + CAST( NULL AS DECIMAL ) * + col0 AS col2, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5521
SELECT DISTINCT col0 * + + CAST ( NULL AS REAL ) * + col0 AS col2, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL COUNT( * ) * 52 * 40 FROM tab1
----
6240

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL COUNT ( * ) * 52 * 40 FROM tab1
----
6240

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT DISTINCT - col2 DIV - ( - ( + - 67 ) ) AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - col2 / - ( - ( + - 67 ) ) AS col1 FROM tab0
----
0
1

query I rowsort
SELECT AVG ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + + MAX( - col1 ) AS col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5525
SELECT + + MAX ( - col1 ) AS col2 FROM tab1 cor0
----
-5

query I rowsort
SELECT + - ( + col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab0 AS cor0
----
94

query I rowsort
SELECT 90 AS col1 FROM tab0 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5529
SELECT col1 / + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT col1 / + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT ALL - col2 DIV - - col2 col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5530
SELECT ALL - col2 / - - col2 col2 FROM tab2
----
-1
-1
-1

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NOT + 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 47 + + col0 AS col1 FROM tab1 AS cor0
----
132
138
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5534
SELECT + - ( - COUNT( ALL - CAST( NULL AS DECIMAL ) ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT + - ( - COUNT ( ALL - CAST ( NULL AS REAL ) ) ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - 13 + - COUNT( * ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5535
SELECT - 13 + - COUNT ( * ) FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT - MIN( DISTINCT + 73 ) AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT - MIN ( DISTINCT + 73 ) AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 95 AND + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5538
SELECT - CAST( NULL AS DECIMAL ) + + COUNT( * ) + - COUNT( + + col0 ) * - 12 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT - CAST ( NULL AS REAL ) + + COUNT ( * ) + - COUNT ( + + col0 ) * - 12 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ALL + MIN( ALL - - col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL + MIN ( ALL - - col2 ) AS col0 FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - ( - 66 ) + ( 42 ) + - 31 <> NULL
----

query I rowsort
SELECT - 87 AS col1 FROM tab2 WHERE + col1 + + col2 + + + 77 NOT BETWEEN NULL AND 95
----
-87
-87
-87

query III rowsort
SELECT * FROM tab0 WHERE + 98 * col1 IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT - col0 + + CAST( + 87 AS SIGNED ) AS col0 FROM tab2
----
12
23
41

skipif mysql # not compatible
query I rowsort label-5543
SELECT - col0 + + CAST ( + 87 AS INTEGER ) AS col0 FROM tab2
----
12
23
41

query I rowsort
SELECT ALL - col1 - + - col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5545
SELECT ( + col2 ) DIV - 73 + - col0 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5545
SELECT ( + col2 ) / - 73 + - col0 AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col1 / + 90 + + col1 + + 14 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT DISTINCT col2, - col0 * ( + - ( + + col1 ) ) AS col0 FROM tab0 AS cor0
----
10
1827
47
1215
99
97

query I rowsort
SELECT ALL - + 56 AS col1 FROM tab0 AS cor0
----
-56
-56
-56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <= ( - 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5550
SELECT * FROM tab0 cor0 WHERE + col2 BETWEEN + col0 * - CAST( ( + - 14 ) AS SIGNED ) * 8 * + - col1 + col1 * - col2 * col0 AND col1 - 67
----

skipif mysql # not compatible
query III rowsort label-5550
SELECT * FROM tab0 cor0 WHERE + col2 BETWEEN + col0 * - CAST ( ( + - 14 ) AS INTEGER ) * 8 * + - col1 + col1 * - col2 * col0 AND col1 - 67
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NOT 68 * - col0 + - - col1 NOT IN ( col1 * - + col1 ) )
----

query I rowsort
SELECT ALL - col2 + - + 11 FROM tab2 AS cor0
----
-34
-51
-69

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 > - 63
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) > ( - col0 ) * + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5556
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col0, COUNT( * ) col1 FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5556
SELECT ALL + - CAST ( NULL AS REAL ) AS col0, COUNT ( * ) col1 FROM tab2 cor0
----
NULL
3

query I rowsort
SELECT ALL - col2 - - 18 - 55 FROM tab0 AS cor0 WHERE NOT ( - + col1 ) NOT BETWEEN NULL AND + 44
----

query II rowsort
SELECT ALL col2 AS col2, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT + ( 37 ) AS col1 FROM tab0 AS cor0
----
37
37
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5560
SELECT + 81 AS col2, + MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-5560
SELECT + 81 AS col2, + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
81
NULL

query II rowsort
SELECT ALL - + 90, ( + + 13 ) + - col1 AS col0 FROM tab2 AS cor0
----
-90
-38
-90
-54
-90
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 93 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 93 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL SUM( DISTINCT + - 26 ) AS col2 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL SUM ( DISTINCT + - 26 ) AS col2 FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT COUNT( * ) * - SUM( col0 ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5564
SELECT COUNT ( * ) * - SUM ( col0 ) FROM tab1
----
-681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5565
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5566
SELECT ALL COUNT( col2 ) AS col1, + MIN( DISTINCT + + 89 ) FROM tab1
----
3
89

skipif mysql # not compatible
query II rowsort label-5566
SELECT ALL COUNT ( col2 ) AS col1, + MIN ( DISTINCT + + 89 ) FROM tab1
----
3
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT + + 61 + - 70 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) - + + col2 BETWEEN - 70 AND + ( + 24 )
----

skipif mysql # not compatible
query I rowsort label-5567
SELECT + + 61 + - 70 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) - + + col2 BETWEEN - 70 AND + ( + 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT ALL - CAST( - 51 AS SIGNED ) FROM tab0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - CAST ( - 51 AS INTEGER ) FROM tab0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col2 FROM tab1
----
73
73
73

query I rowsort
SELECT - col0 + - 86 AS col1 FROM tab1 AS cor0
----
-137
-171
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + - 89 + + COUNT( * ) FROM tab0 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5571
SELECT + - 89 + + COUNT ( * ) FROM tab0 cor0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT - ( + + 51 ) + - CAST( NULL AS SIGNED ) + - 56 - + col2 * + col1 + col1 AS col0 FROM tab2 AS cor0 WHERE - ( + 91 ) + - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-5572
SELECT - ( + + 51 ) + - CAST ( NULL AS INTEGER ) + - 56 - + col2 * + col1 + col1 AS col0 FROM tab2 AS cor0 WHERE - ( + 91 ) + - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + col1 <= + 1
----
0

skipif mysql # not compatible
query I rowsort label-5573
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 <= + 1
----
0

query I rowsort
SELECT DISTINCT + + 38 * + 39 AS col0 FROM tab0 AS cor0
----
1482

query I rowsort
SELECT DISTINCT + + col1 + ( + - 83 ) + + col1 FROM tab1 AS cor0
----
-55
-73
11

query II rowsort
SELECT col1, 33 AS col1 FROM tab0 AS cor0
----
1
33
21
33
81
33

query I rowsort
SELECT DISTINCT 90 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5578
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN + col1 AND - + col1 / - - col2
----

skipif mysql # not compatible
query III rowsort label-5578
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN + col1 AND - + col1 / - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT MAX( DISTINCT - + 52 ) AS col2 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5579
SELECT MAX ( DISTINCT - + 52 ) AS col2 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT - - col0 * + - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT + - COUNT( * ) * + - 60 AS col2 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5581
SELECT + - COUNT ( * ) * + - 60 AS col2 FROM tab0 AS cor0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT DISTINCT - ( 87 ) - + 80 * + col1 DIV + + col1 AS col1 FROM tab2
----
-167

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT - ( 87 ) - + 80 * + col1 / + + col1 AS col1 FROM tab2
----
-167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 56 ) col2 FROM tab0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL + COUNT( * ) - 34 AS col0 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL + COUNT ( * ) - 34 AS col0 FROM tab1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT DISTINCT COUNT( * ) * - ( ( + 92 ) ) AS col0 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT COUNT ( * ) * - ( ( + 92 ) ) AS col0 FROM tab2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL + - COUNT( ALL 80 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL + - COUNT ( ALL 80 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT MAX( DISTINCT 0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT MAX ( DISTINCT 0 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - COUNT( * ) * - 56 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-5589
SELECT - COUNT ( * ) * - 56 FROM tab1 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT + COUNT( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5590
SELECT + COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + 81 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query II rowsort
SELECT ALL 33 AS col1, col0 AS col2 FROM tab2
----
33
46
33
64
33
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, col1 + + + col2 + - + 20 * - + 52 FROM tab1
----
14
1150
47
1155
5
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT - ( + 98 ) DIV + ( + 37 ) FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5596
SELECT - ( + 98 ) / + ( + 37 ) FROM tab1
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT col1 + col2 + - col2 DIV - 41 FROM tab0
----
102
129
31

skipif mysql # not compatible
query I rowsort label-5598
SELECT col1 + col2 + - col2 / - 41 FROM tab0
----
102
129
31

query I rowsort
SELECT + 18 * + - 74 + ( 11 ) AS col2 FROM tab1
----
-1321
-1321
-1321

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT 98 + + MAX( 80 ) AS col2 FROM tab2
----
178

skipif mysql # not compatible
query I rowsort label-5600
SELECT 98 + + MAX ( 80 ) AS col2 FROM tab2
----
178

query I rowsort
SELECT col1 + 44 AS col0 FROM tab1
----
49
58
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL + COUNT( * ) + + SUM( DISTINCT - + col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
-306

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL + COUNT ( * ) + + SUM ( DISTINCT - + col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-306

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 33 IS NULL
----

query I rowsort
SELECT DISTINCT - + 70 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-70

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE - 53 >= - 91
----
-14
-47
-5

query I rowsort
SELECT ALL - 50 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT 61 - + + col2 + - + ( + - col2 ) + + + 6 * + + col1 FROM tab1 AS cor0
----
145
343
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col1 FROM tab2 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT ALL - col0 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - col0 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE + + 88 IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 75 + + col1 FROM tab0 AS cor0
----
156
76
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5612
SELECT ALL + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL + CAST ( NULL AS REAL ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab0 AS cor0 WHERE ( 76 - + 23 + - col2 ) IN ( - 28, + col0 / - - ( + col2 ) * 2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 36 col0, col0 + - 7 FROM tab1 AS cor0 WHERE NOT + + col0 / 36 IS NOT NULL AND NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 64 - + col2 AS col0, + col2 FROM tab1 AS cor0
----
-32
96
-4
68
5
59

query I rowsort
SELECT - col2 + + col2 + - col0 AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT + col2 + + 74 + - col2 + + - 76 * - + 88 + - ( - + 86 ) * + col1 * - - ( + col0 ) * - 13 - + 16 + - col1 - - + 28 * + 51 FROM tab0
----
-100273
-1350277
-2034433

query III rowsort
SELECT * FROM tab1 WHERE NULL < 50 / + 15
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5619
SELECT DISTINCT + COUNT( * ) DIV - 82 - COUNT( * ) AS col1, + SUM( col2 ) FROM tab0
----
-3
156

skipif mysql # not compatible
query II rowsort label-5619
SELECT DISTINCT + COUNT ( * ) / - 82 - COUNT ( * ) AS col1, + SUM ( col2 ) FROM tab0
----
-3
156

query I rowsort
SELECT ALL col2 + 74 AS col1 FROM tab0
----
121
173
84

query II rowsort
SELECT 7, - col2 AS col2 FROM tab1
----
7
-59
7
-68
7
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5622
SELECT DISTINCT - ( + col1 ) DIV CAST( - + 82 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT - ( + col1 ) / CAST ( - + 82 AS INTEGER ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 12 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + MIN( ALL + 94 ) AS col2 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-5624
SELECT + MIN ( ALL + 94 ) AS col2 FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT - ( - + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5625
SELECT - ( - + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT - 85 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5627
SELECT DISTINCT 87 DIV - col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT 87 / - col0 FROM tab1
----
-1
0

query I rowsort
SELECT - 28 FROM tab2 AS cor0 WHERE NOT + col2 > col1 - + - col0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5629
SELECT - MAX( - col0 ), - MAX( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
15
-81

skipif mysql # not compatible
query II rowsort label-5629
SELECT - MAX ( - col0 ), - MAX ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
15
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT DISTINCT + SUM( + - 81 ) AS col1 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT + SUM ( + - 81 ) AS col1 FROM tab0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5631
SELECT DISTINCT col2 AS col2, + ( CAST( - col2 AS SIGNED ) ) FROM tab1
----
59
-59
68
-68
96
-96

skipif mysql # not compatible
query II rowsort label-5631
SELECT DISTINCT col2 AS col2, + ( CAST ( - col2 AS INTEGER ) ) FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT 68 DIV 81 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5632
SELECT 68 / 81 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 89 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 42 * - + col2 / + col0 - - col0 BETWEEN col1 AND col2 * + ( 98 )
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - col1
----

query I rowsort
SELECT ALL - col1 + 34 FROM tab0 AS cor0
----
-47
13
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT + + 60 + COUNT( + + 90 ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5637
SELECT + + 60 + COUNT ( + + 90 ) FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT ALL + + CAST( NULL AS SIGNED ) * - 4 * + col0 + - - 58 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 4 * + col0 + - - 58 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT + CAST( NULL AS SIGNED ) + + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT + CAST ( NULL AS INTEGER ) + + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5640
SELECT + COUNT( * ) + + + COUNT( + CAST( col0 AS SIGNED ) ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5640
SELECT + COUNT ( * ) + + + COUNT ( + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1
----
6

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT CAST( - 75 AS SIGNED ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT CAST ( - 75 AS INTEGER ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - - col2 + - 29 FROM tab1 AS cor0
----
30
39
67

query I rowsort
SELECT col1 * + col0 + - + col0 + - 15 AS col2 FROM tab1 AS cor0
----
325
4171
648

query I rowsort
SELECT + - ( - - col0 ) AS col2 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - - ( - SUM( DISTINCT + + col0 ) ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5646
SELECT - - ( - SUM ( DISTINCT + + col0 ) ) AS col1 FROM tab2 cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - SUM( ALL - col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-5647
SELECT - SUM ( ALL - col0 ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ALL MIN( DISTINCT - 6 ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL MIN ( DISTINCT - 6 ) AS col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL + - col1 - + - 75 FROM tab2 AS cor0
----
-2
24
8

query I rowsort
SELECT DISTINCT + + ( + + 83 ) + 99 AS col0 FROM tab0 AS cor0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT - col0 - - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT - col0 - - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 - + - 72 FROM tab0
----
159
169
87

query II rowsort
SELECT ALL - col1 * - col1 AS col0, - col2 FROM tab0
----
1
-99
441
-10
6561
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT DISTINCT 10 DIV + col0 * - - col0 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5655
SELECT DISTINCT 10 / + col0 * - - col0 col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL + + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + 40 AS col1 FROM tab1
----
40
40
40

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND - col2 + + 27 * col1 - + + 83
----

query I rowsort
SELECT DISTINCT - - 36 * - col1 FROM tab0 AS cor0
----
-2916
-36
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT + MIN( - col0 ) * - 63 AS col1 FROM tab2 AS cor0
----
4725

skipif mysql # not compatible
query I rowsort label-5660
SELECT + MIN ( - col0 ) * - 63 AS col1 FROM tab2 AS cor0
----
4725

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT + + 2 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5661
SELECT + + 2 / - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT - + col0 DIV + + 96 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5662
SELECT - + col0 / + + 96 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT 16 + + col0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5665
SELECT - 49 * + - col1 * + col1 + + col0 DIV CAST( - 94 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
127449
219961
290521

skipif mysql # not compatible
query I rowsort label-5665
SELECT - 49 * + - col1 * + col1 + + col0 / CAST ( - 94 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
127449
219961
290521

query I rowsort
SELECT ( - - ( col2 ) ) FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT BETWEEN + + 16 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT ALL + ( col2 ) DIV + 70 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL + ( col2 ) / + 70 AS col0 FROM tab0
----
0
0
1

query II rowsort
SELECT + 31 AS col1, col1 AS col1 FROM tab1 AS cor0
----
31
14
31
47
31
5

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * + 7 AS col0 FROM tab1 AS cor0
----
329
35
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5672
SELECT ALL - CAST( + CAST( - col1 AS DECIMAL ) AS SIGNED ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL - CAST ( + CAST ( - col1 AS REAL ) AS INTEGER ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + col0 * - 97 * - 86 AS col2 FROM tab2 AS cor0
----
383732
533888
625650

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL - MAX( col2 ) FROM tab0 cor0 WHERE + 15 BETWEEN NULL AND + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL - MAX ( col2 ) FROM tab0 cor0 WHERE + 15 BETWEEN NULL AND + - 34
----
NULL

query I rowsort
SELECT ALL + 88 * + 50 FROM tab2 AS cor0
----
4400
4400
4400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5677
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab0 WHERE NOT col2 * - 84 < ( - CAST( - ( + 59 ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab0 WHERE NOT col2 * - 84 < ( - CAST ( - ( + 59 ) AS INTEGER ) )
----
0

query I rowsort
SELECT col2 + - col2 * - - 33 FROM tab0
----
-1504
-3168
-320

query I rowsort
SELECT col2 * + col2 + - 86 FROM tab1
----
3395
4538
9130

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL + COUNT( ALL - 70 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5680
SELECT ALL + COUNT ( ALL - 70 ) col1 FROM tab2
----
3

query I rowsort
SELECT ALL + col0 * + 17 AS col1 FROM tab2
----
1088
1275
782

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + ( MIN( ALL 10 ) ) + - 64 col0 FROM tab0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5682
SELECT + ( MIN ( ALL 10 ) ) + - 64 col0 FROM tab0
----
-54

query I rowsort
SELECT DISTINCT + 16 FROM tab1 AS cor0 WHERE NULL IS NULL
----
16

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0 - - col0 + + col1 * col2
----

query I rowsort
SELECT ALL - 98 * + col2 + 48 AS col2 FROM tab0 AS cor0
----
-4558
-932
-9654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col0 FROM tab1
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT COUNT( ALL + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - ( col0 ) + + col1 IS NULL
----

query I