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 III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 88 / + col0 + + 50 <> + col1 + - col1 + + col2 + + col0 * col2 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5692
SELECT ALL COUNT( * ) AS col0, COUNT( DISTINCT col1 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-5692
SELECT ALL COUNT ( * ) AS col0, COUNT ( DISTINCT col1 ) FROM tab0
----
3
3

query I rowsort
SELECT ALL - ( + 86 ) * - 98 FROM tab2
----
8428
8428
8428

query I rowsort
SELECT col1 * + 83 FROM tab0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ( + ( MAX( DISTINCT col0 ) ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5695
SELECT ( + ( MAX ( DISTINCT col0 ) ) ) FROM tab0
----
97

query I rowsort
SELECT - + 85 FROM tab1 WHERE NOT col1 - - col1 IS NULL
----
-85
-85
-85

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col1 + + 52 * col0 col1 FROM tab2 WHERE NOT - col2 + col1 NOT IN ( + + col0, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT DISTINCT - - COUNT( + + col0 ) * + 77 * + - MIN( - - col2 ) FROM tab0 AS cor0
----
-2310

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT - - COUNT ( + + col0 ) * + 77 * + - MIN ( - - col2 ) FROM tab0 AS cor0
----
-2310

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NULL > - + 97
----
0

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NULL > - + 97
----
0

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

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

query I rowsort
SELECT DISTINCT + ( + col1 ) + + 66 FROM tab2 cor0
----
117
133
143

query I rowsort
SELECT 62 + + col0 FROM tab2 AS cor0
----
108
126
137

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

query I rowsort
SELECT ALL - col1 * + col0 + + 3 AS col1 FROM tab1 AS cor0
----
-422
-4274
-711

query I rowsort
SELECT DISTINCT 88 * + 64 * + + col0 AS col0 FROM tab0 AS cor0
----
489984
546304
84480

query I rowsort
SELECT DISTINCT - + 37 + - - col0 * col1 AS col0 FROM tab0 AS cor0
----
1178
1790
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT ALL 12 DIV 7 col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5712
SELECT ALL 12 / 7 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - 23 AS col2 FROM tab2 WHERE NOT - col2 * - col1 IS NULL
----
-23
-23
-23

query I rowsort
SELECT DISTINCT col0 * + + col0 * 22 FROM tab0
----
166518
206998
4950

query II rowsort
SELECT 46 AS col1, col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
46
23
46
40
46
58

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

query I rowsort
SELECT ALL - + ( + col2 ) FROM tab2 WHERE NOT + + col0 - + col2 + - - col0 + col1 <= + col1
----
-23
-40
-58

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

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

query I rowsort
SELECT ALL + 70 * - ( col1 ) * - col2 + - col1 AS col1 FROM tab0 AS cor0
----
14679
266409
6929

query I rowsort
SELECT + 78 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
3585
759
7721

query II rowsort
SELECT ALL + col2 * - 1 + + col2 AS col0, + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) > + + ( + 12 ) + - - col2
----

query I rowsort
SELECT - 42 + + 15 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + col0 + - - col0 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5727
SELECT ALL + MAX ( - 8 ) AS col0, + COUNT ( * ) col0 FROM tab1 AS cor0
----
-8
3

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

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

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + ( - 35 ) + + 51 + col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT ALL + SUM( DISTINCT - col2 ) AS col2, MIN( - col1 ) AS col1 FROM tab1 AS cor0
----
-223
-47

skipif mysql # not compatible
query II rowsort label-5731
SELECT ALL + SUM ( DISTINCT - col2 ) AS col2, MIN ( - col1 ) AS col1 FROM tab1 AS cor0
----
-223
-47

query II rowsort
SELECT ALL + - ( col0 ) AS col1, - 65 AS col1 FROM tab0 cor0 WHERE NOT - 89 IS NULL
----
-15
-65
-87
-65
-97
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT - COUNT( - 2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5734
SELECT - COUNT ( - 2 ) FROM tab1
----
-3

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

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

query II rowsort
SELECT + 57, - col2 AS col0 FROM tab0 cor0
----
57
-10
57
-47
57
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT ALL + 97 * - + col0 + + - CAST( + 78 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-5025
-8323
-8905

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + 97 * - + col0 + + - CAST ( + 78 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-5025
-8323
-8905

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5738
SELECT + COUNT( ALL + - CAST( + ( - + col1 ) AS DECIMAL ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5738
SELECT + COUNT ( ALL + - CAST ( + ( - + col1 ) AS REAL ) ) AS col1 FROM tab0 cor0
----
3

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

query I rowsort
SELECT ALL - - col1 * + col0 * + col2 FROM tab0 cor0
----
18270
57105
9603

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( - 62, - 83 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT + 46 col0 FROM tab2 AS cor0 WHERE - CAST( - col1 AS SIGNED ) NOT BETWEEN NULL AND + + col0
----
46
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5743
SELECT + 46 col0 FROM tab2 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) NOT BETWEEN NULL AND + + col0
----
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT + + 57 DIV + col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5744
SELECT + + 57 / + col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT MIN( col2 ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
23
-3

skipif mysql # not compatible
query II rowsort label-5745
SELECT MIN ( col2 ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
23
-3

query I rowsort
SELECT DISTINCT col1 + 38 AS col2 FROM tab2 AS cor0
----
105
115
89

query I rowsort
SELECT col1 + + 59 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 82 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5748
SELECT DISTINCT - - ( col2 ) * + col2 * - ( + ( - CAST( NULL AS SIGNED ) ) ) + + col0 AS col1, col0 col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5748
SELECT DISTINCT - - ( col2 ) * + col2 * - ( + ( - CAST ( NULL AS INTEGER ) ) ) + + col0 AS col1, col0 col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - - 27 * - col1 + + 96 FROM tab1 AS cor0
----
-1173
-282
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT + SUM( col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + SUM ( col1 ) AS col1 FROM tab2
----
195

query I rowsort
SELECT - col0 * - + col1 + + col1 - + + col1 AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - 7 * + + col2 + col2 + ( - - col1 ) * - - col1 FROM tab2
----
2463
4141
5689

query I rowsort
SELECT - 32 AS col2 FROM tab1 WHERE - - col1 + + - 76 IS NOT NULL
----
-32
-32
-32

query III rowsort
SELECT * FROM tab0 WHERE 56 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col1 * - col2 AS col2, - 53 AS col0, - + col0 col2 FROM tab0
----
9 values hashing to 8792d4e2a93556f63b3a3d452e9ce53c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5756
SELECT + 43 DIV - MIN( - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5756
SELECT + 43 / - MIN ( - col1 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 93 + + col2 col2, col2 FROM tab1 AS cor0
----
-25
68
-34
59
3
96

query I rowsort
SELECT - ( - 26 ) - + col0 + col0 + col0 FROM tab0 AS cor0
----
113
123
41

query I rowsort
SELECT ALL col2 + - + col1 + + col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + col0 - + 54 AS col2 FROM tab0
----
-39
33
43

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 11 * col0 NOT BETWEEN + + col1 * col1 * - 17 * - - col0 + + col2 AND + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + - col0 AS col1 FROM tab2 cor0 WHERE NOT NULL >= - 7
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 77 * - + col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT + - col0 * - col1 + - + CAST( - + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1296
1848
98

skipif mysql # not compatible
query I rowsort label-5767
SELECT + - col0 * - col1 + - + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT + + col0 * - 79 FROM tab0 AS cor0
----
-1185
-6873
-7663

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + MAX( - 42 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT + MAX ( - 42 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ( + + col2 ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT SUM( DISTINCT col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5772
SELECT SUM ( DISTINCT col0 ) AS col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL + - MIN( DISTINCT - - col0 ) col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5773
SELECT ALL + - MIN ( DISTINCT - - col0 ) col2 FROM tab2 cor0
----
-46

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 * + col1 + - ( + 55 ) + col2 col1 FROM tab0 AS cor0 WHERE NOT - 11 * col1 IS NULL
----
3232
795
84

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

query I rowsort
SELECT ALL + 27 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT + MIN( - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5779
SELECT + MIN ( - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5780
SELECT + COUNT( * ), 76 AS col0 FROM tab1 AS cor0
----
3
76

skipif mysql # not compatible
query II rowsort label-5780
SELECT + COUNT ( * ), 76 AS col0 FROM tab1 AS cor0
----
3
76

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

skipif mysql # not compatible
query I rowsort label-5781
SELECT + - COUNT ( ALL - col0 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + SUM( ALL + + 41 ) FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-5782
SELECT + SUM ( ALL + + 41 ) FROM tab1 AS cor0
----
123

query I rowsort
SELECT DISTINCT + 19 * + 13 + - - 21 FROM tab2
----
268

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5784
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 * + + CAST( NULL AS DECIMAL ) + - 84 * + 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5784
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 * + + CAST ( NULL AS REAL ) + - 84 * + 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 * col1 + - col1 + - col2 - col1 - - - col0 + - col0 + + col0 FROM tab1 AS cor0
----
-179
-2462
-371

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT ALL - 63 DIV - col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL - 63 / - col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - ( + 64 ) FROM tab1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5788
SELECT DISTINCT - 21 DIV + MAX( ALL - col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT - 21 / + MAX ( ALL - col2 ) FROM tab1 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5790
SELECT ALL 64 DIV - col0, - CAST( + 5 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1
-5
0
-5
0
-5

skipif mysql # not compatible
query II rowsort label-5790
SELECT ALL 64 / - col0, - CAST ( + 5 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1
-5
0
-5
0
-5

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5792
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) * ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5792
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) * ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5793
SELECT - - CAST( NULL AS SIGNED ) * 57 * 89 * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT - - CAST ( NULL AS INTEGER ) * 57 * 89 * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT 25 AS col0, col0 AS col2 FROM tab0
----
25
15
25
87
25
97

query I rowsort
SELECT + 71 AS col2 FROM tab1 WHERE NOT - col2 >= ( - ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL SUM( - + 44 ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL SUM ( - + 44 ) FROM tab1
----
-132

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5799
SELECT ALL COUNT( * ) DIV - 5 - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL COUNT ( * ) / - 5 - + COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 58 + + col2 + col2 FROM tab1 AS cor0
----
176
194
250

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT DISTINCT MIN( ALL - + col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT MIN ( ALL - + col2 ) FROM tab2 cor0
----
-58

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

query I rowsort
SELECT 32 + + - 11 + - + 19 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT + col0 FROM tab1 WHERE + + 98 * + CAST( NULL AS SIGNED ) / - col1 < + 60
----

skipif mysql # not compatible
query I rowsort label-5804
SELECT + col0 FROM tab1 WHERE + + 98 * + CAST ( NULL AS INTEGER ) / - col1 < + 60
----

query III rowsort
SELECT * FROM tab0 WHERE ( - + ( + col1 ) * - 65 ) = ( NULL )
----

query I rowsort
SELECT + + 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

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

skipif mysql # not compatible
query I rowsort label-5807
SELECT ( - + MAX ( - - CAST ( + col0 AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN 25 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col0 col0 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT + col1 * + col2 * col1 - + ( - - CAST( col2 AS SIGNED ) ) + - col1 + - 49 + + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
1367
150095
18671

skipif mysql # not compatible
query I rowsort label-5810
SELECT + col1 * + col2 * col1 - + ( - - CAST ( col2 AS INTEGER ) ) + - col1 + - 49 + + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
1367
150095
18671

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

query I rowsort
SELECT ALL - 29 * + 7 + - + 38 + + 74 + - - col0 FROM tab2 AS cor0 WHERE NOT - 93 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 98 * + 96 + + col2 FROM tab1 AS cor0
----
9467
9476
9504

query I rowsort
SELECT ALL + col0 + - 52 FROM tab1 AS cor0
----
-1
33
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 91 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT DISTINCT 31 + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT 31 + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + + col2 + 27 + + - col0 col0 FROM tab0
----
-18
61
91

query III rowsort
SELECT * FROM tab1 WHERE col2 < + col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT ALL + CAST( NULL AS SIGNED ) * + - col1 + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT - COUNT( * ) + - - 82 - 47 * 88 FROM tab1
----
-4057

skipif mysql # not compatible
query I rowsort label-5820
SELECT - COUNT ( * ) + - - 82 - 47 * 88 FROM tab1
----
-4057

query I rowsort
SELECT 72 + + 12 AS col2 FROM tab2
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT ALL CAST( + col1 AS SIGNED ) - col2 + - col1 * + 83 * - 80 FROM tab0
----
139451
537874
6542

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL CAST ( + col1 AS INTEGER ) - col2 + - col1 * + 83 * - 80 FROM tab0
----
139451
537874
6542

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

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

query I rowsort
SELECT DISTINCT col1 + + col1 * + ( col0 ) FROM tab1
----
430
4324
728

query I rowsort
SELECT DISTINCT 16 * - + col0 FROM tab0
----
-1392
-1552
-240

query I rowsort
SELECT + 95 * - - col1 FROM tab0
----
1995
7695
95

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5828
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5828
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5829
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 46 + - - col1 NOT IN ( 68, col1 * - CAST( + ( col0 ) AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-5829
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 46 + - - col1 NOT IN ( 68, col1 * - CAST ( + ( col0 ) AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5830
SELECT - 47 DIV + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5830
SELECT - 47 / + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT ( + - COUNT( * ) ) * 47 FROM tab0 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-5831
SELECT ( + - COUNT ( * ) ) * 47 FROM tab0 cor0
----
-141

query I rowsort
SELECT 35 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT col2 * + 60 AS col2 FROM tab0
----
2820
5940
600

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

query I rowsort
SELECT - 1 AS col1 FROM tab2 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * - + col1 * - - col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT - COUNT( + 93 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT - COUNT ( + 93 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

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

skipif mysql # not compatible
query I rowsort label-5838
SELECT + COUNT ( ALL - 48 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 37 FROM tab2 cor0
----
-37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 26 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5841
SELECT 69 * - + COUNT ( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT + + COUNT( - 51 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT + + COUNT ( - 51 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - ( - col2 ) * col1 + + col0 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT DISTINCT - 12 * - ( - 84 ) + + col2 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col2
----

query I rowsort
SELECT - col0 * 88 * - + 11 AS col1 FROM tab2
----
44528
61952
72600

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND - - 33 * + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 21 + 94, + 96 * + 84 col2 FROM tab1 AS cor0
----
115
8064
115
8064
115
8064

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5850
SELECT CAST( NULL AS SIGNED ) + - AVG ( DISTINCT - 76 ) AS col0, + 67 FROM tab0 AS cor0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-5850
SELECT CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT - 76 ) AS col0, + 67 FROM tab0 AS cor0
----
NULL
67

query I rowsort
SELECT + col2 + - - col0 AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL - 23 + + 60 AS col1 FROM tab2
----
37
37
37

onlyif mysql # DIV for integer division: 
query II rowsort label-5853
SELECT DISTINCT + 90 DIV col1 DIV - 21 AS col1, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-5853
SELECT DISTINCT + 90 / col1 / - 21 AS col1, col0 FROM tab1
----
0
51
0
85
0
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - + col0 col2 FROM tab1 WHERE NULL IS NULL
----
-37
-44
-80

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5857
SELECT + col0 DIV + col2 + - col2 * + 37 FROM tab2 AS cor0
----
-1479
-2145
-849

skipif mysql # not compatible
query I rowsort label-5857
SELECT + col0 / + col2 + - col2 * + 37 FROM tab2 AS cor0
----
-1479
-2145
-849

query I rowsort
SELECT ALL 64 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
64
64
64

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, + col0 * col1 col0 FROM tab1 AS cor0
----
14
714
47
4277
5
425

query II rowsort
SELECT col1, ( + ( - 9 ) ) * col0 - + - col1 + col2 FROM tab1 AS cor0
----
14
-349
47
-704
5
-701

query I rowsort
SELECT ALL - + 79 + + - 39 AS col0 FROM tab2 AS cor0
----
-118
-118
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5863
SELECT ALL + COUNT( ALL - CAST( + col0 AS SIGNED ) ) + - ( - ( 44 ) ) + - - 9 * + + COUNT( * ) + ( - 39 ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL + COUNT ( ALL - CAST ( + col0 AS INTEGER ) ) + - ( - ( 44 ) ) + - - 9 * + + COUNT ( * ) + ( - 39 ) FROM tab1 AS cor0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5864
SELECT - 42 AS col2, + 91 - - MIN( DISTINCT + 31 ) * AVG ( + col2 ) FROM tab0 WHERE NULL IN ( + - col1, col1, col2 + - CAST( NULL AS SIGNED ) )
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-5864
SELECT - 42 AS col2, + 91 - - MIN ( DISTINCT + 31 ) * AVG ( + col2 ) FROM tab0 WHERE NULL IN ( + - col1, col1, col2 + - CAST ( NULL AS INTEGER ) )
----
-42
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5865
SELECT ALL col0 - - 63 DIV col1 + + + col1 AS col2, 22 DIV - + col0 FROM tab1
----
102
0
139
0
69
0

skipif mysql # not compatible
query II rowsort label-5865
SELECT ALL col0 - - 63 / col1 + + + col1 AS col2, 22 / - + col0 FROM tab1
----
102
0
139
0
69
0

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

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL + MIN ( + col1 ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT - col2, + col2 AS col0 FROM tab0 AS cor0 WHERE col1 / + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT - MIN( - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5868
SELECT - MIN ( - col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT col1 * 42 AS col2 FROM tab2 AS cor0
----
2142
2814
3234

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT DISTINCT - col2 DIV - col0 * + 41 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT - col2 / - col0 * + 41 AS col2 FROM tab2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT - + CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-51
-85
-91

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

query I rowsort
SELECT ALL + 63 * 17 AS col2 FROM tab1 AS cor0
----
1071
1071
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT + MAX( ALL - 23 ) AS col0 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5876
SELECT + MAX ( ALL - 23 ) AS col0 FROM tab1 AS cor0
----
-23

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT ALL + 54 DIV - 84 * 45 + - col1 + 45 DIV - - 63 * + 62 AS col2 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + 54 / - 84 * 45 + - col1 + 45 / - - 63 * + 62 AS col2 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT 77 FROM tab2 WHERE NOT - - 80 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col0 * + + col1 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT 40 + - - col0 FROM tab1
----
125
131
91

query II rowsort
SELECT DISTINCT - col2 * 91 AS col2, - col1 FROM tab1
----
-5369
-5
-6188
-47
-8736
-14

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

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

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 FROM tab2
----
-46
-23
-64
-40
-75
-58

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

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT - MAX ( DISTINCT - col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE - - col0 / col0 - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE - - col0 / col0 - col1 IS NULL
----
0

query I rowsort
SELECT + 84 + - col2 + - 28 * + + ( - col2 ) + - + 44 AS col1 FROM tab0
----
1309
2713
310

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT ALL 44 + + col0 + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
130
136
96

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL 44 + + col0 + col2 / + col2 AS col2 FROM tab1 AS cor0
----
130
136
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= col0 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5892
SELECT ALL CAST( - + 71 AS SIGNED ) * - - COUNT( * ) - 69 FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL CAST ( - + 71 AS INTEGER ) * - - COUNT ( * ) - 69 FROM tab2
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT COUNT( ALL + + col2 ) - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5893
SELECT COUNT ( ALL + + col2 ) - - COUNT ( * ) FROM tab2
----
6

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

skipif mysql # not compatible
query I rowsort label-5894
SELECT + SUM ( - col2 ) - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 80 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 * + 44 FROM tab2
----
2244
2948
3388

query I rowsort
SELECT DISTINCT col2 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + 2 ) = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5898
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + col1 * - + 47 AS col1 FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( NOT col0 * + 66 * col1 / col1 + + col0 IS NULL )
----
10
47
99

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5902
SELECT DISTINCT col0 - col0 + + CAST ( NULL AS REAL ) * + + col1 / col2 col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL - COUNT( - - 2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL - COUNT ( - - 2 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5904
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 14 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 14 AND NULL
----
NULL

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

skipif mysql # not compatible
query II rowsort label-5905
SELECT - - COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - SUM( DISTINCT - ( + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5906
SELECT - SUM ( DISTINCT - ( + col0 ) ) FROM tab0
----
199

query I rowsort
SELECT DISTINCT - 50 AS col1 FROM tab2 WHERE NOT NULL >= - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) <= ( col2 + - col1 / col1 )
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col2 FROM tab2 WHERE ( col0 ) NOT BETWEEN ( + col2 ) AND + col2
----
23
40
58

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 98 col0 FROM tab2
----
40
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT DISTINCT MIN( 45 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT MIN ( 45 ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT MIN( ALL - ( - col1 ) ) * - 36 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-5913
SELECT MIN ( ALL - ( - col1 ) ) * - 36 FROM tab1
----
-180

query I rowsort
SELECT - 33 * col0 AS col2 FROM tab0
----
-2871
-3201
-495

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

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

query I rowsort
SELECT ALL col0 / 45 FROM tab1 WHERE ( + col2 - + 29 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT 82 + 56 DIV - 22 AS col1 FROM tab0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-5917
SELECT 82 + 56 / - 22 AS col1 FROM tab0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT SUM( DISTINCT + 63 ) AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5918
SELECT SUM ( DISTINCT + 63 ) AS col0 FROM tab1
----
63

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

query I rowsort
SELECT col0 * col2 AS col0 FROM tab0 WHERE - col0 IS NOT NULL
----
705
870
9603

query I rowsort
SELECT - 82 + 84 FROM tab2
----
2
2
2

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

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT + CAST( - 94 AS SIGNED ) col0 FROM tab0
----
-94
-94
-94

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

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

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

query I rowsort
SELECT 50 + - col0 FROM tab1 AS cor0
----
-1
-35
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * col2 col0 FROM tab2 AS cor0
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 66 * ( col0 / col0 ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5928
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 66 * ( col0 / col0 ) ) AND NULL
----
0

query I rowsort
SELECT - 15 + 23 FROM tab0 AS cor0
----
8
8
8

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 * - 43 - col2 col1 FROM tab0
----
-139
-176
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT 86 * + COUNT( * ) FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-5932
SELECT 86 * + COUNT ( * ) FROM tab2
----
258

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 25 * col0 IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT DISTINCT + 73 + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT IN ( 37 )
----
73

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT + 73 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT IN ( 37 )
----
73

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > ( 5 )
----

query I rowsort
SELECT DISTINCT - col2 * col2 - + 47 FROM tab1 AS cor0
----
-3528
-4671
-9263

query I rowsort
SELECT DISTINCT ( col0 ) + - col2 FROM tab2 cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT SUM( DISTINCT col0 ) - COUNT( * ) FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-5939
SELECT SUM ( DISTINCT col0 ) - COUNT ( * ) FROM tab0 AS cor0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT - SUM( - 24 ) AS col2 FROM tab2 AS cor0 WHERE ( col2 + col1 * + col1 ) BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT - SUM ( - 24 ) AS col2 FROM tab2 AS cor0 WHERE ( col2 + col1 * + col1 ) BETWEEN NULL AND col2
----
NULL

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

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

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

query I rowsort
SELECT - + 13 - col2 FROM tab2 AS cor0
----
-36
-53
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT ALL - + 80 * COUNT( * ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL - + 80 * COUNT ( * ) FROM tab1 AS cor0
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT ALL col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL - MAX( - col0 ) col1 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5947
SELECT ALL - MAX ( - col0 ) col1 FROM tab2
----
46

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE - col1 * col0 < 19 * - col0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT - CAST( + - 67 AS SIGNED ) FROM tab0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-5949
SELECT - CAST ( + - 67 AS INTEGER ) FROM tab0
----
67
67
67

query I rowsort
SELECT DISTINCT 27 + + 20 FROM tab0 WHERE NULL >= col1
----

query I rowsort
SELECT + 9 AS col2 FROM tab1 WHERE NOT 31 * + 90 < ( - 54 )
----
9
9
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT MIN( - - col0 ) * - 34 FROM tab0 AS cor0
----
-510

skipif mysql # not compatible
query I rowsort label-5953
SELECT MIN ( - - col0 ) * - 34 FROM tab0 AS cor0
----
-510

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL - COUNT( * ) col2 FROM tab0
----
-3

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

query II rowsort
SELECT ALL col1 AS col2, 73 FROM tab0 AS cor0
----
1
73
21
73
81
73

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * + col1 IN ( 20 / + col0 )
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5958
SELECT COUNT( * ) * - MIN( - col0 ) + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT COUNT ( * ) * - MIN ( - col0 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( - col1 )
----
NULL

query I rowsort
SELECT ALL - 19 * + col0 FROM tab1 cor0
----
-1615
-1729
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - - COUNT( ALL + 13 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5960
SELECT - - COUNT ( ALL + 13 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT ALL + 4 + - + CAST( - + col1 AS SIGNED ) FROM tab1 cor0
----
18
51
9

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL + 4 + - + CAST ( - + col1 AS INTEGER ) FROM tab1 cor0
----
18
51
9

query I rowsort
SELECT DISTINCT - ( - col1 ) * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col0 * + 84 ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5963
SELECT ALL CAST( - col2 AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL <= ( col0 )
----

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL CAST ( - col2 AS REAL ) FROM tab0 AS cor0 WHERE NULL <= ( col0 )
----

query I rowsort
SELECT - 25 + - + 70 FROM tab1 AS cor0
----
-95
-95
-95

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

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

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL - MAX ( + + col1 ) + + 51 FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT - col1 * + ( + CAST( NULL AS SIGNED ) ) + + 91 AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col0 * - col2 * 91 - - 35 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT ALL - 28 AS col0 FROM tab0 WHERE NOT - + 88 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL - 28 AS col0 FROM tab0 WHERE NOT - + 88 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-28
-28
-28

query I rowsort
SELECT + col1 + - + 96 FROM tab1
----
-49
-82
-91

query I rowsort
SELECT + ( + 67 ) + + col1 + + 83 * - 33 AS col1 FROM tab1
----
-2625
-2658
-2667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 * col0 col1 FROM tab2
----
1794
2496
2925

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5973
SELECT col1 * ( + 50 ) * + 78 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5975
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( - 43 + + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( - 43 + + 26 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT - MAX ( ALL - col0 ) FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT + col1 * col1 * 74 * + 97 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5978
SELECT MIN( DISTINCT - - col2 ) DIV SUM( ALL 67 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5978
SELECT MIN ( DISTINCT - - col2 ) / SUM ( ALL 67 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 * - + 22 AS col1 FROM tab1 AS cor0
----
-1122
-1870
-2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5980
SELECT + CAST( - + ( col1 ) AS SIGNED ) - - - col0 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-5980
SELECT + CAST ( - + ( col1 ) AS INTEGER ) - - - col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT ALL col0 - + - 35 AS col2 FROM tab1
----
120
126
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT - col0 + - col2 + col2 + - CAST( col2 AS SIGNED ) + + col2 * col2 AS col1 FROM tab2
----
1496
3231
460

skipif mysql # not compatible
query I rowsort label-5982
SELECT - col0 + - col2 + col2 + - CAST ( col2 AS INTEGER ) + + col2 * col2 AS col1 FROM tab2
----
1496
3231
460

query I rowsort
SELECT + 91 + - + 32 AS col0 FROM tab0
----
59
59
59

query I rowsort
SELECT - - 4 + 28 FROM tab2 AS cor0
----
32
32
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 32 * + col0 + - 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT ALL MIN( + col0 ) + 62 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 + - + col1 + + col1 + + + col2 * + 31 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL MIN ( + col0 ) + 62 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 + - + col1 + + col1 + + + col2 * + 31 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5988
SELECT DISTINCT - col2 DIV col0 + - - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT - col2 / col0 + - - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-15
-47
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT col1 + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5990
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT col1 + + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL SUM( - + 34 ) AS col2 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL SUM ( - + 34 ) AS col2 FROM tab0 AS cor0
----
-102

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 9 * - col1 col0 FROM tab1 AS cor0
----
-126
-423
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL - - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT 37 FROM tab1 WHERE NOT ( NOT - col2 / 88 BETWEEN - + col2 AND + col1 )
----
37
37
37

query I rowsort
SELECT + 82 FROM tab2 WHERE NOT - - col0 * - - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT + col1 DIV - 52 col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT ALL ( + ( col0 ) ) * + col0 AS col1 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5999
SELECT col1, 11 * + + col2 + + + CAST( NULL AS SIGNED ) col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5999
SELECT col1, 11 * + + col2 + + + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT 62 AS col2, col1 AS col2, + col1 * - col2 * - 23 * - col0 FROM tab2
----
9 values hashing to 65a4c453ab275d84e223ca1bcdfca3b9

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

skipif mysql # not compatible
query II rowsort label-6001
SELECT 37, COUNT ( * ) * - COUNT ( DISTINCT + 83 ) AS col2 FROM tab1
----
37
-3

query I rowsort
SELECT + col2 + - col1 AS col2 FROM tab1 WHERE NOT ( ( + - 68 * 21 <= NULL ) )
----

query I rowsort
SELECT ALL 0 AS col0 FROM tab2 cor0
----
0
0
0

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + col0 + col0 ) >= col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6009
SELECT - CAST( NULL AS SIGNED ) + ( - 72 ) * COUNT( * ) FROM tab0 WHERE NOT 90 + + CAST( + + col0 AS DECIMAL ) > ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT - CAST ( NULL AS INTEGER ) + ( - 72 ) * COUNT ( * ) FROM tab0 WHERE NOT 90 + + CAST ( + + col0 AS REAL ) > ( + col0 )
----
NULL

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab1 AS cor0 WHERE 12 IS NULL
----

query I rowsort
SELECT + + col0 + - + 8 AS col2 FROM tab0 AS cor0
----
7
79
89

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

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

query I rowsort
SELECT DISTINCT - 18 + - - col0 + + 11 * + 4 AS col2 FROM tab1 AS cor0
----
111
117
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, 95 col0 FROM tab0
----
15
95
87
95
97
95

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

query I rowsort
SELECT ALL 21 * - + col1 FROM tab1
----
-105
-294
-987

query II rowsort
SELECT DISTINCT col0, 99 * + + col0 - col0 FROM tab1
----
51
4998
85
8330
91
8918

query I rowsort
SELECT DISTINCT + - 87 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6019
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( + col1 ) - + CAST( + 81 AS DECIMAL ) * + col1 ) NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-6019
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( + col1 ) - + CAST ( + 81 AS REAL ) * + col1 ) NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT COUNT( * ) FROM tab0 WHERE ( col1 * + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6020
SELECT COUNT ( * ) FROM tab0 WHERE ( col1 * + col1 ) IS NULL
----
0

query I rowsort
SELECT - 78 + - col0 AS col0 FROM tab2 AS cor0
----
-124
-142
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT ALL + SUM( DISTINCT + col0 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL + SUM ( DISTINCT + col0 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-681

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT COUNT( * ) + ( 78 ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6024
SELECT COUNT ( * ) + ( 78 ) FROM tab2 AS cor0
----
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + 32
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT DISTINCT COUNT( * ) + + CAST( + 49 AS SIGNED ) + - 72 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT COUNT ( * ) + + CAST ( + 49 AS INTEGER ) + - 72 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT DISTINCT col1 * - + col1 - - - col0 FROM tab2
----
-2647
-4564
-5993

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6028
SELECT * FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 ) WHERE CAST( 69 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6028
SELECT * FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 ) WHERE CAST ( 69 AS INTEGER ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 * - - col0 col0 FROM tab0
----
18270
57105
9603

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

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

query I rowsort
SELECT - 6 * - ( + col2 ) + - - 19 FROM tab2 AS cor0
----
157
259
367

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

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

query II rowsort
SELECT - - col2 * 11 AS col0, + ( + col1 ) FROM tab0 cor0
----
1089
1
110
21
517
81

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6037
SELECT 75 DIV + col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6037
SELECT 75 / + col0 AS col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL 7 * - COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL 7 * - COUNT ( * ) FROM tab2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6039
SELECT ALL + COUNT( * ) DIV 32 AS col2 FROM tab1
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 97 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT MIN( 3 ) * - 32 + + 44 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-6041
SELECT MIN ( 3 ) * - 32 + + 44 FROM tab1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6042
SELECT ALL - SUM( ALL - col2 ) DIV - COUNT( * ) AS col2 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL - SUM ( ALL - col2 ) / - COUNT ( * ) AS col2 FROM tab2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT - SUM( - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT - SUM ( - col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT + 72 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
72
72
72

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 34 + - ( col0 ) <> col1 * col2 / + - 43 * col2 / + - col1 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT 94 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL + col1 + + - col2 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 98 + col0 + - col0 * - - 82 FROM tab1
----
-4033
-6787
-7273

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT COUNT( * ) + - + 48 FROM tab1, tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6051
SELECT COUNT ( * ) + - + 48 FROM tab1, tab2 AS cor0
----
-39

query I rowsort
SELECT DISTINCT - 18 + - 83 AS col0 FROM tab0
----
-101

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 54 / + col1 IN ( + ( - col0 ), + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6054
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 12 <> + 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif mysql # not compatible
query I rowsort label-6058
SELECT ( - COUNT ( * ) ) AS col1 FROM tab2
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT + MIN( DISTINCT - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6060
SELECT + MIN ( DISTINCT - col2 ) FROM tab0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - + 82 / - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6062
SELECT DISTINCT - COUNT( * ) AS col0, MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-3
-77

skipif mysql # not compatible
query II rowsort label-6062
SELECT DISTINCT - COUNT ( * ) AS col0, MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-3
-77

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT DISTINCT + SUM( CAST( - col0 AS SIGNED ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT + SUM ( CAST ( - col0 AS INTEGER ) ) FROM tab0
----
-199

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL - MAX( 9 ) * - 89 col0 FROM tab2
----
801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6067
SELECT ALL - MAX ( 9 ) * - 89 col0 FROM tab2
----
801

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT + 84 * - COUNT( + + 45 ) FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-6069
SELECT + 84 * - COUNT ( + + 45 ) FROM tab1
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 55 ) col0 FROM tab0
----
55

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 WHERE NOT - 22 IS NULL OR NOT NULL BETWEEN + - 71 AND NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6073
SELECT - 19 * - + 12 col2, col1 + + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
228
2
228
21
228
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6073
SELECT - 19 * - + 12 col2, col1 + + col2 / col0 AS col2 FROM tab0 AS cor0
----
228
2
228
21
228
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 + col2 col2 FROM tab2 AS cor0
----
0
16
41

query I rowsort
SELECT ALL + 13 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT DISTINCT - col0 + + + col2 DIV - - col1 * - col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - col0 + + + col2 / - - col1 * - col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT 98 DIV + 1 FROM tab2 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-6078
SELECT 98 / + 1 FROM tab2 AS cor0
----
98
98
98

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> + - col2 + + col0 * - - col2 + + 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + - col2 + - - 11 + + col1 FROM tab2 AS cor0
----
112
85
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT - col2 DIV 18 DIV col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT - col2 / 18 / col2 AS col1 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT DISTINCT - + 11 + col2 DIV - col2 + + 0 * - col0 col1 FROM tab1 AS cor0
----
-12

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

query I rowsort
SELECT col0 AS col2 FROM tab0 cor0 WHERE - col0 + + 91 / col0 NOT IN ( col2, ( - col2 ) * + col1, + - col2, + col2, + ( 69 ) )
----
15
87
97

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

query I rowsort
SELECT DISTINCT + 24 + + col1 FROM tab1 AS cor0
----
29
38
71

query I rowsort
SELECT DISTINCT + 9 + + col2 AS col0 FROM tab0 AS cor0
----
108
19
56

onlyif mysql # DIV for integer division: 
query II rowsort label-6089
SELECT 97 col0, 32 * 38 DIV col0 + + + 64 FROM tab0
----
97
145
97
76
97
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6089
SELECT 97 col0, 32 * 38 / col0 + + + 64 FROM tab0
----
97
145
97
76
97
77

query I rowsort
SELECT - col1 - - + col0 + + + 83 AS col1 FROM tab0
----
149
17
179

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT ALL + COUNT( DISTINCT col1 ) - + - 23 AS col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL + COUNT ( DISTINCT col1 ) - + - 23 AS col0 FROM tab0
----
26

query I rowsort
SELECT + 47 + + col2 + - col2 AS col2 FROM tab0
----
47
47
47

query II rowsort
SELECT DISTINCT col1, ( + 66 ) * + - col0 FROM tab1 cor0
----
14
-3366
47
-6006
5
-5610

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT - 10 + - SUM( + + col2 ) FROM tab1 AS cor0
----
-233

skipif mysql # not compatible
query I rowsort label-6094
SELECT - 10 + - SUM ( + + col2 ) FROM tab1 AS cor0
----
-233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 - - + col2 AS col2, - col1 + + col1 * - 22 col1 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT + - 19 * - + SUM( - + 48 ) FROM tab0 AS cor0
----
-2736

skipif mysql # not compatible
query I rowsort label-6096
SELECT + - 19 * - + SUM ( - + 48 ) FROM tab0 AS cor0
----
-2736

query I rowsort
SELECT - - col1 * 31 AS col0 FROM tab1 AS cor0
----
1457
155
434

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 28 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL - ( - 3 ) * - MIN( + col2 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL - ( - 3 ) * - MIN ( + col2 ) FROM tab0 AS cor0
----
-30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 1 < NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6103
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT NULL NOT IN ( - + col1 / ( + 78 ), col2 + CAST( + col0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT NULL NOT IN ( - + col1 / ( + 78 ), col2 + CAST ( + col0 AS INTEGER ) )
----
0

query I rowsort
SELECT col2 + - 18 FROM tab0
----
-8
29
81

query II rowsort
SELECT DISTINCT - 13, + col2 FROM tab2
----
-13
23
-13
40
-13
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) * + COUNT( + col2 ) * + 66 AS col1 FROM tab1
----
1782

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) * + COUNT ( + col2 ) * + 66 AS col1 FROM tab1
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT + MAX( - col0 ) FROM tab2 WHERE NOT + + 67 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT + MAX ( - col0 ) FROM tab2 WHERE NOT + + 67 <= NULL
----
NULL

query I rowsort
SELECT ALL 10 + + col2 AS col0 FROM tab0 AS cor0
----
109
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT - SUM( + - 57 ) + - - ( + COUNT( + 47 ) ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-6109
SELECT - SUM ( + - 57 ) + - - ( + COUNT ( + 47 ) ) FROM tab2 AS cor0
----
174

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

query I rowsort
SELECT ALL col0 + - - col1 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT ALL MAX( ALL - col2 ) AS col0, - MIN( - + ( + 23 ) ) FROM tab1
----
-59
23

skipif mysql # not compatible
query II rowsort label-6112
SELECT ALL MAX ( ALL - col2 ) AS col0, - MIN ( - + ( + 23 ) ) FROM tab1
----
-59
23

query I rowsort
SELECT + - 37 - + - col0 FROM tab1 WHERE NULL <> NULL
----

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

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

query I rowsort
SELECT ALL + col1 * + - 86 FROM tab2
----
-4386
-5762
-6622

query I rowsort
SELECT col2 + 1 AS col0 FROM tab1 AS cor0
----
60
69
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT DISTINCT - 65 * - 0 DIV + col0 * + + 51 * + + 89 + + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT - 65 * - 0 / + col0 * + + 51 * + + 89 + + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

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

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

query I rowsort
SELECT ALL + - col0 + - col1 + + ( - - 73 ) AS col0 FROM tab2 AS cor0
----
-24
-68
-69

query I rowsort
SELECT ALL - + ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6122
SELECT DISTINCT CAST( 19 AS SIGNED ) * - + 41 + + - 43 * - col2, col2 * + 29 AS col1 FROM tab1
----
1758
1711
2145
1972
3349
2784

skipif mysql # not compatible
query II rowsort label-6122
SELECT DISTINCT CAST ( 19 AS INTEGER ) * - + 41 + + - 43 * - col2, col2 * + 29 AS col1 FROM tab1
----
1758
1711
2145
1972
3349
2784

query I rowsort
SELECT ALL - col2 - 30 FROM tab2
----
-53
-70
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL COUNT( * ) - - SUM( DISTINCT - - col1 ) AS col0 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL COUNT ( * ) - - SUM ( DISTINCT - - col1 ) AS col0 FROM tab2
----
198

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

skipif mysql # not compatible
query I rowsort label-6125
SELECT + MAX ( + col1 ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT col1 - + col0 * col0 FROM tab1
----
-2587
-7220
-8234

query I rowsort
SELECT ALL ( + + col1 ) FROM tab1
----
14
47
5

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

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT + COUNT ( + 33 ) FROM tab0
----
3

query I rowsort
SELECT + col2 * ( + col0 ) FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - col0 * + col0 * col0 FROM tab0
----
-3375
-658503
-912673

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + - col2 FROM tab2 cor0
----
1600
3364
529

query I rowsort
SELECT ALL - + ( - col1 ) AS col0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT 24 * - - col1 FROM tab0
----
1944
24
504

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL < + + col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT DISTINCT + - col1 DIV + - col0 AS col0 FROM tab2 cor0
----
0
1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 AS cor0 WHERE NOT - col0 / + col0 <= + col2
----

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

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

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

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

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

query II rowsort
SELECT ALL col2 AS col1, + col2 FROM tab0 cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6146
SELECT - COUNT( ALL - col0 ) AS col2, + COUNT( * ) + + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0
----
-3
4

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 32 * col1 * col1 - - 14 / 45 - + col1 + + + col2 >= - + col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT DISTINCT COUNT( ALL - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT COUNT ( ALL - col0 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + + col2 col2 FROM tab0 WHERE NOT + 49 * - 6 IS NULL
----
100
128
31

query I rowsort
SELECT - 41 * - - 77 FROM tab0
----
-3157
-3157
-3157

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + + ( - 84 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 - - + ( + 94 ) - - ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 90 AS col1 FROM tab2 AS cor0
----
32
50
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 * + col0 + + - col0 col0 FROM tab1 AS cor0
----
-4335
-7225
-7735

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT col1 DIV - col1 + + col1 AS col2 FROM tab2 cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-6155
SELECT col1 / - col1 + + col1 AS col2 FROM tab2 cor0
----
50
66
76

query II rowsort
SELECT - 93 AS col2, + col0 * col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL - 17 * - COUNT( * ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - 17 * - COUNT ( * ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - col2 * 14 AS col0 FROM tab0 AS cor0
----
-1386
-140
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-6160
SELECT - 35 DIV + 87 * - 36 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6160
SELECT - 35 / + 87 * - 36 AS col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT col1 * - col1 * ( + 45 ) * col1 AS col2 FROM tab1 AS cor0
----
-123480
-4672035
-5625

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

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

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

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

query I rowsort
SELECT + + col2 * + + 36 - - - col0 + 72 + + 98 FROM tab2 AS cor0
----
1546
2183
952

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6167
SELECT * FROM tab2 AS cor0 WHERE col0 / + CAST( + + 91 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-6167
SELECT * FROM tab2 AS cor0 WHERE col0 / + CAST ( + + 91 AS INTEGER ) = NULL
----

query I rowsort
SELECT - col0 - + ( - - col1 ) * 12 AS col2 FROM tab2 AS cor0
----
-658
-879
-988

query I rowsort
SELECT - + 0 - - + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6170
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE col1 * CAST( NULL AS SIGNED ) + - col1 + - col1 = - - CAST( - 77 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE col1 * CAST ( NULL AS INTEGER ) + - col1 + - col1 = - - CAST ( - 77 AS INTEGER )
----
0

query I rowsort
SELECT ALL + 15 * col1 FROM tab1
----
210
705
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 + - + 16 + + 30 ) NOT BETWEEN NULL AND col0 + - - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL 6 * + COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL 6 * + COUNT ( * ) FROM tab1
----
18

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

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

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - + col1 / + + 69 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6177
SELECT - COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 + - 5 AS col2 FROM tab0 AS cor0
----
42
5
94

query II rowsort
SELECT - 75 AS col1, col2 AS col2 FROM tab0 cor0
----
-75
10
-75
47
-75
99

query II rowsort
SELECT ALL - 87, 25 + 61 * - col1 AS col2 FROM tab1 cor0
----
-87
-280
-87
-2842
-87
-829

query I rowsort
SELECT DISTINCT - - col2 * + + col1 FROM tab2 AS cor0
----
1173
3080
3886

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

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

query I rowsort
SELECT DISTINCT + col0 + col1 * 95 FROM tab2 AS cor0
----
4891
6440
7379

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

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6185
SELECT ALL col0 DIV col2 DIV 76 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL col0 / col2 / 76 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6186
SELECT 5 + + + COUNT( col0 ) * CAST( ( + SUM( ALL - + col0 ) ) AS SIGNED ) + + - 46 * + COUNT( * ) AS col1 FROM tab1
----
-814

skipif mysql # not compatible
query I rowsort label-6186
SELECT 5 + + + COUNT ( col0 ) * CAST ( ( + SUM ( ALL - + col0 ) ) AS INTEGER ) + + - 46 * + COUNT ( * ) AS col1 FROM tab1
----
-814

query I rowsort
SELECT 23 + + - 11 FROM tab2
----
12
12
12

query I rowsort
SELECT 13 + + - 78 AS col2 FROM tab2
----
-65
-65
-65

query I rowsort
SELECT + col1 + + + col0 FROM tab2
----
141
142
97

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

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL - COUNT ( * ) + 57 * CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col1 ) + + - col1 * + + col0 col0 FROM tab1 AS cor0
----
-430
-4324
-728

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL COUNT( * ) - + + 42 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL COUNT ( * ) - + + 42 FROM tab1 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6195
SELECT DISTINCT + 59 - - col1 + - - col1 DIV col2 - 53 DIV - col1 FROM tab0
----
113
141
84

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT + 59 - - col1 + - - col1 / col2 - 53 / - col1 FROM tab0
----
113
141
84

query I rowsort
SELECT ALL 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT + 92 + - ( + 63 ) AS col2 FROM tab0
----
29
29
29

query II rowsort
SELECT ALL ( - ( col2 ) ) AS col1, col2 AS col0 FROM tab1
----
-59
59
-68
68
-96
96

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

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
121

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

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

query I rowsort
SELECT ALL 30 * + 38 FROM tab2
----
1140
1140
1140

query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab2
----
63

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6205
SELECT + 86 col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
86
NULL
86
NULL
86
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6205
SELECT + 86 col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
86
NULL
86
NULL
86
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6206
SELECT DISTINCT + CAST( NULL AS SIGNED ), + col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6206
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT col0, 1 * + - col2 * - col2 FROM tab0
----
15
2209
87
100
97
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL 13 * - COUNT( * ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL 13 * - COUNT ( * ) FROM tab0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6209
SELECT ALL SUM( ALL + CAST( ( + - col1 ) AS SIGNED ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL SUM ( ALL + CAST ( ( + - col1 ) AS INTEGER ) ) AS col2 FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 * + col1 col0 FROM tab2
----
1581
2077
2387

query II rowsort
SELECT DISTINCT + col0, col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT - + 56 AS col0 FROM tab0 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6213
SELECT DISTINCT + + CAST( - 25 AS SIGNED ) FROM tab2 cor0
----
-25

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

query I rowsort
SELECT + 18 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

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

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT - COUNT ( * ) + + + 70 + COUNT ( * ) FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL - + COUNT( DISTINCT - + 66 ) + + + 38 col2 FROM tab1 cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6216
SELECT ALL - + COUNT ( DISTINCT - + 66 ) + + + 38 col2 FROM tab1 cor0
----
37

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6218
SELECT ALL col0 * + - col2 AS col1, 21 FROM tab1 AS cor0 WHERE col1 * 78 * - col2 NOT BETWEEN + col0 + + ( - + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-6218
SELECT ALL col0 * + - col2 AS col1, 21 FROM tab1 AS cor0 WHERE col1 * 78 * - col2 NOT BETWEEN + col0 + + ( - + CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT ALL + 43 + - 40 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = col0 * col2 AND + 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6221
SELECT + MAX( DISTINCT - col1 ) AS col1, - MAX( DISTINCT - 43 ) AS col0 FROM tab0 AS cor0
----
-1
43

skipif mysql # not compatible
query II rowsort label-6221
SELECT + MAX ( DISTINCT - col1 ) AS col1, - MAX ( DISTINCT - 43 ) AS col0 FROM tab0 AS cor0
----
-1
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT ALL COUNT( * ) * + + 65 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL COUNT ( * ) * + + 65 FROM tab1
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT DISTINCT col0 DIV + - col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT col0 / + - col1 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT COUNT( * ) * 40 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-6225
SELECT COUNT ( * ) * 40 FROM tab2
----
120

query I rowsort
SELECT DISTINCT + ( + - ( + 16 ) ) FROM tab2
----
-16

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT ALL 4 DIV - 95 * - - 83 * - - 68 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL 4 / - 95 * - - 83 * - - 68 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT DISTINCT + COUNT( * ) FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + COUNT ( * ) FROM tab2, tab0 AS cor0
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT ALL - CAST( + col0 AS SIGNED ) col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6231
SELECT ALL - CAST ( + col0 AS INTEGER ) col1 FROM tab1
----
-51
-85
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT - SUM( ALL - col0 ) + + 99 * + 25 FROM tab0 AS cor0
----
2674

skipif mysql # not compatible
query I rowsort label-6234
SELECT - SUM ( ALL - col0 ) + + 99 * + 25 FROM tab0 AS cor0
----
2674

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT + MIN( + - col2 ) + - MIN( col2 ) * + ( + 57 ) col1 FROM tab2 AS cor0
----
-1369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6235
SELECT + MIN ( + - col2 ) + - MIN ( col2 ) * + ( + 57 ) col1 FROM tab2 AS cor0
----
-1369

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - col0 * - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6238
SELECT DISTINCT - - COUNT( * ) AS col1, - MIN( ALL - col1 ) - - 88 DIV + 87 FROM tab1 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-6238
SELECT DISTINCT - - COUNT ( * ) AS col1, - MIN ( ALL - col1 ) - - 88 / + 87 FROM tab1 AS cor0
----
3
48

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

query I rowsort
SELECT 32 * + 77 FROM tab0 AS cor0
----
2464
2464
2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6241
SELECT + 75 DIV MAX( ALL - 5 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6241
SELECT + 75 / MAX ( ALL - 5 ) FROM tab2 AS cor0
----
-15

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

query I rowsort
SELECT + col0 * + 6 AS col1 FROM tab1 AS cor0
----
306
510
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT ALL + - CAST( ( 58 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-58
-58
-58

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

query I rowsort
SELECT DISTINCT ( 53 ) AS col0 FROM tab0
----
53

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 93 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6248
SELECT + 15 + - CAST( COUNT( * ) AS SIGNED ) - AVG ( - + ( - + col1 ) ) FROM tab1 WHERE NOT ( NOT ( NOT col1 IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6248
SELECT + 15 + - CAST ( COUNT ( * ) AS INTEGER ) - AVG ( - + ( - + col1 ) ) FROM tab1 WHERE NOT ( NOT ( NOT col1 IS NOT NULL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6249
SELECT ALL - COUNT( * ) AS col2, 72 * - + COUNT( * ) * + MIN( - CAST( + + col0 AS SIGNED ) ) col1 FROM tab1
----
-3
19656

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6249
SELECT ALL - COUNT ( * ) AS col2, 72 * - + COUNT ( * ) * + MIN ( - CAST ( + + col0 AS INTEGER ) ) col1 FROM tab1
----
-3
19656

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT - SUM( - - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6250
SELECT - SUM ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6251
SELECT DISTINCT 47 * - CAST( - 82 AS SIGNED ), - MAX( DISTINCT + 46 ) AS col2 FROM tab2 AS cor0
----
3854
-46

skipif mysql # not compatible
query II rowsort label-6251
SELECT DISTINCT 47 * - CAST ( - 82 AS INTEGER ), - MAX ( DISTINCT + 46 ) AS col2 FROM tab2 AS cor0
----
3854
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6252
SELECT ALL 23 * + col2 + CAST( ( 54 ) AS SIGNED ) FROM tab2 cor0
----
1388
583
974

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL 23 * + col2 + CAST ( ( 54 ) AS INTEGER ) FROM tab2 cor0
----
1388
583
974

query I rowsort
SELECT ALL - 71 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-56
16
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6254
SELECT + col2 + - ( - col1 ) DIV col0 * - 48 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6254
SELECT + col2 + - ( - col1 ) / col0 * - 48 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT DISTINCT col0 * - col2 + col1 AS col0 FROM tab0
----
-624
-849
-9602

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * - 95 / + + col1 + - + 87 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL COUNT( * ) + + - 48 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL COUNT ( * ) + + - 48 FROM tab0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6259
SELECT col0 DIV + 22 + - col0 FROM tab2
----
-44
-62
-72

skipif mysql # not compatible
query I rowsort label-6259
SELECT col0 / + 22 + - col0 FROM tab2
----
-44
-62
-72

query II rowsort
SELECT DISTINCT col1 + + - col0, + 65 AS col0 FROM tab1 WHERE NOT col2 > NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6262
SELECT DISTINCT 13 * + 5, ( + 86 ) * - MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-6262
SELECT DISTINCT 13 * + 5, ( + 86 ) * - MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
65
NULL

query I rowsort
SELECT DISTINCT + 60 - - col1 + + col0 FROM tab0
----
156
158
168

query I rowsort
SELECT + col2 * + - col0 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col2 col2 FROM tab1
----
4896
5015
6188

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

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL - COUNT ( DISTINCT ( - col1 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ( SUM( + - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NULL ) )
----
-227

skipif mysql # not compatible
query I rowsort label-6267
SELECT ( SUM ( + - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NULL ) )
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - 38 * + 61 + - 86 col1 FROM tab0
----
-2323
-2383
-2403

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

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 73 / col0 - + - col2 BETWEEN + + col1 + - col1 + col0 + - col2 * + + col0 AND NULL
----

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

skipif mysql # not compatible
query II rowsort label-6272
SELECT ALL - - COUNT ( * ) AS col0, - 20 * - COUNT ( * ) FROM tab0 AS cor0
----
3
60

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) IS NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT - COUNT( - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6278
SELECT - COUNT ( - col2 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 24 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6280
SELECT COUNT ( * ) * - 94 FROM tab2 cor0
----
-282

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

skipif mysql # not compatible
query II rowsort label-6281
SELECT DISTINCT + 93 AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
93
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT MIN( ALL - 8 ) + + 53 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6282
SELECT MIN ( ALL - 8 ) + + 53 FROM tab1
----
45

query I rowsort
SELECT - col0 + - 1 FROM tab0
----
-16
-88
-98

query II rowsort
SELECT ALL + col0 * 74, ( - col1 ) * - col1 AS col2 FROM tab2
----
3404
2601
4736
5929
5550
4489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6285
SELECT + + COUNT( ALL col0 ) FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - 56 * - col1 NOT BETWEEN + col2 * + col2 / - + 79 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6285
SELECT + + COUNT ( ALL col0 ) FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - 56 * - col1 NOT BETWEEN + col2 * + col2 / - + 79 AND NULL
----
0

query I rowsort
SELECT - + 0 FROM tab2 AS cor0 WHERE - col1 <= - + col0
----
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6288
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col0, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-6288
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col0, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

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

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

query I rowsort
SELECT ALL - 84 + + col0 FROM tab0 AS cor0
----
-69
13
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <= 85
----

query I rowsort
SELECT DISTINCT + - 1 + + - 47 * + - 34 AS col0 FROM tab2 AS cor0
----
1597

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + col0 ) NOT BETWEEN - col0 AND col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL 30 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL 30 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
33

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

query I rowsort
SELECT - ( 78 ) * - col0 FROM tab2 WHERE NOT NULL IS NULL OR col2 BETWEEN 69 - - col0 AND + 17
----

query I rowsort
SELECT ALL 23 - - col1 FROM tab0
----
104
24
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT DISTINCT col1 - + + col1 + - ( CAST( + - col1 AS SIGNED ) ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT col1 - + + col1 + - ( CAST ( + - col1 AS INTEGER ) ) AS col1 FROM tab0
----
1
21
81

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

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

query I rowsort
SELECT - ( - + 95 ) AS col1 FROM tab1 WHERE NULL <= col1
----

query I rowsort
SELECT ALL + col2 * - col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 94 col2, ( + col0 ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, ( col1 ) FROM tab1
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 WHERE NOT - ( - - 64 ) BETWEEN NULL AND + 53
----

query I rowsort
SELECT ALL col2 * col2 - + + col2 FROM tab1
----
3422
4556
9120

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

skipif mysql # not compatible
query I rowsort label-6306
SELECT COUNT ( * ) + - - 58 FROM tab0 AS cor0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * + col1 col2 FROM tab2
----
1173
3080
3886

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

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

query I rowsort
SELECT + ( col0 ) * - + col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT DISTINCT - 30 DIV col2 + - 64 AS col0 FROM tab0 AS cor0
----
-64
-67

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT - 30 / col2 + - 64 AS col0 FROM tab0 AS cor0
----
-64
-67

query I rowsort
SELECT - + col1 * - - col0 * + + col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + 87 ) * + 20 * - col1, col0 col0 FROM tab2 AS cor0
----
-116580
75
-133980
64
-88740
46

query I rowsort
SELECT - 24 * - col1 * - + col2 + ( + col1 ) FROM tab0 AS cor0
----
-2375
-5019
-91287

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

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

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

query I rowsort
SELECT 72 FROM tab2 WHERE NOT col0 / + + 71 >= + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT CAST( 99 AS SIGNED ) AS col0 FROM tab1
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6318
SELECT CAST ( 99 AS INTEGER ) AS col0 FROM tab1
----
99
99
99

query I rowsort
SELECT ALL + ( + 59 ) * col0 FROM tab1
----
3009
5015
5369

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT DISTINCT 48 DIV - col2 AS col1 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT 48 / - col2 AS col1 FROM tab0
----
-1
-4
0

query I rowsort
SELECT - col0 + + 93 AS col2 FROM tab2
----
18
29
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT ALL + CAST( NULL AS SIGNED ) * + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6324
SELECT ALL - 36 DIV - - COUNT( * ) AS col1 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL - 36 / - - COUNT ( * ) AS col1 FROM tab2
----
-12

query I rowsort
SELECT DISTINCT + 14 + 57 AS col2 FROM tab1
----
71

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

query I rowsort
SELECT + 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, ( - 7 ) AS col1 FROM tab2
----
-46
-7
-64
-7
-75
-7

query I rowsort
SELECT 41 + + 42 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT - col1 + 9 FROM tab2 AS cor0
----
-42
-58
-68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT DISTINCT + 64 * COUNT( + 33 ) + COUNT( * ) FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT + 64 * COUNT ( + 33 ) + COUNT ( * ) FROM tab1 AS cor0
----
195

query II rowsort
SELECT DISTINCT 25 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
25
-14
25
-47
25
-5

query I rowsort
SELECT + + 58 + + col0 AS col2 FROM tab0 AS cor0
----
145
155
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT DISTINCT + + SUM( - - 22 ) FROM tab1 WHERE col0 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + + SUM ( - - 22 ) FROM tab1 WHERE col0 IS NOT NULL
----
66

query I rowsort
SELECT ALL - 42 - + col1 + - - 29 FROM tab0
----
-14
-34
-94

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6339
SELECT DISTINCT - COUNT( * ) * - + CAST( - AVG ( DISTINCT 61 ) AS SIGNED ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT - COUNT ( * ) * - + CAST ( - AVG ( DISTINCT 61 ) AS INTEGER ) FROM tab1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT - ( + + SUM( ALL + col1 ) ) FROM tab1 AS cor0 WHERE NOT 67 IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-6340
SELECT - ( + + SUM ( ALL + col1 ) ) FROM tab1 AS cor0 WHERE NOT 67 IS NULL
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT DISTINCT - col0 DIV - + col1 AS col0 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT - col0 / - + col1 AS col0 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT - + 84 * - ( - 31 ) + - col2 FROM tab0 AS cor0
----
-2614
-2651
-2703

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

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

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

query II rowsort
SELECT + 46 * - 64 AS col1, 2 AS col0 FROM tab1
----
-2944
2
-2944
2
-2944
2

query I rowsort
SELECT col0 * + ( + col2 ) * 35 + + 23 FROM tab1
----
171383
175548
216603

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT DISTINCT COUNT( * ) * MIN( ALL col2 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT COUNT ( * ) * MIN ( ALL col2 ) FROM tab0
----
30

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + - col2 IS NULL
----
46
64
75

query I rowsort
SELECT ALL col0 * col2 * + - col0 AS col2 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL - 75 AS col2 FROM tab1
----
-75
-75
-75

query I rowsort
SELECT + col2 * col2 + + + col0 * - 41 + + + col0 FROM tab0 AS cor0
----
-3380
1609
5921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6352
SELECT DISTINCT - COUNT( * ) DIV + + 52 + 25 * - + MAX( col1 ) + + 62 * - 87 AS col1 FROM tab1
----
-6569

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT - COUNT ( * ) / + + 52 + 25 * - + MAX ( col1 ) + + 62 * - 87 AS col1 FROM tab1
----
-6569

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6353
SELECT ALL ( 89 ) DIV + 44 AS col0, 75 * + MIN( + + ( - + col0 ) ) AS col1 FROM tab0
----
2
-7275

skipif mysql # not compatible
query II rowsort label-6353
SELECT ALL ( 89 ) / + 44 AS col0, 75 * + MIN ( + + ( - + col0 ) ) AS col1 FROM tab0
----
2
-7275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6354
SELECT * FROM tab0 AS cor0 WHERE - ( CAST( + - col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6354
SELECT * FROM tab0 AS cor0 WHERE - ( CAST ( + - col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6355
SELECT + COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT - + 52 + + col1 AS col2 FROM tab0 AS cor0
----
-31
-51
29

query I rowsort
SELECT - col2 - + + 25 AS col2 FROM tab0 cor0
----
-124
-35
-72

query I rowsort
SELECT ALL + + 56 - - - ( 46 ) FROM tab0 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL + MIN( ALL + - col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL + MIN ( ALL + - col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6363
SELECT ( - CAST ( NULL AS REAL ) ) - - col1 + + - col0 + 94 + ( + 0 ) + col0 * + 61 * col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NULL AND - col0 BETWEEN - 3 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL + 81 + - COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL + 81 + - COUNT ( * ) FROM tab2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6366
SELECT DISTINCT - SUM( ALL - - ( - 55 ) ) - - - 70 DIV + COUNT( DISTINCT + + col0 ) AS col1 FROM tab1
----
142

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - SUM ( ALL - - ( - 55 ) ) - - - 70 / + COUNT ( DISTINCT + + col0 ) AS col1 FROM tab1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT 41 + COUNT( * ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-6367
SELECT 41 + COUNT ( * ) FROM tab1
----
44

query I rowsort
SELECT DISTINCT col2 * + 82 - + col0 AS col0 FROM tab1
----
4753
5485
7821

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT ALL + COUNT( DISTINCT + 58 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL + COUNT ( DISTINCT + 58 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL + MIN( DISTINCT - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL + MIN ( DISTINCT - col2 ) AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6375
SELECT DISTINCT + 2 DIV COUNT( * ) FROM tab0 WHERE 19 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT + 2 / COUNT ( * ) FROM tab0 WHERE 19 IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT DISTINCT - SUM( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT - SUM ( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT - SUM( DISTINCT + - col1 ) * + + COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6379
SELECT DISTINCT - SUM ( DISTINCT + - col1 ) * + + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 = + - 57 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 * + 70 BETWEEN + col1 AND - - col1 - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 > 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT + COUNT( * ) * 6 + - 73 FROM tab0 WHERE NOT NULL BETWEEN + + ( - - ( - - col1 ) ) AND - 3
----
-73

skipif mysql # not compatible
query I rowsort label-6383
SELECT + COUNT ( * ) * 6 + - 73 FROM tab0 WHERE NOT NULL BETWEEN + + ( - - ( - - col1 ) ) AND - 3
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6384
SELECT CAST( col1 AS SIGNED ) + - 56 + - 19 FROM tab2
----
-24
-8
2

skipif mysql # not compatible
query I rowsort label-6384
SELECT CAST ( col1 AS INTEGER ) + - 56 + - 19 FROM tab2
----
-24
-8
2

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col1 FROM tab0 AS cor0 WHERE 57 * + - ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT DISTINCT MAX( col0 ) * COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT MAX ( col0 ) * COUNT ( * ) FROM tab1
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6389
SELECT ALL - col2 * CAST( - 49 AS SIGNED ) AS col2 FROM tab0
----
2303
4851
490

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - col2 * CAST ( - 49 AS INTEGER ) AS col2 FROM tab0
----
2303
4851
490

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 + + 70 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT DISTINCT - 21 + + COUNT( * ) AS col1 FROM tab0 WHERE NOT + col1 * - col0 <> NULL
----
-21

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT - 21 + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col1 * - col0 <> NULL
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL + COUNT( * ) * - MIN( ALL + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL + COUNT ( * ) * - MIN ( ALL + col1 ) FROM tab0
----
-3

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= 39
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6395
SELECT ALL 51 + - MAX( ALL 39 + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL 51 + - MAX ( ALL 39 + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6396
SELECT - 96 DIV + COUNT( * ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-6396
SELECT - 96 / + COUNT ( * ) FROM tab2
----
-32

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6399
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT COUNT( * ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6401
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT - 20 * col0 AS col0 FROM tab1
----
-1020
-1700
-1820

query I rowsort
SELECT DISTINCT 65 + + 70 FROM tab2
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT DISTINCT col0 + - 64 DIV + 49 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT col0 + - 64 / + 49 FROM tab0
----
14
86
96

query I rowsort
SELECT DISTINCT - 72 * col1 FROM tab0
----
-1512
-5832
-72

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

skipif mysql # not compatible
query I rowsort label-6406
SELECT SUM ( + col0 ) FROM tab1
----
227

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6409
SELECT DISTINCT col2 DIV ( + col0 ) AS col1 FROM tab0 WHERE NOT + col2 IS NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT col2 / ( + col0 ) AS col1 FROM tab0 WHERE NOT + col2 IS NULL
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ALL COUNT( * ) * SUM( - 12 * - 20 ) FROM tab1
----
2160

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL COUNT ( * ) * SUM ( - 12 * - 20 ) FROM tab1
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT ALL 41 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) / ( + 1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL 41 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) / ( + 1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6412
SELECT CAST( col1 AS SIGNED ) AS col1 FROM tab2 WHERE - 50 + + col1 > - col1 + 38 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6412
SELECT CAST ( col1 AS INTEGER ) AS col1 FROM tab2 WHERE - 50 + + col1 > - col1 + 38 * + CAST ( NULL AS REAL )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6415
SELECT ALL CAST( + SUM( + col2 ) AS SIGNED ) - - 25 AS col0 FROM tab0
----
181

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL CAST ( + SUM ( + col2 ) AS INTEGER ) - - 25 AS col0 FROM tab0
----
181

query I rowsort
SELECT DISTINCT + col1 * 6 + col2 AS col0 FROM tab1
----
180
350
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL COUNT( * ) FROM tab2 WHERE + ( col1 ) NOT IN ( col2 + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL COUNT ( * ) FROM tab2 WHERE + ( col1 ) NOT IN ( col2 + col1 )
----
3

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT DISTINCT - COUNT( * ) + - 25 AS col0 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT - COUNT ( * ) + - 25 AS col0 FROM tab2 AS cor0
----
-28

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6423
SELECT - SUM( CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6423
SELECT - SUM ( CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-227

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

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

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

query I rowsort
SELECT DISTINCT col2 * 57 + + 62 AS col1 FROM tab0 AS cor0
----
2741
5705
632

query I rowsort
SELECT col2 + - 11 FROM tab0 WHERE + col1 * 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL SUM( DISTINCT - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL SUM ( DISTINCT - - col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6429
SELECT * FROM tab1 WHERE ( + 61 ) IN ( + CAST( NULL AS SIGNED ) * + col1 - - col1 )
----

skipif mysql # not compatible
query III rowsort label-6429
SELECT * FROM tab1 WHERE ( + 61 ) IN ( + CAST ( NULL AS INTEGER ) * + col1 - - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 5 IS NOT NULL
----

query I rowsort
SELECT ALL 18 * - 20 FROM tab0
----
-360
-360
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6432
SELECT DISTINCT - CAST( + + 2 AS SIGNED ) AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - CAST ( + + 2 AS INTEGER ) AS col2 FROM tab1
----
-2

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( ( + 20 ) ) / + col0 + col2 AS col1 FROM tab2 WHERE ( NULL ) < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT + ( SUM( 96 ) ) AS col2 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT + ( SUM ( 96 ) ) AS col2 FROM tab0 AS cor0
----
288

query I rowsort
SELECT ALL - ( - + 6 ) + - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1338
-289
-3190

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT - COUNT( + + col1 ) + 67 AS col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-6437
SELECT - COUNT ( + + col1 ) + 67 AS col0 FROM tab0 AS cor0
----
64

query I rowsort
SELECT ALL + col1 + - col2 AS col2 FROM tab1 cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6439
SELECT DISTINCT + MAX( - - col2 ) DIV MIN( ALL + col1 + + 98 * - 17 ) + 68 DIV 66 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT + MAX ( - - col2 ) / MIN ( ALL + col1 + + 98 * - 17 ) + 68 / 66 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - 33 * - col0 FROM tab2 AS cor0 WHERE col2 * col2 IS NOT NULL
----
1518
2112
2475

query I rowsort
SELECT ALL - - 93 + 35 FROM tab0 AS cor0
----
128
128
128

query I rowsort
SELECT + 85 * - col2 + - ( - col2 ) + col1 AS col2 FROM tab1
----
-4951
-5665
-8050

query II rowsort
SELECT ALL 26, + col1 + - col0 AS col2 FROM tab2
----
26
-8
26
13
26
5

query I rowsort
SELECT - 2 * 71 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 93001bb428d2b6990d863a46394d033e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6445
SELECT ALL + CAST( - + ( - COUNT( ALL + 81 ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + CAST ( - + ( - COUNT ( ALL + 81 ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6446
SELECT * FROM tab1 cor0 WHERE - 20 NOT BETWEEN ( + ( CAST( NULL AS SIGNED ) ) ) AND NULL OR NOT - 53 + + col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-6446
SELECT * FROM tab1 cor0 WHERE - 20 NOT BETWEEN ( + ( CAST ( NULL AS INTEGER ) ) ) AND NULL OR NOT - 53 + + col0 <> NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6448
SELECT col1 AS col0, - col2 + + 33 DIV col2 FROM tab0 AS cor0
----
1
-99
21
-7
81
-47

skipif mysql # not compatible
query II rowsort label-6448
SELECT col1 AS col0, - col2 + + 33 / col2 FROM tab0 AS cor0
----
1
-99
21
-7
81
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 + + 68 - col1 )
----

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

query I rowsort
SELECT DISTINCT - + 40 * - 51 AS col0 FROM tab2 AS cor0
----
2040

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

query I rowsort
SELECT 23 * + col2 FROM tab0 AS cor0
----
1081
2277
230

onlyif mysql # DIV for integer division: 
query II rowsort label-6454
SELECT - col0, + col1 DIV col2 + + col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif mysql # not compatible
query II rowsort label-6454
SELECT - col0, + col1 / col2 + + col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 50 * + + ( + 31 ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6459
SELECT DISTINCT + col1 DIV col0 * + + ( CAST( - 81 AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT + col1 / col0 * + + ( CAST ( - 81 AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT + 77 * - COUNT( * ) AS col2 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-6460
SELECT + 77 * - COUNT ( * ) AS col2 FROM tab1
----
-231

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col0 <= ( + 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT ALL + COUNT( * ) * 45 + + COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT + col1 + col0 BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL + COUNT ( * ) * 45 + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT + col1 + col0 BETWEEN NULL AND NULL )
----
0

query II rowsort
SELECT - col0 AS col2, col1 + - + col0 AS col0 FROM tab1 AS cor0
----
-51
-37
-85
-80
-91
-44

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT + ( + col1 ) IN ( 91 / - 93 )
----
15
87
97

query I rowsort
SELECT ALL - 76 + + + col2 + - 31 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT + MAX( + 71 ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6471
SELECT + MAX ( + 71 ) FROM tab0 AS cor0
----
71

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

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

query I rowsort
SELECT col0 / col0 AS col2 FROM tab0 cor0 WHERE - col0 * - col1 + + - col0 IN ( + 83 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6474
SELECT - col0 + 30 FROM tab0 AS cor0 WHERE NULL NOT IN ( 39 + + ( - + ( - col1 ) ) + - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6474
SELECT - col0 + 30 FROM tab0 AS cor0 WHERE NULL NOT IN ( 39 + + ( - + ( - col1 ) ) + - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT + 48 + + col1 AS col0 FROM tab2 AS cor0
----
115
125
99

query I rowsort
SELECT ALL + + col0 + + 61 FROM tab0 AS cor0
----
148
158
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL - MIN( ALL + + 21 ) * + SUM( DISTINCT 7 ) FROM tab1, tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL - MIN ( ALL + + 21 ) * + SUM ( DISTINCT 7 ) FROM tab1, tab2 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( + col1 * - 49 - 67 + + 24 ) >= + 19 * col0
----
3

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( + col1 * - 49 - 67 + + 24 ) >= + 19 * col0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + ( + col1 ) ) col0 FROM tab1 WHERE NULL <= ( col1 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT COUNT( * ) * + 2 AS col1 FROM tab1, tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-6480
SELECT COUNT ( * ) * + 2 AS col1 FROM tab1, tab2 cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 62 col1 FROM tab0 WHERE ( - col1 * col2 * + 28 = NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT DISTINCT + col0 * + col0 DIV + + col0 + - col2 AS col1 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT + col0 * + col0 / + + col0 + - col2 AS col1 FROM tab0
----
-2
-32
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6485
SELECT - + col0 / CAST( NULL AS SIGNED ) AS col2, 19 + + col0 FROM tab0 AS cor0
----
NULL
106
NULL
116
NULL
34

skipif mysql # not compatible
query II rowsort label-6485
SELECT - + col0 / CAST ( NULL AS INTEGER ) AS col2, 19 + + col0 FROM tab0 AS cor0
----
NULL
106
NULL
116
NULL
34

query I rowsort
SELECT ALL 54 + + col1 FROM tab2 AS cor0
----
105
121
131

query II rowsort
SELECT col1 AS col0, col1 + - col1 FROM tab0 AS cor0
----
1
0
21
0
81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT - 66 DIV - col2 col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6488
SELECT - 66 / - col2 col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col1 + - - col2 AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6490
SELECT ALL - col2 * 54 + - CAST( NULL AS SIGNED ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT DISTINCT + - MIN( ALL - 39 ) + COUNT( * ) col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6491
SELECT DISTINCT + - MIN ( ALL - 39 ) + COUNT ( * ) col1 FROM tab0 AS cor0
----
42

query II rowsort
SELECT + col1 - 87 AS col1, col0 * + + col2 FROM tab1
----
-40
6188
-73
4896
-82
5015

query I rowsort
SELECT 90 FROM tab0 WHERE NOT ( col1 * - col0 ) IS NULL AND NULL = NULL
----

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

query I rowsort
SELECT - col2 * + - col2 AS col2 FROM tab1 cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT - MIN( + col1 ) col1 FROM tab1 AS cor0 WHERE NOT 94 - col1 * - 21 <= + col1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6496
SELECT - MIN ( + col1 ) col1 FROM tab1 AS cor0 WHERE NOT 94 - col1 * - 21 <= + col1
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT ALL - 73 * - ( COUNT( * ) ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL - 73 * - ( COUNT ( * ) ) FROM tab0 AS cor0
----
219

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( col2 < + 31 / ( + col2 ) + col1 ) )
----
15
81
47
87
21
10

query I rowsort
SELECT col2 * 84 + + col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( col1 * + - col2 - + col2 IS NOT NULL ) )
----
4961
5759
8078

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

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + - ( - - MAX ( 24 ) ) FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT ALL - COUNT( * ) * - 47 AS col2 FROM tab1 AS cor0 WHERE NOT + 27 + - + 54 - + + col1 * - + 3 + - col0 * + - col0 / + col1 + col0 > ( 68 )
----
0

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL - COUNT ( * ) * - 47 AS col2 FROM tab1 AS cor0 WHERE NOT + 27 + - + 54 - + + col1 * - + 3 + - col0 * + - col0 / + col1 + col0 > ( 68 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT COUNT( ALL - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6504
SELECT COUNT ( ALL - col2 ) FROM tab2
----
3

query II rowsort
SELECT ALL 70 AS col1, + col0 FROM tab2
----
70
46
70
64
70
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL + 45 + - MAX( + + 41 ) * - 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2792

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL + 45 + - MAX ( + + 41 ) * - 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2792

query I rowsort
SELECT col1 + + 18 FROM tab1
----
23
32
65

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE ( NULL = col2 )
----

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 47 NOT IN ( - 51 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT + MIN( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6512
SELECT + MIN ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + - ( - 52 ) + + + col1 AS col2 FROM tab2 AS cor0
----
103
119
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT 60 * - + SUM( DISTINCT col1 ) col2 FROM tab0
----
-6180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6514
SELECT 60 * - + SUM ( DISTINCT col1 ) col2 FROM tab0
----
-6180

query I rowsort
SELECT ( + 54 ) FROM tab2
----
54
54
54

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6517
SELECT - 58 - + MIN( DISTINCT CAST( + col0 AS SIGNED ) ) FROM tab2
----
-104

skipif mysql # not compatible
query I rowsort label-6517
SELECT - 58 - + MIN ( DISTINCT CAST ( + col0 AS INTEGER ) ) FROM tab2
----
-104

query II rowsort
SELECT - 64 AS col1, 63 * 93 AS col0 FROM tab0 WHERE - 30 / - 25 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6519
SELECT * FROM tab1 WHERE ( - - col2 * + 93 + 37 ) BETWEEN + col2 / + 45 / + ( + - col2 ) * CAST( 74 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6519
SELECT * FROM tab1 WHERE ( - - col2 * + 93 + 37 ) BETWEEN + col2 / + 45 / + ( + - col2 ) * CAST ( 74 AS INTEGER ) AND NULL
----

query I rowsort
SELECT - 30 + col1 FROM tab0
----
-29
-9
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT - - 29 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT - - 29 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-87

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, - col0 - - 92 AS col2 FROM tab1 AS cor0 WHERE ( NULL < - 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL 16 + + + COUNT( * ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL 16 + + + COUNT ( * ) FROM tab1 AS cor0
----
19

query I rowsort
SELECT ALL + 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # DIV for integer division: 
query II rowsort label-6527
SELECT + + col2 AS col2, + col0 - 47 - + col2 DIV - col2 + + + col1 AS col0 FROM tab0 AS cor0
----
10
62
47
50
99
52

skipif mysql # not compatible
query II rowsort label-6527
SELECT + + col2 AS col2, + col0 - 47 - + col2 / - col2 + + + col1 AS col0 FROM tab0 AS cor0
----
10
62
47
50
99
52

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

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

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

query I rowsort
SELECT DISTINCT - 61 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT - 68, + ( col2 ) AS col1 FROM tab0 AS cor0
----
-68
10
-68
47
-68
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6532
SELECT + 77 * + CAST( NULL AS DECIMAL ) * + 70 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT + 77 * + CAST ( NULL AS REAL ) * + 70 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 38 - - ( - col2 ) + 17 AS col2 FROM tab2 cor0
----
-1754
-2455
-2891

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

skipif mysql # not compatible
query I rowsort label-6534
SELECT - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6535
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + CAST( - col2 AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-6535
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + CAST ( - col2 AS INTEGER ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL + 71 * + MIN( DISTINCT 38 ) AS col2 FROM tab2
----
2698

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL + 71 * + MIN ( DISTINCT 38 ) AS col2 FROM tab2
----
2698

query II rowsort
SELECT ALL + col0 * + 81 AS col2, 85 FROM tab2
----
3726
85
5184
85
6075
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6538
SELECT - COUNT( * ) DIV + 1, - 18 AS col1 FROM tab2
----
-3
-18

skipif mysql # not compatible
query II rowsort label-6538
SELECT - COUNT ( * ) / + 1, - 18 AS col1 FROM tab2
----
-3
-18

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE ( NOT ( NOT + col2 + - + col2 = col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 54 - ( + + 81 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6541
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) FROM tab1, tab2 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-6541
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) FROM tab1, tab2 AS cor0
----
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6542
SELECT DISTINCT MAX( ALL + 34 ) AS col2 FROM tab2 WHERE NOT ( 93 + 47 ) <> + 86 * + + col1 * + CAST( + - col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT MAX ( ALL + 34 ) AS col2 FROM tab2 WHERE NOT ( 93 + 47 ) <> + 86 * + + col1 * + CAST ( + - col0 AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT + MAX( ALL - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT + MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT 3 * - 45 AS col1 FROM tab2 AS cor0
----
-135
-135
-135

query I rowsort
SELECT DISTINCT 39 * + 23 + + - col0 FROM tab0 AS cor0
----
800
810
882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6547
SELECT ALL 24 DIV + MIN( ALL + 85 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL 24 / + MIN ( ALL + 85 ) AS col0 FROM tab0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6549
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE - 72 <= + - CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-6549
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE - 72 <= + - CAST ( NULL AS REAL )
----
0

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL - MIN( DISTINCT + - 84 ) AS col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL - MIN ( DISTINCT + - 84 ) AS col2 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT ALL - COUNT( * ) + - 85 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL - COUNT ( * ) + - 85 FROM tab1
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - - 92 - col0 + - col2 col2 FROM tab0
----
-168
-287
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6557
SELECT - 9 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT - 9 + - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - + col2 - - col0 AS col0 FROM tab2
----
1664
3439
575

query I rowsort
SELECT + - col0 AS col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN - col0 AND + 17 + ( col2 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 20 NOT BETWEEN NULL AND + - 34
----

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

query I rowsort
SELECT DISTINCT - ( - 16 ) AS col2 FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6564
SELECT DISTINCT + + 7 + - 56 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
-49
-3

skipif mysql # not compatible
query II rowsort label-6564
SELECT DISTINCT + + 7 + - 56 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-49
-3

query I rowsort
SELECT DISTINCT + + 28 AS col0 FROM tab1 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL - COUNT( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - COUNT ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6567
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6567
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 65 / + + col2 + col2 + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 65 / + + col2 + col2 + col1 IS NULL
----
3

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

query I rowsort
SELECT ALL + 95 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
95
95
95

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

query I rowsort
SELECT - ( - col0 ) * 95 AS col2 FROM tab0 AS cor0
----
1425
8265
9215

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT COUNT( + 68 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6574
SELECT COUNT ( + 68 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT - col0 AS col1, - col0 + col2 AS col0 FROM tab1
----
-51
45
-85
-26
-91
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT CAST( col1 AS SIGNED ) * - 52 FROM tab2
----
-2652
-3484
-4004

skipif mysql # not compatible
query I rowsort label-6576
SELECT CAST ( col1 AS INTEGER ) * - 52 FROM tab2
----
-2652
-3484
-4004

query II rowsort
SELECT ALL col0 AS col2, + col2 + - col0 AS col0 FROM tab1
----
51
45
85
-26
91
-23

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 42 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6579
SELECT - col0 DIV + 54 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6579
SELECT - col0 / + 54 AS col1 FROM tab1
----
-1
-1
0

query II rowsort
SELECT ALL col2, - 62 FROM tab2
----
23
-62
40
-62
58
-62

query II rowsort
SELECT ALL - col2 AS col0, col2 * - col2 FROM tab2 AS cor0
----
-23
-529
-40
-1600
-58
-3364

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

query I rowsort
SELECT DISTINCT col1 + + + ( - col2 ) AS col0 FROM tab2 cor0
----
28
37
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL - COUNT( * ) + - 11 AS col0 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - COUNT ( * ) + - 11 AS col0 FROM tab0
----
-14

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

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL + SUM ( DISTINCT + + ( col2 ) ) AS col2 FROM tab2
----
121

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6588
SELECT - - COUNT( * ) * + 89 AS col1, 24 AS col2 FROM tab2 AS cor0
----
267
24

skipif mysql # not compatible
query II rowsort label-6588
SELECT - - COUNT ( * ) * + 89 AS col1, 24 AS col2 FROM tab2 AS cor0
----
267
24

query I rowsort
SELECT - col1 * + 1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT DISTINCT - col2 - col1 * - ( + col2 ), + ( 67 ) FROM tab2 AS cor0 WHERE NOT NULL >= + col2 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT - SUM( - col2 ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT - SUM ( - col2 ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= CAST ( NULL AS INTEGER )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 91 col1 FROM tab1 AS cor0
----
142
176
182

query I rowsort
SELECT 57 AS col2 FROM tab2 AS cor0 WHERE - 67 + - 43 IN ( + + col2 / col2 + - 35 / + ( - + col0 ) + 26, col1 + + + ( col1 ), - col1 * - 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT DISTINCT - 82 + - MIN( - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT - 82 + - MIN ( - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-5

query II rowsort
SELECT col0 - col2 AS col1, + col0 FROM tab2 AS cor0
----
17
75
23
46
24
64

query I rowsort
SELECT ALL + col2 * col2 + - - col1 + + col2 + + 13 + - col0 + 83 * + col0 * - + col1 * - - 89 * - + 56 AS col2 FROM tab2
----
2038577282
2078705227
970475082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT 88 * + col1 * - CAST( NULL AS SIGNED ) / - 99 - + ( - - 31 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT 88 * + col1 * - CAST ( NULL AS INTEGER ) / - 99 - + ( - - 31 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - 0 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + 50 + - col2 * - 90 + + - col0 AS col1 FROM tab1
----
5275
6079
8639

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL + COUNT( * ) - COUNT( * ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6601
SELECT ALL + COUNT ( * ) - COUNT ( * ) col2 FROM tab2
----
0

query I rowsort
SELECT ALL col0 * - 74 FROM tab1
----
-3774
-6290
-6734

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT ( NOT col2 / col1 IS NOT NULL )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - ( + - col1 ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1
----

query II rowsort
SELECT col0, + 79 - - 5 * + col0 FROM tab2 AS cor0
----
46
309
64
399
75
454

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT ALL - ( + CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - ( + CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL 31 + + + col0 FROM tab2 cor0
----
106
77
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ( 78 ) + - COUNT( * ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6610
SELECT ( 78 ) + - COUNT ( * ) FROM tab2
----
75

query I rowsort
SELECT col2 * 54 + - col2 FROM tab2
----
1219
2120
3074

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT 30 + - ( + col2 ) DIV + col2 FROM tab0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-6612
SELECT 30 + - ( + col2 ) / + col2 FROM tab0
----
29
29
29

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

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

query I rowsort
SELECT col2 + - 46 AS col2 FROM tab2
----
-23
-6
12

query I rowsort
SELECT DISTINCT ( + 31 ) AS col1 FROM tab0
----
31

query II rowsort
SELECT - 79 AS col2, col1 * - col2 FROM tab2 AS cor0
----
-79
-1173
-79
-3080
-79
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT ALL ( + + 23 ) + - CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 7 NOT IN ( - ( + 51 ), - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT DISTINCT - col0 + - + 43, 28 + col2 + col2 AS col1 FROM tab2
----
-107
108
-118
144
-89
74

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

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

query I rowsort
SELECT DISTINCT + col2 * - col0 * - + 13 FROM tab2
----
13754
33280
56550

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL - 73 * COUNT( * ) * + 17 FROM tab0 AS cor0
----
-3723

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL - 73 * COUNT ( * ) * + 17 FROM tab0 AS cor0
----
-3723

query I rowsort
SELECT - col2 + - col1 - - col0 + - col2 FROM tab0 AS cor0
----
-102
-160
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT DISTINCT + + 49 * COUNT( * ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT + + 49 * COUNT ( * ) FROM tab2 AS cor0
----
147

query I rowsort
SELECT DISTINCT col1 + - + col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT DISTINCT - 19 + - COUNT( - - ( 93 ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-19

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT - 19 + - COUNT ( - - ( 93 ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT COUNT( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6631
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 * + + 42 AS col2, + 75 * + col2 * - + 70 col1 FROM tab1
----
4032
-309750
4032
-357000
4032
-504000

query II rowsort
SELECT - col2 / - - ( ( - - col1 ) ) / 33, + 62 + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 - 0 - - + col0 FROM tab2
----
-1536
-3289
-483

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6635
SELECT ALL - CAST( NULL AS DECIMAL ) + col1 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6635
SELECT ALL - CAST ( NULL AS REAL ) + col1 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 16 - + col1 FROM tab1
----
-31
11
2

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE - 19 * + col2 >= 42
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6638
SELECT - MAX( DISTINCT - col0 ) AS col0, - ( - - MAX( + + 37 ) ) FROM tab1
----
51
-37

skipif mysql # not compatible
query II rowsort label-6638
SELECT - MAX ( DISTINCT - col0 ) AS col0, - ( - - MAX ( + + 37 ) ) FROM tab1
----
51
-37

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

query I rowsort
SELECT 44 * + 48 FROM tab2
----
2112
2112
2112

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

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

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

query I rowsort
SELECT ALL + ( col1 ) * - col2 FROM tab2
----
-1173
-3080
-3886

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6646
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - - col1, CAST( 7 AS DECIMAL ), 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6646
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - - col1, CAST ( 7 AS REAL ), 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - 49 col0, - col0 FROM tab0 AS cor0
----
-1029
-87
-3969
-15
-49
-97

query I rowsort
SELECT + ( ( 46 ) ) FROM tab0
----
46
46
46

query I rowsort
SELECT + col2 * - + 4 AS col0 FROM tab1
----
-236
-272
-384

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

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

query I rowsort
SELECT - 15 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query II rowsort
SELECT col0 AS col1, col1 + 14 FROM tab0
----
15
95
87
35
97
15

query I rowsort
SELECT + 32 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 43 AS col0 FROM tab1 AS cor0 WHERE NOT + 31 + col1 * + col0 <= 92
----
43
43
43

query I rowsort
SELECT DISTINCT - - ( 73 ) FROM tab1 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 - AVG ( + - col2 ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

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

query I rowsort
SELECT ALL + 20 + + col1 AS col1 FROM tab1 AS cor0
----
25
34
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT ALL col1 + - col0 * 86 DIV col0 AS col2 FROM tab2
----
-19
-35
-9

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL col1 + - col0 * 86 / col0 AS col2 FROM tab2
----
-19
-35
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-6660
SELECT DISTINCT + ( col0 ), col1 DIV + col1 AS col2 FROM tab2
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-6660
SELECT DISTINCT + ( col0 ), col1 / + col1 AS col2 FROM tab2
----
46
1
64
1
75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT + 15 * - MIN( + col1 ) AS col2 FROM tab2
----
-765

skipif mysql # not compatible
query I rowsort label-6661
SELECT + 15 * - MIN ( + col1 ) AS col2 FROM tab2
----
-765

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - + col0 ) col1, + col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6664
SELECT + COUNT( DISTINCT - col2 ) AS col1, 88 FROM tab0
----
3
88

skipif mysql # not compatible
query II rowsort label-6664
SELECT + COUNT ( DISTINCT - col2 ) AS col1, 88 FROM tab0
----
3
88

query II rowsort
SELECT ALL + 54 AS col1, + col1 + + 61 AS col2 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 99 AS col0 FROM tab1 cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT - col0 * 50 FROM tab0 AS cor0
----
-4350
-4850
-750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 AS cor0 WHERE - col1 * + col2 * - col2 + col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 AS cor0 WHERE 67 IS NOT NULL
----
14
47
5

query I rowsort
SELECT col0 * + 36 + col2 * col2 AS col0 FROM tab1 AS cor0
----
11052
6541
7900

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT + COUNT( * ) * - COUNT( col0 ) + + 32 + + - ( + - COUNT( * ) ) + 32 AS col2 FROM tab0 cor0
----
58

skipif mysql # not compatible
query I rowsort label-6671
SELECT + COUNT ( * ) * - COUNT ( col0 ) + + 32 + + - ( + - COUNT ( * ) ) + 32 AS col2 FROM tab0 cor0
----
58

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

skipif mysql # not compatible
query I rowsort label-6672
SELECT 81 + - ( COUNT ( * ) ) / - 41 AS col0 FROM tab2
----
81

query I rowsort
SELECT ALL + 50 + - + col1 AS col2 FROM tab2
----
-1
-17
-27

query I rowsort
SELECT DISTINCT col1 * - 49 AS col2 FROM tab0
----
-1029
-3969
-49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL > NULL )
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE + ( + col2 ) + + 7 IS NOT NULL
----
-51
-85
-91

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

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

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

query II rowsort
SELECT ALL + col2, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT + + 46 - - - 9 * + col0 FROM tab0 AS cor0
----
-737
-827
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6681
SELECT ALL + - 89 + + col2 / col1 AS col1, + CAST( + col2 AS SIGNED ) FROM tab2 cor0 WHERE NOT col1 * + col0 * 87 BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query II rowsort label-6681
SELECT ALL + - 89 + + col2 / col1 AS col1, + CAST ( + col2 AS INTEGER ) FROM tab2 cor0 WHERE NOT col1 * + col0 * 87 BETWEEN + col1 AND NULL
----

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

query I rowsort
SELECT ALL - 15 AS col0 FROM tab1 AS cor0 WHERE 37 = - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT 83 + COUNT( ALL + 59 ) AS col1 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-6684
SELECT 83 + COUNT ( ALL + 59 ) AS col1 FROM tab0
----
86

query I rowsort
SELECT DISTINCT + col2 * - 9 AS col1 FROM tab2
----
-207
-360
-522

query I rowsort
SELECT ALL + 66 * + 59 * col0 * 22 AS col2 FROM tab1
----
4369068
7281780
7795788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col0 FROM tab1
----
2601
7225
8281

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

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT ( COUNT ( * ) ) / + - 57 AS col1 FROM tab0
----
0

query II rowsort
SELECT - col1, + 69 AS col2 FROM tab1 AS cor0
----
-14
69
-47
69
-5
69

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

query II rowsort
SELECT - col0 * - col0 AS col1, - col0 + col1 AS col2 FROM tab2
----
2116
5
4096
13
5625
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6692
SELECT * FROM tab0 WHERE NOT NULL > - CAST( + 37 AS SIGNED ) - - 58 * - col2
----

skipif mysql # not compatible
query III rowsort label-6692
SELECT * FROM tab0 WHERE NOT NULL > - CAST ( + 37 AS INTEGER ) - - 58 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6693
SELECT + ( - 21 ), CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( col1 BETWEEN - + col1 + col0 AND NULL )
----
-21
NULL
-21
NULL

skipif mysql # not compatible
query II rowsort label-6693
SELECT + ( - 21 ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( col1 BETWEEN - + col1 + col0 AND NULL )
----
-21
NULL
-21
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6695
SELECT ALL - col1 * CAST( - col1 AS SIGNED ) col0, 28 col0 FROM tab2
----
2601
28
4489
28
5929
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6695
SELECT ALL - col1 * CAST ( - col1 AS INTEGER ) col0, 28 col0 FROM tab2
----
2601
28
4489
28
5929
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT DISTINCT - ( + CAST( + col0 AS SIGNED ) ) * + - 14 * col0 + + col2 * + col1 col0 FROM tab2
----
30797
60424
82636

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6696
SELECT DISTINCT - ( + CAST ( + col0 AS INTEGER ) ) * + - 14 * col0 + + col2 * + col1 col0 FROM tab2
----
30797
60424
82636

query I rowsort
SELECT + 18 + - + 18 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT MIN( + + 12 ) AS col0 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-6698
SELECT MIN ( + + 12 ) AS col0 FROM tab2 cor0
----
12

query I rowsort
SELECT - + col1 * + ( - 99 ) * + col1 FROM tab0 AS cor0
----
43659
649539
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
85

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

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

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

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

query II rowsort
SELECT DISTINCT col0 AS col1, + col0 AS col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT DISTINCT + MIN( col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT + MIN ( col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT col0 + - 99 AS col1 FROM tab2
----
-24
-35
-53

query I rowsort
SELECT ALL - 20 AS col0 FROM tab2
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6710
SELECT ALL col0 col1 FROM tab1 AS cor0 WHERE 37 * - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6710
SELECT ALL col0 col1 FROM tab1 AS cor0 WHERE 37 * - CAST ( NULL AS INTEGER ) <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT DISTINCT + COUNT( DISTINCT - 42 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT + COUNT ( DISTINCT - 42 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 87 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + ( col2 ) - - + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT - - CAST( + 26 AS SIGNED ) + - ( col1 ) - + col2 + 2 FROM tab0 AS cor0
----
-100
-3
-72

skipif mysql # not compatible
query I rowsort label-6715
SELECT - - CAST ( + 26 AS INTEGER ) + - ( col1 ) - + col2 + 2 FROM tab0 AS cor0
----
-100
-3
-72

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + 70 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + - col0 ) col1, + 63 * - col0 - - + col0 AS col2 FROM tab2 AS cor0
----
46
-2852
64
-3968
75
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT DISTINCT - MAX( ALL col2 ) AS col1 FROM tab2 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT - MAX ( ALL col2 ) AS col1 FROM tab2 WHERE NOT ( NULL IS NULL )
----
NULL

query I rowsort
SELECT 52 * + col1 AS col2 FROM tab1
----
2444
260
728

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

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

query I rowsort
SELECT col0 * + col1 * - - col0 FROM tab0
----
158949
18225
9409

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

skipif mysql # not compatible
query I rowsort label-6723
SELECT + ( CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND - + 92 / - - col0 * + col2 + - col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE + col1 IN ( col0 + - col1, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE + col1 IN ( col0 + - col1, + col0 )
----
0

query I rowsort
SELECT ( + 19 ) AS col2 FROM tab1
----
19
19
19

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

skipif mysql # not compatible
query I rowsort label-6727
SELECT + MAX ( - col1 ) FROM tab1
----
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 79 AS col1, + col1 * 84 col0 FROM tab1 cor0
----
79
1176
79
3948
79
420

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT - SUM( DISTINCT - col0 ) * + 77 col1 FROM tab0
----
15323

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6730
SELECT - SUM ( DISTINCT - col0 ) * + 77 col1 FROM tab0
----
15323

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6732
SELECT DISTINCT + + CAST( + col1 AS SIGNED ) + + 5 FROM tab1 cor0
----
10
19
52

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT + + CAST ( + col1 AS INTEGER ) + + 5 FROM tab1 cor0
----
10
19
52

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

query I rowsort
SELECT DISTINCT + + col1 + - 86 FROM tab1 cor0
----
-39
-72
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-6735
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0
----
0

query III rowsort
SELECT col2, 7 AS col2, - col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to b619fa74d4f76197f2a714a769b16dd0

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT DISTINCT + 66 + + + COUNT( * ) col0 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6737
SELECT DISTINCT + 66 + + + COUNT ( * ) col0 FROM tab0 AS cor0
----
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + 49 > - 6 + + col1 / - 92
----
51
14
96

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

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

query I rowsort
SELECT ALL 60 * + col0 * - + col0 FROM tab1 AS cor0
----
-156060
-433500
-496860

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT + - MAX( - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) < - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT + - MAX ( - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) < - - 63
----
NULL

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

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

query I rowsort
SELECT ALL + ( - - 32 ) + col1 FROM tab1
----
37
46
79

query I rowsort
SELECT ALL + 11 + - - 70 * - + 68 AS col2 FROM tab1
----
-4749
-4749
-4749

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

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

query I rowsort
SELECT + 8 * - col0 * col1 AS col1 FROM tab0
----
-14616
-776
-9720

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT ALL + + col0 / 39 + 54 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL + + col0 / 39 + 54 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

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

query I rowsort
SELECT DISTINCT - + ( + - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-6752
SELECT - MAX ( DISTINCT - - 55 ) FROM tab0 AS cor0
----
-55

query I rowsort
SELECT - col2 * - + 3 AS col2 FROM tab2 AS cor0
----
120
174
69

query II rowsort
SELECT col2 AS col0, 28 FROM tab0 AS cor0
----
10
28
47
28
99
28

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col2 * - + col0 + 19 AS col1 FROM tab2 AS cor0
----
23
-1039
40
-2541
58
-4331

query II rowsort
SELECT ALL - col1 AS col1, + col2 * col2 FROM tab0 AS cor0
----
-1
9801
-21
100
-81
2209

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT SUM( DISTINCT + col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6759
SELECT SUM ( DISTINCT + col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE ( col0 ) > 79 * + - col0
----
10
47
99

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

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col1 + 82 > + col1
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL = - 77
----

query II rowsort
SELECT DISTINCT + col1 / + - col0 + + - col0 AS col2, - col0 AS col1 FROM tab0 cor0 WHERE + 80 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT 62 + col2 AS col2 FROM tab0 AS cor0
----
109
161
72

query I rowsort
SELECT ALL + + col2 + - 59 * + + ( 29 ) * + col1 + - + col0 FROM tab2 AS cor0
----
-114654
-131771
-87284

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 + - col1 ) < NULL AND ( - - col0 ) NOT BETWEEN NULL AND col2 * - - 51 + 91 * ( - + 75 ) - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT - + 38 + - + MAX( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6770
SELECT - + 38 + - + MAX ( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
-33

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

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

query I rowsort
SELECT DISTINCT + 83 + - 40 FROM tab1 AS cor0
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT - 75 + - COUNT( ALL col0 ) col1 FROM tab2 cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6774
SELECT DISTINCT - 75 + - COUNT ( ALL col0 ) col1 FROM tab2 cor0
----
-78

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT ALL col0 DIV col1 + col1 FROM tab1
----
17
22
48

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL col0 / col1 + col1 FROM tab1
----
17
22
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT DISTINCT + - COUNT( * ) + MAX( - col0 ) FROM tab0 WHERE NOT - - col1 IN ( col1 * + col0, col0 )
----
-18

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT + - COUNT ( * ) + MAX ( - col0 ) FROM tab0 WHERE NOT - - col1 IN ( col1 * + col0, col0 )
----
-18

query II rowsort
SELECT ALL - 45, + col2 FROM tab2
----
-45
23
-45
40
-45
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6779
SELECT + 84 col1, col1 * 39 * 83 * + CAST( NULL AS DECIMAL ) * + col2 AS col0 FROM tab0
----
84
NULL
84
NULL
84
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6779
SELECT + 84 col1, col1 * 39 * 83 * + CAST ( NULL AS REAL ) * + col2 AS col0 FROM tab0
----
84
NULL
84
NULL
84
NULL

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

query I rowsort
SELECT DISTINCT - col1 * - + 19 FROM tab2
----
1273
1463
969

query I rowsort
SELECT ALL + 50 - + 0 - - 90 + + col0 * + col2 AS col1 FROM tab2
----
1198
2700
4490

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6784
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 25 + - - col0 AND + + CAST( + 18 AS SIGNED ) * col0 - - col2 * col1 + col1
----

skipif mysql # not compatible
query III rowsort label-6784
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 25 + - - col0 AND + + CAST ( + 18 AS INTEGER ) * col0 - - col2 * col1 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 94 AND - 68
----

query I rowsort
SELECT col2 + - + col0 AS col0 FROM tab2
----
-17
-23
-24

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 2 * - 16 + + 30 >= + + 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 + col1 col0 FROM tab1 AS cor0 WHERE NOT ( - + 5 * - - col0 * - - col1 IS NULL )
----
100
109
142

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col1 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT DISTINCT - COUNT( DISTINCT - 5 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT - COUNT ( DISTINCT - 5 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT + - ( MIN( ALL - col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6793
SELECT + - ( MIN ( ALL - col1 ) ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT ALL col0, - 68 AS col0 FROM tab1
----
51
-68
85
-68
91
-68

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

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

query II rowsort
SELECT col1 AS col2, + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT SUM( DISTINCT + 80 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT SUM ( DISTINCT + 80 ) FROM tab0
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6798
SELECT - 29 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + COUNT( * ) * 30 col2 FROM tab0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6799
SELECT + COUNT ( * ) * 30 col2 FROM tab0
----
90

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

query I rowsort
SELECT - col2 * - + 76 * - 62 FROM tab1
----
-278008
-320416
-452352

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT DISTINCT MAX( + 49 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT MAX ( + 49 ) FROM tab2
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL SUM( ( - 98 ) ) AS col2 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL SUM ( ( - 98 ) ) AS col2 FROM tab1
----
-294

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE + 67 = + ( + col0 )
----

query II rowsort
SELECT col2, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT ALL - + col0 * + col0 + - - col1 * col1, + 34 AS col2 FROM tab2 cor0
----
-1136
34
1833
34
485
34

query I rowsort
SELECT + 79 + - col2 * + - col2 FROM tab2 AS cor0
----
1679
3443
608

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL CAST ( NULL AS INTEGER ) + MIN ( DISTINCT - - 49 ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( + 60 ) + - 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - MAX( - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6820
SELECT - MAX ( - col0 ) FROM tab0 AS cor0
----
15

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

query I rowsort
SELECT ALL + col0 - - 31 - + + col1 + + - 10 * + - col0 * + - 56 FROM tab0 AS cor0
----
-48623
-54193
-8435

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ( 79 ) - MAX( ALL col2 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-6825
SELECT ( 79 ) - MAX ( ALL col2 ) FROM tab2
----
21

query I rowsort
SELECT DISTINCT col0 - - col1 * - 5 AS col2 FROM tab2
----
-209
-260
-321

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT - MAX( - 51 ) * - - COUNT( * ) + + - 31 * - AVG ( DISTINCT col1 ) col1 FROM tab2 WHERE 92 <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6827
SELECT - MAX ( - 51 ) * - - COUNT ( * ) + + - 31 * - AVG ( DISTINCT col1 ) col1 FROM tab2 WHERE 92 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL 51 * - MIN( DISTINCT 5 ) AS col2 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL 51 * - MIN ( DISTINCT 5 ) AS col2 FROM tab2 AS cor0
----
-255

query I rowsort
SELECT DISTINCT + col1 + + col0 * + 42 FROM tab1 AS cor0
----
2156
3575
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT - SUM( ALL + 26 ) * ( 54 ) + COUNT( DISTINCT - col0 ) FROM tab0 cor0
----
-4209

skipif mysql # not compatible
query I rowsort label-6830
SELECT - SUM ( ALL + 26 ) * ( 54 ) + COUNT ( DISTINCT - col0 ) FROM tab0 cor0
----
-4209

query I rowsort
SELECT + 37 * - col2 FROM tab1 cor0
----
-2183
-2516
-3552

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

query I rowsort
SELECT + 47 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL + 92 * + COUNT( + col2 ) + 87 FROM tab1 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL + 92 * + COUNT ( + col2 ) + 87 FROM tab1 AS cor0
----
363

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query II rowsort
SELECT + - col1, - col2 - 79 - - col2 + col0 AS col0 FROM tab2 AS cor0
----
-51
-33
-67
-4
-77
-15

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6839
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 + + col0 - CAST( NULL AS SIGNED ), + ( + col0 ) / - 79 )
----

skipif mysql # not compatible
query III rowsort label-6839
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 + + col0 - CAST ( NULL AS INTEGER ), + ( + col0 ) / - 79 )
----

query I rowsort
SELECT ( - col2 ) * + col2 * + col0 AS col0 FROM tab2 cor0
----
-102400
-24334
-252300

query I rowsort
SELECT + col0 * + 74 FROM tab1 AS cor0
----
3774
6290
6734

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

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

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

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

query II rowsort
SELECT DISTINCT - col0 + + + col2 AS col1, 17 AS col1 FROM tab0 AS cor0
----
-77
17
2
17
32
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT - SUM( ALL - col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-6845
SELECT - SUM ( ALL - col0 ) FROM tab0 cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6846
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST( + 90 AS SIGNED ) ) = + ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6846
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST ( + 90 AS INTEGER ) ) = + ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6847
SELECT DISTINCT CAST( + - MAX( - col2 ) AS SIGNED ) + + 80 FROM tab2 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT CAST ( + - MAX ( - col2 ) AS INTEGER ) + + 80 FROM tab2 AS cor0
----
103

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT - 12 * COUNT( * ) * + - 89 AS col2, COUNT( * ) FROM tab2
----
3204
3

skipif mysql # not compatible
query II rowsort label-6849
SELECT - 12 * COUNT ( * ) * + - 89 AS col2, COUNT ( * ) FROM tab2
----
3204
3

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT 49 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 29 IS NULL )
----

query I rowsort
SELECT 14 + - col1 AS col0 FROM tab2 AS cor0
----
-37
-53
-63

query I rowsort
SELECT ALL col0 * - col1 - - + col0 - + 61 AS col1 FROM tab2 AS cor0
----
-2361
-4925
-5011

query I rowsort
SELECT - 73 + col2 FROM tab2 AS cor0
----
-15
-33
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE CAST( col2 AS SIGNED ) / - - 93 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE CAST ( col2 AS INTEGER ) / - - 93 IS NULL
----

query II rowsort
SELECT + col0 + - col1 + col2 AS col1, - col0 FROM tab2 cor0
----
18
-46
27
-64
66
-75

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6860
SELECT ALL - - MAX( ALL + + col2 ) + - + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

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

query I rowsort
SELECT - col0 + - 54 FROM tab2 AS cor0
----
-100
-118
-129

query I rowsort
SELECT - 62 AS col1 FROM tab0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT 97 - - col1 FROM tab2
----
148
164
174

query I rowsort
SELECT + - col2 - + + col2 * - + col0 AS col1 FROM tab0 WHERE NOT - 69 IS NULL OR NOT ( - 9 > - + 99 * + ( col0 ) + + col2 )
----
658
860
9504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6865
SELECT - CAST( NULL AS SIGNED ) - 43 AS col0, + 47 FROM tab2
----
NULL
47
NULL
47
NULL
47

skipif mysql # not compatible
query II rowsort label-6865
SELECT - CAST ( NULL AS INTEGER ) - 43 AS col0, + 47 FROM tab2
----
NULL
47
NULL
47
NULL
47

query I rowsort
SELECT - col0 * + - 85 - - ( - col1 ) FROM tab2
----
3859
5363
6308

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + ( - COUNT ( + - col0 ) ) FROM tab1 cor0
----
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6871
SELECT - CAST( + + 99 AS SIGNED ) AS col0, + MIN( ALL - - col1 ) FROM tab1 cor0
----
-99
5

skipif mysql # not compatible
query II rowsort label-6871
SELECT - CAST ( + + 99 AS INTEGER ) AS col0, + MIN ( ALL - - col1 ) FROM tab1 cor0
----
-99
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6872
SELECT DISTINCT - + col1 * + CAST( NULL AS SIGNED ) AS col1, 38 AS col2 FROM tab2 cor0
----
NULL
38

skipif mysql # not compatible
query II rowsort label-6872
SELECT DISTINCT - + col1 * + CAST ( NULL AS INTEGER ) AS col1, 38 AS col2 FROM tab2 cor0
----
NULL
38

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 <= + col1 )
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6878
SELECT ALL - COUNT ( * ) col1 FROM tab2 cor0
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6880
SELECT + 83 DIV - COUNT( ALL - 61 ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-6880
SELECT + 83 / - COUNT ( ALL - 61 ) AS col1 FROM tab2
----
-27

query II rowsort
SELECT ALL - col1 * - 58 AS col1, + 22 + + 94 FROM tab0
----
1218
116
4698
116
58
116

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

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT - 34 / + + col1 FROM tab2
----
0

query I rowsort
SELECT ALL col0 * - ( - + 46 ) AS col0 FROM tab2
----
2116
2944
3450

query II rowsort
SELECT DISTINCT - col0, col2 AS col0 FROM tab2
----
-46
23
-64
40
-75
58

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

query II rowsort
SELECT col2, col0 * + 2 AS col1 FROM tab2
----
23
92
40
128
58
150

query I rowsort
SELECT ALL - col1 + 85 AS col2 FROM tab2
----
18
34
8

query I rowsort
SELECT DISTINCT + + col1 * col1 + + 54 AS col1 FROM tab1 AS cor0
----
2263
250
79

query I rowsort
SELECT ALL col2 + + 92 + + - col1 AS col2 FROM tab1 AS cor0
----
113
146
174

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 > - 91 + 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT COUNT( * ) + - 14 AS col2 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-6891
SELECT COUNT ( * ) + - 14 AS col2 FROM tab0
----
-11

query I rowsort
SELECT ALL 39 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

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

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

query I rowsort
SELECT + 52 - col2 + + col0 AS col1 FROM tab2 AS cor0
----
69
75
76

query I rowsort
SELECT ALL col2 + + + col0 * + 75 * 67 FROM tab0 AS cor0
----
437185
487524
75422

query I rowsort
SELECT ALL 32 + + + col0 FROM tab0 AS cor0
----
119
129
47

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6900
SELECT DISTINCT col1, - ( 57 ) DIV ( + 7 ) - + + col2 FROM tab0
----
1
-107
21
-18
81
-55

skipif mysql # not compatible
query II rowsort label-6900
SELECT DISTINCT col1, - ( 57 ) / ( + 7 ) - + + col2 FROM tab0
----
1
-107
21
-18
81
-55

query I rowsort
SELECT - - col1 AS col0 FROM tab1 WHERE NOT - 20 IS NULL
----
14
47
5

query II rowsort
SELECT DISTINCT + col1, - 10 FROM tab2 AS cor0
----
51
-10
67
-10
77
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT MAX( DISTINCT - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6904
SELECT MAX ( DISTINCT - col0 ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT ALL - col0 + - col1 DIV - 41 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - col0 + - col1 / - 41 FROM tab2
----
-45
-63
-74

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 37
----

query I rowsort
SELECT ( 67 ) + 93 * 91 FROM tab2 WHERE NULL <= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6908
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE col0 * col1 <= 77 * - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE col0 * col1 <= 77 * - CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT - 75 * - 33 AS col2 FROM tab2 WHERE col1 BETWEEN + col1 * 73 AND + col0
----

query I rowsort
SELECT + 68 FROM tab0 WHERE NULL < ( col1 / 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ( - SUM( DISTINCT col0 ) ) col1 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6911
SELECT ( - SUM ( DISTINCT col0 ) ) col1 FROM tab2
----
-185

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

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

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

query I rowsort
SELECT DISTINCT - 75 AS col0 FROM tab2
----
-75

query I rowsort
SELECT ( 74 ) AS col2 FROM tab2
----
74
74
74

query I rowsort
SELECT DISTINCT + 41 * + ( col0 ) AS col0 FROM tab1
----
2091
3485
3731

query I rowsort
SELECT - 18 * col0 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
-1530
-1638
-918

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

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT 35 IS NULL
----
3

query I rowsort
SELECT ALL + 82 + col2 * - col1 AS col0 FROM tab0
----
-128
-17
-3725

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT DISTINCT COUNT( * ) - - COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1
----
6

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

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + MAX ( ALL col0 ) FROM tab1
----
91

query I rowsort
SELECT - col1 * - ( + 3 ) FROM tab0
----
243
3
63

query I rowsort
SELECT col2 * ( - ( col2 ) ) AS col1 FROM tab2 cor0
----
-1600
-3364
-529

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

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

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

query I rowsort
SELECT + 96 * + 85 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT col1 DIV + 83 + - col1 col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6927
SELECT col1 / + 83 + - col1 col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT + COUNT( * ) - 21 AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT + COUNT ( * ) - 21 AS col2 FROM tab0
----
-18

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

query I rowsort
SELECT + - col1 + 74 FROM tab1 AS cor0
----
27
60
69

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 / 4 AND NULL
----

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

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE col2 >= ( + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6935
SELECT ALL COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT MAX( DISTINCT + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6936
SELECT MAX ( DISTINCT + col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + 51 * ( + 63 * - col0 ) FROM tab2 WHERE + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT ALL + MIN( ALL + 32 ) AS col2 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL + MIN ( ALL + 32 ) AS col2 FROM tab1
----
32

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 cor0 WHERE NOT ( - 80 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + - col2 * - 89 AS col2 FROM tab0 AS cor0
----
4183
8811
890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6941
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

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

query I rowsort
SELECT - 84 FROM tab0 WHERE NOT + - 24 NOT BETWEEN col1 AND + col0 + - 93
----

query II rowsort
SELECT 98, + col0 FROM tab1
----
98
51
98
85
98
91

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT IN ( + 22 )
----

query I rowsort
SELECT + col2 * col1 + - col0 FROM tab1
----
1293
210
3105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6946
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col1 + - CAST( - 38 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6946
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col1 + - CAST ( - 38 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < ( col2 )
----

query I rowsort
SELECT ALL + col0 * + - col1 + col2 FROM tab1 AS cor0
----
-366
-4209
-618

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 7 + + 78 * - 36 ) >= ( col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 8 ) BETWEEN NULL AND col1 * col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL - COUNT( * ) * + - 75 + + 11 AS col0 FROM tab1 AS cor0
----
236

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL - COUNT ( * ) * + - 75 + + 11 AS col0 FROM tab1 AS cor0
----
236

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

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL - 63 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT - CAST( 44 AS SIGNED ) AS col2 FROM tab1
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-6956
SELECT - CAST ( 44 AS INTEGER ) AS col2 FROM tab1
----
-44
-44
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6957
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( + 55 AS SIGNED ) - + 86 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6957
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( + 55 AS INTEGER ) - + 86 AND ( NULL )
----

query I rowsort
SELECT 18 + + col0 AS col2 FROM tab0
----
105
115
33

query III rowsort
SELECT * FROM tab2 WHERE - - col1 >= NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 + - col2 ) < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 + + 59 FROM tab2 AS cor0
----
1
19
36

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

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 <= + col0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 10 NOT BETWEEN ( 55 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 - - 61 + + + col2 + col0 FROM tab1
----
210
222
267

onlyif mysql # aggregate syntax: 
query II rowsort label-6967
SELECT DISTINCT COUNT( * ) AS col2, - 13 FROM tab0
----
3
-13

skipif mysql # not compatible
query II rowsort label-6967
SELECT DISTINCT COUNT ( * ) AS col2, - 13 FROM tab0
----
3
-13

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

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

query I rowsort
SELECT DISTINCT - 92 - 27 AS col1 FROM tab0 cor0
----
-119

query I rowsort
SELECT ALL - col0 * 10 + 88 + + 67 AS col0 FROM tab2 AS cor0
----
-305
-485
-595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6971
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) * + + 7 + + 54 + col2 AS col1 FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT - 41 - + - col1 FROM tab1 AS cor0
----
-27
-36
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT 12 * MAX( 59 ) * - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-2127

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT 12 * MAX ( 59 ) * - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-2127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT 82 <= - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT 82 <= - 58
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6976
SELECT ALL - col0 DIV 31 * + - col0 AS col0, col1 col0 FROM tab1 AS cor0
----
170
5
182
47
51
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6976
SELECT ALL - col0 / 31 * + - col0 AS col0, col1 col0 FROM tab1 AS cor0
----
170
5
182
47
51
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT - SUM( ALL + col2 ) FROM tab2 WHERE NOT + col0 * col2 NOT IN ( - col2 * 71 * + ( col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT - SUM ( ALL + col2 ) FROM tab2 WHERE NOT + col0 * col2 NOT IN ( - col2 * 71 * + ( col2 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT + col2 DIV ( col0 ) AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6978
SELECT + col2 / ( col0 ) AS col1 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 90 ) * col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col2 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + ( - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + + 50 - - col2 ) <= NULL
----

query I rowsort
SELECT ALL 68 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL - 91 FROM tab1 cor0 WHERE - ( + - 7 ) IS NULL
----

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

query I rowsort
SELECT ALL + 41 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT 51 / col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT + ( - + col2 ), 60 AS col1, 47 AS col2 FROM tab0 AS cor0
----
9 values hashing to 248a0b58377c12f41ab573aeb21942ec

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT - col1 DIV 20 col0 FROM tab1 AS cor0
----
-2
0
0

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

query I rowsort
SELECT - 8 + 66 * + ( + col0 ) FROM tab1 AS cor0
----
3358
5602
5998

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * - - col1 + - + 22 col2 FROM tab2 AS cor0
----
4109
5405
6215

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 25 - - - col2 ) IS NOT NULL
----

query I rowsort
SELECT + 60 * + - ( + col0 ) FROM tab1
----
-3060
-5100
-5460

query II rowsort
SELECT 7, col1 AS col1 FROM tab0
----
7
1
7
21
7
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6997
SELECT ALL 49 * + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6997
SELECT ALL 49 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

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

query I rowsort
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE NOT + col2 = 37 * - col0 * + 0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT DISTINCT - + 23 * MAX( ALL - col2 ) * + + COUNT( * ) FROM tab1 AS cor0
----
4071

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT - + 23 * MAX ( ALL - col2 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
4071

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 ) >= 23 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-7001
SELECT + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 ) >= 23 / - col1
----
0

query I rowsort
SELECT + col0 * + - 31 + 87 + ( - col2 ) + col2 FROM tab2 AS cor0 WHERE NOT - 38 BETWEEN - + col2 AND 72 + 1
----
-1339

onlyif mysql # aggregate syntax: 
query II rowsort label-7003
SELECT ( COUNT( * ) ) AS col1, + 68 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0
68

skipif mysql # not compatible
query II rowsort label-7003
SELECT ( COUNT ( * ) ) AS col1, + 68 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0
68

onlyif mysql # DIV for integer division: 
query II rowsort label-7004
SELECT - + 26 DIV - 20 AS col1, - col0 * + col1 FROM tab0 AS cor0
----
1
-1215
1
-1827
1
-97

skipif mysql # not compatible
query II rowsort label-7004
SELECT - + 26 / - 20 AS col1, - col0 * + col1 FROM tab0 AS cor0
----
1
-1215
1
-1827
1
-97

query II rowsort
SELECT DISTINCT ( - 95 ), col2 * + col1 AS col0 FROM tab2 cor0
----
-95
1173
-95
3080
-95
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL ( + + MIN( col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL ( + + MIN ( col2 ) ) FROM tab0
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ( - - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7009
SELECT ( - - COUNT ( * ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND + 93 + - 34 * 16
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7011
SELECT - COUNT( * ), ( - + 79 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0
-79

skipif mysql # not compatible
query II rowsort label-7011
SELECT - COUNT ( * ), ( - + 79 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7012
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( + col1 AS SIGNED ) * + - col2 + ( - - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7012
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( + col1 AS INTEGER ) * + - col2 + ( - - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 43, - 67 AS col1 FROM tab0 AS cor0
----
43
-67
43
-67
43
-67

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 51 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT DISTINCT - col0 * + - 78 + + ( - col2 ) DIV - col0 FROM tab0
----
1173
6786
7567

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT - col0 * + - 78 + + ( - col2 ) / - col0 FROM tab0
----
1173
6786
7567

query II rowsort
SELECT DISTINCT + 48, + ( + + 98 ) AS col0 FROM tab0 AS cor0
----
48
98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - 69 col1 FROM tab1 cor0
----
-22
-55
-64

query II rowsort
SELECT + ( - 9 ) AS col0, col2 FROM tab0 AS cor0
----
-9
10
-9
47
-9
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT DISTINCT - - COUNT( * ) + COUNT( - 27 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT - - COUNT ( * ) + COUNT ( - 27 ) FROM tab1 AS cor0
----
6

query II rowsort
SELECT + + 79, + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
79
-51
79
-85
79
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT + MAX( ALL 59 ) FROM tab2 cor0
----
59

skipif mysql # not compatible
query I rowsort label-7022
SELECT + MAX ( ALL 59 ) FROM tab2 cor0
----
59

query II rowsort
SELECT ALL col2 AS col0, - col0 FROM tab2 AS cor0 WHERE ( NULL ) < - + 49
----

query I rowsort
SELECT DISTINCT 49 + + - col2 FROM tab2
----
-9
26
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL + COUNT( - 5 ) - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL + COUNT ( - 5 ) - + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col0 - + col1 + - - 23 * - 62 * + - col0 * - col1 FROM tab0
----
-138226
-1732656
-2605236

query I rowsort
SELECT ALL + + col0 + + + col0 AS col2 FROM tab2 WHERE NOT + col0 * + 56 * - col0 * col1 + col2 * + + col1 < 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT - COUNT( * ) * 91 + COUNT( ALL + - col2 ) AS col0 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-7028
SELECT - COUNT ( * ) * 91 + COUNT ( ALL + - col2 ) AS col0 FROM tab1 AS cor0
----
-270

query I rowsort
SELECT ALL - 57 AS col0 FROM tab2 AS cor0
----
-57
-57
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT ALL 67 * - 15 * + + COUNT( + - col0 ) FROM tab1
----
-3015

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL 67 * - 15 * + + COUNT ( + - col0 ) FROM tab1
----
-3015

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

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

query I rowsort
SELECT ALL + + col1 * + + col0 FROM tab0 AS cor0
----
1215
1827
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7035
SELECT 25 DIV + - 68 + + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7035
SELECT 25 / + - 68 + + col0 FROM tab0 AS cor0
----
15
87
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 71 col2 FROM tab1
----
4189
4828
6816

query II rowsort
SELECT DISTINCT - 68 * + - col2 AS col1, - 96 AS col2 FROM tab0
----
3196
-96
6732
-96
680
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT ALL - ( col1 ) DIV - 13 AS col1 FROM tab2
----
3
5
5

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL - ( col1 ) / - 13 AS col1 FROM tab2
----
3
5
5

query I rowsort
SELECT DISTINCT col0 * - 29 AS col2 FROM tab2
----
-1334
-1856
-2175

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 * + col1 + + + 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 93 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 75 <> + col1 * - 0 + + 91 * + - 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT ( CAST( - col2 AS SIGNED ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7045
SELECT ( CAST ( - col2 AS INTEGER ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - 12 + + col1 AS col0 FROM tab0
----
-11
69
9

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col0 - + 89 * 86, 67, 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL MIN( + 89 ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL MIN ( + 89 ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT col0 + 3 FROM tab2 AS cor0
----
49
67
78

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0 WHERE + 70 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-7052
SELECT + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT 52 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7053
SELECT 52 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - col1, col1 AS col2 FROM tab0 cor0
----
-1
1
-21
21
-81
81

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

query I rowsort
SELECT ALL - 35 - - col2 AS col1 FROM tab2
----
-12
23
5

query I rowsort
SELECT ALL 0 - col0 * - + col2 * + - col1 * - - col1 + + + 20 AS col1 FROM tab1
----
-125355
-13669272
-959596

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT DISTINCT COUNT( * ) - + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT + ( + col2 ) DIV + col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7060
SELECT + ( + col2 ) / + col2 AS col2 FROM tab1
----
1
1
1

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

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

query II rowsort
SELECT ALL + ( col2 ) AS col1, + col0 AS col2 FROM tab1 cor0
----
59
85
68
91
96
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL + ( + MIN( 4 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + 48 + - col0 IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL + ( + MIN ( 4 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + 48 + - col0 IS NULL
----
4

query I rowsort
SELECT ALL col0 * 98 FROM tab2 cor0
----
4508
6272
7350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7066
SELECT + col1 + - + col2 + CAST( - col1 AS SIGNED ) * + - col0 FROM tab2 AS cor0 WHERE NOT ( 95 ) - 56 * + col1 * col2 * - + col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7066
SELECT + col1 + - + col2 + CAST ( - col1 AS INTEGER ) * + - col0 FROM tab2 AS cor0 WHERE NOT ( 95 ) - 56 * + col1 * col2 * - + col1 <> NULL
----

query I rowsort
SELECT + ( + - 5 ) * - 84 FROM tab2 AS cor0
----
420
420
420

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT - MAX( + ( - col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7068
SELECT - MAX ( + ( - col2 ) ) FROM tab2
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT DISTINCT - 18 * - ( - - MAX( ALL col1 ) ) AS col0 FROM tab0 AS cor0
----
1458

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT - 18 * - ( - - MAX ( ALL col1 ) ) AS col0 FROM tab0 AS cor0
----
1458

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

query I rowsort
SELECT + col2 * 5 AS col2 FROM tab0
----
235
495
50

query I rowsort
SELECT ALL - col0 * + + col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT DISTINCT + 94, + 13 AS col0 FROM tab0
----
94
13

query I rowsort
SELECT DISTINCT + ( - 98 ) * + col2 FROM tab1
----
-5782
-6664
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * + + 96 col1 FROM tab0
----
-4992
-4992
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT SUM( + 25 ) AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT SUM ( + 25 ) AS col0 FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL - COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7080
SELECT ALL - COUNT( * ) col1 FROM tab2 WHERE + CAST( - 30 AS SIGNED ) <= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7080
SELECT ALL - COUNT ( * ) col1 FROM tab2 WHERE + CAST ( - 30 AS INTEGER ) <= ( NULL )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7082
SELECT ALL 70 AS col0, CAST( 39 AS SIGNED ) AS col0 FROM tab2
----
70
39
70
39
70
39

skipif mysql # not compatible
query II rowsort label-7082
SELECT ALL 70 AS col0, CAST ( 39 AS INTEGER ) AS col0 FROM tab2
----
70
39
70
39
70
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT - 71 + + + COUNT( ALL - - col2 ) FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7083
SELECT - 71 + + + COUNT ( ALL - - col2 ) FROM tab2 AS cor0
----
-68

query I rowsort
SELECT DISTINCT + + col1 + 94 AS col2 FROM tab1 AS cor0
----
108
141
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 50 + + 29 col1 FROM tab1 cor0
----
-221
-2321
-671

onlyif mysql # DIV for integer division: 
query I rowsort label-7087
SELECT DISTINCT - 63 + - + col0 DIV + + col1 FROM tab0 AS cor0
----
-160
-63
-67

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT - 63 + - + col0 / + + col1 FROM tab0 AS cor0
----
-160
-63
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT DISTINCT col2 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT col2 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 94 - - col0 + col0 AS col0 FROM tab2 AS cor0
----
186
222
244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7090
SELECT ALL + col0 + + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + col0 + + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL 36 + + + MAX( - + col2 ) - MIN( col1 ) FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL 36 + + + MAX ( - + col2 ) - MIN ( col1 ) FROM tab2 AS cor0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT DISTINCT - 75 + - 58 DIV 10 AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT - 75 + - 58 / 10 AS col1 FROM tab1
----
-80

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

query I rowsort
SELECT 8 + + 72 AS col0 FROM tab2
----
80
80
80

query I rowsort
SELECT 97 + + col2 FROM tab2
----
120
137
155

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

query I rowsort
SELECT - col1 + 27 AS col1 FROM tab0
----
-54
26
6

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

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

query III rowsort
SELECT * FROM tab0 WHERE + col2 < + col2
----

query I rowsort
SELECT + col1 + 98 + + col0 * + - col1 FROM tab1
----
-322
-4132
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT SUM( DISTINCT - + 63 ) col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7101
SELECT SUM ( DISTINCT - + 63 ) col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 30 col1 FROM tab0 WHERE NOT ( 39 > col0 )
----
29
9

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

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

query II rowsort
SELECT DISTINCT - + col2 AS col1, col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - COUNT( DISTINCT - 31 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7108
SELECT - COUNT ( DISTINCT - 31 ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - - 25 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-2175
-2425
-375

query I rowsort
SELECT ALL - col1 * - 52 + + - 94 FROM tab1 AS cor0
----
166
2350
634

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7111
SELECT col1 AS col2, CAST( NULL AS DECIMAL ) / col2 AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7111
SELECT col1 AS col2, CAST ( NULL AS REAL ) / col2 AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
SELECT DISTINCT CAST( - - col1 AS SIGNED ) * col1 + 36 FROM tab2 cor0
----
2637
4525
5965

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) * col1 + 36 FROM tab2 cor0
----
2637
4525
5965

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT + COUNT( ALL - - 7 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7114
SELECT + COUNT ( ALL - - 7 ) AS col2 FROM tab2 AS cor0
----
3

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

query I rowsort
SELECT DISTINCT 2 * + - 72 FROM tab1 AS cor0
----
-144

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7119
SELECT ALL CAST( col2 AS SIGNED ) col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7119
SELECT ALL CAST ( col2 AS INTEGER ) col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - - col2 + col2 AS col0 FROM tab0 WHERE + col0 > - + col0 * col1
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7121
SELECT ALL * FROM tab2 WHERE + - col0 NOT IN ( - CAST( 78 AS SIGNED ), 8, 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7121
SELECT ALL * FROM tab2 WHERE + - col0 NOT IN ( - CAST ( 78 AS INTEGER ), 8, 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query II rowsort
SELECT ALL - - ( - + col2 ) AS col1, ( - col0 ) AS col1 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT 82 + - col1 + - col2 * - col2 AS col0 FROM tab0
----
161
2210
9882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT + col0 * + col0 + - + col0 FROM tab0 cor0
----
210
7482
9312

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 86 * col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT + MAX( DISTINCT + - ( - ( + - col2 ) ) ) FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * + col0 + - col2, - col1 + - col1 * + ( + + col1 ), col0 * - col1 * col1, 15, + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT + MAX ( DISTINCT + - ( - ( + - col2 ) ) ) FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * + col0 + - col2, - col1 + - col1 * + ( + + col1 ), col0 * - col1 * col1, 15, + col2 )
----
NULL

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

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

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

query I rowsort
SELECT + col2 * 75 * col0 AS col1 FROM tab0
----
52875
65250
720225

query I rowsort
SELECT ALL 53 * - 64 AS col0 FROM tab0
----
-3392
-3392
-3392

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT ALL + ( ( col2 ) ) DIV 16 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL + ( ( col2 ) ) / 16 FROM tab2
----
1
2
3

query I rowsort
SELECT + col0 + + - col1 * - col0 AS col0 FROM tab0 WHERE NOT - col0 / + 52 <> NULL
----

query I rowsort
SELECT ALL - + ( ( + col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT 66 * COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-7137
SELECT 66 * COUNT ( * ) FROM tab2
----
198

query II rowsort
SELECT col2 AS col1, 17 FROM tab2
----
23
17
40
17
58
17

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

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT + SUM( - 30 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT + SUM ( - 30 ) FROM tab2 AS cor0
----
-90

query I rowsort
SELECT ALL + + ( col0 ) + + 28 * + 1 FROM tab1 AS cor0
----
113
119
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 85 + col1 > - col2 * - col1
----

query I rowsort
SELECT ALL + - ( - col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 51 col1, 97 + + + col2 AS col2 FROM tab1
----
51
156
51
165
51
193

query I rowsort
SELECT - col1 * + 53 AS col0 FROM tab2
----
-2703
-3551
-4081

query II rowsort
SELECT DISTINCT col1, col0 * + col1 FROM tab0
----
1
97
21
1827
81
1215

query I rowsort
SELECT DISTINCT - col0 * + 47 AS col2 FROM tab0 WHERE NOT + + 31 + - col1 IS NULL
----
-4089
-4559
-705

query I rowsort
SELECT - col2 FROM tab2 WHERE + - 33 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT SUM( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7153
SELECT + col1 + + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-7153
SELECT + col1 + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT ALL col0 AS col1, - col0 + - col2 FROM tab2 cor0
----
46
-69
64
-104
75
-133

query II rowsort
SELECT col2 * + col2 + - 2 AS col0, 9 * + 58 FROM tab2
----
1598
522
3362
522
527
522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7156
SELECT - 43 / - CAST( NULL AS SIGNED ) * - 30 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT - 43 / - CAST ( NULL AS INTEGER ) * - 30 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT + + 9 * COUNT( * ) * 3 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
243

skipif mysql # not compatible
query I rowsort label-7157
SELECT + + 9 * COUNT ( * ) * 3 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT - SUM( DISTINCT - 39 ) FROM tab1 WHERE NULL > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT - SUM ( DISTINCT - 39 ) FROM tab1 WHERE NULL > col1
----
NULL

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

query I rowsort
SELECT + - col2 - - - col0 FROM tab2 cor0
----
-104
-133
-69

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

query I rowsort
SELECT - - col2 * + col2 * col2 - + col2 * col1 + - + col2 AS col1 FROM tab0 AS cor0
----
780
970101
99969

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) < NULL
----

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

query II rowsort
SELECT + col1, col2 * - col1 AS col2 FROM tab0
----
1
-99
21
-210
81
-3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + col1 * - - col0 * col0 * + col2 col2 FROM tab2
----
114175128
1639406250
807403520

query II rowsort
SELECT DISTINCT + 50 AS col1, col2 * ( - col0 ) FROM tab1 WHERE + col0 NOT BETWEEN + 30 AND 69
----
50
-5015
50
-6188

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

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

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT - - 48 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT COUNT( * ) * - 64 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT COUNT ( * ) * - 64 FROM tab1
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT ALL col0 DIV - 74 AS col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL col0 / - 74 AS col2 FROM tab0
----
-1
-1
0

query I rowsort
SELECT + col2 * 47 FROM tab0 cor0
----
2209
4653
470

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 9 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL - col1 * - 24 + - 20 FROM tab0 AS cor0
----
1924
4
484

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col0, 26 - + - col2 + - 89 / 62 )
----

query I rowsort
SELECT 57 + - 78 * + + col0 AS col2 FROM tab2 AS cor0
----
-3531
-4935
-5793

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7180
SELECT DISTINCT + col1, 92 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + + ( col1 ) / - col2 * + - ( + 43 ) * - 51 NOT IN ( col0, - col0 * - col0 )
----

skipif mysql # not compatible
query II rowsort label-7180
SELECT DISTINCT + col1, 92 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) + + ( col1 ) / - col2 * + - ( + 43 ) * - 51 NOT IN ( col0, - col0 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 = + - ( + col0 ) * col0 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7183
SELECT 52 DIV + - col1 AS col2 FROM tab0
----
-2
-52
0

skipif mysql # not compatible
query I rowsort label-7183
SELECT 52 / + - col1 AS col2 FROM tab0
----
-2
-52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT 60 * MAX( ALL col0 ) FROM tab1
----
5460

skipif mysql # not compatible
query I rowsort label-7184
SELECT 60 * MAX ( ALL col0 ) FROM tab1
----
5460

query I rowsort
SELECT DISTINCT col2 * + 74 AS col1 FROM tab2
----
1702
2960
4292

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

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

query I rowsort
SELECT 97 * + col1 FROM tab1 AS cor0
----
1358
4559
485

query I rowsort
SELECT ALL - + ( - - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col1 * col2 + - - 19 AS col1 FROM tab1 AS cor0
----
1363
314
3215

query I rowsort
SELECT ALL col1 - - + col0 FROM tab0
----
108
96
98

query I rowsort
SELECT - col0 + - col0 - + + col2 FROM tab1
----
-198
-229
-250

onlyif mysql # DIV for integer division: 
query I rowsort label-7192
SELECT + 60 + + col0 DIV - col2 FROM tab2
----
58
59
59

skipif mysql # not compatible
query I rowsort label-7192
SELECT + 60 + + col0 / - col2 FROM tab2
----
58
59
59

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

query I rowsort
SELECT 21 * - + col0 + - + col1 AS col1 FROM tab2 AS cor0
----
-1017
-1421
-1642

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + - COUNT( * ) * - 24 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7195
SELECT + - COUNT ( * ) * - 24 FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7196
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - col1 * - - ( + + CAST( NULL AS SIGNED ) ) - + col1 <> NULL )
----

skipif mysql # not compatible
query III rowsort label-7196
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - col1 * - - ( + + CAST ( NULL AS INTEGER ) ) - + col1 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT + COUNT( - - 64 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT + COUNT ( - - 64 ) AS col0 FROM tab0 AS cor0
----
3

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

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

query II rowsort
SELECT ALL - col0, - 87 * 92 AS col0 FROM tab2 cor0
----
-46
-8004
-64
-8004
-75
-8004

query I rowsort
SELECT ALL - 63 * ( - col0 ) FROM tab0
----
5481
6111
945

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

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

query I rowsort
SELECT DISTINCT + col0 * + 37 FROM tab0
----
3219
3589
555

query I rowsort
SELECT ALL 14 * 82 * col2 AS col2 FROM tab0
----
113652
11480
53956

onlyif mysql # DIV for integer division: 
query II rowsort label-7204
SELECT + col2 DIV - + col2 col2, - col0 + + 79 AS col1 FROM tab2
----
-1
15
-1
33
-1
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7204
SELECT + col2 / - + col2 col2, - col0 + + 79 AS col1 FROM tab2
----
-1
15
-1
33
-1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT DISTINCT - COUNT( ALL + 39 ) * - MIN( ( - - 20 ) ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT - COUNT ( ALL + 39 ) * - MIN ( ( - - 20 ) ) FROM tab0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7206
SELECT DISTINCT 59 DIV COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT 59 / COUNT ( * ) FROM tab2
----
19

query I rowsort
SELECT DISTINCT 12 * - 38 AS col2 FROM tab2
----
-456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7208
SELECT ALL ( - CAST( NULL AS SIGNED ) ), col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7208
SELECT ALL ( - CAST ( NULL AS INTEGER ) ), col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT - - col2 * - col0 AS col1, col1 AS col0 FROM tab1 cor0
----
-4896
14
-5015
5
-6188
47

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = - 67 * - + col1 * - col1 / - col1 * - col0
----

query I rowsort
SELECT ALL 46 * col0 AS col2 FROM tab1
----
2346
3910
4186

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT DISTINCT - 85 DIV - + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT - 85 / - + col0 FROM tab1
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 74 col1 FROM tab1 WHERE NOT NULL NOT IN ( - 83 + + + col1 * - + 7 )
----

query I rowsort
SELECT + 65 + + 67 + col0 * col1 AS col2 FROM tab0
----
1347
1959
229

query I rowsort
SELECT DISTINCT - + col0 + col1 * col2 * - col2 * - 74 AS col2 FROM tab1 cor0
----
1287885
16082181
9547725

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 37 * + - col2 IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - + 43 AS col1 FROM tab1 AS cor0
----
-128
-134
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT + SUM( 18 ) + + 3 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-7221
SELECT + SUM ( 18 ) + + 3 FROM tab0
----
57

query III rowsort
SELECT * FROM tab2 WHERE - ( + col0 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT COUNT ( * ) / 79 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7224
SELECT DISTINCT - CAST( + MAX( - - col2 ) AS SIGNED ) + + CAST( NULL AS SIGNED ), - SUM( + + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
-195

skipif mysql # not compatible
query II rowsort label-7224
SELECT DISTINCT - CAST ( + MAX ( - - col2 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ), - SUM ( + + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
-195

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab1 cor0
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT - 72 + + COUNT( * ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7227
SELECT - 72 + + COUNT ( * ) FROM tab1 AS cor0
----
-69

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 38 col2, col2 FROM tab0 AS cor0
----
-38
10
-38
47
-38
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT + 37 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-7230
SELECT + 37 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT 10 * - SUM( - col1 ) - - 90 AS col0 FROM tab0 AS cor0
----
1120

skipif mysql # not compatible
query I rowsort label-7231
SELECT 10 * - SUM ( - col1 ) - - 90 AS col0 FROM tab0 AS cor0
----
1120

onlyif mysql # DIV for integer division: 
query I rowsort label-7232
SELECT - 52 DIV col1 FROM tab1 cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-7232
SELECT - 52 / col1 FROM tab1 cor0
----
-1
-10
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT MIN( col2 ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT MIN ( col2 ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT DISTINCT SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT - 11 * - col2 FROM tab0 AS cor0
----
1089
110
517

query I rowsort
SELECT DISTINCT - - col1 * + 71 FROM tab0 AS cor0
----
1491
5751
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7240
SELECT - + COUNT( * ) AS col0, - MAX( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 + - col1, ( + - col1 ) )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7240
SELECT - + COUNT ( * ) AS col0, - MAX ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 + - col1, ( + - col1 ) )
----
0
NULL

query I rowsort
SELECT DISTINCT - 3 * - + col0 AS col0 FROM tab0
----
261
291
45

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 >= + 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL - 53 * + ( + col2 ) FROM tab2
----
-1219
-2120
-3074

query II rowsort
SELECT 98 AS col2, - col0 * + col1 * 9 AS col0 FROM tab2
----
98
-21114
98
-44352
98
-45225

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

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

query II rowsort
SELECT ALL 83, col1 AS col1 FROM tab0
----
83
1
83
21
83
81

query I rowsort
SELECT + ( + - col0 ) FROM tab0
----
-15
-87
-97

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * - ( + 36 ) AS col2 FROM tab2 AS cor0
----
-1656
-2304
-2700

query II rowsort
SELECT ALL + col2 AS col0, + col1 - - col0 + + + 15 + col0 * - 92 + - col2 AS col1 FROM tab0 AS cor0 WHERE NULL >= + 72 / - 44 + + col2 * - col1
----

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

skipif mysql # not compatible
query I rowsort label-7254
SELECT - MAX ( ALL - + col2 ) FROM tab1 AS cor0
----
59

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7257
SELECT + COUNT( * ) * - 27 col1, 0 FROM tab1
----
-81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7257
SELECT + COUNT ( * ) * - 27 col1, 0 FROM tab1
----
-81
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7260
SELECT col2 + - CAST( NULL AS SIGNED ) AS col2, - col2 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7262
SELECT - col1 + CAST( - CAST( + + col0 AS SIGNED ) AS SIGNED ) FROM tab1 cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-7262
SELECT - col1 + CAST ( - CAST ( + + col0 AS INTEGER ) AS INTEGER ) FROM tab1 cor0
----
-138
-65
-90

query II rowsort
SELECT DISTINCT - col2 + + col1 AS col2, col2 AS col0 FROM tab0 AS cor0
----
-98
99
11
10
34
47

query I rowsort
SELECT DISTINCT - 37 + col1 FROM tab0 AS cor0
----
-16
-36
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT + MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7266
SELECT + MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

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

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

query I rowsort
SELECT DISTINCT - 8 - - col1 FROM tab0
----
-7
13
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7270
SELECT 60 DIV - CAST( + col2 AS SIGNED ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7270
SELECT 60 / - CAST ( + col2 AS INTEGER ) FROM tab2
----
-1
-1
-2

query II rowsort
SELECT - col2 AS col0, col1 + - col2 FROM tab0
----
-10
11
-47
34
-99
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7272
SELECT * FROM tab2 cor0 WHERE col0 * + CAST( - + col2 AS SIGNED ) <> + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7272
SELECT * FROM tab2 cor0 WHERE col0 * + CAST ( - + col2 AS INTEGER ) <> + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 * - 44 AS col1 FROM tab1 AS cor0
----
2244
3740
4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 - col1 col1 FROM tab0 AS cor0
----
-4
-64
16

query I rowsort
SELECT + 72 - - 70 AS col0 FROM tab0 AS cor0
----
142
142
142

query I rowsort
SELECT ALL + - col2 + + 57 FROM tab0 AS cor0
----
-42
10
47

query I rowsort
SELECT 94 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + + - 91 - - col1 - - + 77 + col1 * - 83 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT + MIN( ALL 65 ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT + MIN ( ALL 65 ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

query I rowsort
SELECT DISTINCT - 11 * - col0 * + - 68 AS col1 FROM tab2 AS cor0 WHERE NOT + ( + - col0 ) IS NULL
----
-34408
-47872
-56100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7282
SELECT 67 + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * + SUM( DISTINCT - - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT 67 + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * + SUM ( DISTINCT - - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + col0 * + 83 * + 98 AS col0 FROM tab1
----
39824064
40792010
50333192

query I rowsort
SELECT - ( + + col1 ) AS col2 FROM tab0
----
-1
-21
-81

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

skipif mysql # not compatible
query I rowsort label-7285
SELECT - ( + COUNT ( col1 ) ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7286
SELECT - col1 AS col2, 52 DIV - - col1 AS col1 FROM tab0
----
-1
52
-21
2
-81
0

skipif mysql # not compatible
query II rowsort label-7286
SELECT - col1 AS col2, 52 / - - col1 AS col1 FROM tab0
----
-1
52
-21
2
-81
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7287
SELECT - ( CAST( - - 56 AS SIGNED ) ) FROM tab1
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-7287
SELECT - ( CAST ( - - 56 AS INTEGER ) ) FROM tab1
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7288
SELECT - col0 DIV + CAST( NULL AS SIGNED ) * - 2 AS col1, CAST( - col2 AS SIGNED ) DIV 20 FROM tab2
----
NULL
-1
NULL
-2
NULL
-2

skipif mysql # not compatible
query II rowsort label-7288
SELECT - col0 / + CAST ( NULL AS INTEGER ) * - 2 AS col1, CAST ( - col2 AS INTEGER ) / 20 FROM tab2
----
NULL
-1
NULL
-2
NULL
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7289
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN - 38 + - 65 + - - CAST( NULL AS SIGNED ) / + col0 * CAST( - col0 AS SIGNED ) * col2 AND col1
----

skipif mysql # not compatible
query III rowsort label-7289
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN - 38 + - 65 + - - CAST ( NULL AS INTEGER ) / + col0 * CAST ( - col0 AS INTEGER ) * col2 AND col1
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT - col2 * - + CAST( col2 AS SIGNED ) * col2 - col1 + - col0 col0 FROM tab2
----
12070
194970
63859

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7294
SELECT - col2 * - + CAST ( col2 AS INTEGER ) * col2 - col1 + - col0 col0 FROM tab2
----
12070
194970
63859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT + MIN( + 18 ) * - MAX( ALL - col2 ) FROM tab1 WHERE + + CAST( - - 10 AS SIGNED ) / ( + 64 ) + + - col0 * + col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT + MIN ( + 18 ) * - MAX ( ALL - col2 ) FROM tab1 WHERE + + CAST ( - - 10 AS INTEGER ) / ( + 64 ) + + - col0 * + col1 < NULL
----
NULL

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

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

query I rowsort
SELECT 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( + 46 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7299
SELECT - CAST( + + MAX( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7299
SELECT - CAST ( + + MAX ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL 90 + + col1 * + ( + - col1 ) AS col2 FROM tab2 cor0
----
-2511
-4399
-5839

query I rowsort
SELECT + col0 - - 98 FROM tab1 AS cor0
----
149
183
189

query I rowsort
SELECT - col1 - + col1 + + 91 FROM tab2 AS cor0
----
-11
-43
-63

query I rowsort
SELECT ALL + + col1 + - 20 FROM tab0 AS cor0
----
-19
1
61

query I rowsort
SELECT - 68 - - col2 * - col2 FROM tab2 cor0
----
-1668
-3432
-597

query I rowsort
SELECT + col2 - - col2 * + - col1 * + - col2 + - 21 + - col1 FROM tab0
----
178874
2068
9878

query I rowsort
SELECT ALL + + 0 FROM tab1 WHERE NOT - - 86 * 99 IS NULL
----
0
0
0

query I rowsort
SELECT 38 * + 55 + col1 AS col0 FROM tab1
----
2095
2104
2137

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 WHERE NOT + 52 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 52 IS NOT NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + 26 / col0 * - + col0 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - col1 + 42 * - col0 AS col2 FROM tab0 AS cor0
----
-3675
-4075
-711

query I rowsort
SELECT ALL + col0 + 73 * 77 FROM tab0 AS cor0
----
5636
5708
5718

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT 92 * - MAX( DISTINCT 52 ) + - 49 AS col0 FROM tab0 AS cor0 WHERE NOT - 30 IS NULL
----
-4833

skipif mysql # not compatible
query I rowsort label-7315
SELECT 92 * - MAX ( DISTINCT 52 ) + - 49 AS col0 FROM tab0 AS cor0 WHERE NOT - 30 IS NULL
----
-4833

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 35 / - 23 * + - col1 >= - + ( col0 ) + - col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT + 82 * COUNT( * ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-7320
SELECT + 82 * COUNT ( * ) FROM tab0 AS cor0
----
246

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 28 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col0 col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7324
SELECT - + 42 * + CAST( NULL AS SIGNED ) + 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT ALL - + 43 + col2 DIV col1 FROM tab0 AS cor0
----
-43
-43
56

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL - + 43 + col2 / col1 FROM tab0 AS cor0
----
-43
-43
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT ALL col1 * - col1 + - ( col1 ) * 69 DIV col1 AS col1 FROM tab2 AS cor0
----
-2670
-4558
-5998

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL col1 * - col1 + - ( col1 ) * 69 / col1 AS col1 FROM tab2 AS cor0
----
-2670
-4558
-5998

query II rowsort
SELECT + col2 * - + col1, col0 FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97

query I rowsort
SELECT DISTINCT - col1 + - + col1 * - 84 FROM tab1 cor0
----
1162
3901
415

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - 80 * col1 + + + col0 FROM tab2 AS cor0
----
208126
359195
474384

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

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

query I rowsort
SELECT + 78 + + + col0 AS col0 FROM tab0 AS cor0
----
165
175
93

query I rowsort
SELECT DISTINCT col0 + - - col2 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT ALL + + 14 + col2 AS col1 FROM tab2 AS cor0
----
37
54
72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <> + + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL 68 + + - COUNT( ALL + 75 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL 68 + + - COUNT ( ALL + 75 ) FROM tab2 AS cor0
----
65

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

skipif mysql # not compatible
query I rowsort label-7341
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 83 = col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - col1 * ( col1 )
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col0 - col2 <= - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * - col0 * - - col2 AS col2 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query II rowsort label-7347
SELECT + 47, + COUNT( - 65 ) col2 FROM tab2 WHERE - ( + col0 ) IS NOT NULL AND NULL < + col0
----
47
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7347
SELECT + 47, + COUNT ( - 65 ) col2 FROM tab2 WHERE - ( + col0 ) IS NOT NULL AND NULL < + col0
----
47
0

query I rowsort
SELECT ALL col0 * - + 34 * - col0 FROM tab0
----
257346
319906
7650

query I rowsort
SELECT 50 * + col1 FROM tab2 AS cor0
----
2550
3350
3850

query I rowsort
SELECT ALL + - 5 * + + 64 * - col1 AS col0 FROM tab0 AS cor0
----
25920
320
6720

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

query I rowsort
SELECT col0 * - - col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7353
SELECT DISTINCT + 38 * ( 19 ) / CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT + 38 * ( 19 ) / CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT 70 DIV - + COUNT( + 18 ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7354
SELECT 70 / - + COUNT ( + 18 ) FROM tab0 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 67, col2 * - col0 col1 FROM tab1 WHERE NOT - - col1 + 51 * - + 88 * + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7356
SELECT * FROM tab0 cor0 WHERE NOT - 79 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7356
SELECT * FROM tab0 cor0 WHERE NOT - 79 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

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

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

query II rowsort
SELECT ALL - col0 AS col0, 29 * + 11 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7360
SELECT ALL COUNT( * ) * + - 90 * COUNT( ALL - + ( + CAST( + col2 AS SIGNED ) ) ) col0 FROM tab1 AS cor0
----
-810

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7360
SELECT ALL COUNT ( * ) * + - 90 * COUNT ( ALL - + ( + CAST ( + col2 AS INTEGER ) ) ) col0 FROM tab1 AS cor0
----
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7361
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ALL - COUNT( - 91 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL - COUNT ( - 91 ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE ( + 34 + - 56 + - 44 / - 10 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL 14 + - COUNT( * ) AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL 14 + - COUNT ( * ) AS col2 FROM tab2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7365
SELECT * FROM tab0 WHERE + + col1 IN ( - col2, + col1 + - col2, - col2, + 51 - CAST( + col1 AS SIGNED ) * - col1, + 33 )
----

skipif mysql # not compatible
query III rowsort label-7365
SELECT * FROM tab0 WHERE + + col1 IN ( - col2, + col1 + - col2, - col2, + 51 - CAST ( + col1 AS INTEGER ) * - col1, + 33 )
----

query I rowsort
SELECT + - col1 + + - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-110
-115
-64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 95 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( 80 ) AS col1 FROM tab1
----
80
80
80

query I rowsort
SELECT + col0 * ( 43 ) AS col1 FROM tab0 WHERE NOT + ( + ( - col2 ) ) IS NULL
----
3741
4171
645

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

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

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

skipif mysql # not compatible
query I rowsort label-7371
SELECT + col2 / + 77 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 - + 43 FROM tab1
----
-29
-38
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT - col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT + col2 DIV ( + col2 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7375
SELECT + col2 / ( + col2 ) AS col0 FROM tab2
----
1
1
1

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

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

query I rowsort
SELECT ALL + col1 + + col0 * - col0 AS col2 FROM tab1 WHERE col2 BETWEEN ( + col2 * + 63 ) AND NULL
----

query I rowsort
SELECT DISTINCT 73 + col2 AS col1 FROM tab0
----
120
172
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 71 IN ( col0 )
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NULL IN ( col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT DISTINCT CAST( NULL AS SIGNED ) - 43 / 91 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 43 / 91 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT SUM( ALL - col1 ) * COUNT( * ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-7382
SELECT SUM ( ALL - col1 ) * COUNT ( * ) FROM tab0
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT DISTINCT + 63 * + COUNT( * ) FROM tab2 WHERE ( 17 ) = ( ( + 89 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT + 63 * + COUNT ( * ) FROM tab2 WHERE ( 17 ) = ( ( + 89 ) )
----
0

query I rowsort
SELECT - 8 + col1 * - 52 AS col2 FROM tab1
----
-2452
-268
-736

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7386
SELECT DISTINCT - MAX( ALL col2 ) DIV - 31 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT - MAX ( ALL col2 ) / - 31 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 40 * 12 FROM tab1 WHERE 87 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT MAX( ALL col1 ) + + 36 FROM tab2 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT MAX ( ALL col1 ) + + 36 FROM tab2 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7389
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7389
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = + CAST ( col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT SUM( ALL - ( 50 ) ) * COUNT( * ) AS col2 FROM tab0 WHERE - 98 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT SUM ( ALL - ( 50 ) ) * COUNT ( * ) AS col2 FROM tab0 WHERE - 98 BETWEEN NULL AND NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7391
SELECT - COUNT ( 18 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT 72 * - COUNT( * ) + - 22 FROM tab1
----
-238

skipif mysql # not compatible
query I rowsort label-7392
SELECT 72 * - COUNT ( * ) + - 22 FROM tab1
----
-238

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

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

query I rowsort
SELECT 21 * col2 + col1 * - col1 AS col2 FROM tab0
----
-231
-5574
2078

query I rowsort
SELECT 21 * - col2 AS col0 FROM tab2 AS cor0
----
-1218
-483
-840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ( - 97 ) * ( ( - COUNT( ALL + 4 ) ) ) col0 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7398
SELECT ( - 97 ) * ( ( - COUNT ( ALL + 4 ) ) ) col0 FROM tab0 AS cor0
----
291

query I rowsort
SELECT DISTINCT - col1 * + 1 FROM tab1 AS cor0
----
-14
-47
-5

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

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

query I rowsort
SELECT + 63 FROM tab1 cor0 WHERE NOT ( col1 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT + 98 DIV - col1 FROM tab0 AS cor0
----
-1
-4
-98

skipif mysql # not compatible
query I rowsort label-7403
SELECT + 98 / - col1 FROM tab0 AS cor0
----
-1
-4
-98

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( - col0 ) BETWEEN - col1 AND col2
----
87
97

query I rowsort
SELECT + 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT ( + 28 ) FROM tab2
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT COUNT( * ) * + 48 FROM tab1 AS cor0 WHERE NOT - 12 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7409
SELECT COUNT ( * ) * + 48 FROM tab1 AS cor0 WHERE NOT - 12 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab1 cor0 WHERE col1 IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7411
SELECT DISTINCT - 6 + col2 DIV - 15 col2 FROM tab0 AS cor0
----
-12
-6
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7411
SELECT DISTINCT - 6 + col2 / - 15 col2 FROM tab0 AS cor0
----
-12
-6
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL + COUNT( DISTINCT - 83 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + COUNT ( DISTINCT - 83 ) AS col0 FROM tab1 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - COUNT ( DISTINCT ( 54 ) ) * 39 AS col2 FROM tab0 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT - col2 DIV col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-7414
SELECT - col2 / col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2
15
87

query I rowsort
SELECT 64 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL COUNT( ALL + col2 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 / - col1 BETWEEN NULL AND 23
----
0

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL COUNT ( ALL + col2 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 / - col1 BETWEEN NULL AND 23
----
0

query I rowsort
SELECT + 28 + - col0 FROM tab0 AS cor0
----
-59
-69
13

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

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

query I rowsort
SELECT + 5 * - col1 + + col2 AS col1 FROM tab1 AS cor0
----
-167
26
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7420
SELECT ( - 40 ) + + 4 DIV 77 FROM tab0 AS cor0 WHERE NOT col0 < - 78
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-7420
SELECT ( - 40 ) + + 4 / 77 FROM tab0 AS cor0 WHERE NOT col0 < - 78
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT ALL col2 DIV + 48 AS col0 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL col2 / + 48 AS col0 FROM tab1
----
1
1
2

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE col1 NOT IN ( 47 )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col2 + - 41 AS col0 FROM tab1
----
-100
-109
-137

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 57 > ( 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col2 FROM tab2 WHERE NOT ( NULL ) < ( + ( 40 ) * + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7426
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 60 * + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 60 * + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT col1 + + 89 FROM tab0
----
110
170
90

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

query I rowsort
SELECT - ( col1 ) * - col2 AS col0 FROM tab0
----
210
3807
99

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

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + 36 / - 53 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + - 33 FROM tab0
----
-12
-32
48

query I rowsort
SELECT 65 + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
116
132
142

query I rowsort
SELECT DISTINCT 69 + - col2 AS col2 FROM tab1 AS cor0
----
-27
1
10

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

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

query I rowsort
SELECT 77 * 95 + col0 FROM tab2 AS cor0 WHERE + col2 * + 15 BETWEEN - col2 AND ( col0 )
----

query I rowsort
SELECT - + 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

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

query I rowsort
SELECT ALL - 26 - - - 14 + - 97 * col0 FROM tab0
----
-1495
-8479
-9449

query I rowsort
SELECT ALL col0 * col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT + - 37 + 53 - col1 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
2311
4867
4974

query I rowsort
SELECT + + col1 + + 98 - - col0 * + col2 FROM tab2 AS cor0
----
1207
2735
4515

query I rowsort
SELECT ALL - 43 + 75 AS col0 FROM tab2 cor0
----
32
32
32

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 83 * - 34 <> NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE ( 74 * - 8 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL COUNT( * ) * + SUM( + + col1 ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL COUNT ( * ) * + SUM ( + + col1 ) FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL MAX( DISTINCT + 45 ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL MAX ( DISTINCT + 45 ) AS col2 FROM tab0
----
45

query I rowsort
SELECT - 97 AS col1 FROM tab2
----
-97
-97
-97

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 96 < ( ( + col1 ) )
----

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

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

query I rowsort
SELECT DISTINCT + 29 FROM tab2 cor0
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7456
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7456
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7457
SELECT + CAST( - 52 AS SIGNED ) DIV + col2 AS col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-7457
SELECT + CAST ( - 52 AS INTEGER ) / + col2 AS col1 FROM tab0
----
-1
-5
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7459
SELECT ALL COUNT( * ) * - CAST( 77 AS SIGNED ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL COUNT ( * ) * - CAST ( 77 AS INTEGER ) FROM tab0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7460
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-7461
SELECT - MAX ( ALL + col2 ) FROM tab1
----
-96

query I rowsort
SELECT col2 / col2 FROM tab0 AS cor0 WHERE NOT 63 <> + - 8 + - col0 * + col1 / + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7463
SELECT + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT 16 BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7463
SELECT + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT 16 BETWEEN CAST ( NULL AS REAL ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 + + + col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT - MIN( DISTINCT + 73 ) FROM tab1 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7465
SELECT - MIN ( DISTINCT + 73 ) FROM tab1 cor0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT DISTINCT - + col0 DIV + 1 + - col1 AS col2 FROM tab0 cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT - + col0 / + 1 + - col1 AS col2 FROM tab0 cor0
----
-108
-96
-98

query I rowsort
SELECT col2 * - 42 AS col2 FROM tab1 AS cor0
----
-2478
-2856
-4032

query I rowsort
SELECT DISTINCT + 51 + + 88 AS col2 FROM tab0 AS cor0
----
139

query I rowsort
SELECT ( - 44 ) * - + col1 AS col0 FROM tab0 AS cor0
----
3564
44
924

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT COUNT( * ) * + 7 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + col2 AND - 98 + - 4
----
0

skipif mysql # not compatible
query I rowsort label-7470
SELECT COUNT ( * ) * + 7 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + col2 AND - 98 + - 4
----
0

query I rowsort
SELECT col0 * - + col0 AS col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT ( - - MAX( + 30 ) ) col0 FROM tab1
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7472
SELECT DISTINCT ( - - MAX ( + 30 ) ) col0 FROM tab1
----
30

query II rowsort
SELECT DISTINCT + 51 AS col1, col1 * + 11 FROM tab0
----
51
11
51
231
51
891

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE - 71 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query II rowsort label-7475
SELECT DISTINCT + col0, + col2 DIV + col0 FROM tab0
----
15
3
87
0
97
1

skipif mysql # not compatible
query II rowsort label-7475
SELECT DISTINCT + col0, + col2 / + col0 FROM tab0
----
15
3
87
0
97
1

query I rowsort
SELECT 74 + + + 39 AS col2 FROM tab2
----
113
113
113

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7479
SELECT * FROM tab2 WHERE + col0 + - + 34 + - CAST( NULL AS SIGNED ) * - 46 * 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7479
SELECT * FROM tab2 WHERE + col0 + - + 34 + - CAST ( NULL AS INTEGER ) * - 46 * 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT * FROM tab2 WHERE 17 >= ( + 56 * - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL > col1
----
0

skipif mysql # not compatible
query I rowsort label-7482
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL > col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL + - ( - 65 ) * - - 62 * + ( + COUNT( * ) ) - - - 76 AS col2 FROM tab1 AS cor0
----
12014

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + - ( - 65 ) * - - 62 * + ( + COUNT ( * ) ) - - - 76 AS col2 FROM tab1 AS cor0
----
12014

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 2 + col2 * 50 ) >= - ( + + 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7485
SELECT * FROM tab0 WHERE ( - - CAST( + + ( - + 66 ) AS SIGNED ) + - col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7485
SELECT * FROM tab0 WHERE ( - - CAST ( + + ( - + 66 ) AS INTEGER ) + - col0 ) IS NULL
----

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

skipif mysql # not compatible
query III rowsort label-7486
SELECT ALL * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - - 79 * col2 FROM tab0
----
3728
7918
877

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

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

query I rowsort
SELECT ALL col1 - + 73 FROM tab0
----
-52
-72
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * 31 / + + 53 IS NULL
----

query I rowsort
SELECT col0 * - 92 * + - ( + + ( 96 ) ) * + col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 98 AND NULL
----

query II rowsort
SELECT + col0 - col2, + col1 FROM tab1 AS cor0
----
-45
14
23
47
26
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 88
----

query I rowsort
SELECT ALL + 96 AS col1 FROM tab1 cor0
----
96
96
96

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( NOT 39 * 89 > NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7496
SELECT col1 DIV - ( 74 ) AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7496
SELECT col1 / - ( 74 ) AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, - col0 col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query II rowsort
SELECT ALL col0 AS col0, col0 FROM tab1
----
51
51
85
85
91
91

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

query I rowsort
SELECT DISTINCT - 16 * - + ( - 52 ) AS col2 FROM tab2 AS cor0
----
-832

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

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

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

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL - - MIN ( + 83 ) FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT - SUM( 88 ) FROM tab1 AS cor0 WHERE NOT col2 - + col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT - SUM ( 88 ) FROM tab1 AS cor0 WHERE NOT col2 - + col1 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7504
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - 46 IN ( + col1 + + col0 * - ( + ( - + 69 ) ) + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7504
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - 46 IN ( + col1 + + col0 * - ( + ( - + 69 ) ) + + CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT ALL + 13 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT CAST( + + col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7507
SELECT CAST ( + + col0 AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT ( + 22 ) * + + col1 * + - 13 FROM tab1 AS cor0
----
-13442
-1430
-4004

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL + MIN( col0 ) + + - 79 + + ( + 26 ) AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL + MIN ( col0 ) + + - 79 + + ( + 26 ) AS col1 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL - - col1 * - ( col1 ) + + col2 AS col1 FROM tab1 AS cor0
----
-100
-2141
34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 71 ) IN ( + 38 - col2, - col2 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT col2 DIV - - col0 + + + col2 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7514
SELECT col2 / - - col0 + + + col2 AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL col1 * col2 FROM tab1 WHERE NOT + col1 IN ( 17 )
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL MAX( DISTINCT col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL MAX ( DISTINCT col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT 43 * - + 1 * COUNT( * ) AS col2 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-7517
SELECT 43 * - + 1 * COUNT ( * ) AS col2 FROM tab0
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT + 63 DIV + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7518
SELECT + 63 / + col2 FROM tab2
----
1
1
2

query I rowsort
SELECT ALL ( col0 ) * 94 FROM tab0
----
1410
8178
9118

query II rowsort
SELECT ALL - col1 + 68 + - + col0, col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-28
15
-30
97
-40
87

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

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

query I rowsort
SELECT DISTINCT + col0 * + - 1 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 52 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
52
52
52

query I rowsort
SELECT DISTINCT - - col0 + - - 50 FROM tab2 AS cor0
----
114
125
96

query I rowsort
SELECT ( + col0 ) * + 71 * + ( col0 ) * + - 88 + - col1 + + 54 + + - col0 FROM tab2
----
-13220811
-25591895
-35145088

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT - COUNT( * ) + - 11 AS col1 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-7526
SELECT - COUNT ( * ) + - 11 AS col1 FROM tab1
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 AS cor0 WHERE NOT + 39 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7528
SELECT ALL - + MAX( - ( + - col2 ) ) DIV - 22 AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL - + MAX ( - ( + - col2 ) ) / - 22 AS col0 FROM tab0 AS cor0
----
4

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 + + col0 + - - col2 >= - col0 * - - 95
----

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

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL - MIN ( ALL - - col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2, + ( + ( + + 20 ) ) + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( + 25 - - col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7534
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( + 25 - - col1 IS NOT NULL )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7536
SELECT + COUNT( * ), 3 AS col0 FROM tab2 WHERE NOT - col2 = - col2
----
0
3

skipif mysql # not compatible
query II rowsort label-7536
SELECT + COUNT ( * ), 3 AS col0 FROM tab2 WHERE NOT - col2 = - col2
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL MIN( ALL - + 12 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL MIN ( ALL - + 12 ) FROM tab0
----
-12

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT - SUM( + - col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT - SUM ( + - col0 ) AS col2 FROM tab0
----
199

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 <> - ( - ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 86 - 69 FROM tab1 WHERE NOT NULL NOT BETWEEN - - col2 + 68 + - col2 * - 47 AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT + SUM( DISTINCT - - col2 ) * + - COUNT( * ) - + SUM( ALL + 25 ) * - + 52 AS col0 FROM tab2
----
3537

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT + SUM ( DISTINCT - - col2 ) * + - COUNT ( * ) - + SUM ( ALL + 25 ) * - + 52 AS col0 FROM tab2
----
3537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT DISTINCT - MIN( - ( - 84 ) ) DIV + COUNT( * ) AS col2 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT - MIN ( - ( - 84 ) ) / + COUNT ( * ) AS col2 FROM tab1
----
-28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col1
----

query II rowsort
SELECT ALL - col1, col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL + 44 + - + col2 FROM tab0 AS cor0
----
-3
-55
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT - MAX( - - 45 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT - MAX ( - - 45 ) FROM tab2 AS cor0
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-7548
SELECT 21 + + col1, col0 DIV 11 AS col0 FROM tab2 AS cor0
----
72
4
88
6
98
5

skipif mysql # not compatible
query II rowsort label-7548
SELECT 21 + + col1, col0 / 11 AS col0 FROM tab2 AS cor0
----
72
4
88
6
98
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT COUNT( DISTINCT + - 4 ) AS col0 FROM tab2 WHERE + + 76 NOT IN ( col1 + - + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-7550
SELECT COUNT ( DISTINCT + - 4 ) AS col0 FROM tab2 WHERE + + 76 NOT IN ( col1 + - + 70 )
----
1

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * col0 + - 31 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - col2 * - - col0 * - col2 AS col2 FROM tab1 cor0
----
295800
420693
469965

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7556
SELECT ALL + + SUM( - 99 ) * + ( + CAST( COUNT( * ) AS SIGNED ) ) + - COUNT( * ) AS col2, COUNT( * ) FROM tab1 cor0
----
-894
3

skipif mysql # not compatible
query II rowsort label-7556
SELECT ALL + + SUM ( - 99 ) * + ( + CAST ( COUNT ( * ) AS INTEGER ) ) + - COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 cor0
----
-894
3

query I rowsort
SELECT ALL + + 67 + + col1 AS col1 FROM tab0 AS cor0
----
148
68
88

query II rowsort
SELECT + col0 AS col1, + 63 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL - + 20 + + + col1 AS col0 FROM tab0 AS cor0
----
-19
1
61

query II rowsort
SELECT + - 78 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
-78
-46
-78
-64
-78
-75

query I rowsort
SELECT + ( - 33 ) * + - col0 FROM tab1 AS cor0
----
1683
2805
3003

query II rowsort
SELECT - 58 AS col0, 91 FROM tab2 AS cor0
----
-58
91
-58
91
-58
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7563
SELECT 98 DIV - 35 - + COUNT( * ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-7563
SELECT 98 / - 35 - + COUNT ( * ) FROM tab0
----
-5

query I rowsort
SELECT + col2 + - 41 + + col1 AS col1 FROM tab2
----
33
76
84

query I rowsort
SELECT - col1 * col1 + + col1 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col0 FROM tab1
----
-59
-68
-96

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7568
SELECT DISTINCT + col0 * col0 + ( + 36 ), col1 DIV - col2 AS col0 FROM tab2 AS cor0
----
2152
-2
4132
-1
5661
-1

skipif mysql # not compatible
query II rowsort label-7568
SELECT DISTINCT + col0 * col0 + ( + 36 ), col1 / - col2 AS col0 FROM tab2 AS cor0
----
2152
-2
4132
-1
5661
-1

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

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL + COUNT ( - + col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 37 * + col1 + + col1 FROM tab0 AS cor0
----
3078
38
798

query I rowsort
SELECT + + 73 - 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

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

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT + col1 / col1 FROM tab2 cor0
----
1

query I rowsort
SELECT 5 * + col1 AS col0 FROM tab0 AS cor0
----
105
405
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 63 * 66 <> 19
----

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

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

query I rowsort
SELECT + ( col2 ) * + + 13 FROM tab0
----
1287
130
611

query I rowsort
SELECT DISTINCT - 26 * + col2 * + col2 FROM tab0
----
-254826
-2600
-57434

onlyif mysql # DIV for integer division: 
query I rowsort label-7579
SELECT ALL + col2 DIV - 62 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + col2 / - 62 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT - 20 * + 96 AS col2 FROM tab2
----
-1920
-1920
-1920

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7582
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7582
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7584
SELECT + 23 * + ( 28 ) + col0 - - - col1 DIV - col1 - + col0 FROM tab1 AS cor0
----
645
645
645

skipif mysql # not compatible
query I rowsort label-7584
SELECT + 23 * + ( 28 ) + col0 - - - col1 / - col1 - + col0 FROM tab1 AS cor0
----
645
645
645

query I rowsort
SELECT + + 55 FROM tab2 WHERE - 33 >= - - col2 * + - col1
----
55
55
55

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

query I rowsort
SELECT - col1 * col2 + - + col0 FROM tab2
----
-1219
-3144
-3961

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - COUNT( DISTINCT + + 34 ) + + + MIN( + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7590
SELECT - COUNT ( DISTINCT + + 34 ) + + + MIN ( + col1 ) FROM tab0 AS cor0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7592
SELECT ALL - 34 + - CAST( NULL AS DECIMAL ) * + 64 * COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - 34 + - CAST ( NULL AS REAL ) * + 64 * COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 99 + 70 + - 23 + - + col1 AS col1 FROM tab0
----
125
145
65

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 = + 53
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7596
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 16 + - - 89 col2 FROM tab0
----
NULL
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7596
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 16 + - - 89 col2 FROM tab0
----
NULL
105

query I rowsort
SELECT DISTINCT + ( 16 ) + - 76 * + 63 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-4772

query II rowsort
SELECT DISTINCT - ( col0 ), 41 * - col0 + - col2 FROM tab2 WHERE NOT NULL IN ( 2 * - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7600
SELECT ALL 30 AS col1, - SUM( - - col0 ) AS col2 FROM tab1 AS cor0
----
30
-227

skipif mysql # not compatible
query II rowsort label-7600
SELECT ALL 30 AS col1, - SUM ( - - col0 ) AS col2 FROM tab1 AS cor0
----
30
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT - - SUM( + + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - - SUM ( + + col1 ) AS col0 FROM tab2 AS cor0
----
195

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * + - 71 BETWEEN - + col2 * col1 AND - + col1
----
87
21
10
97
1
99

query I rowsort
SELECT + - col1 + + col2 FROM tab1 AS cor0 WHERE NOT col2 * col0 = + 99
----
21
54
82

query I rowsort
SELECT DISTINCT + 16 * - col0 FROM tab1
----
-1360
-1456
-816

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT ( - col1 ) DIV - ( - col2 ) - + 48 FROM tab0
----
-48
-49
-50

skipif mysql # not compatible
query I rowsort label-7611
SELECT ( - col1 ) / - ( - col2 ) - + 48 FROM tab0
----
-48
-49
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT - ( + + SUM( - 88 ) ) FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-7612
SELECT - ( + + SUM ( - 88 ) ) FROM tab2
----
264

query I rowsort
SELECT 85 * - 98 FROM tab2
----
-8330
-8330
-8330

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7615
SELECT 2 AS col0, - MAX( DISTINCT + col0 ) AS col1 FROM tab0 WHERE NOT + col2 - + 26 + + + 83 - + col1 IN ( ( + col2 ), ( - + 58 ), + col1 - ( ( - col1 ) ) )
----
2
-97

skipif mysql # not compatible
query II rowsort label-7615
SELECT 2 AS col0, - MAX ( DISTINCT + col0 ) AS col1 FROM tab0 WHERE NOT + col2 - + 26 + + + 83 - + col1 IN ( ( + col2 ), ( - + 58 ), + col1 - ( ( - col1 ) ) )
----
2
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ( + MIN( + col2 ) ) * 64 AS col1 FROM tab1
----
3776

skipif mysql # not compatible
query I rowsort label-7616
SELECT ( + MIN ( + col2 ) ) * 64 AS col1 FROM tab1
----
3776

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

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

query I rowsort
SELECT DISTINCT 71 + + col0 FROM tab1 cor0
----
122
156
162

query I rowsort
SELECT DISTINCT - col1 + - 11 FROM tab1 AS cor0
----
-16
-25
-58

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

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

query I rowsort
SELECT + col2 * - - col2 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT * FROM tab1 WHERE - 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ( - SUM( ALL col2 ) ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7623
SELECT ( - SUM ( ALL col2 ) ) AS col2 FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7624
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7624
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 4 * + 30 + - + 0 FROM tab1 AS cor0
----
120
120
120

query I rowsort
SELECT + + col0 - - - col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT + 27 - ( - + 74 ) * - col0 FROM tab0 AS cor0
----
-1083
-6411
-7151

query I rowsort
SELECT - col0 - - 60 FROM tab2 AS cor0
----
-15
-4
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 79 = - 96 * - 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT DISTINCT 1 + + 89 DIV - + 73 * col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT 1 + + 89 / - + 73 * col1 / - col1 AS col0 FROM tab1 AS cor0
----
2

query I rowsort
SELECT col0 + + 9 FROM tab0 AS cor0
----
106
24
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT MAX( - col1 ) + + MAX( + + col2 ) col1 FROM tab2
----
7

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

query I rowsort
SELECT col1 + + ( + 37 ) + - 65 FROM tab1
----
-14
-23
19

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 38, 12 )
----

query I rowsort
SELECT DISTINCT 9 * + - ( col2 ) + 71 FROM tab0
----
-19
-352
-820

query I rowsort
SELECT ( + 99 ) + + col0 FROM tab0
----
114
186
196

query II rowsort
SELECT ALL 47 - + col2, col1 FROM tab1
----
-12
5
-21
47
-49
14

onlyif mysql # DIV for integer division: 
query II rowsort label-7638
SELECT - + 81 DIV - 87 AS col1, - 48 + + col1 DIV col1 FROM tab0 AS cor0
----
0
-47
0
-47
0
-47

skipif mysql # not compatible
query II rowsort label-7638
SELECT - + 81 / - 87 AS col1, - 48 + + col1 / col1 FROM tab0 AS cor0
----
0
-47
0
-47
0
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-7639
SELECT - col0 * + + col2 AS col2, - 63 DIV - - col1 FROM tab0 cor0
----
-705
0
-870
-3
-9603
-63

skipif mysql # not compatible
query II rowsort label-7639
SELECT - col0 * + + col2 AS col2, - 63 / - - col1 FROM tab0 cor0
----
-705
0
-870
-3
-9603
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col2 ) AS col2, - 11 col2 FROM tab0 AS cor0
----
10
-11
47
-11
99
-11

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - col1 < NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + SUM ( ALL col1 ) AS col0 FROM tab0
----
103

query I rowsort
SELECT ALL ( - + 28 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT DISTINCT + + ( CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT + + ( CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-10
-47
-99

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL < col2 * - 91 )
----

query I rowsort
SELECT 98 + - col0 * - col2 FROM tab2
----
1156
2658
4448

query I rowsort
SELECT DISTINCT col2 * - ( + 99 ) + - 14 / - col1 AS col2 FROM tab2 WHERE NOT - 69 + + col0 * + col0 > - col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 29 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT ALL col0 + col1 DIV 63 FROM tab2
----
46
65
76

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL col0 + col1 / 63 FROM tab2
----
46
65
76

query III rowsort
SELECT * FROM tab1 WHERE col0 <= + - 83
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7654
SELECT ALL + col0 * 16 DIV - CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
-13
-14
-17

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL + col0 * 16 / - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
-13
-14
-17

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 + - col0 * + 73 col1 FROM tab1
----
-3712
-6194
-6632

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - ( - 9 ) <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + col0 * ( - - ( + col1 ) ) + col0 + - col1 AS col2 FROM tab2
----
2341
4915
5033

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT - col2 + + col2 DIV - 84 AS col1 FROM tab0
----
-10
-100
-47

skipif mysql # not compatible
query I rowsort label-7660
SELECT - col2 + + col2 / - 84 AS col1 FROM tab0
----
-10
-100
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT + CAST( NULL AS SIGNED ) + 94 AS col0 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7662
SELECT DISTINCT + - ( + - col1 ) * + col0 + - + 54 + + ( + 17 ) * - - 79 + + col1 + col1 DIV + col1 + 87 FROM tab2 AS cor0
----
3774
6382
6469

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT + - ( + - col1 ) * + col0 + - + 54 + + ( + 17 ) * - - 79 + + col1 + col1 / + col1 + 87 FROM tab2 AS cor0
----
3774
6382
6469

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL - - SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - - SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL 67 + + col2 AS col0 FROM tab0 AS cor0
----
114
166
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) col0 FROM tab1 WHERE NULL BETWEEN + - col2 AND + + col2 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 66, + col1 col0 FROM tab0
----
66
1
66
21
66
81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT ALL - 54 DIV - ( - 1 ) AS col1 FROM tab1
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - 54 / - ( - 1 ) AS col1 FROM tab1
----
-54
-54
-54

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

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

query II rowsort
SELECT ALL + 42, + 67 * col2 * - + ( - + col0 ) AS col0 FROM tab0
----
42
47235
42
58290
42
643401

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT SUM( - - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7673
SELECT SUM ( - - col2 ) FROM tab1
----
223

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

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL SUM ( + col2 ) AS col0 FROM tab2
----
121

query III rowsort
SELECT ALL * FROM tab1 WHERE + 42 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT + MIN( + 11 ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT + MIN ( + 11 ) FROM tab0 AS cor0
----
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT 21 DIV 82 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7679
SELECT 21 / 82 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col2 * + ( + - ( + col2 ) ) FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query II rowsort label-7681
SELECT DISTINCT MIN( - - col1 ) AS col1, - COUNT( * ) AS col0 FROM tab0
----
1
-3

skipif mysql # not compatible
query II rowsort label-7681
SELECT DISTINCT MIN ( - - col1 ) AS col1, - COUNT ( * ) AS col0 FROM tab0
----
1
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> 3
----

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

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

query I rowsort
SELECT DISTINCT - col0 + - + ( col2 ) AS col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-7687
SELECT ALL MIN( - 17 ) AS col1, 73 AS col1 FROM tab1 AS cor0
----
-17
73

skipif mysql # not compatible
query II rowsort label-7687
SELECT ALL MIN ( - 17 ) AS col1, 73 AS col1 FROM tab1 AS cor0
----
-17
73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT + - COUNT( + + col0 ) FROM tab0 WHERE - - col1 + col1 - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7689
SELECT + - COUNT ( + + col0 ) FROM tab0 WHERE - - col1 + col1 - col0 IS NOT NULL
----
-3

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

query I rowsort
SELECT ALL ( - ( - col2 ) ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - 49 * COUNT( ALL - + col0 ) AS col2 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-7692
SELECT - 49 * COUNT ( ALL - + col0 ) AS col2 FROM tab1
----
-147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7693
SELECT 67 DIV COUNT( * ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-7693
SELECT 67 / COUNT ( * ) FROM tab0
----
22

query I rowsort
SELECT - col0 * + ( + 91 ) FROM tab1
----
-4641
-7735
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7695
SELECT ALL - 57, col2 + - CAST( NULL AS SIGNED ) * - col2 col1 FROM tab2
----
-57
NULL
-57
NULL
-57
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7695
SELECT ALL - 57, col2 + - CAST ( NULL AS INTEGER ) * - col2 col1 FROM tab2
----
-57
NULL
-57
NULL
-57
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7696
SELECT + 2, + 45 DIV + col2 + + col2 AS col0 FROM tab0
----
2
14
2
47
2
99

skipif mysql # not compatible
query II rowsort label-7696
SELECT + 2, + 45 / + col2 + + col2 AS col0 FROM tab0
----
2
14
2
47
2
99

query III rowsort
SELECT * FROM tab0 WHERE + col2 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - - 32 AND NULL
----

query I rowsort
SELECT ALL + - col0 + + 66 FROM tab2 AS cor0
----
-9
2
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT DISTINCT col1 + - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL col1 + - - col0 + 57 FROM tab2
----
154
198
199

query I rowsort
SELECT DISTINCT 76 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
76

query I rowsort
SELECT DISTINCT 21 * col0 AS col0 FROM tab1
----
1071
1785
1911

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

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

query II rowsort
SELECT - - col2, col1 AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN - col2 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7706
SELECT DISTINCT + ( 48 ) * - - col2 - - col2 * col1 DIV 66 FROM tab1 cor0
----
2836
3312
4628

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT + ( 48 ) * - - col2 - - col2 * col1 / 66 FROM tab1 cor0
----
2836
3312
4628

query I rowsort
SELECT col0 * + 45 - + col0 FROM tab0 AS cor0
----
3828
4268
660

query I rowsort
SELECT + - col1 - + 45 AS col0 FROM tab0 AS cor0
----
-126
-46
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7709
SELECT + COUNT( * ) - + - 34 * - + MIN( + col0 ) AS col0, 31 AS col0 FROM tab1 AS cor0
----
-1731
31

skipif mysql # not compatible
query II rowsort label-7709
SELECT + COUNT ( * ) - + - 34 * - + MIN ( + col0 ) AS col0, 31 AS col0 FROM tab1 AS cor0
----
-1731
31

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE + 40 + - col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - 53 + + col0 FROM tab2 AS cor0
----
-7
11
22

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT 75 * + COUNT( * ) + + ( SUM( col2 ) ) AS col2 FROM tab2 AS cor0
----
346

skipif mysql # not compatible
query I rowsort label-7714
SELECT 75 * + COUNT ( * ) + + ( SUM ( col2 ) ) AS col2 FROM tab2 AS cor0
----
346

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT + - MAX( col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7715
SELECT + - MAX ( col2 ) FROM tab0 cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT - col1 * + 30 * ( + + CAST( + ( + 59 ) AS SIGNED ) ) AS col0 FROM tab1 cor0
----
-24780
-83190
-8850

skipif mysql # not compatible
query I rowsort label-7716
SELECT - col1 * + 30 * ( + + CAST ( + ( + 59 ) AS INTEGER ) ) AS col0 FROM tab1 cor0
----
-24780
-83190
-8850

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 81 - 72 = - + 45 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL SUM( + + 67 ) FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL SUM ( + + 67 ) FROM tab1 AS cor0
----
201

onlyif mysql # aggregate syntax: 
query II rowsort label-7719
SELECT DISTINCT - ( + + COUNT( * ) ), 30 - + 54 AS col0 FROM tab0 AS cor0
----
-3
-24

skipif mysql # not compatible
query II rowsort label-7719
SELECT DISTINCT - ( + + COUNT ( * ) ), 30 - + 54 AS col0 FROM tab0 AS cor0
----
-3
-24

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 16 + - col0 < NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + 59 IS NULL
----

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

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

query I rowsort
SELECT + 64 FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL + - 59 * COUNT( * ) * ( - + MAX( ALL ( + 93 ) ) ) AS col2 FROM tab0 AS cor0
----
16461

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL + - 59 * COUNT ( * ) * ( - + MAX ( ALL ( + 93 ) ) ) AS col2 FROM tab0 AS cor0
----
16461

query I rowsort
SELECT DISTINCT + 26 * + col0 AS col0 FROM tab2 AS cor0
----
1196
1664
1950

query I rowsort
SELECT 83 * + 88 + - col2 + col2 + 63 * - col2 FROM tab1 AS cor0
----
1256
3020
3587

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7729
SELECT + + COUNT( * ) DIV - + 2 AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7729
SELECT + + COUNT ( * ) / - + 2 AS col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT + col2 * - - col2 FROM tab0 AS cor0
----
100
2209
9801

query II rowsort
SELECT col2, col1 * - ( col0 ) FROM tab0
----
10
-1827
47
-1215
99
-97

query I rowsort
SELECT ALL + 9 * + - col0 AS col0 FROM tab0
----
-135
-783
-873

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7735
SELECT * FROM tab2 cor0 WHERE NOT - col1 BETWEEN + + CAST( + col2 AS SIGNED ) AND + col1 + 32 + + - CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7735
SELECT * FROM tab2 cor0 WHERE NOT - col1 BETWEEN + + CAST ( + col2 AS INTEGER ) AND + col1 + 32 + + - CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT col1 * - 14 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-196
-658
-70

query I rowsort
SELECT - col2 + - + 22 AS col0 FROM tab0 AS cor0
----
-121
-32
-69

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

skipif mysql # not compatible
query I rowsort label-7739
SELECT - COUNT ( * ) + - CAST ( - 0 AS INTEGER ) + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + + 88 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 24 + + - 72 - ( + col2 ) + - + col1 AS col2 FROM tab1 AS cor0
----
-112
-158
-163

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7741
SELECT DISTINCT + CAST( + - 47 AS SIGNED ) + 94 DIV + ( col1 ) - + col2 FROM tab0 AS cor0
----
-52
-53
-93

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + CAST ( + - 47 AS INTEGER ) + 94 / + ( col1 ) - + col2 FROM tab0 AS cor0
----
-52
-53
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT SUM( ALL + col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT SUM ( ALL + col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT - col2 * + col2 * - col0 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT DISTINCT col0 + + 21 FROM tab0
----
108
118
36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT + ( + col2 ) DIV + ( + - col0 ) + col0 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-7746
SELECT + ( + col2 ) / + ( + - col0 ) + col0 FROM tab1 AS cor0
----
50
85
91

query II rowsort
SELECT + ( - 9 ), col1 FROM tab0 AS cor0
----
-9
1
-9
21
-9
81

query I rowsort
SELECT DISTINCT col1 - col2 + - col0 AS col0 FROM tab0
----
-195
-76
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 73 * - col0 - + 96 col2, col0 * - col0 AS col2 FROM tab1
----
3627
-2601
6109
-7225
6547
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT - - MAX( - - col1 ) * + 3 AS col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-7750
SELECT - - MAX ( - - col1 ) * + 3 AS col2 FROM tab0 AS cor0
----
243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT + COUNT( * ) DIV + 38 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7751
SELECT + COUNT ( * ) / + 38 FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT + MIN( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + MIN ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL col1 * + + 46 AS col0 FROM tab1 AS cor0
----
2162
230
644

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT DISTINCT CAST( + ( - + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT CAST ( + ( - + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL + + COUNT( * ) * + - 78 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL + + COUNT ( * ) * + - 78 FROM tab1 AS cor0
----
-234

query I rowsort
SELECT DISTINCT + AVG ( - col1 ) FROM tab0 WHERE ( + 28 ) * - + 2 + + ( + col2 ) NOT BETWEEN NULL AND NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT ALL - col0 * - CAST( - + col2 AS SIGNED ) col0 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7761
SELECT ALL - col0 * - CAST ( - + col2 AS INTEGER ) col0 FROM tab2
----
-1058
-2560
-4350

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

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

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL <> 81
----

query I rowsort
SELECT + 43 + - - 63 AS col1 FROM tab2
----
106
106
106

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7767
SELECT DISTINCT - COUNT( * ) DIV + 29 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT - COUNT ( * ) / + 29 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT MIN( col2 ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-7769
SELECT MIN ( col2 ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
10

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 / + col2 IS NULL
----

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

query I rowsort
SELECT DISTINCT - 77 + - col1 * col2 FROM tab0 AS cor0
----
-176
-287
-3884

query I rowsort
SELECT DISTINCT 76 * - + col1 + col2 + - - col2 + + + 53 * - col0 + + + col2 FROM tab0
----
-4920
-6177
-6810

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT + COUNT( - col2 ) AS col1 FROM tab2 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT + COUNT ( - col2 ) AS col1 FROM tab2 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT col0 + - 85 AS col2 FROM tab1
----
-34
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col2 col1 FROM tab0
----
15
47
87
10
97
99

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT - - col2 DIV + + 37 - + + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
23
41
59

skipif mysql # not compatible
query I rowsort label-7781
SELECT - - col2 / + + 37 - + + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
23
41
59

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

skipif mysql # not compatible
query I rowsort label-7782
SELECT - COUNT ( ALL - + 87 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT ALL ( col0 ) * - col0 DIV - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL ( col0 ) * - col0 / - col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT + - 72 FROM tab0 cor0
----
-72
-72
-72

query I rowsort
SELECT - + col2 * - 46 AS col0 FROM tab1 AS cor0
----
2714
3128
4416

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

skipif mysql # not compatible
query I rowsort label-7787
SELECT col2 / + 63 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - col1 * + col2, col2 FROM tab0 AS cor0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT - col1 * - ( + + 35 ) FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 33 + - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 33 + - col2 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NOT NULL <> 3
----

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NOT NULL <> 3
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7792
SELECT + + COUNT ( * ) * COUNT ( * ) * - 21 col1 FROM tab2 AS cor0
----
-189

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

query I rowsort
SELECT - 94 * - + col2 + - 38 FROM tab0 AS cor0
----
4380
902
9268

query II rowsort
SELECT DISTINCT - 44 * + col2 AS col2, + col0 * - + col1 FROM tab0 AS cor0
----
-2068
-1215
-4356
-97
-440
-1827

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - 58 > - col1
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT DISTINCT - 78 DIV - + col0 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - 78 / - + col0 AS col0 FROM tab2
----
1

query II rowsort
SELECT col1 AS col2, col1 + 73 AS col1 FROM tab1
----
14
87
47
120
5
78

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

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT + 66 * + - col0 * + - col1 * + + CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab0
----
NULL

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

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

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

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

query I rowsort
SELECT - + 53 * - 63 FROM tab2 AS cor0
----
3339
3339
3339

onlyif mysql # aggregate syntax: 
query II rowsort label-7805
SELECT + + COUNT( * ) col1, + 31 AS col2 FROM tab0 AS cor0
----
3
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7805
SELECT + + COUNT ( * ) col1, + 31 AS col2 FROM tab0 AS cor0
----
3
31

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7806
SELECT + CAST ( + - col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL - col0 * - ( + 34 ) + - col2 * 34 AS col0 FROM tab1 AS cor0
----
-1530
782
884

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + + 91 + 5
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE - 53 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT 68 + - + MIN( - 48 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
116

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT 68 + - + MIN ( - 48 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT 31 + + MAX( ALL + ( - 42 ) ) + - 95 AS col2 FROM tab2
----
-106

skipif mysql # not compatible
query I rowsort label-7811
SELECT 31 + + MAX ( ALL + ( - 42 ) ) + - 95 AS col2 FROM tab2
----
-106

query II rowsort
SELECT + 1 + - + 1, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
0
99

query I rowsort
SELECT + 4 + + col1 * + col1 FROM tab2 AS cor0
----
2605
4493
5933

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT - col0 DIV - col1 + col0 AS col1 FROM tab0 AS cor0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-7814
SELECT - col0 / - col1 + col0 AS col1 FROM tab0 AS cor0
----
15
194
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT DISTINCT - 8 + - MAX( - + col1 ) col0 FROM tab1 AS cor0
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7816
SELECT - + col1 + - CAST( + col2 AS SIGNED ) DIV + col1 * + col2 + + + col1 * - CAST( + 31 AS SIGNED ) FROM tab2 AS cor0
----
-1632
-2144
-2464

skipif mysql # not compatible
query I rowsort label-7816
SELECT - + col1 + - CAST ( + col2 AS INTEGER ) / + col1 * + col2 + + + col1 * - CAST ( + 31 AS INTEGER ) FROM tab2 AS cor0
----
-1632
-2144
-2464

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

query I rowsort
SELECT + 13 + + + col0 FROM tab0 AS cor0
----
100
110
28

query I rowsort
SELECT - 14 + + + 63 FROM tab1 cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + + 35 + - ( + COUNT( * ) ) + + COUNT( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7820
SELECT + + 35 + - ( + COUNT ( * ) ) + + COUNT ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT 20 / 14 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT 20 / 14 < NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 + + col1 col0 FROM tab1
----
-12
-45
-54

query III rowsort
SELECT * FROM tab1 WHERE + + 30 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 8 col0 FROM tab1
----
43
77
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7826
SELECT CAST( + 21 AS SIGNED ) * + - col0, 73 + + 56 + col1 AS col0 FROM tab2
----
-1344
206
-1575
196
-966
180

skipif mysql # not compatible
query II rowsort label-7826
SELECT CAST ( + 21 AS INTEGER ) * + - col0, 73 + + 56 + col1 AS col0 FROM tab2
----
-1344
206
-1575
196
-966
180

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 41 + 69 + - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL MIN( DISTINCT - + 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL MIN ( DISTINCT - + 92 ) FROM tab1
----
-92

query I rowsort
SELECT col1 * - - 61 * + col1 AS col2 FROM tab0
----
26901
400221
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 60 * - col1 * - + 49 > col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT ALL col1 * 87 DIV + col0 - - - col2 col2 FROM tab1
----
-24
-54
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7831
SELECT ALL col1 * 87 / + col0 - - - col2 col2 FROM tab1
----
-24
-54
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 = + col1 + + col2
----
3

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 = + col1 + + col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT + + COUNT( * ) + + 5 FROM tab2 cor0
----
8

skipif mysql # not compatible
query I rowsort label-7833
SELECT + + COUNT ( * ) + + 5 FROM tab2 cor0
----
8

query I rowsort
SELECT DISTINCT 17 + + + col0 AS col0 FROM tab0 AS cor0
----
104
114
32

query I rowsort
SELECT 7 / + - 85 AS col2 FROM tab1 cor0 JOIN tab0 AS cor1 ON + ( 63 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-64

query II rowsort
SELECT 19 AS col2, col2 * - col0 * col0 FROM tab2
----
19
-163840
19
-326250
19
-48668

query I rowsort
SELECT ALL - + 29 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT - 34 AS col2, - COUNT( * ) col1 FROM tab1
----
-34
-3

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

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

query II rowsort
SELECT + ( 30 ) * + 74 * - col1 AS col1, ( - col0 ) FROM tab0 AS cor0
----
-179820
-15
-2220
-97
-46620
-87

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col2 * - + 85 * - col1 AS col2 FROM tab0 AS cor0
----
17850
323595
8415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT - - SUM( ALL - 64 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT - - SUM ( ALL - 64 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + ( + + 36 ), col1 col2 FROM tab1
----
-1836
14
-3060
5
-3276
47

query II rowsort
SELECT ALL + 78 * + 10, - 80 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT MIN( + - col0 ) + 74 AS col2 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7849
SELECT MIN ( + - col0 ) + 74 AS col2 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT 79 + + + col1 - col0 AS col0 FROM tab1 AS cor0
----
-1
35
42

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7851
SELECT DISTINCT * FROM tab1 WHERE 14 + - - ( col0 ) + - col0 - col0 = CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7851
SELECT DISTINCT * FROM tab1 WHERE 14 + - - ( col0 ) + - col0 - col0 = CAST ( col0 AS REAL )
----

query I rowsort
SELECT ALL 43 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query II rowsort
SELECT + col2, - 73 AS col1 FROM tab0 AS cor0
----
10
-73
47
-73
99
-73

query I rowsort
SELECT ( - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7856
SELECT * FROM tab2 AS cor0 WHERE ( CAST( - col2 AS SIGNED ) ) - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7856
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( - col2 AS INTEGER ) ) - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT + 8 - COUNT( + - col0 ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT + 8 - COUNT ( + - col0 ) FROM tab2 AS cor0
----
5

query I rowsort
SELECT ALL 80 + - + col1 * - + col0 AS col2 FROM tab1 WHERE + + col1 + col1 + col1 NOT BETWEEN 35 AND col2 * + ( + + col0 ) * - - col2 + 64 - col2 + col1
----
505

query I rowsort
SELECT DISTINCT col0 * + col0 + - - col0 FROM tab1 cor0
----
2652
7310
8372

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

query I rowsort
SELECT - - 40 FROM tab0 cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT DISTINCT SUM( ALL - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT SUM ( ALL - col0 ) FROM tab0
----
-199

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT 76 * - MIN( DISTINCT - + 48 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3648

skipif mysql # not compatible
query I rowsort label-7864
SELECT 76 * - MIN ( DISTINCT - + 48 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3648

query I rowsort
SELECT DISTINCT + - 9 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 18 AND NULL
----

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7872
SELECT - - COUNT( * ) DIV + 34 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT - - COUNT ( * ) / + 34 AS col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + col0 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7874
SELECT DISTINCT 55 DIV - - 10 AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT 55 / - - 10 AS col2 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - MAX ( + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT 81 + + COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7877
SELECT 81 + + COUNT ( * ) FROM tab0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT 88 DIV col2 + - col0 FROM tab0
----
-14
-79
-97

skipif mysql # not compatible
query I rowsort label-7878
SELECT 88 / col2 + - col0 FROM tab0
----
-14
-79
-97

query I rowsort
SELECT ALL + ( 23 ) FROM tab1
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT + SUM( DISTINCT 62 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT + SUM ( DISTINCT 62 ) FROM tab0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT + SUM( col1 ) FROM tab1 WHERE NOT - col1 * col2 NOT BETWEEN - - 52 + + + 19 AND - - col1 AND NOT ( ( NOT NULL BETWEEN ( NULL ) AND ( col0 + - + col2 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT + SUM ( col1 ) FROM tab1 WHERE NOT - col1 * col2 NOT BETWEEN - - 52 + + + 19 AND - - col1 AND NOT ( ( NOT NULL BETWEEN ( NULL ) AND ( col0 + - + col2 ) ) )
----
NULL

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

query I rowsort
SELECT + - 57 AS col2 FROM tab1 WHERE NOT NULL >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7884
SELECT ALL + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-7884
SELECT ALL + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT + 50 AS col0, + col2 FROM tab0 AS cor0
----
50
10
50
47
50
99

query I rowsort
SELECT DISTINCT - - 28 + - col1 FROM tab1 cor0
----
-19
14
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - ( + col2 ) < - col2 + - + col2 / + + 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - ( + 82 ) * 33 + - - col0 + + 38 * - col0 < - col0 * + 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + - 80 FROM tab2 AS cor0
----
-16
-34
-5

query I rowsort
SELECT + col0 * 31 + + col2 - + - 95 * - 81 FROM tab2 cor0
----
-5312
-5671
-6246

query II rowsort
SELECT DISTINCT col2 * 38 AS col0, col0 + - - col0 FROM tab1 AS cor0
----
2242
170
2584
182
3648
102

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

query I rowsort
SELECT 27 + - col1 + - 60 AS col0 FROM tab2 AS cor0
----
-100
-110
-84

query II rowsort
SELECT ALL + col2 + + col0 AS col0, col2 FROM tab0 AS cor0
----
196
99
62
47
97
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT DISTINCT - SUM( DISTINCT - col2 ) + + - ( 38 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT - SUM ( DISTINCT - col2 ) + + - ( 38 ) FROM tab2 AS cor0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7897
SELECT ALL + 30 + col2 DIV + + col1 FROM tab0 AS cor0
----
129
30
30

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL + 30 + col2 / + + col1 FROM tab0 AS cor0
----
129
30
30

query I rowsort
SELECT DISTINCT + col0 + + col0 * - - col1 * + col2 FROM tab2 AS cor0
----
197184
291525
54004

query I rowsort
SELECT ALL + col1 / + - ( - col0 ) * + 18 * + col2 AS col2 FROM tab2 AS cor0 WHERE NULL < 64
----

query I rowsort
SELECT col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE 36 IS NOT NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT + ( - + 69 ) * 16 * + 67 - + MIN( DISTINCT + - col2 ) col0 FROM tab1 AS cor0
----
-73872

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7901
SELECT DISTINCT + ( - + 69 ) * 16 * + 67 - + MIN ( DISTINCT + - col2 ) col0 FROM tab1 AS cor0
----
-73872

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7903
SELECT COUNT( * ) - COUNT( * ) + - 30 + CAST( NULL AS DECIMAL ) * + 35 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT COUNT ( * ) - COUNT ( * ) + - 30 + CAST ( NULL AS REAL ) * + 35 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - 12 * + - col0 AS col1 FROM tab0
----
1044
1164
180

query I rowsort
SELECT DISTINCT - 55 * + - 79 FROM tab0
----
4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, 13 col2 FROM tab2 AS cor0
----
-46
13
-64
13
-75
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab0
----
35
35
35

query I rowsort
SELECT ( + col1 ) FROM tab2 WHERE NOT + 26 * + col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT + MIN( col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT + MIN ( col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( NULL ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( NULL ) <= ( NULL )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7913
SELECT DISTINCT col2 DIV + col2 + col0 AS col2 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT col2 / + col2 + col0 AS col2 FROM tab0
----
16
88
98

query I rowsort
SELECT col2 + - 67 AS col1 FROM tab2
----
-27
-44
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL + COUNT( DISTINCT col0 ) FROM tab0 WHERE NOT 42 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL + COUNT ( DISTINCT col0 ) FROM tab0 WHERE NOT 42 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( 0 ) * + 79 AS col2 FROM tab1 WHERE NOT col0 + - col2 IS NULL
----
0

query I rowsort
SELECT 63 AS col0 FROM tab1 WHERE ( - 52 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 AS col1 FROM tab0 WHERE NOT 78 > NULL
----

query I rowsort
SELECT col0 * - col1 + 14 AS col0 FROM tab2
----
-2332
-4914
-5011

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 9 NOT IN ( col0 * + col2 + + col0 )
----

query I rowsort
SELECT ALL + 70 AS col1 FROM tab1
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL SUM( + ( col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL SUM ( + ( col0 ) ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL MAX( DISTINCT - 97 ) AS col0 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL MAX ( DISTINCT - 97 ) AS col0 FROM tab1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL COUNT( DISTINCT col0 ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL COUNT ( DISTINCT col0 ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
3

query I rowsort
SELECT col1 + - col2 * - 0 FROM tab0
----
1
21
81

query I rowsort
SELECT + 30 * - col1 FROM tab1
----
-1410
-150
-420

query I rowsort
SELECT - 64 * col2 AS col1 FROM tab0
----
-3008
-6336
-640

query I rowsort
SELECT col0 * - col0 + + 19 AS col0 FROM tab0
----
-206
-7550
-9390

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT - SUM( ALL ( col1 ) ) + ( - MAX( ALL 38 ) ) AS col1 FROM tab0 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT - SUM ( ALL ( col1 ) ) + ( - MAX ( ALL 38 ) ) AS col1 FROM tab0 cor0
----
-141

query I rowsort
SELECT DISTINCT - 26 + - col1 * + 4 AS col0 FROM tab2 AS cor0
----
-230
-294
-334

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT - SUM( ALL + 34 ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7933
SELECT - SUM ( ALL + 34 ) FROM tab1 AS cor0
----
-102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT + SUM( 64 ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-7935
SELECT + SUM ( 64 ) FROM tab1
----
192

query I rowsort
SELECT col2 * 45 AS col2 FROM tab1
----
2655
3060
4320

query I rowsort
SELECT DISTINCT col0 - 36 FROM tab1
----
15
49
55

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT DISTINCT + - 0 + - MAX( + 18 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT + - 0 + - MAX ( + 18 ) FROM tab1 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT + col1 * - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT + col1 * - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * col2 - ( 2 + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7942
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 WHERE NOT col0 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7945
SELECT * FROM tab0 WHERE NOT - col2 * col1 NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7945
SELECT * FROM tab0 WHERE NOT - col2 * col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 26 = ( NULL )
----

query I rowsort
SELECT ALL col2 * - + col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT DISTINCT SUM( DISTINCT - - 6 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT SUM ( DISTINCT - - 6 ) AS col2 FROM tab1
----
6

query III rowsort
SELECT * FROM tab1 WHERE NOT + 1 * - col1 NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT ( col2 ) * 73 AS col2 FROM tab2
----
1679
2920
4234

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7951
SELECT ALL * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7951
SELECT ALL * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT - MIN( col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7953
SELECT - MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT - + MIN( + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7954
SELECT - + MIN ( + col1 ) FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7956
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7958
SELECT ALL + COUNT( * ) DIV + 22 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL + COUNT ( * ) / + 22 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col1 FROM tab2, tab1 AS cor0
----
1

query I rowsort
SELECT - + ( 83 ) AS col0 FROM tab2 cor0
----
-83
-83
-83

query I rowsort
SELECT ALL - col0 + + col0 * + 79 FROM tab1 AS cor0
----
3978
6630
7098

query I rowsort
SELECT col0 + 97 AS col1 FROM tab2 AS cor0
----
143
161
172

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT - col1 * 22 + + col0 * - col1 AS col0 FROM tab2 cor0
----
-3468
-6499
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT + COUNT( ALL - - col2 ) + - - 39 - + COUNT( * ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7965
SELECT + COUNT ( ALL - - col2 ) + - - 39 - + COUNT ( * ) FROM tab0 AS cor0
----
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = + - 80 / - 14
----

query I rowsort
SELECT + col1 + + + col2 AS col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL - col2 + - + 37 AS col1 FROM tab1
----
-105
-133
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7969
SELECT ALL - COUNT( * ) * + + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - COUNT ( * ) * + + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - 93 col1, col0 * 12 + 64 AS col2 FROM tab0
----
-114
1108
-174
244
-94
1228

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 < ( NULL )
----

query I rowsort
SELECT ALL 0 * + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT - 61 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab1 WHERE + 91 * + col1 * - col2 + - 78 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE + 91 * + col1 * - col2 + - 78 IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT - SUM( - - ( - ( col1 ) ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7977
SELECT - SUM ( - - ( - ( col1 ) ) ) FROM tab1 AS cor0
----
66

query II rowsort
SELECT ALL 40 AS col0, + col2 AS col0 FROM tab0 AS cor0
----
40
10
40
47
40
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 * + ( - + col0 ) ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT ALL 26 DIV - ( - 4 ) + + col0 + + - col1 + + col0 + col0 FROM tab2 AS cor0
----
121
164
93

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL 26 / - ( - 4 ) + + col0 + + - col1 + + col0 + col0 FROM tab2 AS cor0
----
121
164
93

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE NOT ( + - 63 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - 21 AS col1 FROM tab1 AS cor0
----
30
64
70

query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT + COUNT( + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7984
SELECT + COUNT ( + col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL ( + ( + 33 ) ) AS col1 FROM tab0
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( ( + col0 ) )
----

query II rowsort
SELECT - col2 AS col2, 91 * + - col0 AS col1 FROM tab2
----
-23
-4186
-40
-5824
-58
-6825

query I rowsort
SELECT + 6 AS col1 FROM tab2
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT 33 * + COUNT( * ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7990
SELECT 33 * + COUNT ( * ) AS col2 FROM tab1
----
99

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + + - 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7992
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT ALL - SUM( ALL - CAST( - col0 AS SIGNED ) ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL - SUM ( ALL - CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT - SUM( DISTINCT + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT - SUM ( DISTINCT + col2 ) FROM tab2
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 7 / - - col0 + + 89 >= + ( + col2 )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7996
SELECT ALL 47 * + CAST( 69 AS SIGNED ) * - + MAX( - - col0 ) + + - 91 * 97 DIV 30 col2 FROM tab0
----
-314865

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7996
SELECT ALL 47 * + CAST ( 69 AS INTEGER ) * - + MAX ( - - col0 ) + + - 91 * 97 / 30 col2 FROM tab0
----
-314865

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col1 FROM tab1 AS cor0 WHERE col2 * col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 97 )
----

query II rowsort
SELECT + + 87, + 85 AS col0 FROM tab1 AS cor0 WHERE ( 41 ) BETWEEN ( NULL ) AND + 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT + MAX( DISTINCT + col2 ) * + + SUM( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT + MAX ( DISTINCT + col2 ) * + + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT SUM( - 67 ) FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8002
SELECT SUM ( - 67 ) FROM tab2 AS cor0
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT 82 + - - 73 DIV + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
82
83
83

skipif mysql # not compatible
query I rowsort label-8003
SELECT 82 + - - 73 / + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
82
83
83

query II rowsort
SELECT DISTINCT + 8 * + + 26, col1 FROM tab2 cor0
----
208
51
208
67
208
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT ALL col0 + - - 64 DIV + col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL col0 + - - 64 / + col2 FROM tab2
----
48
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT DISTINCT - COUNT( * ) * - 22 + - + COUNT( * ) + - + 7 AS col2 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT - COUNT ( * ) * - 22 + - + COUNT ( * ) + - + 7 AS col2 FROM tab1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT - 10 + - col0 + + col2 DIV col2 AS col0 FROM tab0
----
-106
-24
-96

skipif mysql # not compatible
query I rowsort label-8007
SELECT - 10 + - col0 + + col2 / col2 AS col0 FROM tab0
----
-106
-24
-96

query I rowsort
SELECT - 12 * col0 + col0 FROM tab2
----
-506
-704
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col1 col0 FROM tab2
----
141
142
97

query II rowsort
SELECT - 24 * 18 * - - 5 + + col0 * ( + col1 ) AS col2, 88 AS col2 FROM tab0
----
-2063
88
-333
88
-945
88

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + 58 + + ( col1 )
----

query II rowsort
SELECT ALL + 1, col2 AS col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT DISTINCT + + 25 + - ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL = col1
----
25

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT + + 25 + - ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL = col1
----
25

query I rowsort
SELECT ALL + 82 AS col2 FROM tab0 cor0
----
82
82
82

query I rowsort
SELECT DISTINCT + - ( + col2 ) + 22 * col2 + - - col1 FROM tab1 AS cor0
----
1244
1475
2030

query I rowsort
SELECT DISTINCT - col0 + + - col0 * col0 + + col1 FROM tab1 AS cor0
----
-2638
-7305
-8325

query I rowsort
SELECT DISTINCT 15 + + col2 AS col1 FROM tab0 AS cor0
----
114
25
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT + COUNT( * ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8018
SELECT + COUNT ( * ) FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE + 36 + - col0 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL - MIN( + + 72 ) AS col0 FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL - MIN ( + + 72 ) AS col0 FROM tab0 cor0
----
-72

query I rowsort
SELECT + 94 AS col1 FROM tab2 cor0
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8023
SELECT 19 DIV 88 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8023
SELECT 19 / 88 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8025
SELECT + 59 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8025
SELECT + 59 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT - 64 DIV col0 AS col2 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-8027
SELECT - 64 / col0 AS col2 FROM tab0 AS cor0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT - 68 * MIN( + - col1 ) FROM tab2 AS cor0
----
5236

skipif mysql # not compatible
query I rowsort label-8028
SELECT - 68 * MIN ( + - col1 ) FROM tab2 AS cor0
----
5236

query II rowsort
SELECT ALL 74, 22 AS col0 FROM tab1
----
74
22
74
22
74
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT COUNT( DISTINCT - CAST( ( + col2 ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8030
SELECT COUNT ( DISTINCT - CAST ( ( + col2 ) AS INTEGER ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT COUNT( * ) * + MAX( col1 ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-8031
SELECT COUNT ( * ) * + MAX ( col1 ) FROM tab2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT DISTINCT + SUM( + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT + SUM ( + col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( + ( - + col0 ) * + + ( + col2 ) * - - col0 + + 8 + + col2 ) > 24
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8034
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8035
SELECT ( SUM( - CAST( NULL AS DECIMAL ) ) ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8035
SELECT ( SUM ( - CAST ( NULL AS REAL ) ) ) col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT DISTINCT - - col0 + + + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 + + ( - 91 ) AND - 74 + - col0
----

query I rowsort
SELECT + 35 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT - 65 + - - SUM( ALL + + 89 ) + + SUM( + 65 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
400

skipif mysql # not compatible
query I rowsort label-8040
SELECT - 65 + - - SUM ( ALL + + 89 ) + + SUM ( + 65 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT + AVG ( 31 ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT + AVG ( 31 ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8042
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT IN ( 22, 18, CAST( NULL AS SIGNED ) + - 77 )
----

skipif mysql # not compatible
query III rowsort label-8042
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT IN ( 22, 18, CAST ( NULL AS INTEGER ) + - 77 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( col2 ) col1 FROM tab1 cor0
----
144
147
159

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 50 IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + COUNT( * ) + + + 42 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8045
SELECT + COUNT ( * ) + + + 42 FROM tab0 AS cor0
----
45

query I rowsort
SELECT - 23 * - + col2 * 99 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL - - 67 + COUNT( * ) + + - 81 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - - 67 + COUNT ( * ) + + - 81 FROM tab2 AS cor0
----
-11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 9 * + col1 NOT BETWEEN + 76 AND + - 26
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 79 < - + col2 + col1
----

query III rowsort
SELECT * FROM tab1 WHERE - 67 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - col0 ) + + 36 * 5 BETWEEN - 15 + + col2 AND NULL
----

query I rowsort
SELECT ALL col0 * - 21 AS col2 FROM tab0 WHERE NOT - + 4 IS NULL
----
-1827
-2037
-315

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 68 NOT BETWEEN col1 * + + col1 AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8054
SELECT ALL MIN( ALL - + col2 ), COUNT( * ) AS col1 FROM tab0
----
-99
3

skipif mysql # not compatible
query II rowsort label-8054
SELECT ALL MIN ( ALL - + col2 ), COUNT ( * ) AS col1 FROM tab0
----
-99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT - COUNT( * ) * - COUNT( * ) * + - MIN( ALL - + col0 ) AS col0 FROM tab2
----
675

skipif mysql # not compatible
query I rowsort label-8055
SELECT - COUNT ( * ) * - COUNT ( * ) * + - MIN ( ALL - + col0 ) AS col0 FROM tab2
----
675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col1 FROM tab0 WHERE NOT - 51 * 61 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8057
SELECT - CAST( NULL AS DECIMAL ) * + AVG ( DISTINCT ( + + col0 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT - CAST ( NULL AS REAL ) * + AVG ( DISTINCT ( + + col0 ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - + 47 + + 7 * col1 * + + ( - col0 ) BETWEEN NULL AND col2
----

query II rowsort
SELECT ALL - 51 + + 71 * 34 AS col1, 98 FROM tab0 AS cor0
----
2363
98
2363
98
2363
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT - 1 - + - 4 + + COUNT( * ) * 30 * COUNT( * ) col1 FROM tab2 cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8060
SELECT - 1 - + - 4 + + COUNT ( * ) * 30 * COUNT ( * ) col1 FROM tab2 cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT - + COUNT( DISTINCT - col2 ) + + 11 AS col2 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT - + COUNT ( DISTINCT - col2 ) + + 11 AS col2 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL - 5 AS col1 FROM tab2
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL COUNT( DISTINCT - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL COUNT ( DISTINCT - col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8064
SELECT ALL 41 * + + 49 * + + SUM( col0 ) AS col1, + SUM( col1 ) col0 FROM tab1
----
456043
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8064
SELECT ALL 41 * + + 49 * + + SUM ( col0 ) AS col1, + SUM ( col1 ) col0 FROM tab1
----
456043
66

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + - 33 / + col0 * - - 40 AND + 9 * col0 + + - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT + + 55 * + COUNT( * ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-8066
SELECT + + 55 * + COUNT ( * ) FROM tab2 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT MIN( ALL - + 70 ) AS col1 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8067
SELECT MIN ( ALL - + 70 ) AS col1 FROM tab1 AS cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8068
SELECT - CAST( NULL AS SIGNED ) col1, + col2 col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8068
SELECT - CAST ( NULL AS INTEGER ) col1, + col2 col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - - col0 + + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 77 + col1 + col2 + + col0 + + col0 * - col2 * 5 * col0 IS NOT NULL
----

query I rowsort
SELECT ( - col0 ) * - - col1 * + + col1 * - 33 FROM tab2
----
11110275
12522048
3948318

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT 2 * + 25 * + + SUM( DISTINCT - + col1 ) FROM tab0
----
-5150

skipif mysql # not compatible
query I rowsort label-8071
SELECT 2 * + 25 * + + SUM ( DISTINCT - + col1 ) FROM tab0
----
-5150

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 <= + + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT + MAX( DISTINCT 44 ) AS col1 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-8073
SELECT + MAX ( DISTINCT 44 ) AS col1 FROM tab2
----
44

query I rowsort
SELECT ALL col0 * - 43 FROM tab2
----
-1978
-2752
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT 51 * - COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-8075
SELECT 51 * - COUNT ( * ) FROM tab1
----
-153

query I rowsort
SELECT 3 FROM tab2 WHERE NOT - - col0 BETWEEN NULL AND - - col2
----
3
3
3

query I rowsort
SELECT ( 18 ) AS col0 FROM tab0
----
18
18
18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col2 + + 19 col1 FROM tab0 AS cor0
----
119
147
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL + - COUNT( * ) + - 18 * + 50 FROM tab1 cor0
----
-903

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL + - COUNT ( * ) + - 18 * + 50 FROM tab1 cor0
----
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + - 69 FROM tab2 AS cor0 WHERE - 87 IS NOT NULL
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-8083
SELECT 3 * + ( col0 ) AS col2, ( + col1 ) DIV - 14 FROM tab1 AS cor0
----
153
-1
255
0
273
-3

skipif mysql # not compatible
query II rowsort label-8083
SELECT 3 * + ( col0 ) AS col2, ( + col1 ) / - 14 FROM tab1 AS cor0
----
153
-1
255
0
273
-3

query I rowsort
SELECT DISTINCT + + col0 * - col2 AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 29 NOT IN ( - col0 + - 22, - col2 / + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT ALL 19 + - - 5 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + - col2 + + col0 - - 17 AS col2 FROM tab2 AS cor0
----
34
40
41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT DISTINCT + col1 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT + col1 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT - - col0 DIV - - col0 + ( + 43 ) FROM tab0 cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-8092
SELECT - - col0 / - - col0 + ( + 43 ) FROM tab0 cor0
----
44
44
44

query I rowsort
SELECT ALL col2 + + - 48 AS col1 FROM tab1 AS cor0
----
11
20
48

query I rowsort
SELECT + col0 + - + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8095
SELECT 83 + - 76 DIV + COUNT( * ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-8095
SELECT 83 + - 76 / + COUNT ( * ) FROM tab0
----
58

query I rowsort
SELECT DISTINCT + 84 - - col2 * + + 48 FROM tab1
----
2916
3348
4692

query I rowsort
SELECT ALL col0 + - - col0 AS col0 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL - ( - COUNT( * ) ) * + - 55 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - ( - COUNT ( * ) ) * + - 55 FROM tab0
----
-165

query I rowsort
SELECT DISTINCT + 35 * + 46 * - 61 AS col0 FROM tab0
----
-98210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8100
SELECT + 14 DIV + - COUNT( * ) + 3 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8100
SELECT + 14 / + - COUNT ( * ) + 3 AS col1 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8101
SELECT DISTINCT col0 DIV col2 + col0 * - col1 FROM tab0
----
-1215
-1819
-97

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT col0 / col2 + col0 * - col1 FROM tab0
----
-1215
-1819
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col1 col2 FROM tab0
----
-66
66
96

query II rowsort
SELECT ALL + col0 - + - col2 * - col2 - + + 48 AS col2, col0 + - - col0 AS col1 FROM tab2
----
-1584
128
-3337
150
-531
92

query I rowsort
SELECT - col1 + 43 - - + col1 * + + col2 AS col2 FROM tab2
----
1165
3046
3862

query I rowsort
SELECT ALL col2 * + + col2 AS col0 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT DISTINCT - col0 * - col2 * + col2 + - col1 AS col2 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - col1
----
295880
420737
470002

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT DISTINCT - col0 DIV col2 * + - col2 - col2 AS col1 FROM tab1
----
-96
0

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT - col0 / col2 * + - col2 - col2 AS col1 FROM tab1
----
-96
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 * + ( - + 14 ) - - 30 ) > NULL
----

query I rowsort
SELECT ALL - col2 * + col0 * + 58 AS col1 FROM tab1
----
-283968
-290870
-358904

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT DISTINCT + 64 DIV - col2 col0 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8110
SELECT DISTINCT + 64 / - col2 col0 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT 79 DIV - - col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8111
SELECT 79 / - - col1 AS col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT ALL - - COUNT( ALL - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - - COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab1 WHERE - - col0 - ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT DISTINCT SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + - 19 col1 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT ALL - 70 * + 90 FROM tab0 cor0
----
-6300
-6300
-6300

query I rowsort
SELECT - 93 FROM tab0 cor0
----
-93
-93
-93

query I rowsort
SELECT - 36 * + 85 FROM tab2
----
-3060
-3060
-3060

query I rowsort
SELECT + 2 * + 93 * - 62 AS col0 FROM tab2
----
-11532
-11532
-11532

query I rowsort
SELECT ALL + col2 * - 89 AS col1 FROM tab1
----
-5251
-6052
-8544

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
-9

query II rowsort
SELECT 69, col0 FROM tab0
----
69
15
69
87
69
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 69 AS col2, - 98 FROM tab0 AS cor0
----
69
-98

query II rowsort
SELECT col0, col0 + + col1 AS col2 FROM tab2 AS cor0
----
46
97
64
141
75
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT + 3 * + COUNT( DISTINCT 81 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-8129
SELECT + 3 * + COUNT ( DISTINCT 81 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT - - col0 + + col0 DIV - 69 col0 FROM tab0 AS cor0
----
15
86
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8130
SELECT - - col0 + + col0 / - 69 col0 FROM tab0 AS cor0
----
15
86
96

query II rowsort
SELECT + + col2 + + - col1 AS col2, 26 AS col0 FROM tab0 AS cor0
----
-11
26
-34
26
98
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col0 + - col0 col1 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # DIV for integer division: 
query I rowsort label-8133
SELECT ALL + col1 DIV + col0 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL + col1 / + col0 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - 78 * - - col2 + - - 22 AS col1 FROM tab1 cor0
----
-4580
-5282
-7466

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - + SUM( DISTINCT + - 68 ) AS col2 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8135
SELECT - + SUM ( DISTINCT + - 68 ) AS col2 FROM tab1 AS cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8136
SELECT * FROM tab0 WHERE - col0 * - + col2 * + col1 BETWEEN - - col2 AND ( + - col0 + CAST( - 50 AS SIGNED ) * + + col1 )
----

skipif mysql # not compatible
query III rowsort label-8136
SELECT * FROM tab0 WHERE - col0 * - + col2 * + col1 BETWEEN - - col2 AND ( + - col0 + CAST ( - 50 AS INTEGER ) * + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT - CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT - CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT SUM( DISTINCT + 62 ) - 75 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-8138
SELECT SUM ( DISTINCT + 62 ) - 75 FROM tab1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8139
SELECT DISTINCT * FROM tab2 WHERE NOT col1 / - - 70 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8139
SELECT DISTINCT * FROM tab2 WHERE NOT col1 / - - 70 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT - - 86 * 95 AS col1 FROM tab1 AS cor0 WHERE NOT - ( - col2 ) / + + col1 + - + 8 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col0 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8142
SELECT + col0, ( - col0 ) DIV col2 AS col2 FROM tab1
----
51
0
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-8142
SELECT + col0, ( - col0 ) / col2 AS col2 FROM tab1
----
51
0
85
-1
91
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT ALL 2 DIV - - ( - 26 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL 2 / - - ( - 26 ) AS col2 FROM tab1
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + ( 83 ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT DISTINCT - - CAST( - 23 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-23

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT - - CAST ( - 23 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-23

query I rowsort
SELECT + - 8 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT + COUNT( - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT + COUNT ( - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 col0, - col1 FROM tab2 cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL + + col2 * - + ( + CAST( NULL AS SIGNED ) ) * 14 + + - col1 * col1 + 16 * + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + + col2 * - + ( + CAST ( NULL AS INTEGER ) ) * 14 + + - col1 * col1 + 16 * + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 48 col2, col2 col2 FROM tab0 AS cor0
----
48
10
48
47
48
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 33 - - 58, + AVG ( ALL + col2 ) * 81 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
91
NULL

query I rowsort
SELECT DISTINCT + col1 * + + col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

query II rowsort
SELECT DISTINCT + - col2 * - col2, col0 AS col1 FROM tab2 AS cor0
----
1600
64
3364
75
529
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - - ( COUNT( - col0 ) ) * - 97 - - + 40 AS col2 FROM tab2 AS cor0
----
-251

skipif mysql # not compatible
query I rowsort label-8154
SELECT - - ( COUNT ( - col0 ) ) * - 97 - - + 40 AS col2 FROM tab2 AS cor0
----
-251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8155
SELECT + ( 3 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8155
SELECT + ( 3 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * 3 col0, col1 AS col0 FROM tab1
----
153
14
255
5
273
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT - col0 * + + col2 DIV - + col2 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8157
SELECT - col0 * + + col2 / - + col2 AS col2 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8158
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + + + col2 >= + col2
----

skipif mysql # not compatible
query III rowsort label-8158
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + + + col2 >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8159
SELECT - SUM( + ( - col1 ) ) * + CAST( NULL AS DECIMAL ) + + MIN( - + col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT - SUM ( + ( - col1 ) ) * + CAST ( NULL AS REAL ) + + MIN ( - + col1 ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT ALL - ( + - 42 ) DIV + - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - ( + - 42 ) / + - col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8161
SELECT DISTINCT - col1 DIV + 89 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT - col1 / + 89 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 40 + + col2 col2, col0 FROM tab0
----
-30
87
59
97
7
15

query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE col0 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8164
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / 78 * + + SUM( col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / 78 * + + SUM ( col2 ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + col0 col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT - - ( + 89 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8167
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT + COUNT( DISTINCT 35 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT + COUNT ( DISTINCT 35 ) FROM tab2
----
1

query I rowsort
SELECT + 89 - - col1 AS col0 FROM tab0 AS cor0
----
110
170
90

query I rowsort
SELECT - 94 + + + 27 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + 66 AS col1 FROM tab1 cor0 WHERE NULL IN ( 62, - 66 + + col1 + col0 / + col0 / - col2 * - - col1, + 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL + ( - 42 ) - COUNT( * ) AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + ( - 42 ) - COUNT ( * ) AS col1 FROM tab0
----
-45

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + col0 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + col2 - col2 <= + ( col2 ) + + col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL COUNT( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * col0 col0 FROM tab0 AS cor0
----
150
870
970

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8177
SELECT * FROM tab1 WHERE NOT - - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8177
SELECT * FROM tab1 WHERE NOT - - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 21 AS col2, 88 col1 FROM tab2
----
-21
88
-21
88
-21
88

query II rowsort
SELECT ALL col0, col1 * + 92 FROM tab0 cor0
----
15
7452
87
1932
97
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT DISTINCT + COUNT( + 67 ) * + SUM( + 56 ) FROM tab2 AS cor0
----
504

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT + COUNT ( + 67 ) * + SUM ( + 56 ) FROM tab2 AS cor0
----
504

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + 52 col2 FROM tab0 AS cor0
----
1092
4212
52

query I rowsort
SELECT + - ( - ( col2 ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT - - col1 AS col2 FROM tab2 cor0 WHERE NOT ( NOT - col0 / CAST( 21 AS SIGNED ) IS NOT NULL )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8185
SELECT - - col1 AS col2 FROM tab2 cor0 WHERE NOT ( NOT - col0 / CAST ( 21 AS INTEGER ) IS NOT NULL )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT - + CAST( + col2 AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-8186
SELECT - + CAST ( + col2 AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT DISTINCT + COUNT( * ) + + 44 AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT + COUNT ( * ) + + 44 AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - 10 AS col2 FROM tab0 cor0
----
-10
-10
-10

query I rowsort
SELECT + + 1 + + ( + 87 ) FROM tab2 cor0
----
88
88
88

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + ( - - col1 ) / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT MAX( ALL 98 ) col1 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8191
SELECT MAX ( ALL 98 ) col1 FROM tab1 AS cor0
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-8192
SELECT 85 col2, + col1 DIV + col0 FROM tab2 AS cor0
----
85
0
85
1
85
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8192
SELECT 85 col2, + col1 / + col0 FROM tab2 AS cor0
----
85
0
85
1
85
1

query I rowsort
SELECT ALL - 11 * - 69 FROM tab0 AS cor0
----
759
759
759

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8194
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT DISTINCT COUNT( * ) - - - 90 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT COUNT ( * ) - - - 90 FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT - COUNT( * ) + - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8196
SELECT - COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT 49 + + ( + COUNT( * ) ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8197
SELECT 49 + + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
52

query I rowsort
SELECT - + 6 + - col1 FROM tab0 AS cor0
----
-27
-7
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT + + 66 * + SUM( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-7986

skipif mysql # not compatible
query I rowsort label-8199
SELECT + + 66 * + SUM ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-7986

query II rowsort
SELECT ALL col2 + col0 AS col1, + 8 AS col0 FROM tab0 AS cor0
----
196
8
62
8
97
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL + + 13 * - SUM( ALL - col1 ) AS col0 FROM tab1 cor0
----
858

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL + + 13 * - SUM ( ALL - col1 ) AS col0 FROM tab1 cor0
----
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 + + col1 * col1 col1 FROM tab0 AS cor0
----
1311
7266
9604

query I rowsort
SELECT + 6 AS col2 FROM tab2 AS cor0 WHERE ( + 89 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8204
SELECT ALL COUNT( * ), + 98 AS col1 FROM tab1
----
3
98

skipif mysql # not compatible
query II rowsort label-8204
SELECT ALL COUNT ( * ), + 98 AS col1 FROM tab1
----
3
98

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT - CAST( MIN( + 1 ) AS SIGNED ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8206
SELECT - CAST ( MIN ( + 1 ) AS INTEGER ) AS col1 FROM tab1
----
-1

query II rowsort
SELECT ALL col0, - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL MIN( - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL MIN ( - col0 ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT ALL + ( col2 ) * 76 FROM tab1
----
4484
5168
7296

query I rowsort
SELECT DISTINCT ( + - 37 ) FROM tab1 cor0
----
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 32 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 31 + - col1 IS NOT NULL
----

query I rowsort
SELECT + ( col0 ) * - + col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8214
SELECT * FROM tab1 WHERE NOT CAST( - col2 AS SIGNED ) + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8214
SELECT * FROM tab1 WHERE NOT CAST ( - col2 AS INTEGER ) + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0, - 34 col1 FROM tab2
----
-2116
-34
-4096
-34
-5625
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT DISTINCT ( - SUM( - col0 ) ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT ( - SUM ( - col0 ) ) AS col1 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT + ( + 24 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8217
SELECT + ( + 24 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col0 + + 43 AS col2 FROM tab1 AS cor0
----
128
134
94

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 78 AS col0 FROM tab0 cor0
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT ALL - - 75 DIV col2 + + - col0 FROM tab0 AS cor0
----
-14
-80
-97

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL - - 75 / col2 + + - col0 FROM tab0 AS cor0
----
-14
-80
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT COUNT( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8222
SELECT COUNT ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8223
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( + - col2 AS SIGNED ) * col1 BETWEEN + - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8223
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( + - col2 AS INTEGER ) * col1 BETWEEN + - col2 AND NULL
----

query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 34 + - 19 FROM tab2 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8226
SELECT * FROM tab0 cor0 WHERE ( CAST( - col2 AS SIGNED ) ) * - 3 + - 10 + - 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8226
SELECT * FROM tab0 cor0 WHERE ( CAST ( - col2 AS INTEGER ) ) * - 3 + - 10 + - 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL + COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT COUNT( * ) * + 38 * + 19 FROM tab2
----
2166

skipif mysql # not compatible
query I rowsort label-8230
SELECT COUNT ( * ) * + 38 * + 19 FROM tab2
----
2166

query I rowsort
SELECT col0 * + - col1 AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT DISTINCT MAX( ALL - 4 ) AS col1 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT MAX ( ALL - 4 ) AS col1 FROM tab2
----
-4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 * 17 * - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 27 + - col2 FROM tab2
----
-50
-67
-85

query I rowsort
SELECT col1 + - + ( + - col1 ) * - col2 AS col1 FROM tab0
----
-189
-3726
-98

query I rowsort
SELECT DISTINCT - - 70 + - - col0 FROM tab2 AS cor0
----
116
134
145

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 0 <> - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT 16 + - COUNT( * ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8238
SELECT 16 + - COUNT ( * ) FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + + MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8239
SELECT + + MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT + - MIN( ALL col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8240
SELECT + - MIN ( ALL col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8241
SELECT DISTINCT * FROM tab2 WHERE + 78 BETWEEN ( + 39 ) AND CAST( NULL AS SIGNED ) * + + col1
----

skipif mysql # not compatible
query III rowsort label-8241
SELECT DISTINCT * FROM tab2 WHERE + 78 BETWEEN ( + 39 ) AND CAST ( NULL AS INTEGER ) * + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT ALL col0 DIV + - col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL col0 / + - col1 FROM tab1
----
-1
-17
-3

query II rowsort
SELECT ALL - col2, - col2 AS col2 FROM tab0 cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8245
SELECT + - MAX( ALL + - col0 ) - + COUNT( * ) + CAST( NULL AS SIGNED ) * 79 * + CAST( NULL AS SIGNED ) * - AVG ( ALL - + 73 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT + - MAX ( ALL + - col0 ) - + COUNT ( * ) + CAST ( NULL AS INTEGER ) * 79 * + CAST ( NULL AS INTEGER ) * - AVG ( ALL - + 73 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT + COUNT( * ) + + + 86 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
86

skipif mysql # not compatible
query I rowsort label-8246
SELECT + COUNT ( * ) + + + 86 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - COUNT( * ) + + 6 AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8247
SELECT - COUNT ( * ) + + 6 AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT + + 37 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT + + 37 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
111

query I rowsort
SELECT + - 90 * col1 FROM tab2 AS cor0
----
-4590
-6030
-6930

onlyif mysql # aggregate syntax: 
query II rowsort label-8250
SELECT + - 9, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-8250
SELECT + - 9, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT col2 / - col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8252
SELECT - CAST( NULL AS SIGNED ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8252
SELECT - CAST ( NULL AS INTEGER ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT col1 DIV + - ( - col1 ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8253
SELECT col1 / + - ( - col1 ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + col2 >= - col0
----
51
85
91

query II rowsort
SELECT ALL + ( + col1 ), 53 + + col1 FROM tab1
----
14
67
47
100
5
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8256
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) * 45 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8256
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * 45 col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL - 17 * + - SUM( - + 24 ) AS col1 FROM tab2
----
-1224

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - 17 * + - SUM ( - + 24 ) AS col1 FROM tab2
----
-1224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8258
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col0, ( col1 ) AS col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

skipif mysql # not compatible
query II rowsort label-8258
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col0, ( col1 ) AS col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT ( - 59 ) FROM tab0 cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL + SUM( + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL + SUM ( + col2 ) FROM tab1 AS cor0
----
223

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT DISTINCT col1 AS col1, - col2 FROM tab0
----
1
-99
21
-10
81
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 87 IS NOT NULL
----

query I rowsort
SELECT + 36 + + + 6 AS col0 FROM tab1 AS cor0
----
42
42
42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col2 * + col0 + - col2 + col1 - - - col0 / col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT + - SUM( - 77 ) + - + 16 AS col2 FROM tab1 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT + - SUM ( - 77 ) + - + 16 AS col2 FROM tab1 AS cor0
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT 47 * - COUNT( * ) + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
-140

skipif mysql # not compatible
query I rowsort label-8269
SELECT 47 * - COUNT ( * ) + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
-140

query I rowsort
SELECT ALL - col2 * + 10 + 33 * + col0 AS col1 FROM tab0 AS cor0
----
2211
25
2771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col1 col2 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT CAST( + - col0 AS SIGNED ) * - col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-8273
SELECT CAST ( + - col0 AS INTEGER ) * - col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL - ( + ( MIN( DISTINCT - col2 ) ) ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - ( + ( MIN ( DISTINCT - col2 ) ) ) AS col2 FROM tab2
----
58

query I rowsort
SELECT ALL col0 + - col0 AS col0 FROM tab1 WHERE NOT 99 * - 55 IS NULL
----
0
0
0

query II rowsort
SELECT ALL - 35 * + ( + col0 ) * + 56 + col2 AS col2, + col1 * - - col2 * col0 FROM tab1
----
-166541
25075
-178292
290836
-99864
68544

query II rowsort
SELECT + 55 * + col1, col1 FROM tab2
----
2805
51
3685
67
4235
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8278
SELECT - SUM( ALL + col2 ) * - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT - SUM ( ALL + col2 ) * - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * col1 + - 99 AS col1 FROM tab0 AS cor0
----
-198
-309
-3906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8280
SELECT - + CAST( + - SUM( - + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE 1 IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-8280
SELECT - + CAST ( + - SUM ( - + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE 1 IS NOT NULL
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-8281
SELECT DISTINCT col1 DIV + + col2 + 20 + - + col1 col2 FROM tab1 AS cor0
----
-27
15
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8281
SELECT DISTINCT col1 / + + col2 + 20 + - + col1 col2 FROM tab1 AS cor0
----
-27
15
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT DISTINCT + + 47 * + CAST( + 99 AS SIGNED ) + 86 * + + 77 - + - col1 + col2 * + ( + 82 ) FROM tab1 cor0
----
16118
16898
19161

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + + 47 * + CAST ( + 99 AS INTEGER ) + 86 * + + 77 - + - col1 + col2 * + ( + 82 ) FROM tab1 cor0
----
16118
16898
19161

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8283
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 <> + CAST( NULL AS SIGNED ) / - + col2 + + col2 - 5
----

skipif mysql # not compatible
query III rowsort label-8283
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 <> + CAST ( NULL AS INTEGER ) / - + col2 + + col2 - 5
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 - + col1 + + col1 * col1 < NULL
----

query I rowsort
SELECT + 62 + - + 2 FROM tab1
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL + COUNT( * ) - 96 col2 FROM tab1
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8286
SELECT ALL + COUNT ( * ) - 96 col2 FROM tab1
----
-93

query I rowsort
SELECT ALL col0 - - + 99 AS col1 FROM tab1
----
150
184
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - SUM( - 71 ) FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-8288
SELECT - SUM ( - 71 ) FROM tab2
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT MIN( - - col0 ) * + - 17 FROM tab2 cor0
----
-782

skipif mysql # not compatible
query I rowsort label-8289
SELECT MIN ( - - col0 ) * + - 17 FROM tab2 cor0
----
-782

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT ALL - MIN( - + 98 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
98

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL - MIN ( - + 98 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1, - 80, - 49 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL - + MAX( DISTINCT - 47 ) FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL - + MAX ( DISTINCT - 47 ) FROM tab2 cor0
----
47

query II rowsort
SELECT 90, - col1 AS col0 FROM tab0
----
90
-1
90
-21
90
-81

query II rowsort
SELECT ALL col2 AS col0, col0 AS col1 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT + 78 * - 18 AS col0 FROM tab2
----
-1404

query II rowsort
SELECT col0 AS col0, col0 * + col2 AS col2 FROM tab2
----
46
1058
64
2560
75
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 14 * - col1, col2 col1 FROM tab2
----
-1078
40
-714
23
-938
58

query III rowsort
SELECT 83, col0 AS col0, + col2 AS col1 FROM tab1
----
9 values hashing to 52f1465b8331bac9424c0024d816ce30

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL + 84 * COUNT( * ) FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + 84 * COUNT ( * ) FROM tab1
----
252

query II rowsort
SELECT + col0, + 29 AS col1 FROM tab1
----
51
29
85
29
91
29

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 NOT IN ( - + col1 + + + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + + col2 - + col2 * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT DISTINCT col2 DIV + 61 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT col2 / + 61 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + ( - col2 ) + - col1 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT DISTINCT 48 DIV col0 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT 48 / col0 AS col2 FROM tab2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 15 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT 43 DIV + MIN( ALL + col0 ) FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8310
SELECT 43 / + MIN ( ALL + col0 ) FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col0 + - 84 AS col2, col0 + - col2 + - - 12 FROM tab2 AS cor0
----
-20
36
-38
35
-9
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 82 * + + 60 + - + col1 col2, 12 FROM tab1 AS cor0
----
4873
12
4906
12
4915
12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + + 86
----

query I rowsort
SELECT col0 + + 94 * 2 FROM tab0
----
203
275
285

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - col1 + - 38
----

query I rowsort
SELECT 15 * + col1 + + ( - - 33 ) * - + 43 + - - col0 FROM tab2
----
-200
-339
-608

query I rowsort
SELECT + 55 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
55
55
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT ALL 83 DIV + col1 - - 43 FROM tab1
----
44
48
59

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL 83 / + col1 - - 43 FROM tab1
----
44
48
59

query II rowsort
SELECT + + col2, - col0 AS col1 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query II rowsort
SELECT - col0 AS col2, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL + COUNT( DISTINCT + 76 ) + + + 53 AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL + COUNT ( DISTINCT + 76 ) + + + 53 AS col0 FROM tab2 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 + CAST( - col1 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 + CAST ( - col1 AS INTEGER ) IS NULL
----
3

query I rowsort
SELECT - 14 * + + col2 FROM tab0 cor0
----
-1386
-140
-658

query I rowsort
SELECT + - col2 AS col0 FROM tab1 cor0 WHERE NOT 5 / - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT COUNT( * ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8328
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - 46 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL 89 * + COUNT( * ) + 18 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL 89 * + COUNT ( * ) + 18 FROM tab0 AS cor0
----
285

query I rowsort
SELECT - col1 * + col0 * + 87 FROM tab0 AS cor0
----
-105705
-158949
-8439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8332
SELECT + SUM( DISTINCT + + col2 ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT + SUM ( DISTINCT + + col2 ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - 70 * - col0 * - - 26 AS col2 FROM tab1 AS cor0
----
154700
165620
92820

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL + COUNT( DISTINCT - col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL + COUNT ( DISTINCT - col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8335
SELECT 6 * + 5 DIV SUM( ALL + + col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT 6 * + 5 / SUM ( ALL + + col0 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - 33 FROM tab1 WHERE col2 * - - col1 + col0 * - 68 + - + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT + 44 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT + MAX( ALL - - 46 ) AS col2 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-8338
SELECT + MAX ( ALL - - 46 ) AS col2 FROM tab0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8339
SELECT ALL col1 DIV - + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL col1 / - + col1 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 * - col0 + - + ( + 34 ) AS col0 FROM tab1 cor0
----
59
391
68
4243
96
680

query II rowsort
SELECT - col1 AS col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query II rowsort
SELECT - + col0, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL + + col1 * - col0 * + - col2 AS col0 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT + - 2 * - - ( - CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-8344
SELECT + - 2 * - - ( - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
162
2
42

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 62 * - col0 * - col0 * + col1 NOT BETWEEN NULL AND + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT 82 + - - COUNT( * ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-8347
SELECT 82 + - - COUNT ( * ) FROM tab1
----
85

query II rowsort
SELECT DISTINCT + 76, + col1 + + - 9 + + - 20 * + col1 AS col1 FROM tab2 AS cor0
----
76
-1282
76
-1472
76
-978

query I rowsort
SELECT 56 + - col1 FROM tab2 cor0
----
-11
-21
5

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 11 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT + 46 * - 7 + - COUNT( ALL - + col2 ) AS col1 FROM tab1
----
-325

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT + 46 * - 7 + - COUNT ( ALL - + col2 ) AS col1 FROM tab1
----
-325

query I rowsort
SELECT + 64 - col2 AS col1 FROM tab1
----
-32
-4
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8354
SELECT ALL 32 DIV + col1 - - 45 AS col0 FROM tab1
----
45
47
51

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL 32 / + col1 - - 45 AS col0 FROM tab1
----
45
47
51

query I rowsort
SELECT 21 * + 44 - col1 FROM tab2 AS cor0
----
847
857
873

query I rowsort
SELECT + col1 * - - col2 + - col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - MIN( DISTINCT col1 ) * - + 77 AS col0 FROM tab1 AS cor0
----
385

skipif mysql # not compatible
query I rowsort label-8357
SELECT - MIN ( DISTINCT col1 ) * - + 77 AS col0 FROM tab1 AS cor0
----
385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 58, - col0 * + + 86 col2 FROM tab1 cor0
----
58
-4386
58
-7310
58
-7826

query I rowsort
SELECT ALL + col2 * 61 FROM tab2 AS cor0
----
1403
2440
3538

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 + col1 >= - + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - col0 ) IS NULL
----

query I rowsort
SELECT + 94 + + col0 + + col1 AS col0 FROM tab1 WHERE NOT + 3 IS NULL
----
159
184
232

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT + COUNT( * ) * - - ( - 93 ) AS col1 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-8363
SELECT + COUNT ( * ) * - - ( - 93 ) AS col1 FROM tab1
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT + col2 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT + col2 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT - COUNT( * ) * - 14 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT - COUNT ( * ) * - 14 FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT DISTINCT MIN( DISTINCT + + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT MIN ( DISTINCT + + col2 ) AS col2 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT CAST( NULL AS SIGNED ) * - + col1 / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT CAST ( NULL AS INTEGER ) * - + col1 / col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8368
SELECT COUNT( * ) DIV ( + 40 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8368
SELECT COUNT ( * ) / ( + 40 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + ( + 42 ) + + col0 - + - col0 FROM tab2 AS cor0
----
134
170
192

query I rowsort
SELECT ALL 19 FROM tab1 cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8371
SELECT + COUNT( * ), - 65 * + COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9
-585

skipif mysql # not compatible
query II rowsort label-8371
SELECT + COUNT ( * ), - 65 * + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9
-585

query I rowsort
SELECT 72 * - col0 FROM tab2
----
-3312
-4608
-5400

query I rowsort
SELECT ALL 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT ( - 79 ) FROM tab2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT 51 * - MAX( ( + ( - col0 ) ) ) AS col1 FROM tab0
----
765

skipif mysql # not compatible
query I rowsort label-8375
SELECT 51 * - MAX ( ( + ( - col0 ) ) ) AS col1 FROM tab0
----
765

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <= - + col0
----
15
81
47

query I rowsort
SELECT DISTINCT + + col0 + + - 22 AS col1 FROM tab2 cor0 WHERE NOT 51 IS NULL
----
24
42
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + 49 * + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - - COUNT( * ) - - 17 + - 30 AS col0 FROM tab1 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8379
SELECT - - COUNT ( * ) - - 17 + - 30 AS col0 FROM tab1 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL - COUNT( * ) + COUNT( DISTINCT 33 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - COUNT ( * ) + COUNT ( DISTINCT 33 ) FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT + MAX( ALL - 80 ) AS col0 FROM tab2 cor0 WHERE - col2 NOT BETWEEN - col2 AND + - 69 / - + col2 * - - 37 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT + MAX ( ALL - 80 ) AS col0 FROM tab2 cor0 WHERE - col2 NOT BETWEEN - col2 AND + - 69 / - + col2 * - - 37 + col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) + - + 93 * - 70 * + - MIN( col0 ) * 96 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - + 93 * - 70 * + - MIN ( col0 ) * 96 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 40 + col0 - + 15 FROM tab2 AS cor0
----
100
71
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT ALL CAST( NULL AS SIGNED ) - - col0 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8384
SELECT ALL CAST ( NULL AS INTEGER ) - - col0 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + ( col2 ) NOT IN ( + 69 / + + col2 + col2 + - - 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 26 - - col1 + - col2 AS col0 FROM tab1
----
-28
-56
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT 93 - - COUNT( + - col0 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT 93 - - COUNT ( + - col0 ) FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - + SUM( DISTINCT col1 ) - 52 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT - + SUM ( DISTINCT col1 ) - 52 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) BETWEEN NULL AND 9
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT ALL + CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8391
SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT DISTINCT ( - + 2 ) - - ( + 7 ) AS col0, - ( - + COUNT( * ) ) FROM tab1
----
5
3

skipif mysql # not compatible
query II rowsort label-8393
SELECT DISTINCT ( - + 2 ) - - ( + 7 ) AS col0, - ( - + COUNT ( * ) ) FROM tab1
----
5
3

query I rowsort
SELECT ALL col2 * - + col1 * + 35 FROM tab1 cor0
----
-10325
-111860
-47040

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT + SUM( DISTINCT - col1 ) * MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
9991

skipif mysql # not compatible
query I rowsort label-8395
SELECT + SUM ( DISTINCT - col1 ) * MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
9991

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - + col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT + SUM( DISTINCT + + 5 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8397
SELECT + SUM ( DISTINCT + + 5 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL - MIN( ALL - 94 ) AS col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - MIN ( ALL - 94 ) AS col1 FROM tab1 AS cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - 2 ), - col2 col1 FROM tab2
----
-2
-23
-2
-40
-2
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - ( + ( + col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL - MAX( DISTINCT + + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - MAX ( DISTINCT + + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8403
SELECT ALL + CAST( + col1 AS SIGNED ), col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-8403
SELECT ALL + CAST ( + col1 AS INTEGER ), col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 + - col0 NOT IN ( - col0 * - + col2 )
----

query I rowsort
SELECT ALL col2 * + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL ( + - COUNT( * ) ) AS col0 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL ( + - COUNT ( * ) ) AS col0 FROM tab0, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8407
SELECT - COUNT( * ) AS col0, 96 + - 68 - - + COUNT( * ) FROM tab1
----
-3
31

skipif mysql # not compatible
query II rowsort label-8407
SELECT - COUNT ( * ) AS col0, 96 + - 68 - - + COUNT ( * ) FROM tab1
----
-3
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 AS col2, + col2 + + + col0 * 34 col0 FROM tab1 AS cor0
----
-51
1830
-85
2949
-91
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8409
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 )
----
0

query I rowsort
SELECT + 63 FROM tab2 WHERE NOT - 13 * col1 IS NOT NULL
----

query I rowsort
SELECT 16 * + col2 AS col1 FROM tab0
----
1584
160
752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8412
SELECT COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT col0 * ( col0 * - 89 ) FROM tab1
----
-231489
-643025
-737009

query III rowsort
SELECT * FROM tab2 WHERE 64 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - 26 IN ( - ( - col2 ) * 20 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT ALL ( 47 ) DIV 51 + - col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL ( 47 ) / 51 + - col0 AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col2 * - 20 AS col2 FROM tab0
----
-1980
-200
-940

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 < 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT COUNT( DISTINCT 49 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8419
SELECT COUNT ( DISTINCT 49 ) AS col2 FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * 79 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 * - 40 col1 FROM tab1
----
-520
-520
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL + COUNT( * ) * + 99 AS col2 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL + COUNT ( * ) * + 99 AS col2 FROM tab1
----
297

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 28 BETWEEN 88 AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8424
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col1 + - col0 * ( + col2 - + 36 ) NOT BETWEEN - CAST( NULL AS DECIMAL ) * col2 AND col2
----

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col1 + - col0 * ( + col2 - + 36 ) NOT BETWEEN - CAST ( NULL AS REAL ) * col2 AND col2
----

query III rowsort
SELECT * FROM tab0 WHERE - 89 = 78
----

query I rowsort
SELECT 70 + + col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - ( col0 ) AS col2 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT + CAST( + col1 AS SIGNED ) + col0 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-8428
SELECT + CAST ( + col1 AS INTEGER ) + col0 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8429
SELECT 63 DIV col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-8429
SELECT 63 / col1 FROM tab1
----
1
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT + 82 + - 70 * MIN( col0 ) FROM tab2
----
-3138

skipif mysql # not compatible
query I rowsort label-8430
SELECT + 82 + - 70 * MIN ( col0 ) FROM tab2
----
-3138

query I rowsort
SELECT ALL 9 FROM tab1 WHERE ( - col1 * col1 ) IS NOT NULL
----
9
9
9

query I rowsort
SELECT DISTINCT - col0 + 93 AS col0 FROM tab2
----
18
29
47

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + col1 * + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) = - col2
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT + col1 NOT IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + - col0 IS NULL
----

query I rowsort
SELECT + 35 + - 72 AS col2 FROM tab2 WHERE NOT col1 IS NULL
----
-37
-37
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT ALL - ( 34 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - ( 34 ) / + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 93 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
93
93
93

query I rowsort
SELECT ALL - 17 * col0 FROM tab0 cor0
----
-1479
-1649
-255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col1 FROM tab0 AS cor0
----
75

query I rowsort
SELECT DISTINCT col0 * 13 AS col2 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
1131
1261
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT MAX( DISTINCT 26 ) AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-8443
SELECT MAX ( DISTINCT 26 ) AS col2 FROM tab2
----
26

query I rowsort
SELECT - 22 * - 47 AS col2 FROM tab2
----
1034
1034
1034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT CAST( - 37 AS SIGNED ) AS col2 FROM tab0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-8445
SELECT CAST ( - 37 AS INTEGER ) AS col2 FROM tab0
----
-37
-37
-37

query I rowsort
SELECT ALL 49 FROM tab0 cor0 WHERE ( 28 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 82 - - col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT DISTINCT + - col0 DIV col1 col2 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8448
SELECT DISTINCT + - col0 / col1 col2 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT - + ( + COUNT( * ) ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8449
SELECT - + ( + COUNT ( * ) ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 0 col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 12 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL + 90 + - MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL + 90 + - MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
149

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT - 40 DIV - + 12 AS col1 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8457
SELECT - 40 / - + 12 AS col1 FROM tab1
----
3
3
3

query I rowsort
SELECT ALL col0 * + 71 * - col0 FROM tab1
----
-184671
-512975
-587951

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT ALL col2 DIV + - 70 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL col2 / + - 70 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT SUM( DISTINCT + 90 ) AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-8460
SELECT SUM ( DISTINCT + 90 ) AS col1 FROM tab1
----
90

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + 66 * 27 AND 84 * - 41
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 * ( col1 * 26 ) ) > NULL
----

query I rowsort
SELECT - col0 * - 55 FROM tab2
----
2530
3520
4125

query I rowsort
SELECT - 5 AS col0 FROM tab1 WHERE NULL IS NOT NULL OR ( - col0 * col0 ) IS NULL
----

query I rowsort
SELECT col0 + + 79 FROM tab1
----
130
164
170

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT - col1 + - 25 FROM tab2
----
-102
-76
-92

query I rowsort
SELECT + col2 FROM tab2 WHERE ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT DISTINCT - col1 + - - CAST( NULL AS SIGNED ) * 32 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT - col1 + - - CAST ( NULL AS INTEGER ) * 32 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT + + MIN( ALL - + 48 ) AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8470
SELECT + + MIN ( ALL - + 48 ) AS col1 FROM tab2 AS cor0
----
-48

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 / 85 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) = ( 48 )
----

query I rowsort
SELECT - 86 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-86
-86
-86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) IN ( - col1 - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 35 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT DISTINCT col1 * + col0 + + - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2392
4992
5100

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT col1 * + col0 + + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT ALL - 28 * - col1 + + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1106
5593
565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT DISTINCT - CAST( + 36 AS SIGNED ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT - CAST ( + 36 AS INTEGER ) FROM tab1 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT col1 DIV - - col1 + + ( + col0 ) AS col0 FROM tab2 cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-8479
SELECT col1 / - - col1 + + ( + col0 ) AS col0 FROM tab2 cor0
----
47
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT col1 DIV + + ( - 12 ) + col1 * 82 AS col0 FROM tab2 AS cor0
----
4178
5489
6308

skipif mysql # not compatible
query I rowsort label-8480
SELECT col1 / + + ( - 12 ) + col1 * 82 AS col0 FROM tab2 AS cor0
----
4178
5489
6308

query I rowsort
SELECT DISTINCT - - col2 + - col2 + - - 16 FROM tab2 AS cor0
----
16

query II rowsort
SELECT DISTINCT + 9 AS col2, col2 - - col2 AS col0 FROM tab1 AS cor0
----
9
118
9
136
9
192

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT + col2 DIV + - col1 * col0 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT + col2 / + - col1 * col0 / + col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 + col0 * col1 > col0 - - col0
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT ALL 24 + 56 * col1 FROM tab0 WHERE col2 * col1 + CAST( NULL AS SIGNED ) * + 67 <= - 74
----

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL 24 + 56 * col1 FROM tab0 WHERE col2 * col1 + CAST ( NULL AS INTEGER ) * + 67 <= - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL 86 * + + MAX( ALL - 97 ) FROM tab0
----
-8342

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL 86 * + + MAX ( ALL - 97 ) FROM tab0
----
-8342

query III rowsort
SELECT ALL * FROM tab2 WHERE - 18 * 80 * col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 68 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL + COUNT( - 95 ) FROM tab1 WHERE NOT NULL NOT IN ( col1 + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + COUNT ( - 95 ) FROM tab1 WHERE NOT NULL NOT IN ( col1 + + col2 )
----
0

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab0 cor0
----
-11

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab0 cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 88 * + 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 * 2 * + 25 col0 FROM tab2 AS cor0
----
4100

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT col2 DIV 35 * - col1 AS col0 FROM tab0 AS cor0
----
-2
-81
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT col2 / 35 * - col1 AS col0 FROM tab0 AS cor0
----
-2
-81
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 - col0 * + + col1 * + col2 NOT IN ( col0 + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT DISTINCT ( - col0 ) DIV - - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT ( - col0 ) / - - col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL + COUNT( * ) * 68 AS col0 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + COUNT ( * ) * 68 AS col0 FROM tab1
----
204

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( col0 ) NOT IN ( col2 * - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8500
SELECT + - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL + MIN( ALL + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL + MIN ( ALL + col0 ) FROM tab1
----
51

query I rowsort
SELECT - - 82 * + 0 * col0 + - 12 AS col0 FROM tab0 AS cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + - 53 - col0 AS col1, - col0 * 34 col2 FROM tab0 AS cor0
----
-130
-2958
-21
-510
-51
-3298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + + 53 + + col0, col1 col2 FROM tab2 AS cor0
----
2484
51
3456
77
4050
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT 92 DIV - col0 + col0 col2 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8505
SELECT 92 / - col0 + col0 col2 FROM tab1 AS cor0
----
50
84
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 39 - - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 39 - - col0 AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 79 AS col1, + col2 + 65 FROM tab0 AS cor0
----
79
112
79
164
79
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( NULL ) AND ( - + 0 ) = ( 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT + 82 + + ( - COUNT( * ) ) * COUNT( * ) * - 51 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
82

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + 82 + + ( - COUNT ( * ) ) * COUNT ( * ) * - 51 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT - 0 + - col1 + - col2 * 84 DIV col0 FROM tab0 AS cor0
----
-30
-344
-86

skipif mysql # not compatible
query I rowsort label-8510
SELECT - 0 + - col1 + - col2 * 84 / col0 FROM tab0 AS cor0
----
-30
-344
-86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8511
SELECT + 97 / col1 + + CAST( NULL AS DECIMAL ) + - col0 * col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT + 97 / col1 + + CAST ( NULL AS REAL ) + - col0 * col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col1 FROM tab0 WHERE NOT + 2 < ( - - col0 * - + col2 )
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT ALL - col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE NOT ( NOT NULL = ( NULL ) )
----

query I rowsort
SELECT 60 AS col2 FROM tab2 WHERE col1 <> ( - col1 )
----
60
60
60

query II rowsort
SELECT + col1 AS col0, + col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT - col0 * - - 79 AS col1 FROM tab0
----
-1185
-6873
-7663

query II rowsort
SELECT + col0 AS col2, + 95 * + + col1 AS col2 FROM tab1
----
51
1330
85
475
91
4465

query I rowsort
SELECT DISTINCT + col2 + 2 * - col1 AS col2 FROM tab2
----
-114
-76
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8521
SELECT - + CAST( - + MAX( DISTINCT - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8521
SELECT - + CAST ( - + MAX ( DISTINCT - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 15 + + col0 BETWEEN + 99 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + 85 + + ( + col2 ) AS col0 FROM tab0 cor0
----
-1775
-6838
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 - + - col1 col1 FROM tab1 cor0
----
116
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT + 81 + MAX( ALL - 92 ) AS col1 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT + 81 + MAX ( ALL - 92 ) AS col1 FROM tab1
----
-11

query I rowsort
SELECT - 96 AS col1 FROM tab1 AS cor0 WHERE ( col2 ) = ( - 15 )
----

query I rowsort
SELECT ALL + 43 FROM tab0 cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT + MIN( + - 96 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8528
SELECT + MIN ( + - 96 ) FROM tab0 AS cor0
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8529
SELECT DISTINCT CAST( - col2 AS DECIMAL ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT CAST ( - col2 AS REAL ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 + + col1 + + ( + + 90 ) * col0 > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL + + 28 + - 48 FROM tab2 WHERE + CAST( - col2 AS SIGNED ) / - col2 <> - col0 / - 88
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + + 28 + - 48 FROM tab2 WHERE + CAST ( - col2 AS INTEGER ) / - col2 <> - col0 / - 88
----
-20
-20
-20

query II rowsort
SELECT - 22 AS col2, col0 FROM tab2
----
-22
46
-22
64
-22
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 col0, - col1 + - - col0 + + 57 FROM tab1
----
66
101
66
137
66
94

query I rowsort
SELECT DISTINCT 43 * + col0 AS col1 FROM tab0
----
3741
4171
645

query I rowsort
SELECT ALL - 76 * + col1 FROM tab0
----
-1596
-6156
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT + MIN( + + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8536
SELECT + MIN ( + + col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8537
SELECT COUNT( * ) DIV + ( COUNT( * ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8537
SELECT COUNT ( * ) / + ( COUNT ( * ) ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( 88 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8539
SELECT ALL MAX( ALL + col1 ), 0 AS col1 FROM tab1
----
47
0

skipif mysql # not compatible
query II rowsort label-8539
SELECT ALL MAX ( ALL + col1 ), 0 AS col1 FROM tab1
----
47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT DISTINCT MAX( - ( col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT MAX ( - ( col1 ) ) FROM tab0
----
-1

query II rowsort
SELECT ALL ( col1 ), 3 + + col0 - col0 FROM tab1
----
14
3
47
3
5
3

query I rowsort
SELECT DISTINCT + - 14 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-14

query I rowsort
SELECT DISTINCT col2 * + + col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8544
SELECT DISTINCT - 71 DIV + - col2 + + 84 AS col0 FROM tab1 AS cor0
----
84
85

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT - 71 / + - col2 + + 84 AS col0 FROM tab1 AS cor0
----
84
85

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col2 / col2 ) > NULL
----

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT ALL - + col0 * + col0 * - + col0 + + col0 + + 15 DIV - col2 * + - col2 * + col1 FROM tab1 cor0
----
132702
614210
753662

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL - + col0 * + col0 * - + col0 + + col0 + + 15 / - col2 * + - col2 * + col1 FROM tab1 cor0
----
132702
614210
753662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8548
SELECT - CAST( MIN( ALL - 37 ) AS SIGNED ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8548
SELECT - CAST ( MIN ( ALL - 37 ) AS INTEGER ) FROM tab2 AS cor0
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + col2 < - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT ALL + + col0 DIV - col0 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL + + col0 / - col0 AS col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT - 69 * - 93 AS col2 FROM tab1 AS cor0
----
6417
6417
6417

query I rowsort
SELECT DISTINCT 22 * col2 * + 53 + 31 * + col1 * - - ( + 71 ) + - col1 AS col1 FROM tab2 cor0
----
139018
215028
216040

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT + COUNT( col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8553
SELECT + COUNT ( col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT DISTINCT 50 DIV - 97 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT 50 / - 97 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL + 38 * + 35 + - COUNT( * ) AS col2 FROM tab1
----
1327

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + 38 * + 35 + - COUNT ( * ) AS col2 FROM tab1
----
1327

onlyif mysql # DIV for integer division: 
query II rowsort label-8556
SELECT DISTINCT col0 * + ( 33 ) - - col1 DIV 14 AS col2, col1 * - col2 + - 58 + + 58 * + col0 * 20 AS col0 FROM tab0
----
2872
100652
3201
112363
500
13535

skipif mysql # not compatible
query II rowsort label-8556
SELECT DISTINCT col0 * + ( 33 ) - - col1 / 14 AS col2, col1 * - col2 + - 58 + + 58 * + col0 * 20 AS col0 FROM tab0
----
2872
100652
3201
112363
500
13535

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT - COUNT( 67 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - COUNT ( 67 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + 87 BETWEEN 4 + + + col0 AND NULL )
----

query II rowsort
SELECT - 21 AS col1, + col2 AS col0 FROM tab1 cor0
----
-21
59
-21
68
-21
96

query I rowsort
SELECT + 46 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query II rowsort
SELECT DISTINCT + + col1 AS col2, - col1 - ( - - col1 ) + - col0 FROM tab1 AS cor0
----
14
-79
47
-185
5
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 13 = NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab0 AS cor0 WHERE NOT col1 = - - col2 * - col1
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT + 84 - COUNT( * ) + + SUM( + + ( - 61 ) ) FROM tab0 AS cor0 WHERE NOT col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT + 84 - COUNT ( * ) + + SUM ( + + ( - 61 ) ) FROM tab0 AS cor0 WHERE NOT col2 < NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 60 AS col0 FROM tab1 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT - ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8566
SELECT - ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + col1, + col2 * - ( 15 ) FROM tab1 AS cor0
----
14
-1440
47
-1020
5
-885

onlyif mysql # DIV for integer division: 
query II rowsort label-8568
SELECT 78 DIV - col0 AS col0, 57 AS col2 FROM tab2
----
-1
57
-1
57
-1
57

skipif mysql # not compatible
query II rowsort label-8568
SELECT 78 / - col0 AS col0, 57 AS col2 FROM tab2
----
-1
57
-1
57
-1
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8569
SELECT - MAX( + 43 ) AS col0, - CAST( + - COUNT( * ) AS SIGNED ) FROM tab1
----
-43
3

skipif mysql # not compatible
query II rowsort label-8569
SELECT - MAX ( + 43 ) AS col0, - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1
----
-43
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT + + 32 * - COUNT( * ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8570
SELECT + + 32 * - COUNT ( * ) FROM tab2 AS cor0
----
-96

query I rowsort
SELECT DISTINCT col2 * - col1 + - + 13 AS col2 FROM tab0 AS cor0
----
-112
-223
-3820

query I rowsort
SELECT - 72 + + 25 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT 42 + - col0 + col0 AS col0 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT ALL + 23 + col1 + + col2 * + 57 - - + col1 AS col1 FROM tab2 AS cor0
----
1436
2457
3463

query I rowsort
SELECT + col0 + - - col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + col2 + - ( + + col1 ) * + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
-197080
-291392
-53935

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL - COUNT( * ) - - - ( - 43 ) * 45 AS col2 FROM tab1
----
1932

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - COUNT ( * ) - - - ( - 43 ) * 45 AS col2 FROM tab1
----
1932

query I rowsort
SELECT - 84 * - 19 FROM tab0
----
1596
1596
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT 10 - SUM( - + 66 ) FROM tab0
----
208

skipif mysql # not compatible
query I rowsort label-8579
SELECT 10 - SUM ( - + 66 ) FROM tab0
----
208

query I rowsort
SELECT DISTINCT 32 * col2 * - + ( + col1 ) FROM tab2
----
-124352
-37536
-98560

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 > ( - + 67 * + 92 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 * - 6 ) IS NULL AND NOT ( + ( col0 ) ) = - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + MIN( DISTINCT + - 6 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8583
SELECT + MIN ( DISTINCT + - 6 ) FROM tab1
----
-6

query I rowsort
SELECT ALL 66 * + col2 AS col1 FROM tab2 AS cor0
----
1518
2640
3828

query I rowsort
SELECT ALL + - col1 * + col2 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col0
----

query I rowsort
SELECT ALL col2 + + col0 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8587
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN + col2 * col2 AND - 30
----

skipif mysql # not compatible
query III rowsort label-8587
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN + col2 * col2 AND - 30
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col0 FROM tab0 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT DISTINCT - SUM( ALL - + 54 ) AS col1 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT - SUM ( ALL - + 54 ) AS col1 FROM tab0 AS cor0
----
162

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + ( - col1 ) * + col2 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT col2, + ( + - ( + - ( + + col1 ) ) ) AS col1 FROM tab0
----
10
21
47
81
99
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col2, 17 FROM tab0
----
1
17
21
17
81
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8596
SELECT ALL COUNT( ALL - - CAST( col2 AS SIGNED ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL COUNT ( ALL - - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 40 * + col2 + + col2 - - col1 + - + col1 AS col1 FROM tab1 WHERE - + 74 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT col1 <> + col0 )
----

query I rowsort
SELECT + 75 + + col0 AS col0 FROM tab1 AS cor0
----
126
160
166

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + 9 * - - 3 + + 37 + + + col0 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT DISTINCT + - col2 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND - + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT + - col2 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND - + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE + ( col1 ) + - 12 / - + col0 NOT BETWEEN 35 * + + col1 + - col2 AND NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 22 + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + ( - col1 ) col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * - col2 + col0 + - + 55 - - ( + col0 ) FROM tab1 AS cor0
----
-3366
-4497
-9169

query I rowsort
SELECT 42 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT MIN( ALL + col0 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT MIN ( ALL + col0 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT ALL - SUM( col0 ) * - SUM( ALL - ( + + 73 ) ) FROM tab0
----
-43581

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL - SUM ( col0 ) * - SUM ( ALL - ( + + 73 ) ) FROM tab0
----
-43581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT ALL ( - col0 ) + - col2 + col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL ( - col0 ) + - col2 + col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT COUNT( * ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8612
SELECT COUNT ( * ) FROM tab1, tab1 AS cor0
----
9

query II rowsort
SELECT DISTINCT + 97 AS col0, ( - col0 ) * + col1 AS col2 FROM tab2
----
97
-2346
97
-4928
97
-5025

query II rowsort
SELECT ALL 25 * + 49 * + - 1 - + col1, + 63 AS col0 FROM tab1
----
-1230
63
-1239
63
-1272
63

query I rowsort
SELECT DISTINCT - 98 * - + col2 AS col2 FROM tab0
----
4606
9702
980

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL 93 * + 48 AS col2 FROM tab2 cor0
----
4464
4464
4464

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 = - col2
----

query II rowsort
SELECT + + col2, + col1 - col0 FROM tab0 AS cor0
----
10
-66
47
66
99
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 * - col2 col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - COUNT( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8621
SELECT - COUNT ( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 83 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT + - COUNT( ALL - 94 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + - COUNT ( ALL - 94 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT SUM( + 69 ) AS col2 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-8624
SELECT SUM ( + 69 ) AS col2 FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT + MAX( + 16 ) AS col1 FROM tab1 cor0
----
16

skipif mysql # not compatible
query I rowsort label-8625
SELECT + MAX ( + 16 ) AS col1 FROM tab1 cor0
----
16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 80, col0 / col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT DISTINCT - 41 DIV 78 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT - 41 / 78 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT + + MIN( - ( + col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8629
SELECT + + MIN ( - ( + col0 ) ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT + - SUM( - 85 ) FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-8630
SELECT + - SUM ( - 85 ) FROM tab1 AS cor0
----
255

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 45 IN ( - - 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + + col1 AS col0 FROM tab0 cor0
----
1215
1827
97

query I rowsort
SELECT 63 * + + col0 AS col0 FROM tab0
----
5481
6111
945

query I rowsort
SELECT ALL + 41 * - 43 AS col1 FROM tab2
----
-1763
-1763
-1763

onlyif mysql # DIV for integer division: 
query I rowsort label-8635
SELECT ALL 61 DIV + + 4 FROM tab1
----
15
15
15

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL 61 / + + 4 FROM tab1
----
15
15
15

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 7 * + + col1 + col0 AS col1 FROM tab1
----
120
149
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT - + COUNT( col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8638
SELECT - + COUNT ( col0 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT + - COUNT( DISTINCT + + col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8639
SELECT + - COUNT ( DISTINCT + + col1 ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8640
SELECT ALL - COUNT( * ) / - CAST( NULL AS SIGNED ) * 18 AS col0, 20 FROM tab1 AS cor0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-8640
SELECT ALL - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 18 AS col0, 20 FROM tab1 AS cor0
----
NULL
20

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( - 80 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT - + MAX( col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8642
SELECT - + MAX ( col0 ) FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 64 NOT BETWEEN - col0 AND - col1 + + - col0 * - 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 * + col2, + col1 col1 FROM tab1 WHERE - - col1 = + 40
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8645
SELECT ALL - CAST( NULL AS DECIMAL ) + + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL - CAST ( NULL AS REAL ) + + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8646
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 81 > + ( + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-8646
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 81 > + ( + + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - ( col0 ) * - - col0 * + + col1 + col1 AS col2 FROM tab1 AS cor0
----
-36120
-36400
-389160

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT + + MAX( + + 81 ) + COUNT( DISTINCT - col0 ) col1, + COUNT( * ) * - 37 FROM tab2 AS cor0
----
84
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8648
SELECT + + MAX ( + + 81 ) + COUNT ( DISTINCT - col0 ) col1, + COUNT ( * ) * - 37 FROM tab2 AS cor0
----
84
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT - 98 + - COUNT( * ) FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - 98 + - COUNT ( * ) FROM tab2 AS cor0
----
-101

query I rowsort
SELECT ( + ( 8 ) ) + + col0 AS col0 FROM tab0 AS cor0
----
105
23
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8651
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8652
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-8652
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER ) * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8653
SELECT ALL - + 83 + + ( + + col1 ) * - - col0 * col1 + + - col1 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
13
NULL
38263
NULL
98251
NULL

skipif mysql # not compatible
query II rowsort label-8653
SELECT ALL - + 83 + + ( + + col1 ) * - - col0 * col1 + + - col1 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
13
NULL
38263
NULL
98251
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8654
SELECT ALL 96 + COUNT( * ) DIV - 85 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL 96 + COUNT ( * ) / - 85 FROM tab0 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col0 * + 99 + ( - 69 ) * - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 93 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT + MIN( DISTINCT - + col1 ) AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8657
SELECT + MIN ( DISTINCT - + col1 ) AS col2 FROM tab0 cor0
----
-81

query I rowsort
SELECT DISTINCT - ( + col0 ) + 25 FROM tab1
----
-26
-60
-66

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE + + col2 NOT BETWEEN 32 + col1 AND - 41
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8660
SELECT ALL MIN( + + col2 ) - - 51 * - + SUM( - CAST( CAST( col1 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab1
----
3425

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL MIN ( + + col2 ) - - 51 * - + SUM ( - CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1
----
3425

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT 61 - + + COUNT( * ) AS col0 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-8661
SELECT 61 - + + COUNT ( * ) AS col0 FROM tab0
----
58

query I rowsort
SELECT ALL + col1 - - 10 FROM tab2
----
61
77
87

query I rowsort
SELECT col0 - + ( col1 ) FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8664
SELECT + + ( 20 ) col1, CAST( NULL AS SIGNED ) * 78 * col0, + + 10 * + + 27 * - + col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to b5ecdec7b4f53570ac4b9e77931b308a

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8664
SELECT + + ( 20 ) col1, CAST ( NULL AS INTEGER ) * 78 * col0, + + 10 * + + 27 * - + col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to b5ecdec7b4f53570ac4b9e77931b308a

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8667
SELECT COUNT( DISTINCT col1 ) DIV - SUM( col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8667
SELECT COUNT ( DISTINCT col1 ) / - SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > col0 * 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL - COUNT( col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL - COUNT ( col2 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col0 * + 92 AS col1 FROM tab1
----
4692
7820
8372

onlyif mysql # aggregate syntax: 
query II rowsort label-8671
SELECT 54 AS col1, COUNT( * ) AS col1 FROM tab1
----
54
3

skipif mysql # not compatible
query II rowsort label-8671
SELECT 54 AS col1, COUNT ( * ) AS col1 FROM tab1
----
54
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( + col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( + col0 ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8673
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8673
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col1 * - 95 AS col2 FROM tab1 cor0
----
-1330
-4465
-475

onlyif mysql # DIV for integer division: 
query II rowsort label-8675
SELECT col0 DIV + col2 AS col1, + col0 * - - ( - col1 ) AS col2 FROM tab0
----
0
-1215
0
-97
8
-1827

skipif mysql # not compatible
query II rowsort label-8675
SELECT col0 / + col2 AS col1, + col0 * - - ( - col1 ) AS col2 FROM tab0
----
0
-1215
0
-97
8
-1827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT SUM( DISTINCT - col1 ) DIV - - 92 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8676
SELECT SUM ( DISTINCT - col1 ) / - - 92 AS col1 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT col0 * + - 18 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8678
SELECT DISTINCT 58 DIV col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT 58 / col1 FROM tab2
----
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE + 92 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT DISTINCT MAX( ALL col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT MAX ( ALL col0 ) AS col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + SUM( + 60 ) - - COUNT( * ) + - COUNT( * ) FROM tab2 WHERE - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT + SUM ( + 60 ) - - COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE - + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT COUNT( * ) + + 52 AS col2 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-8682
SELECT COUNT ( * ) + + 52 AS col2 FROM tab2
----
55

query III rowsort
SELECT * FROM tab1 WHERE + col2 / - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8684
SELECT DISTINCT - 99 DIV + 40 AS col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT - 99 / + 40 AS col2 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL + 60 + - + col2 + + + 66 AS col1 FROM tab2 AS cor0
----
103
68
86

query II rowsort
SELECT 9 AS col0, col2 * - col1 * + - 67 FROM tab0
----
9
14070
9
255069
9
6633

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL + - COUNT( * ) FROM tab1 WHERE col1 + - 67 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE col1 + - 67 IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + - 82 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - COUNT( * ) - - 40 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8689
SELECT - COUNT ( * ) - - 40 FROM tab1 AS cor0
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 44 / - 96 ) BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT - 29 + 13 + COUNT( * ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-8692
SELECT - 29 + 13 + COUNT ( * ) FROM tab2
----
-13

query I rowsort
SELECT ALL + col1 - + - 22 + - col1 * - col0 FROM tab2
----
2419
5027
5114

query II rowsort
SELECT DISTINCT - 64, - col2 AS col2 FROM tab1
----
-64
-59
-64
-68
-64
-96

query I rowsort
SELECT ALL 49 * + col0 FROM tab1
----
2499
4165
4459

query II rowsort
SELECT ALL - 30 AS col1, + ( - col2 ) AS col1 FROM tab2
----
-30
-23
-30
-40
-30
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8697
SELECT DISTINCT + col0 col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8697
SELECT DISTINCT + col0 col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8698
SELECT - - 78 * + CAST( NULL AS SIGNED ) AS col2, col0 DIV + + col0 FROM tab2 AS cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-8698
SELECT - - 78 * + CAST ( NULL AS INTEGER ) AS col2, col0 / + + col0 FROM tab2 AS cor0
----
NULL
1
NULL
1
NULL
1

query I rowsort
SELECT DISTINCT col1 * + col0 * + 59 FROM tab2 AS cor0
----
138414
290752
296475

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT MAX( DISTINCT - col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8700
SELECT MAX ( DISTINCT - col1 ) FROM tab1 cor0
----
-5

query I rowsort
SELECT + 25 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 <> NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT DISTINCT - col0 + - 53 - 16 DIV + 27 * - col2 * 33 FROM tab1 AS cor0
----
-104
-138
-144

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT - col0 + - 53 - 16 / + 27 * - col2 * 33 FROM tab1 AS cor0
----
-104
-138
-144

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN col1 AND + 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 57 + + col1 AS col2, + col0 FROM tab2 AS cor0
----
108
46
124
75
134
64

query I rowsort
SELECT ALL - 56 * + + ( - 73 ) + col1 FROM tab0 AS cor0
----
4089
4109
4169

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT + col2 + + - 80 DIV + + col2 AS col2 FROM tab2 AS cor0
----
20
38
57

skipif mysql # not compatible
query I rowsort label-8708
SELECT + col2 + + - 80 / + + col2 AS col2 FROM tab2 AS cor0
----
20
38
57

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT 5 BETWEEN + + col0 AND - col1
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col1 FROM tab1
----
-55

query I rowsort
SELECT ALL + col1 * - col0 * + + col1 FROM tab2
----
-119646
-336675
-379456

query III rowsort
SELECT * FROM tab1 WHERE - ( + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL MIN( ALL 52 ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL MIN ( ALL 52 ) FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT - COUNT( * ) * + 45 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-8714
SELECT - COUNT ( * ) * + 45 FROM tab0
----
-135

query III rowsort
SELECT * FROM tab2 WHERE NULL > + ( - col0 ) + - 77
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8717
SELECT - COUNT( * ) + + MAX( DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8717
SELECT - COUNT ( * ) + + MAX ( DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 59 * + ( - + col2 ) * + col2 AS col0 FROM tab0
----
-130331
-578259
-5900

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT DISTINCT 13 - - COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT 13 - - COUNT ( * ) FROM tab1
----
16

query I rowsort
SELECT + col0 * + col1 * + + col1 AS col1 FROM tab0 AS cor0
----
38367
97
98415

query I rowsort
SELECT DISTINCT + col1 + + + 40 FROM tab1 AS cor0
----
45
54
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT + COUNT( 43 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8723
SELECT + COUNT ( 43 ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + - ( - + ( + ( col2 ) ) ) * + - col0 + + 91 AS col2 FROM tab1 AS cor0
----
-4805
-4924
-6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 + + col1 * col0 col1 FROM tab0 AS cor0
----
1274
156
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - COUNT( * ) FROM tab2 WHERE NOT + 11 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8726
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + 11 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( - - 20 IS NOT NULL ) )
----

query I rowsort
SELECT ALL - col0 * - 0 * - - 34 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8729
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= CAST( - + 5 AS DECIMAL ) / + + 13
----

skipif mysql # not compatible
query III rowsort label-8729
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= CAST ( - + 5 AS REAL ) / + + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT + - MAX( ALL - ( - + 85 ) ) FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT + - MAX ( ALL - ( - + 85 ) ) FROM tab1 AS cor0
----
-85

query I rowsort
SELECT ALL - + 80 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT - AVG ( DISTINCT - 3 ) * - CAST( NULL AS SIGNED ) * 37 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT - AVG ( DISTINCT - 3 ) * - CAST ( NULL AS INTEGER ) * 37 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT + COUNT( * ) * - 76 FROM tab2 AS cor0 WHERE NOT + col1 * 8 IS NULL
----
-228

skipif mysql # not compatible
query I rowsort label-8733
SELECT + COUNT ( * ) * - 76 FROM tab2 AS cor0 WHERE NOT + col1 * 8 IS NULL
----
-228

query I rowsort
SELECT ALL + + ( + 63 ) FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col2 + + col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT + 81 AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT - COUNT( ALL 25 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT - COUNT ( ALL 25 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 + - + ( col1 ) IS NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT + COUNT( * ) + 8 * 91 FROM tab0
----
731

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + COUNT ( * ) + 8 * 91 FROM tab0
----
731

query I rowsort
SELECT - 50 + - + col0 FROM tab1
----
-101
-135
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col1 FROM tab0
----
68
68
68

query I rowsort
SELECT - col1 + - + 28 - + col1 AS col1 FROM tab0
----
-190
-30
-70

query I rowsort
SELECT DISTINCT 4 * - col0 FROM tab2
----
-184
-256
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT ALL col0 DIV - col1 + - col2 col0 FROM tab2 AS cor0
----
-23
-40
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8747
SELECT ALL col0 / - col1 + - col2 col0 FROM tab2 AS cor0
----
-23
-40
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8748
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * CAST( + col1 AS SIGNED ) / - col1 * + - col2 * + + col1 IN ( + 13 )
----

skipif mysql # not compatible
query III rowsort label-8748
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * CAST ( + col1 AS INTEGER ) / - col1 * + - col2 * + + col1 IN ( + 13 )
----

query I rowsort
SELECT DISTINCT - 98 - - col1 FROM tab2
----
-21
-31
-47

query I rowsort
SELECT DISTINCT + - 97 - col2 FROM tab0 AS cor0
----
-107
-144
-196

query I rowsort
SELECT ALL - col2 * + col0 * + 44 FROM tab2 AS cor0
----
-112640
-191400
-46552

onlyif mysql # DIV for integer division: 
query II rowsort label-8752
SELECT DISTINCT - - col0 DIV - col0 + col1 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
13
96
4
59
46
68

skipif mysql # not compatible
query II rowsort label-8752
SELECT DISTINCT - - col0 / - col0 + col1 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
13
96
4
59
46
68

query I rowsort
SELECT ALL - + 17 AS col1 FROM tab1 AS cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IS NULL OR NULL NOT IN ( + col2, + 13, ( 2 ) * + - col2 + + col2 + - col1 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT DISTINCT col1 DIV 46 * + 89 * - 62 AS col1 FROM tab1 AS cor0
----
-5518
0

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT col1 / 46 * + 89 * - 62 AS col1 FROM tab1 AS cor0
----
-5518
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT - - COUNT( ALL col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8756
SELECT - - COUNT ( ALL col2 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8757
SELECT + COUNT( * ) AS col0, 17 FROM tab1 AS cor0
----
3
17

skipif mysql # not compatible
query II rowsort label-8757
SELECT + COUNT ( * ) AS col0, 17 FROM tab1 AS cor0
----
3
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8758
SELECT - CAST( NULL AS DECIMAL ) * - + CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT - CAST ( NULL AS REAL ) * - + CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT - - MAX( ALL - 33 ) AS col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8759
SELECT - - MAX ( ALL - 33 ) AS col0 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT SUM( - col1 ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8760
SELECT SUM ( - col1 ) col1 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 83 AS col0, col1 col2 FROM tab2 WHERE col0 < - - col0
----

query I rowsort
SELECT + 86 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT COUNT( ALL ( - col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8763
SELECT COUNT ( ALL ( - col1 ) ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT DISTINCT + col2 DIV - 80 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT + col2 / - 80 FROM tab2
----
0

query I rowsort
SELECT ALL + 75 * - col0 * col2 FROM tab0
----
-52875
-65250
-720225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col1 ) col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT 99 * + 67 FROM tab0
----
6633
6633
6633

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT - 96 + - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - 96 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
23

query I rowsort
SELECT ALL + ( - 84 ) AS col2 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8771
SELECT 43 * 69 * col1 + - col0 + - 91 DIV 18 AS col2 FROM tab1 AS cor0
----
139353
14745
41482

skipif mysql # not compatible
query I rowsort label-8771
SELECT 43 * 69 * col1 + - col0 + - 91 / 18 AS col2 FROM tab1 AS cor0
----
139353
14745
41482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8772
SELECT - + 40 * + + 7 + - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8772
SELECT - + 40 * + + 7 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 17 + + 62 * 31 * 1 AS col2 FROM tab0 AS cor0
----
1939

query I rowsort
SELECT ALL - + col2 + - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL - 39 + - COUNT( col2 ) * - 68 AS col1 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL - 39 + - COUNT ( col2 ) * - 68 AS col1 FROM tab0 AS cor0
----
165

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + - col0 ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL 14 + - COUNT( * ) AS col2 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL 14 + - COUNT ( * ) AS col2 FROM tab0
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8778
SELECT - CAST( NULL AS DECIMAL ) * - + 71 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT - CAST ( NULL AS REAL ) * - + 71 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL + MAX( DISTINCT - 71 ) * - 49 AS col0 FROM tab1
----
3479

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL + MAX ( DISTINCT - 71 ) * - 49 AS col0 FROM tab1
----
3479

query I rowsort
SELECT - col2 * + ( + - col1 ) FROM tab2
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col2 - + col2 col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - col0 - - - col1 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE NULL < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col1 FROM tab0 AS cor0 WHERE NOT - 15 NOT BETWEEN + col1 * + 14 + col1 + + + 65 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT + MIN( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - 1 + + - col1 + - - col0 * - 45 * + col0 IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT + MIN ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - 1 + + - col1 + - - col0 * - 45 * + col0 IS NULL
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8786
SELECT DISTINCT 13 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT 13 / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8787
SELECT + COUNT( + col1 ) col2, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8787
SELECT + COUNT ( + col1 ) col2, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 * col0 = + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + 66 ) FROM tab2
----
-66
-66
-66

query I rowsort
SELECT ALL 32 * - col1 AS col1 FROM tab1
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT SUM( - 69 ) col0 FROM tab2
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8791
SELECT SUM ( - 69 ) col0 FROM tab2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ALL COUNT( ALL col2 ) * + - COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL COUNT ( ALL col2 ) * + - COUNT ( * ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT ALL + 65 * 51 AS col1 FROM tab1
----
3315
3315
3315

query II rowsort
SELECT DISTINCT 45 AS col2, 92 FROM tab0
----
45
92

query III rowsort
SELECT ALL * FROM tab0 WHERE 64 IS NULL
----

query II rowsort
SELECT ALL - col1, + col1 FROM tab0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT col1 AS col0, + col0 + col2 * - + col0 AS col2 FROM tab1
----
14
-4845
47
-6097
5
-4930

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col0 / + 70 * + - 46 + - col1 AS col1, + col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + - 15 AS col1 FROM tab2 cor0
----
-15
-15
-15

query II rowsort
SELECT + col1 * - - col0, + col0 FROM tab1
----
425
85
4277
91
714
51

query I rowsort
SELECT col2 * + col1 * - + col2 AS col1 FROM tab0
----
-178929
-2100
-9801

query I rowsort
SELECT ALL + + col0 + + - col0 FROM tab2 WHERE NOT ( ( NULL ) > - + 3 + + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 19 * - 24
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 83 IS NULL
----

query I rowsort
SELECT ALL + 81 AS col0 FROM tab0 cor0
----
81
81
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8807
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) < + CAST( NULL AS DECIMAL ) + - 9
----

skipif mysql # not compatible
query I rowsort label-8807
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) < + CAST ( NULL AS REAL ) + - 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL - COUNT( * ) + + + 84 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - COUNT ( * ) + + + 84 FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT - ( - 25 ) + + COUNT( * ) AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-8809
SELECT - ( - 25 ) + + COUNT ( * ) AS col2 FROM tab2
----
28

query I rowsort
SELECT col1 + - - col1 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT ALL + - col1 * + col1 FROM tab2 WHERE NOT + col2 NOT BETWEEN ( CAST( - + col0 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + - col1 * + col1 FROM tab2 WHERE NOT + col2 NOT BETWEEN ( CAST ( - + col0 AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT - SUM( DISTINCT col2 ) col2 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8813
SELECT DISTINCT - SUM ( DISTINCT col2 ) col2 FROM tab2
----
-121

query I rowsort
SELECT DISTINCT + + 39 + + col1 FROM tab0 AS cor0
----
120
40
60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 23 BETWEEN + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT - 40 DIV - - 92 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8816
SELECT - 40 / - - 92 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE NOT col1 <= - - col0
----
-51
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8818
SELECT * FROM tab1 AS cor0 WHERE - col1 >= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8818
SELECT * FROM tab1 AS cor0 WHERE - col1 >= + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT MAX( ALL + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8819
SELECT MAX ( ALL + col0 ) FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 77 * + col2 col1, + 24 AS col1 FROM tab0 cor0
----
3619
24
7623
24
770
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8821
SELECT ALL - 75 AS col1, ( - col2 ) * - 70 + - 28 + CAST( 56 AS SIGNED ) FROM tab1 AS cor0
----
-75
4158
-75
4788
-75
6748

skipif mysql # not compatible
query II rowsort label-8821
SELECT ALL - 75 AS col1, ( - col2 ) * - 70 + - 28 + CAST ( 56 AS INTEGER ) FROM tab1 AS cor0
----
-75
4158
-75
4788
-75
6748

query I rowsort
SELECT ALL 90 FROM tab1 AS cor0 WHERE NOT - 42 IS NOT NULL
----

query II rowsort
SELECT ALL + 46 AS col2, 89 + col2 FROM tab0 AS cor0
----
46
136
46
188
46
99

query I rowsort
SELECT + col0 * + + col0 * - 19 - - + 42 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - 51 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - + col0 * - + col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT + 48 * 32 * + + col2 AS col1 FROM tab2
----
35328
61440
89088

query I rowsort
SELECT ( + 87 ) FROM tab0
----
87
87
87

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT DISTINCT - 80 * + 83 AS col0, - COUNT( * ) * - + 91 col2 FROM tab2
----
-6640
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8831
SELECT DISTINCT - 80 * + 83 AS col0, - COUNT ( * ) * - + 91 col2 FROM tab2
----
-6640
273

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL 22 + COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL 22 + COUNT ( * ) FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 80 + + - col0 < - 75
----
3

skipif mysql # not compatible
query I rowsort label-8833
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 80 + + - col0 < - 75
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT DISTINCT - 84 + + + MAX( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT - 84 + + + MAX ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT COUNT( - ( + + 20 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8836
SELECT COUNT ( - ( + + 20 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 83 + - 82 + col1 FROM tab2 WHERE NULL IS NULL
----
52
68
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8838
SELECT ALL + COUNT( * ) * + CAST( + + COUNT( * ) AS SIGNED ) AS col1, COUNT( * ) AS col1 FROM tab1
----
9
3

skipif mysql # not compatible
query II rowsort label-8838
SELECT ALL + COUNT ( * ) * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1
----
9
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT - 29 * + MIN( - - 87 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2523

skipif mysql # not compatible
query I rowsort label-8840
SELECT - 29 * + MIN ( - - 87 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2523

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8841
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( + - col0 AS SIGNED ) ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8841
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( + - col0 AS INTEGER ) ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8842
SELECT DISTINCT + COUNT( * ) * + COUNT( DISTINCT col1 ) * + 32 + - + MIN( ALL 61 ) + + CAST( NULL AS DECIMAL ) + + MIN( + 7 ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT + COUNT ( * ) * + COUNT ( DISTINCT col1 ) * + 32 + - + MIN ( ALL 61 ) + + CAST ( NULL AS REAL ) + + MIN ( + 7 ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 20 + - - 93 AS col2 FROM tab1 AS cor0
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8844
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - 92 * 36 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8844
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - 92 * 36 * + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT DISTINCT 66 - COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT 66 - COUNT ( * ) FROM tab1 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab0 WHERE + 13 * col1 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT - COUNT( * ) FROM tab1 WHERE - - 14 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8847
SELECT - COUNT ( * ) FROM tab1 WHERE - - 14 + + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT ALL - SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL - SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 21 - + 58 col1, - col2 AS col1 FROM tab2
----
-37
-23
-37
-40
-37
-58

query III rowsort
SELECT * FROM tab0 WHERE - - 89 + 59 * - ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - - col2 ) - col2 + 24 * 12 AS col0 FROM tab1
----
288
288
288

query I rowsort
SELECT 75 - - col2 FROM tab1
----
134
143
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT - 53 - COUNT( * ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-8853
SELECT - 53 - COUNT ( * ) FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT - COUNT( ALL - + 78 ) + 20 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8854
SELECT - COUNT ( ALL - + 78 ) + 20 FROM tab2 AS cor0
----
17

query I rowsort
SELECT col1 + + col1 + + + col2 AS col0 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT DISTINCT 29 FROM tab1 cor0 WHERE NOT col0 * - 80 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 * col2 * - - col2 AS col0 FROM tab0 WHERE ( NOT 74 IS NULL )
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL COUNT( DISTINCT 97 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL COUNT ( DISTINCT 97 ) AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 15 NOT BETWEEN + col0 - + + col0 + + - col1 - - 90 * col2 AND - - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 11 / col0 + - col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - + col0 ) + - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 * + col1 AS col2 FROM tab0 cor0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 12 + - 90 = NULL
----

query I rowsort
SELECT ALL 27 * + - col1 * + col2 FROM tab2
----
-104922
-31671
-83160

query I rowsort
SELECT col2 * + - 6 * 31 FROM tab0
----
-18414
-1860
-8742

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT DISTINCT 93, - COUNT( * ) AS col2 FROM tab1
----
93
-3

skipif mysql # not compatible
query II rowsort label-8866
SELECT DISTINCT 93, - COUNT ( * ) AS col2 FROM tab1
----
93
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL - COUNT( * ) * - 78 * - 9 AS col0 FROM tab2
----
-2106

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - COUNT ( * ) * - 78 * - 9 AS col0 FROM tab2
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL - SUM( + col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - SUM ( + col1 ) AS col0 FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT + col0 DIV + + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8869
SELECT + col0 / + + col0 FROM tab1
----
1
1
1

query II rowsort
SELECT + 39 AS col1, col0 AS col2 FROM tab2
----
39
46
39
64
39
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT - MAX( DISTINCT + col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8871
SELECT - MAX ( DISTINCT + col0 ) AS col0 FROM tab1
----
-91

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 + + 19 AS col2 FROM tab2
----
-51
70
-67
86
-77
96

query II rowsort
SELECT - col1 AS col1, - 7 AS col1 FROM tab2
----
-51
-7
-67
-7
-77
-7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - 73 * - 1
----

query I rowsort
SELECT - 81 + + 10 AS col1 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + + 65 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
65

query I rowsort
SELECT 9 - col0 * - 17 AS col0 FROM tab0 AS cor0
----
1488
1658
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT ALL + COUNT( * ) + - MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + COUNT ( * ) + - MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8879
SELECT + col0 * + + col0 - - - CAST( NULL AS DECIMAL ) + - col1 + - - col1 + 64 * + 82 * + col2 + - col1 * - - CAST( NULL AS SIGNED ) + - ( - 70 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT + col0 * + + col0 - - - CAST ( NULL AS REAL ) + - col1 + - - col1 + 64 * + 82 * + col2 + - col1 * - - CAST ( NULL AS INTEGER ) + - ( - 70 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT ALL 35 - - CAST( 71 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
106
106
106

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL 35 - - CAST ( 71 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
106
106
106

query I rowsort
SELECT + 97 + + col2 FROM tab0
----
107
144
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - col1 + - col0 * - col1, col2 col1 FROM tab1
----
415
59
4183
68
686
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT 78 DIV + - col2 + col1 + + 43 + - 25 AS col0 FROM tab2
----
66
84
94

skipif mysql # not compatible
query I rowsort label-8883
SELECT 78 / + - col2 + col1 + + 43 + - 25 AS col0 FROM tab2
----
66
84
94

query I rowsort
SELECT + ( - col2 ) * + - col0 - + 94 FROM tab1
----
4802
4921
6094

query I rowsort
SELECT DISTINCT + 98 * - 69 AS col0 FROM tab1
----
-6762

query II rowsort
SELECT ALL 19 AS col2, col2 AS col1 FROM tab1
----
19
59
19
68
19
96

query I rowsort
SELECT + - col2 * - 37 + + col2 FROM tab1 AS cor0
----
2242
2584
3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT + + 95 + col2 * 66 / + - CAST( - col0 AS SIGNED ) - ( + 20 ) * - col2 FROM tab2 AS cor0 WHERE NOT NULL <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8888
SELECT + + 95 + col2 * 66 / + - CAST ( - col0 AS INTEGER ) - ( + 20 ) * - col2 FROM tab2 AS cor0 WHERE NOT NULL <= - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8889
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 < + 17 + + - col2 + - CAST( - 4 AS SIGNED ) + col0 + + col0 * + col2
----

skipif mysql # not compatible
query III rowsort label-8889
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 < + 17 + + - col2 + - CAST ( - 4 AS INTEGER ) + col0 + + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT COUNT( * ) * + + 80 AS col0 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT COUNT ( * ) * + + 80 AS col0 FROM tab1 AS cor0
----
240

query I rowsort
SELECT DISTINCT 80 FROM tab2 WHERE - col0 + - col0 IS NULL
----

query I rowsort
SELECT ALL 22 AS col2 FROM tab1 WHERE NULL BETWEEN + 92 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT - col1 - + col0 * CAST( ( - CAST( NULL AS SIGNED ) ) - col2 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT - col1 - + col0 * CAST ( ( - CAST ( NULL AS INTEGER ) ) - col2 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT DISTINCT + MIN( 1 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT + MIN ( 1 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT 93 AS col1 FROM tab1 WHERE NOT col2 / - col1 <= NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT col2 < ( - 76 )
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8897
SELECT ALL * FROM tab0 WHERE NOT ( - 45 ) <= - col1 * CAST( - 58 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8897
SELECT ALL * FROM tab0 WHERE NOT ( - 45 ) <= - col1 * CAST ( - 58 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 87 AS col2 FROM tab2 WHERE - 94 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT + COUNT( * ) * + 80 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-8900
SELECT + COUNT ( * ) * + 80 FROM tab2
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT 75 * - MAX( col0 ) FROM tab2
----
-5625

skipif mysql # not compatible
query I rowsort label-8901
SELECT 75 * - MAX ( col0 ) FROM tab2
----
-5625

query I rowsort
SELECT col2 * 19 FROM tab1
----
1121
1292
1824

query I rowsort
SELECT - 79 * + col1 FROM tab2
----
-4029
-5293
-6083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT ALL 35 / + CAST( NULL AS SIGNED ) + - col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8904
SELECT ALL 35 / + CAST ( NULL AS INTEGER ) + - col1 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT DISTINCT 49 * ( COUNT( * ) ) - 52 AS col2 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT 49 * ( COUNT ( * ) ) - 52 AS col2 FROM tab1
----
95

query III rowsort
SELECT * FROM tab0 WHERE NOT 11 IS NOT NULL
----

query I rowsort
SELECT col2 * col2 FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT - col2 DIV + col0 + col2 DIV - 51 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8908
SELECT - col2 / + col0 + col2 / - 51 FROM tab1
----
-1
-1
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8909
SELECT + ( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT + ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT - SUM( + col0 ) + COUNT( * ) FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - SUM ( + col0 ) + COUNT ( * ) FROM tab1
----
-224

query I rowsort
SELECT col0 * col2 + 33 AS col1 FROM tab0
----
738
903
9636

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT + 57 DIV 6 + - col0 AS col1 FROM tab2
----
-37
-55
-66

skipif mysql # not compatible
query I rowsort label-8912
SELECT + 57 / 6 + - col0 AS col1 FROM tab2
----
-37
-55
-66

query III rowsort
SELECT * FROM tab1 WHERE 39 - - col0 <> + ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col0 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT DISTINCT CAST( NULL AS SIGNED ) * 21 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 21 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 + + 11 * 27 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 54 ) <= NULL
----

query I rowsort
SELECT - ( + col2 ) / + 13 FROM tab0 AS cor0 WHERE 7 > ( col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * + 39 IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - 99 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 col0 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8923
SELECT * FROM tab2 cor0 WHERE ( + col1 ) BETWEEN + 93 / - ( CAST( + col2 AS SIGNED ) ) AND 1 * col0
----
75
67
58

skipif mysql # not compatible
query III rowsort label-8923
SELECT * FROM tab2 cor0 WHERE ( + col1 ) BETWEEN + 93 / - ( CAST ( + col2 AS INTEGER ) ) AND 1 * col0
----
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + col0 >= ( ( 36 ) - - col0 )
----
87
21
10

query I rowsort
SELECT DISTINCT - ( - col1 ) * - col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT NULL > - 69 * + 66
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT + ( + COUNT( * ) ) + 41 AS col1 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-8928
SELECT + ( + COUNT ( * ) ) + 41 AS col1 FROM tab2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT - ( - col2 ) + + col0 DIV col0 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-8929
SELECT - ( - col2 ) + + col0 / col0 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT DISTINCT - - 6 * - 84 FROM tab0 AS cor0
----
-504

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - 39 + - 7 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8932
SELECT SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - 34 + + col2 FROM tab0 AS cor0
----
-24
13
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8934
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8934
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT + MIN( 44 ) AS col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8935
SELECT + MIN ( 44 ) AS col0 FROM tab1 AS cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT + + col1 DIV 59 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8936
SELECT + + col1 / 59 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ALL - - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL - - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL - 66 - col2 AS col2 FROM tab0 AS cor0
----
-113
-165
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT 66 DIV - col1 col0 FROM tab0 AS cor0
----
-3
-66
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8939
SELECT 66 / - col1 col0 FROM tab0 AS cor0
----
-3
-66
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 - col0 < ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 81 + + 15 AS col0 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8943
SELECT ALL + ( - col2 ) DIV + col1 - 73 FROM tab2 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL + ( - col2 ) / + col1 - 73 FROM tab2 AS cor0
----
-73
-73
-73

query III rowsort
SELECT ALL * FROM tab2 WHERE 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT + 64 - - COUNT( * ) AS col2 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT + 64 - - COUNT ( * ) AS col2 FROM tab2
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - 8 + + ( + col1 + col2 ) col2 FROM tab2
----
-110
-203
-339

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT DISTINCT - col2 DIV - - col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT - col2 / - - col2 FROM tab2
----
-1

query I rowsort
SELECT - col2 * col0 * - 78 FROM tab1
----
381888
391170
482664

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT DISTINCT + COUNT( col2 ) AS col2 FROM tab2 WHERE 41 + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT + COUNT ( col2 ) AS col2 FROM tab2 WHERE 41 + col2 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8950
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - CAST( NULL AS DECIMAL ) + col2
----

skipif mysql # not compatible
query III rowsort label-8950
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - CAST ( NULL AS REAL ) + col2
----

query I rowsort
SELECT DISTINCT - ( 19 ) AS col0 FROM tab2
----
-19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * ( - col0 ) ) NOT IN ( col0 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - col0 <> col2
----

query I rowsort
SELECT ALL - col1 + 20 FROM tab0 WHERE NOT ( col2 + - col2 * col1 ) NOT IN ( 83 * ( col0 ) )
----

query II rowsort
SELECT col2 AS col2, - col2 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL MIN( DISTINCT 94 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
94

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL MIN ( DISTINCT 94 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * 37 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( ( + - 81 ) + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8959
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( - 76 ) ) BETWEEN col2 * + CAST( col1 AS SIGNED ) AND + 40 - 66
----

skipif mysql # not compatible
query III rowsort label-8959
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( - 76 ) ) BETWEEN col2 * + CAST ( col1 AS INTEGER ) AND + 40 - 66
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 39 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8961
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) NOT IN ( ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-8961
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) NOT IN ( ( CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 IN ( col0 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + - col0 * - 18 AS col0 FROM tab0 AS cor0
----
1556
1647
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL - ( + 73 ) + - MIN( DISTINCT col2 ) + 69 AS col2 FROM tab0 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - ( + 73 ) + - MIN ( DISTINCT col2 ) + 69 AS col2 FROM tab0 cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL + - MIN( - + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + - MIN ( - + col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - ( + ( 21 ) ) > - col1
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * + ( - col1 ) FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT 72 AS col2 FROM tab1 WHERE + - col1 <= ( col0 )
----
72
72
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT DISTINCT MAX( ALL + + col0 ) AS col0, 90 FROM tab1
----
91
90

skipif mysql # not compatible
query II rowsort label-8969
SELECT DISTINCT MAX ( ALL + + col0 ) AS col0, 90 FROM tab1
----
91
90

query I rowsort
SELECT col2 + + + col1 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT + col1 + col0 + - - col1 AS col0 FROM tab1
----
185
79
95

query I rowsort
SELECT + 66 + 87 FROM tab0
----
153
153
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL COUNT( * ) col2 FROM tab2 WHERE NOT - col0 NOT BETWEEN - col0 AND ( + col2 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8973
SELECT ALL COUNT ( * ) col2 FROM tab2 WHERE NOT - col0 NOT BETWEEN - col0 AND ( + col2 )
----
3

query I rowsort
SELECT col0 FROM tab0 WHERE NULL > - + col2
----

query I rowsort
SELECT ALL + 34 + + col0 * 43 FROM tab1 WHERE NOT NULL NOT BETWEEN + - 97 AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT - 33 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT - 33 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE ( ( NOT ( CAST( col2 AS SIGNED ) ) IN ( + col1 - + 60 * ( + col1 ) ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( ( NOT ( CAST ( col2 AS INTEGER ) ) IN ( + col1 - + 60 * ( + col1 ) ) ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT + col2 + - - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8980
SELECT + col2 + - - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col1 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL + + COUNT( * ) * COUNT( * ) FROM tab1 WHERE ( NULL ) < col0
----
0

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + + COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE ( NULL ) < col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT CAST( col0 AS SIGNED ) - + 43 AS col1 FROM tab1
----
42
48
8

skipif mysql # not compatible
query I rowsort label-8983
SELECT CAST ( col0 AS INTEGER ) - + 43 AS col1 FROM tab1
----
42
48
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT 68 - COUNT( * ) AS col0 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-8984
SELECT 68 - COUNT ( * ) AS col0 FROM tab2
----
65

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( + - col2 ) + + col2 * - col1 * 46 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT DISTINCT + 8 DIV - 25 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + 8 / - 25 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT col2, col2 + + 91 FROM tab0 AS cor0
----
10
101
47
138
99
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL - COUNT( + - col0 ) + - + MIN( 94 ) + + - ( - ( SUM( 72 ) ) ) * + COUNT( * ) FROM tab2 AS cor0
----
551

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL - COUNT ( + - col0 ) + - + MIN ( 94 ) + + - ( - ( SUM ( 72 ) ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
551

query I rowsort
SELECT ALL ( - + col2 ) - - 19 AS col1 FROM tab1 AS cor0
----
-40
-49
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT - + 89 DIV - 26 col1 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8990
SELECT - + 89 / - 26 col1 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT + col2 * - 62 AS col0 FROM tab2
----
-1426
-2480
-3596

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( NULL ) < col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT + MIN( ALL 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-8993
SELECT + MIN ( ALL 82 ) FROM tab2
----
82

query I rowsort
SELECT ALL - ( + 84 ) AS col0 FROM tab1
----
-84
-84
-84

query I rowsort
SELECT DISTINCT + col1 * 65 AS col0 FROM tab2
----
3315
4355
5005

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 90 + + - 49 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8997
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( 46 * col0 + - + CAST( NULL AS DECIMAL ) * 91 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8997
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( 46 * col0 + - + CAST ( NULL AS REAL ) * 91 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8998
SELECT ALL - COUNT( * ) col1, COUNT( * ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8998
SELECT ALL - COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 * + - col1 col1 FROM tab0
----
-11
-231
-891

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab1 cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, 43 col0 FROM tab1 AS cor0
----
59
43
68
43
96
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT 95 / - 48 * - 6 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + - col0 + + - col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL - - MAX( DISTINCT + 52 ) + + COUNT( DISTINCT - 50 ) AS col1 FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL - - MAX ( DISTINCT + 52 ) + + COUNT ( DISTINCT - 50 ) AS col1 FROM tab1 cor0
----
53

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = ( 81 )
----

query I rowsort
SELECT DISTINCT - 71 FROM tab0 WHERE NOT col1 * col0 + - col0 - + 16 + + ( + col1 ) + + 56 > ( + col1 )
----

query I rowsort
SELECT col0 + 69 FROM tab0 WHERE - + 19 * col2 * - - col1 BETWEEN + col0 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 15 col2, 20 AS col2 FROM tab2 AS cor0
----
-15
20
-15
20
-15
20

query II rowsort
SELECT col1 + + + col1 + + col1, col2 + + - 13 - + - col0 * - ( - col1 ) + 22 * + col2 AS col2 FROM tab0 AS cor0
----
243
2283
3
2361
63
2044

onlyif mysql # DIV for integer division: 
query I rowsort label-9011
SELECT - 66 DIV + - col1 + + col1 + + 55 FROM tab1 AS cor0
----
103
73
73

skipif mysql # not compatible
query I rowsort label-9011
SELECT - 66 / + - col1 + + col1 + + 55 FROM tab1 AS cor0
----
103
73
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col2 ) + + col1 <= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( 90 * + 97 / 4 * + + 28 ) NOT BETWEEN 48 AND ( NULL ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT SUM( DISTINCT + + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9015
SELECT SUM ( DISTINCT + + col2 ) AS col2 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT - 62 DIV + 31 - - col0 * - col1 * + 24 * + - col0 + 76 FROM tab0 AS cor0
----
225890
3814850
437474

skipif mysql # not compatible
query I rowsort label-9016
SELECT - 62 / + 31 - - col0 * - col1 * + 24 * + - col0 + 76 FROM tab0 AS cor0
----
225890
3814850
437474

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT - SUM( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT ( + 33 + 61 + + 8 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT - SUM ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT ( + 33 + 61 + + 8 ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( col2 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + - col2 * + 84 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN 65 + + - col1 AND ( - col0 / + col1 - + col0 / ( + 58 ) + + 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT SUM( - col1 ) col0 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9023
SELECT SUM ( - col1 ) col0 FROM tab2
----
-195

query I rowsort
SELECT ALL + 34 * + - col1 AS col0 FROM tab0
----
-2754
-34
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9025
SELECT - CAST( NULL AS SIGNED ) / - col1 * - 64 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT - CAST ( NULL AS INTEGER ) / - col1 * - 64 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + col2 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT MIN( ALL col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT MIN ( ALL col0 ) FROM tab2
----
46

query II rowsort
SELECT col2, + col1 * + + 72 FROM tab1
----
59
360
68
3384
96
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT - MIN( ALL - + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9031
SELECT - MIN ( ALL - + col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + MIN( DISTINCT col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9032
SELECT + MIN ( DISTINCT col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9033
SELECT ALL - + 29 DIV + + MIN( col0 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - + 29 / + + MIN ( col0 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT ALL - col2 * + CAST( - 18 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1062
1224
1728

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL - col2 * + CAST ( - 18 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1062
1224
1728

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT + - 18 DIV + col1 + - col0 * col1 FROM tab1 AS cor0
----
-4277
-428
-715

skipif mysql # not compatible
query I rowsort label-9035
SELECT + - 18 / + col1 + - col0 * col1 FROM tab1 AS cor0
----
-4277
-428
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT + COUNT( + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9036
SELECT + COUNT ( + col1 ) FROM tab1
----
3

query I rowsort
SELECT - col0 * + 57 FROM tab2 AS cor0
----
-2622
-3648
-4275

query I rowsort
SELECT DISTINCT + 82 + - ( + col0 ) - col2 * - col0 FROM tab1 AS cor0
----
4927
5012
6179

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT DISTINCT - SUM( ALL 59 ) + + 37 + - + 27 + COUNT( * ) col1 FROM tab0 AS cor0
----
-164

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9040
SELECT DISTINCT - SUM ( ALL 59 ) + + 37 + - + 27 + COUNT ( * ) col1 FROM tab0 AS cor0
----
-164

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 * col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 + + + col1 NOT BETWEEN 78 AND NULL
----

query I rowsort
SELECT col0 * ( ( - col0 ) ) + + col1 AS col1 FROM tab2 AS cor0
----
-2065
-4019
-5558

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9044
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 NOT IN ( + col0, 56 + + CAST( - + 58 AS SIGNED ) * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9044
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 NOT IN ( + col0, 56 + + CAST ( - + 58 AS INTEGER ) * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT DISTINCT + ( + COUNT( * ) ) + - - SUM( col2 ) AS col0 FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT + ( + COUNT ( * ) ) + - - SUM ( col2 ) AS col0 FROM tab1
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT COUNT( * ) + - + 79 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-9047
SELECT COUNT ( * ) + - + 79 FROM tab2
----
-76

query I rowsort
SELECT col1 + ( - col0 ) AS col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT + col2 - - ( + 53 ) AS col2 FROM tab2
----
111
76
93

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 94 * col1 * col0 * col2 * col2 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - col1 * + + 25 + - 79 AS col1 FROM tab0
----
-104
-2104
-604

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT COUNT( + + col1 ) + + 2 AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-9052
SELECT COUNT ( + + col1 ) + + 2 AS col0 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT - 3 + + MIN( col0 ) + COUNT( * ) * + SUM( 33 ) col2 FROM tab0 cor0
----
309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9053
SELECT DISTINCT - 3 + + MIN ( col0 ) + COUNT ( * ) * + SUM ( 33 ) col2 FROM tab0 cor0
----
309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 25 col2 FROM tab1 AS cor0
----
25
25
25

query II rowsort
SELECT DISTINCT + - 45 AS col0, - col1 FROM tab0 AS cor0
----
-45
-1
-45
-21
-45
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-9056
SELECT col1 col0, - ( + + 85 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
14
0
47
-1
5
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9056
SELECT col1 col0, - ( + + 85 ) / + col2 AS col0 FROM tab1 AS cor0
----
14
0
47
-1
5
-1

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 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND NULL
----

query II rowsort
SELECT ALL col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT DISTINCT - CAST( + ( - col1 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT - CAST ( + ( - col1 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - - 6 AS col2, col1 * - 46 FROM tab0 cor0 WHERE NOT ( NOT - col2 * + - col0 IS NULL )
----

query II rowsort
SELECT DISTINCT 99 * col1, col0 FROM tab0
----
2079
87
8019
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9063
SELECT ( + CAST( 88 AS SIGNED ) ) * + col1 + - 68 FROM tab0
----
1780
20
7060

skipif mysql # not compatible
query I rowsort label-9063
SELECT ( + CAST ( 88 AS INTEGER ) ) * + col1 + - 68 FROM tab0
----
1780
20
7060

query I rowsort
SELECT 88 * + col2 FROM tab2
----
2024
3520
5104

query I rowsort
SELECT + col0 + - col2 AS col0 FROM tab2 WHERE NOT ( + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT MAX( DISTINCT 88 ) AS col2 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT MAX ( DISTINCT 88 ) AS col2 FROM tab2
----
88

query I rowsort
SELECT ALL - 85 AS col0 FROM tab2
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT ALL SUM( + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL SUM ( + col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT ALL + 29 + CAST( NULL AS SIGNED ) * - + 32 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL + 29 + CAST ( NULL AS INTEGER ) * - + 32 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * + col0 col1 FROM tab1 cor0 WHERE NOT 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9071
SELECT ALL + COUNT( 36 ) DIV + 95 * + - 70 DIV - 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + COUNT ( 36 ) / + 95 * + - 70 / - 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT + + 14 + + COUNT( * ) * - 23 AS col2 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9073
SELECT + + 14 + + COUNT ( * ) * - 23 AS col2 FROM tab1 AS cor0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT - + ( col1 ) DIV - - col1 + - col2 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-9074
SELECT - + ( col1 ) / - - col1 + - col2 FROM tab2 AS cor0
----
-24
-41
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9075
SELECT + - 85 + + col0 DIV + ( - col1 ) FROM tab2 AS cor0
----
-85
-85
-86

skipif mysql # not compatible
query I rowsort label-9075
SELECT + - 85 + + col0 / + ( - col1 ) FROM tab2 AS cor0
----
-85
-85
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT - col1 + - - CAST( + - col2 AS SIGNED ) + 72 AS col2 FROM tab1 cor0
----
-38
-43
8

skipif mysql # not compatible
query I rowsort label-9076
SELECT - col1 + - - CAST ( + - col2 AS INTEGER ) + 72 AS col2 FROM tab1 cor0
----
-38
-43
8

query I rowsort
SELECT DISTINCT + col1 + - 64 FROM tab1 AS cor0
----
-17
-50
-59

query I rowsort
SELECT ALL col1 + - + col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL 28 - + + col1 AS col0 FROM tab0 AS cor0
----
-53
27
7

query I rowsort
SELECT + ( + 51 ) AS col1 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # DIV for integer division: 
query II rowsort label-9081
SELECT DISTINCT - col1, col0 DIV + + col0 AS col0 FROM tab0
----
-1
1
-21
1
-81
1

skipif mysql # not compatible
query II rowsort label-9081
SELECT DISTINCT - col1, col0 / + + col0 AS col0 FROM tab0
----
-1
1
-21
1
-81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL + COUNT( * ) - - + 19 + COUNT( * ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL + COUNT ( * ) - - + 19 + COUNT ( * ) FROM tab0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9083
SELECT - 76 AS col1, 31 + - CAST( + col0 AS SIGNED ) FROM tab2
----
-76
-15
-76
-33
-76
-44

skipif mysql # not compatible
query II rowsort label-9083
SELECT - 76 AS col1, 31 + - CAST ( + col0 AS INTEGER ) FROM tab2
----
-76
-15
-76
-33
-76
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT ALL CAST( NULL AS SIGNED ) * 42 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL CAST ( NULL AS INTEGER ) * 42 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 33 * + + col0 FROM tab1
----
1683
2805
3003

query II rowsort
SELECT col0 - 67, - ( + col1 ) AS col1 FROM tab2
----
-21
-51
-3
-77
8
-67

query I rowsort
SELECT - ( col2 ) - + - 74 FROM tab1
----
-22
15
6

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - col1 - - 89 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 70 + col1 FROM tab2 AS cor0
----
121
137
147

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 3 > + 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT DISTINCT + - CAST( 15 AS SIGNED ) + - 66 + col1 * 68 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT + - CAST ( 15 AS INTEGER ) + - 66 + col1 * 68 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 31 * + col1 FROM tab0 AS cor0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT MAX( ALL + col1 ) + - + MIN( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE + col2 <> - - col0 - col0
----
42

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT MAX ( ALL + col1 ) + - + MIN ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE + col2 <> - - col0 - col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9094
SELECT + MIN( DISTINCT - - col2 ) col1, SUM( col0 ) DIV + COUNT( * ) - - COUNT( * ) FROM tab0
----
10
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9094
SELECT + MIN ( DISTINCT - - col2 ) col1, SUM ( col0 ) / + COUNT ( * ) - - COUNT ( * ) FROM tab0
----
10
69

query I rowsort
SELECT - ( - + 20 ) FROM tab1
----
20
20
20

query II rowsort
SELECT + + col1 * col1, + col0 FROM tab2 cor0
----
2601
46
4489
75
5929
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - 59 + + - 77
----

query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab0 cor0
----
30

query II rowsort
SELECT ALL 70, 51 AS col2 FROM tab0
----
70
51
70
51
70
51

query I rowsort
SELECT 16 * - ( + - 23 ) AS col2 FROM tab0
----
368
368
368

query I rowsort
SELECT + col1 + col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, - col2 + + 10 AS col1 FROM tab2
----
-23
-13
-40
-30
-58
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT + + col2 FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9103
SELECT + + col2 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT - col2, - col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT MAX( DISTINCT 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-9105
SELECT MAX ( DISTINCT 43 ) FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT + MIN( DISTINCT - - col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9106
SELECT + MIN ( DISTINCT - - col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT DISTINCT 59 + - 29 FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9108
SELECT CAST( NULL AS SIGNED ) * + - CAST( - + CAST( ( + 88 ) AS SIGNED ) AS DECIMAL ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9108
SELECT CAST ( NULL AS INTEGER ) * + - CAST ( - + CAST ( ( + 88 ) AS INTEGER ) AS REAL ) * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL COUNT( * ) * + - COUNT( * ) + + ( - ( + ( 67 ) ) ) FROM tab0 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL COUNT ( * ) * + - COUNT ( * ) + + ( - ( + ( 67 ) ) ) FROM tab0 cor0
----
-76

query I rowsort
SELECT DISTINCT - 69 + + ( + 52 ) FROM tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT - - COUNT( * ) col0 FROM tab1 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-9111
SELECT - - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 - + 48 + + - ( + + col2 ) * - + col0 AS col2 FROM tab0 AS cor0
----
704
832
9654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT 1 + - - 77 * - COUNT( * ) + - ( 11 ) + + - 65 col2 FROM tab0
----
-306

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9114
SELECT DISTINCT 1 + - - 77 * - COUNT ( * ) + - ( 11 ) + + - 65 col2 FROM tab0
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT + SUM( DISTINCT + + 19 ) AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT + SUM ( DISTINCT + + 19 ) AS col2 FROM tab2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + ( + + col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + ( + + col2 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT COUNT( * ) + + + 55 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-9117
SELECT COUNT ( * ) + + + 55 FROM tab0
----
58

query I rowsort
SELECT ALL col0 * - col2 - - col2 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT DISTINCT col2 * + 88 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2024
3520
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT + MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9120
SELECT + MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9121
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + col1 * - 59 FROM tab0 cor0
----
-1239
-4779
-59

query I rowsort
SELECT - + col0 * - col2 * + 49 * + 25 FROM tab0 AS cor0
----
1065750
11763675
863625

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT + - ( + + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9124
SELECT + - ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL + 4 * + COUNT( * ) FROM tab1, tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL + 4 * + COUNT ( * ) FROM tab1, tab1 AS cor0
----
36

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 53 ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT ( + + MAX( col1 ) ) * + 66 col2 FROM tab2
----
5082

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9127
SELECT DISTINCT ( + + MAX ( col1 ) ) * + 66 col2 FROM tab2
----
5082

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + col1 NOT BETWEEN NULL AND ( + - col1 + + + 53 * - 13 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT DISTINCT + 19, + MIN( ALL - 23 ) AS col0 FROM tab2 AS cor0
----
19
-23

skipif mysql # not compatible
query II rowsort label-9130
SELECT DISTINCT + 19, + MIN ( ALL - 23 ) AS col0 FROM tab2 AS cor0
----
19
-23

query I rowsort
SELECT ALL 84 AS col2 FROM tab1 cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - + 80 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-9132
SELECT - + 80 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9133
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= - col2 * - 54 + + col1
----

skipif mysql # not compatible
query III rowsort label-9133
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= - col2 * - 54 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - 67 * - ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
201

skipif mysql # not compatible
query I rowsort label-9134
SELECT - 67 * - ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
201

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 61 < NULL
----

query I rowsort
SELECT ALL + 52 AS col0 FROM tab2
----
52
52
52

query I rowsort
SELECT DISTINCT col0 * - 29 FROM tab2
----
-1334
-1856
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT SUM( DISTINCT - col2 ) col1 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9138
SELECT SUM ( DISTINCT - col2 ) col1 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + ( + MAX( ALL - 98 ) ) FROM tab2 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9139
SELECT + ( + MAX ( ALL - 98 ) ) FROM tab2 cor0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9140
SELECT DISTINCT + + col0 DIV + 7 + col1 + - col0 col1 FROM tab1 AS cor0
----
-30
-31
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9140
SELECT DISTINCT + + col0 / + 7 + col1 + - col0 col1 FROM tab1 AS cor0
----
-30
-31
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9141
SELECT ALL - col0 AS col2, col0 * col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-9141
SELECT ALL - col0 AS col2, col0 * col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT ( - + 38 ) + col2 AS col2 FROM tab1
----
21
30
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT - 67 * SUM( + ( + col2 ) ) col1 FROM tab2
----
-8107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9143
SELECT DISTINCT - 67 * SUM ( + ( + col2 ) ) col1 FROM tab2
----
-8107

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 + col1 * + + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col2 col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL + col0 * col2 * + - col0 AS col1 FROM tab1 cor0
----
-249696
-426275
-563108

query II rowsort
SELECT ALL 54 AS col1, + 9 * - col0 FROM tab1 AS cor0
----
54
-459
54
-765
54
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - ( + 7 ) * ( - + MAX( - 65 ) ) AS col0 FROM tab0 AS cor0
----
-455

skipif mysql # not compatible
query I rowsort label-9148
SELECT - ( + 7 ) * ( - + MAX ( - 65 ) ) AS col0 FROM tab0 AS cor0
----
-455

query I rowsort
SELECT DISTINCT + - col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE + col2 BETWEEN + col1 AND + ( col0 ) + 28
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT - COUNT( ALL - 61 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9150
SELECT - COUNT ( ALL - 61 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 + + 40 FROM tab2 AS cor0
----
-18
0
17

query II rowsort
SELECT ALL - col1, col2 FROM tab1 cor0 WHERE col0 + - + col2 <= col1 * + + col1
----
-14
96
-47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT DISTINCT + + col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + + col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 31 * - col0 * + - 40 * - - col2 - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT + CAST( NULL AS SIGNED ) - - ( CAST( + col2 AS SIGNED ) ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9156
SELECT + CAST ( NULL AS INTEGER ) - - ( CAST ( + col2 AS INTEGER ) ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL + MAX( ALL - 65 ) - - COUNT( * ) AS col0 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL + MAX ( ALL - 65 ) - - COUNT ( * ) AS col0 FROM tab0
----
-62

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 64 - 52 * + col2 FROM tab2
----
-1132
-2016
-2952

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 80 + - col1 BETWEEN NULL AND - col0 + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9161
SELECT SUM( - col0 ) * - ( - COUNT( * ) ) AS col2, - CAST( - + COUNT( * ) AS SIGNED ) FROM tab1
----
-681
3

skipif mysql # not compatible
query II rowsort label-9161
SELECT SUM ( - col0 ) * - ( - COUNT ( * ) ) AS col2, - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1
----
-681
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 * - + col1 * - - 83 + 38 + + 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 83, - col0 + + + 3 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND + 1 * + + col1 - + + col2 - + + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT MIN( - col1 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + + 11 AND + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT MIN ( - col1 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + + 11 AND + 45
----
NULL

query I rowsort
SELECT ALL col0 * + - 86 AS col0 FROM tab1
----
-4386
-7310
-7826

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + SUM( 45 ) AS col0 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9167
SELECT + SUM ( 45 ) AS col0 FROM tab1 AS cor0
----
135

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT MIN( + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9169
SELECT MIN ( + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col1 FROM tab0 AS cor0
----
3
3
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 34 col0 FROM tab0
----
-10
34
-47
34
-99
34

query I rowsort
SELECT - 2 * 60 * + col2 FROM tab2
----
-2760
-4800
-6960

query I rowsort
SELECT + col2 + + col2 * - col1 FROM tab0
----
-200
-3760
0

query II rowsort
SELECT DISTINCT col0, + col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT + + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND NULL AND NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9176
SELECT + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND NULL AND NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 9 + col1 AS col1 FROM tab2 AS cor0
----
60
76
86

query III rowsort
SELECT * FROM tab2 WHERE ( - 1 ) / - - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT DISTINCT - - col2 * + + CAST( NULL AS SIGNED ) + - + col1 + - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT - - col2 * + + CAST ( NULL AS INTEGER ) + - + col1 + - col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9182
SELECT - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 cor0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-9183
SELECT + 66 + - col0 + - col2 AS col1, ( 56 ) DIV + 6 FROM tab0 AS cor0
----
-130
9
-31
9
4
9

skipif mysql # not compatible
query II rowsort label-9183
SELECT + 66 + - col0 + - col2 AS col1, ( 56 ) / + 6 FROM tab0 AS cor0
----
-130
9
-31
9
4
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL + - COUNT( * ) + - SUM( + 27 ) FROM tab1 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + - COUNT ( * ) + - SUM ( + 27 ) FROM tab1 cor0
----
-84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT + COUNT( * ) + + 14 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + COUNT ( * ) + + 14 FROM tab0 AS cor0
----
17

query I rowsort
SELECT DISTINCT 92 - - 17 FROM tab1
----
109

query II rowsort
SELECT col2 AS col2, - 32 FROM tab1
----
59
-32
68
-32
96
-32

query I rowsort
SELECT + ( + + col2 ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL + COUNT( 76 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + COUNT ( 76 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - col0
----

query I rowsort
SELECT ALL 24 AS col1 FROM tab0
----
24
24
24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col2, col0, col1, 46 * + col2 * + 1 + + 25 + - col0 + + 2 )
----

query II rowsort
SELECT ALL - col0 AS col2, + 23 AS col0 FROM tab1 AS cor0
----
-51
23
-85
23
-91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL - - COUNT( DISTINCT + col2 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9196
SELECT ALL - - COUNT ( DISTINCT + col2 ) col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT DISTINCT SUM( ALL - col1 ) * - + 1 * - 75 * - - COUNT( * ) AS col2 FROM tab0
----
-23175

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT SUM ( ALL - col1 ) * - + 1 * - 75 * - - COUNT ( * ) AS col2 FROM tab0
----
-23175

query II rowsort
SELECT - ( 88 ), + col0 FROM tab0
----
-88
15
-88
87
-88
97

query I rowsort
SELECT - - 78 FROM tab2 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 42 col2 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT + col2 DIV - ( + + col1 ) + + col0 - col0 * - 16 + + col1 FROM tab1 AS cor0
----
1439
1593
875

skipif mysql # not compatible
query I rowsort label-9202
SELECT + col2 / - ( + + col1 ) + + col0 - col0 * - 16 + + col1 FROM tab1 AS cor0
----
1439
1593
875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT - 47 + 24 * - col2 + 71 + - CAST( NULL AS SIGNED ) * + + 38 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT - 47 + 24 * - col2 + 71 + - CAST ( NULL AS INTEGER ) * + + 38 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9204
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + col0 / + col1 * CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9204
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + col0 / + col1 * CAST ( col1 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9205
SELECT ALL + - CAST( - + COUNT( * ) AS SIGNED ) + ( - COUNT( * ) ) AS col2, MAX( 82 ) FROM tab1 AS cor0
----
0
82

skipif mysql # not compatible
query II rowsort label-9205
SELECT ALL + - CAST ( - + COUNT ( * ) AS INTEGER ) + ( - COUNT ( * ) ) AS col2, MAX ( 82 ) FROM tab1 AS cor0
----
0
82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 94 * 43 IS NULL
----

query I rowsort
SELECT ALL - 26 + col2 AS col0 FROM tab0 AS cor0
----
-16
21
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT DISTINCT col2 * + + col1 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT col2 * + + col1 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT COUNT( * ) * - - COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9209
SELECT COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT ALL 31 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL 31 / col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 10 * - col1 FROM tab1
----
-140
-470
-50

query I rowsort
SELECT DISTINCT - 38 FROM tab0 WHERE NOT - col2 * - col0 IS NULL
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL - COUNT( ALL + + 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - COUNT ( ALL + + 3 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT - - 37 * + 95 / + MAX( ALL col2 ) AS col1 FROM tab2 WHERE ( NOT + 56 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT - - 37 * + 95 / + MAX ( ALL col2 ) AS col1 FROM tab2 WHERE ( NOT + 56 IS NOT NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col2 < col0 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + + 76 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 84 + - 9 AS col1 FROM tab0
----
75
75
75

query I rowsort
SELECT - + 35 AS col0 FROM tab2 cor0
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT ALL + + col1 + + col2 - + - col2 DIV col2 + - col1 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL + + col1 + + col2 - + - col2 / col2 + - col1 FROM tab1 AS cor0
----
60
69
97

query II rowsort
SELECT DISTINCT - col1 AS col0, 50 FROM tab2
----
-51
50
-67
50
-77
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9221
SELECT + CAST( - col1 AS SIGNED ) DIV + 75 - + 21 AS col1 FROM tab0 AS cor0
----
-21
-21
-22

skipif mysql # not compatible
query I rowsort label-9221
SELECT + CAST ( - col1 AS INTEGER ) / + 75 - + 21 AS col1 FROM tab0 AS cor0
----
-21
-21
-22

query I rowsort
SELECT ALL + 91 * - col0 AS col0 FROM tab1 AS cor0
----
-4641
-7735
-8281

query I rowsort
SELECT - + col0 * ( 42 ) FROM tab1 AS cor0
----
-2142
-3570
-3822

query I rowsort
SELECT - - col2 * - col1 * + + col1 AS col1 FROM tab0 cor0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT - - col1 * - 43 + + - 87 FROM tab2 AS cor0
----
-2280
-2968
-3398

query I rowsort
SELECT 96 FROM tab2 AS cor0 WHERE - 29 BETWEEN NULL AND - 58
----

query I rowsort
SELECT DISTINCT 11 FROM tab1 cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL COUNT( ALL - 93 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL COUNT ( ALL - 93 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT ALL - 26 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - 26 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9230
SELECT DISTINCT + CAST( + COUNT( * ) AS DECIMAL ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT + CAST ( + COUNT ( * ) AS REAL ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9231
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + - - 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col1 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT - MAX( ALL + ( + col2 ) ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9234
SELECT - MAX ( ALL + ( + col2 ) ) AS col2 FROM tab1
----
-96

query I rowsort
SELECT ALL + 99 FROM tab2 cor0 WHERE NOT 3 * + col0 > - col2 + + + col0
----

query I rowsort
SELECT DISTINCT col0 * 98 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4508
6272
7350

onlyif mysql # aggregate syntax: 
query II rowsort label-9237
SELECT - COUNT( * ) AS col0, 27 FROM tab1
----
-3
27

skipif mysql # not compatible
query II rowsort label-9237
SELECT - COUNT ( * ) AS col0, 27 FROM tab1
----
-3
27

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT - COUNT( ALL + - col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9240
SELECT - COUNT ( ALL + - col1 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

query II rowsort
SELECT DISTINCT col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT DISTINCT + - col0 + 47 FROM tab2 cor0
----
-17
-28
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9245
SELECT + 54 AS col0, + col2 DIV + 84 AS col1 FROM tab0 AS cor0
----
54
0
54
0
54
1

skipif mysql # not compatible
query II rowsort label-9245
SELECT + 54 AS col0, + col2 / + 84 AS col1 FROM tab0 AS cor0
----
54
0
54
0
54
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9246
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + col2 AS SIGNED ) - - col2 = + ( + 0 )
----

skipif mysql # not compatible
query III rowsort label-9246
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + col2 AS INTEGER ) - - col2 = + ( + 0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <> + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 19 + - - 75 AS col1 FROM tab1 cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9249
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT IN ( ( + col1 ) * + col1, - ( - CAST( + col2 AS SIGNED ) ) + col0 - ( - col2 ), - - 44, 9, + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9249
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT IN ( ( + col1 ) * + col1, - ( - CAST ( + col2 AS INTEGER ) ) + col0 - ( - col2 ), - - 44, 9, + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 96 + + col0 AS col2 FROM tab1 AS cor0
----
147
181
187

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT DISTINCT - + ( + col2 ) DIV 16 FROM tab0 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT - + ( + col2 ) / 16 FROM tab0 AS cor0
----
-2
-6
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9252
SELECT DISTINCT - MAX( col2 ) + + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT - MAX ( col2 ) + + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT col2 + - col1 + + col1 + + col0 AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT - + 33 AS col2 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT ALL + 78 * ( - ( - col2 ) ) DIV col1 FROM tab2 AS cor0
----
35
40
67

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + 78 * ( - ( - col2 ) ) / col1 FROM tab2 AS cor0
----
35
40
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 60 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9257
SELECT + COUNT( ALL - col1 ) + + 47 * 32 DIV MIN( + - col0 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-9257
SELECT + COUNT ( ALL - col1 ) + + 47 * 32 / MIN ( + - col0 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-12

query II rowsort
SELECT ALL + 61, - ( ( - + col2 ) ) AS col1 FROM tab2 AS cor0 WHERE ( + col1 ) BETWEEN + 90 AND NULL
----

query I rowsort
SELECT - 94 AS col1 FROM tab1
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 17 col2 FROM tab1 AS cor0
----
17

query I rowsort
SELECT ALL - ( - 86 ) FROM tab1 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL - + COUNT( - - 66 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9262
SELECT ALL - + COUNT ( - - 66 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col1 * + 34 * + 40 * + col2 FROM tab1
----
1827840
401200
4346560

query II rowsort
SELECT + col0 AS col1, col1 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT ALL + col0, col0 * + + col1 FROM tab1
----
51
714
85
425
91
4277

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 32 ) <> col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT - ( - MIN( DISTINCT - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT - ( - MIN ( DISTINCT - col0 ) ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9268
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9268
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + ( col2 ) + + ( + col2 ) FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT + col0 + col1 + 80 FROM tab1 AS cor0
----
145
170
218

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT MIN( ALL + col0 ) + + 97 AS col0 FROM tab1 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-9272
SELECT MIN ( ALL + col0 ) + + 97 AS col0 FROM tab1 AS cor0
----
148

query II rowsort
SELECT - col1 + + 41, + 47 AS col1 FROM tab1 AS cor0
----
-6
47
27
47
36
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT + - ( MAX( - col1 ) ) + 75 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + - ( MAX ( - col1 ) ) + 75 FROM tab1 AS cor0
----
80

query I rowsort
SELECT DISTINCT col0 * - - 51 - - col0 + + - 28 FROM tab0
----
4496
5016
752

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL COUNT( * ) - SUM( - col1 ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL COUNT ( * ) - SUM ( - col1 ) FROM tab2
----
198

query II rowsort
SELECT ALL 15 AS col1, 45 FROM tab2
----
15
45
15
45
15
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9279
SELECT DISTINCT COUNT( * ) * + ( + + 33 ) AS col1, 59 FROM tab1
----
99
59

skipif mysql # not compatible
query II rowsort label-9279
SELECT DISTINCT COUNT ( * ) * + ( + + 33 ) AS col1, 59 FROM tab1
----
99
59

query I rowsort
SELECT - col0 - 34 AS col2 FROM tab1
----
-119
-125
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT + - 96 - - - COUNT( * ) col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9281
SELECT + - 96 - - - COUNT ( * ) col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT - - 85 + COUNT( * ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT - - 85 + COUNT ( * ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT + col2 + 66 * - + ( col0 ) FROM tab1 AS cor0
----
-3270
-5551
-5938

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL 47 * - MAX( - col0 ) col2 FROM tab0 AS cor0
----
705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9284
SELECT ALL 47 * - MAX ( - col0 ) col2 FROM tab0 AS cor0
----
705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - 86 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-774

skipif mysql # not compatible
query I rowsort label-9286
SELECT - 86 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-774

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9287
SELECT col1 * - + col2 AS col0, CAST( NULL AS SIGNED ) / - 32 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-9287
SELECT col1 * - + col2 AS col0, CAST ( NULL AS INTEGER ) / - 32 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9288
SELECT col0 * + CAST( NULL AS SIGNED ) AS col2, + 34 AS col1 FROM tab2
----
NULL
34
NULL
34
NULL
34

skipif mysql # not compatible
query II rowsort label-9288
SELECT col0 * + CAST ( NULL AS INTEGER ) AS col2, + 34 AS col1 FROM tab2
----
NULL
34
NULL
34
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL COUNT( * ) * - + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT + 97 * - 34 * + col0 FROM tab1 AS cor0
----
-168198
-280330
-300118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT - col1 * + - col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT - col1 * + - col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9292
SELECT col2 * - - col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT col2 * - - col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) * - + col0 + - - col1 + col1 * + col1 FROM tab2 AS cor0
----
-1069
1910
536

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT SUM( ALL + 22 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-9294
SELECT SUM ( ALL + 22 ) FROM tab0
----
66

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - + 52 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9296
SELECT ALL - COUNT( * ) AS col2, ( SUM( ALL + CAST( + col2 AS SIGNED ) ) ) AS col0 FROM tab2
----
-3
121

skipif mysql # not compatible
query II rowsort label-9296
SELECT ALL - COUNT ( * ) AS col2, ( SUM ( ALL + CAST ( + col2 AS INTEGER ) ) ) AS col0 FROM tab2
----
-3
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL + SUM( + + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + SUM ( + + col2 ) AS col0 FROM tab0
----
156

query I rowsort
SELECT ( - + col2 ) AS col0 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col2 AS col1 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9300
SELECT ALL CAST( + 33 AS SIGNED ) DIV + CAST( + - col1 AS SIGNED ) + + - 3 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL CAST ( + 33 AS INTEGER ) / + CAST ( + - col1 AS INTEGER ) + + - 3 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-6
0

query I rowsort
SELECT - 29 + - 57 FROM tab1 AS cor0
----
-86
-86
-86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * + + 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL COUNT( * ) + 85 FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL COUNT ( * ) + 85 FROM tab0 cor0
----
88

query I rowsort
SELECT - 92 * col0 AS col0 FROM tab2 AS cor0
----
-4232
-5888
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT COUNT( * ) * + 53 AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT COUNT ( * ) * + 53 AS col1 FROM tab0
----
159

query I rowsort
SELECT ALL + 97 FROM tab2 WHERE NOT + - 64 = col2
----
97
97
97

query I rowsort
SELECT DISTINCT - 98 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-98

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 45 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9309
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) AS col0, 15 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
-1305
NULL
-1455
NULL
-225

skipif mysql # not compatible
query II rowsort label-9309
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) AS col0, 15 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
-1305
NULL
-1455
NULL
-225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN + col2 AND - + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9311
SELECT DISTINCT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT + COUNT( * ) + + 62 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT + COUNT ( * ) + + 62 FROM tab0 AS cor0
----
65

query I rowsort
SELECT col0 + 82 FROM tab0 AS cor0
----
169
179
97

query I rowsort
SELECT + col2 + + 80 + + 93 FROM tab2
----
196
213
231

query I rowsort
SELECT ALL + col0 * + + col0 - col0 + - col1 AS col1 FROM tab1
----
2536
7135
8143

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - MIN( ALL + 33 ) * MIN( col2 ) + + 79 + + - 29 FROM tab1
----
-1897

skipif mysql # not compatible
query I rowsort label-9316
SELECT - MIN ( ALL + 33 ) * MIN ( col2 ) + + 79 + + - 29 FROM tab1
----
-1897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9317
SELECT - ( - 66 ) + - CAST( NULL AS SIGNED ) + - COUNT( * ) + 39 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT - ( - 66 ) + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 39 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 - 5 FROM tab0
----
-26
-6
-86

query I rowsort
SELECT - col0 * - 98 FROM tab0
----
1470
8526
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT DISTINCT - MIN( DISTINCT + + 72 ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT - MIN ( DISTINCT + + 72 ) FROM tab0
----
-72

query I rowsort
SELECT 48 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 72 * + 82 * - col1 col2, + col2 AS col2 FROM tab2 AS cor0
----
301104
23
395568
58
454608
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9324
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9325
SELECT + SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT col1 * - 18 + - col0 AS col1, - 51 * - - col0 * ( + col1 ) + + col0 FROM tab0 AS cor0
----
-115
-4850
-1473
-61950
-465
-93090

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 + + + col1 * + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL COUNT( col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL COUNT ( col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + MAX( - + ( + + col1 ) ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9331
SELECT + MAX ( - + ( + + col1 ) ) AS col0 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT MAX( + + 32 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-9332
SELECT MAX ( + + 32 ) FROM tab0
----
32

query I rowsort
SELECT - AVG ( DISTINCT + ( + col0 ) ) FROM tab1 WHERE NOT + - col0 + - col0 / + col1 + - col2 NOT BETWEEN NULL AND + + col1
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT DISTINCT ( col0 ) DIV - col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT ( col0 ) / - col0 FROM tab1
----
-1

query I rowsort
SELECT col1 * - - col1 * + col1 + - - col0 AS col2 FROM tab2 AS cor0
----
132697
300838
456597

query I rowsort
SELECT ALL - col2 + - - col0 AS col2 FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 29 < 85
----

query I rowsort
SELECT + + 37 AS col1 FROM tab0 WHERE ( NOT ( NULL IS NULL ) )
----

query I rowsort
SELECT + + col2 AS col0 FROM tab2 WHERE 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT + COUNT( - 97 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + COUNT ( - 97 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT col0 + - col2 + col2 - + col1 * col2 * - - col0 + col1 * - col0 FROM tab1
----
-25415
-295022
-69207

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT + - 59 * + COUNT( * ) + - - COUNT( * ) AS col0, - 52 FROM tab0 cor0
----
-174
-52

skipif mysql # not compatible
query II rowsort label-9343
SELECT + - 59 * + COUNT ( * ) + - - COUNT ( * ) AS col0, - 52 FROM tab0 cor0
----
-174
-52

query II rowsort
SELECT - 71, - col2 - - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-71
0
-71
0
-71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT + ( + COUNT( - - 74 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9345
SELECT + ( + COUNT ( - - 74 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + col1 + + + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 69 AS col1, col2 + col0 col1 FROM tab0 AS cor0
----
-69
196
-69
62
-69
97

query II rowsort
SELECT ALL col1 * - col0 + - + col1 * + + col0 + + col0, col0 FROM tab1 AS cor0
----
-1377
51
-765
85
-8463
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 43 - - col1 col2 FROM tab0 AS cor0
----
124
44
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1, - ( + col2 ) - - 98 )
----

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN NULL AND col0 + - col1 + - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT - COUNT( * ) + + MIN( col1 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT - COUNT ( * ) + + MIN ( col1 ) FROM tab0
----
-2

query I rowsort
SELECT + 65 - - col0 FROM tab2
----
111
129
140

query I rowsort
SELECT col1 - col1 + - 18 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - col0 - - 21 * - 49 AS col0 FROM tab1
----
-1080
-1114
-1120

query II rowsort
SELECT DISTINCT col1, - 20 + 83 FROM tab0
----
1
63
21
63
81
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL + COUNT( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL + COUNT ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL + COUNT( col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + COUNT ( col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - - col2, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - - col2, col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL + + COUNT( * ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL + + COUNT ( * ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT - - ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT - - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col0 * + col2, col2 AS col2 FROM tab0 AS cor0
----
-705
47
-870
10
-9603
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9363
SELECT DISTINCT + + 12 DIV + - 16 * - 12 + - 89 AS col2 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT + + 12 / + - 16 * - 12 + - 89 AS col2 FROM tab2 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9364
SELECT CAST( NULL AS SIGNED ), + col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9364
SELECT CAST ( NULL AS INTEGER ), + col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT DISTINCT 17 * - SUM( col1 ) * + 51 FROM tab1
----
-57222

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT 17 * - SUM ( col1 ) * + 51 FROM tab1
----
-57222

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT MIN( - - 62 ) AS col0 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-9366
SELECT MIN ( - - 62 ) AS col0 FROM tab0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT + COUNT( * ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9367
SELECT + COUNT ( * ) FROM tab1, tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 33 * + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT SUM( - + 65 ) + - - 24 + + COUNT( * ) AS col0 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-9369
SELECT SUM ( - + 65 ) + - - 24 + + COUNT ( * ) AS col0 FROM tab2
----
-168

query I rowsort
SELECT col0 + - 7 AS col0 FROM tab0
----
8
80
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-9371
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - SUM( DISTINCT + 79 ) AS col1 FROM tab0 AS cor0 WHERE - 18 / - col2 + col0 + - + 70 + - 0 > + + col2
----
-79

skipif mysql # not compatible
query I rowsort label-9372
SELECT - SUM ( DISTINCT + 79 ) AS col1 FROM tab0 AS cor0 WHERE - 18 / - col2 + col0 + - + 70 + - 0 > + + col2
----
-79

query I rowsort
SELECT ALL + col2 + - col1 - + + 64 AS col1 FROM tab1 AS cor0
----
-10
-43
18

query I rowsort
SELECT DISTINCT - + col0 * + col2 * + col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT + SUM( + + 47 ) + + 42 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT + SUM ( + + 47 ) + + 42 FROM tab0 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL + COUNT( * ) - + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 85 * + col2 AS col0 FROM tab0
----
3995
8415
850

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE col0 + + 18 IN ( - 90 )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT 37 * col2 - + col0 IS NULL
----
14
47
5

query I rowsort
SELECT ALL 7 * 53 AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 49 * + col0 < ( - ( - 61 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 BETWEEN NULL AND ( - col0 )
----
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9384
SELECT 94 DIV COUNT( - col1 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-9384
SELECT 94 / COUNT ( - col1 ) FROM tab2
----
31

query I rowsort
SELECT ALL ( 69 ) + col1 AS col2 FROM tab1
----
116
74
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9386
SELECT 0 DIV + 34 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9386
SELECT 0 / + 34 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 29 IN ( 60 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9388
SELECT * FROM tab2 WHERE NOT col0 - - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9388
SELECT * FROM tab2 WHERE NOT col0 - - CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT col2 FROM tab1 WHERE 20 NOT BETWEEN - 94 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 81 * col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL + MAX( col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + MAX ( col2 ) FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT 99 * SUM( DISTINCT 34 ) AS col1 FROM tab1
----
3366

skipif mysql # not compatible
query I rowsort label-9394
SELECT 99 * SUM ( DISTINCT 34 ) AS col1 FROM tab1
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT 67 * ( + COUNT( * ) ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-9395
SELECT 67 * ( + COUNT ( * ) ) FROM tab1
----
201

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9396
SELECT SUM( ALL 34 ) * CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9396
SELECT SUM ( ALL 34 ) * CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT COUNT( - col1 ) * 75 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-9397
SELECT COUNT ( - col1 ) * 75 FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT ALL COUNT( * ) + 66 * + COUNT( * ) col2 FROM tab1
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9398
SELECT ALL COUNT ( * ) + 66 * + COUNT ( * ) col2 FROM tab1
----
201

query I rowsort
SELECT DISTINCT - 64 FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 * - col2 AND ( NULL )
----

query I rowsort
SELECT col0 * - 12 AS col2 FROM tab2
----
-552
-768
-900

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9401
SELECT DISTINCT - 31 DIV - CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT - 31 / - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 82 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( - 80 * 57 ) NOT BETWEEN - col1 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 * + 18 col2 FROM tab1
----
1206

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT - col1 DIV + 91 AS col0 FROM tab1 WHERE NOT ( col0 ) BETWEEN NULL AND - col1 DIV - 85
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT - col1 / + 91 AS col0 FROM tab1 WHERE NOT ( col0 ) BETWEEN NULL AND - col1 / - 85
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT DISTINCT - col0 DIV - col2 AS col1 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT - col0 / - col2 AS col1 FROM tab2
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT - SUM( - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9407
SELECT - SUM ( - col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9408
SELECT DISTINCT + COUNT( * ) DIV 24 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT + COUNT ( * ) / 24 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT 30 / + col2 IS NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9411
SELECT ALL 4 DIV col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL 4 / col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE 77 IN ( - col1 / - col0 + + col2 )
----

query I rowsort
SELECT - 44 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 16 * col2 AS col2 FROM tab0 WHERE ( 81 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9415
SELECT col1 DIV 75 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9415
SELECT col1 / 75 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
1

query I rowsort
SELECT DISTINCT 27 * col2 AS col2 FROM tab2 cor0
----
1080
1566
621

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - 46 ) NOT IN ( + ( + 79 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT - COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9418
SELECT - COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * ( + 36 ) col1 FROM tab0 cor0
----
2916
36
756

query I rowsort
SELECT + 11 * col2 AS col0 FROM tab1 WHERE NOT col2 - - 68 * + ( col0 * - 13 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col0 FROM tab1
----
73
73
73

query I rowsort
SELECT DISTINCT - 31 FROM tab2 WHERE ( - col0 * col1 ) BETWEEN NULL AND - 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT 49 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-441

skipif mysql # not compatible
query I rowsort label-9423
SELECT 49 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + + ( COUNT( * ) ) * - 50 FROM tab2 cor0
----
-150

skipif mysql # not compatible
query I rowsort label-9424
SELECT + + ( COUNT ( * ) ) * - 50 FROM tab2 cor0
----
-150

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > ( col1 ) / col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 * col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT - 18 + ( - col0 + + col0 ) * CAST( + col0 * col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9427
SELECT - 18 + ( - col0 + + col0 ) * CAST ( + col0 * col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0 WHERE + col2 * + col2 NOT IN ( col1 )
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT COUNT( + col1 ) + 90 * MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
6933

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT COUNT ( + col1 ) + 90 * MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
6933

query I rowsort
SELECT 42 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT 27 * - col0 IN ( col2 )
----
1680
2436
966

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9432
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col1 ) NOT IN ( col1 / + CAST( - 35 AS DECIMAL ) )
----
3

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col1 ) NOT IN ( col1 / + CAST ( - 35 AS REAL ) )
----
3

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + 93 < ( NULL )
----

query I rowsort
SELECT ALL 10 AS col2 FROM tab1 AS cor0
----
10
10
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > ( col0 * col2 )
----

query I rowsort
SELECT - + 92 * col1 AS col0 FROM tab2 cor0
----
-4692
-6164
-7084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 / 66 col2 FROM tab2 WHERE NOT + 56 + - col1 * - 60 >= col2 * - ( col1 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + col0 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ( - COUNT( - col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9439
SELECT ( - COUNT ( - col0 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col2 * + - col1 + + 7 AS col0 FROM tab0 AS cor0
----
-203
-3800
-92

query I rowsort
SELECT ALL col2 + - + 19 FROM tab0 AS cor0
----
-9
28
80

query I rowsort
SELECT + 38 FROM tab1 AS cor0 WHERE 47 * 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE - + 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9445
SELECT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 * + col2 col1 FROM tab1 AS cor0
----
-5723
-6596
-9312

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( - - 46 ) ) BETWEEN ( NULL ) AND ( col1 )
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT ALL - col0 - + 24 * - col2 AS col0 FROM tab1 AS cor0 WHERE CAST( - ( 30 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL - col0 - + 24 * - col2 AS col0 FROM tab1 AS cor0 WHERE CAST ( - ( 30 ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9449
SELECT COUNT( * ) DIV - 98 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT COUNT ( * ) / - 98 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 94 * - 96 + + - col1 FROM tab1 AS cor0
----
-9029
-9038
-9071

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT MIN( col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9451
SELECT MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT + ( - - col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + 89 * + 7 FROM tab1 AS cor0 WHERE ( - 86 ) BETWEEN NULL AND - 97
----

query I rowsort
SELECT - + ( + 42 ) FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT ALL + MIN( DISTINCT - col0 ) * - + MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
8736

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL + MIN ( DISTINCT - col0 ) * - + MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
8736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL + - COUNT( * ) + - CAST( NULL AS SIGNED ) * 87 col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9456
SELECT ALL + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 87 col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 62 * + 30 * - col0 + col1 + - col0 AS col1 FROM tab0 AS cor0
----
161754
180324
27966

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT - 62 * + - ( col2 ) * - col2 > ( + 62 + - 97 * - col2 )
----
51
85
91

query I rowsort
SELECT DISTINCT ( - - 16 ) FROM tab2
----
16

query I rowsort
SELECT DISTINCT - col2 * - 77 AS col1 FROM tab2 WHERE NULL NOT BETWEEN - col1 AND - - col0 * - col0 - - col0
----

query II rowsort
SELECT DISTINCT 91 * - col2, + col1 FROM tab1
----
-5369
5
-6188
47
-8736
14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 - - - col0 + col0 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * - + col0 AS col2 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 86 col0 FROM tab2
----
-1978
-3440
-4988

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT DISTINCT ( + col0 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT ( + col0 ) / + col1 AS col2 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT ALL col1 + + + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT DISTINCT + col1 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > + 0
----

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT + col1 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL COUNT( + col1 ) * 16 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL COUNT ( + col1 ) * 16 FROM tab2
----
48

query II rowsort
SELECT ALL col2 AS col0, col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT 68 * ( - 56 ) AS col0 FROM tab0
----
-3808
-3808
-3808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col1 FROM tab0
----
76
76
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 21 BETWEEN - ( - col1 ) * col1 * col0 - 11 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT + COUNT( col0 ) + 19 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 12 * - col1 ) > col0 + - 51
----
22

skipif mysql # not compatible
query I rowsort label-9473
SELECT + COUNT ( col0 ) + 19 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 12 * - col1 ) > col0 + - 51
----
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 / + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - ( 94 ) AS col0 FROM tab0 AS cor0
----
94
94
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL - MAX( + 24 ) AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - MAX ( + 24 ) AS col2 FROM tab2 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-9478
SELECT ALL 64, - col1 DIV - 38 + - - col2 + + col1 AS col2 FROM tab2 AS cor0
----
64
119
64
126
64
75

skipif mysql # not compatible
query II rowsort label-9478
SELECT ALL 64, - col1 / - 38 + - - col2 + + col1 AS col2 FROM tab2 AS cor0
----
64
119
64
126
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT + COUNT( - + col2 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9479
SELECT + COUNT ( - + col2 ) col1 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - - 61 * - 23 * - + 51 AS col2 FROM tab1 WHERE NOT NULL < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL - COUNT( * ) + - 24 AS col2 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - COUNT ( * ) + - 24 AS col2 FROM tab1
----
-27

query II rowsort
SELECT DISTINCT 93, - col1 AS col1 FROM tab1
----
93
-14
93
-47
93
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT DISTINCT + CAST( + + 95 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + CAST ( + + 95 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 21 = - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9485
SELECT + CAST( AVG ( DISTINCT - col2 ) AS SIGNED ) + + 18 col2, MAX( DISTINCT + + 46 ) FROM tab1
----
-56
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9485
SELECT + CAST ( AVG ( DISTINCT - col2 ) AS INTEGER ) + + 18 col2, MAX ( DISTINCT + + 46 ) FROM tab1
----
-56
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT COUNT( * ) + + 14 AS col1 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9486
SELECT COUNT ( * ) + + 14 AS col1 FROM tab0
----
17

query I rowsort
SELECT - col0 + + - ( + col2 ) AS col1 FROM tab1
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - 4 AS col0, col1 * - 0 + + col1 col0, + ( col2 ) FROM tab2
----
9 values hashing to 500e33bcc7116abd08fb723d6a4a35a0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col1 FROM tab0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col2 ) col0 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL IN ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT - 56 + col0 * - + 3 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT - 56 + col0 * - + 3 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - + col1 AS col0, 36 AS col0 FROM tab2 AS cor0
----
-51
36
-67
36
-77
36

query II rowsort
SELECT + - col1, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT DISTINCT - col2 + 58 * col1 FROM tab0 AS cor0
----
-41
1208
4651

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9497
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - ( - - CAST( NULL AS SIGNED ) ) + col0 + - ( - col2 ) - + 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9497
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - ( - - CAST ( NULL AS INTEGER ) ) + col0 + - ( - col2 ) - + 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9498
SELECT DISTINCT col2 + + - col2 col1, col0 DIV + + col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9498
SELECT DISTINCT col2 + + - col2 col1, col0 / + + col0 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT + MAX( DISTINCT + + 20 ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT + MAX ( DISTINCT + + 20 ) FROM tab2 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT - - COUNT( ALL ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9501
SELECT - - COUNT ( ALL ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 95 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 97 * - - col1 AS col2 FROM tab0 AS cor0
----
2037
7857
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9504
SELECT DISTINCT + COUNT( * ) AS col2, - COUNT( * ) + + COUNT( DISTINCT col0 ) + + - 93 - - - COUNT( * ) * + 21 FROM tab0
----
3
-156

skipif mysql # not compatible
query II rowsort label-9504
SELECT DISTINCT + COUNT ( * ) AS col2, - COUNT ( * ) + + COUNT ( DISTINCT col0 ) + + - 93 - - - COUNT ( * ) * + 21 FROM tab0
----
3
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT col1 DIV ( + + col2 ) FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9505
SELECT col1 / ( + + col2 ) FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT 5 DIV - + COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9506
SELECT 5 / - + COUNT ( * ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - MIN( ALL - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9507
SELECT - MIN ( ALL - col0 ) FROM tab1
----
91

query I rowsort
SELECT ALL 62 * + + col2 AS col2 FROM tab2
----
1426
2480
3596

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9509
SELECT - col0 * - col0 FROM tab1 WHERE NOT + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) IS NOT NULL OR col1 > col1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-9509
SELECT - col0 * - col0 FROM tab1 WHERE NOT + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) IS NOT NULL OR col1 > col1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 WHERE NOT 0 NOT IN ( + + col0 / + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT + col2 * - + col1 * + - 86 FROM tab2
----
100878
264880
334196

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL - MIN( - + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL - MIN ( - + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT + 24 * + + COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9514
SELECT + 24 * + + COUNT ( * ) FROM tab2 AS cor0
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 9 >= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9518
SELECT - 60 DIV + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-9518
SELECT - 60 / + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-6

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - - 29 / - 30 + - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
26

query I rowsort
SELECT col0 + - col0 - 45 FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL - MIN( ALL - col0 ) AS col2 FROM tab0 AS cor0 WHERE - col0 * - col0 * + 97 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL - MIN ( ALL - col0 ) AS col2 FROM tab0 AS cor0 WHERE - col0 * - col0 * + 97 IS NULL
----
NULL

query I rowsort
SELECT col0 * - 99 + + col2 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT ALL col2 DIV - + 95 * - - col1 + col2 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL col2 / - + 95 * - - col1 + col2 FROM tab0 AS cor0
----
10
47
98

query I rowsort
SELECT DISTINCT + 62 + 90 AS col2 FROM tab2 AS cor0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL + COUNT( * ) + - - 89 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + COUNT ( * ) + - - 89 FROM tab2 AS cor0
----
92

query II rowsort
SELECT + col0 + + col0 AS col1, + col2 FROM tab2 cor0
----
128
40
150
58
92
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 + - 49 + - col1 * - 93 col1 FROM tab1 AS cor0
----
1200
363
4269

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT DISTINCT - COUNT( * ) + + + 21 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT - COUNT ( * ) + + + 21 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT COUNT( * ) FROM tab1 WHERE ( + col2 * - - col1 * - col0 + 74 ) NOT BETWEEN ( + col0 * col0 * - 4 + col0 ) AND col0 * + 21
----
2

skipif mysql # not compatible
query I rowsort label-9530
SELECT COUNT ( * ) FROM tab1 WHERE ( + col2 * - - col1 * - col0 + 74 ) NOT BETWEEN ( + col0 * col0 * - 4 + col0 ) AND col0 * + 21
----
2

query I rowsort
SELECT 2 + col2 + - 63 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + + 4 AS col2 FROM tab0 AS cor0
----
4
4
4

query II rowsort
SELECT ALL - 96 + + - col2, col1 FROM tab0
----
-106
21
-143
81
-195
1

query I rowsort
SELECT DISTINCT col0 * + ( - col2 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - - MIN( + 24 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT - - MIN ( + 24 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 19 - + 48 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT - col2 * - + 96 AS col2 FROM tab1 AS cor0
----
5664
6528
9216

query II rowsort
SELECT + + 97, - col1 - - col1 AS col0 FROM tab0 AS cor0
----
97
0
97
0
97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9539
SELECT 67 DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9539
SELECT 67 / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88 col2, + col1 AS col1 FROM tab0 AS cor0
----
88
1
88
21
88
81

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) NOT BETWEEN ( - + ( col0 ) ) AND - 57 * - - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9543
SELECT ALL - + 39, + 29 DIV + col2 AS col2 FROM tab2 AS cor0
----
-39
0
-39
0
-39
1

skipif mysql # not compatible
query II rowsort label-9543
SELECT ALL - + 39, + 29 / + col2 AS col2 FROM tab2 AS cor0
----
-39
0
-39
0
-39
1

query I rowsort
SELECT ALL - col1 * - col0 - - col2 * - - col2 + 91 FROM tab1 AS cor0
----
10021
3997
8992

query I rowsort
SELECT DISTINCT + col0 + - col2 AS col2 FROM tab2 WHERE ( col1 BETWEEN - col2 AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 >= NULL
----

query I rowsort
SELECT DISTINCT col0 * - - 71 AS col2 FROM tab0
----
1065
6177
6887

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + col0 + + - col0 + - col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT - COUNT( ALL + ( - 45 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9549
SELECT - COUNT ( ALL + ( - 45 ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT - 46 * - 6 AS col2 FROM tab0 WHERE NOT - + 36 IS NOT NULL
----

query II rowsort
SELECT ( col0 ), col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT - 81 + 30 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
17
45
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + + - col1 col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) < NULL
----

query II rowsort
SELECT col1, ( col2 ) AS col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT 27 * MIN( - - 28 ) FROM tab2
----
756

skipif mysql # not compatible
query I rowsort label-9555
SELECT 27 * MIN ( - - 28 ) FROM tab2
----
756

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT - COUNT( * ), SUM( ALL + col1 ) + + + ( 15 ) col0 FROM tab2
----
-3
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9556
SELECT - COUNT ( * ), SUM ( ALL + col1 ) + + + ( 15 ) col0 FROM tab2
----
-3
210

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL COUNT( * ) * - 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL COUNT ( * ) * - 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9558
SELECT CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) DIV col2, - 19 DIV + 35 AS col1 FROM tab1
----
0
0
1
0
1
0

skipif mysql # not compatible
query II rowsort label-9558
SELECT CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) / col2, - 19 / + 35 AS col1 FROM tab1
----
0
0
1
0
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT SUM( DISTINCT + + 35 ) * - 20 FROM tab0
----
-700

skipif mysql # not compatible
query I rowsort label-9559
SELECT SUM ( DISTINCT + + 35 ) * - 20 FROM tab0
----
-700

query I rowsort
SELECT + col2 FROM tab0 WHERE - + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9561
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE col0 + - CAST( NULL AS DECIMAL ) + + + col2 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE col0 + - CAST ( NULL AS REAL ) + + + col2 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col0 + + - 17 AS col1 FROM tab0 AS cor0
----
-2
70
80

query II rowsort
SELECT ALL 64 + - col1 AS col2, 18 * col0 AS col0 FROM tab1 cor0 WHERE col1 NOT BETWEEN col0 AND ( + - col2 )
----
17
1638
50
918
59
1530

query I rowsort
SELECT ALL + + 61 * - col0 - + col1 * - + col1 AS col1 FROM tab2 AS cor0 WHERE 6 + col1 IS NOT NULL
----
-205
-86
2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT - + ( - MIN( ALL + + 21 ) ) AS col2 FROM tab1 AS cor0 WHERE - 51 BETWEEN - col2 AND col0 * + CAST( + col1 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-9565
SELECT - + ( - MIN ( ALL + + 21 ) ) AS col2 FROM tab1 AS cor0 WHERE - 51 BETWEEN - col2 AND col0 * + CAST ( + col1 AS INTEGER )
----
21

query I rowsort
SELECT + 8 * col0 + col0 AS col1 FROM tab1
----
459
765
819

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9567
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
-6

query I rowsort
SELECT col2 + col1 + + - col0 AS col0 FROM tab1
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT DISTINCT + SUM( DISTINCT + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT + SUM ( DISTINCT + col2 ) AS col2 FROM tab1
----
223

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 69 = NULL
----

query I rowsort
SELECT 65 + 75 AS col2 FROM tab2
----
140
140
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 97 col2 FROM tab2
----
-22
-33
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT CAST( col0 AS SIGNED ) * - 63 + col2 + - + 8 * col1 - + - col1 AS col2 FROM tab1
----
-3215
-5331
-5994

skipif mysql # not compatible
query I rowsort label-9573
SELECT CAST ( col0 AS INTEGER ) * - 63 + col2 + - + 8 * col1 - + - col1 AS col2 FROM tab1
----
-3215
-5331
-5994

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT + ( - - col2 ) NOT IN ( + - col1 + col1, + col0 )
----

query I rowsort
SELECT ALL + + col2 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 80 / + ( + 1 ) = col1 * col0 + + - 7 + - col0 + + col2
----
104
133
69

query I rowsort
SELECT DISTINCT - + 2 + + col0 + - col0 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT ALL - - ( 3 ) + - col2 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
789
894
9607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - col1 + - - col1 * - - ( + 1 ) * col0 * + col0 col1, + 23 + col2 AS col1 FROM tab0 AS cor0
----
158938
33
18191
70
9507
122

query I rowsort
SELECT + col0 * - col0 - - 4 FROM tab0 AS cor0
----
-221
-7565
-9405

query I rowsort
SELECT ALL + - 43 * + col2 * - col2 + - col0 AS col0 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL SUM( col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL SUM ( col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT MAX( DISTINCT col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9583
SELECT MAX ( DISTINCT col0 ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT COUNT( * ) * + + 43 AS col0 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-9584
SELECT COUNT ( * ) * + + 43 AS col0 FROM tab1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9585
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL + 47 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT 22 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN + col2 AND col0
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + + ( - - col1 ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT + - CAST( NULL AS SIGNED ) * col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT + - CAST ( NULL AS INTEGER ) * col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 18 * - col2 + 22 + + - col0 * col0 + col2 * + col0 FROM tab1 AS cor0
----
-1126
-847
4045

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9594
SELECT + col0 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9594
SELECT + col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT + - 43 * col2 FROM tab1 AS cor0
----
-2537
-2924
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - 76 / - SUM( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT - 76 / - SUM ( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL ( 23 ) AS col0 FROM tab2
----
23
23
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 AS col2, - ( col2 ) FROM tab2 WHERE NOT + + 54 IS NOT NULL
----

query II rowsort
SELECT - 90 AS col1, 41 FROM tab1
----
-90
41
-90
41
-90
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9602
SELECT DISTINCT col2 col2, + CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
10
87
47
15
99
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9602
SELECT DISTINCT col2 col2, + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
10
87
47
15
99
97

query II rowsort
SELECT + col2, 76 AS col1 FROM tab1 AS cor0
----
59
76
68
76
96
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN + col1 AND NULL
----

query II rowsort
SELECT + col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT - col2 * + col1 AS col1, - 18 AS col0 FROM tab0 AS cor0
----
-210
-18
-3807
-18
-99
-18

query I rowsort
SELECT + ( - + col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT COUNT( * ) + + - 91 + + + MAX( DISTINCT - + 75 ) AS col0 FROM tab2 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-9609
SELECT COUNT ( * ) + + - 91 + + + MAX ( DISTINCT - + 75 ) AS col0 FROM tab2 AS cor0
----
-163

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 16 + - 0 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 67 >= + ( - 50 ) + - + col2 - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT - - col1 * - col2 * col0 * - col1 * + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1168724480
1308319050
140344758

skipif mysql # not compatible
query I rowsort label-9612
SELECT - - col1 * - col2 * col0 * - col1 * + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1168724480
1308319050
140344758

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> col0 + col1 - + 29 - + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL + + 30 + + COUNT( * ) * - 86 AS col1 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL + + 30 + + COUNT ( * ) * - 86 AS col1 FROM tab2 AS cor0
----
-228

query I rowsort
SELECT ALL + 81 FROM tab2 AS cor0 WHERE 73 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( 89 ) + + + 34 IS NULL
----

query I rowsort
SELECT ALL + + 34 - - 84 AS col0 FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + + + col1 + + col1 AS col2 FROM tab1
----
185
79
95

query II rowsort
SELECT DISTINCT col2, col0 * col1 + + col2 AS col0 FROM tab0
----
10
1837
47
1262
99
196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9620
SELECT ALL * FROM tab0 WHERE NOT - col0 * col2 - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9620
SELECT ALL * FROM tab0 WHERE NOT - col0 * col2 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT + MIN( DISTINCT + - ( + 3 ) ) FROM tab0, tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9621
SELECT + MIN ( DISTINCT + - ( + 3 ) ) FROM tab0, tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 + + 57 col0 FROM tab1
----
86
86
86

query II rowsort
SELECT DISTINCT - 32, + 96 AS col2 FROM tab1
----
-32
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9624
SELECT + CAST( + + 9 AS SIGNED ) DIV 63 + - SUM( ALL col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9624
SELECT + CAST ( + + 9 AS INTEGER ) / 63 + - SUM ( ALL col1 ) FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9625
SELECT + 67 + + col2 * - CAST( - CAST( - - col0 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
4963
5082
6255

skipif mysql # not compatible
query I rowsort label-9625
SELECT + 67 + + col2 * - CAST ( - CAST ( - - col0 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
4963
5082
6255

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT - - 55 * - - CAST( NULL AS SIGNED ) + - col0 * + + col0 - - 72 / - 94 AS col2 FROM tab2 AS cor0 WHERE col0 >= - + col1 / + - 82
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT - - 55 * - - CAST ( NULL AS INTEGER ) + - col0 * + + col0 - - 72 / - 94 AS col2 FROM tab2 AS cor0 WHERE col0 >= - + col1 / + - 82
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT ALL + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT - MAX( + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9629
SELECT - MAX ( + col2 ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 35 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT MIN( DISTINCT - + 18 ) FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT MIN ( DISTINCT - + 18 ) FROM tab0 cor0
----
-18

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + col1 * - - col0 * + - col1 col0 FROM tab2
----
46
-119646
64
-379456
75
-336675

query I rowsort
SELECT - + 8 AS col1 FROM tab2 WHERE NOT - col0 * + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT - MAX( DISTINCT - - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9635
SELECT - MAX ( DISTINCT - - col0 ) AS col0 FROM tab1
----
-91

query I rowsort
SELECT 66 * - 81 * + col2 AS col0 FROM tab2
----
-122958
-213840
-310068

query II rowsort
SELECT ALL 83 AS col1, 1 * - col1 FROM tab0
----
83
-1
83
-21
83
-81

query I rowsort
SELECT ALL - col2 + 96 + 29 AS col0 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
29
57
66

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * col0 + + ( + + col1 ) - col2 <> col1 / + col0 + + 10
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 >= NULL
----

query I rowsort
SELECT + 35 + + col0 * col0 FROM tab2 AS cor0
----
2151
4131
5660

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT + + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9642
SELECT + + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9643
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT ALL col0 + col0 - - + 60 AS col1 FROM tab1
----
162
230
242

query I rowsort
SELECT DISTINCT - + 86 AS col2 FROM tab2 cor0
----
-86

query I rowsort
SELECT ALL ( 19 ) - col0 FROM tab2 AS cor0
----
-27
-45
-56

query I rowsort
SELECT col2 + - 47 + - + 92 * - + col0 * col1 FROM tab2 AS cor0
----
215808
453369
462311

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT DISTINCT + COUNT( * ) * + 75 + + ( SUM( ALL + + col0 ) ) AS col2 FROM tab0 AS cor0
----
424

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT + COUNT ( * ) * + 75 + + ( SUM ( ALL + + col0 ) ) AS col2 FROM tab0 AS cor0
----
424

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - col2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col1 - - - col2 * + 33 - + 62 * - col2 FROM tab1
----
1716
2019
2798

query I rowsort
SELECT ALL - col2 * + + 23 AS col0 FROM tab2
----
-1334
-529
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE - col2 + - 95 - - col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE - col2 + - 95 - - col2 > NULL
----
0

query I rowsort
SELECT DISTINCT + 62 - - - ( + 54 ) FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL + 12 * - - SUM( col2 ) AS col0 FROM tab2
----
1452

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + 12 * - - SUM ( col2 ) AS col0 FROM tab2
----
1452

query I rowsort
SELECT ALL - - col1 - - + 90 FROM tab2 AS cor0
----
141
157
167

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT - col2 AS col2 FROM tab0 WHERE NOT NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9657
SELECT - col2 AS col2 FROM tab0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - ( 38 ) FROM tab1
----
-38
-38
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9659
SELECT - COUNT( * ) FROM tab0 WHERE NOT + col0 * + CAST( NULL AS DECIMAL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9659
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + col0 * + CAST ( NULL AS REAL ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT COUNT( * ) * - + 89 + - 25 col2 FROM tab2 cor0
----
-292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9660
SELECT DISTINCT COUNT ( * ) * - + 89 + - 25 col2 FROM tab2 cor0
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - COUNT( + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9661
SELECT - COUNT ( + col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col1 * + - 3 FROM tab2 AS cor0
----
-153
-201
-231

query II rowsort
SELECT DISTINCT - 34 AS col2, 98 FROM tab1 AS cor0
----
-34
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9664
SELECT DISTINCT + - COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT + - COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1

query II rowsort
SELECT DISTINCT col2, - 84 FROM tab1 AS cor0
----
59
-84
68
-84
96
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 81 + - col1 + - + 81 col1 FROM tab0 AS cor0
----
3645
708
7937

query I rowsort
SELECT - 0 AS col2 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT ALL ( col1 ), col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL 45 FROM tab1 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - + col1 AND + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 13 + col0 AS col1 FROM tab1 AS cor0
----
104
64
98

query I rowsort
SELECT ALL 3 AS col0 FROM tab0 AS cor0
----
3
3
3

query II rowsort
SELECT - + 60 AS col0, 0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to b1e5ea7ab6bab6f685fce65ad17ed3b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9675
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 BETWEEN NULL AND + + 77 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 89, col1 col0 FROM tab2 AS cor0
----
-89
51
-89
67
-89
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - MIN( ALL + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9678
SELECT - MIN ( ALL + col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - - 69 + col0 + + 21 AS col1 FROM tab0 AS cor0
----
105
177
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 93 ) col1 FROM tab0 cor0 WHERE NULL IS NULL
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT ALL COUNT( * ) - - CAST( - ( 85 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL COUNT ( * ) - - CAST ( - ( 85 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9682
SELECT DISTINCT + 80 + - col0 - col1 DIV col2 FROM tab2 AS cor0
----
15
32
4

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT + 80 + - col0 - col1 / col2 FROM tab2 AS cor0
----
15
32
4

query I rowsort
SELECT + 39 - + col2 FROM tab0 AS cor0
----
-60
-8
29

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT DISTINCT col1 * - col1 * + CAST( + ( + 80 ) AS SIGNED ) AS col1 FROM tab2
----
-208080
-359120
-474320

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT col1 * - col1 * + CAST ( + ( + 80 ) AS INTEGER ) AS col1 FROM tab2
----
-208080
-359120
-474320

query I rowsort
SELECT ALL ( col0 ) * col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - col1 * - - 89 FROM tab1
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT DISTINCT + MIN( - + 9 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT + MIN ( - + 9 ) FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - col1 )
----

query I rowsort
SELECT ALL + col0 * - 21 AS col2 FROM tab0
----
-1827
-2037
-315

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT - - 89 * + 69 + COUNT( * ) FROM tab1 AS cor0
----
6144

skipif mysql # not compatible
query I rowsort label-9692
SELECT - - 89 * + 69 + COUNT ( * ) FROM tab1 AS cor0
----
6144

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT ALL - + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL - + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 33 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT DISTINCT - + CAST( 63 AS SIGNED ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT - + CAST ( 63 AS INTEGER ) FROM tab2 AS cor0
----
-63

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT ALL - + 42 DIV - 36 + - col0 + + 19 * - 50 - - col2 FROM tab1 AS cor0
----
-904
-972
-975

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL - + 42 / - 36 + - col0 + + 19 * - 50 - - col2 FROM tab1 AS cor0
----
-904
-972
-975

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT ALL + 74 AS col1, - COUNT( * ) FROM tab2
----
74
-3

skipif mysql # not compatible
query II rowsort label-9699
SELECT ALL + 74 AS col1, - COUNT ( * ) FROM tab2
----
74
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT 7 + - - COUNT( * ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9700
SELECT 7 + - - COUNT ( * ) AS col2 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9701
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT DISTINCT - COUNT( ALL col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT - COUNT ( ALL col0 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col1 + + - 81 FROM tab1 cor0
----
-34
-67
-76

query I rowsort
SELECT ALL + + 32 + + 35 FROM tab1 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col1 * - - col0 AS col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query II rowsort label-9707
SELECT 1 - - + 50 + + + COUNT( - + col1 ) AS col0, - 72 FROM tab2
----
54
-72

skipif mysql # not compatible
query II rowsort label-9707
SELECT 1 - - + 50 + + + COUNT ( - + col1 ) AS col0, - 72 FROM tab2
----
54
-72

query I rowsort
SELECT - col0 - - col1 * col2 FROM tab0
----
123
2
3792

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE - col1 + - col0 IS NULL
----

query I rowsort
SELECT 47 + - 89 FROM tab2 cor0
----
-42
-42
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 = + + 79
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 69 ) = - 94
----

query I rowsort
SELECT 62 * col0 * - ( - + col0 ) FROM tab2 AS cor0
----
131192
253952
348750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9714
SELECT COUNT( - CAST( 24 AS SIGNED ) ) AS col0, COUNT( - col1 ) col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9714
SELECT COUNT ( - CAST ( 24 AS INTEGER ) ) AS col0, COUNT ( - col1 ) col1 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL MAX( ALL - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL MAX ( ALL - + col0 ) FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT ALL CAST( 62 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL CAST ( 62 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query III rowsort
SELECT * FROM tab2 WHERE NOT 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT DISTINCT - COUNT( DISTINCT col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT - COUNT ( DISTINCT col2 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 75 IS NOT NULL
----

query I rowsort
SELECT + - 52 AS col0 FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT AVG ( ALL - col0 ) * + - ( - - CAST( NULL AS SIGNED ) ) * + 56 + + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT AVG ( ALL - col0 ) * + - ( - - CAST ( NULL AS INTEGER ) ) * + 56 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <= - col0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9725
SELECT ALL col0 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL col0 * + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 75, col1 FROM tab2
----
75
51
75
67
75
77

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT COUNT( * ) * - 93 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-279

skipif mysql # not compatible
query I rowsort label-9728
SELECT COUNT ( * ) * - 93 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-279

query I rowsort
SELECT - 90 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 + + 71 ) IS NULL
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT + - 3 + + MAX( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9730
SELECT + - 3 + + MAX ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
88

query I rowsort
SELECT ALL - + 60 + col1 + + 12 + + col0 * - 88 * + + col2 FROM tab0 AS cor0
----
-62007
-76587
-845111

query I rowsort
SELECT DISTINCT + + 60 * ( + 85 ) FROM tab2 AS cor0
----
5100

query I rowsort
SELECT - 33 * + 34 * + col2 * + col1 + + - col1 + + col0 FROM tab2 AS cor0
----
-1316111
-3455773
-4360084

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9734
SELECT DISTINCT + col2 * - + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT + col2 * - + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + COUNT( ( - col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9735
SELECT + COUNT ( ( - col2 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 * + 96 + + ( + col2 ) AS col0 FROM tab2 cor0
----
4439
6184
7258

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab2 AS cor0 WHERE col0 < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9738
SELECT DISTINCT - col1 * col0 * + - CAST( NULL AS SIGNED ) / + col1 * + col0 * + 95 / col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT - col1 * col0 * + - CAST ( NULL AS INTEGER ) / + col1 * + col0 * + 95 / col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 79 * 6 FROM tab0
----
474

query I rowsort
SELECT DISTINCT - col1 * + 75 AS col0 FROM tab0
----
-1575
-6075
-75

query I rowsort
SELECT ALL + + 38 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9742
SELECT ALL COUNT( * ) DIV - 19 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL COUNT ( * ) / - 19 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL ( + - COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL ( + - COUNT ( * ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + 98 + - - 98 FROM tab0 cor0
----
196

query I rowsort
SELECT - col0 + + - 77 AS col1 FROM tab0 AS cor0
----
-164
-174
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9746
SELECT col0 + col0 AS col2, + col1 + - CAST( NULL AS DECIMAL ) + + - col2 col1 FROM tab0 cor0
----
174
NULL
194
NULL
30
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9746
SELECT col0 + col0 AS col2, + col1 + - CAST ( NULL AS REAL ) + + - col2 col1 FROM tab0 cor0
----
174
NULL
194
NULL
30
NULL

query I rowsort
SELECT - col0 + + 86 FROM tab2 cor0
----
11
22
40

query I rowsort
SELECT ALL + 95 + + 48 AS col0 FROM tab0 cor0
----
143
143
143

query II rowsort
SELECT + 76, + col2 FROM tab1
----
76
59
76
68
76
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT + 76 / - - MIN( + + col0 ) col0 FROM tab1 WHERE NOT NULL > + col0 + + + 11
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9750
SELECT DISTINCT + 76 / - - MIN ( + + col0 ) col0 FROM tab1 WHERE NOT NULL > + col0 + + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - COUNT( - 89 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9751
SELECT - COUNT ( - 89 ) FROM tab1
----
-3

query I rowsort
SELECT - col2 * + + 76 AS col0 FROM tab1 AS cor0
----
-4484
-5168
-7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col0 FROM tab1 cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9754
SELECT + col2 - ( col0 ) + + CAST( - col0 AS SIGNED ) + + + col2 AS col0, col0 AS col1 FROM tab1 AS cor0
----
-46
91
-52
85
90
51

skipif mysql # not compatible
query II rowsort label-9754
SELECT + col2 - ( col0 ) + + CAST ( - col0 AS INTEGER ) + + + col2 AS col0, col0 AS col1 FROM tab1 AS cor0
----
-46
91
-52
85
90
51

query I rowsort
SELECT DISTINCT - - ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - - col0 ) <> 26
----

query I rowsort
SELECT DISTINCT 0 * + - col2 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 55 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9759
SELECT ALL - + col0 col2, ( - + 39 ) * ( - CAST( NULL AS SIGNED ) ) * - + col2 AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9759
SELECT ALL - + col0 col2, ( - + 39 ) * ( - CAST ( NULL AS INTEGER ) ) * - + col2 AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 53 IN ( + 45 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT - col1 * ( - col0 ) IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 col2 FROM tab1
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT - SUM( ALL - 42 ) AS col2 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-9764
SELECT - SUM ( ALL - 42 ) AS col2 FROM tab0
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT - - SUM( 20 ) * - - 62 / + - 96 * + + AVG ( + col1 ) - + 53 AS col2, - COUNT( * ) FROM tab2 cor0 WHERE NOT col2 <> NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9765
SELECT - - SUM ( 20 ) * - - 62 / + - 96 * + + AVG ( + col1 ) - + 53 AS col2, - COUNT ( * ) FROM tab2 cor0 WHERE NOT col2 <> NULL
----
NULL
0

query I rowsort
SELECT ALL 45 * - - 36 AS col2 FROM tab1
----
1620
1620
1620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + 65 AS col1, + col0 * + 78 col1, - 17 AS col2 FROM tab2
----
9 values hashing to 70236533b256fe2d75f86226ba43e3e6

query I rowsort
SELECT - ( - ( 12 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT + COUNT( + - ( + col0 ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9769
SELECT + COUNT ( + - ( + col0 ) ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + - 42 + - col1 FROM tab0 cor0
----
-123
-43
-63

query I rowsort
SELECT - - col1 + 21 + + col1 FROM tab2 cor0
----
123
155
175

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT - MIN( - + 82 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT - MIN ( - + 82 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 82 * - col1 * - col1 + + + 98 AS col0 FROM tab1
----
16170
181236
2148

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL BETWEEN col2 AND NULL )
----

query I rowsort
SELECT + 85 + col1 FROM tab1
----
132
90
99

query I rowsort
SELECT 79 + ( + col1 ) AS col2 FROM tab0
----
100
160
80

query I rowsort
SELECT col1 * + - 85 FROM tab0
----
-1785
-6885
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT DISTINCT - - CAST( + + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT - - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, - 67 FROM tab0 AS cor0
----
10
-67
47
-67
99
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 85
----

query II rowsort
SELECT col2 - 39 AS col2, + 57 + col0 AS col0 FROM tab2
----
-16
103
1
121
19
132

query I rowsort
SELECT - col2 + - + col1 + - 88 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + - 12 AS col2 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT col0 * - + CAST( NULL AS SIGNED ) - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT col0 * - + CAST ( NULL AS INTEGER ) - col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT + - COUNT( DISTINCT - col0 ) * + - COUNT( * ) * - MIN( ALL + 61 ) FROM tab2 AS cor0
----
-549

skipif mysql # not compatible
query I rowsort label-9786
SELECT + - COUNT ( DISTINCT - col0 ) * + - COUNT ( * ) * - MIN ( ALL + 61 ) FROM tab2 AS cor0
----
-549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT + - ( + CAST( + + col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9787
SELECT + - ( + CAST ( + + col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT ALL - ( + 5 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - ( + 5 ) / - COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - ( - 0 ) FROM tab1 cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9791
SELECT DISTINCT MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT - MIN( - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - MIN ( - col0 ) FROM tab0 AS cor0
----
97

query II rowsort
SELECT - col0, - col0 AS col1 FROM tab0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9794
SELECT DISTINCT - 88, SUM( DISTINCT col0 ) + 34 AS col2 FROM tab1
----
-88
261

skipif mysql # not compatible
query II rowsort label-9794
SELECT DISTINCT - 88, SUM ( DISTINCT col0 ) + 34 AS col2 FROM tab1
----
-88
261

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT - SUM( - - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9795
SELECT - SUM ( - - col1 ) FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col0, col1 AS col2 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL + ( + 45 ) FROM tab2
----
45
45
45

query I rowsort
SELECT DISTINCT + 34 FROM tab1 WHERE NULL IS NULL
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 90 * - col2 AS col1 FROM tab2
----
2070
3600
5220

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9802
SELECT ALL CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9802
SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT - MAX( - 33 ) AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9804
SELECT - MAX ( - 33 ) AS col0 FROM tab0 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT - + col2 * + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9805
SELECT - + col2 * + col0 / - col0 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE col1 * - col2 <> col1
----
3

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE col1 * - col2 <> col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT + col1 / ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT + col1 / ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 * ( + 70 ) * col1 * col1 + + + col1 AS col1, - col0 FROM tab1 AS cor0
----
14071377
-91
148755
-85
699734
-51

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9810
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 3 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9812
SELECT ALL CAST( + 31 AS SIGNED ) + - col0 * + col1 col0 FROM tab1
----
-394
-4246
-683

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9812
SELECT ALL CAST ( + 31 AS INTEGER ) + - col0 * + col1 col0 FROM tab1
----
-394
-4246
-683

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 7 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL + COUNT( * ) * - 87 + + COUNT( * ) FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL + COUNT ( * ) * - 87 + + COUNT ( * ) FROM tab0 AS cor0
----
-258

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT MIN( col2 ) - + 53 AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9816
SELECT MIN ( col2 ) - + 53 AS col2 FROM tab1
----
6

query I rowsort
SELECT ALL ( - 83 ) * + col1 + - col2 FROM tab2
----
-4256
-5619
-6431

query I rowsort
SELECT DISTINCT col1 * 88 AS col2 FROM tab2
----
4488
5896
6776

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( ( col1 IS NULL ) )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 72 col2 FROM tab0 AS cor0
----
119
171
82

query I rowsort
SELECT DISTINCT + col1 + + 65 AS col0 FROM tab2 AS cor0
----
116
132
142

query I rowsort
SELECT DISTINCT col1 + ( + col1 ) AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT ALL + 85 + + col1 FROM tab1
----
132
90
99

query I rowsort
SELECT DISTINCT + 47 * + 15 AS col2 FROM tab2
----
705

query I rowsort
SELECT - 70 * + col2 FROM tab1 cor0
----
-4130
-4760
-6720

query I rowsort
SELECT DISTINCT + col2 * 84 + - + col1 AS col1 FROM tab0 AS cor0
----
3867
819
8315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9827
SELECT + - ( - COUNT( * ) ) * CAST( NULL AS SIGNED ) * MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT + - ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) * MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 12 * col2 * - + col0 FROM tab2 AS cor0
----
-12696
-30720
-52200

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 16 + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - - col2 + + 85 + + col0 IS NOT NULL
----

query I rowsort
SELECT - + 86 * - 65 FROM tab1 AS cor0
----
5590
5590
5590

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT DISTINCT - COUNT( - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT - COUNT ( - col0 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + col2 * 78 - col1 * - - col1 + - 96 )
----

query I rowsort
SELECT DISTINCT ( - 29 ) * - col1 FROM tab0
----
2349
29
609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - - col2 col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9836
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * + col2 * - 43 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * + col2 * - 43 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT ALL 34 DIV - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL 34 / - col1 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * - + 37 * - col1 + col0 col2 FROM tab2 cor0
----
50995
67008
76987

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9839
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 < + CAST( ( + col0 ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9839
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 < + CAST ( ( + col0 ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col2 = + + col1 * 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9841
SELECT CAST( - + 20 AS SIGNED ) FROM tab0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-9841
SELECT CAST ( - + 20 AS INTEGER ) FROM tab0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT + + col2 + ( - + col0 ) AS col1 FROM tab2 cor0
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 45 - - col2 + + + col2 col0 FROM tab1 AS cor0
----
158
182
198

query I rowsort
SELECT ALL - - 43 AS col2 FROM tab2 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT DISTINCT - ( ( + + 37 ) ) / + - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT - ( ( + + 37 ) ) / + - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT - + CAST( + 67 AS SIGNED ) col1 FROM tab2 cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9847
SELECT - + CAST ( + 67 AS INTEGER ) col1 FROM tab2 cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - + ( ( col1 ) ) col2, col0 AS col0 FROM tab2
----
-141
64
-142
75
-97
46

query I rowsort
SELECT 38 + - col1 FROM tab1
----
-9
24
33

query I rowsort
SELECT - + 59 AS col2 FROM tab2 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + + 46 AS col0 FROM tab2
----
2116
2944
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL 26 * + - COUNT( * ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL 26 * + - COUNT ( * ) FROM tab1
----
-78

query I rowsort
SELECT ALL + col1 * + col1 + - col2 FROM tab0 AS cor0
----
-98
431
6514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 13 * + 89 * + - 40 + + col2 * + 62 AS col0 FROM tab0 AS cor0
----
46900
49194
52418

query I rowsort
SELECT ( - - ( - col2 ) ) * - 71 FROM tab2 AS cor0
----
1633
2840
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ( - MIN( col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9858
SELECT ( - MIN ( col1 ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT + SUM( + 26 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
234

skipif mysql # not compatible
query I rowsort label-9859
SELECT + SUM ( + 26 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
234

query II rowsort
SELECT ALL - col1 * + ( + + col1 ) AS col2, 29 * + 79 * + 5 FROM tab1
----
-196
11455
-2209
11455
-25
11455

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT MIN( DISTINCT + + 87 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-9861
SELECT MIN ( DISTINCT + + 87 ) FROM tab2
----
87

query I rowsort
SELECT DISTINCT col0 * 28 AS col1 FROM tab0
----
2436
2716
420

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT DISTINCT - SUM( DISTINCT + 36 ) * - 27 AS col2 FROM tab1
----
972

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT - SUM ( DISTINCT + 36 ) * - 27 AS col2 FROM tab1
----
972

query I rowsort
SELECT - 62 + + 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9865
SELECT DISTINCT - COUNT( * ) / + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9865
SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT 84 * 8 AS col1 FROM tab1 AS cor0
----
672
672
672

query I rowsort
SELECT + 49 * 36 FROM tab1 AS cor0
----
1764
1764
1764

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND - - col0
----

query I rowsort
SELECT + ( + 63 ) * ( - + 21 ) FROM tab2 cor0
----
-1323
-1323
-1323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 74 col1 FROM tab1 AS cor0
----
1036
3478
370

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + + 29 * - 40 + + col1 * - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL COUNT( DISTINCT + 77 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL COUNT ( DISTINCT + 77 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - - 9 * - col0 AS col1 FROM tab2 AS cor0
----
-414
-576
-675

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9875
SELECT - COUNT( * ) DIV + 1 AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9875
SELECT - COUNT ( * ) / + 1 AS col0 FROM tab1 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT - col1 * + + ( + col1 ) - 63 + + + 99 + 29 DIV col1 AS col0 FROM tab1 AS cor0
----
-158
-2173
16

skipif mysql # not compatible
query I rowsort label-9876
SELECT - col1 * + + ( + col1 ) - 63 + + + 99 + 29 / col1 AS col0 FROM tab1 AS cor0
----
-158
-2173
16

query I rowsort
SELECT - col1 * - 49 FROM tab0 AS cor0
----
1029
3969
49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 65 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 AS col0, + ( + + 69 ) FROM tab0 AS cor0
----
10
69
47
69
99
69

query II rowsort
SELECT + + 86 AS col1, + 25 AS col2 FROM tab2 AS cor0
----
86
25
86
25
86
25

query I rowsort
SELECT ALL + col1 * col0 * 80 + col0 + + col1 * col1 + - + col0 FROM tab1 AS cor0
----
34025
344369
57316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 + + - col1 col0 FROM tab0 AS cor0
----
-16
44
64

query I rowsort
SELECT DISTINCT col2 + col1 - + 74 + + col0 * col2 FROM tab2 AS cor0
----
1058
2603
4401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - + 13 ) col1, + ( - col2 ) AS col2 FROM tab1
----
-13
-59
-13
-68
-13
-96

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE col1 * - col2 * col0 + + 37 < + 37 - + 63
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - SUM( 1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9886
SELECT - SUM ( 1 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 - + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT - - 5 + - COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT - - 5 + - COUNT ( * ) FROM tab2 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT col0 DIV + ( col1 ) AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-9889
SELECT col0 / + ( col1 ) AS col1 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT + - 60 AS col0 FROM tab0 AS cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT - col0 - + - col1 FROM tab0 AS cor0 WHERE col0 > - col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9891
SELECT - col0 - + - col1 FROM tab0 AS cor0 WHERE col0 > - col2 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT col1 - + 8 + + col2 + col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT col1 - + 8 + + col2 + col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT + - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT + - col1 <> NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + 45 - + 77 * col2 FROM tab1
----
-4439
-5123
-7251

query I rowsort
SELECT col2 + + + 21 AS col0 FROM tab1
----
117
80
89

query III rowsort
SELECT * FROM tab0 WHERE ( 16 IS NULL )
----

query I rowsort
SELECT - 21 + + col0 AS col1 FROM tab0
----
-6
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT col1 * + col0 + col1 * + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT col1 * + col0 + col1 * + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT - SUM( DISTINCT 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - SUM ( DISTINCT 46 ) FROM tab2
----
-46

query I rowsort
SELECT - ( - + col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT 81 * + 58 FROM tab0 AS cor0
----
4698
4698
4698

query II rowsort
SELECT DISTINCT + col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT COUNT( col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9904
SELECT COUNT ( col1 ) col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE - col0 >= + col0
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( + col1 * - col2 + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 - col1 * - col0 FROM tab0
----
1134
1806
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL + COUNT( * ) + + ( - COUNT( * ) + + 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL + COUNT ( * ) + + ( - COUNT ( * ) + + 45 ) FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT DISTINCT + MIN( ALL col1 ) - - 51 AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT + MIN ( ALL col1 ) - - 51 AS col1 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT SUM( ALL col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9910
SELECT SUM ( ALL col1 ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE ( col0 + - col1 * + col2 ) IS NULL
----

query I rowsort
SELECT + col2 + col2 / col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 21 + 64 * - 50 AS col0 FROM tab2 WHERE NOT + 83 * col1 BETWEEN - col2 AND col0
----
-3179

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT 83 * - 23 + - COUNT( DISTINCT + 31 ) FROM tab2
----
-1910

skipif mysql # not compatible
query I rowsort label-9915
SELECT 83 * - 23 + - COUNT ( DISTINCT + 31 ) FROM tab2
----
-1910

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT MAX( DISTINCT col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + 94 FROM tab2 WHERE NOT ( col1 ) >= 24
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT ( - col2 ) <= - col0 / + ( col1 / col1 )
----
47
5

query I rowsort
SELECT - col0 * 52 AS col0 FROM tab0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT - 77 * + SUM( + 16 ) FROM tab2
----
-3696

skipif mysql # not compatible
query I rowsort label-9921
SELECT - 77 * + SUM ( + 16 ) FROM tab2
----
-3696

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9922
SELECT + col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT + col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + 56 FROM tab1
----
42
51
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT COUNT( * ) col1 FROM tab0 AS cor0 WHERE 65 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9924
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE 65 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 = + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 43 * - col1 + - 72 ) > 95 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT DISTINCT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND + 86
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + 96 < col1
----

query I rowsort
SELECT DISTINCT col1 + - 40 AS col1 FROM tab0 cor0
----
-19
-39
41

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 42 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE ( NULL ) IS NULL
----
46
64
75

query I rowsort
SELECT - ( + col2 ) FROM tab2 cor0 WHERE - 15 * 21 > col1
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 + 85 * + col0 ) < NULL
----

query I rowsort
SELECT ALL + 71 * + col0 + col1 FROM tab0 AS cor0
----
1146
6198
6888

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 36 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 63 * - col0 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL + COUNT( * ) + MAX( DISTINCT + 88 ) AS col0 FROM tab0 cor0
----
91

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL + COUNT ( * ) + MAX ( DISTINCT + 88 ) AS col0 FROM tab0 cor0
----
91

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE col0 - + col0 * - col1 NOT BETWEEN - 57 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9941
SELECT DISTINCT col2 DIV col0 + - col2 FROM tab0 cor0
----
-10
-44
-98

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT col2 / col0 + - col2 FROM tab0 cor0
----
-10
-44
-98

query I rowsort
SELECT ALL 67 + - 73 AS col2 FROM tab2 AS cor0 WHERE ( - col0 / 60 - col1 * 53 ) <> NULL
----

query I rowsort
SELECT 62 FROM tab0 AS cor0 WHERE 86 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + + 68 AS col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + + 68 AS col1 FROM tab2 AS cor0
----
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> ( - col1 * - 29 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( col2 * 74 + + col1 )
----
-10
-47
-99

query I rowsort
SELECT ALL col2 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
3566
4715
9267

query I rowsort
SELECT 3 + col1 * + col2 FROM tab0 AS cor0
----
102
213
3810

query I rowsort
SELECT 93 + - col2 * + col2 AS col0 FROM tab1 AS cor0 WHERE - col1 + 19 BETWEEN NULL AND ( + 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT ALL - col1 DIV 1 + 45 AS col2 FROM tab2 AS cor0
----
-22
-32
-6

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL - col1 / 1 + 45 AS col2 FROM tab2 AS cor0
----
-22
-32
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9951
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9951
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL COUNT( * ) - + - 1 AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL COUNT ( * ) - + - 1 AS col0 FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9953
SELECT * FROM tab1 WHERE 27 IS NOT NULL OR ( CAST( NULL AS SIGNED ) - - col0 * + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9953
SELECT * FROM tab1 WHERE 27 IS NOT NULL OR ( CAST ( NULL AS INTEGER ) - - col0 * + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL + COUNT( * ) - + 28 col0 FROM tab0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9954
SELECT ALL + COUNT ( * ) - + 28 col0 FROM tab0
----
-25

query I rowsort
SELECT DISTINCT col2 - col1 FROM tab2 WHERE ( - col2 ) IS NOT NULL
----
-28
-37
-9

query I rowsort
SELECT + col0 * + - col2 AS col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9957
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL ) AND NOT - 47 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9957
SELECT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL ) AND NOT - 47 + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= col1 * 66
----

query I rowsort
SELECT ALL 38 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT + 52 DIV - - col1 AS col2 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 52 / - - col1 AS col2 FROM tab1 AS cor0
----
1
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT - SUM( - - 1 ) + - 24 AS col2 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9961
SELECT - SUM ( - - 1 ) + - 24 AS col2 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE col2 >= col2
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT COUNT( ALL + col0 ) + - SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-9963
SELECT COUNT ( ALL + col0 ) + - SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT - COUNT( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT - COUNT ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - col0 IS NULL
----
-3

query I rowsort
SELECT - + ( + 2 ) FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - 94 * col2 - col0 AS col1 FROM tab0 AS cor0
----
-1027
-4433
-9403

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 51 ) IN ( + col0 * + 88 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT SUM( ALL col0 ) AS col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9969
SELECT SUM ( ALL col0 ) AS col0 FROM tab0 cor0
----
199

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - 0 * col2 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT ( ( + col1 ) ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT 24 * + col1 * + 66 * - + 38 FROM tab2
----
-3069792
-4032864
-4634784

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 17 + + 21 NOT BETWEEN ( + col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL MIN( + col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9974
SELECT ALL MIN ( + col0 ) col2 FROM tab1
----
51

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT - + 91 BETWEEN ( col2 ) AND ( col1 )
----
15
87
97

query I rowsort
SELECT - + 52 + 83 FROM tab0 WHERE col2 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN col0 AND + 98 - col2
----

query I rowsort
SELECT + + col2 + + col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT ALL - col2 * + col1 + - ( col1 ) FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT - + col0 + - - ( col1 ) AS col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN ( + - CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9981
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN ( + - CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT col1 * + - col1 + + col2 FROM tab0 AS cor0
----
-431
-6514
98

query I rowsort
SELECT + col0 FROM tab2 WHERE - ( - - 39 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + col0 * + col2 AS col0 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT + 62 AS col2 FROM tab1 cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT + + SUM( ALL + - ( + col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9986
SELECT + + SUM ( ALL + - ( + col1 ) ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT - MIN( 36 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9987
SELECT - MIN ( 36 ) FROM tab1 AS cor0
----
-36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col2 ) + - col0 <= ( NULL )
----

query I rowsort
SELECT + + 36 - col1 AS col2 FROM tab0 cor0
----
-45
15
35

query I rowsort
SELECT + - col2 - + + ( - col2 ) AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - col2 ) + - col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 IS NOT NULL AND + 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT + COUNT( * ) - - - 41 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9993
SELECT + COUNT ( * ) - - - 41 FROM tab0 AS cor0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT DISTINCT 97 DIV - 3 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT 97 / - 3 FROM tab2
----
-32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = ( col2 )
----

query I rowsort
SELECT col0 * + ( col1 ) AS col2 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT ALL + 73, - col2 AS col1 FROM tab0
----
73
-10
73
-47
73
-99

query II rowsort
SELECT - col0 AS col0, - col2 + - 1 + 82 FROM tab0
----
-15
34
-87
71
-97
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT MIN( col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9999
SELECT MIN ( col0 ) AS col0 FROM tab0
----
15

