sqllogictest
Artifact Content
Not logged in

Artifact a39c7604d6758b286a2fdbbc49fde728f957a0db:


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 # CAST syntax: SIGNED type: 
query I rowsort label-0
SELECT + 3 + 71 + CAST( col1 AS SIGNED ) * + col0 FROM tab2
----
2420
5002
5099

skipif mysql # not compatible
query I rowsort label-0
SELECT + 3 + 71 + CAST ( col1 AS INTEGER ) * + col0 FROM tab2
----
2420
5002
5099

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

query III rowsort
SELECT * FROM tab2 WHERE - - 99 + + col2 NOT BETWEEN 65 AND - 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT DISTINCT MAX( ALL - col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT MAX ( ALL - col2 ) FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT + col1 + - + 81 * col2 * - ( col1 * col0 ) FROM tab2 AS cor0
----
15966797
23607517
4370649

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6
SELECT DISTINCT + CAST( - col2 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - + 24 + + 6 * 58 )
----

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT + CAST ( - col2 AS REAL ) FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - + 24 + + 6 * 58 )
----

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

query I rowsort
SELECT + + col1 - col0 + col0 * col1 AS col2 FROM tab0 cor0
----
1
1281
1761

query I rowsort
SELECT + col2 * col1 FROM tab2 cor0 WHERE NULL IS NULL
----
1173
3080
3886

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col2 - col2 + + ( 51 ) AS col1 FROM tab1 AS cor0
----
-141
-67
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT - MAX( DISTINCT + ( - col2 ) ) * - 23 FROM tab0 WHERE NOT col0 - + col1 * + 18 IS NULL
----
-230

skipif mysql # not compatible
query I rowsort label-15
SELECT - MAX ( DISTINCT + ( - col2 ) ) * - 23 FROM tab0 WHERE NOT col0 - + col1 * + 18 IS NULL
----
-230

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

skipif mysql # not compatible
query I rowsort label-16
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - col0 <> NULL
----
0

query I rowsort
SELECT ( + + 68 ) FROM tab1
----
68
68
68

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

query I rowsort
SELECT col1 * + ( + 34 ) AS col1 FROM tab0 AS cor0
----
2754
34
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-20
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * - 81 + - 29 * col1 AS col1 FROM tab2 AS cor0
----
1007
2755
384

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * - 81 + - 29 * col1 AS col1 FROM tab2 AS cor0
----
1007
2755
384

query I rowsort
SELECT ALL col1 * - col2 * - + 41 FROM tab0
----
156087
4059
8610

onlyif mysql # DIV for integer division: 
query I rowsort label-22
SELECT + + col0 DIV 71 col2 FROM tab0 cor0
----
0
1
1

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

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

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE + col2 >= - col0
----
14
47
5

query I rowsort
SELECT ALL + - 94 FROM tab0 AS cor0 WHERE NOT col1 = + 32
----
-94
-94
-94

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-27
SELECT - 91 AS col2, 32 + - col0 + col0 + + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
-91
NULL
-91
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-27
SELECT - 91 AS col2, 32 + - col0 + col0 + + CAST ( NULL AS REAL ) FROM tab1 cor0
----
-91
NULL
-91
NULL
-91
NULL

query I rowsort
SELECT ALL + 44 + - 1 FROM tab2
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - 53 * + - 23 <> - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT + COUNT( * ) + 12 * - COUNT( * ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-30
SELECT + COUNT ( * ) + 12 * - COUNT ( * ) FROM tab1
----
-33

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

query III rowsort
SELECT * FROM tab1 WHERE + - col0 >= + col2 * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-33
SELECT ALL MAX( col0 ), + 25 AS col1 FROM tab0
----
97
25

skipif mysql # not compatible
query II rowsort label-33
SELECT ALL MAX ( col0 ), + 25 AS col1 FROM tab0
----
97
25

query I rowsort
SELECT - 31 * + col0 * - 99 + - + 36 * + col1 AS col2 FROM tab0
----
266247
297657
43119

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

query I rowsort
SELECT ALL 47 + 82 AS col1 FROM tab0
----
129
129
129

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 <> + - col2 * + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL + 83 + + COUNT( * ) - COUNT( * ) * + 23 AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + 83 + + COUNT ( * ) - COUNT ( * ) * + 23 AS col1 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT - MIN( 4 ) col2 FROM tab1 cor0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-40
SELECT - MIN ( 4 ) col2 FROM tab1 cor0
----
-4

query I rowsort
SELECT 42 + + col0 AS col0 FROM tab2
----
106
117
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - 84 col1 FROM tab0
----
171
181
99

query I rowsort
SELECT + 16 * 25 + 4 AS col2 FROM tab2 AS cor0
----
404
404
404

query I rowsort
SELECT col1 + 98 AS col2 FROM tab0 AS cor0
----
119
179
99

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

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

skipif mysql # not compatible
query I rowsort label-46
SELECT - ( COUNT ( * ) ) + + SUM ( ALL col1 ) AS col2 FROM tab2 cor0
----
192

query I rowsort
SELECT - + col1 * + + ( + - 58 ) FROM tab2 AS cor0
----
2958
3886
4466

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 cor0 WHERE NOT col0 < col2
----
51
67
77

query I rowsort
SELECT + 2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
2
2
2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL MAX( ALL 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL MAX ( ALL 15 ) FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, 30 col0 FROM tab0
----
1
30
21
30
81
30

query I rowsort
SELECT - 18 + + col2 FROM tab1 WHERE NOT NULL BETWEEN ( - - 20 ) AND - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT DISTINCT + ( + 33 ) * COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + ( + 33 ) * COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query II rowsort label-56
SELECT DISTINCT 79, COUNT( * ) AS col0 FROM tab1 AS cor0
----
79
3

skipif mysql # not compatible
query II rowsort label-56
SELECT DISTINCT 79, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
79
3

query II rowsort
SELECT - col2, ( + 20 ) * col0 - - + 70 + col2 + 35 + - col1 AS col2 FROM tab0 AS cor0
----
-10
1834
-47
371
-99
2143

query I rowsort
SELECT ( - col1 ) * - + 13 AS col1 FROM tab1
----
182
611
65

query I rowsort
SELECT DISTINCT + + col2 * 79 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3713
7821
790

query I rowsort
SELECT 33 * + col0 FROM tab2
----
1518
2112
2475

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

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

query II rowsort
SELECT col0 * - + col0 + + col2 * - col1 AS col1, col0 AS col1 FROM tab2
----
-3289
46
-7176
64
-9511
75

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> ( + 19 * + col2 + - ( - col0 ) )
----

query I rowsort
SELECT DISTINCT col2 * + col2 + + + col1 AS col1 FROM tab0 AS cor0
----
121
2290
9802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-67
SELECT + col1 AS col1 FROM tab0 cor0 WHERE 81 BETWEEN NULL AND ( + + CAST( NULL AS SIGNED ) / - col2 )
----

skipif mysql # not compatible
query I rowsort label-67
SELECT + col1 AS col1 FROM tab0 cor0 WHERE 81 BETWEEN NULL AND ( + + CAST ( NULL AS INTEGER ) / - col2 )
----

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

query I rowsort
SELECT - col1 + + 49 FROM tab2 AS cor0
----
-18
-2
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL + ( SUM( - ( + 71 ) ) ) FROM tab1 AS cor0 WHERE ( - - col1 ) = + ( + + ( - 90 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL + ( SUM ( - ( + 71 ) ) ) FROM tab1 AS cor0 WHERE ( - - col1 ) = + ( + + ( - 90 ) )
----
NULL

query I rowsort
SELECT ALL - 25 * - - col0 AS col1 FROM tab2 AS cor0
----
-1150
-1600
-1875

query I rowsort
SELECT ALL + col1 + + + col1 * + col2 * - col2 AS col0 FROM tab1 cor0
----
-129010
-17400
-217281

query I rowsort
SELECT DISTINCT ( + col2 ) + + col1 * - col0 FROM tab1 cor0
----
-366
-4209
-618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 44 * + 26 col2 FROM tab1 AS cor0
----
-1048
-1076
-1085

query I rowsort
SELECT DISTINCT + 66 + - - col1 FROM tab0 AS cor0
----
147
67
87

query I rowsort
SELECT - 92 * - col0 * - + 77 FROM tab1 AS cor0
----
-361284
-602140
-644644

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-78
SELECT * FROM tab0 WHERE + - col0 / + - col0 - - col2 + - col0 + col2 * - + CAST( NULL AS SIGNED ) <> ( - col1 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-78
SELECT * FROM tab0 WHERE + - col0 / + - col0 - - col2 + - col0 + col2 * - + CAST ( NULL AS INTEGER ) <> ( - col1 + - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + col2 + - + 31 <= - 63
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + 50 - col1 < NULL
----

query I rowsort
SELECT 9 * + col2 FROM tab2
----
207
360
522

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT MIN( col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT MIN ( col1 ) AS col0 FROM tab1
----
5

query I rowsort
SELECT col2 * - + 38 AS col2 FROM tab2
----
-1520
-2204
-874

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

query III rowsort
SELECT * FROM tab1 WHERE - + col2 <> - + 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT DISTINCT + + ( + ( + ( col1 ) ) ) DIV 87 + + col1 AS col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT + + ( + ( + ( col1 ) ) ) / 87 + + col1 AS col2 FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 / + 1 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-89
SELECT ALL COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED ) - 54 * - 59 * - + MIN( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
258066

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) - 54 * - 59 * - + MIN ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
258066

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-90
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - col0 ) - col2 IN ( - col2, - CAST( NULL AS SIGNED ) + - - 43 )
----

skipif mysql # not compatible
query III rowsort label-90
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - col0 ) - col2 IN ( - col2, - CAST ( NULL AS INTEGER ) + - - 43 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT - 53 DIV + col1 + ( - 63 ) col1 FROM tab1 AS cor0
----
-64
-66
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-91
SELECT - 53 / + col1 + ( - 63 ) col1 FROM tab1 AS cor0
----
-64
-66
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT DISTINCT - 43 DIV + + 8 + + 2 + + - 94 * - col0 AS col0 FROM tab1 cor0
----
4791
7987
8551

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT - 43 / + + 8 + + 2 + + - 94 * - col0 AS col0 FROM tab1 cor0
----
4791
7987
8551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-93
SELECT col0 AS col2 FROM tab2 cor0 WHERE + col1 * + + CAST( + col2 AS SIGNED ) >= ( + ( - col0 ) )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-93
SELECT col0 AS col2 FROM tab2 cor0 WHERE + col1 * + + CAST ( + col2 AS INTEGER ) >= ( + ( - col0 ) )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + COUNT( * ) + + 63 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-94
SELECT + COUNT ( * ) + + 63 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-95
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 89 - - col1, col0 - - 28, - CAST( + 45 AS SIGNED ) * - col0 * - - 58 + - - col1 * 18 )
----

skipif mysql # not compatible
query III rowsort label-95
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 89 - - col1, col0 - - 28, - CAST ( + 45 AS INTEGER ) * - col0 * - - 58 + - - col1 * 18 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE + 84 <= 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-97
SELECT DISTINCT 43, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
43
NULL

skipif mysql # not compatible
query II rowsort label-97
SELECT DISTINCT 43, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
43
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT - COUNT( + + 54 ) * + 99 + + 45 + + 39 AS col2 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-101
SELECT - COUNT ( + + 54 ) * + 99 + + 45 + + 39 AS col2 FROM tab0 AS cor0
----
-213

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-103
SELECT - 84 * - - col0 + - col0 + - - 33 - - - CAST( NULL AS SIGNED ) - + col2 / + 72 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT - 84 * - - col0 + - col0 + - - 33 - - - CAST ( NULL AS INTEGER ) - + col2 / + 72 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT ( COUNT( * ) ) * + ( - - 5 ) AS col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT ( COUNT ( * ) ) * + ( - - 5 ) AS col1 FROM tab1 AS cor0
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT - MAX( ALL 74 ) * - 91 AS col2 FROM tab1
----
6734

skipif mysql # not compatible
query I rowsort label-107
SELECT - MAX ( ALL 74 ) * - 91 AS col2 FROM tab1
----
6734

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-108
SELECT ALL + 66 + - CAST( NULL AS DECIMAL ) + - ( - col1 ) FROM tab1 WHERE - - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL + 66 + - CAST ( NULL AS REAL ) + - ( - col1 ) FROM tab1 WHERE - - col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT DISTINCT - MIN( DISTINCT + col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT - MIN ( DISTINCT + col2 ) AS col2 FROM tab2
----
-23

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

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

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

query I rowsort
SELECT + col0 * - + col0 * col0 AS col1 FROM tab1
----
-132651
-614125
-753571

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-114
SELECT + 94 DIV + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-114
SELECT + 94 / + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
10

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= 40 * 11 * + col0
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( - 58 + + ( + - 26 ) ) >= NULL
----

query II rowsort
SELECT + 8 + - ( col2 ) AS col1, 82 AS col1 FROM tab2 AS cor0
----
-15
82
-32
82
-50
82

query I rowsort
SELECT ALL + col1 + - 8 AS col0 FROM tab2 AS cor0
----
43
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT - COUNT( * ) * 24 + + COUNT( * ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-121
SELECT - COUNT ( * ) * 24 + + COUNT ( * ) FROM tab0 AS cor0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-122
SELECT CAST( NULL AS DECIMAL ) * + 14 + COUNT( * ) FROM tab0 AS cor0
----
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-123
SELECT DISTINCT - ( - MAX ( + 14 ) ) col0 FROM tab0
----
14

query I rowsort
SELECT ALL col1 * - 12 FROM tab1
----
-168
-564
-60

query I rowsort
SELECT 19 * - col0 FROM tab0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-126
SELECT DISTINCT ( COUNT( * ) ) DIV + + 28 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT ( COUNT ( * ) ) / + + 28 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col0 * - + col2 + + - col2 AS col0 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT - col0 DIV col1 - - col2 + 13 AS col0 FROM tab0 AS cor0
----
15
19
60

skipif mysql # not compatible
query I rowsort label-128
SELECT - col0 / col1 - - col2 + 13 AS col0 FROM tab0 AS cor0
----
15
19
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 < ( - col2 * + 91 )
----

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

query I rowsort
SELECT - ( - 23 ) AS col1 FROM tab0 cor0 WHERE NOT 35 / col1 + col0 IS NOT NULL
----

query I rowsort
SELECT + 3 * - col1 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
1369599
397953
902289

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT DISTINCT - + MIN( ALL + - col2 ) col0 FROM tab2 AS cor0 WHERE NOT - 50 IS NULL
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-133
SELECT DISTINCT - + MIN ( ALL + - col2 ) col0 FROM tab2 AS cor0 WHERE NOT - 50 IS NULL
----
58

query I rowsort
SELECT col0 * - ( - 22 ) AS col1 FROM tab0 AS cor0
----
1914
2134
330

query II rowsort
SELECT - ( 75 ), col2 * - 90 * + col1 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + + 70 - - 29 / - 66 + - 38 * - col2 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT DISTINCT 85 * - - MAX( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
6885

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT 85 * - - MAX ( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
6885

query II rowsort
SELECT DISTINCT + col0 * col0 AS col2, ( - + 78 ) AS col0 FROM tab0
----
225
-78
7569
-78
9409
-78

query I rowsort
SELECT DISTINCT - col2 * + 67 FROM tab2 WHERE + 28 + 24 * - - col2 IN ( - 43, + ( col0 ) * + col2 / + 18 - - 77 + 44 + col1 * + 70 )
----

query I rowsort
SELECT ALL 27 * + 25 FROM tab0
----
675
675
675

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT DISTINCT + SUM( + - col1 ) * + 20 AS col0 FROM tab2
----
-3900

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT + SUM ( + - col1 ) * + 20 AS col0 FROM tab2
----
-3900

query II rowsort
SELECT + col1 AS col1, + 88 + + + col0 AS col0 FROM tab2
----
51
134
67
163
77
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, 29 AS col1 FROM tab2
----
46
29
64
29
75
29

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

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

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND ( col1 / - - 60 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT DISTINCT 45 - + + COUNT( * ) AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT 45 - + + COUNT ( * ) AS col0 FROM tab1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + 76 col0 FROM tab0
----
-55
-75
5

query I rowsort
SELECT + 49 FROM tab2 WHERE col0 IS NOT NULL
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT DISTINCT - MIN( ALL + 31 ) AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT - MIN ( ALL + 31 ) AS col2 FROM tab2
----
-31

query I rowsort
SELECT + 26 + - 90 AS col2 FROM tab0
----
-64
-64
-64

query I rowsort
SELECT + col1 + - + col0 FROM tab0
----
-66
-96
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT + 38 - - - ( COUNT( * ) ) AS col2 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT + 38 - - - ( COUNT ( * ) ) AS col2 FROM tab1
----
35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT - ( COUNT( - - 94 ) ) + - - COUNT( * ) DIV 75 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-158
SELECT - ( COUNT ( - - 94 ) ) + - - COUNT ( * ) / 75 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * col0 - - 17 + col0 AS col0 FROM tab1 AS cor0
----
2669
7327
8389

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-161
SELECT DISTINCT CAST( - col0 AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT CAST ( - col0 AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - 46 * - col0 + + col1 AS col2 FROM tab1 cor0
----
2360
3915
4233

query I rowsort
SELECT + col1 * - 62 * - 32 AS col2 FROM tab2 AS cor0
----
101184
132928
152768

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-167
SELECT ( + + 99 ) * + 75 * + 30 AS col1, - MAX( + + col2 ) * + 51 AS col2, - 69 FROM tab0 AS cor0
----
222750
-5049
-69

skipif mysql # not compatible
query III rowsort label-167
SELECT ( + + 99 ) * + 75 * + 30 AS col1, - MAX ( + + col2 ) * + 51 AS col2, - 69 FROM tab0 AS cor0
----
222750
-5049
-69

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

query I rowsort
SELECT DISTINCT 47 * + col1 FROM tab2 AS cor0
----
2397
3149
3619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-170
SELECT DISTINCT + col2 * + + ( - CAST( - - 46 AS SIGNED ) ) * 89 + - col1 AS col1 FROM tab1 AS cor0
----
-241551
-278439
-393038

skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT + col2 * + + ( - CAST ( - - 46 AS INTEGER ) ) * 89 + - col1 AS col1 FROM tab1 AS cor0
----
-241551
-278439
-393038

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-172
SELECT ALL CAST( 74 AS SIGNED ) DIV + MIN( - 89 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL CAST ( 74 AS INTEGER ) / + MIN ( - 89 ) AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + col0 / col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * 4 FROM tab0
----
188
396
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-175
SELECT DISTINCT + 75 DIV + 15 + - COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT + 75 / + 15 + - COUNT ( * ) FROM tab2 AS cor0
----
2

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

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

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

query I rowsort
SELECT 78 * + + col2 AS col0 FROM tab0 AS cor0
----
3666
7722
780

query II rowsort
SELECT ALL - 88 + - col1, col0 FROM tab2 AS cor0
----
-139
46
-155
75
-165
64

query I rowsort
SELECT + 30 + + col2 AS col2 FROM tab0 AS cor0
----
129
40
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-181
SELECT DISTINCT + 48 * - ( + + SUM( DISTINCT + + CAST( - col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
9552

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT + 48 * - ( + + SUM ( DISTINCT + + CAST ( - col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
9552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 + col2 * col0 col2 FROM tab1 AS cor0
----
4857
4976
6149

query I rowsort
SELECT + col1 + - - 13 FROM tab2 AS cor0
----
64
80
90

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( - 85 )
----

query I rowsort
SELECT DISTINCT - col1 - - 70 + + ( col0 ) FROM tab1 AS cor0 WHERE 65 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-186
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) > + col1 - - 99
----

skipif mysql # not compatible
query III rowsort label-186
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) > + col1 - - 99
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL > - + 71 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-190
SELECT col2 DIV 38 * + 27 FROM tab0
----
0
27
54

skipif mysql # not compatible
query I rowsort label-190
SELECT col2 / 38 * + 27 FROM tab0
----
0
27
54

query I rowsort
SELECT ALL - + ( + 48 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT ALL COUNT( * ) AS col1, - 2 AS col2 FROM tab1
----
3
-2

skipif mysql # not compatible
query II rowsort label-192
SELECT ALL COUNT ( * ) AS col1, - 2 AS col2 FROM tab1
----
3
-2

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

query I rowsort
SELECT + col2 * - + 26 AS col2 FROM tab1 AS cor0
----
-1534
-1768
-2496

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( ( ( 77 ) ) ) < NULL
----

query II rowsort
SELECT + col1 AS col0, + ( + 12 ) AS col1 FROM tab2 AS cor0
----
51
12
67
12
77
12

query I rowsort
SELECT DISTINCT + 75 * - - 30 FROM tab1 AS cor0
----
2250

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-199
SELECT + + col1 AS col1, + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-199
SELECT + + col1 AS col1, + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-200
SELECT ALL COUNT( * ), + COUNT( * ) + - ( + 16 ) AS col0 FROM tab1 WHERE NOT - 28 / + - col0 BETWEEN NULL AND - col2 + - 10
----
3
-13

skipif mysql # not compatible
query II rowsort label-200
SELECT ALL COUNT ( * ), + COUNT ( * ) + - ( + 16 ) AS col0 FROM tab1 WHERE NOT - 28 / + - col0 BETWEEN NULL AND - col2 + - 10
----
3
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL - ( SUM( - + col2 ) ) col1 FROM tab1
----
223

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-202
SELECT + CAST( - + col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-202
SELECT + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

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

query I rowsort
SELECT DISTINCT + 11 + 99 AS col2 FROM tab1 AS cor0
----
110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-205
SELECT col0 + - col2 + + 33 DIV - + 62 * col1 * 42 + + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
49
98

skipif mysql # not compatible
query I rowsort label-205
SELECT col0 + - col2 + + 33 / - + 62 * col1 * 42 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
49
98

query I rowsort
SELECT ALL - col0 + + 26 AS col1 FROM tab0 AS cor0
----
-61
-71
11

query I rowsort
SELECT + 32 + + col2 FROM tab0
----
131
42
79

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

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

query I rowsort
SELECT DISTINCT + 31 + - col1 AS col1 FROM tab0 cor0
----
-50
10
30

query I rowsort
SELECT - col0 - - - col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT ALL - - 74 AS col1 FROM tab2 AS cor0 WHERE NULL = + ( col1 ) * - 70 + - col1 * + 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT + 96 * + 1 - + CAST( NULL AS SIGNED ) * + 79 * - 21 * - 75 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT + 96 * + 1 - + CAST ( NULL AS INTEGER ) * + 79 * - 21 * - 75 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * - + ( col2 ) - + 77 FROM tab1 AS cor0
----
4819
4938
6111

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT DISTINCT COUNT( * ) - 84 AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT COUNT ( * ) - 84 AS col1 FROM tab0
----
-81

query I rowsort
SELECT - col2 * + + 36 * + col1 FROM tab1
----
-10620
-115056
-48384

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-218
SELECT + 42 DIV + col2 + - + col2 + - - ( col1 ) FROM tab0 AS cor0
----
-98
15
34

skipif mysql # not compatible
query I rowsort label-218
SELECT + 42 / + col2 + - + col2 + - - ( col1 ) FROM tab0 AS cor0
----
-98
15
34

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 39 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT ALL + - MIN( 13 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-13

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL + - MIN ( 13 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-13

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

skipif mysql # not compatible
query III rowsort label-221
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-222
SELECT ALL MAX( 9 ) AS col0, + CAST( - 53 AS SIGNED ) FROM tab1 AS cor0
----
9
-53

skipif mysql # not compatible
query II rowsort label-222
SELECT ALL MAX ( 9 ) AS col0, + CAST ( - 53 AS INTEGER ) FROM tab1 AS cor0
----
9
-53

query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

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

query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-228
SELECT ALL - 71, CAST( NULL AS SIGNED ) * - + CAST( + + COUNT( * ) AS DECIMAL ) AS col2 FROM tab2
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-228
SELECT ALL - 71, CAST ( NULL AS INTEGER ) * - + CAST ( + + COUNT ( * ) AS REAL ) AS col2 FROM tab2
----
-71
NULL

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

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

query II rowsort
SELECT ALL - + ( col1 ) + 38 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-9
47
24
14
33
5

query I rowsort
SELECT ALL - 32 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - col0 ) IS NULL )
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT - - MIN( ALL + 68 ) FROM tab1 cor0
----
68

skipif mysql # not compatible
query I rowsort label-233
SELECT - - MIN ( ALL + 68 ) FROM tab1 cor0
----
68

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

query II rowsort
SELECT DISTINCT col0 * + - col2, col0 FROM tab0
----
-705
15
-870
87
-9603
97

query II rowsort
SELECT + col2 + - - col0, col2 * - col2 AS col2 FROM tab1
----
144
-3481
147
-9216
159
-4624

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT DISTINCT - 63 + - COUNT( ALL - 28 ) col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-237
SELECT DISTINCT - 63 + - COUNT ( ALL - 28 ) col0 FROM tab2 AS cor0
----
-66

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-239
SELECT ALL 90 DIV col0 AS col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL 90 / col0 AS col2 FROM tab0 AS cor0
----
0
1
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-241
SELECT col1 * - col0 + CAST( + col0 AS SIGNED ) AS col0, - col1 + - - 13 FROM tab0 AS cor0
----
-1200
-68
-1740
-8
0
12

skipif mysql # not compatible
query II rowsort label-241
SELECT col1 * - col0 + CAST ( + col0 AS INTEGER ) AS col0, - col1 + - - 13 FROM tab0 AS cor0
----
-1200
-68
-1740
-8
0
12

query I rowsort
SELECT DISTINCT - ( - 64 ) AS col2 FROM tab2 AS cor0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT - + col1 * - + col0 + - - ( - col1 ) DIV + col0 + + 23 FROM tab1 AS cor0
----
4300
448
737

skipif mysql # not compatible
query I rowsort label-243
SELECT - + col1 * - + col0 + - - ( - col1 ) / + col0 + + 23 FROM tab1 AS cor0
----
4300
448
737

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-245
SELECT - col2 + col1 * - ( + + CAST( NULL AS SIGNED ) ), + col2 + - + col1 AS col2 FROM tab0 AS cor0
----
NULL
-11
NULL
-34
NULL
98

skipif mysql # not compatible
query II rowsort label-245
SELECT - col2 + col1 * - ( + + CAST ( NULL AS INTEGER ) ), + col2 + - + col1 AS col2 FROM tab0 AS cor0
----
NULL
-11
NULL
-34
NULL
98

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

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

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

skipif mysql # not compatible
query I rowsort label-247
SELECT 29 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT - - MAX( col2 ) FROM tab1 AS cor0 WHERE NOT + col2 >= - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT - - MAX ( col2 ) FROM tab1 AS cor0 WHERE NOT + col2 >= - - col2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = - col0 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT MAX( DISTINCT + - 7 ) AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-250
SELECT MAX ( DISTINCT + - 7 ) AS col0 FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-251
SELECT 11 AS col0, - SUM( ALL + - ( - - col1 ) ) FROM tab1
----
11
66

skipif mysql # not compatible
query II rowsort label-251
SELECT 11 AS col0, - SUM ( ALL + - ( - - col1 ) ) FROM tab1
----
11
66

query I rowsort
SELECT - - col1 * col0 - col0 - - col1 FROM tab0 AS cor0
----
1
1281
1761

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <> + - col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-254
SELECT ALL - MIN ( ALL + + 18 ) col1 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT 39 + + COUNT( * ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-255
SELECT 39 + + COUNT ( * ) FROM tab0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - col2 col2, + col1 * + col2 AS col1 FROM tab2
----
28
1173
37
3080
9
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-257
SELECT DISTINCT 36, COUNT( * ) col1 FROM tab2 cor0
----
36
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL + MIN( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE - 50 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL + MIN ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE - 50 IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL ( COUNT( * ) ) + 44 FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL ( COUNT ( * ) ) + 44 FROM tab2 cor0
----
47

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 85 * - 80 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-262
SELECT + MIN ( - + col0 ) AS col2 FROM tab1
----
-91

query II rowsort
SELECT DISTINCT col2 * + col0, col0 AS col1 FROM tab0
----
705
15
870
87
9603
97

query I rowsort
SELECT DISTINCT 53 * + ( + - col1 ) AS col2 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-265
SELECT + ( COUNT( * ) ) + ( 92 ) DIV 26 FROM tab0 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-265
SELECT + ( COUNT ( * ) ) + ( 92 ) / 26 FROM tab0 WHERE NULL IS NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT ALL SUM( ALL + col1 ) - + 25 AS col2 FROM tab2 AS cor0
----
170

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL SUM ( ALL + col1 ) - + 25 AS col2 FROM tab2 AS cor0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT SUM( - 47 ) FROM tab1 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-267
SELECT SUM ( - 47 ) FROM tab1 cor0
----
-141

onlyif mysql # DIV for integer division: 
query II rowsort label-268
SELECT DISTINCT 59 DIV + col0, ( + + 48 ) * + 42 AS col1 FROM tab2
----
0
2016
1
2016

skipif mysql # not compatible
query II rowsort label-268
SELECT DISTINCT 59 / + col0, ( + + 48 ) * + 42 AS col1 FROM tab2
----
0
2016
1
2016

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT ALL 77 DIV + + col2 AS col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL 77 / + + col2 AS col2 FROM tab2
----
1
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT ALL col1 DIV + 16 FROM tab2
----
3
4
4

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL col1 / + 16 FROM tab2
----
3
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT COUNT( 27 ) * 17 AS col2 FROM tab0 WHERE NOT + ( - + col2 ) IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-271
SELECT COUNT ( 27 ) * 17 AS col2 FROM tab0 WHERE NOT + ( - + col2 ) IS NULL
----
51

query I rowsort
SELECT ( col1 ) * 14 AS col1 FROM tab1 AS cor0
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT - + SUM( - 97 ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-273
SELECT - + SUM ( - 97 ) FROM tab0 AS cor0
----
291

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-275
SELECT DISTINCT CAST( NULL AS SIGNED ) / ( + + 3 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT CAST ( NULL AS INTEGER ) / ( + + 3 ) FROM tab0
----
NULL

query I rowsort
SELECT 55 * - col0 FROM tab1 AS cor0
----
-2805
-4675
-5005

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-278
SELECT - + COUNT( * ), - COUNT( * ) + + 66 AS col2 FROM tab2 AS cor0
----
-3
63

skipif mysql # not compatible
query II rowsort label-278
SELECT - + COUNT ( * ), - COUNT ( * ) + + 66 AS col2 FROM tab2 AS cor0
----
-3
63

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

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

query I rowsort
SELECT ALL + - 99 + - col0 FROM tab1 AS cor0
----
-150
-184
-190

query I rowsort
SELECT + col1 * 34 * col1 + col1 AS col0 FROM tab0 AS cor0
----
15015
223155
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * - 87 col2 FROM tab0 cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT COUNT( * ) + 35 + + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-283
SELECT COUNT ( * ) + 35 + + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
47

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

query II rowsort
SELECT + col0, 17 FROM tab1
----
51
17
85
17
91
17

query I rowsort
SELECT + 42 FROM tab0 WHERE + col0 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT - col0 DIV col2 DIV - col2 + + + col1 AS col0 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-288
SELECT - col0 / col2 / - col2 + + + col1 AS col0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 * + 41 + + 76 AS col2 FROM tab1 AS cor0
----
2003
281
650

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT + MIN( col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-291
SELECT + MIN ( col0 ) FROM tab0
----
15

query II rowsort
SELECT + ( 6 ), + col2 FROM tab0 AS cor0
----
6
10
6
47
6
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-294
SELECT - 25 DIV + 7 + - + col0 AS col0 FROM tab1 AS cor0
----
-54
-88
-94

skipif mysql # not compatible
query I rowsort label-294
SELECT - 25 / + 7 + - + col0 AS col0 FROM tab1 AS cor0
----
-54
-88
-94

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

query I rowsort
SELECT + 28 - + - col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT 89, col0 FROM tab1
----
89
51
89
85
89
91

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

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

query I rowsort
SELECT + - col2 * 17 FROM tab1 cor0
----
-1003
-1156
-1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-300
SELECT ALL - MAX( - 92 ) + + COUNT( * ) - COUNT( * ) * + - CAST( NULL AS SIGNED ) + - COUNT( * ) + AVG ( - col2 ) + 30 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL - MAX ( - 92 ) + + COUNT ( * ) - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + AVG ( - col2 ) + 30 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query II rowsort
SELECT + 79, - ( col2 ) FROM tab1 AS cor0 WHERE NOT - 97 IS NOT NULL
----

query II rowsort
SELECT ALL + 39 AS col2, ( 37 ) FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
18 values hashing to 7c4216489ec81ec2cc6c660f622ef7ad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT 97 + + MIN( DISTINCT col1 ) AS col0 FROM tab2
----
148

skipif mysql # not compatible
query I rowsort label-304
SELECT 97 + + MIN ( DISTINCT col1 ) AS col0 FROM tab2
----
148

query I rowsort
SELECT - 61 + + + col2 AS col0 FROM tab1
----
-2
35
7

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT DISTINCT + + COUNT( * ) + + + 22 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT + + COUNT ( * ) + + + 22 FROM tab0 AS cor0
----
25

query I rowsort
SELECT + - col1 AS col0 FROM tab0 cor0 WHERE ( col0 ) / + col1 < - col2 * col2 + - col1 + + - col1 - - - 93 + + 28 + + - 27 * ( - col1 ) + col0
----
-21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - col0, col0 )
----

query I rowsort
SELECT DISTINCT + 62 + col2 AS col2 FROM tab0 AS cor0
----
109
161
72

query II rowsort
SELECT DISTINCT + col2 + col2, 65 AS col0 FROM tab2 AS cor0
----
116
65
46
65
80
65

query I rowsort
SELECT ALL + col2 + + ( col2 ) AS col2 FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab1 AS cor0 WHERE NOT 34 IS NULL
----
-21

query I rowsort
SELECT DISTINCT col0 * + 91 + - - 18 + col2 + + col1 FROM tab2 cor0
----
4278
5959
6968

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

query I rowsort
SELECT + col1 - - col2 + - col2 FROM tab0
----
1
21
81

query I rowsort
SELECT col2 * - 50 - - col0 AS col2 FROM tab2
----
-1104
-1936
-2825

query I rowsort
SELECT + 27 - + + 73 AS col0 FROM tab0
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 - - 19 * - col2 col2 FROM tab0
----
-1926
-235
-938

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + col0 + - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-320
SELECT DISTINCT + + col0 DIV + ( - 97 ) + + 39 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT + + col0 / + ( - 97 ) + + 39 FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-321
SELECT + CAST( NULL AS DECIMAL ), 13 AS col2 FROM tab2 AS cor0
----
NULL
13
NULL
13
NULL
13

skipif mysql # not compatible
query II rowsort label-321
SELECT + CAST ( NULL AS REAL ), 13 AS col2 FROM tab2 AS cor0
----
NULL
13
NULL
13
NULL
13

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT ALL - + MIN( DISTINCT - + col0 ) AS col2, + 65 AS col1 FROM tab1 AS cor0
----
91
65

skipif mysql # not compatible
query II rowsort label-324
SELECT ALL - + MIN ( DISTINCT - + col0 ) AS col2, + 65 AS col1 FROM tab1 AS cor0
----
91
65

query I rowsort
SELECT ALL + - col2 * + 6 FROM tab1 AS cor0
----
-354
-408
-576

query I rowsort
SELECT ALL + 9 * - 44 FROM tab1 AS cor0
----
-396
-396
-396

query I rowsort
SELECT + 2 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-44
-62
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT DISTINCT - SUM( ALL + 96 ) FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT - SUM ( ALL + 96 ) FROM tab0 AS cor0
----
-288

query I rowsort
SELECT + 17 * + col2 AS col2 FROM tab0
----
1683
170
799

query I rowsort
SELECT + ( + + 20 ) AS col2 FROM tab0 WHERE NOT - - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT DISTINCT MIN( + - col2 ), 11 AS col0 FROM tab1
----
-96
11

skipif mysql # not compatible
query II rowsort label-331
SELECT DISTINCT MIN ( + - col2 ), 11 AS col0 FROM tab1
----
-96
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-332
SELECT + CAST( 82 AS SIGNED ) col0 FROM tab2 WHERE NOT - 30 BETWEEN - + col2 AND - col0 * - - 16 - - - ( + - col0 ) + + - 47 * + col0 * + + col2
----
82
82
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-332
SELECT + CAST ( 82 AS INTEGER ) col0 FROM tab2 WHERE NOT - 30 BETWEEN - + col2 AND - col0 * - - 16 - - - ( + - col0 ) + + - 47 * + col0 * + + col2
----
82
82
82

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

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

query I rowsort
SELECT + - 33 AS col1 FROM tab1 cor0
----
-33
-33
-33

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

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

query I rowsort
SELECT ALL col1 * + 24 AS col0 FROM tab0 AS cor0
----
1944
24
504

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( - 81 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-340
SELECT ALL 9 DIV - 32 + - 25 DIV + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL 9 / - 32 + - 25 / + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + - col1 + - 20 AS col1 FROM tab0 AS cor0
----
-101
-21
-41

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

query I rowsort
SELECT DISTINCT + + col0 - - col1 + - + col0 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL 43 - col0 AS col0 FROM tab1
----
-42
-48
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT + 88 DIV col0 + + col1 + + col0 FROM tab0
----
101
109
98

skipif mysql # not compatible
query I rowsort label-345
SELECT + 88 / col0 + + col1 + + col0 FROM tab0
----
101
109
98

query I rowsort
SELECT DISTINCT col2 * - col0 - - 95 FROM tab0
----
-610
-775
-9508

query I rowsort
SELECT ( - ( + - 26 ) ) FROM tab0
----
26
26
26

query I rowsort
SELECT DISTINCT col0 + - 38 / - - col0 FROM tab0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + 74 - + 87 * ( MAX( - 4 ) ) + - + COUNT( * ) FROM tab0 AS cor0
----
419

skipif mysql # not compatible
query I rowsort label-349
SELECT + 74 - + 87 * ( MAX ( - 4 ) ) + - + COUNT ( * ) FROM tab0 AS cor0
----
419

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN - col1 - - + col1 + + col0 * - - 15 + - - 45 AND + col0 - + col0 + - col2
----

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

skipif mysql # not compatible
query I rowsort label-351
SELECT + - 40 / col0 FROM tab2 AS cor0
----
0
0
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-353
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 83 > + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT - + MIN( 18 ) AS col2 FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-356
SELECT - + MIN ( 18 ) AS col2 FROM tab2 cor0
----
-18

query I rowsort
SELECT ALL 73 * - + col2 * - 34 FROM tab0 cor0
----
116654
245718
24820

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

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL - MAX( DISTINCT 33 ) AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL - MAX ( DISTINCT 33 ) AS col2 FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT COUNT( * ) * + + SUM( DISTINCT - col2 ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-360
SELECT COUNT ( * ) * + + SUM ( DISTINCT - col2 ) FROM tab2
----
-363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-361
SELECT + 2 DIV + SUM( ALL 10 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-361
SELECT + 2 / + SUM ( ALL 10 ) AS col1 FROM tab0
----
0

query II rowsort
SELECT + col0 + 73 + - col0, - col2 AS col1 FROM tab0 WHERE NOT - col2 BETWEEN ( - col0 / - 86 ) AND col2
----
73
-10
73
-47
73
-99

query II rowsort
SELECT ALL col2, col1 - - col1 AS col0 FROM tab1
----
59
10
68
94
96
28

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 WHERE NOT + col0 / - - col1 - + 75 + 58 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col0 / - - col1 - + 75 + 58 IS NOT NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT - col1 * + col2 / - - col2 AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-366
SELECT 6, + SUM( ALL + CAST( - col1 AS SIGNED ) ) * COUNT( * ) AS col0 FROM tab1
----
6
-198

skipif mysql # not compatible
query II rowsort label-366
SELECT 6, + SUM ( ALL + CAST ( - col1 AS INTEGER ) ) * COUNT ( * ) AS col0 FROM tab1
----
6
-198

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

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

query I rowsort
SELECT DISTINCT - - col2 + + - col1 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - col1 * col2 * + col1 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT ALL + col0 * - + 93 FROM tab1
----
-4743
-7905
-8463

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 46 + + col1 col2 FROM tab2 AS cor0
----
2167
3021
3517

query I rowsort
SELECT DISTINCT + + col0 * + - col1 + col0 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT ALL + 13 + + 63 FROM tab1 AS cor0
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT ALL col1 DIV - + 66 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL col1 / - + 66 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-379
SELECT DISTINCT SUM( DISTINCT - - col0 ) - 26 AS col2, MAX( ALL + 58 ) FROM tab1
----
201
58

skipif mysql # not compatible
query II rowsort label-379
SELECT DISTINCT SUM ( DISTINCT - - col0 ) - 26 AS col2, MAX ( ALL + 58 ) FROM tab1
----
201
58

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-383
SELECT col2 DIV + 33 col0 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-383
SELECT col2 / + 33 col0 FROM tab0 cor0
----
0
1
3

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 * 21 AS col1 FROM tab0 AS cor0
----
15
987
87
210
97
2079

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 52 ) NOT BETWEEN NULL AND + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT MIN( - col1 ) + - COUNT( * ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-386
SELECT MIN ( - col1 ) + - COUNT ( * ) FROM tab1
----
-50

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

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

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

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

query I rowsort
SELECT + 61 + - col1 FROM tab0
----
-20
40
60

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

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

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

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

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

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

query I rowsort
SELECT 16 * + col1 + col0 FROM tab0
----
113
1311
423

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT - COUNT( * ) + MAX( ALL 32 ) AS col2 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-397
SELECT - COUNT ( * ) + MAX ( ALL 32 ) AS col2 FROM tab1
----
29

query I rowsort
SELECT 65 * 70 + - col1 FROM tab2
----
4473
4483
4499

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

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

query I rowsort
SELECT DISTINCT col1 * - 55 + col2 FROM tab0
----
-1145
-4408
44

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT 2 + - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-402
SELECT 2 + - COUNT ( * ) AS col1 FROM tab1
----
-1

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 <> 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 65 + col0 AS col2 FROM tab1 AS cor0
----
116
150
156

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT SUM( col1 ) AS col0 FROM tab1 WHERE 18 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT SUM ( col1 ) AS col0 FROM tab1 WHERE 18 IS NULL
----
NULL

query I rowsort
SELECT + col1 * ( + col2 ) + 32 * - 80 FROM tab2
----
-1387
1326
520

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL MIN( ALL col0 ) FROM tab2 WHERE NOT + 88 * + ( col2 ) IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL MIN ( ALL col0 ) FROM tab2 WHERE NOT + 88 * + ( col2 ) IS NULL
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT col2 * - col0 + 54 DIV - col1 FROM tab0 AS cor0
----
-705
-872
-9657

skipif mysql # not compatible
query I rowsort label-414
SELECT col2 * - col0 + 54 / - col1 FROM tab0 AS cor0
----
-705
-872
-9657

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT - 87 DIV + col2 + 50 FROM tab1 cor0
----
49
49
50

skipif mysql # not compatible
query I rowsort label-415
SELECT - 87 / + col2 + 50 FROM tab1 cor0
----
49
49
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-416
SELECT + + 69 + - 1 DIV + CAST( ( - ( COUNT( * ) ) ) AS SIGNED ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-416
SELECT + + 69 + - 1 / + CAST ( ( - ( COUNT ( * ) ) ) AS INTEGER ) FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-417
SELECT + 42 DIV + MIN( DISTINCT col1 ) + 72 AS col2 FROM tab1 cor0
----
80

skipif mysql # not compatible
query I rowsort label-417
SELECT + 42 / + MIN ( DISTINCT col1 ) + 72 AS col2 FROM tab1 cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT 50 * - 52 + MIN( - col2 ) FROM tab2 AS cor0
----
-2658

skipif mysql # not compatible
query I rowsort label-418
SELECT 50 * - 52 + MIN ( - col2 ) FROM tab2 AS cor0
----
-2658

query I rowsort
SELECT 85 * col2 + - ( - col0 ) AS col2 FROM tab2 AS cor0
----
2001
3464
5005

query I rowsort
SELECT ALL - + col1 + - 84 FROM tab2 AS cor0
----
-135
-151
-161

query I rowsort
SELECT ALL 58 * + col2 - col2 AS col0 FROM tab1 AS cor0
----
3363
3876
5472

query I rowsort
SELECT DISTINCT + 71 * - col2 + 35 AS col1 FROM tab0 WHERE - col2 / - 80 NOT IN ( - 36 )
----
-3302
-675
-6994

query I rowsort
SELECT ALL + 94 * - col1 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT DISTINCT COUNT( DISTINCT 19 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT COUNT ( DISTINCT 19 ) FROM tab1
----
1

query I rowsort
SELECT col2 * + col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col0 * col2 - col1 FROM tab0 AS cor0
----
624
849
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT DISTINCT + MIN( - col2 ) * 4 col1 FROM tab1 AS cor0
----
-384

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-427
SELECT DISTINCT + MIN ( - col2 ) * 4 col1 FROM tab1 AS cor0
----
-384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-428
SELECT - 20 DIV - COUNT( * ) col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-428
SELECT - 20 / - COUNT ( * ) col0 FROM tab0 AS cor0
----
6

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

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

query I rowsort
SELECT col0 * - + col2 * - 14 FROM tab0 AS cor0
----
12180
134442
9870

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-432
SELECT + COUNT( * ) + + COUNT( ALL 99 ) DIV COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NOT ( - col2 ) <= ( - col0 ) )
----
2

skipif mysql # not compatible
query I rowsort label-432
SELECT + COUNT ( * ) + + COUNT ( ALL 99 ) / COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NOT ( - col2 ) <= ( - col0 ) )
----
2

query I rowsort
SELECT + ( + 72 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

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

query I rowsort
SELECT ALL + + 49 + + col1 AS col0 FROM tab0 AS cor0
----
130
50
70

query I rowsort
SELECT ALL - 81 * col2 * - col2 * + col2 AS col1 FROM tab2 AS cor0
----
15804072
5184000
985527

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > - col1 OR NOT col1 + - 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT DISTINCT - COUNT( * ) * - 15 col0 FROM tab0 AS cor0 WHERE NULL > - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-439
SELECT DISTINCT - COUNT ( * ) * - 15 col0 FROM tab0 AS cor0 WHERE NULL > - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL + SUM( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL + SUM ( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT DISTINCT + + ( + - COUNT( * ) ) * + - 18 * + MIN( 4 ) FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT + + ( + - COUNT ( * ) ) * + - 18 * + MIN ( 4 ) FROM tab2 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - col1 ) <= col0
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col1 ) <= col0
----
0

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

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

query II rowsort
SELECT col1 * + col2, ( - 5 ) * 87 AS col2 FROM tab0
----
210
-435
3807
-435
99
-435

query I rowsort
SELECT DISTINCT + col0 * col1 + - + col1 FROM tab0
----
1134
1806
96

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT 26 * MIN( + 23 ) FROM tab0
----
598

skipif mysql # not compatible
query I rowsort label-447
SELECT 26 * MIN ( + 23 ) FROM tab0
----
598

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-448
SELECT 34 * - col1, 60 * + CAST( + col2 AS SIGNED ) * + col1 AS col2 FROM tab1
----
-1598
191760
-170
17700
-476
80640

skipif mysql # not compatible
query II rowsort label-448
SELECT 34 * - col1, 60 * + CAST ( + col2 AS INTEGER ) * + col1 AS col2 FROM tab1
----
-1598
191760
-170
17700
-476
80640

onlyif mysql # DIV for integer division: 
query II rowsort label-449
SELECT 67 DIV + 69, 8 + - col0 AS col1 FROM tab0
----
0
-7
0
-79
0
-89

skipif mysql # not compatible
query II rowsort label-449
SELECT 67 / + 69, 8 + - col0 AS col1 FROM tab0
----
0
-7
0
-79
0
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-450
SELECT ( 28 ) * CAST( + - col1 AS SIGNED ) DIV col0 AS col0 FROM tab2
----
-25
-31
-33

skipif mysql # not compatible
query I rowsort label-450
SELECT ( 28 ) * CAST ( + - col1 AS INTEGER ) / col0 AS col0 FROM tab2
----
-25
-31
-33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL 93 + + 88 + - COUNT( * ) - ( - 9 ) FROM tab0 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL 93 + + 88 + - COUNT ( * ) - ( - 9 ) FROM tab0 AS cor0
----
187

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 13 - col1 ) BETWEEN + col2 - - col0 AND ( - ( col2 ) + col0 * + 50 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col2 > ( + + ( 74 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-457
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND + - col0 + + col0 + + CAST( NULL AS SIGNED ) AND NOT col0 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-457
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND + - col0 + + col0 + + CAST ( NULL AS INTEGER ) AND NOT col0 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 72 = ( col1 + - 69 )
----

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

query I rowsort
SELECT DISTINCT + ( 73 ) + - col1 FROM tab0 AS cor0
----
-8
52
72

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

query I rowsort
SELECT ALL col0 * + 32 FROM tab0 AS cor0
----
2784
3104
480

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + col0 col2 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-465
SELECT ALL + 51, 0 * - col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
51
NULL
51
NULL
51
NULL

skipif mysql # not compatible
query II rowsort label-465
SELECT ALL + 51, 0 * - col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
51
NULL
51
NULL
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT - 33 - - + COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-30

skipif mysql # not compatible
query I rowsort label-466
SELECT - 33 - - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-30

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - - col0, + col1 + + - 4 )
----

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

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

query I rowsort
SELECT 48 * - col0 * + col1 AS col0 FROM tab0
----
-4656
-58320
-87696

query II rowsort
SELECT ALL col1, 31 FROM tab2
----
51
31
67
31
77
31

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

query II rowsort
SELECT - 93 AS col0, + ( - + 63 ) + + 30 - - col2 * - col2 AS col0 FROM tab0
----
-93
-133
-93
-2242
-93
-9834

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( 37 ) + - col0 + col0 * - + col2 * 48 col0 FROM tab2 AS cor0
----
-125312
-211650
-52532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-476
SELECT ALL - col2 * + - ( col1 ) * - col2 * + + 43 * col1 + - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1896321
-421444
-623209788

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL - col2 * + - ( col1 ) * - col2 * + + 43 * col1 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1896321
-421444
-623209788

query II rowsort
SELECT 12 AS col1, 58 AS col2 FROM tab1 AS cor0
----
12
58
12
58
12
58

query I rowsort
SELECT + col2 * 60 AS col1 FROM tab1
----
3540
4080
5760

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + 77 IS NOT NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-481
SELECT ALL * FROM tab2 WHERE + + col1 NOT IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-481
SELECT ALL * FROM tab2 WHERE + + col1 NOT IN ( + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL col0 * - 51 * + col1 AS col0 FROM tab2 AS cor0
----
-119646
-251328
-256275

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL - 27 * + - 91 + + + COUNT( * ) + COUNT( * ) AS col1 FROM tab1 cor0
----
2463

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - 27 * + - 91 + + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 cor0
----
2463

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT DISTINCT - 93 * MIN( + + 24 ) DIV - + 23 - 31 + + 47 + + 56 * + 22 FROM tab0 AS cor0
----
1345

skipif mysql # not compatible
query I rowsort label-484
SELECT DISTINCT - 93 * MIN ( + + 24 ) / - + 23 - 31 + + 47 + + 56 * + 22 FROM tab0 AS cor0
----
1345

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

skipif mysql # not compatible
query I rowsort label-485
SELECT - ( + - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + col1 + + + 0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - col1 + - 96 FROM tab0
----
-117
-177
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT ALL - 1 + + MAX( DISTINCT + + col2 ) col1 FROM tab0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-488
SELECT ALL - 1 + + MAX ( DISTINCT + + col2 ) col1 FROM tab0
----
98

query I rowsort
SELECT ALL ( - - ( + 51 ) ) FROM tab2
----
51
51
51

query I rowsort
SELECT 3 + - 65 - 17 AS col0 FROM tab2
----
-79
-79
-79

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 > + 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col0 FROM tab1 AS cor0 WHERE - col0 + + - 48 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 24 + - col2 + + 33 - + col0 * - col2 + 52 AS col0 FROM tab1 AS cor0
----
4960
5150
6320

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 >= - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - col0 + - + col1 FROM tab0 AS cor0
----
-49
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT DISTINCT - COUNT( * ) + 40 AS col0 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT - COUNT ( * ) + 40 AS col0 FROM tab0 AS cor0
----
37

query I rowsort
SELECT ALL 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-499
SELECT - 34 AS col2, 9 / + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0, tab0 AS cor0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-499
SELECT - 34 AS col2, 9 / + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0, tab0 AS cor0
----
-34
NULL

query I rowsort
SELECT DISTINCT 13 + - - 58 FROM tab1, tab1 cor0
----
71

query I rowsort
SELECT - 35 - - 41 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT 21 + ( - COUNT( * ) ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-502
SELECT 21 + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
18

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

query I rowsort
SELECT + 25 * col1 * 9 FROM tab2 AS cor0
----
11475
15075
17325

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-506
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * col2 NOT IN ( col0 * + + col0, col0 * - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-506
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * col2 NOT IN ( col0 * + + col0, col0 * - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT DISTINCT + SUM( + 26 ) FROM tab0 AS cor0 WHERE NOT - col0 >= + - col1
----
52

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT + SUM ( + 26 ) FROM tab0 AS cor0 WHERE NOT - col0 >= + - col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-508
SELECT + + MAX( DISTINCT + col1 ), - 46 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
47
-43

skipif mysql # not compatible
query II rowsort label-508
SELECT + + MAX ( DISTINCT + col1 ), - 46 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
47
-43

query I rowsort
SELECT DISTINCT - col2 / - - 73 FROM tab0 cor0 WHERE NOT NULL > - 3 - ( col0 )
----

query I rowsort
SELECT DISTINCT + - 11 AS col2 FROM tab1 AS cor0
----
-11

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

query I rowsort
SELECT + col2 * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-3476
-4577
-9202

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 46 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + 65 ) FROM tab0
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 * - 66 col0 FROM tab2
----
5676
5676
5676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-516
SELECT AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT + + COUNT( col1 ) FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-517
SELECT + + COUNT ( col1 ) FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-518
SELECT ALL COUNT( * ), MAX( - 77 ) col1 FROM tab0 AS cor0
----
3
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-518
SELECT ALL COUNT ( * ), MAX ( - 77 ) col1 FROM tab0 AS cor0
----
3
-77

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

query I rowsort
SELECT - 30 * + col1 AS col2 FROM tab0
----
-2430
-30
-630

query I rowsort
SELECT DISTINCT ( 63 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
63

query I rowsort
SELECT + 96 + + col2 + + col1 FROM tab0
----
127
196
224

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

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

query I rowsort
SELECT ALL + ( + 86 ) * - 58 * col0 AS col1 FROM tab0 AS cor0
----
-433956
-483836
-74820

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-527
SELECT * FROM tab0 AS cor0 WHERE + ( - - CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-527
SELECT * FROM tab0 AS cor0 WHERE + ( - - CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT - CAST( col0 AS SIGNED ) * col2 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-530
SELECT - CAST ( col0 AS INTEGER ) * col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL - col1 - - col1 * - col0 FROM tab1
----
-430
-4324
-728

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col0 BETWEEN + - 72 - + + col0 AND ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT ALL ( + + 23 ) DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL ( + + 23 ) / - col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-534
SELECT - 61 + - + COUNT( * ), COUNT( * ) AS col2 FROM tab2
----
-64
3

skipif mysql # not compatible
query II rowsort label-534
SELECT - 61 + - + COUNT ( * ), COUNT ( * ) AS col2 FROM tab2
----
-64
3

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT + COUNT( * ) + + COUNT( * ) * + 4 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-535
SELECT + COUNT ( * ) + + COUNT ( * ) * + 4 FROM tab2
----
15

query I rowsort
SELECT - ( + 85 ) * col2 - + - col1 + + col0 + - 74 AS col0 FROM tab1
----
-4999
-5716
-8169

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT ALL + col0 DIV + 68 + - + 58 AS col0 FROM tab0 AS cor0
----
-57
-57
-58

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL + col0 / + 68 + - + 58 AS col0 FROM tab0 AS cor0
----
-57
-57
-58

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

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

query I rowsort
SELECT 10 * - - 18 FROM tab0
----
180
180
180

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT - + MIN( ALL col0 ) col1 FROM tab2 AS cor0
----
-46

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

query I rowsort
SELECT ALL col1 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT 97 + - col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT + col1 DIV - col0 + + col0 + - - 93 AS col1 FROM tab0 AS cor0
----
103
180
190

skipif mysql # not compatible
query I rowsort label-543
SELECT + col1 / - col0 + + col0 + - - 93 AS col1 FROM tab0 AS cor0
----
103
180
190

query II rowsort
SELECT DISTINCT + col0, ( col0 ) + - col1 FROM tab2 AS cor0
----
46
-5
64
-13
75
8

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 83 IS NULL
----

query I rowsort
SELECT ALL - 99 AS col1 FROM tab0
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-548
SELECT - col2 DIV col2 col0, 2 FROM tab2
----
-1
2
-1
2
-1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-548
SELECT - col2 / col2 col0, 2 FROM tab2
----
-1
2
-1
2
-1
2

query I rowsort
SELECT ALL 54 * - col1 * - + 87 * - col0 FROM tab0
----
-455706
-5708070
-8583246

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

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

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

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

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

query II rowsort
SELECT col0, + col2 * + + col2 FROM tab1
----
51
9216
85
3481
91
4624

query I rowsort
SELECT - 10 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-10
-10
-10

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

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

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

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

query I rowsort
SELECT DISTINCT - + 53 AS col1 FROM tab1 AS cor0 WHERE col0 + - 79 IS NOT NULL
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-559
SELECT - col1 DIV 8 + + col0 AS col0 FROM tab0 cor0
----
5
85
97

skipif mysql # not compatible
query I rowsort label-559
SELECT - col1 / 8 + + col0 AS col0 FROM tab0 cor0
----
5
85
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE + 96 + - col0 > - + col0
----
3

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE + 96 + - col0 > - + col0
----
3

query I rowsort
SELECT - col2 + - 36 AS col1 FROM tab1
----
-104
-132
-95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 55 NOT BETWEEN 20 AND ( 61 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL + 6 * - + 87 AS col0 FROM tab0
----
-522
-522
-522

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

query I rowsort
SELECT - col1 * 24 AS col0 FROM tab2
----
-1224
-1608
-1848

query I rowsort
SELECT DISTINCT - col0 + + ( + 61 ) FROM tab1 AS cor0
----
-24
-30
10

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT + 1 - + col1 + + 17 DIV - + col2 * - + 82 * col1 AS col2 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-570
SELECT + 1 - + col1 + + 17 / - + col2 * - + 82 * col1 AS col2 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT ALL - ( - col1 ) - - - 92 FROM tab1 AS cor0
----
-45
-78
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-572
SELECT ALL + 96 DIV COUNT( * ) col2 FROM tab2
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-572
SELECT ALL + 96 / COUNT ( * ) col2 FROM tab2
----
32

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

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT + COUNT ( * ) / - 91 FROM tab1
----
0

query II rowsort
SELECT 79 * 30 AS col1, 55 AS col1 FROM tab1
----
2370
55
2370
55
2370
55

query I rowsort
SELECT + 44 * + col0 FROM tab0
----
3828
4268
660

query I rowsort
SELECT + + 91 * - col0 FROM tab0 AS cor0
----
-1365
-7917
-8827

query II rowsort
SELECT - col2 * + + 85, col2 FROM tab2 AS cor0
----
-1955
23
-3400
40
-4930
58

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT ALL + 33 DIV - 61 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-578
SELECT ALL + 33 / - 61 col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 61 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-580
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( + + col0 AS SIGNED ) * + + col1 / + 28 <> NULL
----

skipif mysql # not compatible
query III rowsort label-580
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( + + col0 AS INTEGER ) * + + col1 / + 28 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 53 ) > NULL
----

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

query II rowsort
SELECT ALL - 68, + col1 FROM tab0
----
-68
1
-68
21
-68
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT 58 DIV MIN( ALL - + 58 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-584
SELECT 58 / MIN ( ALL - + 58 ) AS col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT - 49 DIV - - col2 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-585
SELECT - 49 / - - col2 FROM tab0
----
-1
-4
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( 8 ) > 4 + + + 33 + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col2 FROM tab2 WHERE - col1 IS NULL AND NOT NULL = NULL
----

query I rowsort
SELECT + + 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-590
SELECT CAST( + + 29 AS SIGNED ) + + 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to 6f26a03989006af44e1b70d584e50047

skipif mysql # not compatible
query I rowsort label-590
SELECT CAST ( + + 29 AS INTEGER ) + + 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) ) IS NOT NULL
----
9 values hashing to 6f26a03989006af44e1b70d584e50047

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

query I rowsort
SELECT - ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE - 92 > 77
----

query II rowsort
SELECT DISTINCT + - col1 + col2, col2 FROM tab0 AS cor0
----
-11
10
-34
47
98
99

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 5 + col1 >= 46
----

query I rowsort
SELECT - 45 FROM tab1 AS cor0 WHERE - col0 + + - col1 <= NULL
----

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

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE NULL <> - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT DISTINCT MAX( - col2 ) * + 7 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT MAX ( - col2 ) * + 7 FROM tab0
----
-70

query I rowsort
SELECT DISTINCT - 90 - 38 AS col1 FROM tab0
----
-128

query I rowsort
SELECT + col0 + - - col2 * - 50 * + col1 FROM tab2
----
-153936
-194225
-58604

query I rowsort
SELECT col1 + + - 5 FROM tab1
----
0
42
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + + - col1 * - 17 * + - col0 < ( + 19 * - 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE 66 * - 8 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-607
SELECT DISTINCT + 46, 40 * + - col1 * + + CAST( col1 AS SIGNED ) * - 17 AS col0 FROM tab0 AS cor0
----
46
299880
46
4461480
46
680

skipif mysql # not compatible
query II rowsort label-607
SELECT DISTINCT + 46, 40 * + - col1 * + + CAST ( col1 AS INTEGER ) * - 17 AS col0 FROM tab0 AS cor0
----
46
299880
46
4461480
46
680

query II rowsort
SELECT ALL 93 AS col0, - col1 AS col1 FROM tab0 AS cor0
----
93
-1
93
-21
93
-81

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col1, + col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT + 35 * 20 FROM tab1 AS cor0
----
700
700
700

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

query I rowsort
SELECT + + 52 + AVG ( - col0 ) FROM tab0 AS cor0 WHERE NOT col2 > - col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-617
SELECT ALL - - 29 DIV - 95 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL - - 29 / - 95 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT - col1 * 13 FROM tab2
----
-1001
-663
-871

query I rowsort
SELECT ALL + + 71 AS col0 FROM tab0 cor0
----
71
71
71

onlyif mysql # DIV for integer division: 
query II rowsort label-621
SELECT + - col2 * + 7 * + 41, col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-16933
0
-19516
0
-27552
0

skipif mysql # not compatible
query II rowsort label-621
SELECT + - col2 * + 7 * + 41, col1 / - col0 AS col0 FROM tab1 AS cor0
----
-16933
0
-19516
0
-27552
0

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

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

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

query I rowsort
SELECT - 69 * - 26 FROM tab1 AS cor0
----
1794
1794
1794

query I rowsort
SELECT + 27 * - + col2 * col1 AS col0 FROM tab2
----
-104922
-31671
-83160

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-626
SELECT DISTINCT + ( + - COUNT ( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + col0 + 54 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT + + 35 DIV - ( - 63 ) + + col1 AS col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-628
SELECT + + 35 / - ( - 63 ) + + col1 AS col0 FROM tab1 cor0
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT + col2 + + col2 - 23 AS col2 FROM tab2 AS cor0
----
23
57
93

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT - - 10 + MAX( - col0 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-631
SELECT - - 10 + MAX ( - col0 ) FROM tab0 AS cor0
----
-5

query I rowsort
SELECT + + col1 + col0 + + + 33 * + - 51 AS col2 FROM tab1 AS cor0
----
-1545
-1593
-1618

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 29 NOT IN ( - 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 49 + - + col1 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 42 )
----

query I rowsort
SELECT DISTINCT 20 + col2 FROM tab0 AS cor0
----
119
30
67

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-637
SELECT ALL - 44 DIV + 3 + - + COUNT( * ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL - 44 / + 3 + - + COUNT ( * ) FROM tab2
----
-17

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-638
SELECT CAST ( NULL AS INTEGER ) * 39 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT + 96 + + + col1 - + 57 >= + col1 / + 43 / 11
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2 * 86
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-641
SELECT ALL * FROM tab0 WHERE NOT + + 95 NOT BETWEEN 56 / - col2 + + CAST( col1 AS DECIMAL ) / + col2 * + 96 * + - CAST( NULL AS SIGNED ) AND + - col2
----

skipif mysql # not compatible
query III rowsort label-641
SELECT ALL * FROM tab0 WHERE NOT + + 95 NOT BETWEEN 56 / - col2 + + CAST ( col1 AS REAL ) / + col2 * + 96 * + - CAST ( NULL AS INTEGER ) AND + - col2
----

query I rowsort
SELECT DISTINCT 13 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT - col1 * col1 DIV col2 FROM tab0 cor0
----
-139
-44
0

skipif mysql # not compatible
query I rowsort label-643
SELECT - col1 * col1 / col2 FROM tab0 cor0
----
-139
-44
0

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL - 47 * 10 + + COUNT( * ) FROM tab0 AS cor0
----
-467

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL - 47 * 10 + + COUNT ( * ) FROM tab0 AS cor0
----
-467

query I rowsort
SELECT 23 * - 64 FROM tab0 AS cor0
----
-1472
-1472
-1472

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT DISTINCT - col2 * - 8 + 76 DIV + 78 FROM tab1 AS cor0
----
472
544
768

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT - col2 * - 8 + 76 / + 78 FROM tab1 AS cor0
----
472
544
768

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

query II rowsort
SELECT ALL + col1, - ( + 42 ) FROM tab1
----
14
-42
47
-42
5
-42

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

onlyif mysql # aggregate syntax: 
query II rowsort label-650
SELECT DISTINCT 56 AS col2, MIN( ALL + - 40 ) FROM tab0
----
56
-40

skipif mysql # not compatible
query II rowsort label-650
SELECT DISTINCT 56 AS col2, MIN ( ALL + - 40 ) FROM tab0
----
56
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT ALL - MAX( - - col0 ) * COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL - MAX ( - - col0 ) * COUNT ( * ) FROM tab2
----
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-652
SELECT - 71 DIV + COUNT( * ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-652
SELECT - 71 / + COUNT ( * ) FROM tab0
----
-23

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, col2 - - col0 + + col1 + + - 40 * 93 col2 FROM tab1
----
51
-3559
85
-3571
91
-3514

query I rowsort
SELECT DISTINCT - ( 85 ) * + 0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 * + 4 AS col0 FROM tab1
----
236
272
384

onlyif mysql # DIV for integer division: 
query II rowsort label-657
SELECT - - 25 + + col1 + + ( col0 ) DIV - + ( + col1 ) col0, 56 AS col2 FROM tab2 AS cor0
----
102
56
76
56
91
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-657
SELECT - - 25 + + col1 + + ( col0 ) / - + ( + col1 ) col0, 56 AS col2 FROM tab2 AS cor0
----
102
56
76
56
91
56

query II rowsort
SELECT + 10 * col2 AS col1, col2 AS col2 FROM tab1
----
590
59
680
68
960
96

query II rowsort
SELECT ( + - col1 ), col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

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

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

query I rowsort
SELECT DISTINCT 97 FROM tab0 AS cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT 48 - - col1 AS col0 FROM tab0 AS cor0
----
129
49
69

query I rowsort
SELECT + 13 - + - col0 FROM tab0 AS cor0
----
100
110
28

query I rowsort
SELECT DISTINCT + 80 - - col0 AS col2 FROM tab0 AS cor0
----
167
177
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-665
SELECT + 21 * - - col2 - + - ( - col0 ) + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-665
SELECT + 21 * - - col2 - + - ( - col0 ) + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT DISTINCT 29 + - + COUNT( * ) - + COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT 29 + - + COUNT ( * ) - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
17

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 72 NOT BETWEEN - col1 + - + 86 AND + 14
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT DISTINCT + MIN( ALL 86 ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT + MIN ( ALL 86 ) FROM tab1
----
86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 + 41 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - MAX( DISTINCT - ( - + col0 ) ) col2 FROM tab1 cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-671
SELECT - MAX ( DISTINCT - ( - + col0 ) ) col2 FROM tab1 cor0
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-672
SELECT DISTINCT col0 AS col1, ( 42 ) DIV col1 FROM tab0 cor0
----
15
0
87
2
97
42

skipif mysql # not compatible
query II rowsort label-672
SELECT DISTINCT col0 AS col1, ( 42 ) / col1 FROM tab0 cor0
----
15
0
87
2
97
42

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT COUNT( * ) * + MAX( DISTINCT 38 ) AS col0 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-673
SELECT COUNT ( * ) * + MAX ( DISTINCT 38 ) AS col0 FROM tab2
----
114

query I rowsort
SELECT col0 * - col0 * - col2 AS col1 FROM tab2
----
163840
326250
48668

query II rowsort
SELECT DISTINCT col2 + col1 / - col2, 74 AS col0 FROM tab2 WHERE - + 96 / - 11 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col1 + col1 IS NOT NULL
----

query I rowsort
SELECT - col0 * + - col1 + + 41 AS col1 FROM tab1 AS cor0
----
4318
466
755

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

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

query I rowsort
SELECT DISTINCT + + col0 + - - col2 + col2 FROM tab1 AS cor0
----
203
227
243

query I rowsort
SELECT + + col1 + 45 + - col0 * - + 5 * - col0 FROM tab1 AS cor0
----
-12946
-36075
-41313

query I rowsort
SELECT col1 + col0 + + col2 + - col1 * - 4 FROM tab1 AS cor0
----
169
217
394

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT + col1 DIV + + col2 + + 73 FROM tab2
----
74
74
75

skipif mysql # not compatible
query I rowsort label-684
SELECT + col1 / + + col2 + + 73 FROM tab2
----
74
74
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT + COUNT( * ) * + + SUM( ALL - col0 ) * 74 + + 25 FROM tab1
----
-50369

skipif mysql # not compatible
query I rowsort label-686
SELECT + COUNT ( * ) * + + SUM ( ALL - col0 ) * 74 + + 25 FROM tab1
----
-50369

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 14 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT ( - col2 ) * + 57 AS col2 FROM tab0
----
-2679
-5643
-570

query I rowsort
SELECT + 78 AS col1 FROM tab0 WHERE + - 84 NOT BETWEEN NULL AND + col0 * + col1
----

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

query I rowsort
SELECT ALL 25 + col0 FROM tab0 AS cor0
----
112
122
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-692
SELECT DISTINCT - COUNT( * ) DIV - 34 + + 36 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - COUNT ( * ) / - 34 + + 36 FROM tab2 AS cor0
----
36

query I rowsort
SELECT ALL + col1 * 52 FROM tab1
----
2444
260
728

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT ALL + + col1 DIV + col2 + col1 - - 37 AS col1 FROM tab2 AS cor0
----
105
115
90

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL + + col1 / + col2 + col1 - - 37 AS col1 FROM tab2 AS cor0
----
105
115
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 45 col2 FROM tab1 AS cor0
----
130
136
96

query II rowsort
SELECT + col1 AS col2, col2 * - + col0 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
14
-68530
47
-290789
5
-25070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT DISTINCT - col1 * + 52 + 93 + + 16 * col2 * - CAST( + 7 AS SIGNED ) * - + 30 FROM tab2 AS cor0
----
130489
191489
74721

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT - col1 * + 52 + 93 + + 16 * col2 * - CAST ( + 7 AS INTEGER ) * - + 30 FROM tab2 AS cor0
----
130489
191489
74721

query I rowsort
SELECT ALL - col0 * - + col2 + + 51 FROM tab1 AS cor0
----
4947
5066
6239

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-699
SELECT DISTINCT + + col1 col0, 51 * + - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
-1173
67
-2958
77
-2040

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-699
SELECT DISTINCT + + col1 col0, 51 * + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
-1173
67
-2958
77
-2040

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

query I rowsort
SELECT DISTINCT 95 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-702
SELECT ALL + + COUNT( * ) * + - 31 FROM tab0 WHERE + + col2 + ( - CAST( + + col0 AS SIGNED ) ) + - - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL + + COUNT ( * ) * + - 31 FROM tab0 WHERE + + col2 + ( - CAST ( + + col0 AS INTEGER ) ) + - - col0 < NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-703
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE ( + - CAST( NULL AS DECIMAL ) ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE ( + - CAST ( NULL AS REAL ) ) IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - - col1 * ( + ( col0 ) ), ( + col1 ) * + col1 col2 FROM tab1
----
-201019
2209
-2125
25
-9996
196

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
20
20
20

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

query II rowsort
SELECT + + ( col1 ) AS col2, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-710
SELECT - - 31, COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
31
9

skipif mysql # not compatible
query II rowsort label-710
SELECT - - 31, COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
31
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT 15 + - COUNT( * ) * - - 41 AS col0 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-712
SELECT 15 + - COUNT ( * ) * - - 41 AS col0 FROM tab2
----
-108

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + col1 * - - 89 * - 53 FROM tab2 AS cor0
----
-46
-240567
-64
-363209
-75
-316039

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( ( - - col0 ), col1 * - col0, + 65, + ( + 42 ) )
----

query II rowsort
SELECT + - 37, + col2 * + - 52 AS col2 FROM tab0 AS cor0
----
-37
-2444
-37
-5148
-37
-520

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

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

query I rowsort
SELECT DISTINCT - col2 + + ( + - 65 ) AS col1 FROM tab2 AS cor0
----
-105
-123
-88

query III rowsort
SELECT * FROM tab2 WHERE 3 + - - col0 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * 62 col0 FROM tab0
----
-4092
-4092
-4092

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

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT COUNT( * ) + + + SUM( DISTINCT - col2 ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-724
SELECT COUNT ( * ) + + + SUM ( DISTINCT - col2 ) FROM tab1
----
-220

query II rowsort
SELECT 68 + + col2, + col1 AS col0 FROM tab0
----
115
81
167
1
78
21

query I rowsort
SELECT + col0 * + 40 * + 58 * + 15 + - col0 * 44 FROM tab2
----
1598776
2224384
2606700

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

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT SUM( ALL + - 20 ) + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-728
SELECT SUM ( ALL + - 20 ) + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT DISTINCT 7 + + COUNT( * ) FROM tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT 7 + + COUNT ( * ) FROM tab2 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT - col0 IN ( - 70 + - col0 + + 50, + 6 )
----
3

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col0 IN ( - 70 + - col0 + + 50, + 6 )
----
3

query I rowsort
SELECT + + 45 + + 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT - SUM( + 78 ) AS col1 FROM tab2 cor0 WHERE NOT 83 * + 82 + - col0 * - 56 + - - col1 + 26 IS NULL
----
-234

skipif mysql # not compatible
query I rowsort label-733
SELECT - SUM ( + 78 ) AS col1 FROM tab2 cor0 WHERE NOT 83 * + 82 + - col0 * - 56 + - - col1 + 26 IS NULL
----
-234

query II rowsort
SELECT DISTINCT + 9 AS col1, - col0 FROM tab2 AS cor0
----
9
-46
9
-64
9
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-735
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND - - CAST( NULL AS SIGNED ) * + 0
----

skipif mysql # not compatible
query III rowsort label-735
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND - - CAST ( NULL AS INTEGER ) * + 0
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 / + col0 * 85 IS NULL
----
14
47
5

query I rowsort
SELECT ALL - + 23 FROM tab1 cor0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * 10 col2 FROM tab0 AS cor0
----
150
870
970

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) < ( col1 )
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-743
SELECT CAST( 78 AS SIGNED ) * - - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3666
7722
780

skipif mysql # not compatible
query I rowsort label-743
SELECT CAST ( 78 AS INTEGER ) * - - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3666
7722
780

query I rowsort
SELECT DISTINCT - col0 + + 82 FROM tab2 AS cor0
----
18
36
7

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

query I rowsort
SELECT + - 56 + - + 65 AS col1 FROM tab1 cor0
----
-121
-121
-121

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-748
SELECT ALL - - CAST( + 35 AS SIGNED ) + + + col1 + + 36 AS col0 FROM tab2 AS cor0
----
122
138
148

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL - - CAST ( + 35 AS INTEGER ) + + + col1 + + 36 AS col0 FROM tab2 AS cor0
----
122
138
148

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

query I rowsort
SELECT col1 + + 27 + col1 * - - 84 AS col1 FROM tab0
----
112
1812
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT + MIN( col2 ) FROM tab2 WHERE - + 43 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT + MIN ( col2 ) FROM tab2 WHERE - + 43 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + 55 > NULL
----

query I rowsort
SELECT + col0 + + ( - - col1 ) + - 90 + - + 84 FROM tab0
----
-66
-76
-78

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

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

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, 30 * col2 + - col1 + + + ( 23 ) FROM tab1
----
14
2889
47
2016
5
1788

query I rowsort
SELECT ALL - col2 + + + col2 + - 28 * - 87 AS col2 FROM tab1
----
2436
2436
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT + 57 - + MAX( 58 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-759
SELECT + 57 - + MAX ( 58 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col1 + - 34 AS col1 FROM tab1 AS cor0
----
-20
-29
13

query I rowsort
SELECT ALL + 18 - - - col0 FROM tab0 AS cor0
----
-69
-79
3

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

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

query I rowsort
SELECT ALL - 32 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT DISTINCT - ( 5 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( col0 AS SIGNED ) / col0 * col0 AND + col0
----

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT - ( 5 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( col0 AS INTEGER ) / col0 * col0 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-769
SELECT - + col1 DIV - CAST( + 58 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-769
SELECT - + col1 / - CAST ( + 58 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL ( - 71 ) + MIN( ALL col2 ) - + 42 FROM tab1 AS cor0 WHERE 5 * - col1 IS NOT NULL
----
-54

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL ( - 71 ) + MIN ( ALL col2 ) - + 42 FROM tab1 AS cor0 WHERE 5 * - col1 IS NOT NULL
----
-54

query I rowsort
SELECT ALL col1 * - 24 FROM tab1
----
-1128
-120
-336

query I rowsort
SELECT + 85 * + col2 AS col2 FROM tab2
----
1955
3400
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT + ( - COUNT( ALL col0 ) ) * 12 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT + ( - COUNT ( ALL col0 ) ) * 12 FROM tab2 AS cor0
----
-36

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

query I rowsort
SELECT ALL - ( 77 ) FROM tab1
----
-77
-77
-77

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

query II rowsort
SELECT + 75 AS col2, + 78 FROM tab2 cor0
----
75
78
75
78
75
78

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) < - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL - + ( + 79 ) + - 38 - SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
-312

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL - + ( + 79 ) + - 38 - SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
-312

query I rowsort
SELECT ALL + col0 + + 74 FROM tab1 cor0
----
125
159
165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE col0 + col0 * col2 NOT IN ( + 56, - col1 * - + 49 )
----
3

skipif mysql # not compatible
query I rowsort label-783
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 + col0 * col2 NOT IN ( + 56, - col1 * - + 49 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT ALL 71 - COUNT( * ) + + - 74 AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL 71 - COUNT ( * ) + + - 74 AS col0 FROM tab2
----
-6

query I rowsort
SELECT 50 - + + 0 FROM tab2
----
50
50
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-786
SELECT 5 * SUM( 90 ) - - AVG ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT 5 * SUM ( 90 ) - - AVG ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2
----
NULL

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

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

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

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

query I rowsort
SELECT col1 FROM tab2 WHERE ( - col2 ) > - col1 + + - col1
----
51
67
77

query I rowsort
SELECT DISTINCT + + 9 FROM tab0 WHERE NOT ( - 28 ) IS NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-791
SELECT ALL - CAST( col2 AS SIGNED ) AS col1, + 87 * 61 FROM tab2
----
-23
5307
-40
5307
-58
5307

skipif mysql # not compatible
query II rowsort label-791
SELECT ALL - CAST ( col2 AS INTEGER ) AS col1, + 87 * 61 FROM tab2
----
-23
5307
-40
5307
-58
5307

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 97 + + 93 = + 83 + + - 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT ALL + 60 * + COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL + 60 * + COUNT ( * ) FROM tab1
----
180

query I rowsort
SELECT ALL + + 71 * - + 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f941e96381f1af2ef3424eebb4b88964

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL + 79 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL + 79 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
237

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

query II rowsort
SELECT ALL - col1 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT - + SUM( + 43 ) AS col1 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-799
SELECT - + SUM ( + 43 ) AS col1 FROM tab1 AS cor0
----
-129

query I rowsort
SELECT col0 * 23 AS col0 FROM tab2
----
1058
1472
1725

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT - col1 DIV - - 99 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-801
SELECT - col1 / - - 99 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 82 * - 29 FROM tab1
----
-2378
-2378
-2378

query I rowsort
SELECT ALL col2 * - 18 FROM tab2
----
-1044
-414
-720

onlyif mysql # DIV for integer division: 
query II rowsort label-804
SELECT 66 - 89 DIV + col0 * - + ( - 7 ) AS col1, 11 AS col1 FROM tab0 WHERE NOT - 65 <= - col2
----
66
11

skipif mysql # not compatible
query II rowsort label-804
SELECT 66 - 89 / + col0 * - + ( - 7 ) AS col1, 11 AS col1 FROM tab0 WHERE NOT - 65 <= - col2
----
66
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 18 - - - col1 + - - col1 + + + col0 col1 FROM tab0 AS cor0
----
-1479
-1649
-255

query I rowsort
SELECT + 43 * 87 FROM tab1
----
3741
3741
3741

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

query I rowsort
SELECT - 77 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-809
SELECT - + col1 / + - 86 * + ( 42 ) AS col0, 86 * col0 AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) + - + 66 BETWEEN + 90 AND - + col0
----

skipif mysql # not compatible
query II rowsort label-809
SELECT - + col1 / + - 86 * + ( 42 ) AS col0, 86 * col0 AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + - + 66 BETWEEN + 90 AND - + col0
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE + col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 63 + - 46 >= col0
----

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

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

query I rowsort
SELECT col1 - + 24 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT col1 + 92 - - col1 FROM tab1 AS cor0 WHERE + ( + col2 ) - - col0 + + col2 IS NULL
----

query I rowsort
SELECT + col1 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-2550
-4422
-5852

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-816
SELECT ALL - CAST( NULL AS DECIMAL ) - + + 54 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL - CAST ( NULL AS REAL ) - + + 54 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 82 * + 85 - - col1 + + col1 AS col2 FROM tab1 AS cor0
----
-6876
-6942
-6960

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-823
SELECT 93, COUNT( * ) AS col2 FROM tab2
----
93
3

skipif mysql # not compatible
query II rowsort label-823
SELECT 93, COUNT ( * ) AS col2 FROM tab2
----
93
3

query I rowsort
SELECT col2 - + + col0 AS col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL 42 - 3 FROM tab0 AS cor0
----
39
39
39

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

query I rowsort
SELECT + - 88 * + 51 - - 19 FROM tab0 AS cor0
----
-4469
-4469
-4469

onlyif mysql # aggregate syntax: 
query II rowsort label-828
SELECT ALL - 70 col2, COUNT( * ) * 58 col2 FROM tab1 cor0
----
-70
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-828
SELECT ALL - 70 col2, COUNT ( * ) * 58 col2 FROM tab1 cor0
----
-70
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 55 col2 FROM tab1 AS cor0 WHERE + 78 + 7 IS NULL
----

query I rowsort
SELECT ALL + - 91 FROM tab0 cor0
----
-91
-91
-91

query I rowsort
SELECT ALL + 73 * - - col0 - + - 48 FROM tab0 AS cor0
----
1143
6399
7129

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT 51 * + COUNT( * ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-836
SELECT 51 * + COUNT ( * ) FROM tab2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT MAX( ALL - 49 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-837
SELECT MAX ( ALL - 49 ) FROM tab1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT 92 DIV COUNT( * ) AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-838
SELECT 92 / COUNT ( * ) AS col1 FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT DISTINCT + MIN( DISTINCT col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT + MIN ( DISTINCT col2 ) AS col1 FROM tab2
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 72 IS NULL
----

query I rowsort
SELECT DISTINCT + 89 + - col0 AS col2 FROM tab2 AS cor0
----
14
25
43

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE col2 + - col2 / - + col2 * col1 = - ( - + 85 ) + 57 + - 19
----
0

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 + - col2 / - + col2 * col1 = - ( - + 85 ) + 57 + - 19
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT ALL + - col1 DIV - - ( - + col0 ) + + col0 + + ( + 26 ) * col0 FROM tab2 cor0
----
1243
1729
2025

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + - col1 / - - ( - + col0 ) + + col0 + + ( + 26 ) * col0 FROM tab2 cor0
----
1243
1729
2025

query I rowsort
SELECT DISTINCT - 60 * + 81 + 56 * col2 FROM tab1
----
-1052
-1556
516

query I rowsort
SELECT ALL 78 * 42 FROM tab0
----
3276
3276
3276

query I rowsort
SELECT - 96 AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE NOT col0 * 90 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-849
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE + col1 * CAST( col0 AS SIGNED ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-849
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE + col1 * CAST ( col0 AS INTEGER ) >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL MIN( DISTINCT 1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL MIN ( DISTINCT 1 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT ALL + SUM( + col1 ) * - 86 FROM tab0
----
-8858

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL + SUM ( + col1 ) * - 86 FROM tab0
----
-8858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT ALL + CAST( - 25 AS SIGNED ) * col2 FROM tab2
----
-1000
-1450
-575

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + CAST ( - 25 AS INTEGER ) * col2 FROM tab2
----
-1000
-1450
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT COUNT( ALL 87 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-853
SELECT COUNT ( ALL 87 ) FROM tab1
----
3

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

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT + COUNT ( * ) * - 34 FROM tab2
----
-102

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( + col0 ) * ( col1 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT ALL + 96 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL <= 11
----

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL + 96 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL <= 11
----

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

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

query I rowsort
SELECT DISTINCT col0 - + 46 FROM tab1
----
39
45
5

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN NULL AND 79
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-861
SELECT 78 DIV col2 AS col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-861
SELECT 78 / col2 AS col2 FROM tab2
----
1
1
3

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) = ( col0 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + 11 > col2 + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + 11 > col2 + col1
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT - 79 * col1 FROM tab1 WHERE - 72 + + ( - col1 ) * - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT ALL - 24 DIV - 70 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - 24 / - 70 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT COUNT( * ) * 65 + 23 AS col0 FROM tab1
----
218

skipif mysql # not compatible
query I rowsort label-869
SELECT COUNT ( * ) * 65 + 23 AS col0 FROM tab1
----
218

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

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT CAST ( col2 AS INTEGER ) / - 45 FROM tab0
----
-1
-2
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT CAST( 27 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-872
SELECT CAST ( 27 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
27
27
27

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

query I rowsort
SELECT + 97 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-875
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

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

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

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

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

query I rowsort
SELECT + col0 * col2 FROM tab2 AS cor0 WHERE NOT col2 * col0 IS NULL
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0 WHERE NOT ( col2 / + col1 ) >= 43
----
51
85
91

query I rowsort
SELECT - 49 * col1 AS col0 FROM tab0 AS cor0
----
-1029
-3969
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT + MIN( DISTINCT col2 ) + COUNT( * ) * ( - 55 ) FROM tab1 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-882
SELECT + MIN ( DISTINCT col2 ) + COUNT ( * ) * ( - 55 ) FROM tab1 AS cor0
----
-106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab1 cor0 WHERE NOT NULL >= ( + 42 * col1 )
----

query I rowsort
SELECT ( - - 78 ) + 15 FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT MIN( + col2 ) * + 96 + - ( - COUNT( * ) ) AS col1 FROM tab1
----
5667

skipif mysql # not compatible
query I rowsort label-885
SELECT MIN ( + col2 ) * + 96 + - ( - COUNT ( * ) ) AS col1 FROM tab1
----
5667

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

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

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

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

query I rowsort
SELECT - col2 - - col0 FROM tab1 WHERE ( col2 ) IN ( - 34 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 + 72 ) IN ( col0 * col0 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-895
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) + + col0 * + col1
----

skipif mysql # not compatible
query III rowsort label-895
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) + + col0 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT DISTINCT col1 - 14 DIV - col0 + + 51 * col1 AS col2 FROM tab2
----
2652
3484
4004

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT col1 - 14 / - col0 + + 51 * col1 AS col2 FROM tab2
----
2652
3484
4004

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

query I rowsort
SELECT ALL col2 * - 10 AS col1 FROM tab0
----
-100
-470
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL COUNT( * ) + 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
28

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL COUNT ( * ) + 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
28

query I rowsort
SELECT + + 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT DISTINCT col2 DIV - ( + 60 ) col2 FROM tab0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-901
SELECT DISTINCT col2 / - ( + 60 ) col2 FROM tab0
----
-1
0

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

query I rowsort
SELECT col1 + ( + 22 ) * - col2 FROM tab0 cor0
----
-199
-2177
-953

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

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT ALL - col1 DIV - 39 + col2 + col1 FROM tab0 cor0
----
100
130
31

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL - col1 / - 39 + col2 + col1 FROM tab0 cor0
----
100
130
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( AVG ( col2 ) ) col1 FROM tab0 cor0 WHERE NOT + col2 <> - - 43 - col2 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT - 31 + ( - ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-907
SELECT - 31 + ( - ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
-34

query I rowsort
SELECT col2 + + col1 + + col2 FROM tab1 AS cor0
----
123
183
206

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

skipif mysql # not compatible
query I rowsort label-909
SELECT + COUNT ( * ) + - + 61 FROM tab0 AS cor0
----
-58

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

query I rowsort
SELECT - + col1 + - 85 + col2 * + col2 FROM tab1 AS cor0
----
3391
4492
9117

query I rowsort
SELECT ALL + 88 + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
109
169
89

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT DISTINCT COUNT( * ) + + 7 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT COUNT ( * ) + + 7 FROM tab2 AS cor0
----
10

query I rowsort
SELECT ALL - col0 * + + col2 + col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT + + COUNT( DISTINCT + + 51 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-915
SELECT + + COUNT ( DISTINCT + + 51 ) col0 FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT ALL ( - ( - col1 ) ) AS col1 FROM tab2 WHERE ( col0 ) <> ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-918
SELECT ALL col1 * - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL col1 * - + CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 38 FROM tab0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT - CAST( + ( - ( - 35 ) ) AS SIGNED ) AS col0 FROM tab2
----
-35
-35
-35

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

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

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

query I rowsort
SELECT - col0 * col0 + + 62 AS col0 FROM tab2 cor0 WHERE NOT ( NOT NULL = NULL )
----

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT col0 + 50 < - 43
----
15
87
97

query I rowsort
SELECT DISTINCT + col0 * + + ( - 88 ) AS col2 FROM tab0 cor0
----
-1320
-7656
-8536

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

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + COUNT ( * ) * - 21 FROM tab2
----
-63

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 / 12 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + + 1 + + + 6 + col2 * - col2 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - 83 FROM tab1 AS cor0
----
-1162
-3901
-415

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE ( col0 ) BETWEEN NULL AND ( NULL )
----

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

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

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

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

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

query I rowsort
SELECT ALL col2 + + + col1 AS col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT ALL CAST( + + CAST( NULL AS SIGNED ) 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-935
SELECT ALL CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( + col1 ) NOT BETWEEN - col2 * - col0 * col2 + + 36 + + 1 AND - 47
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + 81 NOT IN ( 3 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT DISTINCT col2 DIV + col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT col2 / + col1 AS col2 FROM tab2
----
0

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

skipif mysql # not compatible
query III rowsort label-941
SELECT * FROM tab0 WHERE ( - CAST ( - col1 AS INTEGER ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + 50 FROM tab1 WHERE NOT col1 > - + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT DISTINCT MIN( + - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT MIN ( + - col1 ) FROM tab1
----
-47

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT + 13 * - col2 FROM tab0
----
-1287
-130
-611

query II rowsort
SELECT DISTINCT + 25 AS col0, 22 AS col1 FROM tab0
----
25
22

query II rowsort
SELECT ALL + col2 AS col2, - 53 * + col1 AS col1 FROM tab2
----
23
-2703
40
-4081
58
-3551

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 >= - - col2
----

query II rowsort
SELECT ALL + col0 AS col1, ( + + 38 ) AS col1 FROM tab2 WHERE - + col2 <> NULL
----

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

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

query I rowsort
SELECT DISTINCT + 87 + + col1 + + col2 FROM tab2
----
161
204
212

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-952
SELECT - 88, CAST( + 49 AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
18 values hashing to 5637ea91038fa6bc0189b52b60fbcfac

skipif mysql # not compatible
query II rowsort label-952
SELECT - 88, CAST ( + 49 AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
18 values hashing to 5637ea91038fa6bc0189b52b60fbcfac

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE col0 >= NULL
----

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

query I rowsort
SELECT ALL - - col2 * - - col1 + col0 FROM tab0 AS cor0
----
196
297
3822

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-958
SELECT col2 DIV - + col0 AS col2, + col0 DIV col0 * - 86 col2 FROM tab2
----
0
-86
0
-86
0
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-958
SELECT col2 / - + col0 AS col2, + col0 / col0 * - 86 col2 FROM tab2
----
0
-86
0
-86
0
-86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL + MIN( - col1 ) * - + 23 FROM tab0 AS cor0
----
1863

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL + MIN ( - col1 ) * - + 23 FROM tab0 AS cor0
----
1863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT - - col0 * - col1 - CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-1262
-1837
-196

skipif mysql # not compatible
query I rowsort label-961
SELECT - - col0 * - col1 - CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-1262
-1837
-196

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

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

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

query II rowsort
SELECT DISTINCT - col1 * 93 AS col1, col2 FROM tab2 AS cor0
----
-4743
23
-6231
58
-7161
40

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT ALL + + 50 DIV - - 41 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL + + 50 / - - 41 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + 94 AS col2 FROM tab2 AS cor0 WHERE 92 - - + 59 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 + - col2 * + col2 * col0 * + 96 AS col1 FROM tab2 AS cor0
----
-2334891
-24216914
-9827320

query I rowsort
SELECT - 38 * + col2 AS col1 FROM tab1
----
-2242
-2584
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL SUM( + 23 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL SUM ( + 23 ) FROM tab0
----
69

query I rowsort
SELECT - 93 + + 53 + - col2 FROM tab0 WHERE NOT col0 / col1 + - 85 IS NULL
----
-139
-50
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, 41 * - col2 * - 10 AS col0 FROM tab0
----
1
40590
21
4100
81
19270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab1 WHERE NULL <> - - col1 - - + col0
----

query I rowsort
SELECT DISTINCT - ( - 39 ) AS col2 FROM tab1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

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

query II rowsort
SELECT col0 AS col2, col0 * + col0 AS col2 FROM tab1 cor0
----
51
2601
85
7225
91
8281

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

query I rowsort
SELECT DISTINCT - 49 * + + col0 FROM tab1
----
-2499
-4165
-4459

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND + 27
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-980
SELECT ALL - + CAST( NULL AS SIGNED ) * COUNT( col2 ) + + 40 - + 77 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL - + CAST ( NULL AS INTEGER ) * COUNT ( col2 ) + + 40 - + 77 FROM tab1 cor0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-982
SELECT COUNT( * ) + + 70 DIV - COUNT( * ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-982
SELECT COUNT ( * ) + + 70 / - COUNT ( * ) FROM tab0 AS cor0
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-983
SELECT ALL - ( 96 ) + - 31 / + CAST( NULL AS DECIMAL ) * + 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL - ( 96 ) + - 31 / + CAST ( NULL AS REAL ) * + 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-984
SELECT DISTINCT - 12 AS col0, - 60 * + + col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-984
SELECT DISTINCT - 12 AS col0, - 60 * + + col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
-12
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-985
SELECT + 4 DIV 57 + + col0 col0, - col0 FROM tab0
----
15
-15
87
-87
97
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-985
SELECT + 4 / 57 + + col0 col0, - col0 FROM tab0
----
15
-15
87
-87
97
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-987
SELECT + 91 + col0 + + CAST( - col2 AS SIGNED ) * - col1 * + col0 col2 FROM tab0
----
18448
57211
9791

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-987
SELECT + 91 + col0 + + CAST ( - col2 AS INTEGER ) * - col1 * + col0 col2 FROM tab0
----
18448
57211
9791

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + - col1 + - - 0 < NULL
----

query I rowsort
SELECT ALL + ( + ( - + col0 ) ) AS col0 FROM tab0 WHERE NOT NULL <> ( col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT - MIN( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-991
SELECT - MIN ( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1

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

query III rowsort
SELECT * FROM tab2 WHERE ( - ( col0 ) / + 73 * + 34 * + + col1 ) IS NULL
----

query I rowsort
SELECT 15 * col0 + + + col2 FROM tab0
----
1315
1554
272

query I rowsort
SELECT + - col1 * - 62 AS col2 FROM tab0 AS cor0
----
1302
5022
62

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT + COUNT( * ) * + 33 AS col2 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-996
SELECT + COUNT ( * ) * + 33 AS col2 FROM tab2 AS cor0
----
99

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

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

query II rowsort
SELECT col1, col2 - 7 AS col0 FROM tab1 AS cor0
----
14
89
47
61
5
52

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1001
SELECT DISTINCT + col2 * + - 96 * - 18 + + 69 * + - col2 + col0 AS col1 FROM tab2 WHERE NULL IN ( + 36 - 85, - col0, - + CAST( + - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT + col2 * + - 96 * - 18 + + 69 * + - col2 + col0 AS col1 FROM tab2 WHERE NULL IN ( + 36 - 85, - col0, - + CAST ( + - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT + MAX( col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1002
SELECT + MAX ( col2 ) FROM tab0
----
99

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1006
SELECT + COUNT ( * ) / 38 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + 47 + - col2 col2 FROM tab2 AS cor0
----
64
70
71

query I rowsort
SELECT DISTINCT - + 91 * + col0 + 3 FROM tab1 AS cor0
----
-4638
-7732
-8278

query I rowsort
SELECT DISTINCT col2 + - col1 * + + 65 - 23 AS col2 FROM tab0 AS cor0
----
-1378
-5241
11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - 86 AND ( NULL )
----

query I rowsort
SELECT ALL - + 84 FROM tab2 cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT - + 88 + - col1 FROM tab0 AS cor0
----
-109
-169
-89

query I rowsort
SELECT col0 * + + 37 * - + col1 AS col2 FROM tab1
----
-15725
-158249
-26418

query I rowsort
SELECT + col0 * + 72 - - col0 + + col0 FROM tab1
----
3774
6290
6734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * + - SUM( DISTINCT - col2 ) - COUNT( * ) FROM tab1
----
-672

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * + - SUM ( DISTINCT - col2 ) - COUNT ( * ) FROM tab1
----
-672

query I rowsort
SELECT ALL col2 * + - 93 * - + col0 FROM tab0
----
65565
80910
893079

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT 56 - + COUNT( DISTINCT + col1 ) AS col0 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-1017
SELECT 56 - + COUNT ( DISTINCT + col1 ) AS col0 FROM tab1
----
53

query I rowsort
SELECT + ( - col2 ) + col2 FROM tab2 WHERE NULL >= NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL COUNT( * ) * + + 27 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL COUNT ( * ) * + + 27 FROM tab1
----
81

query I rowsort
SELECT ALL col1 - - + 21 AS col0 FROM tab2
----
72
88
98

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1025
SELECT DISTINCT - 17, - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-17
3

skipif mysql # not compatible
query II rowsort label-1025
SELECT DISTINCT - 17, - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-17
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT ALL - + col1 DIV - + col0 + + - col2 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL - + col1 / - + col0 + + - col2 FROM tab1 cor0
----
-59
-68
-96

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

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

skipif mysql # not compatible
query I rowsort label-1029
SELECT AVG ( col0 ) - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 89 + + + 14 + + CAST ( NULL AS INTEGER ) + - col1 * - col1 IS NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1030
SELECT - MIN ( + 87 ) FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-1031
SELECT DISTINCT + 5 AS col1, MAX( ALL col0 ) FROM tab1 AS cor0
----
5
91

skipif mysql # not compatible
query II rowsort label-1031
SELECT DISTINCT + 5 AS col1, MAX ( ALL col0 ) FROM tab1 AS cor0
----
5
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + - SUM( + - 99 ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-1032
SELECT + - SUM ( + - 99 ) FROM tab1 AS cor0
----
297

onlyif mysql # DIV for integer division: 
query II rowsort label-1033
SELECT DISTINCT col1 AS col1, 0 DIV col2 + - col1 FROM tab2
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-1033
SELECT DISTINCT col1 AS col1, 0 / col2 + - col1 FROM tab2
----
51
-51
67
-67
77
-77

query II rowsort
SELECT + col0, col1 * + 10 FROM tab1
----
51
140
85
50
91
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1035
SELECT ( + + CAST( NULL AS SIGNED ) ), - MAX( + col0 ) AS col0 FROM tab1
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-1035
SELECT ( + + CAST ( NULL AS INTEGER ) ), - MAX ( + col0 ) AS col0 FROM tab1
----
NULL
-91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 3 AS col0, - ( + - col1 ) col0 FROM tab1
----
3
14
3
47
3
5

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1040
SELECT SUM( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT SUM ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL ( - col0 ) FROM tab1 WHERE - col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - + col0 * 19 + col0 FROM tab1 AS cor0
----
-1530
-1638
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT + + COUNT( * ) * + - 78 FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-1043
SELECT + + COUNT ( * ) * + - 78 FROM tab0 AS cor0
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT + 97 * - col0 * - col0 DIV + ( - ( - + col0 ) ) AS col0 FROM tab0
----
1455
8439
9409

skipif mysql # not compatible
query I rowsort label-1044
SELECT + 97 * - col0 * - col0 / + ( - ( - + col0 ) ) AS col0 FROM tab0
----
1455
8439
9409

query I rowsort
SELECT ALL - + 42 * 8 * col0 AS col0 FROM tab1 AS cor0
----
-17136
-28560
-30576

onlyif mysql # DIV for integer division: 
query I rowsort label-1046
SELECT DISTINCT - col1 + col0 DIV col1 + - - 66 FROM tab0 AS cor0
----
-15
162
49

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT - col1 + col0 / col1 + - - 66 FROM tab0 AS cor0
----
-15
162
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT ALL 1 * - COUNT( * ) DIV + 80 + 97 * + 13 AS col2 FROM tab2 AS cor0
----
1261

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL 1 * - COUNT ( * ) / + 80 + 97 * + 13 AS col2 FROM tab2 AS cor0
----
1261

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT + MAX( ALL - col0 ) col1 FROM tab0 AS cor0 WHERE col2 * col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1048
SELECT + MAX ( ALL - col0 ) col1 FROM tab0 AS cor0 WHERE col2 * col1 IS NULL
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1051
SELECT col2 DIV - col2 + + - col0 FROM tab0 cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-1051
SELECT col2 / - col2 + + - col0 FROM tab0 cor0
----
-16
-88
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * + col1 + - 68 col1 FROM tab0
----
-26
-66
94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT DISTINCT - col1 DIV 22 FROM tab1
----
-2
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - col1 / 22 FROM tab1
----
-2
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT COUNT( * ) + + 87 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT COUNT ( * ) + + 87 FROM tab1
----
90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT ALL - col2 DIV + 58 col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1058
SELECT ALL - col2 / + 58 col1 FROM tab2 AS cor0
----
-1
0
0

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

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

query I rowsort
SELECT + 91 - + col0 AS col1 FROM tab1 AS cor0
----
0
40
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT - 59 * - COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - 59 * - COUNT ( * ) FROM tab1
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1063
SELECT - - SUM( ALL CAST( - + col2 AS SIGNED ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-1063
SELECT - - SUM ( ALL CAST ( - + col2 AS INTEGER ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-223

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT SUM( col2 ) * + - MAX( - ( - col1 ) ) FROM tab1 AS cor0
----
-10481

skipif mysql # not compatible
query I rowsort label-1066
SELECT SUM ( col2 ) * + - MAX ( - ( - col1 ) ) FROM tab1 AS cor0
----
-10481

onlyif mysql # DIV for integer division: 
query II rowsort label-1067
SELECT - 34 DIV + col0 AS col0, col1 AS col1 FROM tab0 AS cor0
----
-2
81
0
1
0
21

skipif mysql # not compatible
query II rowsort label-1067
SELECT - 34 / + col0 AS col0, col1 AS col1 FROM tab0 AS cor0
----
-2
81
0
1
0
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1068
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + + col1 + col0 + + 19 - - col1 + + - col0 + - 37 * + - CAST( NULL AS SIGNED ) * + + col1 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-1068
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + + col1 + col0 + + 19 - - col1 + + - col0 + - 37 * + - CAST ( NULL AS INTEGER ) * + + col1 * - col1 )
----

query I rowsort
SELECT DISTINCT - col2 * - + 36 FROM tab1 AS cor0
----
2124
2448
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 0 = - - col1
----
-3

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 0 = - - col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1071
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 * - CAST( NULL AS SIGNED ) = + + col1 - + - 10
----

skipif mysql # not compatible
query III rowsort label-1071
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 * - CAST ( NULL AS INTEGER ) = + + col1 - + - 10
----

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 27 * - col2 NOT IN ( col2, - col1, + 29 * col0 )
----

query II rowsort
SELECT 31 AS col0, 6 AS col1 FROM tab1
----
31
6
31
6
31
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT ALL + MAX( DISTINCT + 72 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL + MAX ( DISTINCT + 72 ) FROM tab2
----
72

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

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL MAX ( + - col2 ) AS col0 FROM tab1
----
-59

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ( MIN( DISTINCT + + col0 ) ) + + + MAX( + - col0 ) * + + ( 57 ) + - 74 FROM tab2
----
-2650

skipif mysql # not compatible
query I rowsort label-1080
SELECT ( MIN ( DISTINCT + + col0 ) ) + + + MAX ( + - col0 ) * + + ( 57 ) + - 74 FROM tab2
----
-2650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 WHERE NOT col2 + col2 + - ( + 99 ) / col1 + + + col1 = col2
----
59
68
96

query I rowsort
SELECT 72 * - 77 AS col2 FROM tab2
----
-5544
-5544
-5544

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - ( + col1 ) - - col0 col2 FROM tab0
----
-10
66
-47
-66
-99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT ALL + - MIN( - 4 ) AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + - MIN ( - 4 ) AS col0 FROM tab2 AS cor0
----
4

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

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

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

query I rowsort
SELECT ALL + - col0 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
-51
-85
-91

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

query I rowsort
SELECT - col1 + col2 FROM tab2 AS cor0 WHERE ( NULL ) = - 33
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1093
SELECT ALL - col2 * + 57 + col1 - ( - 31 ) - - 5, 47 DIV + - col0 AS col0 FROM tab1 cor0
----
-3322
0
-3793
0
-5422
0

skipif mysql # not compatible
query II rowsort label-1093
SELECT ALL - col2 * + 57 + col1 - ( - 31 ) - - 5, 47 / + - col0 AS col0 FROM tab1 cor0
----
-3322
0
-3793
0
-5422
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT ALL - 92 DIV col2 FROM tab0 AS cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - 92 / col2 FROM tab0 AS cor0
----
-1
-9
0

query II rowsort
SELECT - col2 AS col0, col0 - + col2 * + + col0 + 80 + + + col1 AS col2 FROM tab2 WHERE NULL = ( + - col2 / + + 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT - COUNT( * ) * 52 - COUNT( * ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT - COUNT ( * ) * 52 - COUNT ( * ) FROM tab0
----
-159

query II rowsort
SELECT + col2 + 14 + col0 * + + 0 - col0 - + col1 * + col2 AS col1, col2 AS col0 FROM tab1
----
-1285
96
-307
59
-3205
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1099
SELECT DISTINCT 93 + + + COUNT( * ), + MAX( DISTINCT - 61 ) AS col2 FROM tab0
----
96
-61

skipif mysql # not compatible
query II rowsort label-1099
SELECT DISTINCT 93 + + + COUNT ( * ), + MAX ( DISTINCT - 61 ) AS col2 FROM tab0
----
96
-61

query I rowsort
SELECT 56 + + col2 AS col0 FROM tab2
----
114
79
96

query I rowsort
SELECT DISTINCT - col0 * - + col0 - - + col1 AS col2 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT DISTINCT - col1 * + - col2 AS col0 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT col0 * + col1 * col1 * - 8 + - col1 AS col1 FROM tab2 AS cor0
----
-2693467
-3035725
-957219

query I rowsort
SELECT DISTINCT + col2 * + + ( col1 ) * + + col1 FROM tab2 AS cor0
----
237160
260362
59823

query II rowsort
SELECT ALL + - col0 AS col1, ( + 41 ) AS col2 FROM tab2 AS cor0
----
-46
41
-64
41
-75
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col2, + 35 * col0 FROM tab1 AS cor0
----
59
2975
68
3185
96
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + COUNT( * ) FROM tab1 cor0 WHERE NOT col1 BETWEEN - col0 * - col2 + ( - col1 ) + + col0 + - - col0 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-1107
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NOT col1 BETWEEN - col0 * - col2 + ( - col1 ) + + col0 + - - col0 AND NULL
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT DISTINCT + COUNT( * ) * 75 * MAX( DISTINCT - col1 ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT + COUNT ( * ) * 75 * MAX ( DISTINCT - col1 ) FROM tab0
----
-225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1111
SELECT ALL - MAX( DISTINCT - CAST( col1 AS SIGNED ) ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - MAX ( DISTINCT - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab2
----
51

query I rowsort
SELECT + col0 + - 21 AS col0 FROM tab2
----
25
43
54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + - col0 NOT BETWEEN col0 AND 74 * 11 + 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + col0 + - col2 - + 48 + + 73 * - col2 >= NULL
----

query I rowsort
SELECT - - 88 + col2 * + 1 FROM tab0 AS cor0
----
135
187
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1117
SELECT col1 / + + col1 AS col2 FROM tab2 AS cor0 WHERE - col0 >= CAST( + 20 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1117
SELECT col1 / + + col1 AS col2 FROM tab2 AS cor0 WHERE - col0 >= CAST ( + 20 AS REAL )
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 14 + 98 FROM tab1 AS cor0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT + COUNT( * ) + - + 47 FROM tab2 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1123
SELECT + COUNT ( * ) + - + 47 FROM tab2 cor0
----
-44

query I rowsort
SELECT DISTINCT + + col0 * + 3 + col1 FROM tab0 AS cor0
----
126
282
292

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( - 7 ) ) + + 21 - - + 61 * + col1 IS NULL
----

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL CAST ( + - 38 AS INTEGER ) FROM tab0
----
-38
-38
-38

query II rowsort
SELECT - col1 * - col2, col0 AS col2 FROM tab0
----
210
87
3807
15
99
97

query II rowsort
SELECT ALL + col0 * ( ( - 83 ) ), col2 + col0 AS col1 FROM tab1
----
-4233
147
-7055
144
-7553
159

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

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

query I rowsort
SELECT DISTINCT + ( + + col0 ) * + col0 + - col2 FROM tab1 AS cor0
----
2505
7166
8213

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + - - col1 * + + 18 IS NULL
----

query I rowsort
SELECT DISTINCT 56 - 12 AS col1 FROM tab2, tab2 AS cor0
----
44

query I rowsort
SELECT ALL + 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1137
SELECT CAST( - col0 AS SIGNED ) AS col2, col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
query II rowsort label-1137
SELECT CAST ( - col0 AS INTEGER ) AS col2, col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1138
SELECT ALL - col2 * col2 DIV + - col0 AS col2 FROM tab2
----
11
25
44

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL - col2 * col2 / + - col0 AS col2 FROM tab2
----
11
25
44

query I rowsort
SELECT DISTINCT - + col0 * + - col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1141
SELECT DISTINCT - 70 DIV - col0 + + 77 * + col1 FROM tab0 cor0
----
1617
6241
77

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT - 70 / - col0 + + 77 * + col1 FROM tab0 cor0
----
1617
6241
77

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

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

query I rowsort
SELECT DISTINCT + col2 + + 22 FROM tab2 AS cor0 WHERE NOT + 21 / + - col1 + - col0 BETWEEN + + 40 AND + col1
----
45
62
80

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

query I rowsort
SELECT - ( 79 ) FROM tab2
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT MAX( - + 94 ) + + 51 FROM tab2 WHERE NOT + col0 IS NULL
----
-43

skipif mysql # not compatible
query I rowsort label-1146
SELECT MAX ( - + 94 ) + + 51 FROM tab2 WHERE NOT + col0 IS NULL
----
-43

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

query II rowsort
SELECT + col0 AS col0, 23 - + col0 FROM tab1
----
51
-28
85
-62
91
-68

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

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

query I rowsort
SELECT + + 65 + - col1 * - + col1 FROM tab1 AS cor0
----
2274
261
90

query I rowsort
SELECT ALL + - col1 + - 79 AS col2 FROM tab0 AS cor0
----
-100
-160
-80

query I rowsort
SELECT DISTINCT + 46 + + col2 FROM tab1 AS cor0
----
105
114
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT ALL 66 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL 66 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - + col2 + + 12 AS col0 FROM tab2 AS cor0
----
-11
-28
-46

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

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT + MAX ( ALL + col0 ) * - + COUNT ( * ) FROM tab0 cor0
----
-291

query I rowsort
SELECT ALL - col1 + - col1 + col2 * - col2 * 79 FROM tab2 AS cor0
----
-126554
-265890
-41893

query I rowsort
SELECT ALL 56 + + - col2 + + 98 AS col1 FROM tab1 AS cor0
----
58
86
95

query I rowsort
SELECT ALL + + 63 AS col2 FROM tab0 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT DISTINCT - COUNT( * ) * - MAX( DISTINCT 4 ) AS col0 FROM tab2, tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT - COUNT ( * ) * - MAX ( DISTINCT 4 ) AS col0 FROM tab2, tab0 AS cor0
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - col1 ) + + col2 IS NULL
----

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

query I rowsort
SELECT 7 * - - col1 FROM tab2
----
357
469
539

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL + 78 * - - COUNT( * ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL + 78 * - - COUNT ( * ) FROM tab0
----
234

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1165
SELECT + MIN ( DISTINCT - 69 ) col1 FROM tab0 AS cor0
----
-69

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

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 1 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1168
SELECT + COUNT( ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1168
SELECT + COUNT ( ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT 96 * - - col0 FROM tab0 AS cor0
----
1440
8352
9312

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= ( col1 )
----

query II rowsort
SELECT - ( col1 ) AS col1, - 79 * + - 52 FROM tab1 AS cor0
----
-14
4108
-47
4108
-5
4108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) col1 FROM tab1 AS cor0 WHERE col1 - col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col0 FROM tab1 cor0
----
110
115
64

query II rowsort
SELECT - col0 + - col2 AS col1, - col2 AS col1 FROM tab2
----
-104
-40
-133
-58
-69
-23

query I rowsort
SELECT col1 * col2 * - 1 + - - col0 + - 98 AS col2 FROM tab2
----
-1225
-3114
-3909

query II rowsort
SELECT ALL 90 * - col0, + col1 AS col2 FROM tab1
----
-4590
14
-7650
5
-8190
47

query II rowsort
SELECT ALL col2 + + col0 AS col2, col1 FROM tab2
----
104
77
133
67
69
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1178
SELECT - 8 DIV 99 DIV + - COUNT( + + col0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1178
SELECT - 8 / 99 / + - COUNT ( + + col0 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 + - col1 FROM tab0 AS cor0
----
-306
-7590
-9410

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

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

query I rowsort
SELECT DISTINCT - col2 * + col1 + - 21 - - + 22 FROM tab0 AS cor0
----
-209
-3806
-98

query I rowsort
SELECT DISTINCT - 86 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT - col0 DIV - 53 AS col2 FROM tab0 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1183
SELECT - col0 / - 53 AS col2 FROM tab0 cor0
----
0
1
1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT - + col2 DIV - 5 AS col2 FROM tab0 cor0
----
19
2
9

skipif mysql # not compatible
query I rowsort label-1187
SELECT - + col2 / - 5 AS col2 FROM tab0 cor0
----
19
2
9

onlyif mysql # DIV for integer division: 
query II rowsort label-1188
SELECT DISTINCT - col0, 56 DIV - col1 col2 FROM tab2 AS cor0
----
-46
-1
-64
0
-75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1188
SELECT DISTINCT - col0, 56 / - col1 col2 FROM tab2 AS cor0
----
-46
-1
-64
0
-75
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT 76 * COUNT( * ) AS col0 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-1190
SELECT 76 * COUNT ( * ) AS col0 FROM tab2
----
228

query II rowsort
SELECT col1 * - - 58 AS col1, + 16 FROM tab2
----
2958
16
3886
16
4466
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1192
SELECT ALL - CAST( NULL AS DECIMAL ) * 4 + - - 41 AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - CAST ( NULL AS REAL ) * 4 + - - 41 AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + + 21 AS col0, col0 col0 FROM tab0 AS cor0
----
2079
97
210
87
987
15

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 - - col2 BETWEEN NULL AND + - 78 * - col2 + col0 + 48
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL - 70 + - COUNT( * ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - 70 + - COUNT ( * ) FROM tab1 AS cor0
----
-73

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

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

skipif mysql # not compatible
query I rowsort label-1198
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT - 40 + + col2 FROM tab0 AS cor0
----
-30
59
7

query I rowsort
SELECT DISTINCT + + ( - 20 ) + - 22 FROM tab0 cor0
----
-42

query I rowsort
SELECT DISTINCT + - 28 + + col2 AS col0 FROM tab1 AS cor0
----
31
40
68

query I rowsort
SELECT ( 89 ) * + col0 FROM tab1 AS cor0
----
4539
7565
8099

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT - COUNT( * ) col0, 7 col1 FROM tab1 WHERE ( + 20 BETWEEN - ( - col1 ) AND + col0 + col1 )
----
-2
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1205
SELECT - COUNT ( * ) col0, 7 col1 FROM tab1 WHERE ( + 20 BETWEEN - ( - col1 ) AND + col0 + col1 )
----
-2
7

query I rowsort
SELECT col0 + - 98 FROM tab2
----
-23
-34
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-1207
SELECT ALL + 82 col0, - MAX( ALL - + col2 ) FROM tab1
----
82
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1207
SELECT ALL + 82 col0, - MAX ( ALL - + col2 ) FROM tab1
----
82
59

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1208
SELECT + 17 * - col1 + - + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT + ( + - col1 ) * + 6 + - 17 DIV - col2 AS col0 FROM tab0 AS cor0
----
-125
-486
-6

skipif mysql # not compatible
query I rowsort label-1209
SELECT + ( + - col1 ) * + 6 + - 17 / - col2 AS col0 FROM tab0 AS cor0
----
-125
-486
-6

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + + 77 col2 FROM tab2 AS cor0
----
0
10
26

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

query I rowsort
SELECT ALL col0 + col2 + 77 FROM tab2 AS cor0
----
146
181
210

onlyif mysql # DIV for integer division: 
query II rowsort label-1214
SELECT ALL 88 DIV + col1 col1, - col2 + col0 FROM tab2
----
1
17
1
23
1
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1214
SELECT ALL 88 / + col1 col1, - col2 + col0 FROM tab2
----
1
17
1
23
1
24

query I rowsort
SELECT - 74 * + 73 FROM tab0
----
-5402
-5402
-5402

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

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

query I rowsort
SELECT 55 + ( - col0 ) FROM tab1 AS cor0 WHERE NOT - col2 + - 73 IS NULL
----
-30
-36
4

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

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

query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab1 cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * - - col0 col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL MIN( + - col2 ) * - 66 AS col0 FROM tab1
----
6336

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL MIN ( + - col2 ) * - 66 AS col0 FROM tab1
----
6336

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( + + col0 ) * + col2 + - 85 IN ( - col0 * - + col1 + col1, 35, - + 58 - + + col2, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 * - col0 * col1 * - + col2, col1 AS col0 FROM tab2
----
12615680
77
21858750
67
2482068
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1226
SELECT col2 AS col2, col1 * CAST( NULL AS SIGNED ) + + 20 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1226
SELECT col2 AS col2, col1 * CAST ( NULL AS INTEGER ) + + 20 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col0 - - - 32
----

query I rowsort
SELECT ALL + - 38 + col1 AS col0 FROM tab2 AS cor0
----
13
29
39

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

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

query I rowsort
SELECT - AVG ( + 55 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 49 IS NOT NULL
----
NULL

query I rowsort
SELECT ( + + col0 ) + - 45 FROM tab0 AS cor0
----
-30
42
52

query I rowsort
SELECT ALL col2 + + 16 FROM tab2 cor0
----
39
56
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT ALL MAX( DISTINCT + col0 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL MAX ( DISTINCT + col0 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + - col1 + + - col2 AS col0, + 71 FROM tab0 AS cor0
----
-100
71
-128
71
-31
71

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

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

query I rowsort
SELECT col1 + + + col1 - + col0 * - - col0 * - col2 * + - 51 FROM tab1 AS cor0
----
-12734468
-21740015
-28718414

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT - MIN( - - col2 ) + 33 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1239
SELECT - MIN ( - - col2 ) + 33 FROM tab0 AS cor0
----
23

query I rowsort
SELECT - + 95 + + col0 AS col0 FROM tab1 AS cor0
----
-10
-4
-44

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + + + 28 * - ( - 0 ) >= - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1243
SELECT COUNT( - col2 ) + + COUNT( * ) FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-1243
SELECT COUNT ( - col2 ) + + COUNT ( * ) FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
6

query II rowsort
SELECT DISTINCT + col2 * + - col1 / - 33, 28 - - col0 FROM tab2 WHERE NOT col1 < NULL
----

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

query II rowsort
SELECT ALL + col0, 59 FROM tab1
----
51
59
85
59
91
59

query II rowsort
SELECT - col0 AS col1, + ( + col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
-46
69
-64
104
-75
133

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT + ( + ( + SUM( + - 27 ) ) ) - 1 AS col2 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1250
SELECT + ( + ( + SUM ( + - 27 ) ) ) - 1 AS col2 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT + col1 - - - 23 AS col0 FROM tab0 AS cor0
----
-2
-22
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT ALL + 50 + - CAST( NULL AS SIGNED ) + ( - - 48 ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - - 60 * + MAX( col2 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
17280

skipif mysql # not compatible
query I rowsort label-1256
SELECT - - 60 * + MAX ( col2 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
17280

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT - ( + + 76 ) DIV - - col1 FROM tab0 AS cor0
----
-3
-76
0

skipif mysql # not compatible
query I rowsort label-1257
SELECT - ( + + 76 ) / - - col1 FROM tab0 AS cor0
----
-3
-76
0

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

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

query I rowsort
SELECT ALL - - col0 * + - col1 + col2 AS col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT ALL ( + 2 ) + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 * - 67 * + 74 FROM tab1 AS cor0
----
292522
337144
475968

query I rowsort
SELECT + 97 * ( - col0 ) FROM tab1 cor0
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT MIN( ALL + 65 ) * - SUM( + - col1 ) FROM tab1 AS cor0
----
4290

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT MIN ( ALL + 65 ) * - SUM ( + - col1 ) FROM tab1 AS cor0
----
4290

query I rowsort
SELECT ALL - col1 * - - 91 AS col0 FROM tab0
----
-1911
-7371
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col2 FROM tab0 WHERE NOT - + col0 IS NULL
----
-32
-32
-32

query I rowsort
SELECT ALL + 82 * + 29 + - ( + - col0 ) FROM tab0 WHERE NULL = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT + MIN( 89 ) AS col1 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1268
SELECT + MIN ( 89 ) AS col1 FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT ALL - MAX( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL - MAX ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT ALL + col1 DIV + 59 AS col1 FROM tab1 WHERE NOT col0 DIV - 26 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL + col1 / + 59 AS col1 FROM tab1 WHERE NOT col0 / - 26 IS NULL
----
0
0
0

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

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

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 - col2 + col1 FROM tab0 AS cor0
----
-15
-13
-87
1
-97
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT ALL + 45 DIV + col0 + col0 + col1 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + 45 / + col0 + col0 + col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + 93 / - + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT DISTINCT 71 + 58 + - + col1 AS col1 FROM tab2 AS cor0
----
52
62
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= + 68 * + col0
----

query II rowsort
SELECT + col1 AS col0, - col0 * - col2 FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <> + col0 * - 64 + 51
----

query I rowsort
SELECT DISTINCT - col0 - + col1 - + col0 AS col0 FROM tab0 AS cor0
----
-111
-195

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

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

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

query I rowsort
SELECT col1 * - - 31 * - + col1 + + + col0 AS col0 FROM tab1
----
-6025
-68388
-690

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

query I rowsort
SELECT DISTINCT - 12 - + col0 * + col1 FROM tab0
----
-109
-1227
-1839

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT + - col2 - + 74 > - + col1 + - col2
----
2

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + - col2 - + 74 > - + col1 + - col2
----
2

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE + 81 <= - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT + - ( + ( - + COUNT( ALL + 36 ) ) ) * + 18 AS col2 FROM tab1 AS cor0 WHERE + 99 + col0 IN ( - + col2, - col1 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1287
SELECT + - ( + ( - + COUNT ( ALL + 36 ) ) ) * + 18 AS col2 FROM tab1 AS cor0 WHERE + 99 + col0 IN ( - + col2, - col1 + col2 )
----
0

query I rowsort
SELECT - + 63 AS col1 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT - - 77 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT + 29 * - - COUNT( 26 ) AS col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + 29 * - - COUNT ( 26 ) AS col2 FROM tab0 AS cor0
----
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 0 ) + - col1 col0 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1295
SELECT - CAST( - col2 AS SIGNED ) * 99 + - + CAST( NULL AS DECIMAL ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-1295
SELECT - CAST ( - col2 AS INTEGER ) * 99 + - + CAST ( NULL AS REAL ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT DISTINCT + col0 * CAST( - col1 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + col0 * CAST ( - col1 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT col1 * 3 - - + col0 AS col2 FROM tab0 AS cor0
----
100
150
258

onlyif mysql # DIV for integer division: 
query I rowsort label-1298
SELECT ALL - - col2 DIV 17 + 56 FROM tab2 AS cor0
----
57
58
59

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL - - col2 / 17 + 56 FROM tab2 AS cor0
----
57
58
59

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

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT - COUNT ( DISTINCT + + 42 ) + + CAST ( + COUNT ( * ) AS INTEGER ) - 50 FROM tab1 AS cor0
----
-48

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 / + col0 IS NULL
----

query I rowsort
SELECT 42 * - + col2 AS col0 FROM tab0
----
-1974
-4158
-420

query II rowsort
SELECT col0 + col1 AS col0, 73 FROM tab2
----
141
73
142
73
97
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1303
SELECT + - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1303
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + 68 + - col0 * - ( + ( - + col1 ) ) * col2 + - 12 + col2 AS col2 FROM tab1 AS cor0
----
-24960
-290712
-68392

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

query I rowsort
SELECT DISTINCT + - col1 * - col0 + - col2 FROM tab0 AS cor0
----
-2
1168
1817

query I rowsort
SELECT ALL + col0 - 47 + + 80 * col0 AS col1 FROM tab1 AS cor0
----
4084
6838
7324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT DISTINCT col1 * + 66 * - CAST( + 57 AS SIGNED ) - col0 * col0 FROM tab1 AS cor0
----
-185095
-26035
-55269

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT col1 * + 66 * - CAST ( + 57 AS INTEGER ) - col0 * col0 FROM tab1 AS cor0
----
-185095
-26035
-55269

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT DISTINCT + 66 + MIN( ALL + 7 ) AS col1 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT + 66 + MIN ( ALL + 7 ) AS col1 FROM tab1 AS cor0
----
73

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

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

query I rowsort
SELECT DISTINCT + 6 - + col2 + - col0 * col0 * + 27 + + 77 + + + col1 * ( + col2 ) FROM tab0
----
-204080
-2232
-253960

onlyif mysql # DIV for integer division: 
query I rowsort label-1312
SELECT ALL - col2 * - col1 DIV - + col1 - - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL - col2 * - col1 / - + col1 - - col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1313
SELECT - ( SUM( DISTINCT - 89 ) ) AS col0, + 95 AS col1 FROM tab1
----
89
95

skipif mysql # not compatible
query II rowsort label-1313
SELECT - ( SUM ( DISTINCT - 89 ) ) AS col0, + 95 AS col1 FROM tab1
----
89
95

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab1 WHERE NOT + + col2 - + col2 BETWEEN NULL AND - col1
----
2

query I rowsort
SELECT ( + + col1 ) - col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1316
SELECT DISTINCT 72 DIV - col1 AS col2 FROM tab0
----
-3
-72
0

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT 72 / - col1 AS col2 FROM tab0
----
-3
-72
0

query I rowsort
SELECT col2 - 85 AS col1 FROM tab2
----
-27
-45
-62

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col2 FROM tab2 cor0 WHERE NOT 37 - + - col2 IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT ( COUNT( * ) ) FROM tab2 WHERE NOT + 83 BETWEEN CAST( col1 AS SIGNED ) / + col1 - + 68 / CAST( NULL AS SIGNED ) AND ( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-1321
SELECT ( COUNT ( * ) ) FROM tab2 WHERE NOT + 83 BETWEEN CAST ( col1 AS INTEGER ) / + col1 - + 68 / CAST ( NULL AS INTEGER ) AND ( 94 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1322
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1322
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + 60 NOT IN ( ( 26 ) - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 32 * - col2 - 92 AS col2 FROM tab1
----
-1980
-2268
-3164

query I rowsort
SELECT col2 * - col0 + 91 FROM tab1
----
-4805
-4924
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT 59 * 17 + - 10 * - MAX( ALL + col2 ) AS col0 FROM tab0
----
1993

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT 59 * 17 + - 10 * - MAX ( ALL + col2 ) AS col0 FROM tab0
----
1993

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE 29 + 33 BETWEEN 21 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE 29 + 33 BETWEEN 21 AND ( NULL )
----
0

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

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

query I rowsort
SELECT col0 * + col2 + - 51 * col0 AS col2 FROM tab0
----
-3567
-60
4656

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT + col1 + - col2 DIV 59 col1 FROM tab0
----
0
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1331
SELECT + col1 + - col2 / 59 col1 FROM tab0
----
0
21
81

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL - MAX( col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL - MAX ( col1 ) FROM tab2
----
-77

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

query III rowsort
SELECT * FROM tab2 WHERE 45 > NULL
----

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

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

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

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

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

query I rowsort
SELECT col1 + 11 AS col1 FROM tab2
----
62
78
88

query I rowsort
SELECT + 83 + col2 * + col1 FROM tab2 AS cor0
----
1256
3163
3969

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

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

query I rowsort
SELECT ALL - 51 * 18 AS col2 FROM tab1 AS cor0
----
-918
-918
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT DISTINCT - 88 DIV - col2 + 26 FROM tab0 AS cor0
----
26
27
34

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT - 88 / - col2 + 26 FROM tab0 AS cor0
----
26
27
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT DISTINCT 82 + + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT 82 + + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
85

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT col1 / + col0 + 39 NOT BETWEEN ( + col2 ) AND + col2 + - col1
----

query I rowsort
SELECT ALL - 67 * - col1 AS col2 FROM tab1
----
3149
335
938

query I rowsort
SELECT DISTINCT 69 * + col1 FROM tab2
----
3519
4623
5313

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1350
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT col1 + + col2 / - CAST( + col2 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT col1 + + col2 / - CAST ( + col2 AS INTEGER ) IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 > - 95 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + COUNT( * ) * 67 AS col2 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-1352
SELECT + COUNT ( * ) * 67 AS col2 FROM tab2 AS cor0
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT DISTINCT + + 89 DIV + 49 + + col0 DIV - 60 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT + + 89 / + 49 + + col0 / - 60 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col0 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1354
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 * col1 IS NULL
----
0

query I rowsort
SELECT ALL col2 + 5 * - 75 FROM tab1 AS cor0
----
-279
-307
-316

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 17 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL - - 20 * 0 + COUNT( col0 + - 95 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - - 20 * 0 + COUNT ( col0 + - 95 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( 42 ) + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-2559
-4447
-5887

query I rowsort
SELECT ALL col2 - + - 72 + col0 * 6 AS col0 FROM tab1
----
474
641
686

query I rowsort
SELECT 74 * + 47 + col1 FROM tab0
----
3479
3499
3559

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT + COUNT( * ) - + - COUNT( * ) + - 48 * - 74 AS col1 FROM tab1
----
3558

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT + COUNT ( * ) - + - COUNT ( * ) + - 48 * - 74 AS col1 FROM tab1
----
3558

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 >= + ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - col2 * - col0 AS col0 FROM tab2
----
1109
2637
4417

query I rowsort
SELECT DISTINCT - col1 * + col1 + col0 AS col1 FROM tab1
----
-145
-2118
60

query I rowsort
SELECT ALL + col1 * - + 50 AS col2 FROM tab0
----
-1050
-4050
-50

query I rowsort
SELECT + col2 + + + 31 FROM tab1
----
127
90
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT DISTINCT 36 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT 36 / col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT + COUNT( * ) * - MIN( col2 ) AS col1 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-1373
SELECT + COUNT ( * ) * - MIN ( col2 ) AS col1 FROM tab1
----
-177

query I rowsort
SELECT DISTINCT - ( - 6 ) AS col0 FROM tab1 WHERE NOT + col0 / - 25 BETWEEN 51 * col2 + col2 AND - col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT 28 DIV - col2 * 11 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1375
SELECT 28 / - col2 * 11 col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT ALL - 11 DIV - - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL - 11 / - - col0 AS col1 FROM tab1
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 col1 FROM tab1 AS cor0 WHERE NOT ( + 69 ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT - 71 * + COUNT( * ) FROM tab2 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-1380
SELECT - 71 * + COUNT ( * ) FROM tab2 cor0
----
-213

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col0 col1 FROM tab2
----
-2346
-4928
-5025

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

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

query I rowsort
SELECT ALL - - col0 * 98 + - col1 FROM tab2 AS cor0 WHERE NOT + col0 > NULL
----

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

query I rowsort
SELECT DISTINCT + - 30 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-105
-76
-94

query I rowsort
SELECT - col1 + 96 + - 28 * - 31 FROM tab1 AS cor0
----
917
950
959

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ALL - 36 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - 36 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
108

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 * - col0 * 1 + col1 * - 58 - + col1 * + col1 < + 74 * 14
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT + 11 * + - COUNT( * ) AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT + 11 * + - COUNT ( * ) AS col1 FROM tab1
----
-33

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) > ( + + col1 / + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1397
SELECT col2 * - ( - + CAST( - + 38 AS SIGNED ) ) + - 67 AS col2 FROM tab0
----
-1853
-3829
-447

skipif mysql # not compatible
query I rowsort label-1397
SELECT col2 * - ( - + CAST ( - + 38 AS INTEGER ) ) + - 67 AS col2 FROM tab0
----
-1853
-3829
-447

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

query I rowsort
SELECT DISTINCT col0 + - + col1 * 48 FROM tab0 cor0
----
-3873
-921
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1400
SELECT DISTINCT CAST( - + col0 AS SIGNED ) + + 71 AS col1 FROM tab2 AS cor0 WHERE + col2 + - 30 IS NOT NULL
----
-4
25
7

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) + + 71 AS col1 FROM tab2 AS cor0 WHERE + col2 + - 30 IS NOT NULL
----
-4
25
7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1402
SELECT + COUNT( * ) DIV + + 46 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1402
SELECT + COUNT ( * ) / + + 46 AS col2 FROM tab2 AS cor0
----
0

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 < + 92 * 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 98 * + + col0 * - col2 - - - col0 * col0 * col1 + + 29 AS col2 FROM tab2 AS cor0
----
-211571
-566243
-803146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1407
SELECT - 60 FROM tab1 WHERE NOT NULL NOT BETWEEN 89 * col2 / + col0 AND + + col1 + + col1 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1407
SELECT - 60 FROM tab1 WHERE NOT NULL NOT BETWEEN 89 * col2 / + col0 AND + + col1 + + col1 * + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1408
SELECT ALL + 84 * - 11, CAST( - MAX( DISTINCT col1 ) AS SIGNED ) * 59 AS col1 FROM tab1
----
-924
-2773

skipif mysql # not compatible
query II rowsort label-1408
SELECT ALL + 84 * - 11, CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) * 59 AS col1 FROM tab1
----
-924
-2773

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT ALL - 18 AS col1, MIN( - 42 ) AS col1 FROM tab0
----
-18
-42

skipif mysql # not compatible
query II rowsort label-1410
SELECT ALL - 18 AS col1, MIN ( - 42 ) AS col1 FROM tab0
----
-18
-42

query I rowsort
SELECT + 0 * - - 4 AS col1 FROM tab2
----
0
0
0

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

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

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

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

query I rowsort
SELECT + - col2 * - 0 + ( + ( 59 ) ) + + - 79 * - col1 AS col1 FROM tab1 cor0
----
1165
3772
454

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - - col2 + + 3 IN ( 30 * - col0 + + 51 / + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 43 * 15 AS col0 FROM tab2 AS cor0
----
645
645
645

query II rowsort
SELECT - col2 * - col1, + col1 FROM tab2
----
1173
51
3080
77
3886
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + 5 * COUNT( * ) col1 FROM tab1
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1418
SELECT + 5 * COUNT ( * ) col1 FROM tab1
----
15

query I rowsort
SELECT DISTINCT + col1 + ( - col1 + col2 ) FROM tab2 WHERE - - col1 * + - 65 * col1 + - 37 NOT IN ( + + col0 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND - 97
----
0

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND - 97
----
0

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1423
SELECT ALL - 53 DIV MIN( ALL + col1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL - 53 / MIN ( ALL + col1 ) FROM tab2 AS cor0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT - 72 * COUNT( * ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-1425
SELECT - 72 * COUNT ( * ) FROM tab1
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT col2 DIV - 64 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT col2 / - 64 FROM tab0
----
-1
0
0

query I rowsort
SELECT + ( + col0 ) * + col2 + - 31 FROM tab1
----
4865
4984
6157

query I rowsort
SELECT col1 * ( + + 37 ) + + col1 * + 18 * + col0 AS col0 FROM tab2
----
44115
91553
92929

onlyif mysql # aggregate syntax: 
query II rowsort label-1429
SELECT MAX( col0 ) + - COUNT( * ), 26 AS col2 FROM tab2
----
72
26

skipif mysql # not compatible
query II rowsort label-1429
SELECT MAX ( col0 ) + - COUNT ( * ), 26 AS col2 FROM tab2
----
72
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + SUM( ALL col0 ) * COUNT( * ) + + - 76 FROM tab1 AS cor0
----
605

skipif mysql # not compatible
query I rowsort label-1431
SELECT + SUM ( ALL col0 ) * COUNT ( * ) + + - 76 FROM tab1 AS cor0
----
605

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1432
SELECT ALL - 12 + COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT DISTINCT 10 * + COUNT( * ) + + - 22 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT 10 * + COUNT ( * ) + + - 22 FROM tab2 AS cor0
----
8

query I rowsort
SELECT DISTINCT - col2 - - 68 * col1 + 88 AS col0 FROM tab2
----
3533
4586
5284

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 NOT IN ( + 47, col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE + + CAST( NULL AS SIGNED ) * col0 * - col2 NOT IN ( - 95 )
----
0

skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) * col0 * - col2 NOT IN ( - 95 )
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1438
SELECT - CAST( NULL AS DECIMAL ) - - - 41 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1438
SELECT - CAST ( NULL AS REAL ) - - - 41 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <= - + col1
----
87
21
10
97
1
99

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

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

query I rowsort
SELECT ALL + col1 * col0 + 76 AS col1 FROM tab0 cor0
----
1291
173
1903

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

query I rowsort
SELECT + 67 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
67
67
67

query I rowsort
SELECT col1 * 70 FROM tab2 AS cor0 WHERE NOT - col1 + + col0 + col0 + - 14 NOT IN ( + - col2 / - 29, 66 + + 34 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE - col1 NOT IN ( - 23 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - col1 NOT IN ( - 23 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT - MAX( - 78 ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-1447
SELECT - MAX ( - 78 ) AS col0 FROM tab0
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - MIN( DISTINCT + 62 ) AS col1 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-1450
SELECT - MIN ( DISTINCT + 62 ) AS col1 FROM tab1
----
-62

query I rowsort
SELECT - ( + + ( - + 78 ) ) FROM tab0
----
78
78
78

query I rowsort
SELECT ALL + 64 AS col2 FROM tab1
----
64
64
64

query I rowsort
SELECT DISTINCT 23 * + ( + 68 ) AS col1 FROM tab2 AS cor0
----
1564

query I rowsort
SELECT ALL - 70 * - col2 AS col2 FROM tab1 cor0
----
4130
4760
6720

query I rowsort
SELECT - 47 * - 36 * - col2 FROM tab0
----
-167508
-16920
-79524

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 AS col1 FROM tab2
----
51
46
67
75
77
64

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

query I rowsort
SELECT DISTINCT - 59 + col0 - + ( + 42 ) FROM tab0 cor0
----
-14
-4
-86

query I rowsort
SELECT - 29 FROM tab0 cor0 WHERE NULL >= - ( + + 30 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1461
SELECT - COUNT( * ) + COUNT( * ), + ( 27 ) AS col1 FROM tab0 AS cor0
----
0
27

skipif mysql # not compatible
query II rowsort label-1461
SELECT - COUNT ( * ) + COUNT ( * ), + ( 27 ) AS col1 FROM tab0 AS cor0
----
0
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 38 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT MIN( + + col0 ) FROM tab0 AS cor0 WHERE ( + ( + ( + ( - col0 ) ) ) ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1463
SELECT MIN ( + + col0 ) FROM tab0 AS cor0 WHERE ( + ( + ( + ( - col0 ) ) ) ) >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 72 + + + col0 col2 FROM tab1 AS cor0
----
-7
18
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT DISTINCT + + COUNT( * ) + + 32 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT + + COUNT ( * ) + + 32 FROM tab1 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1466
SELECT ALL CAST( + AVG ( ALL + + ( - 45 ) ) AS SIGNED ) AS col2 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL CAST ( + AVG ( ALL + + ( - 45 ) ) AS INTEGER ) AS col2 FROM tab2
----
-45

query I rowsort
SELECT + col2 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
23
40
58

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

query II rowsort
SELECT DISTINCT - col2 * col0, + col1 FROM tab2
----
-1058
51
-2560
77
-4350
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

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

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

query I rowsort
SELECT + 97 * 49 AS col2 FROM tab0 AS cor0
----
4753
4753
4753

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

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

skipif mysql # not compatible
query I rowsort label-1474
SELECT - COUNT ( * ) * - - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT - col0 * - ( 72 ) FROM tab2 AS cor0
----
3312
4608
5400

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1477
SELECT ALL + 28 col2, COUNT( * ) AS col1 FROM tab0 cor0
----
28
3

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

query I rowsort
SELECT ( + - 65 ) FROM tab2 cor0
----
-65
-65
-65

query I rowsort
SELECT - 53 * + 48 * - 47 AS col2 FROM tab1 cor0
----
119568
119568
119568

query I rowsort
SELECT DISTINCT + + col2 * + 32 AS col2 FROM tab0 AS cor0
----
1504
3168
320

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * + 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT DISTINCT + 52 * - COUNT( * ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT + 52 * - COUNT ( * ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( NULL ) <= - 0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 * - - 59 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1487
SELECT + COUNT ( + 23 ) FROM tab1 cor0
----
3

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

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

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL + + ( ( + ( + - 17 ) ) ) + + ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL + MIN( DISTINCT col2 ) + - - 93 * + 79 AS col1 FROM tab2 AS cor0
----
7370

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL + MIN ( DISTINCT col2 ) + - - 93 * + 79 AS col1 FROM tab2 AS cor0
----
7370

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

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

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

query I rowsort
SELECT + AVG ( DISTINCT - - 61 ) AS col1 FROM tab2 WHERE NULL BETWEEN col0 AND NULL AND NOT ( NULL ) IS NOT NULL
----
NULL

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

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

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

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

query I rowsort
SELECT ALL col1 * - ( + + 20 ) AS col2 FROM tab2
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT + COUNT( * ) + + 5 * + - 27 + + 73 AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1497
SELECT + COUNT ( * ) + + 5 * + - 27 + + 73 AS col2 FROM tab1
----
-59

query I rowsort
SELECT - col1 + + + 10 AS col2 FROM tab0
----
-11
-71
9

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1502
SELECT DISTINCT CAST( + col2 AS SIGNED ) + + - 77 FROM tab2 AS cor0 WHERE NOT col1 + + col2 NOT IN ( - + col0 )
----

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + + - 77 FROM tab2 AS cor0 WHERE NOT col1 + + col2 NOT IN ( - + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 80
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE - col2 + 72 * - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 73 / - col0 * + + 51 - - 30 * col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1506
SELECT ALL * FROM tab1 WHERE NULL IN ( + col0, col2, + ( + CAST( NULL AS SIGNED ) ), + 79 / + col1 - 4 )
----

skipif mysql # not compatible
query III rowsort label-1506
SELECT ALL * FROM tab1 WHERE NULL IN ( + col0, col2, + ( + CAST ( NULL AS INTEGER ) ), + 79 / + col1 - 4 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT ALL SUM( - CAST( - col1 AS SIGNED ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL SUM ( - CAST ( - col1 AS INTEGER ) ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT ALL col2 AS col1 FROM tab1 WHERE NULL <= - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL col2 AS col1 FROM tab1 WHERE NULL <= - CAST ( - col1 AS INTEGER )
----

query II rowsort
SELECT + col1 * - - col0 AS col1, col0 FROM tab1
----
425
85
4277
91
714
51

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

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

query II rowsort
SELECT - 45 AS col1, col0 FROM tab1
----
-45
51
-45
85
-45
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, + ( - col0 ) FROM tab0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT SUM( - - 43 ) AS col2 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-1515
SELECT SUM ( - - 43 ) AS col2 FROM tab0
----
129

query II rowsort
SELECT col0 AS col0, col0 * + col0 * + col0 FROM tab2
----
46
97336
64
262144
75
421875

query I rowsort
SELECT DISTINCT - - col0 * col1 * - col1 + - - col1 AS col2 FROM tab2 cor0
----
-119595
-336608
-379379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1518
SELECT ALL MAX( DISTINCT col0 ) * MAX( + CAST( + col1 AS SIGNED ) ) + - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 cor0
----
7857

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL MAX ( DISTINCT col0 ) * MAX ( + CAST ( + col1 AS INTEGER ) ) + - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 cor0
----
7857

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

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

query I rowsort
SELECT - ( - 78 ) * + col1 * + + col0 FROM tab2 AS cor0
----
182988
384384
391950

query I rowsort
SELECT col2 * + col1 * - - col0 * + col2 * + - col2 FROM tab2
----
-28543782
-315392000
-980437800

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + + 82 * - COUNT( * ) * + ( + 80 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-59040

skipif mysql # not compatible
query I rowsort label-1522
SELECT + + 82 * - COUNT ( * ) * + ( + 80 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-59040

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL - col1 + + 53 FROM tab0 AS cor0
----
-28
32
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT + 33 + - ( - ( - 29 ) ) + - + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1526
SELECT + 33 + - ( - ( - 29 ) ) + - + COUNT ( * ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( - col0 ) ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col0 + - col1 + + 61 col1 FROM tab0 AS cor0
----
137
256
42

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1530
SELECT col2 + 43 DIV + 42 + + col1 + - ( - col2 ) AS col1 FROM tab2 AS cor0
----
158
184
98

skipif mysql # not compatible
query I rowsort label-1530
SELECT col2 + 43 / + 42 + + col1 + - ( - col2 ) AS col1 FROM tab2 AS cor0
----
158
184
98

query I rowsort
SELECT ALL + ( col1 ) - - col0 AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT + col2 * col1 * 61 FROM tab1
----
17995
194956
81984

query I rowsort
SELECT DISTINCT col2 - - - 46 FROM tab1
----
13
22
50

query III rowsort
SELECT * FROM tab1 WHERE - + 33 BETWEEN col1 AND + col2 * + + 66 * col0
----

query I rowsort
SELECT DISTINCT - 53 * + col2 - 71 AS col0 FROM tab1
----
-3198
-3675
-5159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1536
SELECT DISTINCT 26 DIV COUNT( * ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT 26 / COUNT ( * ) AS col2 FROM tab2
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL + 77 * COUNT( * ) FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + 77 * COUNT ( * ) FROM tab1 AS cor0
----
231

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1540
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT + 7 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT + 7 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * + col0 col2 FROM tab2
----
262144
421875
97336

query II rowsort
SELECT - col1, + 54 AS col2 FROM tab0 AS cor0
----
-1
54
-21
54
-81
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 41 + 29 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT COUNT ( DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + + ( + MIN( - col1 ) ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1546
SELECT + + ( + MIN ( - col1 ) ) FROM tab1 cor0
----
-47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1548
SELECT col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-1548
SELECT col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT DISTINCT MAX( - 94 ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT MAX ( - 94 ) FROM tab0
----
-94

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

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

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

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

query II rowsort
SELECT + ( - col2 ) AS col1, - ( - ( col0 ) ) FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT col2 * - col2 DIV col2 * 14 FROM tab1 AS cor0
----
-1344
-826
-952

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT col2 * - col2 / col2 * 14 FROM tab1 AS cor0
----
-1344
-826
-952

query I rowsort
SELECT ALL + 12 + - col2 + col1 AS col0 FROM tab2 AS cor0
----
21
40
49

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

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

query I rowsort
SELECT ALL + ( - - col1 ) + - col1 + - + 87 FROM tab2
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT 27 * 76 * COUNT( ALL - 85 ) AS col0 FROM tab1
----
6156

skipif mysql # not compatible
query I rowsort label-1558
SELECT 27 * 76 * COUNT ( ALL - 85 ) AS col0 FROM tab1
----
6156

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1559
SELECT DISTINCT - MAX ( DISTINCT + ( + col2 ) ) col2 FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-1560
SELECT ALL - col0 * - + 82 + + col2 AS col1, + col0 DIV + col0 AS col2 FROM tab1
----
4278
1
7029
1
7530
1

skipif mysql # not compatible
query II rowsort label-1560
SELECT ALL - col0 * - + 82 + + col2 AS col1, + col0 / + col0 AS col2 FROM tab1
----
4278
1
7029
1
7530
1

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

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

query II rowsort
SELECT + col0 AS col0, col1 * + col1 + col1 FROM tab1 cor0 WHERE - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1563
SELECT col1 AS col1, + 28 + col2 + + col0 + + + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
14
178
47
188
5
189

skipif mysql # not compatible
query II rowsort label-1563
SELECT col1 AS col1, + 28 + col2 + + col0 + + + col0 / col1 AS col1 FROM tab1 AS cor0
----
14
178
47
188
5
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL + 63 + - - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL + 63 + - - COUNT ( * ) FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL 82 - - + COUNT( * ) col0 FROM tab1 cor0
----
85

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

query I rowsort
SELECT DISTINCT + col2 + - 71 FROM tab2 AS cor0
----
-13
-31
-48

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

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

query I rowsort
SELECT + 90 + col1 + ( 59 ) * - + 0 FROM tab1
----
104
137
95

query I rowsort
SELECT + 63 AS col2 FROM tab2 WHERE NULL IS NULL
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT ALL col1 DIV + + col2 - - col2 + - + 44 col1 FROM tab0
----
-32
4
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1571
SELECT ALL col1 / + + col2 - - col2 + - + 44 col1 FROM tab0
----
-32
4
55

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * col2 AND - 1
----

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

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

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

query I rowsort
SELECT - 7 * - 32 AS col0 FROM tab1 AS cor0
----
224
224
224

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT DISTINCT col2 DIV 93 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT col2 / 93 FROM tab2
----
0

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

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

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

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

query II rowsort
SELECT - 58 AS col1, col2 + + + col0 * - col2 + - col1 FROM tab2
----
-58
-1086
-58
-2597
-58
-4359

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - col1 * col1 = col0
----

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

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

query II rowsort
SELECT - 39 AS col0, + 33 + col0 FROM tab0 AS cor0
----
-39
120
-39
130
-39
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT + MAX( 35 ) AS col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1587
SELECT + MAX ( 35 ) AS col1 FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1588
SELECT ALL MAX( DISTINCT - 98 ) DIV - 45 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL MAX ( DISTINCT - 98 ) / - 45 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1589
SELECT - 75 + + - MIN( DISTINCT - col1 ) * + 40 + - COUNT( * ) AS col1, 36 FROM tab0
----
3162
36

skipif mysql # not compatible
query II rowsort label-1589
SELECT - 75 + + - MIN ( DISTINCT - col1 ) * + 40 + - COUNT ( * ) AS col1, 36 FROM tab0
----
3162
36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - 51 * - 83 col0 FROM tab0 AS cor0
----
4248
4320
4330

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL + ( + + MAX( + 18 ) ) + + 94 FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + ( + + MAX ( + 18 ) ) + + 94 FROM tab0 AS cor0
----
112

query I rowsort
SELECT DISTINCT + - 80 + - col2 + - 55 FROM tab0 AS cor0
----
-145
-182
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1596
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 / + CAST( NULL AS SIGNED ) + - col1, - 34 * - CAST( col2 AS SIGNED ), + 93 * 76 / col0 + + + col1 + + - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-1596
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 / + CAST ( NULL AS INTEGER ) + - col1, - 34 * - CAST ( col2 AS INTEGER ), + 93 * 76 / col0 + + + col1 + + - 55 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1598
SELECT 54, + COUNT( * ) AS col1 FROM tab1
----
54
3

skipif mysql # not compatible
query II rowsort label-1598
SELECT 54, + COUNT ( * ) AS col1 FROM tab1
----
54
3

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

query I rowsort
SELECT ALL + col2 - 94 FROM tab0
----
-47
-84
5

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

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT SUM ( DISTINCT - 67 ) AS col2 FROM tab1
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col0 FROM tab1 AS cor0 WHERE NOT col2 > - + col0 * - + col2
----
-33
-33
-33

query I rowsort
SELECT ALL - 62 * + - col1 + + 33 AS col1 FROM tab1 AS cor0
----
2947
343
901

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT DISTINCT - - 84 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-84

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT - - 84 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, ( - - col2 ) * - col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1607
SELECT DISTINCT + ( CAST( - - col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT + ( CAST ( - - col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
1
21
81

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

query II rowsort
SELECT - col2 * - - ( - + ( + col0 ) ) * - - col2, + col2 FROM tab0 AS cor0
----
33135
47
8700
10
950697
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1610
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( + 87 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1610
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( + 87 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 17 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 87 IS NULL
----

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

query I rowsort
SELECT + 37 + - col1 FROM tab1
----
-10
23
32

query I rowsort
SELECT 41 + 26 FROM tab2
----
67
67
67

query I rowsort
SELECT ALL + 56 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - - 13 + col0 AS col0 FROM tab2 AS cor0
----
59
77
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT + + col1 + - - col1 DIV col0 - - 13 FROM tab0 AS cor0
----
14
34
99

skipif mysql # not compatible
query I rowsort label-1621
SELECT + + col1 + - - col1 / col0 - - 13 FROM tab0 AS cor0
----
14
34
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

query II rowsort
SELECT col2 AS col1, - 14 FROM tab2
----
23
-14
40
-14
58
-14

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

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

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

query I rowsort
SELECT DISTINCT col2 * + + 88 AS col0 FROM tab0 AS cor0
----
4136
8712
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT ALL - CAST( + + col2 AS SIGNED ) FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - CAST ( + + col2 AS INTEGER ) FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1630
SELECT COUNT( * ) - + - 27 DIV + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1630
SELECT COUNT ( * ) - + - 27 / + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
12

query I rowsort
SELECT 29 FROM tab1 AS cor0 WHERE - col1 * + 51 + - - 68 + col2 > ( - col2 )
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 * + col1 FROM tab1 AS cor0
----
59
295
68
3196
96
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT DISTINCT - COUNT( * ) * + 27 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT - COUNT ( * ) * + 27 FROM tab0 AS cor0
----
-81

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

skipif mysql # not compatible
query I rowsort label-1634
SELECT CAST ( col0 AS INTEGER ) / + col1 FROM tab0
----
0
4
97

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

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

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

query I rowsort
SELECT + col2 * col2 * + 3 FROM tab0
----
29403
300
6627

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT SUM( ALL - 72 ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-1638
SELECT SUM ( ALL - 72 ) FROM tab1
----
-216

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

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

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

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

query II rowsort
SELECT DISTINCT 44 AS col1, + col0 * - 59 * + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT 77 * col1 AS col1 FROM tab0
----
1617
6237
77

query I rowsort
SELECT ALL 76 * + - col2 AS col1 FROM tab1
----
-4484
-5168
-7296

query II rowsort
SELECT col1 AS col2, + 21 + + col1 - - col1 AS col1 FROM tab2
----
51
123
67
155
77
175

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT MAX( - 39 ) + COUNT( * ) * - 4 AS col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1649
SELECT MAX ( - 39 ) + COUNT ( * ) * - 4 AS col2 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col2 + 90 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1651
SELECT DISTINCT 44, COUNT( * ) DIV + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0 cor0
----
44
-2

skipif mysql # not compatible
query II rowsort label-1651
SELECT DISTINCT 44, COUNT ( * ) / + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0 cor0
----
44
-2

query I rowsort
SELECT + + col0 + + - col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 41 + col2 * + 8 * - + 93 FROM tab1 AS cor0
----
-43937
-50633
-71465

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN col0 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 * + 58 * + - 84 + - 39 * - - col0 col2 FROM tab2
----
-211290
-211992
-212421

query I rowsort
SELECT ALL col1 * - - ( + + 2 ) FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL SUM( 11 ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL SUM ( 11 ) FROM tab0
----
33

query I rowsort
SELECT - 30 * + 11 + col0 FROM tab2
----
-255
-266
-284

query I rowsort
SELECT ALL - ( + ( - 89 ) ) FROM tab1
----
89
89
89

query I rowsort
SELECT ALL ( - 61 ) AS col2 FROM tab0
----
-61
-61
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT DISTINCT + + 53 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT + + 53 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1665
SELECT + CAST( NULL AS SIGNED ) * + - col0 - - + col1 + + col2, + col0 * - 4 * + col2 AS col0 FROM tab0 cor0
----
NULL
-2820
NULL
-3480
NULL
-38412

skipif mysql # not compatible
query II rowsort label-1665
SELECT + CAST ( NULL AS INTEGER ) * + - col0 - - + col1 + + col2, + col0 * - 4 * + col2 AS col0 FROM tab0 cor0
----
NULL
-2820
NULL
-3480
NULL
-38412

query I rowsort
SELECT DISTINCT col2 * - 31 + + col0 FROM tab2
----
-1176
-1723
-667

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

query I rowsort
SELECT + + 23 * - - 31 AS col2 FROM tab1 cor0
----
713
713
713

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1669
SELECT + col1 * col1 DIV + CAST( - 64 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-149
-16
-99

skipif mysql # not compatible
query I rowsort label-1669
SELECT + col1 * col1 / + CAST ( - 64 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-149
-16
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1670
SELECT - + col2 DIV - + col2 + + col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-1670
SELECT - + col2 / - + col2 + + col1 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL 68 * + - COUNT( * ) FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL 68 * + - COUNT ( * ) FROM tab0
----
-204

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT - 42 * + ( + MIN( 95 ) ) FROM tab2
----
-3990

skipif mysql # not compatible
query I rowsort label-1673
SELECT - 42 * + ( + MIN ( 95 ) ) FROM tab2
----
-3990

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

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

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

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

query III rowsort
SELECT DISTINCT + col1, 8 AS col0, + col2 FROM tab0 cor0
----
9 values hashing to b742829cf1714ba7f1efe705db140dd1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1679
SELECT DISTINCT - SUM( ALL + col0 ) AS col0, 71 AS col1 FROM tab2
----
-185
71

skipif mysql # not compatible
query II rowsort label-1679
SELECT DISTINCT - SUM ( ALL + col0 ) AS col0, 71 AS col1 FROM tab2
----
-185
71

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

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

query I rowsort
SELECT DISTINCT - - 26 FROM tab1 cor0
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1682
SELECT ALL + CAST( NULL AS DECIMAL ) + + 87 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + CAST ( NULL AS REAL ) + + 87 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT MIN( DISTINCT + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1683
SELECT MIN ( DISTINCT + col0 ) AS col0 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1684
SELECT + 65 + - 19 + 81 + - col1 * - CAST( + 21 AS SIGNED ) FROM tab0
----
148
1828
568

skipif mysql # not compatible
query I rowsort label-1684
SELECT + 65 + - 19 + 81 + - col1 * - CAST ( + 21 AS INTEGER ) FROM tab0
----
148
1828
568

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT col2 + 25 - col2 + + - col0 DIV col1 AS col0 FROM tab2
----
24
25
25

skipif mysql # not compatible
query I rowsort label-1685
SELECT col2 + 25 - col2 + + - col0 / col1 AS col0 FROM tab2
----
24
25
25

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT 64 + + COUNT( * ) AS col0 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-1688
SELECT 64 + + COUNT ( * ) AS col0 FROM tab1
----
67

query III rowsort
SELECT * FROM tab1 WHERE - 27 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1690
SELECT DISTINCT + col2 AS col2, + CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1690
SELECT DISTINCT + col2 AS col2, + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE 57 / - col1 * + + 67 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 4 + - - col2 = NULL
----

query I rowsort
SELECT ALL - - col2 FROM tab2 AS cor0 WHERE NOT - 16 IS NOT NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 * + col1 col2 FROM tab2 AS cor0
----
4896
6432
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - SUM( + col1 ) * COUNT( DISTINCT - col0 ) AS col1 FROM tab1 WHERE NOT NULL > - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT - SUM ( + col1 ) * COUNT ( DISTINCT - col0 ) AS col1 FROM tab1 WHERE NOT NULL > - 75
----
NULL

query I rowsort
SELECT ALL - 5 AS col1 FROM tab1 WHERE + - col2 BETWEEN + col1 * + 21 * - ( - col1 ) AND + 90
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN + + col0 * col1 AND + 86
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT + col2 DIV col1 col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1701
SELECT + col2 / col1 col0 FROM tab1
----
1
11
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1702
SELECT COUNT( * ), + 82 col0 FROM tab1
----
3
82

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

query I rowsort
SELECT DISTINCT col0 * 99 AS col0 FROM tab0 WHERE NOT - col1 = + col0
----
1485
8613
9603

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 < - 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 + 12 * - 89 * 50 NOT IN ( + 49 ) )
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1709
SELECT DISTINCT + col0 * col0 + + ( - col0 ) AS col0, col0 DIV - ( col0 ) FROM tab0 AS cor0
----
210
-1
7482
-1
9312
-1

skipif mysql # not compatible
query II rowsort label-1709
SELECT DISTINCT + col0 * col0 + + ( - col0 ) AS col0, col0 / - ( col0 ) FROM tab0 AS cor0
----
210
-1
7482
-1
9312
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col1, col0 col2 FROM tab2 cor0
----
102
46
134
75
154
64

query I rowsort
SELECT ALL + - col1 + - 95 FROM tab2 AS cor0
----
-146
-162
-172

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

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

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

query I rowsort
SELECT - 74 FROM tab1 WHERE ( NOT NULL NOT BETWEEN 62 + + col1 / - - col2 + col2 AND - col0 )
----

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

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

query II rowsort
SELECT ALL + col0 - + ( + 20 ) AS col0, col1 + col1 + + col0 - + + col0 FROM tab2 AS cor0
----
26
102
44
154
55
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT DISTINCT - - COUNT( * ) * - + COUNT( * ) * MAX( - 47 ) FROM tab0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT - - COUNT ( * ) * - + COUNT ( * ) * MAX ( - 47 ) FROM tab0 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1718
SELECT DISTINCT - 71 AS col2, MAX( - + 62 ) DIV - - COUNT( * ) FROM tab2
----
-71
-20

skipif mysql # not compatible
query II rowsort label-1718
SELECT DISTINCT - 71 AS col2, MAX ( - + 62 ) / - - COUNT ( * ) FROM tab2
----
-71
-20

query II rowsort
SELECT ALL - 12, col0 FROM tab2
----
-12
46
-12
64
-12
75

query II rowsort
SELECT DISTINCT + - col1, ( - - 13 ) + + col0 AS col2 FROM tab1 AS cor0
----
-14
64
-47
104
-5
98

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT + COUNT( * ) * + 77 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + COUNT ( * ) * + 77 FROM tab0 AS cor0
----
231

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

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

query I rowsort
SELECT DISTINCT col1 * - 36 AS col1 FROM tab0
----
-2916
-36
-756

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 97, col2 * + - col2, + col1 * + - col2, - col1, + - 71 * + + col2 + + 23, col0 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT DISTINCT - 80 DIV + - 62 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT - 80 / + - 62 FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1728
SELECT ALL + CAST( + 75 AS SIGNED ) + - 85 * + COUNT( * ) FROM tab1 WHERE NOT 23 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + CAST ( + 75 AS INTEGER ) + - 85 * + COUNT ( * ) FROM tab1 WHERE NOT 23 IS NOT NULL
----
75

query I rowsort
SELECT DISTINCT + col1 * col2 * + col2 AS col0 FROM tab0 AS cor0
----
178929
2100
9801

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

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

query I rowsort
SELECT DISTINCT + 39 + - 27 + - col1 + col0 FROM tab2 AS cor0
----
-1
20
7

query I rowsort
SELECT 34 - + col2 AS col2 FROM tab0 AS cor0
----
-13
-65
24

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col1 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT ALL + + 92 + + 29 AS col1 FROM tab1 cor0
----
121
121
121

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

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

query I rowsort
SELECT ALL 39 + - - 88 FROM tab2
----
127
127
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - 81 * - 98 * COUNT( * ) + + 52 FROM tab2
----
23866

skipif mysql # not compatible
query I rowsort label-1737
SELECT - 81 * - 98 * COUNT ( * ) + + 52 FROM tab2
----
23866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1738
SELECT - COUNT( * ) + SUM( col0 ) + - + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT - COUNT ( * ) + SUM ( col0 ) + - + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT col2 + - 41 DIV + col1 - + col1 FROM tab1
----
21
46
80

skipif mysql # not compatible
query I rowsort label-1739
SELECT col2 + - 41 / + col1 - + col1 FROM tab1
----
21
46
80

query I rowsort
SELECT - 85 + 58 FROM tab2
----
-27
-27
-27

query I rowsort
SELECT + col1 * - col0 + + col0 * - col2 FROM tab2
----
-3404
-7488
-9375

query I rowsort
SELECT col1 * - col2 + + + 2 - - col1 * + ( + 59 ) FROM tab0
----
-38
1031
974

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1743
SELECT ALL + 89 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
89
NULL
89
NULL
89
NULL

skipif mysql # not compatible
query II rowsort label-1743
SELECT ALL + 89 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
89
NULL
89
NULL
89
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT + ( col1 ) + - + col1 + - 10 DIV + 58 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1744
SELECT + ( col1 ) + - + col1 + - 10 / + 58 AS col2 FROM tab0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT - 20 * - col2 DIV + + col2 - col2 AS col0 FROM tab1 AS cor0
----
-39
-48
-76

skipif mysql # not compatible
query I rowsort label-1746
SELECT - 20 * - col2 / + + col2 - col2 AS col0 FROM tab1 AS cor0
----
-39
-48
-76

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col1 * + - col1 col0 FROM tab1 AS cor0
----
1475
150212
18816

onlyif mysql # DIV for integer division: 
query III rowsort label-1750
SELECT DISTINCT * FROM tab0 WHERE ( - - col0 ) + col1 * 12 DIV col2 <= + col0
----
97
1
99

skipif mysql # not compatible
query III rowsort label-1750
SELECT DISTINCT * FROM tab0 WHERE ( - - col0 ) + col1 * 12 / col2 <= + col0
----
97
1
99

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

query II rowsort
SELECT DISTINCT + + col1 * col2 * 22 AS col1, - col1 FROM tab1 cor0
----
29568
-14
6490
-5
70312
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL - MIN( + col0 ) * + 96 AS col1 FROM tab0 AS cor0
----
-1440

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - MIN ( + col0 ) * + 96 AS col1 FROM tab0 AS cor0
----
-1440

query II rowsort
SELECT DISTINCT 81 * - col0 AS col0, + col1 AS col1 FROM tab0 cor0
----
-1215
81
-7047
21
-7857
1

query II rowsort
SELECT ALL + + 52 * + + 42 AS col1, + col0 * 48 FROM tab0 AS cor0
----
2184
4176
2184
4656
2184
720

query I rowsort
SELECT col0 * - col2 + + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-10465
-5440
-5610

query II rowsort
SELECT DISTINCT - - col1 * - col1, col0 AS col0 FROM tab2 AS cor0
----
-2601
46
-4489
75
-5929
64

query I rowsort
SELECT ALL - + 77 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 98 AND NULL
----

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

query I rowsort
SELECT + 78 + 34 AS col1 FROM tab2
----
112
112
112

query I rowsort
SELECT col2 + - 79 FROM tab0
----
-32
-69
20

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

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

query I rowsort
SELECT col2 * - + col0 * - 3 * - col0 FROM tab2
----
-146004
-491520
-978750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + + 45 col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL + SUM( + 43 ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + SUM ( + 43 ) FROM tab1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT DISTINCT 91 * + COUNT( * ) AS col2 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT 91 * + COUNT ( * ) AS col2 FROM tab1
----
273

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1769
SELECT + COUNT ( - 62 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT - 3 * - col2 * - - 62 FROM tab1 AS cor0
----
10974
12648
17856

query I rowsort
SELECT DISTINCT - - ( - - col1 ) + 26 AS col1 FROM tab0 AS cor0
----
107
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - ( MIN( DISTINCT - ( + 21 ) ) ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1772
SELECT - ( MIN ( DISTINCT - ( + 21 ) ) ) AS col1 FROM tab2
----
21

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

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

query I rowsort
SELECT col1 * + 27 FROM tab2
----
1377
1809
2079

query I rowsort
SELECT 59 * 70 FROM tab1
----
4130
4130
4130

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1781
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( - CAST( NULL AS DECIMAL ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-1781
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( - CAST ( NULL AS REAL ) + - col2 )
----

query I rowsort
SELECT ALL col1 * + 39 + col1 FROM tab0
----
3240
40
840

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT 20 + - COUNT( * ) AS col1 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-1783
SELECT 20 + - COUNT ( * ) AS col1 FROM tab0
----
17

query I rowsort
SELECT ALL 67 * col2 AS col0 FROM tab0
----
3149
6633
670

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 83 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT SUM( 43 ) col0 FROM tab1
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1786
SELECT SUM ( 43 ) col0 FROM tab1
----
129

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT ALL CAST( NULL AS SIGNED ) / - CAST( col2 * - col1 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL CAST ( NULL AS INTEGER ) / - CAST ( col2 * - col1 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT 28 * col1 + ( 75 ) AS col2 FROM tab1
----
1391
215
467

query III rowsort
SELECT * FROM tab1 WHERE ( - 84 ) <= ( 29 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL 59 + 41 FROM tab1
----
100
100
100

query I rowsort
SELECT DISTINCT - col2 + ( col2 + col2 ) FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1796
SELECT * FROM tab2 WHERE NOT + col1 + - ( CAST( NULL AS SIGNED ) + + 15 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1796
SELECT * FROM tab2 WHERE NOT + col1 + - ( CAST ( NULL AS INTEGER ) + + 15 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 WHERE NULL NOT IN ( 72 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1798
SELECT * FROM tab2 AS cor0 WHERE NOT - 33 IN ( col0 * CAST( + col1 * - 67 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1798
SELECT * FROM tab2 AS cor0 WHERE NOT - 33 IN ( col0 * CAST ( + col1 * - 67 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT ALL ( CAST( 56 AS SIGNED ) ) FROM tab1 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL ( CAST ( 56 AS INTEGER ) ) FROM tab1 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT - CAST( 47 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-1081
-1880
-2726

skipif mysql # not compatible
query I rowsort label-1800
SELECT - CAST ( 47 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-1081
-1880
-2726

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

query I rowsort
SELECT + 17 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
81

skipif mysql # not compatible
query I rowsort label-1803
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
81

query I rowsort
SELECT 93 FROM tab1 AS cor0 WHERE NOT 3 * col2 IS NULL
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + col2 * - 52 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + col2 * - 52 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL 50 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL 50 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
150

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

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

query I rowsort
SELECT col2 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT ALL ( - ( 3 ) ) FROM tab2 cor0
----
-3
-3
-3

query I rowsort
SELECT ALL col1 * - ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 35 + + ( 54 + + col0 * - col1 ) > ( NULL )
----

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

query I rowsort
SELECT + 7 * + - 70 * col0 FROM tab0
----
-42630
-47530
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL COUNT( * ) + 24 * COUNT( * ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL COUNT ( * ) + 24 * COUNT ( * ) AS col1 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * col1 * col0 col2 FROM tab2
----
206448
433664
442200

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT ( - 53 + ( - col0 ) * - col2 ) IS NULL
----

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

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

query I rowsort
SELECT - col1 * - - col2 + 49 * + 84 FROM tab0 AS cor0
----
309
3906
4017

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

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

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

query II rowsort
SELECT + col0, 31 + - 84 * 40 FROM tab0
----
15
-3329
87
-3329
97
-3329

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE 21 <> NULL
----

query I rowsort
SELECT + 26 - col2 FROM tab1 AS cor0
----
-33
-42
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT DISTINCT + + 23 DIV col2 * col1 FROM tab2 AS cor0
----
0
51

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + + 23 / col2 * col1 FROM tab2 AS cor0
----
0
51

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

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

query I rowsort
SELECT - 35 - + col2 + + - 65 * + 23 AS col0 FROM tab2 AS cor0
----
-1553
-1570
-1588

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT ( + col0 ) DIV col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1827
SELECT ( + col0 ) / col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
1
17
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT - MAX( ALL + col1 ) + 9 AS col1 FROM tab2 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-1829
SELECT - MAX ( ALL + col1 ) + 9 AS col1 FROM tab2 cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT ALL 87 * - MIN( + + col1 ) * - ( 13 ) - - 92 FROM tab1
----
5747

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL 87 * - MIN ( + + col1 ) * - ( 13 ) - - 92 FROM tab1
----
5747

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1831
SELECT COUNT( * ) + - - COUNT( * ) DIV - 81 FROM tab2
----
3

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

query I rowsort
SELECT ALL col1 - + col2 * + - col2 + + ( - 80 ) AS col2 FROM tab0
----
2210
41
9722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1833
SELECT ALL - 63 DIV + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - 63 / + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT DISTINCT + MIN( DISTINCT + 64 ) col0 FROM tab2
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1834
SELECT DISTINCT + MIN ( DISTINCT + 64 ) col0 FROM tab2
----
64

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

skipif mysql # not compatible
query I rowsort label-1835
SELECT ( MAX ( ALL - col0 ) ) AS col0 FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
23
40
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1838
SELECT + col2 * + col2 DIV col2 + - col0 FROM tab1 cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-1838
SELECT + col2 * + col2 / col2 + - col0 FROM tab1 cor0
----
-23
-26
45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1840
SELECT - + ( 60 ) / + CAST( + MAX( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT - + ( 60 ) / + CAST ( + MAX ( + CAST ( NULL AS REAL ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1841
SELECT ALL 57 * + COUNT ( * ) col0 FROM tab2 WHERE NULL >= ( NULL )
----
0

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - ( + 64 ) * - col2 + - col0 AS col1 FROM tab0 AS cor0
----
2993
553
6239

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT DISTINCT MAX( DISTINCT col1 ) * - SUM( - 38 ) FROM tab1 AS cor0
----
5358

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT MAX ( DISTINCT col1 ) * - SUM ( - 38 ) FROM tab1 AS cor0
----
5358

query II rowsort
SELECT ALL + col1, 37 FROM tab2 cor0
----
51
37
67
37
77
37

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT DISTINCT + + MIN( ALL + CAST( col0 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT + + MIN ( ALL + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
51

query I rowsort
SELECT 0 + col0 * - 77 + - col0 AS col1 FROM tab2 AS cor0
----
-3588
-4992
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + MIN( ALL + col2 ) + - 38 FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1850
SELECT + MIN ( ALL + col2 ) + - 38 FROM tab2 cor0
----
-15

query II rowsort
SELECT ALL + 62, col2 * col2 AS col1 FROM tab0
----
62
100
62
2209
62
9801

query I rowsort
SELECT - 98 + - col2 + - col0 AS col0 FROM tab2
----
-167
-202
-231

query I rowsort
SELECT - 64 * 98 AS col1 FROM tab2
----
-6272
-6272
-6272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT + col0 * - CAST( + + ( + ( 98 ) ) AS SIGNED ) FROM tab2 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1854
SELECT + col0 * - CAST ( + + ( + ( 98 ) ) AS INTEGER ) FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL 97 + - ( col1 ) FROM tab2
----
20
30
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT ALL - + col1 + - 73 + - ( - col1 ) DIV col2 DIV - 58 FROM tab1 AS cor0
----
-120
-78
-87

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - + col1 + - 73 + - ( - col1 ) / col2 / - 58 FROM tab1 AS cor0
----
-120
-78
-87

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT ALL - MIN( ALL - 40 ) + - MAX( DISTINCT + ( ( + - CAST( ( 70 ) AS SIGNED ) ) ) ) + - 81 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL - MIN ( ALL - 40 ) + - MAX ( DISTINCT + ( ( + - CAST ( ( 70 ) AS INTEGER ) ) ) ) + - 81 FROM tab1 AS cor0
----
29

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 - - col0 col2 FROM tab1 AS cor0
----
124
130
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT - 18 * - 91 + CAST( - 47 AS SIGNED ) AS col2 FROM tab1
----
1591
1591
1591

skipif mysql # not compatible
query I rowsort label-1862
SELECT - 18 * - 91 + CAST ( - 47 AS INTEGER ) AS col2 FROM tab1
----
1591
1591
1591

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT - - COUNT( * ) + COUNT( * ) * + + 5 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT - - COUNT ( * ) + COUNT ( * ) * + + 5 FROM tab2 AS cor0
----
18

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

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

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

query I rowsort
SELECT - 0 * col2 AS col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT - + col2 * col2 AS col0, 28 AS col0 FROM tab0 AS cor0
----
-100
28
-2209
28
-9801
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT - 13 * - ( - COUNT( ALL ( + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1869
SELECT - 13 * - ( - COUNT ( ALL ( + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
-39

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col2 ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 - + + 41 + - 58 + - col2 - - col1 ) <> ( col0 )
----

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

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + SUM ( DISTINCT + col1 ) * + 39 AS col2 FROM tab2
----
7605

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT ALL ( - col1 ) DIV 87 * + col1 + + + 18 AS col0 FROM tab1
----
18
18
18

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL ( - col1 ) / 87 * + col1 + + + 18 AS col0 FROM tab1
----
18
18
18

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 56 NOT BETWEEN - 40 AND - 93 + + col0
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT - col0 * - - col2 + 29 BETWEEN - - col2 + - - 80 AND + + col1
----
-46
-64
-75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT + - CAST( - col0 AS SIGNED ) FROM tab0 WHERE NOT - - col1 + + col1 / CAST( NULL AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1878
SELECT + - CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NOT - - col1 + + col1 / CAST ( NULL AS INTEGER ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT - 40 * + COUNT( * ) AS col2 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT - 40 * + COUNT ( * ) AS col2 FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-1880
SELECT DISTINCT + COUNT( * ) AS col0, + MIN( DISTINCT col1 ) * 56 + - COUNT( * ) AS col2 FROM tab1
----
3
277

skipif mysql # not compatible
query II rowsort label-1880
SELECT DISTINCT + COUNT ( * ) AS col0, + MIN ( DISTINCT col1 ) * 56 + - COUNT ( * ) AS col2 FROM tab1
----
3
277

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 35 NOT IN ( col0 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1884
SELECT ALL - MIN( - col2 ) AS col0, ( + AVG ( col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL <> + col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1884
SELECT ALL - MIN ( - col2 ) AS col0, ( + AVG ( col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL <> + col0
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1885
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE ( - CAST( + 78 AS DECIMAL ) - - - col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE ( - CAST ( + 78 AS REAL ) - - - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 3 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND ( - 36 * col0 )
----

query I rowsort
SELECT ALL ( col0 ) - col2 * - col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1888
SELECT DISTINCT col2 + + 46 + - col2 DIV - - 91 * - 14 FROM tab2 AS cor0
----
104
69
86

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT col2 + + 46 + - col2 / - - 91 * - 14 FROM tab2 AS cor0
----
104
69
86

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

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + MAX ( ALL col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT - col0 * - 52 + + col0 - + 51 + 86 FROM tab2 WHERE NULL < + col1 * + col1 * - 62
----

query III rowsort
SELECT * FROM tab1 WHERE + 59 BETWEEN - col2 AND - - 17
----

query I rowsort
SELECT - col1 + - 85 AS col0 FROM tab2
----
-136
-152
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1893
SELECT DISTINCT - ( - - CAST( - + COUNT( * ) AS SIGNED ) ) * 30 * + 56 AS col1, 52 FROM tab0
----
5040
52

skipif mysql # not compatible
query II rowsort label-1893
SELECT DISTINCT - ( - - CAST ( - + COUNT ( * ) AS INTEGER ) ) * 30 * + 56 AS col1, 52 FROM tab0
----
5040
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT 61 + - 27 * COUNT( * ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT 61 + - 27 * COUNT ( * ) FROM tab1
----
-20

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

skipif mysql # not compatible
query III rowsort label-1895
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * col1 IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 49 + - 84 * - 51 * + col0 FROM tab2
----
197015
274127
321251

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

skipif mysql # not compatible
query II rowsort label-1897
SELECT DISTINCT + COUNT ( * ), MAX ( ALL + 2 ) AS col2 FROM tab1
----
3
2

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

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

query I rowsort
SELECT - 81 + + + 11 FROM tab0
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT - col2 DIV col0 + 54 + - 91 AS col1 FROM tab1 AS cor0
----
-37
-37
-38

skipif mysql # not compatible
query I rowsort label-1900
SELECT - col2 / col0 + 54 + - 91 AS col1 FROM tab1 AS cor0
----
-37
-37
-38

query I rowsort
SELECT ALL col2 - + + col0 + ( - 91 ) FROM tab1
----
-114
-117
-46

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

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

query I rowsort
SELECT - col0 * - 38 - 11 FROM tab1
----
1927
3219
3447

query I rowsort
SELECT - 82 - + col2 AS col2 FROM tab2
----
-105
-122
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT + 3 * 93 - + - CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
330
364
370

skipif mysql # not compatible
query I rowsort label-1905
SELECT + 3 * 93 - + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
330
364
370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, 12 * - 28 FROM tab1 AS cor0
----
-51
-336
-85
-336
-91
-336

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

query I rowsort
SELECT DISTINCT + - 70 FROM tab0 AS cor0 WHERE NOT + 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - 53 + - col2 FROM tab2 AS cor0 WHERE NOT col2 * + col2 * + 76 IS NULL
----
-111
-76
-93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT + - ( + col0 ) FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) < col2
----

skipif mysql # not compatible
query I rowsort label-1912
SELECT + - ( + col0 ) FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) < col2
----

query I rowsort
SELECT DISTINCT + 2 * + 49 + - col1 FROM tab2 cor0
----
21
31
47

query I rowsort
SELECT ALL 62 * - col0 FROM tab1 AS cor0
----
-3162
-5270
-5642

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 / ( + col0 ) + - 62 + - col0 * + - col0 IN ( - + col2 + + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1919
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) * + MIN( ALL 4 ) DIV + MIN( ALL + ( col1 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) * + MIN ( ALL 4 ) / + MIN ( ALL + ( col1 ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT ALL 85 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL 85 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL + - 0 * - COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + - col2 * col0 AS col2, 78 FROM tab1 AS cor0
----
-4896
78
-5015
78
-6188
78

query II rowsort
SELECT DISTINCT - 24, col1 FROM tab1
----
-24
14
-24
47
-24
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = ( 31 * - col0 / + col1 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1926
SELECT DISTINCT - - MIN( ALL col2 ) + CAST( NULL AS DECIMAL ) * + COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT - - MIN ( ALL col2 ) + CAST ( NULL AS REAL ) * + COUNT ( * ) FROM tab2 cor0
----
NULL

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

query I rowsort
SELECT - 92 * - + col0 FROM tab1 AS cor0 WHERE + ( 64 ) * + - col0 <> ( NULL )
----

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

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

query I rowsort
SELECT col2 + + 79 FROM tab0 cor0
----
126
178
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1931
SELECT COUNT( * ) + + 52 DIV - - COUNT( * ) AS col0, COUNT( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
20
3

skipif mysql # not compatible
query II rowsort label-1931
SELECT COUNT ( * ) + + 52 / - - COUNT ( * ) AS col0, COUNT ( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
20
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 BETWEEN ( - + col1 ) AND - col1 * + + 31 + + + col0 * + 13 - - - col0
----

query I rowsort
SELECT 89 * + 29 + + + 9 AS col1 FROM tab1 AS cor0
----
2590
2590
2590

query I rowsort
SELECT ALL + col1 + + + col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT MAX( + - 32 ) * COUNT( * ) AS col2 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-1935
SELECT MAX ( + - 32 ) * COUNT ( * ) AS col2 FROM tab2
----
-96

query I rowsort
SELECT ALL + + col1 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-354
-6546
96

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

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + 86 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + 29 col1 FROM tab2 cor0
----
52
69
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL ( + - MAX( - col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL ( + - MAX ( - col0 ) ) FROM tab0
----
15

query I rowsort
SELECT - + 8 * - col2 FROM tab0 AS cor0
----
376
792
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + ( + COUNT( * ) ) * + 25 AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1942
SELECT + ( + COUNT ( * ) ) * + 25 AS col2 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT - COUNT( * ) * + 82 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT - COUNT ( * ) * + 82 FROM tab1 AS cor0
----
-246

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= - 94
----

query II rowsort
SELECT + + 35 * + - 15 * - col0 AS col0, col2 * + 83 AS col2 FROM tab2 AS cor0
----
24150
1909
33600
3320
39375
4814

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1946
SELECT DISTINCT - 32 + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-32

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * 40 * - 43 * + col2 col0 FROM tab0 cor0
----
16857720
172000
3799480

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 < 53 + - - 26
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 23 + - col0 / - col1 + 68 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 69 + - - col2 < NULL
----

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

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

query I rowsort
SELECT DISTINCT ( ( - 41 ) ) AS col0 FROM tab1
----
-41

query I rowsort
SELECT - - col1 + - - 23 FROM tab0 WHERE + col2 <= col2
----
104
24
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1957
SELECT + CAST( NULL AS SIGNED ) * + col2 / - + 90 / 42 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT + CAST ( NULL AS INTEGER ) * + col2 / - + 90 / 42 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1958
SELECT ALL col2 + + 76 + - + col0 DIV col1 FROM tab2
----
116
133
99

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL col2 + + 76 + - + col0 / col1 FROM tab2
----
116
133
99

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

skipif mysql # not compatible
query I rowsort label-1959
SELECT + COUNT ( ALL ( + col2 ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - 30 + - + col0 FROM tab1 cor0
----
-115
-121
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1961
SELECT - col0 DIV - col1 + col1 FROM tab0 AS cor0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-1961
SELECT - col0 / - col1 + col1 FROM tab0 AS cor0
----
25
81
98

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

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

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

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

query I rowsort
SELECT DISTINCT - + col2 + + col0 FROM tab0 AS cor0 WHERE NOT 22 BETWEEN - 37 AND NULL AND NOT + col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT 8 + col0 * - CAST( - col2 AS SIGNED ) + - + col2 FROM tab1
----
4808
4964
6128

skipif mysql # not compatible
query I rowsort label-1966
SELECT 8 + col0 * - CAST ( - col2 AS INTEGER ) + - + col2 FROM tab1
----
4808
4964
6128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1967
SELECT DISTINCT + COUNT( * ) + + 45 DIV - 96 AS col0, COUNT( * ) col0 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1967
SELECT DISTINCT + COUNT ( * ) + + 45 / - 96 AS col0, COUNT ( * ) col0 FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col2 col1 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT + col0 * col0 + - col2 + + col0 * + 23 * - - 13 * - + CAST( - 89 AS SIGNED ) FROM tab1
----
1359666
2269101
2429814

skipif mysql # not compatible
query I rowsort label-1969
SELECT + col0 * col0 + - col2 + + col0 * + 23 * - - 13 * - + CAST ( - 89 AS INTEGER ) FROM tab1
----
1359666
2269101
2429814

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL - ( - COUNT( - - 27 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL - ( - COUNT ( - - 27 ) ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - 82 ) ) >= + 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT + 31 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT - MAX( DISTINCT - - ( col2 ) ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - MAX ( DISTINCT - - ( col2 ) ) AS col1 FROM tab0
----
-99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1976
SELECT MIN( ALL + + CAST( - col0 AS SIGNED ) ) FROM tab2 cor0 WHERE NOT + col1 BETWEEN NULL AND + 62
----
-75

skipif mysql # not compatible
query I rowsort label-1976
SELECT MIN ( ALL + + CAST ( - col0 AS INTEGER ) ) FROM tab2 cor0 WHERE NOT + col1 BETWEEN NULL AND + 62
----
-75

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

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

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

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

skipif mysql # not compatible
query III rowsort label-1980
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( - col1, - col2 + 7 * + col0 * - - col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT DISTINCT - COUNT( * ) + - 76 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - 77 IN ( + col1 )
----
-79

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT - COUNT ( * ) + - 76 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - 77 IN ( + col1 )
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col1 FROM tab2
----
14
14
14

query I rowsort
SELECT - col1 * ( col1 ) * - col1 FROM tab1
----
103823
125
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT DISTINCT + MIN( - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT + MIN ( - col1 ) FROM tab1
----
-47

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

query I rowsort
SELECT ALL col0 * - - col2 * + col0 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT - SUM( + 59 ) + + - 90 AS col2 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT - SUM ( + 59 ) + + - 90 AS col2 FROM tab1 AS cor0
----
-267

query I rowsort
SELECT ALL - - 32 + - col0 AS col2 FROM tab1 AS cor0
----
-19
-53
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT - 59 * - COUNT( * ) FROM tab2 cor0
----
177

skipif mysql # not compatible
query I rowsort label-1989
SELECT - 59 * - COUNT ( * ) FROM tab2 cor0
----
177

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

query I rowsort
SELECT - 45 * + + col0 FROM tab1
----
-2295
-3825
-4095

query II rowsort
SELECT ALL + col0 AS col0, 28 * col1 AS col0 FROM tab2
----
46
1428
64
2156
75
1876

query I rowsort
SELECT DISTINCT + col1 * + + col2 AS col0 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT ALL col0 DIV col2 + 31 FROM tab0
----
31
31
39

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL col0 / col2 + 31 FROM tab0
----
31
31
39

query I rowsort
SELECT ALL col2 * - col0 - col1 AS col0 FROM tab2 AS cor0
----
-1109
-2637
-4417

query II rowsort
SELECT + col1 AS col0, + 59 FROM tab1 AS cor0
----
14
59
47
59
5
59

query I rowsort
SELECT - - AVG ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 - - + col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 * + - col0 AS col1 FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab0 WHERE - - 62 + + 15 * col1 <= + col0
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT ALL - CAST( NULL AS SIGNED ) / - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - CAST ( NULL AS INTEGER ) / - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - - COUNT( * ) * + 27 AS col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2002
SELECT - - COUNT ( * ) * + 27 AS col0 FROM tab2 AS cor0
----
81

query I rowsort
SELECT DISTINCT 98 * + - col2 FROM tab1
----
-5782
-6664
-9408

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT ALL col2 DIV - + 87 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2004
SELECT ALL col2 / - + 87 col0 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 94 BETWEEN + - 85 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT + COUNT( DISTINCT + 33 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2006
SELECT + COUNT ( DISTINCT + 33 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT col1 * 30 * - col0 * + col2 FROM tab2 cor0
----
-1618740
-5913600
-8743500

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - SUM( - 33 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2008
SELECT - SUM ( - 33 ) FROM tab0 cor0
----
99

query II rowsort
SELECT DISTINCT - + col0 AS col2, + 91 FROM tab2 AS cor0
----
-46
91
-64
91
-75
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT DISTINCT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - 65 AS col0 FROM tab1
----
3835
4420
6240

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2012
SELECT * FROM tab2 WHERE NOT ( NOT NULL > + col0 + - - col2 + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2012
SELECT * FROM tab2 WHERE NOT ( NOT NULL > + col0 + - - col2 + + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT col1 + - col1 + col1 + - col0 + - col1 * + col0 FROM tab0 WHERE NOT 44 - - col2 + + col2 IS NULL
----
-1149
-1893
-193

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 * col0 + - col0 + + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT DISTINCT ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + - MIN( col2 ) + + 97 AS col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2016
SELECT + - MIN ( col2 ) + + 97 AS col2 FROM tab0 AS cor0
----
87

query I rowsort
SELECT + 94 * - col1 + + + col0 / + col2 AS col1 FROM tab0 AS cor0 WHERE col0 / - col2 * 36 IS NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE 68 = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT col1 * ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT col1 * ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2020
SELECT * FROM tab1 WHERE + 48 BETWEEN - col0 / - ( + CAST( NULL AS SIGNED ) ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-2020
SELECT * FROM tab1 WHERE + 48 BETWEEN - col0 / - ( + CAST ( NULL AS INTEGER ) ) AND - col2
----

query I rowsort
SELECT - 88 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT col2 - - + col1 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT col0 * - - ( 12 ) + + 97 - col2 * + 73 + + 96 + - - col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-3059
-5871
506

skipif mysql # not compatible
query I rowsort label-2023
SELECT col0 * - - ( 12 ) + + 97 - col2 * + 73 + + 96 + - - col1 / - col1 AS col0 FROM tab0 AS cor0
----
-3059
-5871
506

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < col2 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 < + ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 2 + + col2 AS col0 FROM tab1 AS cor0
----
61
70
98

query I rowsort
SELECT 60 + col2 * col1 * + col0 FROM tab2 cor0
----
197180
291510
54018

query I rowsort
SELECT ALL col0 + - + col1 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT ALL + col1 - - + col1 AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE + col0 * - 38 IS NULL
----

query I rowsort
SELECT + 27 + + 85 * col1 * - 4 + - col1 FROM tab2
----
-17364
-22820
-26230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2032
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + MIN( ALL 52 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - + MIN ( ALL 52 ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2033
SELECT ALL col1 AS col0, col0 + col0 DIV - col1 FROM tab0
----
1
0
21
83
81
15

skipif mysql # not compatible
query II rowsort label-2033
SELECT ALL col1 AS col0, col0 + col0 / - col1 FROM tab0
----
1
0
21
83
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2034
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
-6

query I rowsort
SELECT ( - + ( - + 64 ) ) AS col1 FROM tab0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + 95 * - SUM( - col0 ) FROM tab2
----
17575

skipif mysql # not compatible
query I rowsort label-2036
SELECT + 95 * - SUM ( - col0 ) FROM tab2
----
17575

query I rowsort
SELECT + ( - col1 ) * 13 AS col0 FROM tab0
----
-1053
-13
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 AS cor0 WHERE NOT col2 / + col2 + + 48 - - 78 + 27 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - - COUNT( DISTINCT + + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2040
SELECT - - COUNT ( DISTINCT + + col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - + 52 AS col1 FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT DISTINCT - - MIN( DISTINCT + 89 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 36 / + col2 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - - MIN ( DISTINCT + 89 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 36 / + col2 * - col2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 17 + + - 0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2044
SELECT col1 AS col0, + CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2044
SELECT col1 AS col0, + CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT - 0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - - 35 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT ALL + CAST( - 33 AS SIGNED ) FROM tab2 cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL + CAST ( - 33 AS INTEGER ) FROM tab2 cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT MAX( DISTINCT - ( - col1 ) ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT MAX ( DISTINCT - ( - col1 ) ) FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT + col0 * - 70 FROM tab1 cor0
----
-3570
-5950
-6370

query I rowsort
SELECT - col0 * + - col2 * col0 * + - col1 + + 75 * + ( - col1 ) + + col1 FROM tab2 AS cor0
----
-12621378
-21863708
-2485842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2051
SELECT CAST( + 18 AS SIGNED ) * - - ( + COUNT( * ) ) + - 21 + ( + + ( - + AVG ( DISTINCT col1 ) ) ) AS col0 FROM tab2 cor0 WHERE NOT NULL = ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT CAST ( + 18 AS INTEGER ) * - - ( + COUNT ( * ) ) + - 21 + ( + + ( - + AVG ( DISTINCT col1 ) ) ) AS col0 FROM tab2 cor0 WHERE NOT NULL = ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 * - col2, 52, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 * - col2, 52, col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT DISTINCT + CAST( 30 AS SIGNED ) * - 36 FROM tab0 AS cor0
----
-1080

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT + CAST ( 30 AS INTEGER ) * - 36 FROM tab0 AS cor0
----
-1080

query I rowsort
SELECT - col1 + 14 AS col2 FROM tab1
----
-33
0
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( + - col0 ) * - col2 * + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 AS col2, ( col2 ) * - + 93 - - - col0 FROM tab2
----
51
-2185
67
-5469
77
-3784

query II rowsort
SELECT ALL - 30 AS col0, col1 * - + ( - col0 ) * + - col2 AS col0 FROM tab1
----
-30
-25075
-30
-290836
-30
-68544

query II rowsort
SELECT 20, + 51 + + 57 + - 85 AS col2 FROM tab2
----
20
23
20
23
20
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT 12 DIV - 30 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT 12 / - 30 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2060
SELECT - 91 AS col1, ( + - 46 ) * + + COUNT( ALL - + 15 ) AS col1 FROM tab2
----
-91
-138

skipif mysql # not compatible
query II rowsort label-2060
SELECT - 91 AS col1, ( + - 46 ) * + + COUNT ( ALL - + 15 ) AS col1 FROM tab2
----
-91
-138

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE + ( col0 ) * - + col2 NOT BETWEEN + 68 + - + 51 - - - col1 AND + 5
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 9 < - 11
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 - - - 74 + col1 IS NULL
----

query I rowsort
SELECT col1 + + col2 + + 30 AS col0 FROM tab2
----
104
147
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + + COUNT( * ) * - COUNT( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2065
SELECT + + COUNT ( * ) * - COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2066
SELECT DISTINCT - 10 * col2 DIV 32 + 98 + + + col2 + + - col2 DIV - 31 col2 FROM tab0 AS cor0
----
105
132
170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2066
SELECT DISTINCT - 10 * col2 / 32 + 98 + + + col2 + + - col2 / - 31 col2 FROM tab0 AS cor0
----
105
132
170

query I rowsort
SELECT ALL 63 - col2 * + - 39 FROM tab1 AS cor0
----
2364
2715
3807

query I rowsort
SELECT DISTINCT + 33 + + + 89 + - col2 FROM tab1 AS cor0 WHERE + col1 * 34 NOT BETWEEN + col1 AND ( NULL )
----

query I rowsort
SELECT ( 42 ) FROM tab0
----
42
42
42

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col2 ) > 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT + ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col1 * - - col2 - - col2 AS col1 FROM tab0 cor0 WHERE NOT - col0 IS NULL
----
198
220
3854

query I rowsort
SELECT + col2 * - col1 + col2 + + 20 FROM tab2 WHERE NOT NULL BETWEEN - - col0 AND + + col1 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( + 86 ) BETWEEN NULL AND - col1 * + 81 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2076
SELECT ALL + + CAST( SUM( 59 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL + + CAST ( SUM ( 59 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
177

query I rowsort
SELECT DISTINCT col1 * + + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT ALL - col2 DIV 58 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - col2 / 58 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT - 41 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT ALL 21 DIV + 85 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL 21 / + 85 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2081
SELECT + CAST( + col0 AS SIGNED ) AS col0, col2 DIV - ( + 24 ) AS col2 FROM tab2
----
46
0
64
-1
75
-2

skipif mysql # not compatible
query II rowsort label-2081
SELECT + CAST ( + col0 AS INTEGER ) AS col0, col2 / - ( + 24 ) AS col2 FROM tab2
----
46
0
64
-1
75
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2082
SELECT ( + - col1 ) DIV - col2 + col2 DIV - ( + col2 ) AS col1 FROM tab0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-2082
SELECT ( + - col1 ) / - col2 + col2 / - ( + col2 ) AS col1 FROM tab0
----
-1
0
1

query I rowsort
SELECT ALL 77 * - + col2 AS col2 FROM tab0
----
-3619
-7623
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT - 17 + SUM( DISTINCT + col0 ) FROM tab0
----
182

skipif mysql # not compatible
query I rowsort label-2084
SELECT - 17 + SUM ( DISTINCT + col0 ) FROM tab0
----
182

query I rowsort
SELECT - col1 + + + col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT - CAST( NULL AS SIGNED ) / + col1 + + + 29 * - col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2086
SELECT - CAST ( NULL AS INTEGER ) / + col1 + + + 29 * - col1 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 61 AS col0 FROM tab1 AS cor0
----
112
146
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * col1 * - - 91 + + - 42 col1 FROM tab0 AS cor0
----
228459
2779
59199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 - - 79 FROM tab1 AS cor0
----
138
147
175

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2091
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 97 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2091
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 97 <= - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + 32 - - ( - 51 ) + 50 AS col1, ( col1 ) AS col2 FROM tab2 AS cor0
----
31
51
31
67
31
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 + + 41 - - 65 col0 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2094
SELECT ALL + 83, + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
query II rowsort label-2094
SELECT ALL + 83, + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
83
NULL
83
NULL
83
NULL

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 67
----

query I rowsort
SELECT - col2 * + 0 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT - MIN( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2097
SELECT - MIN ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT col0 * - + 33 AS col1 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT DISTINCT 1 FROM tab2 WHERE NOT NULL <= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL - - COUNT( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2100
SELECT ALL - - COUNT ( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT + COUNT( * ), 46 * + COUNT( * ) * - 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-21528

skipif mysql # not compatible
query II rowsort label-2101
SELECT + COUNT ( * ), 46 * + COUNT ( * ) * - 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-21528

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT + 13 + + COUNT( ( + + ( - + col1 ) ) ) + - + COUNT( * ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT + 13 + + COUNT ( ( + + ( - + col1 ) ) ) + - + COUNT ( * ) FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL - 73 * - 82 AS col2 FROM tab2 AS cor0
----
5986
5986
5986

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * col2 BETWEEN - + col1 * - col0 * + 72 AND col1
----

query I rowsort
SELECT + - col0 + - col1 AS col2 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - + COUNT( * ) + - + 56 AS col0 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2106
SELECT - + COUNT ( * ) + - + 56 AS col0 FROM tab2 AS cor0
----
-59

query II rowsort
SELECT DISTINCT 96, + col1 FROM tab2 AS cor0
----
96
51
96
67
96
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - + 18 - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2109
SELECT DISTINCT col2 DIV + col2 + + + 43 + + - col2 DIV col0, col1 FROM tab2 AS cor0
----
44
51
44
67
44
77

skipif mysql # not compatible
query II rowsort label-2109
SELECT DISTINCT col2 / + col2 + + + 43 + + - col2 / col0, col1 FROM tab2 AS cor0
----
44
51
44
67
44
77

query II rowsort
SELECT + 78 AS col2, - 90 FROM tab2
----
78
-90
78
-90
78
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, - col2 - + 56 AS col2 FROM tab2
----
-46
-79
-64
-96
-75
-114

query I rowsort
SELECT DISTINCT 59 * - col1 AS col2 FROM tab1
----
-2773
-295
-826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT DISTINCT CAST( - 6 AS SIGNED ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT CAST ( - 6 AS INTEGER ) AS col0 FROM tab1
----
-6

query II rowsort
SELECT ALL col2 AS col0, 28 * - col2 + - - 22 FROM tab0 cor0
----
10
-258
47
-1294
99
-2750

query I rowsort
SELECT ALL - + 78 * col0 * + 93 AS col2 FROM tab0 cor0
----
-108810
-631098
-703638

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2116
SELECT * FROM tab0 cor0 WHERE CAST( + 41 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2116
SELECT * FROM tab0 cor0 WHERE CAST ( + 41 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col0 - + - col2 - - col2 + - col2 * + + col1 FROM tab0 AS cor0
----
-277
-3728
2

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 + col2 / - 54 > ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ALL COUNT( * ) + - + MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL COUNT ( * ) + - + MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT + 38 - + MAX( - + col1 ) AS col0 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + 38 - + MAX ( - + col1 ) AS col0 FROM tab2
----
89

query I rowsort
SELECT - + 89 AS col1 FROM tab2 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2122
SELECT DISTINCT + MIN( DISTINCT + col1 ), SUM( - col0 ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
51
-182

skipif mysql # not compatible
query II rowsort label-2122
SELECT DISTINCT + MIN ( DISTINCT + col1 ), SUM ( - col0 ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
51
-182

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2123
SELECT ALL CAST( + col1 AS DECIMAL ) - CAST( NULL AS SIGNED ), - col2 + - col0 FROM tab2 cor0 WHERE NOT ( + - col1 ) NOT IN ( - + 83 * - col2 )
----

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL CAST ( + col1 AS REAL ) - CAST ( NULL AS INTEGER ), - col2 + - col0 FROM tab2 cor0 WHERE NOT ( + - col1 ) NOT IN ( - + 83 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, 68 + col1 * + col1 col1 FROM tab2
----
51
2669
67
4557
77
5997

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE - 63 + col1 / + + col1 * col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE - 63 + col1 / + + col1 * col2 IS NOT NULL
----
-3

query II rowsort
SELECT DISTINCT 60 AS col1, + col0 FROM tab0
----
60
15
60
87
60
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT + COUNT( DISTINCT + + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT + COUNT ( DISTINCT + + col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT 45 * + - col2 AS col2 FROM tab0 cor0
----
-2115
-4455
-450

query II rowsort
SELECT ALL - - col0 AS col0, 70 AS col1 FROM tab0 AS cor0
----
15
70
87
70
97
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT DISTINCT - MAX( - col2 ) col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2130
SELECT DISTINCT - MAX ( - col2 ) col1 FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 70 col0, 1 * ( col2 ) FROM tab0 AS cor0
----
-70
10
-70
47
-70
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ( + MAX( DISTINCT - + col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2132
SELECT ( + MAX ( DISTINCT - + col0 ) ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2133
SELECT + 71 DIV COUNT( * ) col0 FROM tab1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2133
SELECT + 71 / COUNT ( * ) col0 FROM tab1
----
23

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) <> 38 OR NOT NULL >= - 90
----

query I rowsort
SELECT ( - + 16 ) FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT DISTINCT col1 + ( - - CAST( + 84 AS SIGNED ) ) + col0 * col2 + CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT col1 + ( - - CAST ( + 84 AS INTEGER ) ) + col0 * col2 + CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - + col1 ) col0, - 30 FROM tab1 AS cor0
----
-14
-30
-47
-30
-5
-30

query I rowsort
SELECT DISTINCT - + 10 + + + 72 + + col0 + 58 * - + 31 AS col0 FROM tab1 AS cor0
----
-1645
-1651
-1685

query I rowsort
SELECT DISTINCT - col0 * - ( + 12 ) * col0 AS col0 FROM tab2
----
25392
49152
67500

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT 32 + COUNT( * ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-2140
SELECT 32 + COUNT ( * ) FROM tab2
----
35

query I rowsort
SELECT 22 + - 66 + col0 FROM tab2
----
2
20
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col1 - + - 84 col2, col0 FROM tab1
----
-1260
51
-211
85
-3112
91

query I rowsort
SELECT ALL col1 * + 24 AS col2 FROM tab0
----
1944
24
504

query I rowsort
SELECT + 80 FROM tab1 WHERE - + col1 BETWEEN - + 62 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2145
SELECT col1 * - CAST( NULL AS SIGNED ) * + col2 + 16 + - col0 + + col2 * col2 / - - col2 + + + 94 / + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT col1 * - CAST ( NULL AS INTEGER ) * + col2 + 16 + - col0 + + col2 * col2 / - - col2 + + + 94 / + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 36 + + col0 AS col1 FROM tab2
----
100
111
82

query I rowsort
SELECT ALL + col1 + - 69 AS col2 FROM tab0 AS cor0
----
-48
-68
12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 72 NOT IN ( - col1, col2 + - col0, ( - - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT ALL + col2 * + col1 + + ( 69 ) DIV + + 16 - - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1228
3161
3957

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL + col2 * + col1 + + ( 69 ) / + + 16 - - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1228
3161
3957

query I rowsort
SELECT 8 - + 70 FROM tab2
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT DISTINCT 88 DIV + + 15 AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT 88 / + + 15 AS col2 FROM tab1
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2152
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ), col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2152
SELECT DISTINCT col0 * CAST ( NULL AS REAL ), col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - col1 * - + ( - - col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT + ( - col2 ) DIV + - 75 + col2 - - 48 + + - col0 FROM tab1 AS cor0 WHERE NOT - col2 - + 88 IS NULL
----
22
25
94

skipif mysql # not compatible
query I rowsort label-2154
SELECT + ( - col2 ) / + - 75 + col2 - - 48 + + - col0 FROM tab1 AS cor0 WHERE NOT - col2 - + 88 IS NULL
----
22
25
94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > - ( + col2 ) + - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT + - MIN( ALL - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT + - MIN ( ALL - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL - MIN( + col0 ) col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2157
SELECT ALL - MIN ( + col0 ) col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL + 69 * + col0 * + col1 AS col2 FROM tab1 AS cor0
----
29325
295113
49266

query II rowsort
SELECT DISTINCT col1, + col0 * + col1 AS col2 FROM tab0 WHERE ( NULL < 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2160
SELECT ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + col1 + + col2 AS col0 FROM tab0 WHERE + 17 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + col1 + + col2 AS col0 FROM tab0 WHERE + 17 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT COUNT( - - ( - + col2 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2161
SELECT COUNT ( - - ( - + col2 ) ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * col2 col1, col2 AS col2 FROM tab2
----
-1600
40
-3364
58
-529
23

query I rowsort
SELECT ALL col1 + - + ( + - col0 ) AS col0 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 IS NOT NULL AND NOT ( + - col0 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 * col1 * + col1 AS col2, - col1 AS col1 FROM tab0
----
-308367
-81
-4410
-21
-99
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - col0 * - col0 NOT BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2168
SELECT - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT DISTINCT - 37 AS col2, - 94 FROM tab1 AS cor0
----
-37
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + - MAX( - col1 ) + - + COUNT( * ) - - 87 AS col0 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2170
SELECT + - MAX ( - col1 ) + - + COUNT ( * ) - - 87 AS col0 FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT - MAX( ALL col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2171
SELECT - MAX ( ALL col2 ) FROM tab1 cor0
----
-96

query I rowsort
SELECT DISTINCT + 56 * 52 FROM tab0 AS cor0
----
2912

query I rowsort
SELECT 98 FROM tab0 cor0 WHERE ( NULL ) >= - - 55 - + col0
----

query I rowsort
SELECT DISTINCT 66 + + ( col1 ) AS col1 FROM tab1
----
113
71
80

query I rowsort
SELECT ALL + 83 * col1 AS col2 FROM tab2
----
4233
5561
6391

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT ALL - 10 DIV + col1 - col1 AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - 10 / + col1 - col1 AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab2 WHERE NOT - + col1 = 61 + + + col0 * - 33
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT DISTINCT + 89 DIV + - ( - 64 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + 89 / + - ( - 64 ) AS col1 FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 17 IS NOT NULL
----

query I rowsort
SELECT + 62 AS col1 FROM tab2 WHERE NULL IS NULL
----
62
62
62

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN NULL AND + 50
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT - - col0 - + col0 DIV - col2 AS col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-2182
SELECT - - col0 - + col0 / - col2 AS col2 FROM tab2 AS cor0
----
48
65
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 65 + col0 * col1 col1 FROM tab2 AS cor0
----
2281
4863
4960

query I rowsort
SELECT + - 50 + - 17 * - col2 FROM tab1 AS cor0
----
1106
1582
953

query I rowsort
SELECT - ( - 1 ) * + 22 * - + col2 + - - col2 FROM tab0 cor0
----
-2079
-210
-987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT DISTINCT 9 - COUNT( * ) * + MIN( ALL + CAST( NULL AS SIGNED ) ) + - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT 9 - COUNT ( * ) * + MIN ( ALL + CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 26 AS col2 FROM tab0
----
1222
2574
260

query I rowsort
SELECT - + 57 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT DISTINCT col2 DIV col2 DIV - 32 * - col0 * ( - + col0 ) AS col1 FROM tab2 WHERE + - col0 DIV - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT col2 / col2 / - 32 * - col0 * ( - + col0 ) AS col1 FROM tab2 WHERE + - col0 / - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + + 86 * - 78 AS col1 FROM tab2 AS cor0
----
-6708
-6708
-6708

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT + SUM( - 61 ) FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2191
SELECT + SUM ( - 61 ) FROM tab2 AS cor0
----
-183

query I rowsort
SELECT ALL 80 * + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-278480
-369920
-737280

query II rowsort
SELECT ALL + - col2 * + - col2 + 3 AS col2, - col2 * - + 57 AS col0 FROM tab1 AS cor0
----
3484
3363
4627
3876
9219
5472

query I rowsort
SELECT ALL 81 * + col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
1134
3807
405

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + COUNT( * ) FROM tab1 WHERE NOT + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2196
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + - col1 IS NULL
----
3

query II rowsort
SELECT DISTINCT 20, col0 FROM tab2
----
20
46
20
64
20
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT + AVG ( + ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT + AVG ( + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 58 * - - col1 AS col1 FROM tab2
----
-2958
-3886
-4466

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 * + col2 BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 2 ) col0 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL MAX( ALL + + col1 ) col2 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2202
SELECT ALL MAX ( ALL + + col1 ) col2 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT - - CAST( + + col0 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-2203
SELECT - - CAST ( + + col0 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( ( NULL = + 36 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2205
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - ( 22 ) + col1 AS col0 FROM tab1 AS cor0
----
-17
-8
25

query I rowsort
SELECT - col2 * col1 * - + 95 AS col1 FROM tab0 AS cor0
----
19950
361665
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL + MIN( - - 75 ) + COUNT( * ) AS col0 FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL + MIN ( - - 75 ) + COUNT ( * ) AS col0 FROM tab0 cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 13 + - col1 + - col1 col2 FROM tab2 AS cor0
----
-121
-141
-89

query I rowsort
SELECT ALL col0 * + col1 FROM tab2 AS cor0 WHERE + + col0 < NULL AND + col1 IS NULL
----

query I rowsort
SELECT + 33 + - - col2 + - 37 * + 98 AS col2 FROM tab1 AS cor0
----
-3497
-3525
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT 42 * 73 + + 15 * - - COUNT( * ) FROM tab1
----
3111

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT 42 * 73 + + 15 * - - COUNT ( * ) FROM tab1
----
3111

query I rowsort
SELECT col2 FROM tab0 WHERE - 56 IS NULL
----

query II rowsort
SELECT DISTINCT - 42 * + col1 - - + 0 AS col2, 47 * - + ( - col0 ) AS col0 FROM tab0
----
-3402
705
-42
4559
-882
4089

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT + col2 + + - 20 * - col1 DIV + col1 FROM tab0
----
119
30
67

skipif mysql # not compatible
query I rowsort label-2217
SELECT + col2 + + - 20 * - col1 / + col1 FROM tab0
----
119
30
67

query I rowsort
SELECT ALL 65 - + col1 + + col0 AS col1 FROM tab0
----
-1
131
161

query I rowsort
SELECT + ( - - col2 ) + 97 AS col2 FROM tab2
----
120
137
155

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2220
SELECT + + CAST( NULL AS SIGNED ) * + col1 / + col1 * + - 74 / - 66, + col0 + - col1 AS col2 FROM tab2 WHERE col0 + 23 IS NULL
----

skipif mysql # not compatible
query II rowsort label-2220
SELECT + + CAST ( NULL AS INTEGER ) * + col1 / + col1 * + - 74 / - 66, + col0 + - col1 AS col2 FROM tab2 WHERE col0 + 23 IS NULL
----

query II rowsort
SELECT ALL - col1 AS col2, 73 * - - col1 FROM tab2
----
-51
3723
-67
4891
-77
5621

query I rowsort
SELECT ALL ( - 98 ) AS col0 FROM tab0
----
-98
-98
-98

query II rowsort
SELECT + + col0 AS col1, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - 84 col1 FROM tab2
----
-26
-44
-61

query I rowsort
SELECT ALL + col0 * col0 + + col0 FROM tab0
----
240
7656
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - 27 / - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2229
SELECT - col2 / CAST( NULL AS DECIMAL ) + - col1 FROM tab1 WHERE NOT 89 - 15 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT - col2 / CAST ( NULL AS REAL ) + - col1 FROM tab1 WHERE NOT 89 - 15 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2230
SELECT DISTINCT + COUNT( * ) DIV + 39 FROM tab0 WHERE - 89 NOT BETWEEN + 95 * col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT + COUNT ( * ) / + 39 FROM tab0 WHERE - 89 NOT BETWEEN + 95 * col2 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2231
SELECT 26 DIV 85 + COUNT( * ) AS col2 FROM tab0 WHERE - col2 NOT BETWEEN - CAST( NULL AS SIGNED ) * col2 AND - 5
----
0

skipif mysql # not compatible
query I rowsort label-2231
SELECT 26 / 85 + COUNT ( * ) AS col2 FROM tab0 WHERE - col2 NOT BETWEEN - CAST ( NULL AS INTEGER ) * col2 AND - 5
----
0

query I rowsort
SELECT 17 - col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + ( col0 )
----

query I rowsort
SELECT DISTINCT - col0 + ( + col0 ) * 96 FROM tab0
----
1425
8265
9215

query I rowsort
SELECT 8 * - col0 + col2 FROM tab0
----
-677
-686
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT - SUM( DISTINCT - col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - SUM ( DISTINCT - col0 ) AS col0 FROM tab2
----
185

query I rowsort
SELECT + col0 + 73 AS col1 FROM tab1
----
124
158
164

query III rowsort
SELECT * FROM tab1 WHERE + 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL COUNT( * ) * + 8 FROM tab1 WHERE NOT ( - col0 + + 98 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL COUNT ( * ) * + 8 FROM tab1 WHERE NOT ( - col0 + + 98 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT - col2 * + 27 <> col0
----
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT - col2 * + 27 <> col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT + 8 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT + 8 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 88 ) FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 + - 60 AS col2 FROM tab1
----
-13
-46
-55

query I rowsort
SELECT DISTINCT 22 + + col2 FROM tab0
----
121
32
69

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT col1 + col1 * - 51 AS col0 FROM tab2
----
-2550
-3350
-3850

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 37 BETWEEN NULL AND 36
----

query I rowsort
SELECT ALL - 13 + col1 AS col2 FROM tab2
----
38
54
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT 53 + COUNT( * ) AS col1 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-2249
SELECT 53 + COUNT ( * ) AS col1 FROM tab2
----
56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col2 / + 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT 33 * MAX( DISTINCT 75 ) FROM tab2 cor0
----
2475

skipif mysql # not compatible
query I rowsort label-2251
SELECT 33 * MAX ( DISTINCT 75 ) FROM tab2 cor0
----
2475

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 76 * col1 + - 5 * + col2 ) <= col0 / - 52 + + 82
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) + - 37 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT ALL COUNT( * ) + 28 * + CAST( 72 AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 73 )
----
2016

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL COUNT ( * ) + 28 * + CAST ( 72 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 73 )
----
2016

query I rowsort
SELECT DISTINCT + col2 + ( + col0 + + col2 ) AS col0 FROM tab2 AS cor0
----
144
191
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT 72 * COUNT( * ) + + SUM( ALL + 8 ) AS col0 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-2256
SELECT 72 * COUNT ( * ) + + SUM ( ALL + 8 ) AS col0 FROM tab2
----
240

query I rowsort
SELECT 7 + 64 AS col1 FROM tab2
----
71
71
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + col1 ) > ( col2 )
----

query I rowsort
SELECT DISTINCT - 49 + ( col0 ) * col2 FROM tab2 cor0
----
1009
2511
4301

query I rowsort
SELECT + + col2 + - 41 FROM tab2 AS cor0
----
-1
-18
17

query I rowsort
SELECT DISTINCT - col0 + + 52 * 57 AS col2 FROM tab0 AS cor0
----
2867
2877
2949

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE - 41 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2262
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE - 41 IS NOT NULL
----
3

query I rowsort
SELECT + ( 70 ) AS col0 FROM tab2 cor0
----
70
70
70

query I rowsort
SELECT ALL 50 + 64 AS col0 FROM tab2 AS cor0
----
114
114
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT COUNT( 16 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2265
SELECT COUNT ( 16 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col0 - - 36 FROM tab0 AS cor0
----
123
133
51

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2268
SELECT + 28 DIV col1 FROM tab1 cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-2268
SELECT + 28 / col1 FROM tab1 cor0
----
0
2
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + 57 >= ( NULL )
----

query I rowsort
SELECT ALL - 20 - 63 AS col2 FROM tab2
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT DISTINCT - 76 + ( + COUNT( * ) ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - 76 + ( + COUNT ( * ) ) FROM tab2
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 9 - + col1 col0 FROM tab1
----
-473
-770
-866

query III rowsort
SELECT * FROM tab0 WHERE + col0 < ( NULL )
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT col1 IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 51 / col2 ) BETWEEN NULL AND - col0 - + ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT col1 * + col0 <= ( + ( + col2 ) )
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT col1 * + col0 <= ( + ( + col2 ) )
----
NULL
NULL

query I rowsort
SELECT col0 * col2 AS col1 FROM tab1 cor0 WHERE NOT + col2 < 3
----
4896
5015
6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 5 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL + COUNT( * ) + + 69 * - ( - 75 * COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
46584

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + COUNT ( * ) + + 69 * - ( - 75 * COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
46584

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL + COUNT( * ) * - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-630

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL + COUNT ( * ) * - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT DISTINCT 53 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
53

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - 41 + - col0 / col0 >= col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT - MAX( DISTINCT + 52 ) * + 31 + + COUNT( * ) FROM tab2 cor0
----
-1609

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT - MAX ( DISTINCT + 52 ) * + 31 + + COUNT ( * ) FROM tab2 cor0
----
-1609

query I rowsort
SELECT + ( + ( - + col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL + ( 49 ) + col0 AS col2 FROM tab2 AS cor0
----
113
124
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT + CAST( - AVG ( col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - 99 ) BETWEEN - col1 AND NULL
----
-52

skipif mysql # not compatible
query I rowsort label-2287
SELECT + CAST ( - AVG ( col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - 99 ) BETWEEN - col1 AND NULL
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL + SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL + SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 + + ( 17 ) * + col0 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 75 / 98 + col1 NOT BETWEEN NULL AND ( + col2 )
----

query II rowsort
SELECT - 25, 25 AS col0 FROM tab0 AS cor0
----
-25
25
-25
25
-25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ALL - 82 - MIN( + ( + col2 ) ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 36 - + - 23 IN ( col1 )
----
-151

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - 82 - MIN ( + ( + col2 ) ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 36 - + - 23 IN ( col1 )
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + 56 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2295
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ), 46 AS col0 FROM tab1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-2295
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ), 46 AS col0 FROM tab1
----
NULL
46

query I rowsort
SELECT ALL 31 * - 59 FROM tab2
----
-1829
-1829
-1829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * + + MAX( + - 68 ) AS col2 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * + + MAX ( + - 68 ) AS col2 FROM tab2
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT DISTINCT col1 + - col2 DIV - col0 AS col2 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT col1 + - col2 / - col0 AS col2 FROM tab1
----
15
47
5

query II rowsort
SELECT col1 + col1, 70 AS col1 FROM tab0
----
162
70
2
70
42
70

query I rowsort
SELECT DISTINCT - col1 * - + 83 FROM tab1
----
1162
3901
415

query I rowsort
SELECT - ( col1 ) + + 39 AS col1 FROM tab1
----
-8
25
34

query II rowsort
SELECT 62 + col0 AS col1, col2 AS col2 FROM tab0 cor0
----
149
10
159
99
77
47

query I rowsort
SELECT - col0 + - 72 AS col0 FROM tab1 cor0
----
-123
-157
-163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 + - col0 col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT col2 + + 56 + - col1 AS col2 FROM tab1 AS cor0
----
110
138
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT DISTINCT ( + - ( - SUM( col2 ) ) ) + 97 FROM tab2 AS cor0
----
218

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT ( + - ( - SUM ( col2 ) ) ) + 97 FROM tab2 AS cor0
----
218

query I rowsort
SELECT + 32 * - 5 * col0 FROM tab1
----
-13600
-14560
-8160

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2308
SELECT - col1 * CAST( - + CAST( - + col2 AS SIGNED ) AS SIGNED ) DIV + col0 FROM tab2
----
-25
-48
-51

skipif mysql # not compatible
query I rowsort label-2308
SELECT - col1 * CAST ( - + CAST ( - + col2 AS INTEGER ) AS INTEGER ) / + col0 FROM tab2
----
-25
-48
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT - COUNT( * ) col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2309
SELECT - COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ALL + - SUM( ALL - 58 ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL + - SUM ( ALL - 58 ) FROM tab1 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT + ( + 94 ) + + + 78 - MIN( ALL + 61 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
355

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + ( + 94 ) + + + 78 - MIN ( ALL + 61 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
355

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT col2 * - 49 * col2 + + 75 FROM tab0 cor0
----
-108166
-480174
-4825

query I rowsort
SELECT + col1 * 28 + + col1 AS col2 FROM tab1
----
1363
145
406

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2315
SELECT ALL 5 col1, CAST( NULL AS SIGNED ) + - + col2 * + - col0 / + 73 AS col1 FROM tab2
----
5
NULL
5
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2315
SELECT ALL 5 col1, CAST ( NULL AS INTEGER ) + - + col2 * + - col0 / + 73 AS col1 FROM tab2
----
5
NULL
5
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT - MAX( + 80 ) FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT - MAX ( + 80 ) FROM tab0
----
-80

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + col1 <= col2
----
15
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2318
SELECT COUNT( * ), + 37 col0 FROM tab1
----
3
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2318
SELECT COUNT ( * ), + 37 col0 FROM tab1
----
3
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT DISTINCT + col0 DIV 52 col0 FROM tab0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2319
SELECT DISTINCT + col0 / 52 col0 FROM tab0
----
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( col0 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2321
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 / - + CAST( NULL AS SIGNED ) BETWEEN + col1 * CAST( col1 AS SIGNED ) * 4 - - 44 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2321
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 / - + CAST ( NULL AS INTEGER ) BETWEEN + col1 * CAST ( col1 AS INTEGER ) * 4 - - 44 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2322
SELECT MIN( + col0 ) AS col0, COUNT( * ) FROM tab0
----
15
3

skipif mysql # not compatible
query II rowsort label-2322
SELECT MIN ( + col0 ) AS col0, COUNT ( * ) FROM tab0
----
15
3

query I rowsort
SELECT DISTINCT - col1 * + + 47 * + - col2 FROM tab1 AS cor0
----
13865
150212
63168

query I rowsort
SELECT DISTINCT ( 73 ) FROM tab0 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT 29 + + COUNT( * ) + + - 94 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2325
SELECT 29 + + COUNT ( * ) + + - 94 FROM tab1 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2326
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) * + ( - col0 ) + - 71 - col0 / + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) * + ( - col0 ) + - 71 - col0 / + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL = ( - 33 ) * + + 11 / col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 2 col0 FROM tab1
----
-102
-170
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 83 * + col0 col2 FROM tab0
----
-18675
-628227
-780947

query I rowsort
SELECT ALL col1 * + 39 FROM tab1
----
1833
195
546

query I rowsort
SELECT 84 * 52 AS col0 FROM tab0
----
4368
4368
4368

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 / col1 * + col0 * - 97 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 85 col1, col1 FROM tab1 AS cor0
----
85
14
85
47
85
5

query I rowsort
SELECT ALL + + ( + - 10 ) + - col1 FROM tab0 AS cor0
----
-11
-31
-91

query I rowsort
SELECT - - col1 - + - col2 + - + col0 AS col2 FROM tab2 AS cor0
----
28
50
53

query I rowsort
SELECT ALL + 92 + + 19 + + + 46 AS col1 FROM tab2 AS cor0
----
157
157
157

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 89 > NULL
----

query I rowsort
SELECT 71 * - col2 FROM tab2
----
-1633
-2840
-4118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 52 col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query II rowsort
SELECT DISTINCT - col0 * + - col0 + + col2 + + - col1 * + 41, 41 AS col2 FROM tab2 cor0
----
2936
41
48
41
979
41

query II rowsort
SELECT DISTINCT - col0 + + col0, + 50 AS col1 FROM tab1 AS cor0
----
0
50

query I rowsort
SELECT + 76 * + col2 * - col0 - + col2 FROM tab0 cor0
----
-53627
-66130
-729927

query I rowsort
SELECT ALL - 31 * - col2 AS col1 FROM tab0
----
1457
3069
310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2346
SELECT ALL 66 DIV + ( - COUNT( * ) ) AS col0 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL 66 / + ( - COUNT ( * ) ) AS col0 FROM tab2
----
-22

query I rowsort
SELECT DISTINCT + col2 * + - 94 AS col2 FROM tab0
----
-4418
-9306
-940

onlyif mysql # aggregate syntax: 
query II rowsort label-2348
SELECT DISTINCT COUNT( * ), 95 AS col2 FROM tab2
----
3
95

skipif mysql # not compatible
query II rowsort label-2348
SELECT DISTINCT COUNT ( * ), 95 AS col2 FROM tab2
----
3
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2349
SELECT ALL COUNT( * ) DIV - - 40 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL COUNT ( * ) / - - 40 FROM tab2
----
0

query I rowsort
SELECT + 99 * col0 FROM tab2
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL SUM( DISTINCT + 6 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL SUM ( DISTINCT + 6 ) AS col1 FROM tab1
----
6

query I rowsort
SELECT + 54 * + col1 AS col2 FROM tab1 AS cor0
----
2538
270
756

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT - - col1 * CAST( - + 37 AS SIGNED ) FROM tab1 AS cor0
----
-1739
-185
-518

skipif mysql # not compatible
query I rowsort label-2354
SELECT - - col1 * CAST ( - + 37 AS INTEGER ) FROM tab1 AS cor0
----
-1739
-185
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL + - 48 * - - COUNT( * ) AS col1 FROM tab0 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + - 48 * - - COUNT ( * ) AS col1 FROM tab0 cor0
----
-144

query I rowsort
SELECT - - 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT - MAX( ALL + col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT - MAX ( ALL + col1 ) AS col1 FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <> + + 47 OR NOT col1 + - col1 IN ( 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2359
SELECT + + 53, MAX( - + col2 ) + + ( + 75 ) AS col2 FROM tab2 AS cor0
----
53
52

skipif mysql # not compatible
query II rowsort label-2359
SELECT + + 53, MAX ( - + col2 ) + + ( + 75 ) AS col2 FROM tab2 AS cor0
----
53
52

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 95 IS NULL
----

query I rowsort
SELECT ALL - - 67 AS col2 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT + ( + + col0 ) AS col2 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 * + col0 + 58 FROM tab2 AS cor0
----
1116
2618
4408

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - col2 + - + col2 + col2 * col2 + - col2 * - col0 * - 13 NOT BETWEEN NULL AND - 67 + - + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT 47 * COUNT( * ) + - + 47 + COUNT( * ) FROM tab2 cor0
----
97

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT 47 * COUNT ( * ) + - + 47 + COUNT ( * ) FROM tab2 cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT ALL - col0 FROM tab1 WHERE NOT ( NULL = + CAST( 51 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL - col0 FROM tab1 WHERE NOT ( NULL = + CAST ( 51 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL + COUNT( * ) - - 22 * + COUNT( * ) col0 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2367
SELECT ALL + COUNT ( * ) - - 22 * + COUNT ( * ) col0 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
69

query I rowsort
SELECT DISTINCT col2 * + 0 + 15 AS col2 FROM tab1
----
15

query I rowsort
SELECT ALL - col2 * - - col1 AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2370
SELECT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) NOT IN ( - + 63 + col0, col0 )
----

skipif mysql # not compatible
query III rowsort label-2370
SELECT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) NOT IN ( - + 63 + col0, col0 )
----

query I rowsort
SELECT - 71 + col1 AS col0 FROM tab2
----
-20
-4
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT + COUNT( + col0 ) + - 73 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-2372
SELECT + COUNT ( + col0 ) + - 73 FROM tab1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2373
SELECT ALL + MIN( DISTINCT + CAST( 78 AS SIGNED ) ) * COUNT( + col2 ) AS col0 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + MIN ( DISTINCT + CAST ( 78 AS INTEGER ) ) * COUNT ( + col2 ) AS col0 FROM tab1
----
234

query I rowsort
SELECT 99 - + 43 AS col1 FROM tab1
----
56
56
56

query I rowsort
SELECT ALL col2 - - 14 + - - 75 + + ( + - col0 ) FROM tab2
----
65
66
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT COUNT( DISTINCT 81 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT COUNT ( DISTINCT 81 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2377
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT 13 * + 45 AS col2 FROM tab2 AS cor0
----
585
585
585

query II rowsort
SELECT ALL + col1, + ( + col1 ) FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 27 col2, - 17 FROM tab2 cor0
----
27
-17
27
-17
27
-17

query I rowsort
SELECT DISTINCT + + 61 / - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 64 / + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT ALL + col2 * col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL + col2 * col2 / - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - 75 * + ( - + 33 ) + + - col2 FROM tab1 AS cor0
----
2379
2407
2416

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT ALL - 45 DIV 24 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - 45 / 24 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT - + col2 DIV ( - col1 ) AS col0 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2385
SELECT - + col2 / ( - col1 ) AS col0 FROM tab1 cor0
----
1
11
6

query I rowsort
SELECT + - col1 FROM tab1 WHERE NOT + ( + 67 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + 12 FROM tab1
----
168
564
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT + ( + - ( - ( MAX( 66 ) ) ) ) col2 FROM tab0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2388
SELECT DISTINCT + ( + - ( - ( MAX ( 66 ) ) ) ) col2 FROM tab0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT ALL col1 DIV - - 85 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL col1 / - - 85 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL SUM( + - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL SUM ( + - col0 ) FROM tab2
----
-185

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 63 <> - 13 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2392
SELECT - SUM( ALL + 32 ) AS col0, - 66 col0 FROM tab1
----
-96
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2392
SELECT - SUM ( ALL + 32 ) AS col0, - 66 col0 FROM tab1
----
-96
-66

query I rowsort
SELECT DISTINCT - col2 * + + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - - 54 AS col1 FROM tab0 cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT SUM( + + col0 ) * + COUNT( * ) AS col0 FROM tab2 cor0
----
555

skipif mysql # not compatible
query I rowsort label-2395
SELECT SUM ( + + col0 ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
555

query I rowsort
SELECT + col1 * 83 + - 6 AS col1 FROM tab1 AS cor0
----
1156
3895
409

query I rowsort
SELECT + - 37 / 72 FROM tab1 AS cor0 WHERE NOT ( + 19 ) >= - 57
----

query I rowsort
SELECT DISTINCT col0 * + + col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - 80 * + + 21 FROM tab1 AS cor0
----
-1680
-1680
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2400
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( + 71 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2400
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( + 71 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col1 ) + - + col0 col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT DISTINCT col2 + - ( + col0 ) + + + col1 * - - col1 * 68 + - - col1 DIV 57 + - - col1 FROM tab1 AS cor0
----
13387
150236
1679

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT col2 + - ( + col0 ) + + + col1 * - - col1 * 68 + - - col1 / 57 + - - col1 FROM tab1 AS cor0
----
13387
150236
1679

query I rowsort
SELECT DISTINCT + 41 + col0 AS col2 FROM tab0 cor0
----
128
138
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT DISTINCT + COUNT( col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT + COUNT ( col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT + col0 * - 63 FROM tab0
----
-5481
-6111
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT ALL col1 DIV - ( 13 ) FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL col1 / - ( 13 ) FROM tab1
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT ALL + 5 - + SUM( + col0 ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL + 5 - + SUM ( + col0 ) FROM tab1
----
-222

query III rowsort
SELECT * FROM tab1 WHERE 9 + - col0 IS NULL
----

query II rowsort
SELECT DISTINCT 35, col1 FROM tab1
----
35
14
35
47
35
5

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT + - col0 + + - col2 NOT BETWEEN - col0 AND - ( - - 32 )
----

query I rowsort
SELECT + col2 - + col2 * + col0 FROM tab0 AS cor0
----
-658
-860
-9504

query I rowsort
SELECT - - col0 * 53 - col2 FROM tab0 AS cor0
----
4601
5042
748

query I rowsort
SELECT ALL - col1 + + + col2 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT - 17 * + COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2416
SELECT - 17 * + COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT col2 + - - col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + + 56 + - col2 FROM tab1 AS cor0
----
-12
-3
-40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND - col1
----

query I rowsort
SELECT - + 2 + col0 FROM tab2 AS cor0
----
44
62
73

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE - + 70 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - 36 * - col0 + - - col0 AS col1 FROM tab1 AS cor0
----
1887
3145
3367

query II rowsort
SELECT - + col2 * - col1, col2 FROM tab1 AS cor0
----
1344
96
295
59
3196
68

query I rowsort
SELECT + col2 * - 4 * - col1 AS col2 FROM tab2 AS cor0
----
12320
15544
4692

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT + 97 * - COUNT( - col0 ) + + + ( - 89 ) AS col2 FROM tab2 AS cor0
----
-380

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT + 97 * - COUNT ( - col0 ) + + + ( - 89 ) AS col2 FROM tab2 AS cor0
----
-380

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT ( + 96 ) * - - COUNT( * ), - 94 AS col2 FROM tab0 AS cor0
----
288
-94

skipif mysql # not compatible
query II rowsort label-2426
SELECT ( + 96 ) * - - COUNT ( * ), - 94 AS col2 FROM tab0 AS cor0
----
288
-94

query I rowsort
SELECT DISTINCT + 28 * + col2 * + col0 FROM tab2 AS cor0
----
121800
29624
71680

query I rowsort
SELECT + ( - - 29 ) FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT - 68 FROM tab1 AS cor0 WHERE NOT + 70 + + + col0 IS NULL
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2430
SELECT + + CAST( + + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2430
SELECT + + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT DISTINCT + MIN( + + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT + MIN ( + + col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2432
SELECT DISTINCT * FROM tab2 WHERE NULL <= + col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2432
SELECT DISTINCT * FROM tab2 WHERE NULL <= + col2 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( + + 79 ) AS col1 FROM tab0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL + MAX( col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + MAX ( col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL SUM( 97 ) col0 FROM tab2
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2435
SELECT ALL SUM ( 97 ) col0 FROM tab2
----
291

query I rowsort
SELECT ALL 73 * + col2 FROM tab1
----
4307
4964
7008

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 22 NOT BETWEEN + - 59 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2438
SELECT DISTINCT + ( 54 ) * 88 + COUNT( * ) AS col0, - 22 FROM tab0
----
4755
-22

skipif mysql # not compatible
query II rowsort label-2438
SELECT DISTINCT + ( 54 ) * 88 + COUNT ( * ) AS col0, - 22 FROM tab0
----
4755
-22

query I rowsort
SELECT ALL - col2 * + + col1 AS col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT 67 + - 73 AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT - - 96 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
96
96
96

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 68 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2443
SELECT DISTINCT COUNT( * ), ( + COUNT( * ) ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2443
SELECT DISTINCT COUNT ( * ), ( + COUNT ( * ) ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab0 WHERE NOT - col2 IS NULL
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query II rowsort label-2445
SELECT DISTINCT + COUNT( - 86 ) AS col2, + COUNT( * ) * + + 21 FROM tab0
----
3
63

skipif mysql # not compatible
query II rowsort label-2445
SELECT DISTINCT + COUNT ( - 86 ) AS col2, + COUNT ( * ) * + + 21 FROM tab0
----
3
63

query I rowsort
SELECT DISTINCT + 77 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
77

query II rowsort
SELECT - col1 * - col0 AS col1, col0 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col0 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( 78 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2451
SELECT CAST( NULL AS DECIMAL ) * - 37 - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2451
SELECT CAST ( NULL AS REAL ) * - 37 - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT + col2 + - CAST( NULL AS SIGNED ) + + col0 - - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT + col2 + - CAST ( NULL AS INTEGER ) + + col0 - - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 - + - col1 + - col2 * col1 * + col2, + col1 AS col2 FROM tab2
----
-123083
77
-225263
67
-26905
51

query I rowsort
SELECT ALL ( - + 36 ) FROM tab1
----
-36
-36
-36

query I rowsort
SELECT col1 + - + 52 * col1 FROM tab2
----
-2601
-3417
-3927

query I rowsort
SELECT - 65 + - + col1 FROM tab0
----
-146
-66
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2457
SELECT + CAST( NULL AS DECIMAL ) * + 38 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT + CAST ( NULL AS REAL ) * + 38 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT + MIN( ALL + + col2 ) + COUNT( * ) FROM tab2 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + MIN ( ALL + + col2 ) + COUNT ( * ) FROM tab2 cor0
----
26

query I rowsort
SELECT - col1 * + ( 5 ) FROM tab0
----
-105
-405
-5

query I rowsort
SELECT - 15 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) >= + 67
----

query I rowsort
SELECT + + col0 * - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT + 12 * 24 FROM tab0 cor0 WHERE NOT ( col0 ) IS NULL
----
288
288
288

query II rowsort
SELECT DISTINCT 60 AS col0, + col2 * - 70 AS col0 FROM tab1 AS cor0
----
60
-4130
60
-4760
60
-6720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2465
SELECT - + 71 AS col0, - COUNT( * ) DIV + - COUNT( ALL - col2 ) FROM tab2 AS cor0
----
-71
1

skipif mysql # not compatible
query II rowsort label-2465
SELECT - + 71 AS col0, - COUNT ( * ) / + - COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
-71
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT 72 DIV - 42 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2466
SELECT 72 / - 42 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 12 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
12
12

query I rowsort
SELECT ALL AVG ( + + col1 ) AS col1 FROM tab2 WHERE NOT - + ( + 3 ) >= NULL
----
NULL

query II rowsort
SELECT - ( - + col0 ) AS col0, + col1 + - col1 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT 88 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT 88 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT - 84 DIV 35 * - + 0 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2471
SELECT - 84 / 35 * - + 0 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + MAX( ALL - + col1 ) col0 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2472
SELECT + MAX ( ALL - + col1 ) col0 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col2 col2, ( col2 ) AS col1 FROM tab0
----
-210
10
-3807
47
-99
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - - 66 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 57 * ( + + ( - 59 ) ) + 84 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col2 * - col2 + + 40 AS col0 FROM tab0 cor0
----
140
2249
9841

query I rowsort
SELECT DISTINCT 41 + + - col1 AS col0 FROM tab1 AS cor0
----
-6
27
36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 11 >= - + col0 + - - ( - - ( col1 ) ) * - col0
----

query I rowsort
SELECT ALL col2 * 16 AS col0 FROM tab0
----
1584
160
752

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2480
SELECT + CAST( NULL AS DECIMAL ) + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT + CAST ( NULL AS REAL ) + + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2482
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 4 * col2 + + - col2 + ( CAST( 25 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2482
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 4 * col2 + + - col2 + ( CAST ( 25 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2483
SELECT DISTINCT - col2 + - CAST( NULL AS DECIMAL ) * - + ( - 4 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT - col2 + - CAST ( NULL AS REAL ) * - + ( - 4 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 47 * col0 >= + col0
----

query I rowsort
SELECT DISTINCT + 1 - - col0 AS col1 FROM tab0 AS cor0
----
16
88
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2486
SELECT + 85 * + + MAX( ALL 96 ) + - - COUNT( * ) DIV - 80 - 4 + + + 8 AS col0 FROM tab0 cor0
----
8164

skipif mysql # not compatible
query I rowsort label-2486
SELECT + 85 * + + MAX ( ALL 96 ) + - - COUNT ( * ) / - 80 - 4 + + + 8 AS col0 FROM tab0 cor0
----
8164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2487
SELECT + COUNT( * ) col2, COUNT( * ) + MIN( DISTINCT + col1 ) / + 6 * - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2487
SELECT + COUNT ( * ) col2, COUNT ( * ) + MIN ( DISTINCT + col1 ) / + 6 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - col2 * col2 col0 FROM tab2 AS cor0
----
-51
-529
-67
-3364
-77
-1600

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT ALL col1 DIV - - 60 + + col2 + - - col1 + 26 + + 6 * ( - 96 ) + + + 40 AS col0 FROM tab1
----
-395
-400
-446

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL col1 / - - 60 + + col2 + - - col1 + 26 + + 6 * ( - 96 ) + + + 40 AS col0 FROM tab1
----
-395
-400
-446

query I rowsort
SELECT DISTINCT + ( + col2 ) * + 39 FROM tab0
----
1833
3861
390

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL - ( COUNT( ALL - col1 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - ( COUNT ( ALL - col1 ) ) AS col2 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL + ( + col0 ) DIV - col2 + + col2 FROM tab0
----
2
47
99

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL + ( + col0 ) / - col2 + + col2 FROM tab0
----
2
47
99

query I rowsort
SELECT DISTINCT col1 * + col2 * col0 + + col0 FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL SUM( 42 ) AS col1 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL SUM ( 42 ) AS col1 FROM tab0 AS cor0
----
126

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT MAX( DISTINCT + + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2496
SELECT MAX ( DISTINCT + + col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT - col0 * - col2 * + col2 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT - 96 * - 51 AS col2 FROM tab0 AS cor0
----
4896
4896
4896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2499
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ), + 62 / - - col0 * - + CAST( NULL AS SIGNED ), ( - + 40 ), 21 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-2499
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ), + 62 / - - col0 * - + CAST ( NULL AS INTEGER ), ( - + 40 ), 21 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT DISTINCT col2 DIV col2 DIV - col0 * + 53 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT col2 / col2 / - col0 * + 53 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * - + 91 AS col1 FROM tab2 AS cor0
----
-4641
-6097
-7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT + CAST( NULL AS SIGNED ) * 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT + CAST ( NULL AS INTEGER ) * 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + 20 ) FROM tab0 AS cor0 WHERE - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + SUM( + + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + SUM ( + + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT - - col2 * - + 25 AS col2 FROM tab0 AS cor0
----
-1175
-2475
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT + MAX( ALL col2 ) * 24 FROM tab1 AS cor0
----
2304

skipif mysql # not compatible
query I rowsort label-2507
SELECT + MAX ( ALL col2 ) * 24 FROM tab1 AS cor0
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT + MAX( col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT + MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
77

query II rowsort
SELECT - col0, col2 * - col1 AS col0 FROM tab2 cor0
----
-46
-1173
-64
-3080
-75
-3886

query II rowsort
SELECT DISTINCT - col2, 64 AS col2 FROM tab2
----
-23
64
-40
64
-58
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL - COUNT( + 31 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - COUNT ( + 31 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT + COUNT( * ) + + + MIN( DISTINCT ( - col1 ) ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + COUNT ( * ) + + + MIN ( DISTINCT ( - col1 ) ) FROM tab0
----
-78

query I rowsort
SELECT ALL + ( - 20 ) + + col0 AS col1 FROM tab0
----
-5
67
77

query I rowsort
SELECT ALL col1 * - col0 * + 53 AS col0 FROM tab2 AS cor0
----
-124338
-261184
-266325

query I rowsort
SELECT ALL col1 + + 74 FROM tab1 AS cor0
----
121
79
88

query II rowsort
SELECT 63 + - col1 AS col1, + 36 AS col1 FROM tab2 AS cor0
----
-14
36
-4
36
12
36

query I rowsort
SELECT ALL + col0 + + 56 FROM tab0 AS cor0
----
143
153
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - - col0 + - + col0 * + + 85 col1 FROM tab0 cor0
----
-1213
-7298
-8049

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2519
SELECT DISTINCT - 16 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT - 16 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + 72 AS col1 FROM tab2 WHERE NULL NOT IN ( - 61 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 24 + + 52 * - ( + ( + + col0 ) ) * - col0 + + col2 + - - col2 + + col0 * + + 99 IS NULL
----

query II rowsort
SELECT DISTINCT 68 + + - col1 AS col1, col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 44 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT + - MAX( DISTINCT + + 2 ) - + 73 - - - 59 FROM tab0 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-2523
SELECT + - MAX ( DISTINCT + + 2 ) - + 73 - - - 59 FROM tab0 AS cor0
----
-134

query II rowsort
SELECT ALL + 84 + - 64 AS col2, col2 FROM tab2 AS cor0
----
20
23
20
40
20
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 * col2 + + 4 FROM tab2 AS cor0
----
-1169
-3076
-3882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT ALL 90 * + 93 - + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
8421
8455
8461

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL 90 * + 93 - + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
8421
8455
8461

query I rowsort
SELECT DISTINCT + ( - col1 ) + - + 1 FROM tab1 AS cor0
----
-15
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT MAX( ALL + 33 ) - 14 AS col1 FROM tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT MAX ( ALL + 33 ) - 14 AS col1 FROM tab0 cor0
----
19

query I rowsort
SELECT ALL + - ( col0 ) + + 97 FROM tab0 cor0
----
0
10
82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT MAX( DISTINCT - col2 ) + - - 7 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT MAX ( DISTINCT - col2 ) + - - 7 FROM tab2
----
-16

query I rowsort
SELECT DISTINCT + col2 - - 9 + - col2 * - + col2 * + col0 * col2 FROM tab1
----
17457283
28613389
45121641

query I rowsort
SELECT ALL 38 * - - 68 FROM tab0
----
2584
2584
2584

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2535
SELECT + col0 DIV + + 83 - - + ( - - CAST( + - 11 AS SIGNED ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-2535
SELECT + col0 / + + 83 - - + ( - - CAST ( + - 11 AS INTEGER ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-11
-11
-11

query II rowsort
SELECT ALL + col0 AS col0, 80 AS col2 FROM tab2
----
46
80
64
80
75
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 68, + col1 FROM tab0
----
68
1
68
21
68
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT - + MIN( ALL + 66 ) FROM tab2 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2539
SELECT - + MIN ( ALL + 66 ) FROM tab2 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + - COUNT( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2540
SELECT + - COUNT ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col0 AS col1, + col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - + col2 AND + col2
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 65 * 57 * + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + + - col1 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT ALL - + CAST( ( COUNT( * ) ) AS SIGNED ) + CAST( + 82 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL - + CAST ( ( COUNT ( * ) ) AS INTEGER ) + CAST ( + 82 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
79

query I rowsort
SELECT + + 27 + col2 FROM tab1 AS cor0
----
123
86
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT MAX( - 58 ) + + - 38 AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2546
SELECT MAX ( - 58 ) + + - 38 AS col0 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT 70 * ( col2 ) AS col0 FROM tab2
----
1610
2800
4060

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT ( - col0 ) DIV - - 72 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT ( - col0 ) / - - 72 AS col0 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT - 72 DIV + col2 AS col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-2549
SELECT - 72 / + col2 AS col2 FROM tab2
----
-1
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2550
SELECT ALL CAST( + 42 AS SIGNED ) FROM tab0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL CAST ( + 42 AS INTEGER ) FROM tab0
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 72 <= + + col0
----
85
5
59
91
47
68

query II rowsort
SELECT col2, 64 + + col1 FROM tab0 WHERE - - 94 * + col1 IS NOT NULL
----
10
85
47
145
99
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT + COUNT( ALL + + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT + COUNT ( ALL + + col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT MIN( - 78 ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT MIN ( - 78 ) FROM tab1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT ALL + CAST( + 53 AS SIGNED ) + + col1 AS col1 FROM tab1 cor0
----
100
58
67

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL + CAST ( + 53 AS INTEGER ) + + col1 AS col1 FROM tab1 cor0
----
100
58
67

query I rowsort
SELECT + col0 + - 66 AS col0 FROM tab1
----
-15
19
25

query III rowsort
SELECT * FROM tab0 WHERE - col0 + - - col0 / + + 44 BETWEEN + - col1 AND + 87 + - 82
----
15
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2558
SELECT ALL 80 col1, - 29 * ( - COUNT( * ) ) AS col1 FROM tab0
----
80
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2558
SELECT ALL 80 col1, - 29 * ( - COUNT ( * ) ) AS col1 FROM tab0
----
80
87

query I rowsort
SELECT DISTINCT - + ( 41 ) + - 55 + - col1 FROM tab0 AS cor0
----
-117
-177
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2560
SELECT col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-2560
SELECT col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT col0, + col0 AS col0 FROM tab1 cor0
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT + col2 DIV + + ( + col1 ) * - col1 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2562
SELECT + col2 / + + ( + col1 ) * - col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - 7 ) * 23 FROM tab0 AS cor0
----
161
161
161

onlyif mysql # DIV for integer division: 
query II rowsort label-2564
SELECT - col1 AS col1, + 43 DIV 74 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-2564
SELECT - col1 AS col1, + 43 / 74 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + 31 - 10 - - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2565
SELECT + 31 - 10 - - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 WHERE + 43 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 WHERE + 43 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + ( - col1 ) + - col2, col0 AS col0 FROM tab2 WHERE NOT - ( - col1 ) IS NULL
----
-117
64
-125
75
-74
46

query I rowsort
SELECT + 2 * col0 FROM tab2
----
128
150
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 <= + 79 + + ( - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT - COUNT( * ) * - 44 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-2572
SELECT - COUNT ( * ) * - 44 FROM tab2 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT - - MIN( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2573
SELECT - - MIN ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - 21 * + col1 + - 52 AS col1 FROM tab0 AS cor0
----
-1753
-493
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT - col0 DIV - - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2575
SELECT - col0 / - - col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT ALL + - MIN( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 20 <> + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL + - MIN ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 20 <> + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2577
SELECT + col2, - 27 * + col1 + - - col2 * col2 * col1 DIV - CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
10
-777
47
-5994
99
-126

skipif mysql # not compatible
query II rowsort label-2577
SELECT + col2, - 27 * + col1 + - - col2 * col2 * col1 / - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
10
-777
47
-5994
99
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT - - MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2579
SELECT - - MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + 43 FROM tab2 AS cor0 WHERE 43 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT - SUM( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT - SUM ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2582
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - 77 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2582
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - 77 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2583
SELECT DISTINCT - + 21 col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-21
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2583
SELECT DISTINCT - + 21 col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-21
NULL

query I rowsort
SELECT ALL + col0 * - col0 * + + col2 AS col0 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT + ( 77 ) + + col0 + col1 + 59 + - 46 + + + col0 * - - ( 77 ) FROM tab1
----
4082
6725
7235

query III rowsort
SELECT * FROM tab2 WHERE ( + - 9 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2587
SELECT ALL - ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL - ( CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT CAST( NULL AS SIGNED ) + - + 86 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT CAST ( NULL AS INTEGER ) + - + 86 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT - + COUNT( * ) * - + 79 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-2589
SELECT - + COUNT ( * ) * - + 79 FROM tab2 AS cor0
----
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + - col2 * + col0 + - col2 col0, 46 FROM tab1 AS cor0
----
-5006
46
-5079
46
-6303
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT col1 * - ( + CAST( - col0 AS SIGNED ) ) FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-2591
SELECT col1 * - ( + CAST ( - col0 AS INTEGER ) ) FROM tab0
----
1215
1827
97

query I rowsort
SELECT 41 - col1 FROM tab0
----
-40
20
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2593
SELECT col2 - col2 + col2 DIV + - col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2593
SELECT col2 - col2 + col2 / + - col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT SUM( 35 ) * 32 + - 24 * + ( - SUM( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-1992

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT SUM ( 35 ) * 32 + - 24 * + ( - SUM ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-1992

query I rowsort
SELECT ALL ( - 89 ) FROM tab2 AS cor0
----
-89
-89
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 23 col0 FROM tab0 cor0
----
23
23
23

query II rowsort
SELECT DISTINCT + col2, - 47 FROM tab0 AS cor0
----
10
-47
47
-47
99
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2598
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - 0 * + - col0 * - 20 + 81 AS col1 FROM tab1 AS cor0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + ( + col1 ) ) col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT + ( ( + + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2602
SELECT + ( ( + + COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT - SUM( + - col1 ) col2 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT - SUM ( + - col1 ) col2 FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + 89 * + - 85 FROM tab1
----
51
-7565
85
-7565
91
-7565

query I rowsort
SELECT + ( + 16 ) FROM tab1
----
16
16
16

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / + 73 + - - col0 < + + col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT - 78 * - - COUNT( * ) + 46 col0 FROM tab1 AS cor0
----
-188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2607
SELECT - 78 * - - COUNT ( * ) + 46 col0 FROM tab1 AS cor0
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT + + SUM( DISTINCT 29 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + + SUM ( DISTINCT 29 ) FROM tab0 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 + 32 col2 FROM tab2 cor0
----
2378
4960
5057

query I rowsort
SELECT DISTINCT - - 94 * 75 FROM tab1 AS cor0
----
7050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col0 FROM tab0 cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2612
SELECT * FROM tab1 AS cor0 INNER JOIN tab0 cor1 ON NOT + + CAST( + 52 AS SIGNED ) IS NOT NULL WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2612
SELECT * FROM tab1 AS cor0 INNER JOIN tab0 cor1 ON NOT + + CAST ( + 52 AS INTEGER ) IS NOT NULL WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT 80 + + 65 + + - COUNT( * ) AS col0 FROM tab1
----
142

skipif mysql # not compatible
query I rowsort label-2613
SELECT 80 + + 65 + + - COUNT ( * ) AS col0 FROM tab1
----
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 18 * + + col2 col1, col0 AS col1 FROM tab2
----
1044
75
414
46
720
64

query I rowsort
SELECT + 54 FROM tab2 AS cor0 WHERE ( NULL ) <= + - col0
----

query II rowsort
SELECT ALL + col2 + col1 AS col1, col0 * - 66 FROM tab0 AS cor0
----
100
-6402
128
-990
31
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT ALL COUNT( DISTINCT - ( 57 ) ) col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2617
SELECT ALL COUNT ( DISTINCT - ( 57 ) ) col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL - ( - + ( - col2 ) ) + - col0 * - col0 * 82 AS col2 FROM tab2 AS cor0
----
173489
335832
461192

query I rowsort
SELECT + 57 * 80 + - col2 + col0 AS col0 FROM tab1 AS cor0
----
4515
4583
4586

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2620
SELECT ALL - CAST( NULL AS DECIMAL ) + + 22 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL - CAST ( NULL AS REAL ) + + 22 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 * + - col1 AS col0, - col1 + - 69 FROM tab1 AS cor0
----
-425
-74
-4277
-116
-714
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2622
SELECT CAST( NULL AS SIGNED ) * + - 86 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT CAST ( NULL AS INTEGER ) * + - 86 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 63 + - 27 * - 29 + ( + + col2 ) FROM tab0
----
856
893
945

query II rowsort
SELECT ALL col2, + 36 FROM tab0
----
10
36
47
36
99
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col2 * + col0 AS col1 FROM tab2 WHERE NOT NULL >= - - col2
----

query II rowsort
SELECT DISTINCT ( - col2 ) + col0 AS col1, - 5 FROM tab0
----
-2
-5
-32
-5
77
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + col1 * - 23 FROM tab1
----
51
-322
85
-115
91
-1081

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT 83 + ( + col1 ) IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col0 * - 44 AS col1 FROM tab0
----
-3828
-4268
-660

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2631
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col1, - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2631
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col1, - CAST ( + col1 AS INTEGER ) )
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE - 79 - ( 2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT ALL 0 DIV col0 - + col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL 0 / col0 - + col2 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2634
SELECT - - 77 DIV + CAST( + 27 AS SIGNED ) FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2634
SELECT - - 77 / + CAST ( + 27 AS INTEGER ) FROM tab1 AS cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT - + 7 DIV 5 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2635
SELECT - + 7 / 5 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2636
SELECT - COUNT( - col1 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2636
SELECT - COUNT ( - col1 ) / + COUNT ( * ) FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col1 FROM tab0 cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT DISTINCT - - MAX( + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - - MAX ( + + col2 ) FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col2 FROM tab1
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2640
SELECT * FROM tab1 WHERE NOT NULL <> + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2640
SELECT * FROM tab1 WHERE NOT NULL <> + CAST ( + col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 4 > col2 * 94 / - 60 - col1
----

query I rowsort
SELECT - 82 AS col1 FROM tab2 WHERE NOT + 81 NOT BETWEEN NULL AND - col0 * 24
----

query I rowsort
SELECT - col1 * + 2 FROM tab1
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT - ( - CAST( col0 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2644
SELECT - ( - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2645
SELECT + CAST( 91 AS SIGNED ) * - 55 + + SUM( col0 ) FROM tab2 AS cor0
----
-4820

skipif mysql # not compatible
query I rowsort label-2645
SELECT + CAST ( 91 AS INTEGER ) * - 55 + + SUM ( col0 ) FROM tab2 AS cor0
----
-4820

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / col1 * - col2 / + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - + col1 AS col0, col0 * + col1 * + 39 * - - ( col2 ) FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT DISTINCT + - 2 * - + COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
18

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT + - 2 * - + COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
18

query I rowsort
SELECT - 61 * col1 FROM tab0
----
-1281
-4941
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT ALL - ( + - col0 ) DIV - col2 + col0 FROM tab2 AS cor0
----
44
63
74

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - ( + - col0 ) / - col2 + col0 FROM tab2 AS cor0
----
44
63
74

query II rowsort
SELECT col1, + ( 59 ) AS col2 FROM tab2 AS cor0
----
51
59
67
59
77
59

query II rowsort
SELECT - col2, col2 AS col1 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + - ( - - col2 ) + 22 * - col1 FROM tab1 AS cor0
----
-1102
-169
-404

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 35 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 35 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - - 63 + 74 + + - col0 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( - + col0 ) - - + 13 + + - col2 * + + 6 + + 33 + col2 IN ( + 30 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT ALL + col0 DIV + - 27 AS col1 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL + col0 / + - 27 AS col1 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT col2 + - + col1 + + 40 + + col2 * + col2 AS col0 FROM tab2
----
1603
3395
541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT CAST( + col2 AS SIGNED ) + - col0 * col0 AS col0 FROM tab1
----
-2505
-7166
-8213

skipif mysql # not compatible
query I rowsort label-2659
SELECT CAST ( + col2 AS INTEGER ) + - col0 * col0 AS col0 FROM tab1
----
-2505
-7166
-8213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 * - ( + col2 ) col1 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT CAST( NULL AS SIGNED ) + + 60 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT CAST ( NULL AS INTEGER ) + + 60 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 16 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2663
SELECT + + SUM( col2 ) AS col2, COUNT( * ) AS col0 FROM tab1 cor0
----
223
3

skipif mysql # not compatible
query II rowsort label-2663
SELECT + + SUM ( col2 ) AS col2, COUNT ( * ) AS col0 FROM tab1 cor0
----
223
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT DISTINCT + 86 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - CAST( NULL AS SIGNED ) < + 87
----

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + 86 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - CAST ( NULL AS INTEGER ) < + 87
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL <> - + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / - ( + col0 ) * + 1 + - ( - 74 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL SUM( - - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL SUM ( - - col0 ) AS col0 FROM tab2 AS cor0
----
185

query II rowsort
SELECT - + 56 AS col0, col0 FROM tab0 AS cor0
----
-56
15
-56
87
-56
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT MIN( + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2669
SELECT MIN ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 77 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - - ( - - col2 ) AND - ( - 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT COUNT( * ) * 63 AS col1 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-2672
SELECT COUNT ( * ) * 63 AS col1 FROM tab0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ( + MIN( - col0 ) ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2673
SELECT ( + MIN ( - col0 ) ) AS col0 FROM tab2
----
-75

query II rowsort
SELECT + + col1 AS col1, - col1 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 + + 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 / - col0 FROM tab1 AS cor0 WHERE - 48 + + col2 IS NULL
----

query I rowsort
SELECT - + 14 AS col0 FROM tab0 cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT + COUNT( * ) + + + ( - - 91 ) AS col0 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-2678
SELECT + COUNT ( * ) + + + ( - - 91 ) AS col0 FROM tab2
----
94

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col1 + + + 97 * col0 * + + col0 IS NOT NULL )
----

query I rowsort
SELECT - 22 * - col2 + - + 4 * - - 34 * - - 21 * - ( + - col1 ) + - col2 FROM tab2
----
-145173
-190134
-219072

query I rowsort
SELECT DISTINCT 39 * + col0 FROM tab2
----
1794
2496
2925

query I rowsort
SELECT + 18 + - col1 + col2 FROM tab0
----
-16
116
7

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT + + 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2684
SELECT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2685
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( - col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2685
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 65 col0 FROM tab1 cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT - col2 * + CAST( NULL AS SIGNED ) + - col2 + 26 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT - col2 * + CAST ( NULL AS INTEGER ) + - col2 + 26 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2688
SELECT + col1 DIV - col0 + - - col0 + col0 AS col0 FROM tab0 AS cor0
----
174
194
25

skipif mysql # not compatible
query I rowsort label-2688
SELECT + col1 / - col0 + - - col0 + col0 AS col0 FROM tab0 AS cor0
----
174
194
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL 80 + + SUM( + col0 ) FROM tab2 AS cor0
----
265

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL 80 + + SUM ( + col0 ) FROM tab2 AS cor0
----
265

query II rowsort
SELECT - 49 AS col0, col0 FROM tab2 AS cor0
----
-49
46
-49
64
-49
75

query I rowsort
SELECT ALL col0 + - 85 AS col0 FROM tab2 AS cor0
----
-10
-21
-39

query I rowsort
SELECT ALL - col2 - - + col1 + - col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + 24 * col1 FROM tab1
----
1128
120
336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col0 * - col2 AS col1 FROM tab2
----
46
-1058
64
-2560
75
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-2695
SELECT ALL + 26, COUNT( * ) * + + SUM( DISTINCT - 32 ) col0 FROM tab2
----
26
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2695
SELECT ALL + 26, COUNT ( * ) * + + SUM ( DISTINCT - 32 ) col0 FROM tab2
----
26
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 * - - 96 col0 FROM tab1
----
4224

onlyif mysql # DIV for integer division: 
query II rowsort label-2697
SELECT ALL + col0 - + col1 * 64 + - col1 AS col0, - col0 + - - col0 + - - col1 DIV col0 * + col1 FROM tab1
----
-240
0
-2964
0
-859
0

skipif mysql # not compatible
query II rowsort label-2697
SELECT ALL + col0 - + col1 * 64 + - col1 AS col0, - col0 + - - col0 + - - col1 / col0 * + col1 FROM tab1
----
-240
0
-2964
0
-859
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2698
SELECT DISTINCT 41 AS col1, col2 DIV - 49 + 86 AS col1 FROM tab0
----
41
84
41
86

skipif mysql # not compatible
query II rowsort label-2698
SELECT DISTINCT 41 AS col1, col2 / - 49 + 86 AS col1 FROM tab0
----
41
84
41
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col1 + + 90 * - col2 IS NOT NULL )
----

query I rowsort
SELECT ALL + col1 * + col2 * + col0 + - 30 AS col1 FROM tab0 AS cor0
----
18240
57075
9573

query I rowsort
SELECT 13 * + + 17 + - col2 FROM tab0 AS cor0
----
122
174
211

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT MAX( + - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2702
SELECT MAX ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - ( col2 ) * + - col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 19 BETWEEN + - col0 AND - + col0 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2705
SELECT * FROM tab0 WHERE NOT - CAST( col0 AS SIGNED ) * - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2705
SELECT * FROM tab0 WHERE NOT - CAST ( col0 AS INTEGER ) * - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2706
SELECT DISTINCT - CAST( + MIN( 62 ) AS SIGNED ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT - CAST ( + MIN ( 62 ) AS INTEGER ) FROM tab0 AS cor0
----
-62

query I rowsort
SELECT + 98 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT col2 / - CAST( NULL AS SIGNED ) + - + 51 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT col2 / - CAST ( NULL AS INTEGER ) + - + 51 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 83 AS col0 FROM tab0 cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col0 FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT SUM( ALL + col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-2711
SELECT SUM ( ALL + col0 ) FROM tab2 cor0
----
185

query I rowsort
SELECT - 27 * 19 FROM tab0 AS cor0
----
-513
-513
-513

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - 74
----

query I rowsort
SELECT DISTINCT + col2 * - ( + + col2 ) * 8 FROM tab2
----
-12800
-26912
-4232

query I rowsort
SELECT + + ( - - 14 ) FROM tab1 WHERE NOT + col1 + + + 81 IS NULL
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2716
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ( - COUNT( * ) ) * + COUNT( * ) + - COUNT( ALL 75 ) AS col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2717
SELECT ( - COUNT ( * ) ) * + COUNT ( * ) + - COUNT ( ALL 75 ) AS col2 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT - + col2 * - col1 + 24 AS col0 FROM tab0 AS cor0
----
123
234
3831

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + - col0 > + col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT - MAX( + col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2720
SELECT - MAX ( + col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT + 2 DIV + 64 - - col1 DIV 20 AS col2 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-2721
SELECT + 2 / + 64 - - col1 / 20 AS col2 FROM tab2
----
2
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT ALL + MIN( 90 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL + MIN ( 90 ) FROM tab2
----
90

query I rowsort
SELECT + col1 * col1 - - col2 AS col1 FROM tab1
----
2277
292
84

query I rowsort
SELECT DISTINCT ( - 79 ) FROM tab1
----
-79

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab0 WHERE NOT - 1 >= ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 IS NOT NULL
----

query I rowsort
SELECT + ( - col1 ) + + col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - ( + 61 ) AS col0 FROM tab0
----
-61
-61
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2729
SELECT - 12 DIV COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-2729
SELECT - 12 / COUNT ( * ) FROM tab2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT ALL col0 + col0 * + col2 FROM tab1 WHERE col1 BETWEEN + ( - col0 ) AND ( - CAST( NULL AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL col0 + col0 * + col2 FROM tab1 WHERE col1 BETWEEN + ( - col0 ) AND ( - CAST ( NULL AS INTEGER ) + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT - col1 DIV - 46 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2731
SELECT - col1 / - 46 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT - COUNT( * ) + - COUNT( * ) FROM tab1 WHERE - col2 * + 9 - + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2732
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE - col2 * + 9 - + col0 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT NULL = - 5 * + 74
----

skipif mysql # not compatible
query I rowsort label-2733
SELECT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT NULL = - 5 * + 74
----

query I rowsort
SELECT 61 + - col0 AS col0 FROM tab2
----
-14
-3
15

query I rowsort
SELECT 98 + col2 * col1 FROM tab0
----
197
308
3905

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT COUNT( * ) * 27 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-2737
SELECT COUNT ( * ) * 27 FROM tab2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT CAST( NULL AS SIGNED ) * AVG ( 49 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2738
SELECT CAST ( NULL AS INTEGER ) * AVG ( 49 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 10 * - col2 AS col0 FROM tab0
----
-100
-470
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT DISTINCT COUNT( * ) DIV + 30 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT COUNT ( * ) / + 30 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col2 FROM tab0
----
NULL

query I rowsort
SELECT - 43 * 19 FROM tab0
----
-817
-817
-817

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + 14 AS col1 FROM tab1
----
19
28
61

query I rowsort
SELECT ALL col0 - + col0 FROM tab0 AS cor0 WHERE NOT ( - ( col0 ) + 85 ) NOT BETWEEN 14 AND col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 ) = - col0 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2747
SELECT ALL - col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 21 > + col2
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + - col0 * - 18 IS NULL
----

query I rowsort
SELECT + 74 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 + + 95 < ( NULL )
----

query I rowsort
SELECT col2 + col2 FROM tab0 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL COUNT( * ) * SUM( + 25 ) AS col0 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL COUNT ( * ) * SUM ( + 25 ) AS col0 FROM tab0 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2754
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2754
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + 24 col1 FROM tab0 AS cor0
----
105
25
45

query I rowsort
SELECT col1 + - 84 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17
-33
-7

query I rowsort
SELECT - 33 * 58 AS col0 FROM tab2 AS cor0
----
-1914
-1914
-1914

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NULL OR NOT ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT DISTINCT + col1 DIV + 63 col0 FROM tab0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2759
SELECT DISTINCT + col1 / + 63 col0 FROM tab0
----
0
1

query I rowsort
SELECT ALL - col1 + - col0 AS col0 FROM tab2 WHERE ( - col0 ) < ( col2 )
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2761
SELECT DISTINCT + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN col0 * 48 + - col1 * - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT - ( CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2763
SELECT - ( CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > col0 * col2 + + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 < - 60 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE 7 NOT IN ( - ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL COUNT( * ) + + COUNT( * ) col2 FROM tab0 WHERE NOT + ( - 99 ) <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2767
SELECT ALL COUNT ( * ) + + COUNT ( * ) col2 FROM tab0 WHERE NOT + ( - 99 ) <= NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = ( col0 - col1 )
----

query I rowsort
SELECT DISTINCT 84 + - col2 AS col1 FROM tab1 cor0
----
-12
16
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT + ( + SUM( 20 ) ) AS col0 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2770
SELECT + ( + SUM ( 20 ) ) AS col0 FROM tab1 AS cor0
----
60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 >= ( - col0 * - col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT ALL + col0 + + 52 AS col0 FROM tab0 AS cor0
----
139
149
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT MIN( 41 ) + 17 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2774
SELECT MIN ( 41 ) + 17 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
58

query I rowsort
SELECT DISTINCT - + 52 AS col0 FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL COUNT( ALL 71 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL COUNT ( ALL 71 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT + 82 + COUNT( ALL 74 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
91

skipif mysql # not compatible
query I rowsort label-2777
SELECT + 82 + COUNT ( ALL 74 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2778
SELECT CAST( - col0 AS DECIMAL ) FROM tab1 WHERE - - col0 * + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2778
SELECT CAST ( - col0 AS REAL ) FROM tab1 WHERE - - col0 * + col0 IS NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE ( NOT col0 >= NULL )
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT ( + 28 * col1 ) IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col2 / col2 + col1 * col2
----

query I rowsort
SELECT 23 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 = - + 55
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + 60 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2785
SELECT + 29, - MIN( DISTINCT - + 57 ) col2 FROM tab2 AS cor0
----
29
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2785
SELECT + 29, - MIN ( DISTINCT - + 57 ) col2 FROM tab2 AS cor0
----
29
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2786
SELECT DISTINCT col2 * - + col0 DIV col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT col2 * - + col0 / col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

query II rowsort
SELECT - col2 AS col1, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT MIN( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2788
SELECT MIN ( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT DISTINCT + 49 - + COUNT( * ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT + 49 - + COUNT ( * ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + - col0 - + - col1 + + 74 * - col2 FROM tab2 AS cor0
----
-1697
-2947
-4300

query I rowsort
SELECT col2 - - ( + col2 ) AS col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT 24 DIV - + 59 - ( - - 32 ) FROM tab0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-2792
SELECT 24 / - + 59 - ( - - 32 ) FROM tab0
----
-32
-32
-32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 73 / 66 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + + 83
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - + col0 * col2 > + col2 * - col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2796
SELECT SUM( + - col0 ), + ( - 0 ) AS col2 FROM tab0
----
-199
0

skipif mysql # not compatible
query II rowsort label-2796
SELECT SUM ( + - col0 ), + ( - 0 ) AS col2 FROM tab0
----
-199
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( + + 49 ) ) BETWEEN col2 * - col1 AND col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT - - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT - - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT + - 54 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT + - 54 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2800
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + CAST( NULL AS SIGNED ) * - col0 * - ( + col1 / + col1 ) BETWEEN ( + ( col2 ) ) AND + col0 / col1 - col2
----

skipif mysql # not compatible
query III rowsort label-2800
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + CAST ( NULL AS INTEGER ) * - col0 * - ( + col1 / + col1 ) BETWEEN ( + ( col2 ) ) AND + col0 / col1 - col2
----

query II rowsort
SELECT DISTINCT col1 * - - col2, 25 * + 26 + col1 AS col0 FROM tab1 AS cor0
----
1344
664
295
655
3196
697

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE + ( - col2 ) >= ( NULL )
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 95 )
----

query I rowsort
SELECT ALL + - ( + 58 ) * - col0 FROM tab2 AS cor0
----
2668
3712
4350

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 = - 25
----

query I rowsort
SELECT - - col1 * + 58 FROM tab0 AS cor0
----
1218
4698
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( - + col1 ) + + + 96 AS col1, - 11 col0 FROM tab1 AS cor0
----
101
-11
110
-11
143
-11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 - + 5 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2809
SELECT + 16 DIV - COUNT( * ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2809
SELECT + 16 / - COUNT ( * ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT 66 * COUNT( * ) + ( - COUNT( * ) ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT 66 * COUNT ( * ) + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
195

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 NOT IN ( + 75 )
----

query II rowsort
SELECT ALL col1, ( - 81 ) AS col0 FROM tab0
----
1
-81
21
-81
81
-81

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE - + col0 <> + - col2 / col2
----
46
64
75

query I rowsort
SELECT - col0 + + - 16 AS col1 FROM tab0
----
-103
-113
-31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 BETWEEN - col0 * + 21 + - 88 + - 79 * col2 AND col0
----

query I rowsort
SELECT col2 + 5 * - col2 + + + 51 * - + col1 AS col0 FROM tab0
----
-1111
-4319
-447

query II rowsort
SELECT DISTINCT 22, 14 AS col2 FROM tab2 AS cor0
----
22
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) FROM tab0 cor0 WHERE 11 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) FROM tab0 cor0 WHERE 11 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT + COUNT( * ) FROM tab1 WHERE + col2 >= + + ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2821
SELECT + COUNT ( * ) FROM tab1 WHERE + col2 >= + + ( + col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL + 60 * + + COUNT( * ) * + 74 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + 60 * + + COUNT ( * ) * + 74 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2823
SELECT - 88 - + + CAST( NULL AS SIGNED ) + + col2 AS col1, - col2 AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-2823
SELECT - 88 - + + CAST ( NULL AS INTEGER ) + + col2 AS col1, - col2 AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT ALL 41 + col0 + 71 * col0 + + - col2 DIV 48 FROM tab1
----
3711
6160
6592

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL 41 + col0 + 71 * col0 + + - col2 / 48 FROM tab1
----
3711
6160
6592

query I rowsort
SELECT ALL - col2 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2826
SELECT col1 + CAST( NULL AS SIGNED ) AS col1, + 77 FROM tab1 cor0
----
NULL
77
NULL
77
NULL
77

skipif mysql # not compatible
query II rowsort label-2826
SELECT col1 + CAST ( NULL AS INTEGER ) AS col1, + 77 FROM tab1 cor0
----
NULL
77
NULL
77
NULL
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 28 + + col0 * + 41 - - - col2 AS col1 FROM tab2 AS cor0
----
1835
2556
2989

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT ALL + 44 DIV + - col1 - - col0 FROM tab1 AS cor0
----
48
77
91

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + 44 / + - col1 - - col0 FROM tab1 AS cor0
----
48
77
91

query I rowsort
SELECT + ( - 12 ) + - - 36 AS col1 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT ALL + - 11 + 39 * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( 19, ( col1 ), + col1 + + - col1 )
----
-11

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL + - 11 + 39 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( 19, ( col1 ), + col1 + + - col1 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT + MIN( ALL + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT + MIN ( ALL + - col2 ) FROM tab0
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT 83 NOT BETWEEN col1 / + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 17 * col2 FROM tab1
----
1003
1156
1632

query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT ALL - 89 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL - 89 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT ALL - col2 DIV + ( + col2 ) AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - col2 / + ( + col2 ) AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2838
SELECT 81, + COUNT( * ) AS col0 FROM tab1
----
81
3

skipif mysql # not compatible
query II rowsort label-2838
SELECT 81, + COUNT ( * ) AS col0 FROM tab1
----
81
3

query II rowsort
SELECT ALL col2 AS col2, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT MAX( ALL - 15 ) AS col0 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-2840
SELECT MAX ( ALL - 15 ) AS col0 FROM tab2
----
-15

query I rowsort
SELECT DISTINCT + - 29 AS col2 FROM tab0 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - 35 * + MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
-2835

skipif mysql # not compatible
query I rowsort label-2842
SELECT - 35 * + MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
-2835

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col1 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 42 FROM tab2, tab0 cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT + 81 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT + col2 * + col1 + + col0 / col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * 26 / - CAST( col0 AS SIGNED ) / + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2846
SELECT + col2 * + col1 + + col0 / col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * 26 / - CAST ( col0 AS INTEGER ) / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2847
SELECT - 24 * MIN( + col2 ) + COUNT( * ) DIV + 64 AS col1 FROM tab2 AS cor0
----
-552

skipif mysql # not compatible
query I rowsort label-2847
SELECT - 24 * MIN ( + col2 ) + COUNT ( * ) / + 64 AS col1 FROM tab2 AS cor0
----
-552

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> + 9 - + col2
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE col0 + - - 55 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2850
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col1 >= + + 87
----

skipif mysql # not compatible
query III rowsort label-2850
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 >= + + 87
----

query I rowsort
SELECT col2 + + + col1 AS col1 FROM tab2 WHERE NULL >= ( + + col1 )
----

query I rowsort
SELECT - 66 * col2 AS col2 FROM tab1
----
-3894
-4488
-6336

query II rowsort
SELECT col0, + 21 AS col0 FROM tab0
----
15
21
87
21
97
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ( + COUNT( - + 42 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2854
SELECT ( + COUNT ( - + 42 ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE 44 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE + 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ALL 52 * COUNT( * ) * 25 AS col2 FROM tab0
----
3900

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL 52 * COUNT ( * ) * 25 AS col2 FROM tab0
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT + COUNT( * ) * + 61 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-2858
SELECT + COUNT ( * ) * + 61 FROM tab0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT + SUM( DISTINCT + - col2 ) * + COUNT( * ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT + SUM ( DISTINCT + - col2 ) * + COUNT ( * ) FROM tab2
----
-363

query I rowsort
SELECT DISTINCT + col1 * + + 58 + - 29 * - + col0 AS col1 FROM tab1
----
2291
2755
5365

query I rowsort
SELECT DISTINCT - col1 * + + col2 + + + col2 AS col1 FROM tab2 cor0
----
-1150
-3040
-3828

query I rowsort
SELECT ALL col0 * + 29 AS col0 FROM tab1 AS cor0
----
1479
2465
2639

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NULL = col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT 66 + COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2864
SELECT 66 + COUNT ( * ) FROM tab2 AS cor0
----
69

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) < 69
----

query I rowsort
SELECT ALL - 85 AS col1 FROM tab0 WHERE NOT - - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + 34 * + col0 * col2 FROM tab0 AS cor0
----
23970
29580
326502

query I rowsort
SELECT DISTINCT + 51 * - - 88 + + 42 FROM tab2 cor0
----
4530

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2869
SELECT * FROM tab2 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) + 77 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2869
SELECT * FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) + 77 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 84 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-84
-84
-84

query II rowsort
SELECT ALL + col2, 14 AS col0 FROM tab1 AS cor0
----
59
14
68
14
96
14

query I rowsort
SELECT - col2 * - 24 AS col2 FROM tab1 AS cor0
----
1416
1632
2304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col0, - col2 AS col1 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT ALL - col2 AS col1, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query II rowsort
SELECT col0, + col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT - 57 AS col1, + col0 - + - col2 FROM tab0 AS cor0
----
-57
196
-57
62
-57
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT + COUNT( DISTINCT - col2 ) * + COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2877
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) * + COUNT ( * ) col1 FROM tab1
----
9

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT DISTINCT 25 * col1 AS col2, + col2 AS col0 FROM tab2
----
1275
23
1675
58
1925
40

query I rowsort
SELECT + 17 * + col1 * - 21 AS col0 FROM tab2 AS cor0
----
-18207
-23919
-27489

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2881
SELECT ALL - col0 * - 55 AS col2, + 23 * col0 * + col0 * + CAST( + + col2 AS SIGNED ) + - + 76 - - + col0 DIV 98 + 25 AS col0 FROM tab0 AS cor0
----
4785
1740819
5335
21424242
825
243174

skipif mysql # not compatible
query II rowsort label-2881
SELECT ALL - col0 * - 55 AS col2, + 23 * col0 * + col0 * + CAST ( + + col2 AS INTEGER ) + - + 76 - - + col0 / 98 + 25 AS col0 FROM tab0 AS cor0
----
4785
1740819
5335
21424242
825
243174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2882
SELECT + MAX( + + col2 ) DIV - + COUNT( * ) AS col1 FROM tab1 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2882
SELECT + MAX ( + + col2 ) / - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-32

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 >= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT 61 * - col1 * + + col1 DIV + + col1 col0 FROM tab0 AS cor0
----
-1281
-4941
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2884
SELECT 61 * - col1 * + + col1 / + + col1 col0 FROM tab0 AS cor0
----
-1281
-4941
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT + 96 * - CAST( NULL AS SIGNED ) / + col1 * + + ( - col1 ) * + 26 BETWEEN - - 77 AND + 16
----

skipif mysql # not compatible
query I rowsort label-2885
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT + 96 * - CAST ( NULL AS INTEGER ) / + col1 * + + ( - col1 ) * + 26 BETWEEN - - 77 AND + 16
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT + - MIN( + + col2 ) AS col1 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2887
SELECT + - MIN ( + + col2 ) AS col1 FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT DISTINCT COUNT( * ) + + COUNT( * ) col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2888
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - 49 ) + 94
----

query I rowsort
SELECT ALL + col0 + + - col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 52 col2 FROM tab2 AS cor0
----
-6
12
29

query I rowsort
SELECT col1 + - - 6 * - col2 AS col1 FROM tab0
----
-201
-39
-593

query I rowsort
SELECT - ( + col1 ) FROM tab1 WHERE 31 + + col0 * + col0 * 80 IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT ALL + col2 * - 84 * - col0 * + + col0 AS col2, - col1 AS col2 FROM tab1
----
20974464
-14
35807100
-5
47301072
-47

query I rowsort
SELECT + ( + + col1 ) + 1 FROM tab2
----
52
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT col1 * 78 * + col1 + - col2 + + CAST( NULL AS SIGNED ) + - 64 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT col1 * 78 * + col1 + - col2 + + CAST ( NULL AS INTEGER ) + - 64 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL - COUNT( * ) * + SUM( - col1 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL - COUNT ( * ) * + SUM ( - col1 ) FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT MAX( + 37 ) + COUNT( * ) AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2898
SELECT MAX ( + 37 ) + COUNT ( * ) AS col2 FROM tab0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2899
SELECT * FROM tab1 WHERE - ( - ( + col0 ) ) + + col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2899
SELECT * FROM tab1 WHERE - ( - ( + col0 ) ) + + col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT - COUNT( * ) * - ( + - ( - 69 ) ) + + 98 + + 46 FROM tab2
----
351

skipif mysql # not compatible
query I rowsort label-2900
SELECT - COUNT ( * ) * - ( + - ( - 69 ) ) + + 98 + + 46 FROM tab2
----
351

query I rowsort
SELECT DISTINCT ( - 56 ) FROM tab2 AS cor0
----
-56

query I rowsort
SELECT ALL 2 + col0 + - 2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + col1 - col1 * + - col2 FROM tab1 cor0
----
1358
300
3243

query I rowsort
SELECT 9 * + 36 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a5579836de27ded95f20962e158b1f6

query III rowsort
SELECT * FROM tab2 WHERE - col2 * 24 > NULL
----

query I rowsort
SELECT + ( + col1 ) * + col2 - + col2 * - - 64 * + col2 FROM tab0
----
-137569
-6190
-627165

query I rowsort
SELECT ALL + ( - 25 ) * col2 - + col2 + - col0 * - + col1 * + + ( col2 ) * - col1 AS col1 FROM tab2
----
-15179280
-19528658
-2752456

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT DISTINCT + COUNT( DISTINCT + 31 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + COUNT ( DISTINCT + 31 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT - col0 DIV + 10 AS col0 FROM tab2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-2909
SELECT - col0 / + 10 AS col0 FROM tab2
----
-4
-6
-7

query I rowsort
SELECT 67 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 31 col1 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL - + ( 16 ) AS col0 FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2913
SELECT ALL - + CAST( + ( - col0 ) AS SIGNED ) * - 7 FROM tab1 AS cor0
----
-357
-595
-637

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL - + CAST ( + ( - col0 ) AS INTEGER ) * - 7 FROM tab1 AS cor0
----
-357
-595
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT - MAX( + ( + col2 ) ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT - MAX ( + ( + col2 ) ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT DISTINCT - - 21, + ( - col2 ) AS col2 FROM tab2 AS cor0
----
21
-23
21
-40
21
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT - 83 * COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-747

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT - 83 * COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-747

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 <> col2 + - - col1
----

query II rowsort
SELECT col1 AS col2, col0 * 88 * - - col2 - - - col2 + - - 76 * + 74 FROM tab2
----
51
98705
67
388366
77
230864

query II rowsort
SELECT 12, - col1 AS col1 FROM tab2
----
12
-51
12
-67
12
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col0 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0
----

query II rowsort
SELECT ALL + col2 AS col2, + col1 AS col2 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab1 WHERE + 79 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + ( COUNT( - col0 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2924
SELECT + ( COUNT ( - col0 ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2925
SELECT ALL 39 AS col1, - COUNT( * ) AS col2 FROM tab2
----
39
-3

skipif mysql # not compatible
query II rowsort label-2925
SELECT ALL 39 AS col1, - COUNT ( * ) AS col2 FROM tab2
----
39
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - 92 FROM tab2
----
-46
-92
-64
-92
-75
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT ALL - - 36 DIV - 19 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - - 36 / - 19 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 44 + + col1 - - 55 + + ( + ( - col0 ) ) / + + 91 * + 90 * - ( + col0 ) * + 10 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - - col1 * - col2 AS col2 FROM tab1 cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + - 79 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT - 68 + MAX( DISTINCT + + col0 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-2931
SELECT - 68 + MAX ( DISTINCT + + col0 ) FROM tab1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2932
SELECT * FROM tab1 AS cor0 WHERE col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2932
SELECT * FROM tab1 AS cor0 WHERE col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 + - 49 AS col2 FROM tab2 cor0
----
-3
15
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 64 IN ( - - col1, 47 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + + 98 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 3 + - 0 col2, col1 AS col0 FROM tab1 AS cor0
----
-3
14
-3
47
-3
5

query II rowsort
SELECT DISTINCT + col1 + - col0, - 29 * + 67 AS col2 FROM tab0 cor0
----
-66
-1943
-96
-1943
66
-1943

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( 25 ) - + + col1 FROM tab2 AS cor0
----
-102
-76
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT + CAST( NULL AS SIGNED ) * 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT + CAST ( NULL AS INTEGER ) * 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2941
SELECT CAST( col2 AS SIGNED ) * + col2 AS col0, - 29 + - col0 * - col0 * - + 8 * - col0 AS col0 FROM tab2
----
1600
2097123
3364
3374971
529
778659

skipif mysql # not compatible
query II rowsort label-2941
SELECT CAST ( col2 AS INTEGER ) * + col2 AS col0, - 29 + - col0 * - col0 * - + 8 * - col0 AS col0 FROM tab2
----
1600
2097123
3364
3374971
529
778659

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 45 * + - col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 91 + + - col1 + - col1 * + 89 + + col1 * + 75, col1 col2 FROM tab2 AS cor0
----
-1096
67
-1246
77
-856
51

query I rowsort
SELECT + + col0 + - 90 FROM tab2 AS cor0
----
-15
-26
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT - 47 + + COUNT( * ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2945
SELECT - 47 + + COUNT ( * ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT 4 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT DISTINCT MAX( DISTINCT - - 44 ) AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT MAX ( DISTINCT - - 44 ) AS col2 FROM tab2
----
44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 >= 88
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 = 54 * - 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 59 - - + col2 FROM tab0 AS cor0 WHERE NOT ( + 10 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2952
SELECT - 17 * + + col1, col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
-238
0
-799
0
-85
0

skipif mysql # not compatible
query II rowsort label-2952
SELECT - 17 * + + col1, col1 / - col2 AS col2 FROM tab1 AS cor0
----
-238
0
-799
0
-85
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT - 30 >= col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT ( ( - ( + + CAST( + 91 AS SIGNED ) ) ) ) * - + col1 - - 66 FROM tab0 AS cor0
----
157
1977
7437

skipif mysql # not compatible
query I rowsort label-2954
SELECT ( ( - ( + + CAST ( + 91 AS INTEGER ) ) ) ) * - + col1 - - 66 FROM tab0 AS cor0
----
157
1977
7437

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT DISTINCT + - COUNT( 81 ) * - 83 AS col2 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT + - COUNT ( 81 ) * - 83 AS col2 FROM tab1 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL - SUM( DISTINCT - col1 ) col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2958
SELECT ALL - SUM ( DISTINCT - col1 ) col2 FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 89 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( 45 ) AS col2 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT - 58 + + - ( + - ( + - COUNT( + 99 ) ) ) FROM tab0 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2961
SELECT - 58 + + - ( + - ( + - COUNT ( + 99 ) ) ) FROM tab0 cor0
----
-61

query I rowsort
SELECT ALL - - col1 + - 97 AS col2 FROM tab1 AS cor0
----
-50
-83
-92

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN + col1 + - ( + - col0 ) + col0 AND col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2965
SELECT DISTINCT col1, - CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2965
SELECT DISTINCT col1, - CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT DISTINCT 5, - 11 AS col2 FROM tab0, tab1 AS cor0
----
5
-11

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - col1 + - col0
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT DISTINCT 83 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT 83 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL - + 98 AS col0, 68 FROM tab1 AS cor0
----
-98
68
-98
68
-98
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT ALL + + COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT SUM( ALL - col0 ) * - COUNT( * ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-2972
SELECT SUM ( ALL - col0 ) * - COUNT ( * ) FROM tab1 AS cor0
----
681

query I rowsort
SELECT - col2 - col2 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-799
-890
-9801

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL 12 + 9 + - + COUNT( - - ( + + 34 ) ) AS col2 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL 12 + 9 + - + COUNT ( - - ( + + 34 ) ) AS col2 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT DISTINCT MIN( + - col2 ) + + MIN( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT MIN ( + - col2 ) + + MIN ( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT DISTINCT 27 DIV + + 28 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT 27 / + + 28 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( + - col1 ) + col0
----

query I rowsort
SELECT 73 + - col2 * - + 50 FROM tab1
----
3023
3473
4873

query I rowsort
SELECT DISTINCT col2 * + col1 - + 11 FROM tab2
----
1162
3069
3875

query I rowsort
SELECT 0 * - col1 + + + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT - ( - col2 ) + - + col0 + - col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - 70 * + col0 * col2 * - 24 FROM tab0
----
1184400
1461600
16133040

query I rowsort
SELECT DISTINCT col1 * 96 FROM tab2
----
4896
6432
7392

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 cor0 WHERE NOT + ( + + col0 ) + - col0 > 2
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2986
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, SUM( DISTINCT - col0 ) FROM tab0
----
NULL
-199

skipif mysql # not compatible
query II rowsort label-2986
SELECT ALL CAST ( NULL AS REAL ) AS col0, SUM ( DISTINCT - col0 ) FROM tab0
----
NULL
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL COUNT( DISTINCT - 27 ) + - 58 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-57

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL COUNT ( DISTINCT - 27 ) + - 58 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-57

query II rowsort
SELECT DISTINCT 78 AS col1, 30 AS col2 FROM tab0
----
78
30

query II rowsort
SELECT col0 AS col0, col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT - col1 * + ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + + col0 AND ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / col0 NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 * + - 34 * + - 62 - - col1 ) > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT DISTINCT MAX( + 35 ) AS col2 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT MAX ( + 35 ) AS col2 FROM tab1 AS cor0
----
35

query I rowsort
SELECT DISTINCT + ( + - 9 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL 69 * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - ( - col0 ) IS NULL
----
207

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL 69 * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( - col0 ) IS NULL
----
207

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 78 - - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0, - 43 FROM tab2 AS cor0
----
46
-43
64
-43
75
-43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + - col0 ) / - col1 / + col1 + + - 25 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + col1 * - col0 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT col2 * col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3001
SELECT MIN( + - col0 ) AS col2, + 56 + - 12 FROM tab1
----
-91
44

skipif mysql # not compatible
query II rowsort label-3001
SELECT MIN ( + - col0 ) AS col2, + 56 + - 12 FROM tab1
----
-91
44

query I rowsort
SELECT ALL col2 * + ( - col2 ) + + col0 * col1 FROM tab1 cor0
----
-3056
-347
-8502

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + 14 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + 14 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - + col2 + - - 85 col1 FROM tab1 cor0
----
3566
4709
9301

query I rowsort
SELECT ALL - + 96 * + 41 + + - 9 AS col1 FROM tab0 AS cor0
----
-3945
-3945
-3945

query I rowsort
SELECT ALL - 89 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT + - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3007
SELECT + - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3008
SELECT DISTINCT - + COUNT( * ), 51 * COUNT( ALL - - 99 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
459

skipif mysql # not compatible
query II rowsort label-3008
SELECT DISTINCT - + COUNT ( * ), 51 * COUNT ( ALL - - 99 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
459

query I rowsort
SELECT col2 + - 46 FROM tab0
----
-36
1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT MAX( DISTINCT - - 36 ) + - - MIN( - col2 ) AS col2 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3010
SELECT MAX ( DISTINCT - - 36 ) + - - MIN ( - col2 ) AS col2 FROM tab0
----
-63

query III rowsort
SELECT * FROM tab0 WHERE + - col0 >= + col1
----

query I rowsort
SELECT DISTINCT col2 + - col1 AS col2 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL <> + 30 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT + 86 * 54 + + COUNT( * ) FROM tab0 AS cor0
----
4647

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + 86 * 54 + + COUNT ( * ) FROM tab0 AS cor0
----
4647

query I rowsort
SELECT ALL col1 - - + 68 * col0 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 39 + - + col1 AS col1 FROM tab0 AS cor0
----
-42
18
38

query I rowsort
SELECT DISTINCT 91 - col0 AS col1 FROM tab1 AS cor0
----
0
40
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL - + 43 + - + COUNT( * ) col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3019
SELECT ALL - + 43 + - + COUNT ( * ) col0 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3020
SELECT ALL + + CAST( NULL AS DECIMAL ) - 1 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL + + CAST ( NULL AS REAL ) - 1 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT + + COUNT( * ) AS col0, - 0 AS col1 FROM tab0 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-3021
SELECT + + COUNT ( * ) AS col0, - 0 AS col1 FROM tab0 cor0
----
3
0

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT 94 - + ( + COUNT( DISTINCT - col0 ) ) AS col0 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-3023
SELECT 94 - + ( + COUNT ( DISTINCT - col0 ) ) AS col0 FROM tab2
----
91

query I rowsort
SELECT ALL + col2 + - col0 * + 90 FROM tab0
----
-1303
-7820
-8631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT + 45 - - 67 + CAST( NULL AS SIGNED ) + - + 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT + 45 - - 67 + CAST ( NULL AS INTEGER ) + - + 54 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3027
SELECT ALL * FROM tab1 WHERE NOT + - col2 + - col1 BETWEEN - col2 AND - - 77 + + CAST( + 21 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3027
SELECT ALL * FROM tab1 WHERE NOT + - col2 + - col1 BETWEEN - col2 AND - - 77 + + CAST ( + 21 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 85 * col1 * + + 60 FROM tab1
----
239700
25500
71400

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT 18 DIV 75 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-3029
SELECT 18 / 75 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT ALL - col1 DIV - ( + + 64 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - col1 / - ( + + 64 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3031
SELECT - SUM( ALL + col2 ) DIV 7 FROM tab2 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-3031
SELECT - SUM ( ALL + col2 ) / 7 FROM tab2 cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT - + MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3032
SELECT - + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - 18 + + 15 + + 96
----

query I rowsort
SELECT DISTINCT - col2 * ( + + col1 ) FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 81 col0 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT 55 * - + col1 + 24 + col1 FROM tab2 AS cor0
----
-2730
-3594
-4134

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab0 cor0
----
80

query II rowsort
SELECT ALL col0, 43 FROM tab0
----
15
43
87
43
97
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT MIN( 51 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT MIN ( 51 ) FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT COUNT( - 53 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3041
SELECT COUNT ( - 53 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT + 90 + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT + 90 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 / + - col1 * - 36 )
----

query I rowsort
SELECT - + col0 * + + col0 + + + 56 + col2 AS col1 FROM tab1 AS cor0
----
-2449
-7110
-8157

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND - col1 )
----

query II rowsort
SELECT col2 AS col1, + 57 FROM tab1 WHERE col2 NOT BETWEEN - col1 AND ( col0 * - + ( - - 53 ) + - col2 )
----
59
57
68
57
96
57

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE + 57 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT col1 * ( + 81 ) FROM tab2
----
4131
5427
6237

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT ALL ( col0 ) DIV + col0 + - + col1 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL ( col0 ) / + col0 + - + col1 FROM tab1
----
-13
-4
-46

query I rowsort
SELECT ( - 17 ) - + col0 + + - 3 * col0 AS col1 FROM tab1
----
-221
-357
-381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT + CAST( - + 8 AS SIGNED ) - + + col0 FROM tab2
----
-54
-72
-83

skipif mysql # not compatible
query I rowsort label-3051
SELECT + CAST ( - + 8 AS INTEGER ) - + + col0 FROM tab2
----
-54
-72
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 - + col1 * 32 col1 FROM tab2
----
-1610
-2122
-2442

query I rowsort
SELECT 93 * + 49 - + 8 AS col0 FROM tab1
----
4549
4549
4549

query I rowsort
SELECT + 46 * - col2 - + + col2 FROM tab0 AS cor0
----
-2209
-4653
-470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 49 * col2 col1 FROM tab0 AS cor0
----
2303
4851
490

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT DISTINCT COUNT( * ) + + - COUNT( * ), - 66 AS col2 FROM tab1 AS cor0
----
0
-66

skipif mysql # not compatible
query II rowsort label-3056
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ), - 66 AS col2 FROM tab1 AS cor0
----
0
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL + MIN( + col2 ) + - 61 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + MIN ( + col2 ) + - 61 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + + ( - 29 ) * + col2 + - col0 + - 54 * col1 FROM tab0 cor0
----
-1511
-3022
-5752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3059
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 * + + col0 - ( col0 ) * - - 10 AS col2 FROM tab1
----
2091
6375
7371

query I rowsort
SELECT ALL - col0 * - - col0 - + + 11 FROM tab0
----
-236
-7580
-9420

query I rowsort
SELECT ALL - ( - + col1 ) * - col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT - CAST( NULL AS SIGNED ) * - CAST( - col0 AS SIGNED ) AS col2, 64 FROM tab2
----
NULL
64
NULL
64
NULL
64

skipif mysql # not compatible
query II rowsort label-3063
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( - col0 AS INTEGER ) AS col2, 64 FROM tab2
----
NULL
64
NULL
64
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - 63 * + SUM( ALL + col0 ) FROM tab1
----
-14301

skipif mysql # not compatible
query I rowsort label-3064
SELECT - 63 * + SUM ( ALL + col0 ) FROM tab1
----
-14301

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - 8
----

query I rowsort
SELECT ALL + - 15 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query II rowsort
SELECT ( 4 ) AS col0, + 94 - + - 74 AS col2 FROM tab1
----
4
168
4
168
4
168

query II rowsort
SELECT + col0 AS col0, - 66 FROM tab2 AS cor0
----
46
-66
64
-66
75
-66

query I rowsort
SELECT DISTINCT - - ( ( + 20 ) ) FROM tab2 AS cor0
----
20

query I rowsort
SELECT ALL - col2 + + 61 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
21
3
38

query I rowsort
SELECT DISTINCT + col1 * - col0 + - col1 FROM tab1 AS cor0
----
-430
-4324
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT DISTINCT col1 + - + CAST( col0 AS SIGNED ) * col1 FROM tab0 AS cor0 WHERE NOT - CAST( 64 AS SIGNED ) * - 98 BETWEEN NULL AND - col1 + 46
----
-1134
-1806
-96

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT col1 + - + CAST ( col0 AS INTEGER ) * col1 FROM tab0 AS cor0 WHERE NOT - CAST ( 64 AS INTEGER ) * - 98 BETWEEN NULL AND - col1 + 46
----
-1134
-1806
-96

query II rowsort
SELECT + - col0 * - 5, col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - 93 + + col0 AS col0 FROM tab0 AS cor0
----
-6
-78
4

query I rowsort
SELECT DISTINCT - - 25 AS col0 FROM tab1 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 6 col2 FROM tab1 AS cor0
----
282
30
84

query II rowsort
SELECT ALL + col1 AS col2, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT DISTINCT MAX( DISTINCT - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT MAX ( DISTINCT - - col0 ) FROM tab0
----
97

query II rowsort
SELECT ( + 7 ) AS col1, col0 FROM tab2
----
7
46
7
64
7
75

query I rowsort
SELECT DISTINCT + - col2 + - + col0 FROM tab1 WHERE NOT - 54 + - 50 < - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 + + + col0 AND NULL
----

query I rowsort
SELECT + ( + col1 ) + - 22 FROM tab1 AS cor0
----
-17
-8
25

query I rowsort
SELECT - 76 + - 26 FROM tab0 AS cor0
----
-102
-102
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL COUNT( * ) - - 85 AS col2 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL COUNT ( * ) - - 85 AS col2 FROM tab2 AS cor0
----
88

query I rowsort
SELECT + 77 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT ALL col1 + 78 + - col0 FROM tab2
----
70
83
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 10 - + 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3090
SELECT ALL - - col2 + - + col2 DIV + col2 + + - 13 FROM tab2 cor0
----
26
44
9

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL - - col2 + - + col2 / + col2 + + - 13 FROM tab2 cor0
----
26
44
9

query I rowsort
SELECT + col2 * + 19 AS col0 FROM tab2 AS cor0
----
1102
437
760

query II rowsort
SELECT + 26, + col0 FROM tab1 AS cor0
----
26
51
26
85
26
91

query I rowsort
SELECT ALL - - 27 AS col2 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT 42 <= 44
----

query II rowsort
SELECT col0, ( + 78 ) + + col1 FROM tab2 cor0
----
46
129
64
155
75
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL - ( + MIN( ALL ( + - 96 ) ) ) + - + ( 81 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - ( + MIN ( ALL ( + - 96 ) ) ) + - + ( 81 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - 27 + + col0 FROM tab0 AS cor0
----
-2172
-480
70

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * + col0 BETWEEN - + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * + + col0 - - + col0 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - 75 ) FROM tab2
----
75
75
75

query I rowsort
SELECT DISTINCT - col1 * - col1 * + + 18 FROM tab2
----
106722
46818
80802

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3102
SELECT CAST( + - col0 AS SIGNED ) AS col1, 96 AS col2 FROM tab2
----
-46
96
-64
96
-75
96

skipif mysql # not compatible
query II rowsort label-3102
SELECT CAST ( + - col0 AS INTEGER ) AS col1, 96 AS col2 FROM tab2
----
-46
96
-64
96
-75
96

query I rowsort
SELECT ALL ( + - col0 ) * + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col1 AND + col0
----

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN 85 AND + 22 AND NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 <= + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 86 < NULL
----

query I rowsort
SELECT DISTINCT + - 91 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL < + 65 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT + 81 DIV + 27 + 72 * + 48 FROM tab1 AS cor0
----
3459
3459
3459

skipif mysql # not compatible
query I rowsort label-3110
SELECT + 81 / + 27 + 72 * + 48 FROM tab1 AS cor0
----
3459
3459
3459

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL - - 34 + - col1 FROM tab2 AS cor0
----
-17
-33
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL - CAST( NULL AS SIGNED ) + 59 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - CAST ( NULL AS INTEGER ) + 59 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * - 26 FROM tab1 cor0
----
-1222
-130
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col0 * + ( col1 ) FROM tab1 AS cor0 WHERE + 19 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 * + ( col1 ) FROM tab1 AS cor0 WHERE + 19 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - - col0 + - - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-690
-783
-9506

query I rowsort
SELECT ALL + col0 + - 39 AS col1 FROM tab1 AS cor0
----
12
46
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT DISTINCT col2 DIV 84 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT col2 / 84 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL - + 28 * - 66 + COUNT( * ) * - - COUNT( * ) + + 53 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1910

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - + 28 * - 66 + COUNT ( * ) * - - COUNT ( * ) + + 53 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT + 30 * 62 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT + 30 * 62 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - - ( - 33 ) ) + 30 FROM tab2 AS cor0
----
-3
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - - 63 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 83 - col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
1613
17723
4591

query III rowsort
SELECT * FROM tab1 WHERE + - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT COUNT( * ) + 47 + 80 + + 20 AS col0 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3126
SELECT COUNT ( * ) + 47 + 80 + + 20 AS col0 FROM tab0 AS cor0
----
150

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 37 BETWEEN ( + + 36 * - col0 + + + 16 - - + 35 * + - col2 - + - 66 ) AND NULL
----

query I rowsort
SELECT ALL + col2 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
3396
4533
9165

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT - + SUM( ALL 63 ) FROM tab0 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT - + SUM ( ALL 63 ) FROM tab0 cor0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3130
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3131
SELECT DISTINCT MIN( col2 ) * - 0 col1, + COUNT( * ) col0 FROM tab1
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3131
SELECT DISTINCT MIN ( col2 ) * - 0 col1, + COUNT ( * ) col0 FROM tab1
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - MAX( - 23 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3132
SELECT - MAX ( - 23 ) AS col1 FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR NULL IN ( - 88, - col2, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2, - 81 AS col0 FROM tab2
----
23
-81
40
-81
58
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 20 NOT IN ( - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 20 NOT IN ( - 68 )
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN 55 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 87 AS col1 FROM tab0 AS cor0
----
134
186
97

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE col1 > 58
----
15

query I rowsort
SELECT DISTINCT - col1 + + ( 32 ) FROM tab2 AS cor0
----
-19
-35
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT + 82 + MIN( DISTINCT - col0 ) col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3140
SELECT + 82 + MIN ( DISTINCT - col0 ) col0 FROM tab2 AS cor0
----
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > - 26 / + + col2
----

query II rowsort
SELECT + 87 * - + col2 AS col1, col2 * - 78 * 94 FROM tab2 AS cor0
----
-2001
-168636
-3480
-293280
-5046
-425256

query II rowsort
SELECT + col0 * - col0, 54 - + 52 AS col1 FROM tab2 cor0
----
-2116
2
-4096
2
-5625
2

query I rowsort
SELECT ALL + - 73 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3146
SELECT ALL col1 AS col1, + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3146
SELECT ALL col1 AS col1, + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT - col1 * 5 * + col0 AS col1 FROM tab0
----
-485
-6075
-9135

query I rowsort
SELECT + - 32 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( - 67 ) AS col0 FROM tab2
----
-67
-67
-67

query I rowsort
SELECT DISTINCT col1 * ( 98 ) AS col0 FROM tab1
----
1372
4606
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3151
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT - + 43 * + - col1 * col0 <> + ( CAST( 70 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + 43 * + - col1 * col0 <> + ( CAST ( 70 AS INTEGER ) )
----
0

query I rowsort
SELECT ALL - col1 * + - 9 AS col0 FROM tab0
----
189
729
9

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE NULL > - col0
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NOT ( ( NOT ( NULL BETWEEN NULL AND + col0 ) ) ) )
----

query I rowsort
SELECT ALL + 44 + - col2 FROM tab1 AS cor0
----
-15
-24
-52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL + 81 * + COUNT( * ) * + - 24 - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-5829

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL + 81 * + COUNT ( * ) * + - 24 - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-5829

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT DISTINCT + - ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + - ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT ( + 65 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
65

query II rowsort
SELECT - col1 AS col0, - col1 + + + ( - 40 ) - 45 AS col0 FROM tab2
----
-51
-136
-67
-152
-77
-162

query II rowsort
SELECT DISTINCT 25 AS col2, - 4 * + - 59 FROM tab1
----
25
236

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT ALL 46 * 99 AS col0, COUNT( * ) FROM tab0
----
4554
3

skipif mysql # not compatible
query II rowsort label-3163
SELECT ALL 46 * 99 AS col0, COUNT ( * ) FROM tab0
----
4554
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT 96 DIV - 88 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3164
SELECT 96 / - 88 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3165
SELECT ALL + CAST( NULL AS DECIMAL ) * - 12 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-3165
SELECT ALL + CAST ( NULL AS REAL ) * - 12 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3166
SELECT - CAST( NULL AS SIGNED ), + 3 + 25 AS col1 FROM tab2 AS cor0
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-3166
SELECT - CAST ( NULL AS INTEGER ), + 3 + 25 AS col1 FROM tab2 AS cor0
----
NULL
28
NULL
28
NULL
28

query I rowsort
SELECT col0 * col1 * - 92 FROM tab1 AS cor0
----
-39100
-393484
-65688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 65, - ( - 71 ) col0 FROM tab2 AS cor0
----
-65
71
-65
71
-65
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 65 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + + 86
----

query I rowsort
SELECT - col2 * col0 * + + col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

query II rowsort
SELECT DISTINCT - - col1, 38 AS col1 FROM tab1 AS cor0
----
14
38
47
38
5
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3173
SELECT - CAST( + col0 AS SIGNED ) DIV - col0 + col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-3173
SELECT - CAST ( + col0 AS INTEGER ) / - col0 + col0 FROM tab0 AS cor0
----
16
88
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 83 col1 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT col0 * 49 * - col1 * col1 FROM tab0
----
-1879983
-4753
-4822335

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT COUNT( ALL - - ( 10 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3176
SELECT COUNT ( ALL - - ( 10 ) ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + 31 * + - 60 AS col0, - 46 AS col2 FROM tab0 AS cor0
----
-1860
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT 3 * + 32 AS col2 FROM tab1
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - COUNT( * ) * + ( + 29 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3180
SELECT - COUNT ( * ) * + ( + 29 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-261

query I rowsort
SELECT + ( + ( - + col2 ) ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT MIN( ALL + + 27 ) AS col1 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3182
SELECT MIN ( ALL + + 27 ) AS col1 FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT 97 * col2 FROM tab1 cor0 WHERE + col1 <> 29 + - + col1
----
5723
6596
9312

query I rowsort
SELECT DISTINCT col0 * + 26 * + col1 AS col0 FROM tab2 AS cor0
----
128128
130650
60996

query I rowsort
SELECT ALL 74 + - - col0 FROM tab1 AS cor0
----
125
159
165

query II rowsort
SELECT ALL + col0 + - ( - - col2 ) * + ( + col0 ) * - col1, col2 FROM tab1 AS cor0
----
25160
59
290927
68
68595
96

query I rowsort
SELECT - 44 * + col2 * + ( - - col1 ) + + + col2 * - + ( - col0 ) AS col2 FROM tab2 cor0
----
-132960
-166634
-50554

query I rowsort
SELECT 65 * + AVG ( ALL - + col0 ) FROM tab0 cor0 WHERE NULL NOT IN ( col2 * - col0 / 95, + col0, + + col2 )
----
NULL

query I rowsort
SELECT DISTINCT - + 48 + - + col2 + col1 AS col2 FROM tab0 AS cor0
----
-14
-146
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3190
SELECT ALL - MIN( DISTINCT col2 ) + 85 + + ( + - 98 ) * 29, - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
-2780
NULL

skipif mysql # not compatible
query II rowsort label-3190
SELECT ALL - MIN ( DISTINCT col2 ) + 85 + + ( + - 98 ) * 29, - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
-2780
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * + + 98 + - col1 + - - col0 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 71 * col0 * col0 AS col1 FROM tab2
----
150236
290816
399375

query I rowsort
SELECT ALL 44 FROM tab2 WHERE NOT NULL IS NOT NULL
----
44
44
44

query I rowsort
SELECT DISTINCT 38 * + col0 FROM tab2
----
1748
2432
2850

query I rowsort
SELECT - 86 + + + col0 + col0 FROM tab2
----
42
6
64

query III rowsort
SELECT * FROM tab1 WHERE - 17 < + + ( + + 73 ) * + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT + col0 DIV - ( + - ( 28 ) ) col1 FROM tab1
----
1
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3197
SELECT + col0 / - ( + - ( 28 ) ) col1 FROM tab1
----
1
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT - - 93 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-3198
SELECT - - 93 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT + CAST( NULL AS SIGNED ) + + - COUNT( * ) + + - COUNT( * ) + - COUNT( * ) + - MIN( + - 53 ) * 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + + - COUNT ( * ) + - COUNT ( * ) + - MIN ( + - 53 ) * 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT 96 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT DISTINCT - - col2 DIV + ( 81 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT - - col2 / + ( 81 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3202
SELECT DISTINCT ( CAST( - + col2 AS SIGNED ) ), col1 AS col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
query II rowsort label-3202
SELECT DISTINCT ( CAST ( - + col2 AS INTEGER ) ), col1 AS col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL + COUNT( * ) * - 90 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + COUNT ( * ) * - 90 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-267

onlyif mysql # DIV for integer division: 
query II rowsort label-3204
SELECT 70 DIV + col1 + col2, col0 + + col2 AS col2 FROM tab2 cor0
----
24
69
40
104
59
133

skipif mysql # not compatible
query II rowsort label-3204
SELECT 70 / + col1 + col2, col0 + + col2 AS col2 FROM tab2 cor0
----
24
69
40
104
59
133

query I rowsort
SELECT DISTINCT - col2 * + - 93 AS col0 FROM tab0
----
4371
9207
930

query III rowsort
SELECT * FROM tab1 WHERE col1 IS NOT NULL AND ( NULL ) BETWEEN ( col2 ) AND col0 - + col2 + col0
----

query II rowsort
SELECT DISTINCT - col1 AS col2, 63 AS col1 FROM tab1
----
-14
63
-47
63
-5
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ( - ( + COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3208
SELECT ( - ( + COUNT ( * ) ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT DISTINCT MAX( ALL - - col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT MAX ( ALL - - col0 ) AS col1 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col2 FROM tab0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col1 FROM tab0 AS cor0
----
89

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT col1 * + ( + col0 ) + - col2 IN ( + col0 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT + 20 * - + 43 + - 56 * - - ( + 13 ) + COUNT( * ) FROM tab0 cor0
----
-1585

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT + 20 * - + 43 + - 56 * - - ( + 13 ) + COUNT ( * ) FROM tab0 cor0
----
-1585

query I rowsort
SELECT col2 + col0 * - col1 * col1 FROM tab1
----
-200951
-2066
-9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) + - ( - + col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) + - ( - + col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 36 + 78 AS col0 FROM tab0 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT SUM( + - 39 ) FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-3217
SELECT SUM ( + - 39 ) FROM tab1
----
-117

query I rowsort
SELECT DISTINCT - 97 * 61 FROM tab1
----
-5917

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT MAX( ALL - + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3219
SELECT MAX ( ALL - + col0 ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT ALL - 3 * - + 11 AS col0 FROM tab0
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT + 54 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3222
SELECT DISTINCT * FROM tab1 WHERE NOT + 5 * + - CAST( - col1 AS SIGNED ) * - col2 * + + ( + + 81 ) + 77 - CAST( + - CAST( - - col2 AS SIGNED ) AS SIGNED ) - 47 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3222
SELECT DISTINCT * FROM tab1 WHERE NOT + 5 * + - CAST ( - col1 AS INTEGER ) * - col2 * + + ( + + 81 ) + 77 - CAST ( + - CAST ( - - col2 AS INTEGER ) AS INTEGER ) - 47 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + + - col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT - SUM( ALL - + col2 ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-3224
SELECT - SUM ( ALL - + col2 ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3225
SELECT CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3225
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - COUNT( * ) FROM tab1 WHERE col1 * col2 <> - col0 - - 33
----
-3

skipif mysql # not compatible
query I rowsort label-3226
SELECT - COUNT ( * ) FROM tab1 WHERE col1 * col2 <> - col0 - - 33
----
-3

query I rowsort
SELECT ALL col1 + + 45 AS col2 FROM tab1
----
50
59
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT DISTINCT - 60 + SUM( DISTINCT + col0 ) * + 83 FROM tab1
----
18781

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT - 60 + SUM ( DISTINCT + col0 ) * + 83 FROM tab1
----
18781

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + 63 ) IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE col1 NOT BETWEEN ( + ( + col1 ) - - 65 ) AND ( ( - col2 ) )
----
46
64
75

query I rowsort
SELECT - col1 + - 25 AS col1 FROM tab1
----
-30
-39
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT + ( ( COUNT( * ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3232
SELECT + ( ( COUNT ( * ) ) ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT + CAST( 28 AS SIGNED ) FROM tab0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-3233
SELECT + CAST ( 28 AS INTEGER ) FROM tab0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT - SUM( col2 ) + + 53 FROM tab1
----
-170

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - SUM ( col2 ) + + 53 FROM tab1
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3235
SELECT ALL * FROM tab0 WHERE NULL = + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3235
SELECT ALL * FROM tab0 WHERE NULL = + CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT - 94 * col0 + + col1 FROM tab2
----
-4273
-5939
-6983

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col1 FROM tab0 WHERE NOT 17 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col1 + 45 AS col1 FROM tab2
----
112
122
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( 55 )
----

query I rowsort
SELECT col2 + - col2 * col0 AS col0 FROM tab1
----
-4800
-4956
-6120

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 < ( + col1 )
----
75
67
58

query I rowsort
SELECT col2 + 26 AS col0 FROM tab2 WHERE 88 <> NULL
----

query I rowsort
SELECT 52 + - col2 AS col2 FROM tab0
----
-47
42
5

query I rowsort
SELECT DISTINCT + col2 * ( 5 * col1 ) AS col0 FROM tab1
----
1475
15980
6720

query I rowsort
SELECT 70 * + 12 + col2 AS col1 FROM tab1 AS cor0
----
899
908
936

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL MAX( ALL - 17 ) FROM tab0 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL MAX ( ALL - 17 ) FROM tab0 cor0
----
-17

query I rowsort
SELECT DISTINCT + 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
14

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 <= col2 + 23 * - 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL MAX( 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL MAX ( 60 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL - COUNT( * ) * + 84 FROM tab0 AS cor0 CROSS JOIN tab2
----
-756

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - COUNT ( * ) * + 84 FROM tab0 AS cor0 CROSS JOIN tab2
----
-756

query I rowsort
SELECT DISTINCT 61 * col2 FROM tab0 WHERE NOT + 71 + - 16 / 25 < NULL
----

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
13

query I rowsort
SELECT + 29 - 77 * - col2 AS col2 FROM tab0 AS cor0
----
3648
7652
799

query I rowsort
SELECT DISTINCT 83 * col2 + ( - col0 ) FROM tab0 AS cor0
----
3886
743
8120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + ( col0 + 11 ) * - col0 col0 FROM tab1 AS cor0
----
-3258
-8219
-9350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * + 32 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT ALL - ( 26 ) DIV 69 + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL - ( 26 ) / 69 + + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + col2 * + 24 + col2 AS col2 FROM tab0 AS cor0
----
1175
2475
250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3259
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) * + 92 + AVG ( DISTINCT + ( - ( CAST( NULL AS DECIMAL ) ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) * + 92 + AVG ( DISTINCT + ( - ( CAST ( NULL AS REAL ) ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 43 + 51 AS col2 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT + col2 + - 26 AS col1 FROM tab1 AS cor0
----
33
42
70

query I rowsort
SELECT DISTINCT - 58 + + 93 FROM tab2 cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL MAX( DISTINCT col2 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL MAX ( DISTINCT col2 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT - 29 - col2 * - 87 FROM tab1 AS cor0
----
5104
5887
8323

query III rowsort
SELECT * FROM tab1 WHERE - col1 - 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 34 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - SUM( - 12 ) + COUNT( - 39 + col0 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3267
SELECT - SUM ( - 12 ) + COUNT ( - 39 + col0 ) FROM tab2
----
39

query I rowsort
SELECT DISTINCT + 43 - - - col1 AS col0 FROM tab2
----
-24
-34
-8

query I rowsort
SELECT DISTINCT - ( + - 71 ) AS col1 FROM tab1
----
71

query I rowsort
SELECT ALL 59 - col2 AS col1 FROM tab2
----
1
19
36

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT 9 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * col2 + 57 * + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT MIN( DISTINCT col2 ) * + 16 FROM tab2 AS cor0
----
368

skipif mysql # not compatible
query I rowsort label-3274
SELECT MIN ( DISTINCT col2 ) * + 16 FROM tab2 AS cor0
----
368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT DISTINCT CAST( - ( 76 ) AS SIGNED ) * + col1 FROM tab1 cor0
----
-1064
-3572
-380

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT CAST ( - ( 76 ) AS INTEGER ) * + col1 FROM tab1 cor0
----
-1064
-3572
-380

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 57 FROM tab0 AS cor0
----
2679
5643
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3278
SELECT DISTINCT + + 53 * - SUM( + 50 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT + + 53 * - SUM ( + 50 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT DISTINCT + COUNT( * ) * - + MIN( - col1 ) FROM tab0 cor0
----
243

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT + COUNT ( * ) * - + MIN ( - col1 ) FROM tab0 cor0
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT CAST( - ( COUNT( * ) ) AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3280
SELECT CAST ( - ( COUNT ( * ) ) AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - - 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, + ( + col0 ) col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT - 48 * COUNT( * ) FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - 48 * COUNT ( * ) FROM tab0 AS cor0
----
-144

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col1 > ( - + 91 - + col1 * - 78 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT - - ( + CAST( NULL AS SIGNED ) ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3285
SELECT - - ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN col2 * 99 + 7 AND NULL
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT + col2 * 14 + col2 AS col2 FROM tab2 AS cor0
----
345
600
870

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3288
SELECT ALL - + 11 AS col1, CAST( NULL AS SIGNED ) * + col2 + - col0 FROM tab2 cor0
----
-11
NULL
-11
NULL
-11
NULL

skipif mysql # not compatible
query II rowsort label-3288
SELECT ALL - + 11 AS col1, CAST ( NULL AS INTEGER ) * + col2 + - col0 FROM tab2 cor0
----
-11
NULL
-11
NULL
-11
NULL

query I rowsort
SELECT DISTINCT + + 14 / 66 - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * col0 - - 72 BETWEEN + 72 * + col0 AND 33 OR 70 NOT IN ( 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 25 AS col2 FROM tab2 AS cor0 WHERE NOT + 54 < - col1
----
25
25
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 38 * - col1 + 34 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3293
SELECT ALL - ( + 80 ) * col0 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - ( + 80 ) * col0 / - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * - col2 * + - 83 AS col2 FROM tab2 AS cor0
----
-132800
-279212
-43907

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3296
SELECT - COUNT( * ) DIV - SUM( - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT - COUNT ( * ) / - SUM ( - col2 ) FROM tab1
----
0

query II rowsort
SELECT + 84 * col2 AS col2, - 43 AS col1 FROM tab2
----
1932
-43
3360
-43
4872
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3298
SELECT CAST( NULL AS DECIMAL ) * + 87, - 23 * - col2 col1 FROM tab1
----
NULL
1357
NULL
1564
NULL
2208

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3298
SELECT CAST ( NULL AS REAL ) * + 87, - 23 * - col2 col1 FROM tab1
----
NULL
1357
NULL
1564
NULL
2208

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 61 ) IS NOT NULL
----

query I rowsort
SELECT - col1 * + 28 * + 80 AS col1 FROM tab0
----
-181440
-2240
-47040

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col0 + + - col0 - col2 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT ( - MAX( DISTINCT col0 ) ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT ( - MAX ( DISTINCT col0 ) ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT DISTINCT - col1 + + ( + col2 ) * + col0 FROM tab2
----
1007
2483
4283

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT DISTINCT + ( + - col1 ) DIV col0 * + col1 + col0 AS col1 FROM tab2
----
-13
-5
75

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + ( + - col1 ) / col0 * + col1 + col0 AS col1 FROM tab2
----
-13
-5
75

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col1 - + ( - col1 )
----

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE ( - col1 ) NOT BETWEEN ( + + col0 ) AND ( - col0 )
----
-23
-40
-58

query I rowsort
SELECT ALL - - col0 + - + 89 AS col0 FROM tab1 cor0
----
-38
-4
2

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE col2 - - col2 >= ( + + ( col0 ) )
----
-51
-67
-77

query I rowsort
SELECT ALL - 36 + + 78 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT COUNT( + 99 ) + 12 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3310
SELECT COUNT ( + 99 ) + 12 FROM tab1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col0 * - col2 AS col0 FROM tab1
----
51
-4896
85
-5015
91
-6188

query I rowsort
SELECT DISTINCT + - ( - 46 ) + + 11 AS col2 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

query II rowsort
SELECT 1 AS col2, - col0 FROM tab2 AS cor0
----
1
-46
1
-64
1
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( col2 * - col2 * - - ( - + col1 ) * 20 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT 76 col1 FROM tab0 cor0 WHERE col2 IN ( - col0 + + - 51 + - - CAST( - 10 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3315
SELECT 76 col1 FROM tab0 cor0 WHERE col2 IN ( - col0 + + - 51 + - - CAST ( - 10 AS INTEGER ) )
----

query I rowsort
SELECT ALL - + col2 + - 24 + + col2 * + col1 + col2 * 66 FROM tab0 cor0
----
6510
6838
836

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT + SUM( DISTINCT - col2 ) - - COUNT( * ) FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-3317
SELECT + SUM ( DISTINCT - col2 ) - - COUNT ( * ) FROM tab1 AS cor0
----
-220

query I rowsort
SELECT DISTINCT - col2 + 60 FROM tab0 AS cor0
----
-39
13
50

query I rowsort
SELECT DISTINCT - - col1 * + 71 - + col2 FROM tab2 AS cor0
----
3598
4699
5427

query I rowsort
SELECT ALL col1 + col2 * - col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT col1 - - col2 * + col1 FROM tab1
----
1358
300
3243

query I rowsort
SELECT ALL + 77 - + col0 AS col1 FROM tab1
----
-14
-8
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col0 * + 69 + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT SUM( 28 ) col1 FROM tab2, tab1 AS cor0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT SUM ( 28 ) col1 FROM tab2, tab1 AS cor0
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3325
SELECT DISTINCT * FROM tab0 WHERE + col0 BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3325
SELECT DISTINCT * FROM tab0 WHERE + col0 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 72 ) = NULL
----

query I rowsort
SELECT + col1 * col0 AS col0 FROM tab0 WHERE NOT ( col0 NOT BETWEEN NULL AND ( + col2 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 + col1 - + col0 * + 53 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3329
SELECT ALL - COUNT( * ) AS col0, - MAX( DISTINCT col1 ) col2 FROM tab0 AS cor0
----
-3
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3329
SELECT ALL - COUNT ( * ) AS col0, - MAX ( DISTINCT col1 ) col2 FROM tab0 AS cor0
----
-3
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT + ( - CAST( - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3330
SELECT + ( - CAST ( - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT ( + + 18 ) FROM tab1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + col1 col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3334
SELECT DISTINCT + MAX( - col1 ) * 64 DIV 99 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + MAX ( - col1 ) * 64 / 99 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IN ( + 0 + + col0 * col1 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT DISTINCT - MAX( DISTINCT + - col2 ) + + + COUNT( 52 ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT - MAX ( DISTINCT + - col2 ) + + + COUNT ( 52 ) AS col1 FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT + ( COUNT( - 46 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT + ( COUNT ( - 46 ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * col2, col2 - - 90 col0 FROM tab1 AS cor0
----
1344
186
295
149
3196
158

onlyif mysql # DIV for integer division: 
query I rowsort label-3339
SELECT DISTINCT + 48 DIV col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT + 48 / col2 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT MAX( ALL col1 ) * + 28 AS col0 FROM tab1 cor0
----
1316

skipif mysql # not compatible
query I rowsort label-3340
SELECT MAX ( ALL col1 ) * + 28 AS col0 FROM tab1 cor0
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 + + col2 NOT BETWEEN ( - - 13 ) AND + 99 / 3 + - col2 + + ( 2 + col2 * ( + col0 + col1 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 + + col2 NOT BETWEEN ( - - 13 ) AND + 99 / 3 + - col2 + + ( 2 + col2 * ( + col0 + col1 ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT DISTINCT 44 DIV - col1 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT 44 / - col1 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3343
SELECT ALL 63 AS col1, CAST( NULL AS SIGNED ) col0 FROM tab1
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3343
SELECT ALL 63 AS col1, CAST ( NULL AS INTEGER ) col0 FROM tab1
----
63
NULL
63
NULL
63
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3344
SELECT ALL + col0 AS col1, + CAST( NULL AS SIGNED ) * col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3344
SELECT ALL + col0 AS col1, + CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT col0 * - 35 + - col1 AS col2 FROM tab1
----
-1799
-2980
-3232

query I rowsort
SELECT 47 + - col0 AS col1 FROM tab2
----
-17
-28
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - col0 * - col2 * - + col1 + - col0 + - - 35 + - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 BETWEEN ( col2 + + - col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT - COUNT( * ) + - COUNT( DISTINCT - col1 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-3349
SELECT - COUNT ( * ) + - COUNT ( DISTINCT - col1 ) FROM tab1
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 + - + 71 col1 FROM tab0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT - - MAX( ALL + col1 ) + + ( + 58 ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-3351
SELECT - - MAX ( ALL + col1 ) + + ( + 58 ) FROM tab2 AS cor0
----
135

query I rowsort
SELECT - - 12 + + col0 FROM tab2 AS cor0
----
58
76
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 30 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT - 68 + + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----
-68

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - 68 + + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3355
SELECT DISTINCT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
63

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 84 + - + 95 IS NOT NULL
----

query I rowsort
SELECT col0 + col1 + + + col0 * col1 * col2 AS col0 FROM tab0 AS cor0
----
18378
57201
9701

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - 70 + + - COUNT( * ) + + - 47 col1 FROM tab0 cor0
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3359
SELECT - 70 + + - COUNT ( * ) + + - 47 col1 FROM tab0 cor0
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - - 11 ) col1 FROM tab1 AS cor0
----
-48
-57
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 90 * - col2 + + - col2 / - + col2 + + col2 + + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3362
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - col0 ) * - col0 * - 3 * + col1 + + ( - CAST( - col0 AS DECIMAL ) ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-3362
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - col0 ) * - col0 * - 3 * + col1 + + ( - CAST ( - col0 AS REAL ) ) IN ( col2 )
----

query I rowsort
SELECT DISTINCT - - 61 AS col1 FROM tab0 cor0
----
61

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( 92 ) * + col1 * - col1 AS col1 FROM tab2
----
-239292
-412988
-545468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col0 FROM tab1
----
16
16
16

query I rowsort
SELECT 61 * col1 * + 38 FROM tab1
----
108946
11590
32452

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT COUNT( 87 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3368
SELECT COUNT ( 87 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT 3, + COUNT( 31 ) col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3369
SELECT 3, + COUNT ( 31 ) col1 FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3370
SELECT CAST( NULL AS SIGNED ) col1, + col2 * + - col0 AS col0 FROM tab1
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3370
SELECT CAST ( NULL AS INTEGER ) col1, + col2 * + - col0 AS col0 FROM tab1
----
NULL
-4896
NULL
-5015
NULL
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT - COUNT( * ) - + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-36

skipif mysql # not compatible
query I rowsort label-3371
SELECT - COUNT ( * ) - + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-36

query I rowsort
SELECT DISTINCT - col0 * - col0 FROM tab1 WHERE NOT + + 99 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col0, - 59 FROM tab0 AS cor0
----
15
-59
87
-59
97
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 6 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT col2 + - - CAST( + CAST( - - 52 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
151
62
99

skipif mysql # not compatible
query I rowsort label-3375
SELECT col2 + - - CAST ( + CAST ( - - 52 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
151
62
99

query I rowsort
SELECT + col0 * col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 51 + - col0 AS col1, + col1 col0 FROM tab1 AS cor0
----
-34
5
-40
47
0
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - - col1 / + + 46 <= - + 85 * - ( + col0 ) + - + 9
----

query I rowsort
SELECT - col2 * + 15 AS col1 FROM tab2 AS cor0
----
-345
-600
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3380
SELECT - SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT DISTINCT COUNT( * ) AS col2, - 15 - + + ( - 94 ) FROM tab2 AS cor0
----
3
79

skipif mysql # not compatible
query II rowsort label-3381
SELECT DISTINCT COUNT ( * ) AS col2, - 15 - + + ( - 94 ) FROM tab2 AS cor0
----
3
79

query I rowsort
SELECT col0 * + + col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL - MAX( col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL - MAX ( col2 ) FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT DISTINCT - 9 * - col0 DIV 36 DIV + 68 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT - 9 * - col0 / 36 / + 68 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col1 + - col2 + col1 FROM tab1
----
-49
-68
26

query I rowsort
SELECT + - col2 - - 4 * + + col0 * 34 FROM tab1 AS cor0
----
11501
12308
6840

query I rowsort
SELECT - 74 + + 37 AS col2 FROM tab2 cor0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + - 38 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + - 38 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + 72, 81 AS col1 FROM tab1
----
72
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + + 76 * - col0 col2 FROM tab1
----
3972
6519
6984

query I rowsort
SELECT 26 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - col0 * - col2 * + ( 87 ) * - + col0 FROM tab0 AS cor0
----
-6585030
-81039717
-920025

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT DISTINCT - col0 DIV - col0 - 62 col1 FROM tab2 cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3393
SELECT DISTINCT - col0 / - col0 - 62 col1 FROM tab2 cor0
----
-61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + - col1 - - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL + - ( + - COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL + - ( + - COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT + + col1 * + - col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT + MIN( - + 94 ) AS col1 FROM tab2 AS cor0 WHERE NOT 34 * + + 41 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT + MIN ( - + 94 ) AS col1 FROM tab2 AS cor0 WHERE NOT 34 * + + 41 >= ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3398
SELECT col1, + col2 * col1 DIV + col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif mysql # not compatible
query II rowsort label-3398
SELECT col1, + col2 * col1 / + col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT - COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3399
SELECT - COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - + ( - - 3 ) AS col1 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL - 13 * + ( - col1 ) * + 0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL COUNT( + - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL COUNT ( + - col2 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + 42 + + col0 <= - - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - + col0 AND + col2
----

query I rowsort
SELECT - 73 * - + col2 FROM tab2 cor0
----
1679
2920
4234

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT MIN( col2 ) + MIN( + 30 ) col1 FROM tab1
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3407
SELECT DISTINCT MIN ( col2 ) + MIN ( + 30 ) col1 FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT + COUNT( * ) FROM tab1 cor0 WHERE + 5 * + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3408
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE + 5 * + col2 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + col1 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT DISTINCT ( - - COUNT( * ) ) + ( COUNT( * ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT ( - - COUNT ( * ) ) + ( COUNT ( * ) ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT 24 + + col0 AS col1 FROM tab2 AS cor0
----
70
88
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3412
SELECT - col1 + + col0 + - col0 AS col1, - CAST( + CAST( + col2 AS DECIMAL ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

skipif mysql # not compatible
query II rowsort label-3412
SELECT - col1 + + col0 + - col0 AS col1, - CAST ( + CAST ( + col2 AS REAL ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT ALL + 96 AS col2 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT DISTINCT + 19 + col0 * + + 78 AS col2 FROM tab0 AS cor0
----
1189
6805
7585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT ALL col2 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL col2 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 32 > 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT COUNT( * ) + 99 AS col1 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-3417
SELECT COUNT ( * ) + 99 AS col1 FROM tab0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3418
SELECT ALL 85 DIV + COUNT( * ) col1 FROM tab0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3418
SELECT ALL 85 / + COUNT ( * ) col1 FROM tab0
----
28

query III rowsort
SELECT * FROM tab0 WHERE + 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3420
SELECT COUNT( * ) DIV - COUNT( - col0 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3420
SELECT COUNT ( * ) / - COUNT ( - col0 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3421
SELECT MAX( DISTINCT - col2 ) DIV + MAX( ALL - + col0 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3421
SELECT MAX ( DISTINCT - col2 ) / + MAX ( ALL - + col0 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + - 58 * - col1 + - 47 + + - 51 + + col2 AS col2 FROM tab0 AS cor0 WHERE - 18 IS NOT NULL
----
1130
4647
59

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 60 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT + COUNT( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT + COUNT ( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * ( + 33 ) col2 FROM tab2 AS cor0
----
1683
2211
2541

query I rowsort
SELECT + + col0 * - + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + 88 FROM tab2 AS cor0 WHERE NOT 98 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT 92 * + COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT 92 * + COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT ALL - + CAST( NULL AS SIGNED ) * 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL - + CAST ( NULL AS INTEGER ) * 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * - 10 + - col2 FROM tab0 AS cor0
----
-1069
-197
-880

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT - 17 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 71 col1, col2 AS col1 FROM tab0
----
71
10
71
47
71
99

query I rowsort
SELECT ( + col2 ) FROM tab2 WHERE NOT + - 3 IS NULL
----
23
40
58

query I rowsort
SELECT + ( 59 ) FROM tab2 WHERE NOT + + ( - col2 ) + + 66 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col0, 18 FROM tab2
----
46
18
64
18
75
18

query I rowsort
SELECT - ( 11 ) FROM tab2
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT SUM( + - col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT SUM ( + - col2 ) AS col1 FROM tab1
----
-223

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + + ( + 30 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - ( + ( + col1 ) ) AS col2, + 2 AS col1 FROM tab0
----
-1
2
-21
2
-81
2

query II rowsort
SELECT - + col2, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT - CAST( col2 AS SIGNED ) + - col2 FROM tab2
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-3442
SELECT - CAST ( col2 AS INTEGER ) + - col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT DISTINCT - 84 + 84 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3444
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 6 / 32 - col0 - + 69 + col2 - 56 * col2 + col0 * + CAST( + col2 AS SIGNED ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3444
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 6 / 32 - col0 - + 69 + col2 - 56 * col2 + col0 * + CAST ( + col2 AS INTEGER ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3445
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - CAST( NULL AS SIGNED ) + + + col0 + - col0 / + col2 * - col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3445
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - CAST ( NULL AS INTEGER ) + + + col0 + - col0 / + col2 * - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT ALL - col1 - + - col1 + col0 * + col2 * - ( + + ( CAST( NULL AS SIGNED ) ) ) * - col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3447
SELECT ALL - col1 - + - col1 + col0 * + col2 * - ( + + ( CAST ( NULL AS INTEGER ) ) ) * - col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL + - COUNT( * ) * - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL + + 59 FROM tab2 AS cor0 WHERE NOT + col1 * ( + 40 ) >= - col1
----

query I rowsort
SELECT ALL - col2 + - - col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT COUNT( ALL + col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3451
SELECT COUNT ( ALL + col1 ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col2, col1 + + 56 + col0, ( - col1 ) )
----

query I rowsort
SELECT ALL ( - col0 ) * + col1 * - col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT + 30 * + 6 * - + 27 AS col2 FROM tab0
----
-4860
-4860
-4860

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT ALL - col2 DIV 17 * - 9 - - col2 + - 83 FROM tab0
----
-18
-73
61

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - col2 / 17 * - 9 - - col2 + - 83 FROM tab0
----
-18
-73
61

query I rowsort
SELECT DISTINCT + col1 * + - ( + 80 ) * + col0 FROM tab2
----
-187680
-394240
-402000

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <= ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3458
SELECT - COUNT( * ) + - - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3458
SELECT - COUNT ( * ) + - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( + col2 ) <= - col0 * col1
----
97
1
99

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( col2 ) NOT BETWEEN ( NULL ) AND NULL )
----

query I rowsort
SELECT DISTINCT + 93 * + 28 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
2604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col0 FROM tab1 cor0
----
-75
-75
-75

query II rowsort
SELECT + ( - + 90 ) * - + col0 + - - 80, + col2 AS col1 FROM tab0 AS cor0
----
1430
47
7910
10
8810
99

query I rowsort
SELECT + col1 * - 55 + + - ( - col2 ) FROM tab0 AS cor0
----
-1145
-4408
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT + 84 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-3465
SELECT + 84 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT - - SUM( - 51 ) AS col2 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT - - SUM ( - 51 ) AS col2 FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT ALL MAX( + + 52 ) * + COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL MAX ( + + 52 ) * + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3469
SELECT ALL - ( - col1 ) * 36 * + - col2 AS col1, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-10620
NULL
-115056
NULL
-48384
NULL

skipif mysql # not compatible
query II rowsort label-3469
SELECT ALL - ( - col1 ) * 36 * + - col2 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-10620
NULL
-115056
NULL
-48384
NULL

query II rowsort
SELECT + col1 AS col2, + 26 FROM tab0 cor0
----
1
26
21
26
81
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE - col2 + + - col0 * + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE - col2 + + - col0 * + col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL + ( + - 57 ) AS col0 FROM tab0
----
-57
-57
-57

query I rowsort
SELECT col1 + - + col1 * - col0 AS col0 FROM tab1
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - 57 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3474
SELECT - 57 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT - - 3 * + - COUNT( * ) + 57 AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3475
SELECT - - 3 * + - COUNT ( * ) + 57 AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT 69 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3477
SELECT 69 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
66

query I rowsort
SELECT DISTINCT + 13 + 95 AS col1 FROM tab2 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT + 88 + + MAX( DISTINCT - 5 ) AS col2 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3479
SELECT + 88 + + MAX ( DISTINCT - 5 ) AS col2 FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT + COUNT( * ) + + - 12 * - MAX( ALL + - 94 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1125

skipif mysql # not compatible
query I rowsort label-3480
SELECT + COUNT ( * ) + + - 12 * - MAX ( ALL + - 94 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1125

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 17 IS NOT NULL
----

query I rowsort
SELECT - 47 + ( - - 84 ) AS col2 FROM tab2
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT MAX( - ( + 87 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT MAX ( - ( + 87 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + col0 * + - col2 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT SUM( ALL - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3485
SELECT SUM ( ALL - col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT - ( ( ( SUM( + 59 ) ) ) ) AS col1 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT - ( ( ( SUM ( + 59 ) ) ) ) AS col1 FROM tab2
----
-177

query I rowsort
SELECT + ( + 13 ) AS col0 FROM tab0
----
13
13
13

query I rowsort
SELECT + 13 * + ( - - ( + + 40 ) ) AS col0 FROM tab1
----
520
520
520

query I rowsort
SELECT ALL - 40 FROM tab0 AS cor0 WHERE 96 IS NOT NULL
----
-40
-40
-40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - + ( + - col1 ) ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL + MIN( ALL - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL + MIN ( ALL - col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - COUNT( * ) * - SUM( DISTINCT col1 ) + + - 56 FROM tab2 AS cor0
----
529

skipif mysql # not compatible
query I rowsort label-3492
SELECT - COUNT ( * ) * - SUM ( DISTINCT col1 ) + + - 56 FROM tab2 AS cor0
----
529

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT - - MIN( DISTINCT - col2 ) * + - 7 - + ( MIN( DISTINCT col1 ) ) AS col0 FROM tab2 AS cor0
----
355

skipif mysql # not compatible
query I rowsort label-3493
SELECT - - MIN ( DISTINCT - col2 ) * + - 7 - + ( MIN ( DISTINCT col1 ) ) AS col0 FROM tab2 AS cor0
----
355

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3494
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3494
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - CAST ( + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL + + 49 * - + COUNT( * ) AS col1 FROM tab2 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL + + 49 * - + COUNT ( * ) AS col1 FROM tab2 cor0
----
-147

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + 13 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + 70 ) FROM tab1 AS cor0
----
-70
-70
-70

query II rowsort
SELECT + col1 AS col0, - col0 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT col2 DIV + + 39 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3499
SELECT col2 / + + 39 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT + COUNT( col2 ) * COUNT( * ) + SUM( ALL col0 ) FROM tab2
----
194

skipif mysql # not compatible
query I rowsort label-3500
SELECT + COUNT ( col2 ) * COUNT ( * ) + SUM ( ALL col0 ) FROM tab2
----
194

query II rowsort
SELECT col1 AS col2, - 78 AS col2 FROM tab2
----
51
-78
67
-78
77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 86 ) col1 FROM tab1
----
86

query I rowsort
SELECT ALL + 20 * + col2 AS col0 FROM tab0 cor0
----
1980
200
940

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= - col2 * + 87
----

query I rowsort
SELECT + col0 * + + col0 * - 96 + + + 10 * + col1 FROM tab2 cor0
----
-202626
-392446
-539330

query I rowsort
SELECT DISTINCT 13 + - 60 AS col0 FROM tab0 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT DISTINCT 61 + - 4 * - - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3507
SELECT DISTINCT 61 + - 4 * - - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL MAX( ALL + + 40 ) * - - COUNT( * ) FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL MAX ( ALL + + 40 ) * - - COUNT ( * ) FROM tab1
----
120

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT ALL - - 96 + + 16 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
112
10
112
47
112
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT + - col2 DIV - 81 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT + - col2 / - 81 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab2 AS cor0 WHERE - 28 + + col1 + - 98 <> - 52
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> 57 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> 57 * + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT + col1 - - CAST( + 72 AS SIGNED ) col1 FROM tab2 AS cor0
----
123
139
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3514
SELECT + col1 - - CAST ( + 72 AS INTEGER ) col1 FROM tab2 AS cor0
----
123
139
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT + - 78 - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3515
SELECT + - 78 - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT col2 - + 78 AS col1 FROM tab0
----
-31
-68
21

query I rowsort
SELECT + col1 - - - col0 * col1 + - 58 FROM tab0
----
-1192
-154
-1864

query I rowsort
SELECT DISTINCT - col2 - + 47 - 47 * + col0 FROM tab0
----
-4146
-4705
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL - ( + - COUNT( * ) ) * COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3519
SELECT ALL - ( + - COUNT ( * ) ) * COUNT ( * ) col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT DISTINCT - col1 * - col1 * col0 - - + 52 * CAST( + col2 AS SIGNED ) FROM tab0
----
100859
38887
5245

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - col1 * - col1 * col0 - - + 52 * CAST ( + col2 AS INTEGER ) FROM tab0
----
100859
38887
5245

query I rowsort
SELECT col0 - + col2 - + + ( + col0 ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ( 64 ) - + COUNT( * ) * + 58 FROM tab0
----
-110

skipif mysql # not compatible
query I rowsort label-3522
SELECT ( 64 ) - + COUNT ( * ) * + 58 FROM tab0
----
-110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 * - 90 col1 FROM tab1
----
313290
416160
829440

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL - COUNT( + col0 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3524
SELECT ALL - COUNT ( + col0 ) col0 FROM tab0
----
-3

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT - + col1 IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( 15 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3528
SELECT ALL + - col0 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-3528
SELECT ALL + - col0 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 12 * + col2 * - col0 <= + + 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3530
SELECT - 89 DIV 89 AS col1, - col1 AS col0 FROM tab1
----
-1
-14
-1
-47
-1
-5

skipif mysql # not compatible
query II rowsort label-3530
SELECT - 89 / 89 AS col1, - col1 AS col0 FROM tab1
----
-1
-14
-1
-47
-1
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3531
SELECT ALL + - 15 + 58 AS col2, + 85 * - 40 * col2 * 36 AS col2 FROM tab2 WHERE ( NOT + 63 * + 93 IS NULL ) OR NULL < + col0 + CAST( - 24 AS SIGNED )
----
43
-2815200
43
-4896000
43
-7099200

skipif mysql # not compatible
query II rowsort label-3531
SELECT ALL + - 15 + 58 AS col2, + 85 * - 40 * col2 * 36 AS col2 FROM tab2 WHERE ( NOT + 63 * + 93 IS NULL ) OR NULL < + col0 + CAST ( - 24 AS INTEGER )
----
43
-2815200
43
-4896000
43
-7099200

query I rowsort
SELECT - + 97 * + col1 AS col2 FROM tab2 AS cor0
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT DISTINCT MIN( - - ( + - 87 ) ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT MIN ( - - ( + - 87 ) ) FROM tab0 AS cor0
----
-87

query II rowsort
SELECT + - 27 * + 3 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-81
23
-81
40
-81
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 * - col0 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3535
SELECT CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 * - col0 IS NULL
----
51
85
91

query I rowsort
SELECT - - col2 * - - ( col1 ) * + 48 FROM tab0 cor0
----
10080
182736
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT + COUNT( * ) * - 49 AS col0 FROM tab1 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-3537
SELECT + COUNT ( * ) * - 49 AS col0 FROM tab1 cor0
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT + 29 * col1 + - col0 - - 87 DIV - col2 AS col0 FROM tab1 AS cor0
----
1271
355
59

skipif mysql # not compatible
query I rowsort label-3538
SELECT + 29 * col1 + - col0 - - 87 / - col2 AS col0 FROM tab1 AS cor0
----
1271
355
59

query I rowsort
SELECT ALL 76 * 8 FROM tab0
----
608
608
608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 61 * + col1 col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT CAST( NULL AS SIGNED ) + col2 * - col2 * + 38 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT CAST ( NULL AS INTEGER ) + col2 * - col2 * + 38 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT MAX( - col0 ) * + + 37 FROM tab2
----
-1702

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT MAX ( - col0 ) * + + 37 FROM tab2
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT + 30 + + COUNT( * ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3543
SELECT + 30 + + COUNT ( * ) FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - MAX( ALL - 21 ) AS col2 FROM tab1 WHERE 68 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-3544
SELECT - MAX ( ALL - 21 ) AS col2 FROM tab1 WHERE 68 IS NOT NULL
----
21

query I rowsort
SELECT + - 53 FROM tab2 AS cor0 WHERE col1 <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3546
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 14 AS col0, col0 DIV - - col1 FROM tab2 AS cor0
----
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-3546
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 14 AS col0, col0 / - - col1 FROM tab2 AS cor0
----
NULL
0
NULL
1

query I rowsort
SELECT ALL col0 + - 65 FROM tab2 AS cor0
----
-1
-19
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT - + col2 * + + col2 + col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
-3480
-4623
-9216

skipif mysql # not compatible
query I rowsort label-3548
SELECT - + col2 * + + col2 + col0 / + col2 AS col0 FROM tab1 AS cor0
----
-3480
-4623
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT col1 + + - ( + col0 ) DIV col1 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-3549
SELECT col1 + + - ( + col0 ) / col1 FROM tab2 AS cor0
----
51
66
77

query I rowsort
SELECT DISTINCT + + col2 * + 90 + + col1 FROM tab2 cor0
----
2121
3677
5287

query I rowsort
SELECT ALL col0 - + - 98 FROM tab1
----
149
183
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT ALL + CAST( NULL AS SIGNED ) * - ( + - CAST( + 1 AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( + - CAST ( + 1 AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 10 * col0 * col1 FROM tab0
----
12150
18270
970

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT DISTINCT + col2 DIV - + col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT + col2 / - + col0 FROM tab0
----
-1
-3
0

query I rowsort
SELECT col2 * + - 40 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT 59 * + + col1 AS col1 FROM tab1
----
2773
295
826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col1 FROM tab2 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 / + 84
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3559
SELECT DISTINCT MIN( - - 30 ) AS col0, - 19 AS col0 FROM tab2 AS cor0
----
30
-19

skipif mysql # not compatible
query II rowsort label-3559
SELECT DISTINCT MIN ( - - 30 ) AS col0, - 19 AS col0 FROM tab2 AS cor0
----
30
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3560
SELECT DISTINCT 21 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * col1 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT 21 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * col1 IS NOT NULL
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3561
SELECT - ( + + MIN( ALL 55 ) ) AS col2, - 18 + - 81 FROM tab1 AS cor0
----
-55
-99

skipif mysql # not compatible
query II rowsort label-3561
SELECT - ( + + MIN ( ALL 55 ) ) AS col2, - 18 + - 81 FROM tab1 AS cor0
----
-55
-99

query II rowsort
SELECT DISTINCT - 48 AS col0, - 28 - - col1 * + - col0 FROM tab1
----
-48
-4305
-48
-453
-48
-742

query II rowsort
SELECT ALL - + col2, - col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE CAST( col0 AS SIGNED ) BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE CAST ( col0 AS INTEGER ) BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3565
SELECT ALL 17 + + + ( + CAST( NULL AS SIGNED ) ) AS col0, 70 FROM tab0 cor0
----
NULL
70
NULL
70
NULL
70

skipif mysql # not compatible
query II rowsort label-3565
SELECT ALL 17 + + + ( + CAST ( NULL AS INTEGER ) ) AS col0, 70 FROM tab0 cor0
----
NULL
70
NULL
70
NULL
70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NULL <= - col2 * + col2
----

query I rowsort
SELECT 35 * col1 FROM tab2
----
1785
2345
2695

query I rowsort
SELECT - 71 * - col2 FROM tab2
----
1633
2840
4118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 70 ) col2, - col1 * 76 AS col0 FROM tab0
----
70
-1596
70
-6156
70
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT 58 + COUNT( * ) FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT 58 + COUNT ( * ) FROM tab1 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + + MIN( ALL - col0 ) + - - 23 AS col1 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3572
SELECT + + MIN ( ALL - col0 ) + - - 23 AS col1 FROM tab0 AS cor0
----
-74

query II rowsort
SELECT DISTINCT + + col1 - - 54 AS col2, + col1 * + 36 + + + 85 * - + col2 AS col1 FROM tab2 AS cor0
----
105
-119
121
-2518
131
-628

query I rowsort
SELECT - col2 + - 97 AS col0 FROM tab0 AS cor0
----
-107
-144
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT 59 - - MIN( col2 ) * COUNT( * ) FROM tab1
----
236

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT 59 - - MIN ( col2 ) * COUNT ( * ) FROM tab1
----
236

query I rowsort
SELECT col1 + - col2 * - 79 FROM tab1
----
4666
5419
7598

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 / 39 + - col1 * col2 * + ( - col0 ) ) >= col2
----

query I rowsort
SELECT ALL - - ( + - 31 ) AS col1 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT + 4 DIV 19 * 32 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT + 4 / 19 * 32 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 13 - + + 53 + - ( + col1 ) FROM tab0 AS cor0
----
-147
-67
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3581
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + + COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + + COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * ( - col0 ) col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT ALL + 6 * - + 61 AS col0, col2 AS col2 FROM tab2
----
-366
23
-366
40
-366
58

query I rowsort
SELECT ALL - ( + 29 ) FROM tab1
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT DISTINCT col1 DIV - 93 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT col1 / - 93 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT - 76 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT - 76 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3588
SELECT + CAST( NULL AS SIGNED ) col0, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3588
SELECT + CAST ( NULL AS INTEGER ) col0, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT DISTINCT - 79 AS col1, 65 * + col2 * - col1 AS col1, + col1 AS col2 FROM tab2
----
9 values hashing to 1675fea19830b89b98b967d2d771750b

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + COUNT( * ) * - - 6 AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-3590
SELECT + COUNT ( * ) * - - 6 AS col1 FROM tab2
----
18

query I rowsort
SELECT ALL - col1 * col0 + - - col0 AS col1 FROM tab2 WHERE - col1 < - 44
----
-2300
-4864
-4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT - COUNT( ALL + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3592
SELECT - COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 64
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 BETWEEN - col0 * + - col1 - + col1 AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3595
SELECT ALL COUNT( DISTINCT + - col2 ), - 66 AS col1 FROM tab2
----
3
-66

skipif mysql # not compatible
query II rowsort label-3595
SELECT ALL COUNT ( DISTINCT + - col2 ), - 66 AS col1 FROM tab2
----
3
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 94 + - 56 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + + col2 + + col1 FROM tab1 AS cor0
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT - 74 * - MAX( DISTINCT 62 ) AS col0 FROM tab0 AS cor0
----
4588

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT - 74 * - MAX ( DISTINCT 62 ) AS col0 FROM tab0 AS cor0
----
4588

query I rowsort
SELECT - + 0 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 * - 12 IS NOT NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE 95 IS NULL
----

query I rowsort
SELECT ALL 37 * + col2 AS col0 FROM tab0
----
1739
3663
370

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( col0 ) ) col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL - col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT + col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + 35 * - COUNT( * ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-3609
SELECT + 35 * - COUNT ( * ) FROM tab0 AS cor0
----
-105

query II rowsort
SELECT DISTINCT - - col2, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT - 68 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT DISTINCT col0 - + + 30 FROM tab2
----
16
34
45

query I rowsort
SELECT + 18 * - 21 + - col1 AS col0 FROM tab1
----
-383
-392
-425

onlyif mysql # aggregate syntax: 
query II rowsort label-3614
SELECT DISTINCT - MIN( ALL + - col0 ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-3614
SELECT DISTINCT - MIN ( ALL + - col0 ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
97
3

query I rowsort
SELECT ALL + + col1 * - + col2 + col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT ALL 20 FROM tab0 WHERE + col2 IS NOT NULL
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT + 92 * - COUNT( ALL col2 ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-3617
SELECT + 92 * - COUNT ( ALL col2 ) FROM tab1
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL - 51 * 54 * - COUNT( * ) FROM tab1 AS cor0
----
8262

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - 51 * 54 * - COUNT ( * ) FROM tab1 AS cor0
----
8262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3619
SELECT ALL MIN( ALL - + col0 ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL MIN ( ALL - + col0 ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT - CAST( + ( + col2 ) AS SIGNED ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3620
SELECT - CAST ( + ( + col2 ) AS INTEGER ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT + 59 + - col2 + - col1 FROM tab1
----
-5
-51
-56

query I rowsort
SELECT ALL + col1 + + - 37 FROM tab0 AS cor0 WHERE - col2 = NULL
----

query I rowsort
SELECT ALL col0 + 58 + - - ( col2 ) AS col2 FROM tab1 cor0
----
202
205
217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 59, col1 col2 FROM tab1 AS cor0
----
59
14
59
47
59
5

query I rowsort
SELECT ALL + col1 + + ( - + ( - 79 ) ) AS col1 FROM tab1 AS cor0
----
126
84
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3626
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col0 * col1 + 19 AS col2, + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3626
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col0 * col1 + 19 AS col2, + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3627
SELECT 91 AS col1, + COUNT( * ) FROM tab1 cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-3627
SELECT 91 AS col1, + COUNT ( * ) FROM tab1 cor0
----
91
3

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 25 FROM tab0
----
2175
2425
375

query I rowsort
SELECT ALL col1 + - + ( + - 34 ) FROM tab1
----
39
48
81

query I rowsort
SELECT - col1 + 2 AS col1 FROM tab2 AS cor0
----
-49
-65
-75

query I rowsort
SELECT DISTINCT 85 + col2 FROM tab2 AS cor0
----
108
125
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * col1 * - col0 + + col0 + + + col0 col1 FROM tab0 AS cor0
----
-12120
-18096
-776

query III rowsort
SELECT * FROM tab2 WHERE NOT - 72 * - 6 <> + - col0
----

query I rowsort
SELECT 74 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT - col1 DIV 81 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT - col1 / 81 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3637
SELECT - + 88 DIV COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3637
SELECT - + 88 / COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-87

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col2 AS col0, ( - - col0 ) AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL <> - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT - ( + 86 ) * col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
-115
-123
-45

skipif mysql # not compatible
query I rowsort label-3641
SELECT - ( + 86 ) * col0 / + col2 AS col2 FROM tab1 AS cor0
----
-115
-123
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3642
SELECT + - 19 DIV col1 + 80 + + CAST( col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
131
147
157

skipif mysql # not compatible
query I rowsort label-3642
SELECT + - 19 / col1 + 80 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
131
147
157

query I rowsort
SELECT 27 * - - col1 AS col0 FROM tab1 AS cor0
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL - COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col0 - + col1 + - + col0 col2 FROM tab1 WHERE NOT - 60 + - - col0 + - col2 = + col2
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT + COUNT( * ) + - 17 FROM tab1 WHERE NOT col2 * + 56 * - CAST( NULL AS SIGNED ) * 47 + + + 54 - + col1 < + col1
----
-17

skipif mysql # not compatible
query I rowsort label-3646
SELECT + COUNT ( * ) + - 17 FROM tab1 WHERE NOT col2 * + 56 * - CAST ( NULL AS INTEGER ) * 47 + + + 54 - + col1 < + col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT DISTINCT + 78 * + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
1092
3666
390

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT + 78 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
1092
3666
390

query I rowsort
SELECT + 19 + + 54 AS col0 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT DISTINCT - - 14 + + MAX( DISTINCT + - 13 ) AS col1, COUNT( * ) FROM tab1 AS cor0 WHERE col0 = NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3649
SELECT DISTINCT - - 14 + + MAX ( DISTINCT + - 13 ) AS col1, COUNT ( * ) FROM tab1 AS cor0 WHERE col0 = NULL
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT DISTINCT MIN( + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3650
SELECT DISTINCT MIN ( + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT 84 + + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT 84 + + col1 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT ALL COUNT( * ) + - + CAST( + 6 AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL COUNT ( * ) + - + CAST ( + 6 AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 * + col0 * + + col0 + + + col1 FROM tab0 AS cor0
----
3456
658524
912674

query I rowsort
SELECT - + col0 + + 21 FROM tab2 AS cor0
----
-25
-43
-54

query I rowsort
SELECT ALL 21 + + col0 AS col0 FROM tab0 AS cor0
----
108
118
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT - + MAX( + - 91 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT - + MAX ( + - 91 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + - 21 + + 98 AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT 46 * + + 18 + - col2 * - col1 FROM tab1 AS cor0
----
1123
2172
4024

query I rowsort
SELECT ALL - 10 + 7 - + col2 + - + col1 AS col2 FROM tab1
----
-113
-118
-67

query I rowsort
SELECT ALL 63 * 23 AS col1 FROM tab0
----
1449
1449
1449

query I rowsort
SELECT ALL 90 * + col2 * col2 AS col2 FROM tab2
----
144000
302760
47610

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3662
SELECT * FROM tab0 WHERE + col2 * - CAST( NULL AS SIGNED ) + + ( + col1 ) = col2
----

skipif mysql # not compatible
query III rowsort label-3662
SELECT * FROM tab0 WHERE + col2 * - CAST ( NULL AS INTEGER ) + + ( + col1 ) = col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT DISTINCT 75 DIV - - 31 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT 75 / - - 31 FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT col1 * - CAST( + - col1 AS SIGNED ) FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-3664
SELECT col1 * - CAST ( + - col1 AS INTEGER ) FROM tab0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT 86 DIV ( + 45 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3665
SELECT 86 / ( + 45 ) AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - col0
----

query II rowsort
SELECT col0 AS col0, - col2 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3668
SELECT - 76 * COUNT( * ) * COUNT( * ) DIV - 25 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3668
SELECT - 76 * COUNT ( * ) * COUNT ( * ) / - 25 FROM tab1
----
27

query I rowsort
SELECT - ( + + 69 ) AS col1 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL SUM( ALL - + 31 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-279

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL SUM ( ALL - + 31 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3671
SELECT col2 * + + CAST( NULL AS SIGNED ) AS col1, col1 + + col0 + - - col1 AS col2 FROM tab0
----
NULL
129
NULL
177
NULL
99

skipif mysql # not compatible
query II rowsort label-3671
SELECT col2 * + + CAST ( NULL AS INTEGER ) AS col1, col1 + + col0 + - - col1 AS col2 FROM tab0
----
NULL
129
NULL
177
NULL
99

query II rowsort
SELECT - ( + col0 ) AS col2, 19 + + + col2 FROM tab2 AS cor0
----
-46
42
-64
59
-75
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL - + MAX( - + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL - + MAX ( - + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT + - 62 DIV 93 + - 70 col0 FROM tab0 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3675
SELECT + - 62 / 93 + - 70 col0 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT SUM( ALL - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3677
SELECT SUM ( ALL - - col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-3678
SELECT COUNT( * ) AS col1, ( + COUNT( * ) ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3678
SELECT COUNT ( * ) AS col1, ( + COUNT ( * ) ) FROM tab1
----
3
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3680
SELECT DISTINCT ( - - col0 ) + + 20 DIV + col2 * - col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT ( - - col0 ) + + 20 / + col2 * - col2 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col1 + - 1 * - 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT + col2 DIV col1 * + - col0 * - col1 FROM tab0 WHERE NOT col2 - - col0 + 37 IS NULL
----
0
0
9603

skipif mysql # not compatible
query I rowsort label-3682
SELECT + col2 / col1 * + - col0 * - col1 FROM tab0 WHERE NOT col2 - - col0 + 37 IS NULL
----
0
0
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-3683
SELECT ALL - - COUNT( * ) AS col0, - COUNT( * ) + - 37 FROM tab0 AS cor0
----
3
-40

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL - - COUNT ( * ) AS col0, - COUNT ( * ) + - 37 FROM tab0 AS cor0
----
3
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3684
SELECT + col1 DIV ( + col0 * CAST( 79 AS SIGNED ) ) + - col2 AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3684
SELECT + col1 / ( + col0 * CAST ( 79 AS INTEGER ) ) + - col2 AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL COUNT( * ) + 88 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL COUNT ( * ) + 88 FROM tab2
----
91

query I rowsort
SELECT col1 * - 16 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT 4 * 35 AS col0 FROM tab0
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT 42 * COUNT( * ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-3688
SELECT 42 * COUNT ( * ) FROM tab1
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT ALL + col2 DIV + ( - col0 ) + col2 * ( + col2 ) FROM tab1
----
3481
4624
9215

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL + col2 / + ( - col0 ) + col2 * ( + col2 ) FROM tab1
----
3481
4624
9215

query I rowsort
SELECT col0 FROM tab0 WHERE ( col2 * + col2 ) < NULL
----

query I rowsort
SELECT ( + 96 ) * + col0 FROM tab0
----
1440
8352
9312

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL > - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 64 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3694
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * + col0 BETWEEN col0 - - col1 AND 79
----

skipif mysql # not compatible
query III rowsort label-3694
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 BETWEEN col0 - - col1 AND 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT + COUNT( * ) * - 42 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT + COUNT ( * ) * - 42 FROM tab1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT MIN( DISTINCT 32 ) AS col0 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-3696
SELECT MIN ( DISTINCT 32 ) AS col0 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT ALL 30 * COUNT( ALL col0 ) AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL 30 * COUNT ( ALL col0 ) AS col0 FROM tab2
----
90

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col1 / - 3 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT ALL CAST( NULL AS SIGNED ) / col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3699
SELECT ALL CAST ( NULL AS INTEGER ) / col1 col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN ( - col2 ) AND 86 + + col2
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 * 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT MIN( DISTINCT + col1 ) + 74 AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3702
SELECT MIN ( DISTINCT + col1 ) + 74 AS col0 FROM tab0
----
75

query I rowsort
SELECT ALL - 35 * - 40 FROM tab2
----
1400
1400
1400

query I rowsort
SELECT 52 FROM tab1 WHERE 53 - col2 <= col1
----
52
52
52

query I rowsort
SELECT - ( ( + col2 ) ) + - 55 * 98 AS col1 FROM tab2
----
-5413
-5430
-5448

query I rowsort
SELECT ALL 22 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT + 83 DIV + col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3707
SELECT + 83 / + col0 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE ( - col1 ) NOT BETWEEN col1 AND NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3709
SELECT MAX( + 27 ) DIV - 81 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT MAX ( + 27 ) / - 81 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 76 - + 15 AS col0 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3711
SELECT DISTINCT + col0 DIV - CAST( - col2 * col2 AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT + col0 / - CAST ( - col2 * col2 AS INTEGER ) AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT col1 DIV 90 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT col1 / 90 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - 2 NOT IN ( - col1 / + ( col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT col1 DIV - col2 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3714
SELECT col1 / - col2 + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + 55 / col1 AS col0 FROM tab1 WHERE + 77 IS NULL
----

query I rowsort
SELECT ALL - col2 + 75 FROM tab1
----
-21
16
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( 39 ) + + 41 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3718
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + ( ( COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3719
SELECT + ( ( COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 59 * + ( + col0 ) FROM tab0 AS cor0
----
-5133
-5723
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL MIN( col0 ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3721
SELECT ALL MIN ( col0 ) col1 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + 25 * MIN( col2 * - 10 ) AS col2 FROM tab1 AS cor0
----
-24000

skipif mysql # not compatible
query I rowsort label-3722
SELECT + 25 * MIN ( col2 * - 10 ) AS col2 FROM tab1 AS cor0
----
-24000

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col1 ) AND + ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + 91 ) / col1 ) NOT IN ( col1 + 4 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3725
SELECT ALL - 39 DIV - COUNT( * ) AS col2 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL - 39 / - COUNT ( * ) AS col2 FROM tab1
----
13

query I rowsort
SELECT + 45 FROM tab1 WHERE NOT - col0 IN ( col2 )
----
45
45
45

query I rowsort
SELECT DISTINCT 3 - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) BETWEEN ( col2 ) AND + col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT + SUM( DISTINCT col2 ) col0 FROM tab1 cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3728
SELECT DISTINCT + SUM ( DISTINCT col2 ) col0 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT - + SUM( + 82 ) FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-3729
SELECT - + SUM ( + 82 ) FROM tab2 AS cor0
----
-246

query I rowsort
SELECT ALL + col1 * - 31 FROM tab0 AS cor0
----
-2511
-31
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT + MAX( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3731
SELECT + MAX ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT + 90 DIV + col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3732
SELECT + 90 / + col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT - 95 DIV ( 62 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3733
SELECT - 95 / ( 62 ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT SUM( DISTINCT + 65 ) * 36 FROM tab2 AS cor0
----
2340

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT SUM ( DISTINCT + 65 ) * 36 FROM tab2 AS cor0
----
2340

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * 71 + 18 IS NOT NULL
----

query I rowsort
SELECT - 99 * col1 AS col0 FROM tab0 cor0
----
-2079
-8019
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT MIN( + col0 ) * + 66 FROM tab1
----
3366

skipif mysql # not compatible
query I rowsort label-3737
SELECT MIN ( + col0 ) * + 66 FROM tab1
----
3366

query III rowsort
SELECT * FROM tab2 WHERE NOT 96 + col1 NOT IN ( + ( col1 ) - col2 )
----

query I rowsort
SELECT col2 * + col1 AS col1 FROM tab2 WHERE NOT col0 + col0 NOT IN ( col0 * + 96 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3740
SELECT ALL COUNT( * ) DIV - 47 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL COUNT ( * ) / - 47 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3741
SELECT - col1 / + col1 AS col1 FROM tab1 WHERE NOT CAST( - col2 AS SIGNED ) - + 78 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3741
SELECT - col1 / + col1 AS col1 FROM tab1 WHERE NOT CAST ( - col2 AS INTEGER ) - + 78 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * - 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE + col1 + + 62 * col2 = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 + - 62 col2 FROM tab1 cor0 WHERE col1 NOT BETWEEN - col0 * 84 AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 + col2 col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT 7 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT col2 NOT IN ( col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + 47 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 + + + ( 11 ) * col1 col1 FROM tab1
----
152
251
614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT col0 + CAST( NULL AS SIGNED ) * + 3 + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT col0 + CAST ( NULL AS INTEGER ) * + 3 + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col2 col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE ( col1 * + col2 ) NOT IN ( + col0 - - 49 )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT 80 * ( - - CAST( - ( col0 ) AS SIGNED ) ) * col2 + - col2 AS col1 FROM tab2 AS cor0
----
-204840
-348058
-84663

skipif mysql # not compatible
query I rowsort label-3753
SELECT 80 * ( - - CAST ( - ( col0 ) AS INTEGER ) ) * col2 + - col2 AS col1 FROM tab2 AS cor0
----
-204840
-348058
-84663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3754
SELECT + 9 DIV + - COUNT( * ) + 24 - 7 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3754
SELECT + 9 / + - COUNT ( * ) + 24 - 7 FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT + CAST( NULL AS SIGNED ) * - - col1 / - 35 + - col0 + - CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT + CAST ( NULL AS INTEGER ) * - - col1 / - 35 + - col0 + - CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + ( col0 ) + - col0 * col0 * ( col2 ) col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT ALL + - COUNT( * ) + 64 DIV - ( + 41 ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + - COUNT ( * ) + 64 / - ( + 41 ) FROM tab0 AS cor0
----
-4

query I rowsort
SELECT ALL + col0 * + 2 - - col1 FROM tab2
----
143
205
217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 - - 30 col2 FROM tab2
----
52

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 39 = ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT COUNT( 64 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT COUNT ( 64 ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT + 2 DIV col1 * + 56 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT + 2 / col1 * + 56 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - MAX( 9 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3763
SELECT - MAX ( 9 ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 79 <= ( - 85 * - 53 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( ( + 47 ) <> ( - 6 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT DISTINCT + 23, - ( + 98 ) + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
23
-89

skipif mysql # not compatible
query II rowsort label-3766
SELECT DISTINCT + 23, - ( + 98 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
23
-89

query I rowsort
SELECT DISTINCT 48 / - 23 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + - col2 * 57 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - ( col1 ) ) IS NULL AND NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - 53 FROM tab2 cor0 WHERE NOT - ( - + 29 ) NOT IN ( + + 48 )
----

query I rowsort
SELECT DISTINCT col2 - + 12 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( ( + + col1 ) ) AND NULL
----

query I rowsort
SELECT DISTINCT + 28 * - 72 - - col2 FROM tab0 AS cor0
----
-1917
-1969
-2006

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT 72 DIV + col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3773
SELECT 72 / + col1 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT 74 * + col0 col2 FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) / + ( - col2 ) ) BETWEEN + 23 AND col2 + + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3774
SELECT 74 * + col0 col2 FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) / + ( - col2 ) ) BETWEEN + 23 AND col2 + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT ALL 15 AS col0, + COUNT( - 56 ) FROM tab1
----
15
3

skipif mysql # not compatible
query II rowsort label-3775
SELECT ALL 15 AS col0, + COUNT ( - 56 ) FROM tab1
----
15
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT ALL + ( + + CAST( 49 AS SIGNED ) ) AS col0 FROM tab1
----
49
49
49

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + ( + + CAST ( 49 AS INTEGER ) ) AS col0 FROM tab1
----
49
49
49

query I rowsort
SELECT DISTINCT + ( - 50 ) FROM tab0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT DISTINCT ( col0 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT 44 * col1 + - col1 + + 41 DIV - 62 FROM tab0 cor0
----
3483
43
903

skipif mysql # not compatible
query I rowsort label-3779
SELECT 44 * col1 + - col1 + + 41 / - 62 FROM tab0 cor0
----
3483
43
903

query I rowsort
SELECT DISTINCT - - 19 * - 21 * 94 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-37506

query I rowsort
SELECT DISTINCT + 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT ALL + 54 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( - + 26 )
----

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL + 54 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( - + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3783
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 > NULL
----
0

query I rowsort
SELECT 60 AS col0 FROM tab2 AS cor0 WHERE ( NOT + col0 * + + col1 IN ( 20 ) )
----
60
60
60

query III rowsort
SELECT DISTINCT + - 37 + + - 66 AS col0, + col2 AS col0, - - 9 * + col1 * + 20 AS col1 FROM tab1 AS cor0
----
9 values hashing to 98cc429532c27540ab743bdf4e1adc53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 * 57 + - 79 - col1 col2 FROM tab0 AS cor0
----
2006
2066
2086

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT 38 + + col1 + + ( + ( - ( col1 ) ) ) = ( col1 ) ) )
----
1
21
81

query II rowsort
SELECT ALL + col2 + col1 AS col0, - ( + 98 ) AS col0 FROM tab2 AS cor0
----
117
-98
125
-98
74
-98

query I rowsort
SELECT - 65 - - col1 * - col1 FROM tab2 AS cor0
----
-2666
-4554
-5994

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + 13 * col1 ) > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + ( ( + - col0 ) ) - - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3792
SELECT DISTINCT col0 AS col1, - ( + col1 ) DIV + 2 AS col0 FROM tab2
----
46
-25
64
-38
75
-33

skipif mysql # not compatible
query II rowsort label-3792
SELECT DISTINCT col0 AS col1, - ( + col1 ) / + 2 AS col0 FROM tab2
----
46
-25
64
-38
75
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT ALL - 44 DIV + 78 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - 44 / + 78 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 49, - 89 col1 FROM tab1 AS cor0
----
-49
-89
-49
-89
-49
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3795
SELECT - 50 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( 8 AS SIGNED ) IS NULL
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

skipif mysql # not compatible
query I rowsort label-3795
SELECT - 50 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( 8 AS INTEGER ) IS NULL
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT DISTINCT 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
22

query I rowsort
SELECT ALL 52 * + 67 * - + col2 AS col2 FROM tab2
----
-139360
-202072
-80132

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 20 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT ( + COUNT( * ) ) * COUNT( * ) + - + ( - 71 ) AS col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT ( + COUNT ( * ) ) * COUNT ( * ) + - + ( - 71 ) AS col0 FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL + col1 * + 8 FROM tab0 AS cor0
----
168
648
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT ALL - CAST( - + col0 AS SIGNED ) * + + ( col2 ) + + - 41 AS col0 FROM tab0 AS cor0
----
664
829
9562

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL - CAST ( - + col0 AS INTEGER ) * + + ( col2 ) + + - 41 AS col0 FROM tab0 AS cor0
----
664
829
9562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3802
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3803
SELECT DISTINCT col1 + - + CAST( NULL AS DECIMAL ) * + col1 * + - 70 * + + 82 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT col1 + - + CAST ( NULL AS REAL ) * + col1 * + - 70 * + + 82 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - - 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + - col2 + col2 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT + ( - - 74 ) + + col1 <= NULL AND NOT NULL BETWEEN col0 / - 84 / col0 AND ( - 19 ) * + 33 + + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 - - col2 BETWEEN + ( 81 ) AND - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3808
SELECT - 24 + + 94 * ( + COUNT( - 68 ) ) DIV - + 19 AS col0 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-3808
SELECT - 24 + + 94 * ( + COUNT ( - 68 ) ) / - + 19 AS col0 FROM tab0
----
-38

query I rowsort
SELECT col2 + + + 80 FROM tab2
----
103
120
138

query II rowsort
SELECT - 77 AS col1, + col0 AS col1 FROM tab0 AS cor0
----
-77
15
-77
87
-77
97

query II rowsort
SELECT + 55 AS col0, 79 AS col2 FROM tab2 AS cor0
----
55
79
55
79
55
79

query II rowsort
SELECT col1, 34 FROM tab1 AS cor0
----
14
34
47
34
5
34

query I rowsort
SELECT ALL 30 + + col1 AS col0 FROM tab0 cor0
----
111
31
51

query I rowsort
SELECT DISTINCT + 41 * + col1 + 89 AS col1 FROM tab0 AS cor0
----
130
3410
950

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL + + ( + MAX( ALL - + col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL + + ( + MAX ( ALL - + col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3818
SELECT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT - + 56 + + - COUNT( * ) * ( COUNT( * ) ) + - 17 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3819
SELECT - + 56 + + - COUNT ( * ) * ( COUNT ( * ) ) + - 17 FROM tab0 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3820
SELECT col0, CAST( col1 AS SIGNED ) * col2 + - col0 col1 FROM tab2 AS cor0
----
46
1127
64
3016
75
3811

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3820
SELECT col0, CAST ( col1 AS INTEGER ) * col2 + - col0 col1 FROM tab2 AS cor0
----
46
1127
64
3016
75
3811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3821
SELECT - + 69 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * + 48 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3821
SELECT - + 69 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * + 48 * + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3822
SELECT - + 75 / + col0, col0 col2 FROM tab0 AS cor0 WHERE NOT - col0 IN ( - 9 * col1 * 62 * - 69, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3822
SELECT - + 75 / + col0, col0 col2 FROM tab0 AS cor0 WHERE NOT - col0 IN ( - 9 * col1 * 62 * - 69, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - MIN( 44 ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3823
SELECT - MIN ( 44 ) FROM tab2 AS cor0
----
-44

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE + + col1 <= NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT + COUNT( + col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3826
SELECT DISTINCT + COUNT ( + col2 ) col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL SUM( - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL SUM ( - col2 ) FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col1 col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE ( NOT ( NULL ) = + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 95 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 24 * + + col2 + + + col0 AS col0 FROM tab1 cor0
----
1501
1723
2355

query I rowsort
SELECT col2 + + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT - col2 DIV - - col0 FROM tab2 AS cor0 WHERE col1 + 6 NOT IN ( - col1, 20 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT - col2 / - - col0 FROM tab2 AS cor0 WHERE col1 + 6 NOT IN ( - col1, 20 )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = col0 / + ( 48 ) - ( - 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - + COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3836
SELECT - + COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + col2 * - + 27 + + 16 - + col1 AS col0, col0 FROM tab0 AS cor0
----
-1334
15
-2658
97
-275
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT DISTINCT + col2 + - + CAST( + + 71 AS SIGNED ) + col1 * col2 + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
1171
3113
3948

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + col2 + - + CAST ( + + 71 AS INTEGER ) + col1 * col2 + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
1171
3113
3948

query III rowsort
SELECT ALL * FROM tab0 WHERE 5 IS NOT NULL OR NULL BETWEEN - col1 AND + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 75 FROM tab0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col2 FROM tab0
----
24
24
24

query I rowsort
SELECT + ( + 11 ) * col2 - + - col1 AS col1 FROM tab0
----
1090
131
598

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT 62 * + COUNT( * ) AS col1 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT 62 * + COUNT ( * ) AS col1 FROM tab2
----
186

query II rowsort
SELECT ALL 80 * - col1 AS col2, col1 + + 37 AS col0 FROM tab2
----
-4080
88
-5360
104
-6160
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 * col1 FROM tab2 AS cor0 WHERE NOT + col0 + - - 6 * 21 >= col1 AND NOT - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 * col1 FROM tab2 AS cor0 WHERE NOT + col0 + - - 6 * 21 >= col1 AND NOT - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3846
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + 40 + + 17 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - CAST ( NULL AS REAL ) + 40 + + 17 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 57 * + - 51 + col2 AS col2 FROM tab1 cor0
----
-2811
-2839
-2848

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT ( - col0 ) DIV 20 + - + 10 FROM tab0 AS cor0
----
-10
-14
-14

skipif mysql # not compatible
query I rowsort label-3848
SELECT ( - col0 ) / 20 + - + 10 FROM tab0 AS cor0
----
-10
-14
-14

query I rowsort
SELECT col1 + - 6 + 18 * - col1 AS col0 FROM tab0
----
-1383
-23
-363

query I rowsort
SELECT - ( - 55 ) FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - 94, col0, + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3851
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL col1, + 14 AS col0 FROM tab2
----
51
14
67
14
77
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3853
SELECT * FROM tab0 WHERE NOT - col2 * - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3853
SELECT * FROM tab0 WHERE NOT - col2 * - CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * col1 NOT BETWEEN + col1 AND - + 1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 60
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 64 AS col1, - 59 col2 FROM tab2 cor0
----
64
-59
64
-59
64
-59

query I rowsort
SELECT + col2 / col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3859
SELECT DISTINCT - COUNT( * ) AS col0, + 39 FROM tab2 AS cor0
----
-3
39

skipif mysql # not compatible
query II rowsort label-3859
SELECT DISTINCT - COUNT ( * ) AS col0, + 39 FROM tab2 AS cor0
----
-3
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - 35 AS col2 FROM tab2 WHERE NOT NULL < NULL OR NOT + col1 > - 95
----

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - 35 AS col2 FROM tab2 WHERE NOT NULL < NULL OR NOT + col1 > - 95
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + col1 + - + col2 AS col0 FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT - - 21 + - - col0 AS col1 FROM tab1 AS cor0
----
106
112
72

query I rowsort
SELECT DISTINCT - col0 + - 96 FROM tab1 AS cor0
----
-147
-181
-187

query I rowsort
SELECT DISTINCT + - col0 * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT 28 + - - col0 FROM tab2
----
103
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT 76 * + 63 * - COUNT( * ) AS col1 FROM tab0
----
-14364

skipif mysql # not compatible
query I rowsort label-3867
SELECT 76 * + 63 * - COUNT ( * ) AS col1 FROM tab0
----
-14364

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT + 43 DIV col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3868
SELECT + 43 / col2 FROM tab2
----
0
1
1

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - + 96 + - - col1 IN ( - - col2, 62 * + + 65, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - SUM( ALL - - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3870
SELECT - SUM ( ALL - - col1 ) AS col2 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + - 2 + + + col0 FROM tab2 AS cor0
----
44
62
73

query I rowsort
SELECT DISTINCT - + 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + COUNT( * ) * 97 AS col1 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-3873
SELECT + COUNT ( * ) * 97 AS col1 FROM tab0
----
291

onlyif mysql # DIV for integer division: 
query II rowsort label-3874
SELECT - 50 DIV - + col0, col2 FROM tab2
----
0
40
0
58
1
23

skipif mysql # not compatible
query II rowsort label-3874
SELECT - 50 / - + col0, col2 FROM tab2
----
0
40
0
58
1
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 54 * + ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL COUNT( ALL col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL COUNT ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 14 - + 10 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - col1 + + col1 - col2 + + ( - - col2 ) * - 20 IN ( - + col0 / + col2, col1, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT - ( - SUM( DISTINCT - 84 ) ) col0 FROM tab0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3879
SELECT DISTINCT - ( - SUM ( DISTINCT - 84 ) ) col0 FROM tab0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92 col1, 91 FROM tab0
----
92
91
92
91
92
91

query I rowsort
SELECT ALL col1 * - ( - 51 ) * + - col1 FROM tab0
----
-22491
-334611
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3882
SELECT DISTINCT 64 DIV - COUNT( * ) AS col1 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT 64 / - COUNT ( * ) AS col1 FROM tab0
----
-21

query I rowsort
SELECT ( + + 51 ) AS col1 FROM tab0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT DISTINCT COUNT( DISTINCT + ( + col0 ) ) col2, 71 FROM tab0 cor0
----
3
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3885
SELECT DISTINCT COUNT ( DISTINCT + ( + col0 ) ) col2, 71 FROM tab0 cor0
----
3
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + 8 * - col0 + 20 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT - COUNT( * ) * - - ( + 57 ) col0 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3887
SELECT - COUNT ( * ) * - - ( + 57 ) col0 FROM tab0 AS cor0
----
-171

query I rowsort
SELECT + 52 * ( - 60 ) * - 56 FROM tab0 cor0
----
174720
174720
174720

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 17 * + col1 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT DISTINCT + col0 + + 96 + - col0 * ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT + col0 + + 96 + - col0 * ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col0 + - ( col1 ) - col1 AS col0 FROM tab0 AS cor0
----
-147
45
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 84 col0 FROM tab1 AS cor0
----
-131
-89
-98

query I rowsort
SELECT ALL + - col0 + col1 + - - col0 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT + 78 AS col1, ( + + col0 ) FROM tab2 AS cor0
----
78
46
78
64
78
75

query II rowsort
SELECT col2 AS col2, col1 * 90 AS col0 FROM tab1 AS cor0
----
59
450
68
4230
96
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT col1 * - CAST( NULL AS SIGNED ) / - - 27 col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3897
SELECT col1 * - CAST ( NULL AS INTEGER ) / - - 27 col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3898
SELECT ALL ( - + CAST( NULL AS DECIMAL ) ) * 55 * + 5 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL ( - + CAST ( NULL AS REAL ) ) * 55 * + 5 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 - - col2, col2 + + - 88 * - 69 + + - col2 AS col2 FROM tab0
----
100
6072
128
6072
31
6072

query II rowsort
SELECT ALL - col0 - 99, + col0 AS col0 FROM tab0
----
-114
15
-186
87
-196
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3901
SELECT + + ( 88 ) DIV + 71 + - 96 * col0 AS col0 FROM tab0 AS cor0
----
-1439
-8351
-9311

skipif mysql # not compatible
query I rowsort label-3901
SELECT + + ( 88 ) / + 71 + - 96 * col0 AS col0 FROM tab0 AS cor0
----
-1439
-8351
-9311

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT DISTINCT COUNT( * ) * 95 + COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT COUNT ( * ) * 95 + COUNT ( * ) FROM tab1 AS cor0
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3903
SELECT ( + col2 ), - 22 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3903
SELECT ( + col2 ), - 22 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT 84 DIV + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3904
SELECT 84 / + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col2 AS col2 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( + col0 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 99 * + col0 + col2 AS col0, 82 col1 FROM tab1 AS cor0
----
5145
82
8474
82
9077
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3908
SELECT ALL + 76, + MIN( ALL - + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----
76
NULL

skipif mysql # not compatible
query II rowsort label-3908
SELECT ALL + 76, + MIN ( ALL - + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL + ( - + 91 ) * COUNT( * ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL + ( - + 91 ) * COUNT ( * ) FROM tab1 AS cor0
----
-273

query I rowsort
SELECT + col2 * + 36 AS col1 FROM tab2 AS cor0
----
1440
2088
828

query I rowsort
SELECT - - col0 * + + 52 AS col0 FROM tab1 AS cor0
----
2652
4420
4732

query I rowsort
SELECT col1 * + - 69 - - col0 FROM tab2 AS cor0
----
-3473
-4548
-5249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3913
SELECT DISTINCT + 21 DIV + + SUM( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT + 21 / + + SUM ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 71 * + col0 + - + 2 AS col0 FROM tab1 AS cor0
----
3619
6033
6459

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT + ( - col0 ) DIV col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3915
SELECT + ( - col0 ) / col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT ALL + col0 DIV + col1 AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL + col0 / + col1 AS col0 FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + COUNT( - col1 ) + - + 9 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3918
SELECT + COUNT ( - col1 ) + - + 9 FROM tab2
----
-6

query I rowsort
SELECT DISTINCT 66 + + col1 AS col2 FROM tab2
----
117
133
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT COUNT( DISTINCT col0 ) + - + ( - 13 ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT COUNT ( DISTINCT col0 ) + - + ( - 13 ) FROM tab1 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3921
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) IN ( CAST( - col1 AS SIGNED ) / - col2 + + col1 / + 70, + col2, 12, col0 + col1 )
----

skipif mysql # not compatible
query III rowsort label-3921
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) IN ( CAST ( - col1 AS INTEGER ) / - col2 + + col1 / + 70, + col2, 12, col0 + col1 )
----

query I rowsort
SELECT DISTINCT + col0 * - col2 * 40 AS col2 FROM tab2 AS cor0
----
-102400
-174000
-42320

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT MAX( - - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT MAX ( - - col1 ) FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT + CAST( - 28 AS SIGNED ) + - - ( col0 ) FROM tab1 AS cor0
----
23
57
63

skipif mysql # not compatible
query I rowsort label-3924
SELECT + CAST ( - 28 AS INTEGER ) + - - ( col0 ) FROM tab1 AS cor0
----
23
57
63

query II rowsort
SELECT 13 + + col2 + - col0, col1 + + - 56 AS col2 FROM tab1 AS cor0
----
-10
-9
-13
-51
58
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT COUNT( * ) + - MAX( DISTINCT - + 68 ) AS col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3926
SELECT COUNT ( * ) + - MAX ( DISTINCT - + 68 ) AS col2 FROM tab0 AS cor0
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3927
SELECT DISTINCT * FROM tab1 cor0 WHERE - 4 IN ( + + 4 * + 68 / col0, col2, + + col0, - - col2 + CAST( - 1 AS DECIMAL ) * + - 24 )
----

skipif mysql # not compatible
query III rowsort label-3927
SELECT DISTINCT * FROM tab1 cor0 WHERE - 4 IN ( + + 4 * + 68 / col0, col2, + + col0, - - col2 + CAST ( - 1 AS REAL ) * + - 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3928
SELECT + 46 + + col1 + CAST( NULL AS SIGNED ) * - + 95 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT + 46 + + col1 + CAST ( NULL AS INTEGER ) * - + 95 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 + - 28 col1 FROM tab2 cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT - col1 + col1 - - + 19 * col2 AS col2 FROM tab1 AS cor0
----
1121
1292
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT + - ( + + SUM( ALL - col1 ) ) - + 35 AS col1 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + - ( + + SUM ( ALL - col1 ) ) - + 35 AS col1 FROM tab0 AS cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT 65 + + col2 * 21 + - ( CAST( + - 60 AS SIGNED ) ) + + col1 * col0 FROM tab1 AS cor0
----
1789
2855
5830

skipif mysql # not compatible
query I rowsort label-3932
SELECT 65 + + col2 * 21 + - ( CAST ( + - 60 AS INTEGER ) ) + + col1 * col0 FROM tab1 AS cor0
----
1789
2855
5830

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE + 94 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN + + col1 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT + SUM( DISTINCT + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3935
SELECT + SUM ( DISTINCT + col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT - col2 * - col2 + col0 FROM tab2 WHERE - col0 + + col0 IS NULL
----

query I rowsort
SELECT ( 7 ) AS col2 FROM tab1
----
7
7
7

query III rowsort
SELECT DISTINCT col2 AS col2, + 2 AS col0, - col1 * - + col1 FROM tab1
----
9 values hashing to 7f7a6c944457ceeecdacba57b880264a

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3939
SELECT DISTINCT 21, + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
21
NULL

skipif mysql # not compatible
query II rowsort label-3939
SELECT DISTINCT 21, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
21
NULL

query I rowsort
SELECT - ( - - col2 ) AS col1 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 80 ) + + - col0 col0 FROM tab0
----
-17
-7
65

query I rowsort
SELECT - 36 * col1 FROM tab1
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT + + MIN( + - 31 ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + + MIN ( + - 31 ) FROM tab0 AS cor0
----
-31

query II rowsort
SELECT DISTINCT col2, + col1 * + col2 * + 33 * col0 FROM tab1 AS cor0
----
59
827475
68
9597588
96
2261952

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > - + 5 + + + col1
----

query I rowsort
SELECT DISTINCT + col2 * 81 + col0 FROM tab0 AS cor0
----
3822
8116
897

query II rowsort
SELECT ALL + + 19, col1 * col2 AS col1 FROM tab2 WHERE - 22 + - + col2 IS NULL
----

query I rowsort
SELECT 14 * 55 * + - col0 AS col2 FROM tab1
----
-39270
-65450
-70070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3949
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col2 * 1 + - 60 AS col0 FROM tab1 AS cor0
----
-119
-128
-156

query I rowsort
SELECT DISTINCT + + 48 AS col2 FROM tab2 AS cor0
----
48

query I rowsort
SELECT col2 / col2 FROM tab0 AS cor0 WHERE NOT - 73 * - 64 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + + 81 AND + col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3954
SELECT - CAST( col1 AS SIGNED ) + - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-3954
SELECT - CAST ( col1 AS INTEGER ) + - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-141
-142
-97

query I rowsort
SELECT + 25 - - col2 * + 92 * - - 90 FROM tab0 WHERE NOT col0 IS NULL
----
389185
819745
82825

query II rowsort
SELECT DISTINCT 49 AS col2, col2 + + + col2 FROM tab2
----
49
116
49
46
49
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3957
SELECT DISTINCT * FROM tab0 WHERE col0 * + 95 + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3957
SELECT DISTINCT * FROM tab0 WHERE col0 * + 95 + CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL - 41 * - 94 AS col2 FROM tab1
----
3854
3854
3854

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3959
SELECT - CAST( + 41 AS SIGNED ) DIV - 10 AS col0 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3959
SELECT - CAST ( + 41 AS INTEGER ) / - 10 AS col0 FROM tab1
----
4
4
4

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col1 + - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - 27 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT - MIN( col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT - MIN ( col0 ) AS col0 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 81 + - col1 + + + col2 col0 FROM tab0 AS cor0
----
-113
-196
16

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( + col0 ) NOT BETWEEN col1 * - col0 AND + 99 + - - col2 + - 81
----

query I rowsort
SELECT ALL - 59 + + col2 * + ( ( - + ( + col1 ) ) ) AS col1 FROM tab2 AS cor0
----
-1232
-3139
-3945

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT + 25 - + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3966
SELECT + 25 - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
19

query I rowsort
SELECT ALL - col1 - + - 4 AS col1 FROM tab0 AS cor0
----
-17
-77
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT col2 - - 91 + - col1 DIV + col1 AS col2 FROM tab2
----
113
130
148

skipif mysql # not compatible
query I rowsort label-3968
SELECT col2 - - 91 + - col1 / + col1 AS col2 FROM tab2
----
113
130
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT + ( - COUNT( * ) ) - + 55 * - COUNT( * ) AS col1 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-3969
SELECT + ( - COUNT ( * ) ) - + 55 * - COUNT ( * ) AS col1 FROM tab2
----
162

query I rowsort
SELECT DISTINCT - col0 - + 18 AS col1 FROM tab2
----
-64
-82
-93

query II rowsort
SELECT ALL col2, - col2 * + + 5 FROM tab1
----
59
-295
68
-340
96
-480

query I rowsort
SELECT ALL col1 - - + col2 * - ( + 12 ) AS col2 FROM tab1
----
-1138
-703
-769

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT DISTINCT + col0 DIV 97 * - col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + col0 / 97 * - col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 25 + - col2 * - col2 / - col1 * 68 * - col0 * + - col1 - - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col2
----

query II rowsort
SELECT DISTINCT + + col0 AS col0, 15 * + col1 FROM tab1 cor0
----
51
210
85
75
91
705

query I rowsort
SELECT - - ( + 33 ) AS col2 FROM tab2 AS cor0
----
33
33
33

query II rowsort
SELECT ALL + col2 AS col2, + col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3978
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3978
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT + 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL + col2 * 59 AS col0 FROM tab0
----
2773
5841
590

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT + + 5 * MIN( ALL - + 50 ) FROM tab2 AS cor0
----
-250

skipif mysql # not compatible
query I rowsort label-3981
SELECT + + 5 * MIN ( ALL - + 50 ) FROM tab2 AS cor0
----
-250

query I rowsort
SELECT ALL + col1 * + 34 + + col2 AS col0 FROM tab2 AS cor0
----
1757
2336
2658

query II rowsort
SELECT - 77 AS col2, col2 * + col2 AS col2 FROM tab1 cor0
----
-77
3481
-77
4624
-77
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 1 col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL - ( + col2 ) * + 34 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT COUNT( * ) + COUNT( + 51 ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3986
SELECT COUNT ( * ) + COUNT ( + 51 ) col0 FROM tab1
----
6

query I rowsort
SELECT 21 + col2 FROM tab2
----
44
61
79

query I rowsort
SELECT ALL + 53 / - col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT DISTINCT + - col1 DIV col0 + ( col1 ) FROM tab0 AS cor0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + - col1 / col0 + ( col1 ) FROM tab0 AS cor0
----
1
21
76

query I rowsort
SELECT ALL - 96 + - 72 FROM tab2
----
-168
-168
-168

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE 92 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT - - COUNT( * ) * - - COUNT( - + 50 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3993
SELECT - - COUNT ( * ) * - - COUNT ( - + 50 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT + + COUNT( * ) - + - 83 AS col2 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + + COUNT ( * ) - + - 83 AS col2 FROM tab0 AS cor0
----
86

query I rowsort
SELECT ALL 17 + col0 FROM tab0 cor0
----
104
114
32

query I rowsort
SELECT + - ( + ( + col2 ) ) + 3 * + col1 - + + col2 FROM tab1 cor0
----
-103
-150
5

query I rowsort
SELECT DISTINCT - col2 + - 27 * + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1423
-1925
-2159

query I rowsort
SELECT DISTINCT - 18 + col0 + - col0 * - 50 FROM tab2 cor0
----
2328
3246
3807

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 92 IS NULL
----

query I rowsort
SELECT col1 * - - 68 FROM tab2
----
3468
4556
5236

query I rowsort
SELECT ALL - 90 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 * - 35 FROM tab2
----
107800
136010
41055

query I rowsort
SELECT col2 * - 74 AS col2 FROM tab2
----
-1702
-2960
-4292

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT ALL - col2 DIV - - 94 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL - col2 / - - 94 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col0 - col0 AS col1 FROM tab0 cor0 WHERE ( NULL < + - ( col2 ) )
----

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT - 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-39

query I rowsort
SELECT ALL - + col1 * + ( - col2 ) FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + 2 + COUNT( * ) col0 FROM tab0 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4009
SELECT + 2 + COUNT ( * ) col0 FROM tab0 cor0
----
5

query I rowsort
SELECT ALL - 33 * - 50 FROM tab2 AS cor0
----
1650
1650
1650

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4011
SELECT DISTINCT - 74 + + - 32 + CAST( NULL AS DECIMAL ) + col1 + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT - 74 + + - 32 + CAST ( NULL AS REAL ) + col1 + + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4012
SELECT ( - COUNT( ALL + - CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4012
SELECT ( - COUNT ( ALL + - CAST ( NULL AS REAL ) ) ) AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL - col1 AS col1, - 1 * - 45 + - col1 + - col0 + + col0 FROM tab0
----
-1
44
-21
24
-81
-36

query III rowsort
SELECT * FROM tab0 WHERE - col0 > col0 - col2
----
15
81
47

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab0, tab1 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT DISTINCT + 91 * COUNT( * ) AS col2 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT + 91 * COUNT ( * ) AS col2 FROM tab2
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - COUNT( - - col1 ) * 22 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4017
SELECT - COUNT ( - - col1 ) * 22 FROM tab1
----
-66

query I rowsort
SELECT ALL - col1 * + - 63 AS col1 FROM tab1
----
2961
315
882

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT DISTINCT col0 DIV + col2 + 54 FROM tab1
----
54
55

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT col0 / + col2 + 54 FROM tab1
----
54
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT - + col0 * + 69 AS col2 FROM tab1 WHERE CAST( + 8 AS SIGNED ) IS NOT NULL
----
-3519
-5865
-6279

skipif mysql # not compatible
query I rowsort label-4020
SELECT - + col0 * + 69 AS col2 FROM tab1 WHERE CAST ( + 8 AS INTEGER ) IS NOT NULL
----
-3519
-5865
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT 98 * - MIN( + - 9 ) AS col0 FROM tab1
----
882

skipif mysql # not compatible
query I rowsort label-4021
SELECT 98 * - MIN ( + - 9 ) AS col0 FROM tab1
----
882

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4022
SELECT * FROM tab1 WHERE CAST( CAST( + ( - - col2 ) AS DECIMAL ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4022
SELECT * FROM tab1 WHERE CAST ( CAST ( + ( - - col2 ) AS REAL ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4023
SELECT DISTINCT - 4 AS col2, - COUNT( - + 97 ) FROM tab1 cor0
----
-4
-3

skipif mysql # not compatible
query II rowsort label-4023
SELECT DISTINCT - 4 AS col2, - COUNT ( - + 97 ) FROM tab1 cor0
----
-4
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4024
SELECT ALL col0 * - col0 - + + CAST( + - col2 AS SIGNED ) + 9 + - 84 AS col2, 73 FROM tab1 AS cor0
----
-2580
73
-7241
73
-8288
73

skipif mysql # not compatible
query II rowsort label-4024
SELECT ALL col0 * - col0 - + + CAST ( + - col2 AS INTEGER ) + 9 + - 84 AS col2, 73 FROM tab1 AS cor0
----
-2580
73
-7241
73
-8288
73

query I rowsort
SELECT + 48 + - ( - col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
148
176
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4026
SELECT DISTINCT - col1 * + col1, ( - col2 ) + + CAST( - 82 AS SIGNED ) AS col0 FROM tab0
----
-1
-181
-441
-92
-6561
-129

skipif mysql # not compatible
query II rowsort label-4026
SELECT DISTINCT - col1 * + col1, ( - col2 ) + + CAST ( - 82 AS INTEGER ) AS col0 FROM tab0
----
-1
-181
-441
-92
-6561
-129

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE - + col0 > - col1
----
51
77

query I rowsort
SELECT col0 * 36 AS col2 FROM tab2 AS cor0
----
1656
2304
2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4029
SELECT ALL col1 + CAST( + ( + + col0 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
108
96
98

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL col1 + CAST ( + ( + + col0 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
108
96
98

query I rowsort
SELECT ALL - col1 * + + col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query II rowsort label-4031
SELECT DISTINCT + col2 DIV + col1, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-4031
SELECT DISTINCT + col2 / + col1, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query III rowsort
SELECT * FROM tab0 WHERE NOT + 30 NOT BETWEEN col1 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT DISTINCT - 31 DIV - 54 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT - 31 / - 54 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - 62 * - 28 FROM tab0
----
1736
1736
1736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * - col1 col2 FROM tab0
----
-1869
-7209
-89

query I rowsort
SELECT + - ( + 3 ) AS col2 FROM tab1 AS cor0
----
-3
-3
-3

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - ( - 58 ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4038
SELECT ALL COUNT( * ) DIV 19 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL COUNT ( * ) / 19 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT + MAX( DISTINCT - - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + MAX ( DISTINCT - - col1 ) FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1 + - 31 AS col2, col0 AS col0 FROM tab1 cor0
----
-17
51
-26
85
16
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT DISTINCT + 8 + + - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT + 8 + + - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + - col0 AS col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + 86 * + MIN( - - col1 ) + - + 8 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4046
SELECT + 86 * + MIN ( - - col1 ) + - + 8 FROM tab0
----
78

query III rowsort
SELECT * FROM tab1 WHERE - 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT col2 + + - CAST( 33 AS SIGNED ) * + 24 * - + col2 AS col1 FROM tab2
----
18239
31720
45994

skipif mysql # not compatible
query I rowsort label-4048
SELECT col2 + + - CAST ( 33 AS INTEGER ) * + 24 * - + col2 AS col1 FROM tab2
----
18239
31720
45994

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 76 / - 80 > - col0
----

query III rowsort
SELECT * FROM tab1 WHERE + + 10 + + col1 IS NULL
----

query I rowsort
SELECT + col1 * - col1 + + ( - 97 ) * - col0 * col0 AS col1 FROM tab2
----
202651
391383
541136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col0 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT CAST( NULL AS SIGNED ) * - 3 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT CAST ( NULL AS INTEGER ) * - 3 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT + - col1 DIV + 16 AS col1 FROM tab2 cor0
----
-3
-4
-4

skipif mysql # not compatible
query I rowsort label-4054
SELECT + - col1 / + 16 AS col1 FROM tab2 cor0
----
-3
-4
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST( - - col1 AS SIGNED ) NOT BETWEEN col1 + ( - - col2 ) + + + 34 AND 62
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) NOT BETWEEN col1 + ( - - col2 ) + + + 34 AND 62
----
0

query I rowsort
SELECT DISTINCT + ( 41 ) AS col0 FROM tab0 AS cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col1 col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IS NULL AND 26 + + 84 IS NULL
----

query II rowsort
SELECT ALL ( col0 ) * 35 * + 1 + - col1, + 76 * - 9 * + 64 - - + col0 * - - col0 + + 81 AS col2 FROM tab2
----
1559
-41579
2163
-39599
2558
-38070

onlyif mysql # aggregate syntax: 
query II rowsort label-4060
SELECT COUNT( * ) * + + COUNT( * ) AS col0, 85 * COUNT( * ) AS col0 FROM tab0
----
9
255

skipif mysql # not compatible
query II rowsort label-4060
SELECT COUNT ( * ) * + + COUNT ( * ) AS col0, 85 * COUNT ( * ) AS col0 FROM tab0
----
9
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4061
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4063
SELECT DISTINCT - - 52 * 69 + - COUNT( * ) + - 54 * + CAST( - - MIN( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - - 52 * 69 + - COUNT ( * ) + - 54 * + CAST ( - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT 44 - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
41

skipif mysql # not compatible
query I rowsort label-4064
SELECT 44 - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
41

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < 65 + + 46
----

query I rowsort
SELECT - 66 * + + col1 + + 18 + - col1 * - col1 AS col0 FROM tab0
----
-47
-927
1233

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT col2 * + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4068
SELECT - SUM( DISTINCT + - ( + col0 ) ) col2, 81 + 59 FROM tab2 AS cor0
----
185
140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4068
SELECT - SUM ( DISTINCT + - ( + col0 ) ) col2, 81 + 59 FROM tab2 AS cor0
----
185
140

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col0 - col1 + col1
----

query I rowsort
SELECT DISTINCT col0 + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + col0 + 7 col2 FROM tab0 AS cor0
----
103
105
115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4072
SELECT ALL - 17 / CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0 WHERE NOT 2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL - 17 / CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0 WHERE NOT 2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 34 AS col0 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT ALL col2 + + - 18 AS col1 FROM tab0 AS cor0
----
-8
29
81

query II rowsort
SELECT - col2 * + 93, + col1 AS col1 FROM tab1
----
-5487
5
-6324
47
-8928
14

query II rowsort
SELECT ALL col1 - - col1 AS col0, col2 * + col0 - - 34 FROM tab1
----
10
5049
28
4930
94
6222

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4077
SELECT ALL * FROM tab2 WHERE NOT - + 94 * + col0 + - - col1 NOT IN ( + - 2, ( - col0 ), - col0, + - CAST( NULL AS SIGNED ), - 40 )
----

skipif mysql # not compatible
query III rowsort label-4077
SELECT ALL * FROM tab2 WHERE NOT - + 94 * + col0 + - - col1 NOT IN ( + - 2, ( - col0 ), - col0, + - CAST ( NULL AS INTEGER ), - 40 )
----

query II rowsort
SELECT ALL ( col2 ) AS col1, 93 FROM tab0
----
10
93
47
93
99
93

query II rowsort
SELECT DISTINCT + col2 AS col1, - 45 FROM tab2 WHERE NOT + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 98 + col0 * + 91 AS col1 FROM tab0
----
1463
8015
8925

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4081
SELECT DISTINCT COUNT( - + CAST( NULL AS DECIMAL ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT COUNT ( - + CAST ( NULL AS REAL ) ) FROM tab2
----
0

query I rowsort
SELECT ALL ( + ( + - 37 ) ) FROM tab2 WHERE NOT - col1 <= - col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = 0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT COUNT( * ) * 17 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
153

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT COUNT ( * ) * 17 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT + CAST( NULL AS SIGNED ) + 54 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4085
SELECT + CAST ( NULL AS INTEGER ) + 54 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( + + col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - col1 * - + 35 col2, - 70 * col0 FROM tab1 AS cor0
----
10325
-5950
111860
-6370
47040
-3570

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT col0 DIV col2 * - col1 AS col2 FROM tab0 cor0
----
-168
0
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT col0 / col2 * - col1 AS col2 FROM tab0 cor0
----
-168
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL ( + + SUM( ALL + - col0 ) ) * - + COUNT( * ) + - COUNT( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
678

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL ( + + SUM ( ALL + - col0 ) ) * - + COUNT ( * ) + - COUNT ( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN + col0 AND ( + col0 ) - - 33
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - - SUM( + 38 ) AS col1 FROM tab2 cor0
----
114

skipif mysql # not compatible
query I rowsort label-4092
SELECT - - SUM ( + 38 ) AS col1 FROM tab2 cor0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4093
SELECT * FROM tab1 WHERE NOT - CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4093
SELECT * FROM tab1 WHERE NOT - CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0, + 69 AS col0 FROM tab1
----
-51
69
-85
69
-91
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4095
SELECT + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + + 91 + - col0 AS col1 FROM tab2 AS cor0
----
16
27
45

query II rowsort
SELECT DISTINCT + + col2 AS col1, - 61 FROM tab0 AS cor0
----
10
-61
47
-61
99
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT - - SUM( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT - - SUM ( ALL + col0 ) FROM tab1 AS cor0
----
227

query II rowsort
SELECT ALL - 92 AS col2, - 72 + - - 73 AS col1 FROM tab0 AS cor0
----
-92
1
-92
1
-92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT MIN( - + 54 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-4100
SELECT MIN ( - + 54 ) FROM tab0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + ( + col1 ) col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT - COUNT( * ) + + + 77 AS col0 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-4102
SELECT - COUNT ( * ) + + + 77 AS col0 FROM tab2 cor0
----
74

query I rowsort
SELECT DISTINCT col2 * - ( 28 ) AS col2 FROM tab1 AS cor0
----
-1652
-1904
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - - 83 - + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - - 83 - + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT ALL + 68 + - - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + 68 + - - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 39 * - + col0 AS col1 FROM tab2
----
-1794
-2496
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT MAX( + - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4107
SELECT MAX ( + - col0 ) FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL <> + col0 )
----

query I rowsort
SELECT DISTINCT + 79 + + - 32 AS col1 FROM tab2
----
47

query I rowsort
SELECT - 86 * + col1 * - col0 FROM tab2
----
201756
423808
432150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT + COUNT( * ) DIV - 15 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT + COUNT ( * ) / - 15 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT - col2 DIV - + col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4112
SELECT - col2 / - + col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4113
SELECT ALL 62 DIV - COUNT( * ) FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL 62 / - COUNT ( * ) FROM tab1 AS cor0
----
-20

query I rowsort
SELECT ALL col0 + 69 FROM tab1
----
120
154
160

query I rowsort
SELECT - 13 AS col1 FROM tab0 WHERE 62 IN ( col0 )
----

query I rowsort
SELECT ALL col0 * 70 + col2 FROM tab1
----
3666
6009
6438

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN - col0 AND ( col2 )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT - 25 / 23 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4119
SELECT ALL * FROM tab1 WHERE NOT ( + 36 * - 24 ) BETWEEN ( + CAST( NULL AS SIGNED ) ) AND 46
----

skipif mysql # not compatible
query III rowsort label-4119
SELECT ALL * FROM tab1 WHERE NOT ( + 36 * - 24 ) BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND 46
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( + 80 ) ) IS NOT NULL
----

query I rowsort
SELECT 52 + + col0 AS col0 FROM tab2
----
116
127
98

query I rowsort
SELECT 70 FROM tab0 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT col2 + 6 AS col1 FROM tab2
----
29
46
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT ALL - col0 - 47 DIV col1 FROM tab1
----
-54
-92
-94

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL - col0 - 47 / col1 FROM tab1
----
-54
-92
-94

query III rowsort
SELECT ALL * FROM tab1 WHERE + 98 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + 13 AS col0 FROM tab2
----
36
53
71

query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab0 WHERE col0 - col0 * - 64 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col1 + 91 AS col1 FROM tab2
----
142
158
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT - ( + MIN( col1 ) ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4129
SELECT - ( + MIN ( col1 ) ) AS col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT col1 DIV - col0 + - col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4130
SELECT col1 / - col0 + - col0 AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col1 + 68 * + 86 FROM tab2
----
5899
5915
5925

query III rowsort
SELECT * FROM tab2 WHERE NULL < + col2 / col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4133
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab1 WHERE NULL < + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab1 WHERE NULL < + col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) BETWEEN ( + col1 + col1 ) AND ( 45 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 84 * + 81 AS col2 FROM tab1
----
6804

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * col1 ) BETWEEN + col1 * + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - ( + col2 ) + col1 FROM tab1 AS cor0
----
3486
4671
9230

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL COUNT( * ) * + 45 AS col0 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL COUNT ( * ) * + 45 AS col0 FROM tab1 AS cor0
----
135

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 14 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 66 AS col2 FROM tab2 AS cor0 WHERE ( - 30 ) IS NOT NULL
----
66
66
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 49 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT + 70 + COUNT( * ) AS col0 FROM tab1 cor0
----
73

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + 70 + COUNT ( * ) AS col0 FROM tab1 cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT DISTINCT ( + col1 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT ( + col1 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT DISTINCT + - 61 - + CAST( + 52 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-2713
-3545
-4065

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT + - 61 - + CAST ( + 52 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-2713
-3545
-4065

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + - ( + ( COUNT( * ) ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4147
SELECT + - ( + ( COUNT ( * ) ) ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 62 * - 55 + + col0 AS col1 FROM tab0 AS cor0
----
-3313
-3323
-3395

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - 70
----

query I rowsort
SELECT ALL + col2 * col2 AS col1 FROM tab0 WHERE NOT NULL <> - col2 + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4151
SELECT ALL COUNT( + col2 ) - - 53 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL COUNT ( + col2 ) - - 53 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT DISTINCT col2 * - col0 FROM tab0 WHERE NOT ( - CAST( col2 AS SIGNED ) ) IN ( - col0 )
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT col2 * - col0 FROM tab0 WHERE NOT ( - CAST ( col2 AS INTEGER ) ) IN ( - col0 )
----
-705
-870
-9603

query I rowsort
SELECT ALL - col2 * - - col0 AS col2 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT ALL + col1 * + - col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( + col2 ) NOT IN ( col1 )
----
1
21
81

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - - col1 + ( col1 ) * - col1 FROM tab0
----
-5346
1386
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT ALL - + 59 DIV col1 - + col0 AS col2 FROM tab0 AS cor0
----
-15
-156
-89

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL - + 59 / col1 - + col0 AS col2 FROM tab0 AS cor0
----
-15
-156
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT + COUNT( DISTINCT - 98 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + COUNT ( DISTINCT - 98 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT MAX( DISTINCT + col2 ) + 6 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 56 > ( - col1 )
----
117

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT MAX ( DISTINCT + col2 ) + 6 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 56 > ( - col1 )
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4163
SELECT ( - COUNT( DISTINCT + 96 ) ) * CAST( - COUNT( - col0 ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4163
SELECT ( - COUNT ( DISTINCT + 96 ) ) * CAST ( - COUNT ( - col0 ) AS INTEGER ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL - col1 + + col1 * - col1 FROM tab1 WHERE ( 66 = ( NULL ) )
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( NULL ) IN ( col0 + + 38 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col0 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT - col2 * 24 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 / + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT + + 96 * + MAX( ALL 14 ) FROM tab1 AS cor0
----
1344

skipif mysql # not compatible
query I rowsort label-4168
SELECT + + 96 * + MAX ( ALL 14 ) FROM tab1 AS cor0
----
1344

query I rowsort
SELECT ALL + + 10 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL <= ( + 78 )
----

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <= ( + 78 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL 9 / 48 / col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4173
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 * + col0 / - col1 - ( 63 ) * - col1 ) <> col1 - col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4173
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 * + col0 / - col1 - ( 63 ) * - col1 ) <> col1 - col2 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - ( + 2 ) AS col2 FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT + 24 AS col0, + SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
24
199

skipif mysql # not compatible
query II rowsort label-4175
SELECT + 24 AS col0, + SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
24
199

query I rowsort
SELECT - + col2 * - - 36 * col0 * - col1 FROM tab2 AS cor0
----
10492200
1942488
7096320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT + CAST( NULL AS SIGNED ) * 68 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT + CAST ( NULL AS INTEGER ) * 68 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4178
SELECT + col2 col0 FROM tab1 WHERE NOT - col1 + - col0 BETWEEN ( CAST( + col2 AS DECIMAL ) + - col1 ) AND ( NULL )
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4178
SELECT + col2 col0 FROM tab1 WHERE NOT - col1 + - col0 BETWEEN ( CAST ( + col2 AS REAL ) + - col1 ) AND ( NULL )
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * - col0 AS col1 FROM tab0 WHERE NOT NULL IN ( + 85 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 * 14 + + col0 IN ( + 58 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 57 * + col0 / - col2 ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT 12 + COUNT( + ( + 95 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4183
SELECT 12 + COUNT ( + ( + 95 ) ) FROM tab0
----
15

query I rowsort
SELECT ALL + col0 * + col2 + + col1 * - 7 AS col2 FROM tab0 WHERE ( col1 ) IS NOT NULL
----
138
723
9596

query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab0 WHERE NULL BETWEEN ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4186
SELECT ALL + 58 + - - 6, - col1 / + CAST( NULL AS SIGNED ) col2 FROM tab2
----
64
NULL
64
NULL
64
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4186
SELECT ALL + 58 + - - 6, - col1 / + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
64
NULL
64
NULL
64
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT ( - - col2 ) IN ( col1 )
----
15
87
97

query I rowsort
SELECT DISTINCT + col2 + 7 - - ( ( col1 ) ) * - col1 FROM tab2 AS cor0
----
-2571
-4424
-5882

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 44 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - - 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT - CAST( - col2 AS SIGNED ) * - col1 FROM tab0 WHERE ( - 32 * + ( - 92 ) + - ( + col2 ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4191
SELECT - CAST ( - col2 AS INTEGER ) * - col1 FROM tab0 WHERE ( - 32 * + ( - 92 ) + - ( + col2 ) ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - - col1, 85 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 10 + ( 34 ) / + 31 BETWEEN col0 / - col0 AND ( col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT + 42 + + SUM( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT + 42 + + SUM ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
145

query I rowsort
SELECT - col2 * + - col2 * + + col0 + + + 53 FROM tab0 AS cor0
----
33188
8753
950750

query I rowsort
SELECT - 5 + - - col1 AS col1 FROM tab2 AS cor0
----
46
62
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT col1 DIV - 78 * 4 + 20 FROM tab2 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-4197
SELECT col1 / - 78 * 4 + 20 FROM tab2 AS cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT DISTINCT + 73 + - + 28 DIV - col0 AS col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + 73 + - + 28 / - col0 AS col1 FROM tab2 AS cor0
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4199
SELECT * FROM tab2 AS cor0 WHERE col2 = CAST( - col2 AS DECIMAL ) * + + col1 + - col2 * + col1
----

skipif mysql # not compatible
query III rowsort label-4199
SELECT * FROM tab2 AS cor0 WHERE col2 = CAST ( - col2 AS REAL ) * + + col1 + - col2 * + col1
----

query I rowsort
SELECT - col0 + - - 71 FROM tab1 AS cor0
----
-14
-20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT DISTINCT - ( - col0 ) * - - col1 * + + col0 + - 40 + CAST( - 53 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
36032
36321
389114

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT - ( - col0 ) * - - col1 * + + col0 + - 40 + CAST ( - 53 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
36032
36321
389114

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col2 * + col0 + + 11 NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 * + col0 + + 11 NOT BETWEEN NULL AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT + 25 - + ( - 93 ) - COUNT( ALL + col1 ) FROM tab0 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT + 25 - + ( - 93 ) - COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
115

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col1 / + 5
----

query III rowsort
SELECT * FROM tab2 WHERE - 57 NOT IN ( - col0 * + 99 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4206
SELECT + 98 col0, + COUNT( - - col2 ) AS col1 FROM tab1
----
98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4206
SELECT + 98 col0, + COUNT ( - - col2 ) AS col1 FROM tab1
----
98
3

query II rowsort
SELECT + col2, col0 * + ( - - 0 ) + col0 - col1 + 46 * - col1 FROM tab0
----
10
-900
47
-3792
99
50

query I rowsort
SELECT col2 * - col2 * - - col2 FROM tab2
----
-12167
-195112
-64000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col1 ) col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4210
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) AS col2, col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

skipif mysql # not compatible
query II rowsort label-4210
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) AS col2, col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT DISTINCT col0 AS col1, 90 * ( 85 ) AS col1 FROM tab2 AS cor0
----
46
7650
64
7650
75
7650

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * ( - + col0 ) AS col0 FROM tab1 cor0
----
-2601
-7225
-8281

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ( - 10 ) * + + MAX( + col0 ) + - 26 + - - 79 FROM tab1
----
-857

skipif mysql # not compatible
query I rowsort label-4215
SELECT ( - 10 ) * + + MAX ( + col0 ) + - 26 + - - 79 FROM tab1
----
-857

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + 68 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4217
SELECT ALL + 8 * - CAST( NULL AS SIGNED ) + + + SUM( ALL + + 59 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL + 8 * - CAST ( NULL AS INTEGER ) + + + SUM ( ALL + + 59 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT ALL - col2 DIV 84 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - col2 / 84 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 50 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL + COUNT( - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + COUNT ( - col0 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 + - 64, - 20 - + col2 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < col1
----

query I rowsort
SELECT ALL - 51 + - 31 AS col0 FROM tab0 cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT DISTINCT - 36 * - ( + CAST( NULL AS SIGNED ) ) col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4223
SELECT DISTINCT - 36 * - ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - 36
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, + 13 FROM tab0
----
10
13
47
13
99
13

query III rowsort
SELECT * FROM tab1 WHERE - col2 + 61 + + col0 NOT BETWEEN + - 2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT ALL + col1 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL + col1 / + - col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT + CAST( + - ( - ( - col1 ) ) AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4228
SELECT + CAST ( + - ( - ( - col1 ) ) AS INTEGER ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4229
SELECT DISTINCT 43 col1, COUNT( * ) FROM tab0
----
43
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4229
SELECT DISTINCT 43 col1, COUNT ( * ) FROM tab0
----
43
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT DISTINCT + 26 * + 50 + COUNT( * ) col2 FROM tab2
----
1303

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4230
SELECT DISTINCT + 26 * + 50 + COUNT ( * ) col2 FROM tab2
----
1303

query III rowsort
SELECT * FROM tab1 WHERE + 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT DISTINCT SUM( ALL - col1 ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4232
SELECT DISTINCT SUM ( ALL - col1 ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - 64
----

query I rowsort
SELECT ALL 18 + col1 AS col1 FROM tab0 AS cor0
----
19
39
99

query I rowsort
SELECT ALL col0 + + 55 FROM tab1 AS cor0 WHERE NULL IS NULL AND NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT ( - 25 ) FROM tab0 AS cor0 WHERE - + col1 * - col0 + col0 NOT BETWEEN NULL AND NULL AND NOT ( 86 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * 4 + - + 5 col2 FROM tab0
----
295
295
295

query I rowsort
SELECT - col1 + - + ( col2 ) FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT 60 + + + COUNT( + 66 ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4239
SELECT 60 + + + COUNT ( + 66 ) AS col2 FROM tab1
----
63

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 <> + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT + + 41 + - - COUNT( * ) + + 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
144

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + + 41 + - - COUNT ( * ) + + 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4242
SELECT DISTINCT CAST( - + 79 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-79

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT CAST ( - + 79 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4243
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + - 46 AND - 12
----

skipif mysql # not compatible
query III rowsort label-4243
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + - 46 AND - 12
----

query I rowsort
SELECT ALL + 16 + - 86 + col1 FROM tab0 AS cor0
----
-49
-69
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 + 61 + - col2 * col0 * - 10 AND + 3 * - + col1
----

query I rowsort
SELECT DISTINCT 50 + - 16 FROM tab0 AS cor0
----
34

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL OR NOT ( NULL ) < ( col0 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT 96 - + SUM( DISTINCT + - col1 ) FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-4248
SELECT 96 - + SUM ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
291

query I rowsort
SELECT DISTINCT - + AVG ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - MAX( - 22 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4250
SELECT - MAX ( - 22 ) FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL col2 * - col1 * - col2 FROM tab0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + 16 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT COUNT( - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT COUNT ( - col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - col0 * - col2 - + col0 <> col1 - + ( - ( + - col2 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4255
SELECT DISTINCT SUM( - + ( - + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT SUM ( - + ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 76 * col2 * + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-121600
-255664
-40204

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 * - col2 < - col2
----
-3

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 * - col2 < - col2
----
-3

query I rowsort
SELECT 42 * + - 58 * - - 82 FROM tab1 AS cor0
----
-199752
-199752
-199752

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4260
SELECT 57 + + + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4260
SELECT 57 + + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-4261
SELECT - col0 DIV + + 80 + col0 + - col1, col0 FROM tab1 AS cor0
----
37
51
43
91
79
85

skipif mysql # not compatible
query II rowsort label-4261
SELECT - col0 / + + 80 + col0 + - col1, col0 FROM tab1 AS cor0
----
37
51
43
91
79
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 54 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 93 + - col0 AS col0 FROM tab2 AS cor0
----
18
29
47

query II rowsort
SELECT ALL - col2 + col1, + col1 AS col1 FROM tab0 AS cor0
----
-98
1
11
21
34
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4265
SELECT ALL col1 DIV + 26 AS col1, + col1 * + 14 FROM tab0
----
0
14
0
294
3
1134

skipif mysql # not compatible
query II rowsort label-4265
SELECT ALL col1 / + 26 AS col1, + col1 * + 14 FROM tab0
----
0
14
0
294
3
1134

query I rowsort
SELECT ALL + - col0 FROM tab0 WHERE + ( col2 ) > + + col1 + - 91 * - col1 - ( + - col1 ) / col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT COUNT( 38 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4267
SELECT COUNT ( 38 ) FROM tab0
----
3

query I rowsort
SELECT ALL 4 FROM tab2 WHERE NULL IS NULL
----
4
4
4

query I rowsort
SELECT DISTINCT - + 28 + col0 * - col2 FROM tab0 AS cor0
----
-733
-898
-9631

query I rowsort
SELECT - - col2 * + - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT ALL + COUNT( * ), 88 * MAX( 8 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
704

skipif mysql # not compatible
query II rowsort label-4271
SELECT ALL + COUNT ( * ), 88 * MAX ( 8 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
704

query I rowsort
SELECT - 7 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query II rowsort
SELECT - 34 + col1 + + col0 AS col0, col2 FROM tab1
----
104
68
31
96
56
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4274
SELECT 85 + - - CAST( NULL AS SIGNED ) + - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT 85 + - - CAST ( NULL AS INTEGER ) + - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col1 ) FROM tab0 AS cor0 WHERE ( ( NOT ( NULL IS NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT COUNT( * ) + MIN( DISTINCT + 93 ) col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4276
SELECT COUNT ( * ) + MIN ( DISTINCT + 93 ) col0 FROM tab0 AS cor0
----
96

query II rowsort
SELECT DISTINCT + col2 AS col1, + col1 + - 95 AS col1 FROM tab1 AS cor0
----
59
-90
68
-48
96
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT - 47 * - COUNT( * ) FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4278
SELECT - 47 * - COUNT ( * ) FROM tab0 AS cor0
----
141

query I rowsort
SELECT DISTINCT ( - - 71 ) AS col1 FROM tab1 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT - + MIN( DISTINCT - 37 ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-4280
SELECT - + MIN ( DISTINCT - 37 ) FROM tab1 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL + + ( - MAX( DISTINCT ( + + 39 ) ) ) col0 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4281
SELECT ALL + + ( - MAX ( DISTINCT ( + + 39 ) ) ) col0 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT ALL + + 33 AS col0 FROM tab2 cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT + col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - - 75 + - 78 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4283
SELECT + col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - - 75 + - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL + MAX( - 60 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL + MAX ( - 60 ) FROM tab2
----
-60

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 51 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col1 + + col0 < - 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT + COUNT( * ) * - 13 AS col2 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-4287
SELECT + COUNT ( * ) * - 13 AS col2 FROM tab2
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4288
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) <= - + 84
----

skipif mysql # not compatible
query III rowsort label-4288
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) <= - + 84
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT + 44 DIV - + COUNT( * ) + + COUNT( * ) + 71 col1 FROM tab2
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4289
SELECT + 44 / - + COUNT ( * ) + + COUNT ( * ) + 71 col1 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT 78 * + + SUM( + col2 ) + + 33 FROM tab2
----
9471

skipif mysql # not compatible
query I rowsort label-4290
SELECT 78 * + + SUM ( + col2 ) + + 33 FROM tab2
----
9471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT CAST( - + col2 AS SIGNED ) + - + col0 FROM tab0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-4291
SELECT CAST ( - + col2 AS INTEGER ) + - + col0 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT - + MIN( DISTINCT + 56 ) * - 4 + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
233

skipif mysql # not compatible
query I rowsort label-4292
SELECT - + MIN ( DISTINCT + 56 ) * - 4 + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
233

query I rowsort
SELECT DISTINCT ( - + 8 ) * ( + 78 ) FROM tab2 AS cor0
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL 86 * - COUNT( DISTINCT + col0 ) + COUNT( * ) col0 FROM tab1 cor0
----
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4294
SELECT ALL 86 * - COUNT ( DISTINCT + col0 ) + COUNT ( * ) col0 FROM tab1 cor0
----
-255

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4295
SELECT * FROM tab1 AS cor0 WHERE - CAST( + - 83 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4295
SELECT * FROM tab1 AS cor0 WHERE - CAST ( + - 83 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + col1 + + - 36 AS col1 FROM tab1 cor0
----
-22
-31
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 37 col1, + 74 * col2 FROM tab2 cor0
----
37
1702
37
2960
37
4292

query I rowsort
SELECT + col2 + col1 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT - col1 * + col2 / CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT - col1 * + col2 / CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - 89 ) + col0 * + col2 FROM tab1
----
4985
5104
6277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT 83 * MAX( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT 83 * MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col2 col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT + col1 * - 75 * - col1 FROM tab2
----
195075
336675
444675

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL AND ( - - 75 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT col2 DIV + col1 - - col1 AS col2 FROM tab1
----
16
20
48

skipif mysql # not compatible
query I rowsort label-4305
SELECT col2 / + col1 - - col1 AS col2 FROM tab1
----
16
20
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4306
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + col2 ) AND NOT ( 31 * 65 + - col0 ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4306
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + col2 ) AND NOT ( 31 * 65 + - col0 ) = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 - col2 + 84 * col1 * - col2 + + 11 FROM tab1
----
-112967
-24823
-268474

query II rowsort
SELECT - 71 + - col1, col0 AS col0 FROM tab2
----
-122
46
-138
75
-148
64

query I rowsort
SELECT + + 12 + col2 * - col0 FROM tab2 cor0
----
-1046
-2548
-4338

query II rowsort
SELECT - + col0 + + 54 AS col0, col2 * - col2 FROM tab2 AS cor0
----
-10
-1600
-21
-3364
8
-529

query I rowsort
SELECT DISTINCT col2 + - - col1 + + 25 + col1 + - 64 AS col2 FROM tab2
----
153
155
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT col0 DIV + - 51 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4312
SELECT col0 / + - 51 AS col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL 45 * - col2 AS col1 FROM tab0
----
-2115
-4455
-450

query I rowsort
SELECT - 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4315
SELECT ALL + + 1 DIV + COUNT( * ) + - 62 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + + 1 / + COUNT ( * ) + - 62 FROM tab0 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT DISTINCT + + col0 / + col0 + - - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IN ( - 80, - col0, + col2 )
----

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT + + col0 / + col0 + - - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IN ( - 80, - col0, + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4317
SELECT DISTINCT - 7 DIV COUNT( ALL - ( - 83 ) ) AS col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - 7 / COUNT ( ALL - ( - 83 ) ) AS col2 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT + COUNT( DISTINCT col0 ) * 9 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4318
SELECT + COUNT ( DISTINCT col0 ) * 9 FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT DISTINCT ( - CAST( - 30 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4319
SELECT DISTINCT ( - CAST ( - 30 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 85 )
----

query I rowsort
SELECT - ( - + 73 ) AS col2 FROM tab1
----
73
73
73

query I rowsort
SELECT + 25 AS col1 FROM tab1 WHERE NOT NULL < col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT + 58 DIV + col2 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4323
SELECT + 58 / + col2 AS col0 FROM tab2
----
1
1
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT - col2 DIV + 81 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT - col2 / + 81 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4326
SELECT ALL * FROM tab1 WHERE CAST( ( + 2 ) AS DECIMAL ) * + col1 + - - col0 * 78 + CAST( - 14 AS SIGNED ) + col0 NOT BETWEEN + + col1 AND - - col0 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4326
SELECT ALL * FROM tab1 WHERE CAST ( ( + 2 ) AS REAL ) * + col1 + - - col0 * 78 + CAST ( - 14 AS INTEGER ) + col0 NOT BETWEEN + + col1 AND - - col0 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT + ( CAST( col2 AS SIGNED ) ) * + col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-4328
SELECT + ( CAST ( col2 AS INTEGER ) ) * + col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT - col1 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT col0 * + 20, col2 FROM tab2
----
1280
40
1500
58
920
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT COUNT( ALL + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT COUNT ( ALL + col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL - col2 * + ( + 69 ) FROM tab1
----
-4071
-4692
-6624

query II rowsort
SELECT 12 + - + 40 + + col1, col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-27
99
-7
10
53
47

query I rowsort
SELECT DISTINCT + col0 + + - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT col1 * + + 3 + + 76 - CAST( NULL AS SIGNED ) * - col1 + - 90 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT col1 * + + 3 + + 76 - CAST ( NULL AS INTEGER ) * - col1 + - 90 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ALL - + MAX( 43 ) + + 90 AS col0 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL - + MAX ( 43 ) + + 90 AS col0 FROM tab2 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT - 64 DIV - col2 + 63 AS col2 FROM tab2 AS cor0
----
64
64
65

skipif mysql # not compatible
query I rowsort label-4337
SELECT - 64 / - col2 + 63 AS col2 FROM tab2 AS cor0
----
64
64
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT + + col2 + + col2 * + CAST( + + 18 AS SIGNED ) FROM tab0 AS cor0
----
1881
190
893

skipif mysql # not compatible
query I rowsort label-4338
SELECT + + col2 + + col2 * + CAST ( + + 18 AS INTEGER ) FROM tab0 AS cor0
----
1881
190
893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4339
SELECT + - MIN( ALL - 98 ) DIV - - COUNT( - 90 ) + - - ( + 10 ) AS col0 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-4339
SELECT + - MIN ( ALL - 98 ) / - - COUNT ( - 90 ) + - - ( + 10 ) AS col0 FROM tab2 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL - SUM( + col2 ) + COUNT( * ) col1 FROM tab1 cor0
----
-220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4340
SELECT ALL - SUM ( + col2 ) + COUNT ( * ) col1 FROM tab1 cor0
----
-220

query III rowsort
SELECT * FROM tab2 WHERE - - col2 NOT BETWEEN - - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4342
SELECT ALL - COUNT( * ), 23 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0
23

skipif mysql # not compatible
query II rowsort label-4342
SELECT ALL - COUNT ( * ), 23 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4343
SELECT * FROM tab1 WHERE - CAST( col2 AS SIGNED ) + - 36 = NULL
----

skipif mysql # not compatible
query III rowsort label-4343
SELECT * FROM tab1 WHERE - CAST ( col2 AS INTEGER ) + - 36 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - col2 NOT IN ( - col2, + col1, + 74 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, ( + col2 ) col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL COUNT( + + col1 ) * + COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4346
SELECT ALL COUNT ( + + col1 ) * + COUNT ( * ) col1 FROM tab2
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4347
SELECT ALL CAST( NULL AS DECIMAL ) + - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL CAST ( NULL AS REAL ) + - - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + - 25 AS col0 FROM tab2
----
-1000
-1450
-575

query I rowsort
SELECT DISTINCT 84 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
84

query I rowsort
SELECT DISTINCT col1 * 62 * - 70 * - col1 FROM tab2
----
11288340
19482260
25731860

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4352
SELECT - MIN( + col2 ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT - MIN ( + col2 ) * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT ALL + col0 DIV 71 col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4353
SELECT ALL + col0 / 71 col0 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4354
SELECT DISTINCT 73 DIV + col2 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT 73 / + col2 FROM tab2
----
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT - CAST( + ( + - col0 ) AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4355
SELECT - CAST ( + ( + - col0 ) AS INTEGER ) FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT ALL + - col1 * - 94 + + - col0 + - 43 DIV 97 FROM tab0 AS cor0
----
-3
1887
7599

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL + - col1 * - 94 + + - col0 + - 43 / 97 FROM tab0 AS cor0
----
-3
1887
7599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col0 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 * col2 * - col0 col2 FROM tab0
----
-14805
-18270
-201663

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4359
SELECT * FROM tab2 AS cor0 WHERE 47 + + col1 + CAST( NULL AS SIGNED ) + + + col2 - + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4359
SELECT * FROM tab2 AS cor0 WHERE 47 + + col1 + CAST ( NULL AS INTEGER ) + + + col2 - + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE + col0 * + col1 * + 3 - - col1 > NULL
----

query I rowsort
SELECT DISTINCT 62 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4362
SELECT - + 33 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-33
NULL
-33
NULL
-33
NULL

skipif mysql # not compatible
query II rowsort label-4362
SELECT - + 33 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-33
NULL
-33
NULL
-33
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4363
SELECT ALL 64 + - + SUM( - + col1 ) + + - ( - 84 ) DIV 81 + - CAST( + - MIN( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
311

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL 64 + - + SUM ( - + col1 ) + + - ( - 84 ) / 81 + - CAST ( + - MIN ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 10 col2 FROM tab0 AS cor0
----
150
870
970

query I rowsort
SELECT + col0 - - ( + col0 ) + - - 78 AS col0 FROM tab0 AS cor0
----
108
252
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + + 86 col2 FROM tab2
----
-109
-126
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT COUNT( * ) * 12 AS col2 FROM tab0 WHERE ( NOT ( NOT + + col2 IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT COUNT ( * ) * 12 AS col2 FROM tab0 WHERE ( NOT ( NOT + + col2 IS NULL ) )
----
0

query I rowsort
SELECT DISTINCT + col1 + col0 + + + col0 FROM tab2
----
143
205
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE + 95 + + col2 - 85 NOT IN ( - CAST( NULL AS SIGNED ) + - 32, col1 )
----

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE + 95 + + col2 - 85 NOT IN ( - CAST ( NULL AS INTEGER ) + - 32, col1 )
----

query I rowsort
SELECT ALL - ( + ( + col1 ) ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * - col0 col0 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT - + 70 AS col1 FROM tab0 cor0
----
-70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 73 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 52 * - - col1 AS col0 FROM tab2 AS cor0
----
2652
3484
4004

query I rowsort
SELECT 47 * + 84 AS col2 FROM tab2 AS cor0
----
3948
3948
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + + 48 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4377
SELECT + + 48 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
144

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT ALL + col1 * - 97 AS col1 FROM tab0 AS cor0
----
-2037
-7857
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT DISTINCT + 29 * + 15 * - - col0 + 4 + + col2 + - - col1 DIV + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
20035
27883
32686

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + 29 * + 15 * - - col0 + 4 + + col2 + - - col1 / + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
20035
27883
32686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4381
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 27 ) IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT DISTINCT - col1 DIV 62 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT - col1 / 62 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT SUM( + col0 ) + + 92 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-4384
SELECT SUM ( + col0 ) + + 92 FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT ALL COUNT( * ), COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4385
SELECT ALL COUNT ( * ), COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT col1 + + col1 * + + col0 - + 14 FROM tab2
----
2383
4991
5078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4387
SELECT - MAX( + - col2 ) DIV - COUNT( * ) + 51 AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4387
SELECT - MAX ( + - col2 ) / - COUNT ( * ) + 51 AS col1 FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT DISTINCT - 36, 25 * COUNT( * ) + - 8 col2 FROM tab2
----
-36
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4388
SELECT DISTINCT - 36, 25 * COUNT ( * ) + - 8 col2 FROM tab2
----
-36
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - MIN( DISTINCT - col1 ) + - COUNT( * ) FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-4389
SELECT - MIN ( DISTINCT - col1 ) + - COUNT ( * ) FROM tab2 cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + 84 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + 84 = NULL
----
0

query I rowsort
SELECT - 92 * - col2 * - col0 FROM tab0 AS cor0
----
-64860
-80040
-883476

query I rowsort
SELECT col2 * - ( - + col2 ) FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4393
SELECT DISTINCT col2 * - col0 - 54 AS col1 FROM tab2 cor0 WHERE col1 + - CAST( col1 AS DECIMAL ) <> - col1
----
-1112
-2614
-4404

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT col2 * - col0 - 54 AS col1 FROM tab2 cor0 WHERE col1 + - CAST ( col1 AS REAL ) <> - col1
----
-1112
-2614
-4404

query I rowsort
SELECT - 91 * 2 + + 89 AS col0 FROM tab2 AS cor0
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4396
SELECT - col1 + - + col0 / col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT - col1 + - + col0 / col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT col2 DIV col0 + + col2 AS col0 FROM tab0 AS cor0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-4397
SELECT col2 / col0 + + col2 AS col0 FROM tab0 AS cor0
----
10
100
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + col2, + col1 col2 FROM tab1 AS cor0
----
-23
47
-26
5
45
14

query I rowsort
SELECT - - col0 AS col1 FROM tab2 AS cor0 WHERE col0 > - 81
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT + 65 * MAX( ALL col1 ) - + 89 - - 53 AS col2 FROM tab0 AS cor0
----
5229

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT + 65 * MAX ( ALL col1 ) - + 89 - - 53 AS col2 FROM tab0 AS cor0
----
5229

query I rowsort
SELECT ALL col2 + + - 78 AS col1 FROM tab0 AS cor0
----
-31
-68
21

query I rowsort
SELECT + + 89 + - + col1 AS col2 FROM tab2 AS cor0
----
12
22
38

query I rowsort
SELECT DISTINCT - - col2 + - ( 87 ) FROM tab2 AS cor0
----
-29
-47
-64

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 * - ( + col0 ) - - 16 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 28 >= - - col1
----
15
81
47

query I rowsort
SELECT - col2 * - + 80 FROM tab1 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT ALL - CAST( NULL AS SIGNED ) - + - 82 + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - CAST ( NULL AS INTEGER ) - + - 82 + col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 40 + - 13 + - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 61 - - 93 AS col1 FROM tab0
----
154
154
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT CAST( NULL AS SIGNED ) * - + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT CAST ( NULL AS INTEGER ) * - + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab2 AS cor0 WHERE NULL <> + 93 * + + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 79 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT + SUM( ALL - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4413
SELECT + SUM ( ALL - col0 ) FROM tab2
----
-185

query II rowsort
SELECT + col0 * col2 AS col0, + col0 AS col2 FROM tab1
----
4896
51
5015
85
6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT + 97 + - MAX( ALL - - col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT + 97 + - MAX ( ALL - - col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col0 FROM tab2
----
43
43
43

query I rowsort
SELECT DISTINCT + ( - + ( 19 ) ) AS col2 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT ALL - 35 * - - 97 FROM tab1 AS cor0
----
-3395
-3395
-3395

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT - COUNT( * ) * 30 AS col0 FROM tab0 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4419
SELECT - COUNT ( * ) * 30 AS col0 FROM tab0 cor0
----
-90

query I rowsort
SELECT DISTINCT + ( - - col1 ) + + 99 AS col1 FROM tab0 AS cor0
----
100
120
180

onlyif mysql # aggregate syntax: 
query II rowsort label-4421
SELECT DISTINCT - MAX( ALL - 80 ) * - - MIN( ALL + col1 ) * ( + 59 ) * - 87 - - COUNT( * ) + 96 AS col0, + COUNT( * ) FROM tab1 cor0
----
-2053101
3

skipif mysql # not compatible
query II rowsort label-4421
SELECT DISTINCT - MAX ( ALL - 80 ) * - - MIN ( ALL + col1 ) * ( + 59 ) * - 87 - - COUNT ( * ) + 96 AS col0, + COUNT ( * ) FROM tab1 cor0
----
-2053101
3

query I rowsort
SELECT DISTINCT - - col1 * + + ( - + col0 ) FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL ( - SUM( - col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL ( - SUM ( - col1 ) ) FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT 74 DIV + + col1 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4424
SELECT 74 / + + col1 AS col1 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT - SUM( - + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4425
SELECT - SUM ( - + col2 ) AS col0 FROM tab0
----
156

query I rowsort
SELECT ALL 80 * + + col1 AS col2 FROM tab1
----
1120
3760
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4427
SELECT 15 DIV COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-4427
SELECT 15 / COUNT ( * ) FROM tab2
----
5

query I rowsort
SELECT ALL col2 * + 69 + 12 FROM tab2
----
1599
2772
4014

query I rowsort
SELECT + + 8 + - col1 AS col2 FROM tab2 AS cor0
----
-43
-59
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + col2 col0 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 WHERE + 89 = NULL
----

query I rowsort
SELECT ALL + 20 * col2 AS col0 FROM tab2
----
1160
460
800

query I rowsort
SELECT ALL - 7 * + + col2 AS col1 FROM tab2 AS cor0
----
-161
-280
-406

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT ALL - 17 - - + col1 DIV + col1 FROM tab1 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL - 17 - - + col1 / + col1 FROM tab1 AS cor0
----
-16
-16
-16

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * 42 + - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4437
SELECT DISTINCT - 67 + - CAST( NULL AS SIGNED ) / - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT - 67 + - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL MIN( - col2 ) + 98 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL MIN ( - col2 ) + 98 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - ( + col2 ) - - + 3 AS col2 FROM tab0 AS cor0
----
-44
-7
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - + ( col0 ) IS NULL
----

query I rowsort
SELECT ALL - - col0 + 70 FROM tab0 AS cor0
----
157
167
85

query I rowsort
SELECT ALL + ( - + col2 ) * + col0 - - col1 FROM tab2
----
-1007
-2483
-4283

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL 26 - - + COUNT( * ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL 26 - - + COUNT ( * ) FROM tab2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT ALL + 89 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND ( + + CAST( - 82 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL + 89 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND ( + + CAST ( - 82 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 75 * col1 col2 FROM tab2
----
-231000
-291450
-87975

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + col1 BETWEEN + - 91 AND - + 89
----
-51
-67
-77

query I rowsort
SELECT ALL 5 FROM tab1 WHERE NOT + col0 >= - + 46
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 99 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4450
SELECT - + CAST( 57 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4450
SELECT - + CAST ( 57 AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4452
SELECT - COUNT( * ) AS col2, COUNT( * ) FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4452
SELECT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab0
----
-3
3

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col1 BETWEEN + 43 * - 18 + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 94 BETWEEN + col0 AND col1
----
-3

skipif mysql # not compatible
query I rowsort label-4454
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 94 BETWEEN + col0 AND col1
----
-3

query I rowsort
SELECT ALL + col2 * + - col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT + - 8 * - MIN( 96 ) FROM tab2 cor0
----
768

skipif mysql # not compatible
query I rowsort label-4456
SELECT + - 8 * - MIN ( 96 ) FROM tab2 cor0
----
768

query I rowsort
SELECT col2 * + + 53 FROM tab0 AS cor0
----
2491
5247
530

query I rowsort
SELECT - 1 + 23 FROM tab1 AS cor0
----
22
22
22

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 39 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 5 + + col1 - - - col0 AS col1 FROM tab0 AS cor0
----
-101
-71
61

query I rowsort
SELECT DISTINCT + + 94 AS col1 FROM tab0 WHERE NOT + + 34 * + - col0 + - 11 IS NULL
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT + col2 + - + col1 DIV - col1 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4462
SELECT + col2 + - + col1 / - col1 FROM tab0
----
100
11
48

query I rowsort
SELECT DISTINCT col2 + - 86 FROM tab1 WHERE - col0 + 18 IS NOT NULL
----
-18
-27
10

query II rowsort
SELECT + - col1 * - col2, col0 AS col2 FROM tab0 AS cor0
----
210
87
3807
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4465
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4466
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT + col1 * - - col0 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE 7 BETWEEN - col0 - col0 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - COUNT( * ) col2 FROM tab0 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-4469
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT DISTINCT + - col2 DIV + col2 + + + 55 - + + col1 AS col1 FROM tab1 AS cor0
----
40
49
7

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + - col2 / + col2 + + + 55 - + + col1 AS col1 FROM tab1 AS cor0
----
40
49
7

query I rowsort
SELECT - 12 + col0 FROM tab0 AS cor0
----
3
75
85

query I rowsort
SELECT DISTINCT + 99 + - col0 FROM tab0 cor0
----
12
2
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE NULL = NULL
----
0

query I rowsort
SELECT - col1 * ( + - 51 ) FROM tab0
----
1071
4131
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL col1 DIV - 18 AS col0 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL col1 / - 18 AS col0 FROM tab0
----
-1
-4
0

query I rowsort
SELECT - ( + + col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT DISTINCT - COUNT( * ) AS col2, ( - - MIN( - + col0 ) ) AS col1 FROM tab0 AS cor0
----
-3
-97

skipif mysql # not compatible
query II rowsort label-4478
SELECT DISTINCT - COUNT ( * ) AS col2, ( - - MIN ( - + col0 ) ) AS col1 FROM tab0 AS cor0
----
-3
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4479
SELECT + CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col0 FROM tab1 WHERE NULL IS NULL
----
19

query I rowsort
SELECT DISTINCT ( - 67 ) + + - 96 - + 76 FROM tab0 AS cor0
----
-239

query I rowsort
SELECT + col1 + col2 FROM tab0 AS cor0 WHERE NOT col0 - 39 IN ( + col2, + col1, + col0, - col2 * - col2, - 14 * + col1 + - col1 - + 25 )
----
100
128
31

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - ( 72 ) IS NOT NULL
----

query I rowsort
SELECT - 31 FROM tab1 AS cor0 WHERE NOT - col2 / + col2 IS NULL
----
-31
-31
-31

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT DISTINCT - + col2 * + 85 / col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - + col2 * + 85 / col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * - col2 - - 68 AS col0 FROM tab2 cor0
----
-1532
-3296
-461

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 + + col0 ) <> 48 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT + 7 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4489
SELECT + 7 / - col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col0 + + + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col0 + + + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4492
SELECT - + col0 DIV col2 * col1 FROM tab2 AS cor0
----
-102
-67
-77

skipif mysql # not compatible
query I rowsort label-4492
SELECT - + col0 / col2 * col1 FROM tab2 AS cor0
----
-102
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT MIN( - col1 ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-81
3

skipif mysql # not compatible
query II rowsort label-4493
SELECT MIN ( - col1 ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-81
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----

query I rowsort
SELECT + + col1 * col2 - - col0 AS col1 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT + 12 * col0 AS col1 FROM tab1
----
1020
1092
612

query I rowsort
SELECT ( - ( col2 ) ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT COUNT( DISTINCT + 44 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4498
SELECT COUNT ( DISTINCT + 44 ) FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 * + ( 39 ) > NULL
----

query I rowsort
SELECT ALL 79 * - 87 FROM tab0
----
-6873
-6873
-6873

query I rowsort
SELECT DISTINCT - 20 * - col2 FROM tab1
----
1180
1360
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL - COUNT( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NULL < col0
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - COUNT ( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NULL < col0
----
0

query I rowsort
SELECT ALL 45 * - ( + col2 ) AS col1 FROM tab0
----
-2115
-4455
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT + + MIN( col2 ) - + 21 AS col0 FROM tab1 WHERE NULL >= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT + + MIN ( col2 ) - + 21 AS col0 FROM tab1 WHERE NULL >= + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT DISTINCT + 93 DIV 99 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + 93 / 99 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col2, - 70 FROM tab1
----
59
-70
68
-70
96
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT + 11 DIV - + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT + 11 / - + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 5 * col1 FROM tab1 AS cor0
----
235
25
70

query II rowsort
SELECT ALL col2 * + col1 * col1, col0 AS col2 FROM tab0 cor0
----
308367
15
4410
87
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT COUNT( DISTINCT + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4510
SELECT COUNT ( DISTINCT + col2 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT MAX( - 6 ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4511
SELECT MAX ( - 6 ) AS col0 FROM tab0 AS cor0
----
-6

query II rowsort
SELECT DISTINCT - col1, - 94 AS col0 FROM tab1
----
-14
-94
-47
-94
-5
-94

query II rowsort
SELECT + 23, col2 AS col2 FROM tab0
----
23
10
23
47
23
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT + COUNT( + 4 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4515
SELECT + COUNT ( + 4 ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL col0 + - - col1 AS col2 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT DISTINCT - + col2 + - col0 + + - col0 FROM tab0 AS cor0
----
-184
-293
-77

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE + 89 * - + col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 AS col0, + col0 col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT + 2 DIV + + col0 * - col2 DIV - + 32 + - 82 * col0 * + - col2 FROM tab1 cor0
----
401472
411230
507416

skipif mysql # not compatible
query I rowsort label-4520
SELECT + 2 / + + col0 * - col2 / - + 32 + - 82 * col0 * + - col2 FROM tab1 cor0
----
401472
411230
507416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - col2 col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT - COUNT( * ) + - SUM( 46 ) FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4522
SELECT - COUNT ( * ) + - SUM ( 46 ) FROM tab2 AS cor0
----
-141

query I rowsort
SELECT ALL + ( + col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - ( + col0 ) AS col0, col1 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT DISTINCT - + 12 - - col2 FROM tab2 WHERE NULL IS NULL
----
11
28
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - MAX( - - 76 ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-4526
SELECT - MAX ( - - 76 ) FROM tab0
----
-76

query I rowsort
SELECT ALL + ( - 37 ) + - - col1 FROM tab1 AS cor0
----
-23
-32
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT ALL - 2 * + - col1 - + - col2 DIV + col0 FROM tab0 AS cor0
----
165
3
42

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL - 2 * + - col1 - + - col2 / + col0 FROM tab0 AS cor0
----
165
3
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT 38 - - COUNT( - 26 ) AS col1 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4529
SELECT 38 - - COUNT ( - 26 ) AS col1 FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT DISTINCT - col2 - - CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT - col2 - - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT col0 + - col2 + - - col1 FROM tab1
----
-31
31
70

query I rowsort
SELECT + - ( + - 46 ) FROM tab2 WHERE NOT col2 IS NULL
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT - col2 DIV + 31 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4533
SELECT - col2 / + 31 FROM tab0
----
-1
-3
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 = + ( 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - ( SUM( 53 ) ) AS col2 FROM tab1 cor0
----
-159

skipif mysql # not compatible
query I rowsort label-4535
SELECT - ( SUM ( 53 ) ) AS col2 FROM tab1 cor0
----
-159

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + col1
----

query II rowsort
SELECT col1 AS col1, + 30 AS col2 FROM tab1 AS cor0
----
14
30
47
30
5
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4538
SELECT + COUNT( DISTINCT - - col0 ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4538
SELECT + COUNT ( DISTINCT - - col0 ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE ( - 16 IS NOT NULL )
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 10 + ( col1 ) + - 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - 22 * 16 + - col1 * col1 FROM tab0 AS cor0
----
-353
-6913
-793

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( col2 ) * + col1 * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT DISTINCT - 87 * + COUNT( * ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - 87 * + COUNT ( * ) FROM tab0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT - COUNT( ALL + col2 ) * - 41 AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-4545
SELECT - COUNT ( ALL + col2 ) * - 41 AS col0 FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL ( + - ( COUNT( * ) ) ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL ( + - ( COUNT ( * ) ) ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT + + AVG ( - + col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4548
SELECT + col0 DIV + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-4548
SELECT + col0 / + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
17
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT - - COUNT( - col2 ) col0, - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4549
SELECT - - COUNT ( - col2 ) col0, - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT + + MAX( + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT + + MAX ( + + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT COUNT( * ) * + 12 AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4551
SELECT COUNT ( * ) * + 12 AS col2 FROM tab2 AS cor0
----
36

query I rowsort
SELECT DISTINCT + 81 + - col2 FROM tab1 cor0
----
-15
13
22

query I rowsort
SELECT DISTINCT 2 * - 5 + - 95 FROM tab0 AS cor0
----
-105

query II rowsort
SELECT ALL col1 + + 73 AS col1, - col2 * - col2 AS col2 FROM tab0 AS cor0
----
154
2209
74
9801
94
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4555
SELECT ALL + 62 DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + 62 / - col1 FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + col0 BETWEEN col1 * 51 AND col1 + + col2 + - col2 + + 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col1 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT + ( - 51 ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ALL - - ( - - 6 ) + - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL - - ( - - 6 ) + - COUNT ( * ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * + col2 + - col1 > col1 * col2 * 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL - 32 + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - 32 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT ALL - 67 + - + col1 FROM tab1 cor0
----
-114
-72
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL + 26 + COUNT( * ) + + + 2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + 26 + COUNT ( * ) + + + 2 FROM tab2
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - - col0 * + ( + 38 ) col0 FROM tab1
----
-1924
-3225
-3411

query II rowsort
SELECT DISTINCT col0 AS col0, + col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT - col2 * - + col0 - - col2 * - col0 * col2 * + + col1 FROM tab0
----
-181830
-2683230
-941094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + 83 ) col1, - col0 AS col2 FROM tab0
----
83
-15
83
-87
83
-97

query II rowsort
SELECT ALL - col2 AS col0, + 25 FROM tab0
----
-10
25
-47
25
-99
25

onlyif mysql # DIV for integer division: 
query II rowsort label-4569
SELECT col0 + - 40 + - 81 * ( 59 ) DIV col1, col2 FROM tab2
----
-36
58
-38
40
-87
23

skipif mysql # not compatible
query II rowsort label-4569
SELECT col0 + - 40 + - 81 * ( 59 ) / col1, col2 FROM tab2
----
-36
58
-38
40
-87
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT ( MAX( DISTINCT 26 ) ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT ( MAX ( DISTINCT 26 ) ) FROM tab2
----
26

query I rowsort
SELECT DISTINCT + - col1 * - col1 FROM tab1 AS cor0 WHERE + 31 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 99 * + col0 - 82 + + - col0 col2, col2 AS col1 FROM tab1 AS cor0
----
4916
96
8248
59
8836
68

query I rowsort
SELECT + 0 * - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL - 27 * + MIN( + - 40 ) FROM tab1 AS cor0
----
1080

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - 27 * + MIN ( + - 40 ) FROM tab1 AS cor0
----
1080

query I rowsort
SELECT + col1 * + col0 + 72 FROM tab0 AS cor0
----
1287
169
1899

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 22 - - col2 BETWEEN col1 AND - 45
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 69 / col2 + + col1 * + col2 * + col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * - 69 + + - col1 - - + col2 + - - col0 + - - col2 * - - 68 * + - col2 FROM tab1 AS cor0
----
-242434
-320599
-630074

query II rowsort
SELECT + col1 AS col2, - 73 AS col0 FROM tab0
----
1
-73
21
-73
81
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT DISTINCT + 7 * - COUNT( * ) * + 52 + + COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
-3267

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT + 7 * - COUNT ( * ) * + 52 + + COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
-3267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 0 col2 FROM tab1
----
-59
0
-68
0
-96
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + - 43 BETWEEN col2 AND + 60
----

query I rowsort
SELECT ALL - ( - - 0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 69 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - col2 * - + col1 * col2 AS col0 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + + MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4586
SELECT + + MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT col2 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL - MIN( ALL - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - MIN ( ALL - col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL - COUNT( ALL - 35 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - COUNT ( ALL - 35 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL 73 * + 69 FROM tab2
----
5037
5037
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL COUNT( * ) * - MAX( - 71 ) FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL COUNT ( * ) * - MAX ( - 71 ) FROM tab2
----
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4592
SELECT DISTINCT 63 + - 85 DIV COUNT( * ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT 63 + - 85 / COUNT ( * ) FROM tab1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT col1 AS col0 FROM tab1 WHERE + 85 / + col1 - - CAST( col0 AS SIGNED ) BETWEEN + 68 AND col0
----

skipif mysql # not compatible
query I rowsort label-4593
SELECT col1 AS col0 FROM tab1 WHERE + 85 / + col1 - - CAST ( col0 AS INTEGER ) BETWEEN + 68 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT COUNT( * ) * COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4594
SELECT COUNT ( * ) * COUNT ( * ) col1 FROM tab1
----
9

query I rowsort
SELECT ALL 70 - + col0 AS col2 FROM tab1
----
-15
-21
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4596
SELECT - COUNT( * ) col1 FROM tab2 WHERE + col0 / CAST( NULL AS DECIMAL ) > ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4596
SELECT - COUNT ( * ) col1 FROM tab2 WHERE + col0 / CAST ( NULL AS REAL ) > ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( col1 ) / col0 + col0 ) = 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL COUNT( * ) + 14 * COUNT( * ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL COUNT ( * ) + 14 * COUNT ( * ) AS col0 FROM tab0
----
45

query I rowsort
SELECT 75 * 26 AS col2 FROM tab1
----
1950
1950
1950

query I rowsort
SELECT ALL + 20 * - 0 + 19 AS col0 FROM tab0
----
19
19
19

query I rowsort
SELECT col2 * 81 FROM tab0
----
3807
8019
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4602
SELECT - CAST( NULL AS SIGNED ) * - MIN( - 98 / col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT - CAST ( NULL AS INTEGER ) * - MIN ( - 98 / col0 ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL COUNT( * ) + 46 * - 91 FROM tab1
----
-4183

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL COUNT ( * ) + 46 * - 91 FROM tab1
----
-4183

query I rowsort
SELECT ALL 77 * + col2 FROM tab1
----
4543
5236
7392

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( - 18 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + 26 * - 55 AS col2 FROM tab1
----
-1481
-1515
-1521

query I rowsort
SELECT - 67 + ( col1 ) FROM tab0
----
-46
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT SUM( ALL col1 ) FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT SUM ( ALL col1 ) FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab2 WHERE NOT + col0 = + col2
----
9

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE NOT + col0 = + col2
----
9

query I rowsort
SELECT - 57 + - 83 AS col0 FROM tab2
----
-140
-140
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT + 64 - MAX( ALL + col2 ) AS col2 FROM tab1 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + 64 - MAX ( ALL + col2 ) AS col2 FROM tab1 WHERE NOT NULL <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL ( MAX( ALL col2 ) ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL ( MAX ( ALL col2 ) ) AS col0 FROM tab1
----
96

query I rowsort
SELECT ALL + ( + 78 ) AS col2 FROM tab0
----
78
78
78

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * col1 + + 90 IS NOT NULL
----

query I rowsort
SELECT + col0 + 22 FROM tab0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 92 col1 FROM tab2
----
4692
6164
7084

query I rowsort
SELECT ALL ( col0 ) - 30 * + 2 AS col2 FROM tab2
----
-14
15
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT + COUNT( * ) + 6 AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT + COUNT ( * ) + 6 AS col0 FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 10 > col2 - ( 24 ) / + col2
----
87
21
10

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 3 * col2 ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col0 NOT IN ( - 94 * - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4623
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT COUNT( * ) * 85 FROM tab1 cor0 CROSS JOIN tab1
----
765

skipif mysql # not compatible
query I rowsort label-4624
SELECT COUNT ( * ) * 85 FROM tab1 cor0 CROSS JOIN tab1
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col2 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 57 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL - - SUM( ALL col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL - - SUM ( ALL col2 ) FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 90 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 90 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ( 43 ) * + COUNT( * ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-4630
SELECT ( 43 ) * + COUNT ( * ) FROM tab2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ( + COUNT( * ) ) * 41 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-4631
SELECT ( + COUNT ( * ) ) * 41 FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL MIN( - - 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL MIN ( - - 16 ) FROM tab2
----
16

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND col2 * - col2
----

query I rowsort
SELECT col0 + + ( col1 ) FROM tab2 WHERE NOT col2 - - col2 / col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT - col2 DIV 91 * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4635
SELECT - col2 / 91 * - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 57 * - - col1 FROM tab1
----
2679
285
798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + AVG ( - 83 ) + 79 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4637
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + AVG ( - 83 ) + 79 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 77 + - col2 AS col1 FROM tab0 cor0
----
-124
-176
-87

query I rowsort
SELECT ALL col1 + + + 12 * col2 AS col1 FROM tab2 AS cor0
----
327
557
763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT - 21 + - + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-4640
SELECT - 21 + - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + 71 col2 FROM tab2
----
148
148
148

query I rowsort
SELECT 57 * 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6eb6b7c2affc0040e035f01fc0b48d15

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT DISTINCT - COUNT( * ) * 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-387

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - COUNT ( * ) * 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-387

query III rowsort
SELECT * FROM tab0 WHERE + + col0 * - col2 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL + COUNT( * ) + - ( COUNT( - col2 ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + COUNT ( * ) + - ( COUNT ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col0 * 47 AS col2 FROM tab2 AS cor0
----
-2162
-3008
-3525

query I rowsort
SELECT ALL + col1 + - 73 AS col2 FROM tab1 cor0
----
-26
-59
-68

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( + col2 ) < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + 98 AS col1 FROM tab0 AS cor0
----
-1
98
-21
98
-81
98

query I rowsort
SELECT - col2 + - col2 * col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 27 + col1 * 53 FROM tab0 AS cor0 WHERE 10 * + + col1 IS NOT NULL
----
1140
4320
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + + 42 col1 FROM tab2 cor0
----
-100
-65
-82

query I rowsort
SELECT DISTINCT - col2 - - 28 AS col2 FROM tab1 AS cor0
----
-31
-40
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL + - 27 * + COUNT( * ) * + ( COUNT( * ) ) + + 72 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL + - 27 * + COUNT ( * ) * + ( COUNT ( * ) ) + + 72 FROM tab2 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL + + 41 * - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
369

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + + 41 * - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
369

query I rowsort
SELECT + - col2 - - col2 + + col2 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT 75 - SUM( - ( + col0 ) ) FROM tab1 AS cor0
----
302

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT 75 - SUM ( - ( + col0 ) ) FROM tab1 AS cor0
----
302

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4658
SELECT ALL * FROM tab1 WHERE NOT ( ( + col2 ) / 66 ) IS NULL AND + 68 BETWEEN - 63 * col2 + 15 * CAST( NULL AS SIGNED ) AND CAST( NULL AS DECIMAL ) * 54 - ( 77 + + col1 * + 81 ) * + 94
----

skipif mysql # not compatible
query III rowsort label-4658
SELECT ALL * FROM tab1 WHERE NOT ( ( + col2 ) / 66 ) IS NULL AND + 68 BETWEEN - 63 * col2 + 15 * CAST ( NULL AS INTEGER ) AND CAST ( NULL AS REAL ) * 54 - ( 77 + + col1 * + 81 ) * + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT MAX( - + ( col1 ) ) - - 16 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-4659
SELECT MAX ( - + ( col1 ) ) - - 16 FROM tab2
----
-35

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE - 75 / + ( + col0 ) - col1 IS NULL AND NULL IS NULL
----

query I rowsort
SELECT ALL 2 * + col2 * - - 26 FROM tab0
----
2444
5148
520

query I rowsort
SELECT + col2 * - 69 + col0 FROM tab0
----
-3228
-603
-6734

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4663
SELECT * FROM tab1 WHERE ( col1 + col1 + 39 ) BETWEEN - col2 * col1 + col1 AND + col0 * CAST( NULL AS SIGNED ) + + 50 / col2
----

skipif mysql # not compatible
query III rowsort label-4663
SELECT * FROM tab1 WHERE ( col1 + col1 + 39 ) BETWEEN - col2 * col1 + col1 AND + col0 * CAST ( NULL AS INTEGER ) + + 50 / col2
----

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT - col2 * col1 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 76 * + col1 AS col0 FROM tab2
----
-3876
-5092
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT 41 + + SUM( ALL 52 ) * + + COUNT( * ) col1 FROM tab2
----
509

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4666
SELECT 41 + + SUM ( ALL 52 ) * + + COUNT ( * ) col1 FROM tab2
----
509

query I rowsort
SELECT DISTINCT 87 - + - 56 AS col1 FROM tab2
----
143

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT - - 17 NOT IN ( + - 79 )
----

query I rowsort
SELECT - 27 * + col0 AS col1 FROM tab2 AS cor0
----
-1242
-1728
-2025

query I rowsort
SELECT DISTINCT - 25 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT + COUNT( * ) * 22 FROM tab2 WHERE NOT + col1 BETWEEN - 90 AND ( - - 83 / col1 )
----
66

skipif mysql # not compatible
query I rowsort label-4671
SELECT + COUNT ( * ) * 22 FROM tab2 WHERE NOT + col1 BETWEEN - 90 AND ( - - 83 / col1 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL - col0 / + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - col0 / + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 90 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + 91, - col0 AS col2 FROM tab0 AS cor0
----
-91
-15
-91
-87
-91
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + MAX( 63 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4676
SELECT + MAX ( 63 ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT + + 4 * 10 + - 7 + col0 AS col1 FROM tab0 AS cor0
----
120
130
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col2 col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 cor0 WHERE NOT ( 71 / - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4680
SELECT - 67 DIV - col2 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4680
SELECT - 67 / - col2 AS col0 FROM tab2 AS cor0
----
1
1
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - 84 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - - COUNT( * ) * COUNT( DISTINCT - 32 ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4683
SELECT - - COUNT ( * ) * COUNT ( DISTINCT - 32 ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 + + - col1 + + col0 col1 FROM tab2 cor0
----
2341
4915
5033

query I rowsort
SELECT - 58 + ( - col1 ) FROM tab1
----
-105
-63
-72

query I rowsort
SELECT + + col1 + + col0 FROM tab1 WHERE NOT ( - 32 ) NOT BETWEEN NULL AND col2 + - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT + COUNT( * ) + + + 77 * - 80 * COUNT( * ) AS col2 FROM tab1
----
-18477

skipif mysql # not compatible
query I rowsort label-4687
SELECT + COUNT ( * ) + + + 77 * - 80 * COUNT ( * ) AS col2 FROM tab1
----
-18477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT DISTINCT + CAST( - - COUNT( DISTINCT + + col0 ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + CAST ( - - COUNT ( DISTINCT + + col0 ) AS INTEGER ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT + MAX( + 72 ) AS col0 FROM tab0 WHERE - col2 * + 60 + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + MAX ( + 72 ) AS col0 FROM tab0 WHERE - col2 * + 60 + - col0 IS NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - SUM( - ( + 4 ) ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-4691
SELECT - SUM ( - ( + 4 ) ) FROM tab2
----
12

query I rowsort
SELECT + ( - ( - + 7 ) ) FROM tab0 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4693
SELECT - CAST( NULL AS SIGNED ) AS col2, SUM( + - 51 ) AS col2 FROM tab0 cor0
----
NULL
-153

skipif mysql # not compatible
query II rowsort label-4693
SELECT - CAST ( NULL AS INTEGER ) AS col2, SUM ( + - 51 ) AS col2 FROM tab0 cor0
----
NULL
-153

query I rowsort
SELECT - 89 - - + 54 * col1 FROM tab0 AS cor0 WHERE ( col0 ) - + - col0 IS NOT NULL
----
-35
1045
4285

query II rowsort
SELECT - col0 AS col1, col2 + 0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT DISTINCT col1 + - + 0 + 37 DIV + + col1 FROM tab0 AS cor0
----
22
38
81

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT col1 + - + 0 + 37 / + + col1 FROM tab0 AS cor0
----
22
38
81

query I rowsort
SELECT ( - + 4 ) FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL 77 * col2 FROM tab0
----
3619
7623
770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT 5 + - CAST( - MAX( col2 ) AS SIGNED ) AS col0 FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-4699
SELECT 5 + - CAST ( - MAX ( col2 ) AS INTEGER ) AS col0 FROM tab0
----
104

query I rowsort
SELECT - - col1 * + col2 * col1 + 95 FROM tab1 AS cor0
----
150307
1570
18911

query I rowsort
SELECT col0 + + 10 - - - col2 * - 63 + col1 AS col0 FROM tab0 AS cor0 WHERE col2 + - + 33 IS NOT NULL
----
3067
6345
748

query I rowsort
SELECT ALL - col1 + + col1 + - 33 FROM tab2 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT 16 + COUNT( * ), SUM( col1 ) col2 FROM tab1 AS cor0
----
19
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4703
SELECT 16 + COUNT ( * ), SUM ( col1 ) col2 FROM tab1 AS cor0
----
19
66

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE - 51 IS NULL
----

query I rowsort
SELECT - col0 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
-1262
-1837
-196

query I rowsort
SELECT DISTINCT - col1 - - - col1 AS col2 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT - COUNT( * ) * 1 AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT - COUNT ( * ) * 1 AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT 51 * - COUNT( * ) AS col1 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT 51 * - COUNT ( * ) AS col1 FROM tab1
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4710
SELECT ALL COUNT( * ) DIV + 14 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4710
SELECT ALL COUNT ( * ) / + 14 col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4711
SELECT ALL - COUNT( * ), 88 + - - ( + 27 ) col0 FROM tab2
----
-3
115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4711
SELECT ALL - COUNT ( * ), 88 + - - ( + 27 ) col0 FROM tab2
----
-3
115

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT DISTINCT col1 DIV - col0 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT col1 / - col0 AS col0 FROM tab2
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4713
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, + ( - col2 ) AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-4713
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, + ( - col2 ) AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT 10 * COUNT( DISTINCT - - 2 ) AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-4714
SELECT 10 * COUNT ( DISTINCT - - 2 ) AS col1 FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT DISTINCT + SUM( ALL col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT + SUM ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE + ( 91 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 - + - 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4718
SELECT DISTINCT 52 DIV + 40 - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
10

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT 52 / + 40 - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT SUM( - + col1 ) AS col1, - COUNT( * ) FROM tab2
----
-195
-3

skipif mysql # not compatible
query II rowsort label-4719
SELECT SUM ( - + col1 ) AS col1, - COUNT ( * ) FROM tab2
----
-195
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4720
SELECT DISTINCT 40 + 72 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT 40 + 72 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col0 AS col0, col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 13
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT DISTINCT ( SUM( 95 ) ) * COUNT( DISTINCT 85 + 59 * col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 70 * - ( col1 ) + - - col2 - - col2 - + col0 * - + CAST( NULL AS SIGNED ) * + + col2 * + CAST( NULL AS SIGNED ) + + 85 BETWEEN col2 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT ( SUM ( 95 ) ) * COUNT ( DISTINCT 85 + 59 * col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 70 * - ( col1 ) + - - col2 - - col2 - + col0 * - + CAST ( NULL AS INTEGER ) * + + col2 * + CAST ( NULL AS INTEGER ) + + 85 BETWEEN col2 AND col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + ( col1 ) * - - col1 * col1 NOT IN ( - + CAST( 46 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-4723
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + ( col1 ) * - - col1 * col1 NOT IN ( - + CAST ( 46 AS INTEGER ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT DISTINCT - col0 DIV - - 82 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - col0 / - - 82 AS col1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT 8 * + COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-4725
SELECT 8 * + COUNT ( * ) FROM tab1
----
24

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 WHERE NOT + 19 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 98, 44 + + + 20 * col1 * - col1 col2 FROM tab2
----
-98
-118536
-98
-51976
-98
-89736

query III rowsort
SELECT * FROM tab2 WHERE - 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL - COUNT( * ) + + + 18 col1 FROM tab1
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4729
SELECT ALL - COUNT ( * ) + + + 18 col1 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT - MAX( - 78 ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4730
SELECT - MAX ( - 78 ) FROM tab0
----
78

query I rowsort
SELECT DISTINCT - 59 FROM tab1 WHERE col1 - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 55 + - - 69 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 81 + + col1 AS col2 FROM tab0
----
102
162
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL COUNT( - 91 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL COUNT ( - 91 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + - col1 col0, - col0 AS col1, - + col2 * - 47 + col0 AS col1 FROM tab1 cor0
----
9 values hashing to 93928363620b31076a46a91d3524b77e

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 15 IS NOT NULL AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col0 + - + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT + COUNT( col2 ) - + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4738
SELECT + COUNT ( col2 ) - + + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT - MAX( - 42 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4739
SELECT - MAX ( - 42 ) FROM tab0 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 * col0 col0 FROM tab0 AS cor0
----
-5655
-6305
-975

query II rowsort
SELECT DISTINCT col1 AS col1, col1 + - + 74 FROM tab1 AS cor0
----
14
-60
47
-27
5
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT MIN( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT MIN ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * - col2 * col2 * col2 AS col1 FROM tab0
----
10000
4879681
96059601

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * - col2 * col2 * col2 AS col1 FROM tab0
----
10000
4879681
96059601

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT DISTINCT col2 DIV 16 + - 51 + + + col0 + + + 0 * - ( col2 ) * + col1 * + - col2 AS col0 FROM tab1
----
37
44
6

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT col2 / 16 + - 51 + + + col0 + + + 0 * - ( col2 ) * + col1 * + - col2 AS col0 FROM tab1
----
37
44
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + - 12 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + - 12 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 86 * col1 AS col1 FROM tab1 AS cor0
----
1204
4042
430

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4748
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + CAST( NULL AS SIGNED ) * - - 58
----

skipif mysql # not compatible
query III rowsort label-4748
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + CAST ( NULL AS INTEGER ) * - - 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - col1 + - col1 col0 FROM tab2 AS cor0
----
51
-102
67
-134
77
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT + SUM( ALL - + 35 ) AS col1 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4750
SELECT + SUM ( ALL - + 35 ) AS col1 FROM tab1 AS cor0
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT - col2 + - col2 DIV - col1 AS col2 FROM tab1 cor0
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-4751
SELECT - col2 + - col2 / - col1 AS col2 FROM tab1 cor0
----
-48
-67
-90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 - col0 * + - col1 * + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - 2 + + + MIN( - col1 ) col2 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4753
SELECT - 2 + + + MIN ( - col1 ) col2 FROM tab0 AS cor0
----
-83

query I rowsort
SELECT 37 + 51 * - 78 FROM tab1 cor0
----
-3941
-3941
-3941

query I rowsort
SELECT DISTINCT 28 FROM tab0 WHERE NOT + 35 NOT BETWEEN - - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 < - 59
----

query I rowsort
SELECT ALL 3 * - + col1 * + - 38 + - 19 * + + 85 + - 85 FROM tab1
----
-104
-1130
3658

query I rowsort
SELECT ALL + ( col2 ) * col1 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4759
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN - + col0 * + 52 AND - col1 * + - CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-4759
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN - + col0 * + 52 AND - col1 * + - CAST ( NULL AS INTEGER ) + + col2
----

query I rowsort
SELECT - col1 * + col1 * - 9 AS col2 FROM tab2 cor0
----
23409
40401
53361

query I rowsort
SELECT DISTINCT + 8 * + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
368
512
600

query I rowsort
SELECT DISTINCT ( - col0 ) * + ( - col1 ) FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - col1 * + + col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + + 42 * 29 col1 FROM tab1 AS cor0
----
116928
71862
82824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col0 FROM tab2 AS cor0
----
-81
-81
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 26 >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4767
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) BETWEEN col1 AND + CAST( + 52 AS SIGNED ) + + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4767
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) BETWEEN col1 AND + CAST ( + 52 AS INTEGER ) + + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 96, col2 FROM tab1 AS cor0
----
96
59
96
68
96
96

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 / - col0 FROM tab0 WHERE NOT - col1 * - col0 * + 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4772
SELECT + 97 AS col2, COUNT( DISTINCT + 1 ) - + - 23 DIV COUNT( * ) * + - 39 FROM tab1
----
97
-272

skipif mysql # not compatible
query II rowsort label-4772
SELECT + 97 AS col2, COUNT ( DISTINCT + 1 ) - + - 23 / COUNT ( * ) * + - 39 FROM tab1
----
97
-272

query II rowsort
SELECT ALL col1 AS col0, + 44 FROM tab1
----
14
44
47
44
5
44

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col0 + - + col2 >= col2 - - col1 + col1 - - col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( - + col1 ) < - CAST( NULL AS SIGNED ) * - 79
----

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( - + col1 ) < - CAST ( NULL AS INTEGER ) * - 79
----

query I rowsort
SELECT 9 * - ( 13 ) AS col1 FROM tab0
----
-117
-117
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL 54 * COUNT( * ) col0 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4777
SELECT ALL 54 * COUNT ( * ) col0 FROM tab0 AS cor0
----
162

query II rowsort
SELECT ALL - col1 * - 10, - col2 AS col1 FROM tab2 AS cor0
----
510
-23
670
-58
770
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4779
SELECT COUNT( * ) * - CAST( + 77 AS SIGNED ) AS col0 FROM tab1 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-4779
SELECT COUNT ( * ) * - CAST ( + 77 AS INTEGER ) AS col0 FROM tab1 cor0
----
-231

query I rowsort
SELECT ALL + + 25 AS col2 FROM tab2 cor0
----
25
25
25

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT + MIN( - col0 ) + MIN( - col0 ) col0 FROM tab1
----
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4782
SELECT + MIN ( - col0 ) + MIN ( - col0 ) col0 FROM tab1
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL col0 * CAST( NULL AS SIGNED ) / + col2 col1 FROM tab0 WHERE NULL NOT BETWEEN + + 29 AND col0 / - + 0 * 31
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4783
SELECT ALL col0 * CAST ( NULL AS INTEGER ) / + col2 col1 FROM tab0 WHERE NULL NOT BETWEEN + + 29 AND col0 / - + 0 * 31
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT col2 DIV 34 * - - 95 DIV + col0 + - - col2 * col2 * - col2 + - col1 FROM tab2
----
-12218
-195178
-64076

skipif mysql # not compatible
query I rowsort label-4784
SELECT col2 / 34 * - - 95 / + col0 + - - col2 * col2 * - col2 + - col1 FROM tab2
----
-12218
-195178
-64076

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT + 94 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - ( col1 ) * - col2 AS col0 FROM tab1 cor0 WHERE ( col2 ) IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT ALL - 92 + - + col2 FROM tab0 AS cor0
----
-102
-139
-191

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + - col1 NOT IN ( + col1 / - - col2, - col1 * - col1 / + col2, + - 80, col1, - - col2 * - - col2 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + - col2 AS col1 FROM tab0 cor0
----
-100
-128
-31

query II rowsort
SELECT ALL + col1 AS col1, - col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4791
SELECT - col0 * - + col0 AS col1, CAST( NULL AS SIGNED ) + - 96 AS col0 FROM tab0 cor0
----
225
NULL
7569
NULL
9409
NULL

skipif mysql # not compatible
query II rowsort label-4791
SELECT - col0 * - + col0 AS col1, CAST ( NULL AS INTEGER ) + - 96 AS col0 FROM tab0 cor0
----
225
NULL
7569
NULL
9409
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4792
SELECT * FROM tab1 AS cor0 WHERE col0 * + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4792
SELECT * FROM tab1 AS cor0 WHERE col0 * + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 60 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 98 * 49 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, ( col0 ) + + - col2 FROM tab0
----
-1
-2
-21
77
-81
-32

query I rowsort
SELECT col0 * + col1 * 97 * 49 FROM tab1
----
2020025
20328581
3393642

query I rowsort
SELECT + 83 - - + col1 FROM tab1
----
130
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT - 49 + + SUM( col2 ) AS col1 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-4798
SELECT - 49 + + SUM ( col2 ) AS col1 FROM tab1
----
174

query II rowsort
SELECT DISTINCT 55 AS col0, col2 * col0 AS col0 FROM tab1
----
55
4896
55
5015
55
6188

query I rowsort
SELECT DISTINCT 60 + - + col0 AS col1 FROM tab2 AS cor0
----
-15
-4
14

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL >= 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT - - ( - + ( - + COUNT( 83 ) ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4802
SELECT - - ( - + ( - + COUNT ( 83 ) ) ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * - 62 * - - col1 - - + col2 + + col0 AS col0 FROM tab1
----
12299
137117
1694

query I rowsort
SELECT + - 15 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT - 38 * - - 37 FROM tab1 cor0
----
-1406

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 63 NOT IN ( - col1, - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 91 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 77 * + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + col0 ) col2, + col1 FROM tab0 AS cor0 WHERE - ( - col1 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT - - CAST( + ( ( + + 22 ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-4810
SELECT - - CAST ( + ( ( + + 22 ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # DIV for integer division: 
query II rowsort label-4811
SELECT + 71 DIV - col0 AS col1, - 50 AS col0 FROM tab0 AS cor0
----
-4
-50
0
-50
0
-50

skipif mysql # not compatible
query II rowsort label-4811
SELECT + 71 / - col0 AS col1, - 50 AS col0 FROM tab0 AS cor0
----
-4
-50
0
-50
0
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT 22 DIV + + 46 * col1 * col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4812
SELECT 22 / + + 46 * col1 * col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 * + - col2 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT - col1 AS col2, + 5 FROM tab2
----
-51
5
-67
5
-77
5

query I rowsort
SELECT DISTINCT - 32 * - 33 AS col0 FROM tab2 WHERE + + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col1 FROM tab0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT CAST( - - col1 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col0 ) col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4819
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + 9 AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4819
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 9 AS col0 FROM tab2 AS cor0
----
27

query II rowsort
SELECT + + 20 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
20
10
20
47
20
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL + - COUNT( + - 0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + - COUNT ( + - 0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4822
SELECT CAST( NULL AS SIGNED ) col0, col2 AS col1, col2 AS col1 FROM tab1
----
9 values hashing to b59e0c57417893bacbd8bdd86d9d21eb

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4822
SELECT CAST ( NULL AS INTEGER ) col0, col2 AS col1, col2 AS col1 FROM tab1
----
9 values hashing to b59e0c57417893bacbd8bdd86d9d21eb

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( 23 ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-4823
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( 23 ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT - COUNT( ALL - col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - COUNT ( ALL - col1 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + + + 69 IS NULL
----

query I rowsort
SELECT + ( + col1 ) * + + col0 + + 89 FROM tab1 AS cor0
----
4366
514
803

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 93 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4828
SELECT ALL - + 68 * + col2 + + col0 / - CAST( NULL AS DECIMAL ) * - - 20 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - + 68 * + col2 + + col0 / - CAST ( NULL AS REAL ) * - - 20 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4830
SELECT + - CAST( - MIN( - col2 ) AS SIGNED ) * + + COUNT( - col1 ) + + - 33 FROM tab0 cor0
----
-330

skipif mysql # not compatible
query I rowsort label-4830
SELECT + - CAST ( - MIN ( - col2 ) AS INTEGER ) * + + COUNT ( - col1 ) + + - 33 FROM tab0 cor0
----
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT + + 17 * col1 + CAST( NULL AS SIGNED ) + - + col0 + - + col2 * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT + + 17 * col1 + CAST ( NULL AS INTEGER ) + - + col0 + - + col2 * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + col1 ) + + - col0 NOT BETWEEN - col2 + + col2 * + + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - - 35 AS col2 FROM tab2
----
1400
2030
805

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4834
SELECT CAST( NULL AS DECIMAL ) * + MAX( + + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT CAST ( NULL AS REAL ) * + MAX ( + + col0 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4835
SELECT ALL 58 * + COUNT( * ), - 12 col0 FROM tab0
----
174
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4835
SELECT ALL 58 * + COUNT ( * ), - 12 col0 FROM tab0
----
174
-12

query I rowsort
SELECT ALL - col1 * 48 FROM tab2
----
-2448
-3216
-3696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 65 col0 FROM tab0
----
1365
5265
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT DISTINCT - col1 DIV + 96 * + + 82 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT - col1 / + 96 * + + 82 FROM tab1
----
0

query I rowsort
SELECT ALL + - col2 - - col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - - col2 - 48 + 47 + - 27 * 64 * - 57 FROM tab0 cor0
----
98505
98542
98594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4841
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT - - COUNT( * ) + + 80 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4842
SELECT - - COUNT ( * ) + + 80 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT + COUNT( * ) + - COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT + COUNT ( * ) + - COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

query I rowsort
SELECT ( 48 ) * col1 * + col2 + col1 + 50 * + - col0 FROM tab1
----
148905
61976
9915

query II rowsort
SELECT ALL - - 69, col2 AS col1 FROM tab1 AS cor0
----
69
59
69
68
69
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2 + - 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT + CAST( - - col2 AS SIGNED ) * CAST( - - 76 AS SIGNED ) FROM tab2 AS cor0
----
1748
3040
4408

skipif mysql # not compatible
query I rowsort label-4847
SELECT + CAST ( - - col2 AS INTEGER ) * CAST ( - - 76 AS INTEGER ) FROM tab2 AS cor0
----
1748
3040
4408

query I rowsort
SELECT ALL ( + - col2 ) * + col0 * + - col1 AS col0 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4849
SELECT 92 DIV + COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4849
SELECT 92 / + COUNT ( * ) FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4850
SELECT ALL + CAST( col0 AS SIGNED ), 87 AS col0 FROM tab0
----
15
87
87
87
97
87

skipif mysql # not compatible
query II rowsort label-4850
SELECT ALL + CAST ( col0 AS INTEGER ), 87 AS col0 FROM tab0
----
15
87
87
87
97
87

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT MAX( + 58 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT MAX ( + 58 ) FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4853
SELECT + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4853
SELECT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 84 IS NULL
----

query I rowsort
SELECT ALL ( - + 65 ) AS col0 FROM tab0 AS cor0
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - + 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT - COUNT( - 5 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4857
SELECT - COUNT ( - 5 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4858
SELECT ALL + ( + col0 ) - + col0 AS col1, col0 DIV - 97 AS col0 FROM tab1 AS cor0
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-4858
SELECT ALL + ( + col0 ) - + col0 AS col1, col0 / - 97 AS col0 FROM tab1 AS cor0
----
0
0
0
0
0
0

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT 82 - col2 AS col1 FROM tab2 AS cor0
----
24
42
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT 6 - COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4863
SELECT 6 - COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col1 * + col2 * - + 27 FROM tab1
----
-36288
-7965
-86292

query II rowsort
SELECT ALL - col1 AS col1, - ( + 13 ) AS col2 FROM tab0
----
-1
-13
-21
-13
-81
-13

query I rowsort
SELECT + 37 + col2 FROM tab2
----
60
77
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT DISTINCT CAST( 97 AS SIGNED ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT CAST ( 97 AS INTEGER ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT ALL col0 DIV - + 98 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL col0 / - + 98 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, 99 FROM tab2
----
-51
99
-67
99
-77
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL + - MIN( + 21 ) AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL + - MIN ( + 21 ) AS col2 FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT - - MAX( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4871
SELECT - - MAX ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT - - 69 AS col0, + 37 + - - col0 AS col0 FROM tab0 AS cor0
----
69
124
69
134
69
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT - MAX( - 11 ) * - + 20 * MIN( ALL - + col0 ) + + + 5 AS col1 FROM tab2 AS cor0
----
16505

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - MAX ( - 11 ) * - + 20 * MIN ( ALL - + col0 ) + + + 5 AS col1 FROM tab2 AS cor0
----
16505

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( + ( col0 ) ) IN ( - + ( + col0 ) )
----

query II rowsort
SELECT ALL ( + ( - col2 ) ) AS col1, col2 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT + + ( - + MAX( + col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT + + ( - + MAX ( + col1 ) ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + + col0 * - - 53 FROM tab2 AS cor0
----
2438
3392
3975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT 27 * + col1 * CAST( col0 AS SIGNED ) + - - col0 FROM tab2 cor0
----
133120
135750
63388

skipif mysql # not compatible
query I rowsort label-4878
SELECT 27 * + col1 * CAST ( col0 AS INTEGER ) + - - col0 FROM tab2 cor0
----
133120
135750
63388

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT - ( 72 ) IS NULL
----
15
87
97

query II rowsort
SELECT ALL + + 84 * + + 99 AS col0, col2 * 94 FROM tab2 AS cor0
----
8316
2162
8316
3760
8316
5452

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT DISTINCT - col0 DIV - - col1 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - col0 / - - col1 AS col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT SUM( ALL + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4882
SELECT SUM ( ALL + col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT DISTINCT col0 * + 50 + - - 12 AS col0 FROM tab2
----
2312
3212
3762

query I rowsort
SELECT DISTINCT ( - - 35 ) AS col2 FROM tab0
----
35

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + + 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4886
SELECT CAST( - col0 AS SIGNED ) * - 78 AS col0 FROM tab1
----
3978
6630
7098

skipif mysql # not compatible
query I rowsort label-4886
SELECT CAST ( - col0 AS INTEGER ) * - 78 AS col0 FROM tab1
----
3978
6630
7098

query II rowsort
SELECT DISTINCT col1 AS col2, ( + col1 ) FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL MAX( + - col1 ) * - 26 + 23 * + 48 * + + 36 FROM tab0 AS cor0
----
39770

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL MAX ( + - col1 ) * - 26 + 23 * + 48 * + + 36 FROM tab0 AS cor0
----
39770

query I rowsort
SELECT ALL + - col2 + - col0 - + col1 FROM tab0 AS cor0
----
-118
-143
-197

query I rowsort
SELECT ALL - col1 / 86 FROM tab1 cor0 WHERE NULL < - col2 + col1
----

query I rowsort
SELECT col0 + + col0 + - col1 + 37 FROM tab0 AS cor0
----
-14
190
230

query I rowsort
SELECT + - col1 + + col0 * - + 51 AS col1 FROM tab1 AS cor0
----
-2615
-4340
-4688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4893
SELECT DISTINCT - MIN( DISTINCT - col2 ) - CAST( - - COUNT( * ) AS SIGNED ) DIV + - 82 col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4893
SELECT DISTINCT - MIN ( DISTINCT - col2 ) - CAST ( - - COUNT ( * ) AS INTEGER ) / + - 82 col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL + + COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + + COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT MIN( + + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4895
SELECT MIN ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + col0 + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL COUNT( * ) - 66 AS col2 FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL COUNT ( * ) - 66 AS col2 FROM tab1 cor0
----
-63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 69 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT SUM( + - 17 ) AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT SUM ( + - 17 ) AS col0 FROM tab0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT + ( - - col1 ) FROM tab1 WHERE + - col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT col1 + - col2 + - ( + + col2 ) + 85 * 89 * - - col2 FROM tab0 WHERE NULL IS NULL
----
355542
748738
75651

query I rowsort
SELECT - 38 - + col1 AS col2 FROM tab2
----
-105
-115
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 - + + col1 col1 FROM tab1
----
28
61
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 2 col0 FROM tab1 WHERE col1 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT + ( - COUNT( ALL + col1 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT + ( - COUNT ( ALL + col1 ) ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL - - 46 * + col1 FROM tab1 AS cor0
----
2162
230
644

query II rowsort
SELECT + col1 AS col1, 84 FROM tab1
----
14
84
47
84
5
84

query I rowsort
SELECT - + col1 * + - 68 AS col0 FROM tab1 AS cor0
----
3196
340
952

query I rowsort
SELECT ALL - col2 * - 68 AS col1 FROM tab2 AS cor0
----
1564
2720
3944

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= 78
----

query I rowsort
SELECT ALL - + col0 + - ( + + col1 ) FROM tab2 AS cor0
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 * + col2 col2 FROM tab1 cor0
----
-1475
-150212
-18816

query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND 93 + + col2 * - + col2 * 7 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4916
SELECT DISTINCT + 81 AS col2, COUNT( * ) DIV + SUM( ALL + col1 ) - 79 FROM tab0 AS cor0
----
81
-79

skipif mysql # not compatible
query II rowsort label-4916
SELECT DISTINCT + 81 AS col2, COUNT ( * ) / + SUM ( ALL + col1 ) - 79 FROM tab0 AS cor0
----
81
-79

query I rowsort
SELECT ALL + - col0 * + + col1 - col1 AS col0 FROM tab1 AS cor0
----
-430
-4324
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT DISTINCT 26 DIV - col2 AS col2 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT 26 / - col2 AS col2 FROM tab0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - + MAX( ALL - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT - + MAX ( ALL - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT + MAX( DISTINCT 24 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4920
SELECT + MAX ( DISTINCT 24 ) FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4921
SELECT DISTINCT 33, CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
33
NULL

skipif mysql # not compatible
query II rowsort label-4921
SELECT DISTINCT 33, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
33
NULL

query I rowsort
SELECT col1 * - ( col2 ) AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT DISTINCT + col2 + + CAST( 14 AS SIGNED ) col2 FROM tab2
----
37
54
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4923
SELECT DISTINCT + col2 + + CAST ( 14 AS INTEGER ) col2 FROM tab2
----
37
54
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4924
SELECT - 57 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT - 57 / + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT - 63 * + col2 * - col2 * - col2 + 37 DIV - - 11 col2 FROM tab0 AS cor0
----
-61128834
-62997
-6540846

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4925
SELECT - 63 * + col2 * - col2 * - col2 + 37 / - - 11 col2 FROM tab0 AS cor0
----
-61128834
-62997
-6540846

query I rowsort
SELECT DISTINCT - + col1 * + col2 * - + col0 - + + col2 FROM tab1 AS cor0
----
25016
290768
68448

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT NULL <> NULL ) )
----

query I rowsort
SELECT ALL - + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT DISTINCT - COUNT( * ) + + - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - COUNT ( * ) + + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, col0 col1 FROM tab0
----
-1
97
-21
87
-81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + col2 col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT - + MIN( + col0 ) + - - COUNT( * ) * + - 91 + - 95 FROM tab2 cor0
----
-414

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT - + MIN ( + col0 ) + - - COUNT ( * ) * + - 91 + - 95 FROM tab2 cor0
----
-414

query I rowsort
SELECT ALL 6 * col0 AS col1 FROM tab0 cor0
----
522
582
90

query I rowsort
SELECT + - col0 * - col2 AS col1 FROM tab0 cor0 WHERE 63 IS NOT NULL
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT col0 + - 18 col0 FROM tab0 cor0 WHERE - col2 * col1 / + col1 + + CAST( - 85 AS SIGNED ) BETWEEN NULL AND + 7
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4935
SELECT col0 + - 18 col0 FROM tab0 cor0 WHERE - col2 * col1 / + col1 + + CAST ( - 85 AS INTEGER ) BETWEEN NULL AND + 7
----

query I rowsort
SELECT + col2 - - - 6 * + col0 AS col0 FROM tab0 AS cor0
----
-43
-483
-512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT + col2 * - col0 + - 40 - - col1 / - CAST( NULL AS SIGNED ) + - 40 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT + col2 * - col0 + - 40 - - col1 / - CAST ( NULL AS INTEGER ) + - 40 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 + + col1 col2 FROM tab0
----
117
177
97

query I rowsort
SELECT - col2 * - 71 FROM tab0
----
3337
7029
710

query I rowsort
SELECT 5 * - + col1 FROM tab2
----
-255
-335
-385

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * ( + 52 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT COUNT( + 46 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4942
SELECT COUNT ( + 46 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * - + 71 AS col1 FROM tab2 AS cor0
----
3621
4757
5467

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 86 + - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 71 * - - 45 col0 FROM tab1 AS cor0
----
-3195
-3195
-3195

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 27, - 16 + + 98, - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4946
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 27, - 16 + + 98, - + col2 )
----
0

query II rowsort
SELECT DISTINCT 53, + col1 AS col0 FROM tab2 AS cor0
----
53
51
53
67
53
77

query II rowsort
SELECT + + 17 + col2 + - + 86, 99 AS col0 FROM tab2 AS cor0
----
-11
99
-29
99
-46
99

query I rowsort
SELECT col2 + - 57 FROM tab2 AS cor0
----
-17
-34
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT - COUNT( * ) DIV - + 60 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT - COUNT ( * ) / - + 60 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 26 + + 12 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT + + ( + - col1 ) + 59 AS col0 FROM tab2 AS cor0
----
-18
-8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT DISTINCT - SUM( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT - SUM ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - - ( + col2 ) * - col1 - + col0 + col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT 96 * col0 - + 21 + + col2 AS col2 FROM tab1
----
4971
8198
8783

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT + col1 DIV col0 * col0 + + 60 col1 FROM tab0
----
135
60
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4956
SELECT + col1 / col0 * col0 + + 60 col1 FROM tab0
----
135
60
60

query I rowsort
SELECT ALL + col1 * - col2 - - col1 + - - col0 + - col0 * + 87 FROM tab0
----
-5016
-7671
-8440

query I rowsort
SELECT - 41 + - ( - col1 ) * col0 AS col2 FROM tab1
----
384
4236
673

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4959
SELECT DISTINCT ( col0 ) / CAST( NULL AS SIGNED ) * CAST( - col0 AS DECIMAL ) + - + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT ( col0 ) / CAST ( NULL AS INTEGER ) * CAST ( - col0 AS REAL ) + - + col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab1 cor0 WHERE ( NOT 56 + col0 / - col0 < - col1 )
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT - col2 * - CAST( NULL AS SIGNED ) + ( + 9 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT - col2 * - CAST ( NULL AS INTEGER ) + ( + 9 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col1 + + + 0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4963
SELECT - + CAST( col0 AS SIGNED ) AS col1, - col2 * - 82 AS col0 FROM tab1 AS cor0
----
-51
7872
-85
4838
-91
5576

skipif mysql # not compatible
query II rowsort label-4963
SELECT - + CAST ( col0 AS INTEGER ) AS col1, - col2 * - 82 AS col0 FROM tab1 AS cor0
----
-51
7872
-85
4838
-91
5576

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 86 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + + col0 ) + + + ( - - col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - - 24 FROM tab1 AS cor0
----
1128
120
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT 26 * - COUNT( * ) AS col1 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-4967
SELECT 26 * - COUNT ( * ) AS col1 FROM tab1
----
-78

query II rowsort
SELECT DISTINCT - 85 AS col2, - col1 * - + col0 AS col0 FROM tab0
----
-85
1215
-85
1827
-85
97

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE 38 < NULL OR NOT - 69 + - - col1 IS NOT NULL
----

query I rowsort
SELECT 74 * col1 FROM tab0
----
1554
5994
74

query II rowsort
SELECT DISTINCT col0 AS col2, col1 + - col2 * - + col0 FROM tab2
----
46
1109
64
2637
75
4417

query I rowsort
SELECT ( + - col1 ) * - ( + col0 ) * 17 * + col2 * + 10 FROM tab0
----
1632510
3105900
9707850

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL MAX( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4974
SELECT - - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9

query I rowsort
SELECT 61 + + - ( - + col2 ) * + 35 FROM tab0
----
1706
3526
411

query I rowsort
SELECT DISTINCT + - col1 + + col2 * - + 64 FROM tab0 cor0
----
-3089
-6337
-661

query I rowsort
SELECT - + col1 * + - col1 + + 90 * - - 5 FROM tab0 AS cor0
----
451
7011
891

onlyif mysql # DIV for integer division: 
query II rowsort label-4978
SELECT 25 DIV ( + 11 ), + col1 FROM tab0
----
2
1
2
21
2
81

skipif mysql # not compatible
query II rowsort label-4978
SELECT 25 / ( + 11 ), + col1 FROM tab0
----
2
1
2
21
2
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 36 ) col0 FROM tab2
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ( MIN( + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4980
SELECT ( MIN ( + col2 ) ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4981
SELECT 84 * col1 + - - 87 * + + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4981
SELECT 84 * col1 + - - 87 * + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE - - 9 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4982
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - - 9 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4983
SELECT ALL + - 98 + + CAST( NULL AS DECIMAL ) * col0 * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + - 98 + + CAST ( NULL AS REAL ) * col0 * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + col1 = - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) + + ( - + 44 ) AS col1 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) + + ( - + 44 ) AS col1 FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT DISTINCT 90 - + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT 90 - + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
93

query I rowsort
SELECT ALL - 76 + - 79 AS col0 FROM tab1 AS cor0
----
-155
-155
-155

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT DISTINCT 37 - col2 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT 37 - col2 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4990
SELECT + CAST( + + col1 AS SIGNED ) DIV + col2 AS col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4990
SELECT + CAST ( + + col1 AS INTEGER ) / + col2 AS col2 FROM tab0 cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 19 AS col0, col2 col0 FROM tab0 AS cor0
----
19
10
19
47
19
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = + col2 * - + col1 - + 28 * + col0 * ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT - COUNT( * ) * + ( + - 51 ) * COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
456

skipif mysql # not compatible
query I rowsort label-4993
SELECT - COUNT ( * ) * + ( + - 51 ) * COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-4994
SELECT ALL + - 70 * + + 29 * + - 78 DIV 13 AS col0 FROM tab2 AS cor0
----
12180
12180
12180

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + - 70 * + + 29 * + - 78 / 13 AS col0 FROM tab2 AS cor0
----
12180
12180
12180

query I rowsort
SELECT + col0 * + col1 + - 22 FROM tab2 AS cor0
----
2324
4906
5003

query I rowsort
SELECT ALL + ( - + col2 ) * col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + 78 * - 35 FROM tab1
----
-2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL + CAST( + MAX( + col2 ) AS SIGNED ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + CAST ( + MAX ( + col2 ) AS INTEGER ) AS col1 FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 - 43 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col0 + 25
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( + 50 + + col0, 65 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 60 IN ( + + 18 + + + 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5003
SELECT SUM( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + - 27 ) col0 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT DISTINCT - - col0 + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * - col1 + 17 * col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT + ( + - col1 ) DIV col1 * - 68 col0 FROM tab2 AS cor0
----
68
68
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5006
SELECT + ( + - col1 ) / col1 * - 68 col0 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5007
SELECT + col0 DIV + ( col1 ) FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5007
SELECT + col0 / + ( col1 ) FROM tab2
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + + - col1 NOT BETWEEN - col0 AND NULL
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL COUNT( - col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL COUNT ( - col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT + - 31 + + + col0 * col0 FROM tab2 AS cor0
----
2085
4065
5594

query I rowsort
SELECT - + 77 + - col1 FROM tab0 AS cor0
----
-158
-78
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT COUNT( * ) + + 76 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5012
SELECT COUNT ( * ) + + 76 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
231

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 26 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col1 + col0 - + + col1 AS col2, + ( - + 74 ) AS col1 FROM tab2 AS cor0
----
46
-74
64
-74
75
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL MAX( - - 66 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL MAX ( - - 66 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT + col2 + + - 90 + + + col0 + + col0 FROM tab0 WHERE CAST( + + col2 AS SIGNED ) + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5016
SELECT + col2 + + - 90 + + + col0 + + col0 FROM tab0 WHERE CAST ( + + col2 AS INTEGER ) + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + 72 * ( col0 ) FROM tab2
----
168912
354816
361800

query I rowsort
SELECT ALL ( 78 ) AS col1 FROM tab2
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL - CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5019
SELECT ALL - CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) col0 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE - 66 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5021
SELECT - ( + - COUNT( * ) ) AS col1, 79 AS col1 FROM tab2
----
3
79

skipif mysql # not compatible
query II rowsort label-5021
SELECT - ( + - COUNT ( * ) ) AS col1, 79 AS col1 FROM tab2
----
3
79

query I rowsort
SELECT ALL + 44 + - + col0 FROM tab2
----
-2
-20
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5023
SELECT - CAST( NULL AS SIGNED ) / + 19 + + - AVG ( ALL + col1 ) / + 97 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT - CAST ( NULL AS INTEGER ) / + 19 + + - AVG ( ALL + col1 ) / + 97 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 96 - + ( - 60 ) / + - 38 + - col2
----

query I rowsort
SELECT - - col0 - 89 * - - col1 FROM tab2 AS cor0
----
-4493
-5888
-6789

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL MIN( DISTINCT - col2 ) + + 74 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL MIN ( DISTINCT - col2 ) + + 74 FROM tab1
----
-22

query I rowsort
SELECT - + ( + 45 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5028
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) = col2
----

skipif mysql # not compatible
query III rowsort label-5028
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT - COUNT( 18 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5029
SELECT - COUNT ( 18 ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 96 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + col2 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT COUNT( * ) DIV - MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5033
SELECT COUNT ( * ) / - MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT - col1 DIV - 51 + - - 92 AS col1 FROM tab2 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-5034
SELECT - col1 / - 51 + - - 92 AS col1 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT + 78 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5036
SELECT CAST( + - 34 AS SIGNED ) AS col0 FROM tab1 cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-5036
SELECT CAST ( + - 34 AS INTEGER ) AS col0 FROM tab1 cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT DISTINCT - 84 * + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT - 84 * + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 96 * - 12 FROM tab0 AS cor0
----
-1152

query I rowsort
SELECT ALL - col2 + col2 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT DISTINCT 19 DIV - 32 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT 19 / - 32 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 47 ) > - 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 33 * + - col1 FROM tab1
----
-1551
-165
-462

query II rowsort
SELECT - 47 AS col2, 52 FROM tab1
----
-47
52
-47
52
-47
52

query II rowsort
SELECT ALL col2, col1 * + col2 FROM tab0
----
10
210
47
3807
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT - MIN( 81 ) AS col0 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5045
SELECT - MIN ( 81 ) AS col0 FROM tab1
----
-81

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT DISTINCT COUNT( ALL - + col0 ) + + - 95 AS col1 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT COUNT ( ALL - + col0 ) + + - 95 AS col1 FROM tab1 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - - MIN( + + col2 ) + + 68 col1 FROM tab2 AS cor0 WHERE NOT ( - - 24 IS NULL )
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5048
SELECT - - MIN ( + + col2 ) + + 68 col1 FROM tab2 AS cor0 WHERE NOT ( - - 24 IS NULL )
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5049
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5049
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 49 + + - col0 + - col0 FROM tab1 AS cor0
----
-151
-219
-231

query I rowsort
SELECT - + col1 AS col1 FROM tab2 AS cor0 WHERE - 69 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT ALL - + col1 DIV + - col2 + + - col1 - + col2 - - - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3545
-4739
-9326

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - + col1 / + - col2 + + - col1 - + col2 - - - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3545
-4739
-9326

query I rowsort
SELECT ALL + 45 * col0 * col0 + - - 75 FROM tab0 AS cor0
----
10200
340680
423480

query I rowsort
SELECT DISTINCT col1 + + + 28 FROM tab2 AS cor0
----
105
79
95

query I rowsort
SELECT 58 * + col0 * - col1 + - col2 AS col2 FROM tab1
----
-24709
-248134
-41508

query I rowsort
SELECT DISTINCT 26 * col0 * col2 FROM tab2
----
113100
27508
66560

query II rowsort
SELECT ALL 93 AS col2, - col0 AS col2 FROM tab2
----
93
-46
93
-64
93
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT ALL - COUNT( * ) col2 FROM tab1 WHERE NOT - - col2 >= 63
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5058
SELECT ALL - COUNT ( * ) col2 FROM tab1 WHERE NOT - - col2 >= 63
----
-1

query I rowsort
SELECT - col1 + - + col2 * col2 + - - 82 - - 83 * col1 * + + col0 AS col1 FROM tab1
----
31871
350402
50114

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 WHERE NOT - ( - + col2 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - ( - + col2 ) >= NULL
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE 87 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + col1 AS col0, - 95 FROM tab1 cor0
----
14
-95
47
-95
5
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-5063
SELECT DISTINCT - ( + 72 ) + + col0, 8 DIV + - 76 * - 13 AS col0 FROM tab2 AS cor0
----
-26
0
-8
0
3
0

skipif mysql # not compatible
query II rowsort label-5063
SELECT DISTINCT - ( + 72 ) + + col0, 8 / + - 76 * - 13 AS col0 FROM tab2 AS cor0
----
-26
0
-8
0
3
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 15 / - col0 + + col1 * + 21 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT ALL CAST( NULL AS SIGNED ) - - 27 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL CAST ( NULL AS INTEGER ) - - 27 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT COUNT( DISTINCT col2 ) col2 FROM tab2 WHERE ( + col2 ) NOT IN ( col0 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5067
SELECT COUNT ( DISTINCT col2 ) col2 FROM tab2 WHERE ( + col2 ) NOT IN ( col0 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT col0 DIV - col0 FROM tab0 WHERE NOT ( col1 * 1 ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5068
SELECT col0 / - col0 FROM tab0 WHERE NOT ( col1 * 1 ) IS NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 + - col0 * + 40 FROM tab2
----
-1863
-2600
-3058

query I rowsort
SELECT ( col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5071
SELECT ALL + ( 6 ) + col0 DIV - col2 AS col1 FROM tab0
----
-2
6
6

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL + ( 6 ) + col0 / - col2 AS col1 FROM tab0
----
-2
6
6

query III rowsort
SELECT * FROM tab2 WHERE col0 * - ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT col1 DIV 13 + col0 AS col1 FROM tab0
----
21
88
97

skipif mysql # not compatible
query I rowsort label-5073
SELECT col1 / 13 + col0 AS col1 FROM tab0
----
21
88
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < ( - col2 ) * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col0 FROM tab2
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT + COUNT( - col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT + COUNT ( - col0 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT COUNT( + 10 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT COUNT ( + 10 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND 73 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 4 / 84 + col2 * + 3 ) >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - col2 + - col1 )
----

query I rowsort
SELECT + 33 * - col2 AS col2 FROM tab2
----
-1320
-1914
-759

query I rowsort
SELECT + 44 * + col0 AS col2 FROM tab0
----
3828
4268
660

query I rowsort
SELECT - col0 * - col2 FROM tab2 WHERE NOT NULL IN ( col2 / col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5084
SELECT DISTINCT - COUNT( * ) + + 68 DIV MAX( DISTINCT col1 + 75 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - COUNT ( * ) + + 68 / MAX ( DISTINCT col1 + 75 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT - 19 + CAST( NULL AS SIGNED ) FROM tab0 WHERE - col0 IN ( - 22 )
----

skipif mysql # not compatible
query I rowsort label-5085
SELECT - 19 + CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col0 IN ( - 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5086
SELECT ALL * FROM tab0 WHERE - 78 - col0 <= col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5086
SELECT ALL * FROM tab0 WHERE - 78 - col0 <= col2 * CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5087
SELECT DISTINCT - 83 DIV col1 col2 FROM tab1 WHERE NULL IS NULL
----
-1
-16
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5087
SELECT DISTINCT - 83 / col1 col2 FROM tab1 WHERE NULL IS NULL
----
-1
-16
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * col1 + col2 ) NOT BETWEEN NULL AND 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( - col1 ) col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - ( col1 ) + + 39 FROM tab2 cor0
----
-12
-28
-38

query I rowsort
SELECT DISTINCT + 55 + 69 AS col0 FROM tab1 AS cor0
----
124

query I rowsort
SELECT - col0 * col0 FROM tab2 AS cor0 WHERE - 81 * 76 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5093
SELECT ALL + COUNT( CAST( NULL AS DECIMAL ) ) col2 FROM tab1 cor0 CROSS JOIN tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5093
SELECT ALL + COUNT ( CAST ( NULL AS REAL ) ) col2 FROM tab1 cor0 CROSS JOIN tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 79 * 19 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to c53ab70fd3dfdf16265f4954a1ac0d4b

query I rowsort
SELECT ( col0 ) * col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
2601
7225
8281

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT CAST( + 74 AS SIGNED ) + col0 * 0 FROM tab2 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-5098
SELECT CAST ( + 74 AS INTEGER ) + col0 * 0 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT ALL col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + 69 AS col2 FROM tab0 AS cor0
----
150
70
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5101
SELECT ALL CAST( NULL AS DECIMAL ) + - 94 * 61 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL CAST ( NULL AS REAL ) + - 94 * 61 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT COUNT( ALL + 67 ) AS col1 FROM tab1 AS cor0 WHERE - col1 + - 30 * 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT COUNT ( ALL + 67 ) AS col1 FROM tab1 AS cor0 WHERE - col1 + - 30 * 41 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( + 57 ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5105
SELECT DISTINCT CAST( ( - MAX( col2 ) ) AS SIGNED ) FROM tab1 cor0 WHERE ( + ( - col1 ) ) NOT BETWEEN ( NULL ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT CAST ( ( - MAX ( col2 ) ) AS INTEGER ) FROM tab1 cor0 WHERE ( + ( - col1 ) ) NOT BETWEEN ( NULL ) AND col0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 + 15 * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 39 < NULL
----

query I rowsort
SELECT - + 89 + + col0 AS col1 FROM tab0 cor0
----
-2
-74
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5109
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) > + col2 / ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5109
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) > + col2 / ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * 52 AND 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col2 col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT DISTINCT 43 / + MAX( - col2 ) FROM tab2 WHERE + 24 - ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT 43 / + MAX ( - col2 ) FROM tab2 WHERE + 24 - ( col0 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 67 * col2 AS col0 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT ALL - col0 - + + ( - col0 ) + ( col0 ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT + SUM( DISTINCT + col2 ) - - CAST( 28 AS SIGNED ) AS col2 FROM tab0
----
184

skipif mysql # not compatible
query I rowsort label-5115
SELECT + SUM ( DISTINCT + col2 ) - - CAST ( 28 AS INTEGER ) AS col2 FROM tab0
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT + CAST( NULL AS SIGNED ) - col0 * ( - col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT + CAST ( NULL AS INTEGER ) - col0 * ( - col0 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE ( - col1 / + col2 ) IS NOT NULL AND ( + col1 * col2 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col2 - 19 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) + 72 < col2 + col2 * - col2
----
-9
28
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5119
SELECT col2 * + col1 - 36 DIV + col0 AS col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-5119
SELECT col2 * + col1 - 36 / + col0 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT + col0, - 15 FROM tab2
----
46
-15
64
-15
75
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL + + MAX( + + 78 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + + MAX ( + + 78 ) FROM tab1 AS cor0
----
78

query II rowsort
SELECT col0, col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT + + col2 * + - 71 FROM tab0 AS cor0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL COUNT( + col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5125
SELECT + COUNT( * ) - - 9 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 / - 85 * col1 - CAST( - col1 AS DECIMAL ) IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-5125
SELECT + COUNT ( * ) - - 9 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 / - 85 * col1 - CAST ( - col1 AS REAL ) IS NULL
----
12

query II rowsort
SELECT ALL - 68 AS col0, 9 FROM tab2 AS cor0
----
-68
9
-68
9
-68
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL - MAX( ALL - col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - MAX ( ALL - col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT - col2 + - col1 * + col0 FROM tab2 WHERE NOT - - col2 = - col0 + + col1 * - 78
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - COUNT( - col1 ) AS col2 FROM tab2 WHERE NOT NULL = - 45 + - col1 * 44
----
0

skipif mysql # not compatible
query I rowsort label-5129
SELECT - COUNT ( - col1 ) AS col2 FROM tab2 WHERE NOT NULL = - 45 + - col1 * 44
----
0

query I rowsort
SELECT + 93 * 35 AS col2 FROM tab1
----
3255
3255
3255

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + + 24 ) * ( 91 ) ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5132
SELECT CAST( MAX( + col2 ) AS SIGNED ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5132
SELECT CAST ( MAX ( + col2 ) AS INTEGER ) FROM tab2
----
58

query I rowsort
SELECT - ( col0 ) FROM tab0 WHERE - + col0 / - 83 + col0 * col2 NOT BETWEEN NULL AND - 35
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + col1 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 * + - col0, col0 FROM tab1
----
425
85
4277
91
714
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT DISTINCT + 93 * + 62 + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT + 93 * + 62 + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5137
SELECT - - SUM( + CAST( - 9 AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-27

skipif mysql # not compatible
query I rowsort label-5137
SELECT - - SUM ( + CAST ( - 9 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5138
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL IN ( col2 * + ( - 95 ) + + 62 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5140
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - ( col0 ) + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - ( col0 ) + col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = + 53 * + 74
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5142
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <= + - col0
----
87
21
10
97
1
99

query I rowsort
SELECT ( - 53 ) + - ( - - col1 ) FROM tab1
----
-100
-58
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5145
SELECT 2 DIV COUNT( * ) * + 26 DIV - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5145
SELECT 2 / COUNT ( * ) * + 26 / - COUNT ( * ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT DISTINCT + col2 DIV - - col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT + col2 / - - col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT + 97 * col2 * + - CAST( NULL AS SIGNED ) + col2 - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT + 97 * col2 * + - CAST ( NULL AS INTEGER ) + col2 - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5148
SELECT DISTINCT COUNT( * ) + 51 + + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT COUNT ( * ) + 51 + + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 - - - col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT - col0 + + col0 + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL - COUNT( * ) * 26 AS col0 FROM tab0 WHERE NULL = - - col1 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - COUNT ( * ) * 26 AS col0 FROM tab0 WHERE NULL = - - col1 + + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL + COUNT( * ) + + 15 AS col1 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + COUNT ( * ) + + 15 AS col1 FROM tab1
----
18

query I rowsort
SELECT 0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + 75 AS col0, col2 col1 FROM tab2
----
121
23
139
40
150
58

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( col2 ) * + + col2 / + - col0 * - 25 AND ( 88 * - col0 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col1 FROM tab1
----
40
40
40

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 97 * - + 47 FROM tab0 AS cor0
----
-4559
-4559
-4559

query I rowsort
SELECT ( + 90 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT DISTINCT + - ( + 76 ) DIV - - col0 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + - ( + 76 ) / - - col0 AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5161
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 84 * - col1 AS col2 FROM tab1 AS cor0
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT SUM( 12 ) AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-5163
SELECT SUM ( 12 ) AS col2 FROM tab1
----
36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT - COUNT( * ) + COUNT( * ) col0 FROM tab2 WHERE + col2 < + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5165
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) col0 FROM tab2 WHERE + col2 < + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT + SUM( DISTINCT + - 94 ) AS col1 FROM tab0 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + SUM ( DISTINCT + - 94 ) AS col1 FROM tab0 cor0
----
-94

query I rowsort
SELECT DISTINCT + ( + 68 ) FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL + + 56 + - col1 * + + 16 FROM tab0 AS cor0
----
-1240
-280
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT + 52 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5169
SELECT + 52 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5170
SELECT CAST( NULL AS SIGNED ), 73 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5170
SELECT CAST ( NULL AS INTEGER ), 73 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0 * - + col0 AS col1, col1 + + col2 - - col1 + - 44 * ( col1 ) FROM tab1 AS cor0
----
-2601
-492
-7225
-151
-8281
-1906

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5172
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * ( - CAST( + + 27 AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5172
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * ( - CAST ( + + 27 AS INTEGER ) ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 71 col1, col1 + - col0 + + 93 FROM tab2 AS cor0
----
3266
98
4544
106
5325
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT 52 * + MAX( - - ( - ( - col0 ) ) ) FROM tab0 AS cor0
----
5044

skipif mysql # not compatible
query I rowsort label-5174
SELECT 52 * + MAX ( - - ( - ( - col0 ) ) ) FROM tab0 AS cor0
----
5044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT + ( + - CAST( NULL AS SIGNED ) ) * - - 25 + ( 6 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT + ( + - CAST ( NULL AS INTEGER ) ) * - - 25 + ( 6 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + col0 ) * + + 53 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 79 + + + col1, - 17 )
----

query I rowsort
SELECT 79 + col2 + - + col2 FROM tab2
----
79
79
79

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - 51 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5179
SELECT + 19 DIV - - COUNT( ALL - + ( + 78 ) ) + + 11 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5179
SELECT + 19 / - - COUNT ( ALL - + ( + 78 ) ) + + 11 FROM tab0 AS cor0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT ALL + COUNT( * ) - + COUNT( * ) DIV + + 43 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL + COUNT ( * ) - + COUNT ( * ) / + + 43 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + ( COUNT( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5181
SELECT + ( COUNT ( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 68 AS col2 FROM tab2 cor0 WHERE col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT ALL 42 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL 42 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) * + - 84 AS col1 FROM tab2
----
-1932
-3360
-4872

query I rowsort
SELECT DISTINCT col0 * 32 AS col0 FROM tab0
----
2784
3104
480

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT ALL - 80 DIV ( - - col1 ) * col2 + col2 + + col2 * + 13 + + col0 * - col0 AS col1 FROM tab2
----
-1817
-3576
-4871

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - 80 / ( - - col1 ) * col2 + col2 + + col2 * + 13 + + col0 * - col0 AS col1 FROM tab2
----
-1817
-3576
-4871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5187
SELECT DISTINCT - CAST( + SUM( DISTINCT 48 ) AS SIGNED ) AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
-48

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT - CAST ( + SUM ( DISTINCT 48 ) AS INTEGER ) AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
-48

query I rowsort
SELECT ALL + 78 * - col0 FROM tab2
----
-3588
-4992
-5850

query I rowsort
SELECT - + col2 + col2 + + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query II rowsort
SELECT - 25, col1 AS col1 FROM tab1
----
-25
14
-25
47
-25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT - + MIN( ALL + 91 ) AS col1 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5191
SELECT - + MIN ( ALL + 91 ) AS col1 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT ALL - + col2 * - col1 + - + 72 FROM tab1 AS cor0
----
1272
223
3124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT + CAST( NULL AS SIGNED ) * + + col2 / - ( + col0 ) + + 54 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT + CAST ( NULL AS INTEGER ) * + + col2 / - ( + col0 ) + + 54 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5194
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 col1, col0 * - + 83 FROM tab2
----
NULL
-3818
NULL
-5312
NULL
-6225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5194
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 col1, col0 * - + 83 FROM tab2
----
NULL
-3818
NULL
-5312
NULL
-6225

query II rowsort
SELECT DISTINCT + 85, col1 - + + col2 AS col1 FROM tab2
----
85
28
85
37
85
9

query II rowsort
SELECT - ( 73 ) AS col0, - 62 FROM tab1 AS cor0
----
-73
-62
-73
-62
-73
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 76 col0, - col2 AS col2 FROM tab2 AS cor0
----
76
-23
76
-40
76
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT COUNT( ALL + - col2 ) * 53 FROM tab1 AS cor0 WHERE - 15 * + + col2 + 2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT COUNT ( ALL + - col2 ) * 53 FROM tab1 AS cor0 WHERE - 15 * + + col2 + 2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5199
SELECT DISTINCT + 59 col0, - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
59
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5199
SELECT DISTINCT + 59 col0, - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
59
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * + col2 ) = ( 16 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE NOT - 0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT ALL CAST( col1 AS SIGNED ) + + - 85 FROM tab1
----
-38
-71
-80

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL CAST ( col1 AS INTEGER ) + + - 85 FROM tab1
----
-38
-71
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5203
SELECT - CAST( + 74 AS SIGNED ) + col0 DIV - ( + col1 ) AS col0 FROM tab1
----
-75
-77
-91

skipif mysql # not compatible
query I rowsort label-5203
SELECT - CAST ( + 74 AS INTEGER ) + col0 / - ( + col1 ) AS col0 FROM tab1
----
-75
-77
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT 17 * + MIN( - col1 ) + - 32 AS col1 FROM tab2
----
-1341

skipif mysql # not compatible
query I rowsort label-5204
SELECT 17 * + MIN ( - col1 ) + - 32 AS col1 FROM tab2
----
-1341

query I rowsort
SELECT DISTINCT 90 + 27 FROM tab2 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT + + 91 + COUNT( * ) AS col2 FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-5206
SELECT + + 91 + COUNT ( * ) AS col2 FROM tab0 cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT ALL COUNT( * ) / + + COUNT( * ) + 83 * + COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL COUNT ( * ) / + + COUNT ( * ) + 83 * + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5209
SELECT 93, CAST( NULL AS DECIMAL ) / - + MAX( + - 0 ) AS col1 FROM tab2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-5209
SELECT 93, CAST ( NULL AS REAL ) / - + MAX ( + - 0 ) AS col1 FROM tab2
----
93
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5210
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, - 67 FROM tab0
----
NULL
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5210
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, - 67 FROM tab0
----
NULL
-67

query I rowsort
SELECT ALL col2 - + - col1 * + col2 * - - 82 * - + col2 * + 11 + - col0 / + col0 * - 14 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + 49, 67 AS col0 FROM tab1 AS cor0
----
49
67
49
67
49
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - ( col0 ) ) col0, col0 + 46 FROM tab2 cor0
----
-46
92
-64
110
-75
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT DISTINCT + 77 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT + 77 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
231

query I rowsort
SELECT + ( - + 6 ) FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + - col0 * col0 + - col1 AS col1 FROM tab2 cor0
----
-2167
-4173
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT MAX( DISTINCT - col0 ) * - SUM( 31 ) FROM tab0
----
1395

skipif mysql # not compatible
query I rowsort label-5218
SELECT MAX ( DISTINCT - col0 ) * - SUM ( 31 ) FROM tab0
----
1395

query II rowsort
SELECT ALL - ( - col1 ), - col0 + + 9 AS col0 FROM tab1
----
14
-42
47
-82
5
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + 60 + + COUNT( * ) - - 80 FROM tab0 WHERE NOT - ( - col1 ) * + col1 * 5 >= NULL
----
140

skipif mysql # not compatible
query I rowsort label-5220
SELECT + 60 + + COUNT ( * ) - - 80 FROM tab0 WHERE NOT - ( - col1 ) * + col1 * 5 >= NULL
----
140

query I rowsort
SELECT - col2 * + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT - SUM( - 80 ) * - - 46 FROM tab2 AS cor0
----
11040

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT - SUM ( - 80 ) * - - 46 FROM tab2 AS cor0
----
11040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 * + 88 col0 FROM tab1 AS cor0
----
5016
5016
5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT + + col0 * + 7 / - ( - col0 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT 18 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT + + col0 * + 7 / - ( - col0 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT 18 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5225
SELECT DISTINCT ( + + 0 ) + - 93 DIV + - 28 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
3

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT ( + + 0 ) + - 93 / + - 28 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE 32 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE 32 IS NOT NULL
----
3

query I rowsort
SELECT ALL + - 50 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 4 * AVG ( ALL - 22 ) col0 FROM tab2 AS cor0 WHERE NOT NULL <= + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + - MIN( + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5229
SELECT + - MIN ( + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL + col0 + + 29 * col2 AS col2 FROM tab2 AS cor0
----
1224
1757
713

query I rowsort
SELECT DISTINCT - col2 + - + col1 - - col2 + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE - 21 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5233
SELECT CAST( NULL AS DECIMAL ) + + 17 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-5233
SELECT CAST ( NULL AS REAL ) + + 17 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 56 + - 22 FROM tab2
----
34
34
34

query III rowsort
SELECT * FROM tab0 WHERE 74 + - 34 IS NULL
----

query II rowsort
SELECT DISTINCT + col1 + - - col0 * col2 + col1 AS col0, - col0 AS col2 FROM tab0
----
867
-15
912
-87
9605
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5237
SELECT DISTINCT + ( + SUM( ALL - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + ( + SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 + - - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 / + 11 > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5240
SELECT ALL - 25 * + 86 * - col2 + col2, col1 + col2 + - - col1 * col0 FROM tab1 WHERE + 89 / + ( - 78 ) <= - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-5240
SELECT ALL - 25 * + 86 * - col2 + col2, col1 + col2 + - - col1 * col0 FROM tab1 WHERE + 89 / + ( - 78 ) <= - CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT ALL - col1 - - 18 FROM tab1 AS cor0
----
-29
13
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT + + CAST( - - col1 AS SIGNED ) - + col2 FROM tab0 cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-5242
SELECT + + CAST ( - - col1 AS INTEGER ) - + col2 FROM tab0 cor0
----
-98
11
34

query II rowsort
SELECT DISTINCT + col0 - + col1 AS col2, + col0 + - col2 AS col2 FROM tab0
----
-66
-32
66
77
96
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 95 + - 92 col2 FROM tab2 AS cor0
----
-4937
-6457
-7407

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT MIN( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5245
SELECT MIN ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT ALL + - 26 * - + 59, 96 AS col2 FROM tab2 AS cor0
----
1534
96
1534
96
1534
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT DISTINCT - SUM( ALL + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT - SUM ( ALL + col2 ) FROM tab1
----
-223

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * 26 AS col2 FROM tab0
----
-2262
-2522
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + + COUNT( * ) * 1 AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5250
SELECT + + COUNT ( * ) * 1 AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT DISTINCT - COUNT( DISTINCT + - 92 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT - COUNT ( DISTINCT + - 92 ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + col1 + - col2 + + - col1 * + - col2 + + col0 + - - 34 AS col1 FROM tab0
----
132
342
3890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT MIN( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + - col1 * + + ( col0 ) + + + 80 * - + col1 FROM tab2 AS cor0
----
-10327
-11048
-6403

query I rowsort
SELECT ALL + 17 + + + col0 * - col2 AS col0 FROM tab1 cor0
----
-4879
-4998
-6171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT DISTINCT - AVG ( ALL - + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5257
SELECT DISTINCT - AVG ( ALL - + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT - COUNT( * ) * 90 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-5258
SELECT - COUNT ( * ) * 90 FROM tab2 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + COUNT( * ) - + 31 * + ( 59 ) AS col0 FROM tab0
----
-1826

skipif mysql # not compatible
query I rowsort label-5259
SELECT + COUNT ( * ) - + 31 * + ( 59 ) AS col0 FROM tab0
----
-1826

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL - COUNT( ALL col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - COUNT ( ALL col1 ) FROM tab2
----
-3

query I rowsort
SELECT - col1 + - + col0 * - - col0 FROM tab1
----
-2615
-7230
-8328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 + + col2 col0 FROM tab1
----
-14
-5
23

query I rowsort
SELECT ALL - col0 * - - col0 * + col0 AS col2 FROM tab0
----
-3375
-658503
-912673

query I rowsort
SELECT DISTINCT 74 + - col1 AS col2 FROM tab2
----
-3
23
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ALL + MAX( + col2 ) AS col2 FROM tab1 WHERE + - ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL + MAX ( + col2 ) AS col2 FROM tab1 WHERE + - ( col1 ) IS NULL
----
NULL

query I rowsort
SELECT ALL 23 + 90 FROM tab1 AS cor0
----
113
113
113

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col0 ) + + + 56 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT ALL - + 40 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - + 40 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - + col1 * 90 + + - 63 AS col1 FROM tab2 AS cor0
----
-4602
-6026
-6916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col0 col2 FROM tab2 AS cor0
----
-104
-133
-69

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / 16 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - + 13 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5273
SELECT DISTINCT + + COUNT( * ), 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-5273
SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) col1 FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT + + 42 AS col0, + col2 AS col1 FROM tab1 cor0
----
42
59
42
68
42
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 40 >= - col2 - - col0
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN - + 47 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 31 * 56 FROM tab1
----
1736

onlyif mysql # DIV for integer division: 
query II rowsort label-5278
SELECT - 50 + + + 46 DIV - col2, 39 AS col0 FROM tab1
----
-50
39
-50
39
-50
39

skipif mysql # not compatible
query II rowsort label-5278
SELECT - 50 + + + 46 / - col2, 39 AS col0 FROM tab1
----
-50
39
-50
39
-50
39

query I rowsort
SELECT 88 + + + 66 * + col0 FROM tab0 WHERE + 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5280
SELECT ALL + col0 * + col2 + col1 + - CAST( NULL AS SIGNED ) 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-5280
SELECT ALL + col0 * + col2 + col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5281
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 48 * + - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 48 * + - col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + - - col2 + + col1 FROM tab1 AS cor0
----
123
183
206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5283
SELECT + 3 * - COUNT( + CAST( + col0 AS SIGNED ) ) + - MIN( DISTINCT 89 ) + + SUM( + 53 ) * + 25 FROM tab0 AS cor0
----
3877

skipif mysql # not compatible
query I rowsort label-5283
SELECT + 3 * - COUNT ( + CAST ( + col0 AS INTEGER ) ) + - MIN ( DISTINCT 89 ) + + SUM ( + 53 ) * + 25 FROM tab0 AS cor0
----
3877

query I rowsort
SELECT - + col1 * - col0 + ( + - col0 ) FROM tab1 AS cor0
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL + SUM( col2 ) + 37 AS col1 FROM tab0 AS cor0
----
193

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + SUM ( col2 ) + 37 AS col1 FROM tab0 AS cor0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT + ( + - COUNT( * ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5286
SELECT DISTINCT + ( + - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - - COUNT( * ) + + 96 AS col2 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5287
SELECT - - COUNT ( * ) + + 96 AS col2 FROM tab2 AS cor0
----
99

query I rowsort
SELECT DISTINCT + 74 + + 24 AS col0 FROM tab0 AS cor0
----
98

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col0 AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5290
SELECT + MAX( - + 95 ) FROM tab1 WHERE NULL <> + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT + MAX ( - + 95 ) FROM tab1 WHERE NULL <> + CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - 2 + - + 37 + + - 38 + + col2 / 74
----

query I rowsort
SELECT DISTINCT - 42 * col2 * - + 43 FROM tab2
----
104748
41538
72240

query III rowsort
SELECT * FROM tab2 WHERE col1 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5294
SELECT - col0 + - CAST( + 18 AS SIGNED ) + 37 AS col1 FROM tab0 AS cor0 WHERE - 92 IS NOT NULL
----
-68
-78
4

skipif mysql # not compatible
query I rowsort label-5294
SELECT - col0 + - CAST ( + 18 AS INTEGER ) + 37 AS col1 FROM tab0 AS cor0 WHERE - 92 IS NOT NULL
----
-68
-78
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT COUNT( * ) * COUNT( * ) * - COUNT( - 12 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-5296
SELECT COUNT ( * ) * COUNT ( * ) * - COUNT ( - 12 ) FROM tab0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL - col1 / CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5297
SELECT ALL - col1 / CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 41 * - - col0 AS col1 FROM tab0
----
3567
3977
615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 15 / - 75 + + col1 col0 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + col0 * - 83 FROM tab2 AS cor0
----
-3818
-5312
-6225

onlyif mysql # aggregate syntax: 
query II rowsort label-5301
SELECT + - COUNT( * ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5301
SELECT + - COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT + col0 - col0 * + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1200
-1740
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - 46
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT ALL 63 DIV - 91 * 95 + - col1 + - col1 FROM tab2 WHERE NULL NOT IN ( col2 ) OR NOT col1 * + col0 IS NULL
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL 63 / - 91 * 95 + - col1 + - col1 FROM tab2 WHERE NULL NOT IN ( col2 ) OR NOT col1 * + col0 IS NULL
----
-102
-134
-154

query II rowsort
SELECT 1 AS col1, 90 * - col2 FROM tab0
----
1
-4230
1
-8910
1
-900

onlyif mysql # aggregate syntax: 
query II rowsort label-5306
SELECT COUNT( * ), + MIN( - col0 ) * - 59 AS col1 FROM tab2
----
3
4425

skipif mysql # not compatible
query II rowsort label-5306
SELECT COUNT ( * ), + MIN ( - col0 ) * - 59 AS col1 FROM tab2
----
3
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT DISTINCT MIN( col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT MIN ( col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5308
SELECT DISTINCT - COUNT( * ) DIV + - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT - COUNT ( * ) / + - COUNT ( * ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT ALL col1 DIV - 78 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL col1 / - 78 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5310
SELECT DISTINCT SUM( ALL col2 ) * + CAST( NULL AS SIGNED ) + - 39 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT SUM ( ALL col2 ) * + CAST ( NULL AS INTEGER ) + - 39 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT + 91 + COUNT( + 64 ) * - + 1 col1 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5312
SELECT + 91 + COUNT ( + 64 ) * - + 1 col1 FROM tab0 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col0 AS col0, 84 col1 FROM tab2
----
128
84
150
84
92
84

query II rowsort
SELECT 13 + + col1 AS col0, 41 FROM tab0
----
14
41
34
41
94
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT 46 * COUNT( * ), - 97 * COUNT( * ) AS col0 FROM tab2
----
138
-291

skipif mysql # not compatible
query II rowsort label-5316
SELECT 46 * COUNT ( * ), - 97 * COUNT ( * ) AS col0 FROM tab2
----
138
-291

query I rowsort
SELECT DISTINCT 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5318
SELECT + CAST( col2 AS SIGNED ) AS col0, - col2 AS col0 FROM tab0
----
10
-10
47
-47
99
-99

skipif mysql # not compatible
query II rowsort label-5318
SELECT + CAST ( col2 AS INTEGER ) AS col0, - col2 AS col0 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL COUNT( DISTINCT - col0 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL COUNT ( DISTINCT - col0 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + ( col1 ) - - 95 AS col0 FROM tab0 AS cor0
----
14
74
94

query I rowsort
SELECT DISTINCT + col0 + - + 76 FROM tab0 AS cor0
----
-61
11
21

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL > + col1 * col0 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT ALL + 88 - 6 DIV + col1 FROM tab0 AS cor0
----
82
88
88

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + 88 - 6 / + col1 FROM tab0 AS cor0
----
82
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 * + col0 + + 88 + - col1 * - + col1 col0 FROM tab1 AS cor0
----
3025
692
793

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 14
----

query I rowsort
SELECT 82 + ( + col0 ) AS col1 FROM tab0
----
169
179
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * col0 col0 FROM tab1
----
1632
2720
2912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5329
SELECT ALL 59 DIV - COUNT( * ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL 59 / - COUNT ( * ) FROM tab0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT col1 + + 75 - CAST( NULL AS SIGNED ) + 42 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT col1 + + 75 - CAST ( NULL AS INTEGER ) + 42 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5331
SELECT ALL CAST( NULL AS SIGNED ) * + 14 * - 49 * ( - SUM( DISTINCT - col1 ) ) - + MAX( - col1 ) AS col1, - 42 FROM tab1
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-5331
SELECT ALL CAST ( NULL AS INTEGER ) * + 14 * - 49 * ( - SUM ( DISTINCT - col1 ) ) - + MAX ( - col1 ) AS col1, - 42 FROM tab1
----
NULL
-42

query II rowsort
SELECT DISTINCT col1 AS col2, + col2 * col0 AS col2 FROM tab0
----
1
9603
21
870
81
705

query I rowsort
SELECT DISTINCT - col2 * + ( + col2 ) FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + + 63 * - - COUNT( * ) * COUNT( * ) * 19 FROM tab2
----
10764

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + + 63 * - - COUNT ( * ) * COUNT ( * ) * 19 FROM tab2
----
10764

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT COUNT( * ) + + 22 AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-5335
SELECT COUNT ( * ) + + 22 AS col2 FROM tab2
----
25

query II rowsort
SELECT - 87 AS col2, col1 FROM tab2 AS cor0
----
-87
51
-87
67
-87
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT DISTINCT CAST( - 82 AS SIGNED ) FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT CAST ( - 82 AS INTEGER ) FROM tab2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT - + MAX( + col1 ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-5338
SELECT - + MAX ( + col1 ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-243

query I rowsort
SELECT - - col2 * + + 17 FROM tab0 AS cor0
----
1683
170
799

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT ( NOT col0 * - 72 NOT BETWEEN - + 6 * + col2 AND NULL )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT CAST( - 45 AS SIGNED ) + + col0 FROM tab1
----
40
46
6

skipif mysql # not compatible
query I rowsort label-5341
SELECT CAST ( - 45 AS INTEGER ) + + col0 FROM tab1
----
40
46
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT COUNT( * ) + + 79 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-5342
SELECT COUNT ( * ) + + 79 FROM tab1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5343
SELECT ALL CAST( - ( - 89 ) AS SIGNED ) + + COUNT( * ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL CAST ( - ( - 89 ) AS INTEGER ) + + COUNT ( * ) FROM tab0
----
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col2 <= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 + - 39 col2 FROM tab0 AS cor0
----
157
23
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5346
SELECT - col0 * - ( - 8 ) / 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-5346
SELECT - col0 * - ( - 8 ) / CAST ( NULL AS INTEGER ) * col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 27
----

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT - + col2 + + - 66 * - ( - col2 ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 90 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT - + COUNT( * ) + - 86 AS col0 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5352
SELECT - + COUNT ( * ) + - 86 AS col0 FROM tab1 AS cor0
----
-89

query I rowsort
SELECT ALL + col0 * + 39 + - ( + - col1 ) AS col1 FROM tab0 AS cor0
----
3414
3784
666

query I rowsort
SELECT DISTINCT + col2 + + 79 FROM tab1 AS cor0
----
138
147
175

onlyif mysql # DIV for integer division: 
query I rowsort label-5355
SELECT + - col2 DIV - - col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5355
SELECT + - col2 / - - col2 FROM tab2 cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= - col1 * - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT + + COUNT( * ) FROM tab1 cor0 WHERE ( ( col2 + 93 + - + col1 * + + col0 ) BETWEEN - col1 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT + + COUNT ( * ) FROM tab1 cor0 WHERE ( ( col2 + 93 + - + col1 * + + col0 ) BETWEEN - col1 AND NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT DISTINCT + + COUNT( * ) - - COUNT( * ) + + 6 AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT + + COUNT ( * ) - - COUNT ( * ) + + 6 AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT col2 - - 87 AS col0 FROM tab0
----
134
186
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT + - COUNT( DISTINCT col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT + - COUNT ( DISTINCT col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 40 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 40 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 / - col2 + col0 IS NOT NULL
----

query II rowsort
SELECT 99 * 54, col1 * 61 AS col0 FROM tab1
----
5346
2867
5346
305
5346
854

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT + 90 + + + col0 < col0 / + - 39 + ( + 36 )
----
3

skipif mysql # not compatible
query I rowsort label-5364
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 90 + + + col0 < col0 / + - 39 + ( + 36 )
----
3

query I rowsort
SELECT col1 * + - 79 FROM tab1
----
-1106
-3713
-395

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( - col0 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col2 + - col1 * 21 / col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - SUM( - + 70 ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-5370
SELECT - SUM ( - + 70 ) FROM tab1
----
210

query I rowsort
SELECT ALL - - 26 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query II rowsort
SELECT - - col2 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query II rowsort label-5373
SELECT DISTINCT + col2 DIV + + col0 - + 39, - col0 + + ( - + 64 ) AS col1 FROM tab0 AS cor0
----
-36
-79
-38
-161
-39
-151

skipif mysql # not compatible
query II rowsort label-5373
SELECT DISTINCT + col2 / + + col0 - + 39, - col0 + + ( - + 64 ) AS col1 FROM tab0 AS cor0
----
-36
-79
-38
-161
-39
-151

query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 * - - col1 AS col0 FROM tab1 cor0
----
36125
36414
389207

query II rowsort
SELECT col1 * + - 90, - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col2, + col1 * - col2 FROM tab2 AS cor0
----
23
-1173
40
-3080
58
-3886

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - col0 IN ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT + col0 * 44 DIV col2 FROM tab0
----
14
382
43

skipif mysql # not compatible
query I rowsort label-5378
SELECT + col0 * 44 / col2 FROM tab0
----
14
382
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5379
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5379
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5380
SELECT - - 28 + 74 DIV - + 50 + + 6 AS col0 FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-5380
SELECT - - 28 + 74 / - + 50 + + 6 AS col0 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL + 75 * ( - col1 ) + - col1 FROM tab2 AS cor0
----
-3876
-5092
-5852

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( ( ( NULL ) IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5383
SELECT DISTINCT - ( + - col1 ) + - col0, + 25 * col1 + + col0 + - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-37
400
-44
1265
-80
209

skipif mysql # not compatible
query II rowsort label-5383
SELECT DISTINCT - ( + - col1 ) + - col0, + 25 * col1 + + col0 + - col1 / col1 AS col1 FROM tab1 AS cor0
----
-37
400
-44
1265
-80
209

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT - COUNT( DISTINCT + - 19 ) - - 16 * COUNT( * ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5384
SELECT - COUNT ( DISTINCT + - 19 ) - - 16 * COUNT ( * ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT - col2 + - 11 FROM tab2 cor0
----
-34
-51
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL - MIN( + 22 ) AS col1 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - MIN ( + 22 ) AS col1 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - ( - 24 ) FROM tab2
----
24

query II rowsort
SELECT - 25, + col2 FROM tab2
----
-25
23
-25
40
-25
58

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab0, tab0 AS cor0
----
90

query I rowsort
SELECT - col2 * - - col1 AS col2 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - + 44 <> col0 * col0
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT NULL >= - col1 * + + 48 * col0 + + col0
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + 78 * 29 * - + col0 AS col0 FROM tab1 AS cor0
----
51
-115362
85
-192270
91
-205842

onlyif mysql # aggregate syntax: 
query II rowsort label-5395
SELECT DISTINCT - + COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5395
SELECT DISTINCT - + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT COUNT( * ) FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5396
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 8 col2, + col2 col2 FROM tab1 AS cor0
----
8
59
8
68
8
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 30 / - + col0 < - col0
----

query II rowsort
SELECT - col0 AS col0, + 9 FROM tab1 AS cor0
----
-51
9
-85
9
-91
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL + 96 * - + ( - + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
864

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL + 96 * - + ( - + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
864

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 < + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT ALL - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 26 FROM tab1 AS cor0 WHERE NULL BETWEEN - 78 * - 6 - + col0 * + - col0 AND + - 59 + + + col1
----

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 26 FROM tab1 AS cor0 WHERE NULL BETWEEN - 78 * - 6 - + col0 * + - col0 AND + - 59 + + + col1
----

query I rowsort
SELECT - ( + col2 ) * - - col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5405
SELECT ALL - COUNT( DISTINCT - col2 ) DIV + - ( - 25 ) AS col1 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL - COUNT ( DISTINCT - col2 ) / + - ( - 25 ) AS col1 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT - COUNT( + - col1 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5406
SELECT DISTINCT - COUNT ( + - col1 ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5407
SELECT CAST( NULL AS SIGNED ) + 96, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5407
SELECT CAST ( NULL AS INTEGER ) + 96, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
-3

query I rowsort
SELECT col1 + + col1 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= col0 * + col2
----

query I rowsort
SELECT - 90 + - ( - + 93 ) FROM tab1
----
3
3
3

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab0 WHERE + col0 + col0 NOT BETWEEN col2 AND + - ( ( + col0 ) )
----
79

query I rowsort
SELECT ALL + col0 * - col0 + + col0 + - col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT - 74 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT - 74 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT + 29 * - + 57 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
4959

skipif mysql # not compatible
query I rowsort label-5414
SELECT + 29 * - + 57 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
4959

query I rowsort
SELECT DISTINCT + col1 + - - col2 + + col0 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT 33 - - 8 AS col2 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT + col2 - + - col1 AS col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - 25 + - - 97 - + 78 * - 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4f1866705dddf5b0385fbad97fe1216d

onlyif mysql # DIV for integer division: 
query I rowsort label-5419
SELECT DISTINCT + 91 DIV col1 AS col2 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT + 91 / col1 AS col2 FROM tab1
----
1
18
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT MIN( DISTINCT + 55 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
55

skipif mysql # not compatible
query I rowsort label-5420
SELECT MIN ( DISTINCT + 55 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5421
SELECT - COUNT( * ) DIV 11 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5421
SELECT - COUNT ( * ) / 11 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT ALL ( 54 ) / - 10 / - CAST( NULL AS SIGNED ) * col1 * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL ( 54 ) / - 10 / - CAST ( NULL AS INTEGER ) * col1 * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 AS cor0 WHERE col2 = - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + 93 <= - + col1
----

query I rowsort
SELECT + ( + - col0 ) AS col0 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT - col1, col1 AS col0 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT COUNT( + ( + col0 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT COUNT ( + ( + col0 ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT + COUNT( * ) * - - 68 AS col2 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-5428
SELECT + COUNT ( * ) * - - 68 AS col2 FROM tab1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT + + MIN( col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + + MIN ( col1 ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL - ( + - 95 ) FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL - - COUNT( + col0 ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5432
SELECT ALL - - COUNT ( + col0 ) col2 FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT - 86 AS col1, col2 + 45 AS col0 FROM tab0
----
-86
144
-86
55
-86
92

query I rowsort
SELECT ( + 14 ) AS col1 FROM tab2
----
14
14
14

query II rowsort
SELECT 59, 54 AS col2 FROM tab2 AS cor0
----
59
54
59
54
59
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT + - MAX( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5436
SELECT + - MAX ( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL 77 * - 59 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-4543
-4543
-4543

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT ALL - - col0 + - col1 * - + col2 + col1 + + - col2 DIV + 77 FROM tab1 AS cor0
----
1408
3334
385

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL - - col0 + - col1 * - + col2 + col1 + + - col2 / + 77 FROM tab1 AS cor0
----
1408
3334
385

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5439
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col1 IN ( + col2, + col0 / + col2 )
----

skipif mysql # not compatible
query III rowsort label-5439
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 IN ( + col2, + col0 / + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5440
SELECT 58 AS col0, COUNT( * ) + - - CAST( NULL AS SIGNED ) - - ( + ( - + CAST( 46 AS SIGNED ) ) ) FROM tab2 AS cor0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-5440
SELECT 58 AS col0, COUNT ( * ) + - - CAST ( NULL AS INTEGER ) - - ( + ( - + CAST ( 46 AS INTEGER ) ) ) FROM tab2 AS cor0
----
58
NULL

query II rowsort
SELECT + 79, + 31 AS col2 FROM tab0 AS cor0
----
79
31
79
31
79
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - col1 col1 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-5443
SELECT - + 53, COUNT( * ) col2 FROM tab2 AS cor0
----
-53
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5443
SELECT - + 53, COUNT ( * ) col2 FROM tab2 AS cor0
----
-53
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT MIN( + + col0 ) + + COUNT( 18 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-5444
SELECT MIN ( + + col0 ) + + COUNT ( 18 ) FROM tab0
----
18

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT - 89 + - 77 DIV col0 FROM tab2
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-5446
SELECT - 89 + - 77 / col0 FROM tab2
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT MIN( + 67 ) * - 83 * - 57 * + + 4 FROM tab1 cor0 WHERE + ( + + 10 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT MIN ( + 67 ) * - 83 * - 57 * + + 4 FROM tab1 cor0 WHERE + ( + + 10 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL 93 + + COUNT( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL 93 + + COUNT ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
96

query I rowsort
SELECT - col0 * + 45 + + + col1 AS col0 FROM tab1 AS cor0
----
-2281
-3820
-4048

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT + SUM( - + 47 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-5450
SELECT + SUM ( - + 47 ) FROM tab1
----
-141

query I rowsort
SELECT col0 * - - 40 FROM tab2
----
1840
2560
3000

query I rowsort
SELECT ALL - 23 * + col2 FROM tab2 WHERE + - col1 + + col1 BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - 22 + - + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-31

skipif mysql # not compatible
query I rowsort label-5453
SELECT - 22 + - + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-31

query I rowsort
SELECT - 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query II rowsort
SELECT + col1 - col0 * + - col2 AS col0, - ( - + col1 ) FROM tab2
----
1109
51
2637
77
4417
67

query I rowsort
SELECT ALL ( + - 21 ) AS col2 FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-5457
SELECT DISTINCT - - col0 col2, - col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
51
-1
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5457
SELECT DISTINCT - - col0 col2, - col2 / + col0 AS col1 FROM tab1 AS cor0
----
51
-1
85
0
91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5458
SELECT - col1 * col2 DIV - col2 AS col0 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5458
SELECT - col1 * col2 / - col2 AS col0 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( + - col1 ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * ( + col1 ) <> NULL
----

query II rowsort
SELECT DISTINCT col1 AS col0, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query II rowsort
SELECT - 28 AS col2, col2 FROM tab1 AS cor0
----
-28
59
-28
68
-28
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT - MIN( - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5463
SELECT - MIN ( - col0 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT - 92 * - COUNT( * ) FROM tab0 WHERE NOT 8 IS NOT NULL OR NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - 92 * - COUNT ( * ) FROM tab0 WHERE NOT 8 IS NOT NULL OR NOT NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5465
SELECT ( + COUNT( * ) ), - SUM( col0 ) AS col1 FROM tab2
----
3
-185

skipif mysql # not compatible
query II rowsort label-5465
SELECT ( + COUNT ( * ) ), - SUM ( col0 ) AS col1 FROM tab2
----
3
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5466
SELECT - 93 * - COUNT( * ) * + 66 DIV + COUNT( * ) FROM tab0
----
6138

skipif mysql # not compatible
query I rowsort label-5466
SELECT - 93 * - COUNT ( * ) * + 66 / + COUNT ( * ) FROM tab0
----
6138

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT MIN( ALL col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5467
SELECT DISTINCT MIN ( ALL col1 ) col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + ( + + SUM( ALL 88 ) ) col0 FROM tab0 AS cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5468
SELECT + ( + + SUM ( ALL 88 ) ) col0 FROM tab0 AS cor0
----
264

query I rowsort
SELECT ALL - ( - ( - + col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 85 col0 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL - MAX( ALL ( + + col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - MAX ( ALL ( + + col0 ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT DISTINCT - + ( - COUNT( * ) ), ( + - ( + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5472
SELECT DISTINCT - + ( - COUNT ( * ) ), ( + - ( + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5473
SELECT - CAST( - col2 AS SIGNED ) DIV - 47 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5473
SELECT - CAST ( - col2 AS INTEGER ) / - 47 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT DISTINCT 55 * - ( + 52 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT 55 * - ( + 52 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - - 2 - + - COUNT( * ) AS col0 FROM tab0 WHERE NOT - col2 < NULL
----
2

skipif mysql # not compatible
query I rowsort label-5475
SELECT - - 2 - + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col2 < NULL
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5476
SELECT DISTINCT * FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND - col2 * ( - + CAST( NULL AS SIGNED ) ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-5476
SELECT DISTINCT * FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND - col2 * ( - + CAST ( NULL AS INTEGER ) ) * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT + ( ( + COUNT( * ) ) ) AS col0 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT + ( ( + COUNT ( * ) ) ) AS col0 FROM tab1, tab1 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5478
SELECT ALL + ( col2 ) + - col0 DIV 14 AS col1 FROM tab0 AS cor0
----
4
46
93

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL + ( col2 ) + - col0 / 14 AS col1 FROM tab0 AS cor0
----
4
46
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 3 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5480
SELECT + col1 DIV + col0 + - - ( - + 53 ) + + - col0 * 56 AS col1 FROM tab1 AS cor0
----
-2909
-4813
-5149

skipif mysql # not compatible
query I rowsort label-5480
SELECT + col1 / + col0 + - - ( - + 53 ) + + - col0 * 56 AS col1 FROM tab1 AS cor0
----
-2909
-4813
-5149

query II rowsort
SELECT col2 * + col1 + - ( - col2 ) + + col0 AS col1, - col0 + + + col0 * - 4 * - col0 AS col0 FROM tab1 AS cor0
----
1491
10353
3355
33033
439
28815

query I rowsort
SELECT - col1 + + - 32 FROM tab2 AS cor0
----
-109
-83
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5483
SELECT + 90 * + - col0 * - 62 + + col0 DIV col0 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
256657
357080
418442

skipif mysql # not compatible
query I rowsort label-5483
SELECT + 90 * + - col0 * - 62 + + col0 / col0 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
256657
357080
418442

query I rowsort
SELECT DISTINCT - 59 + - - ( + - col2 ) FROM tab0 AS cor0
----
-106
-158
-69

query I rowsort
SELECT - ( + - col2 ) + + 34 - + ( col0 ) + - 49 + - + col0 * + col0 * 5 + + col2 - + col1 AS col1 FROM tab2 AS cor0
----
-10646
-20556
-28166

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN + col2 + + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT + + COUNT( - 69 ) + MAX( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + + COUNT ( - 69 ) + MAX ( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT + col2 + ( - 4 ) + + - 28 AS col2 FROM tab2 AS cor0
----
-9
26
8

query I rowsort
SELECT DISTINCT - - col0 - - + col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT + col2 * + col2 + + col2 FROM tab0 AS cor0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT DISTINCT - COUNT( * ) * - MIN( ALL - 54 ) FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT - COUNT ( * ) * - MIN ( ALL - 54 ) FROM tab2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL - COUNT( * ) - 12 col2 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5492
SELECT ALL - COUNT ( * ) - 12 col2 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT DISTINCT SUM( + col2 ) FROM tab1 WHERE NOT + - col0 = 73 + + col0
----
223

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT SUM ( + col2 ) FROM tab1 WHERE NOT + - col0 = 73 + + col0
----
223

query I rowsort
SELECT 83 * + col0 AS col2 FROM tab0
----
1245
7221
8051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT DISTINCT - 75 * + CAST( - col2 AS SIGNED ) FROM tab0
----
3525
7425
750

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT - 75 * + CAST ( - col2 AS INTEGER ) FROM tab0
----
3525
7425
750

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE ( - + 83 / col2 ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5497
SELECT col2 * - - CAST( col2 AS SIGNED ) * 18 AS col0, col2 AS col2 FROM tab2
----
28800
40
60552
58
9522
23

skipif mysql # not compatible
query II rowsort label-5497
SELECT col2 * - - CAST ( col2 AS INTEGER ) * 18 AS col0, col2 AS col2 FROM tab2
----
28800
40
60552
58
9522
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5498
SELECT ALL - 34, COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-5498
SELECT ALL - 34, COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-34
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT 23 DIV 84 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT 23 / 84 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT COUNT( * ) - + 58 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-5500
SELECT COUNT ( * ) - + 58 FROM tab1 AS cor0
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-5501
SELECT col2 + - 70 + + + col0 DIV - - 88, ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1
-68
-11
-59
26
-96

skipif mysql # not compatible
query II rowsort label-5501
SELECT col2 + - 70 + + + col0 / - - 88, ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1
-68
-11
-59
26
-96

query I rowsort
SELECT ALL - + col1 - + col1 - + col1 FROM tab1 AS cor0
----
-141
-15
-42

query I rowsort
SELECT ALL 56 + col0 FROM tab2 AS cor0
----
102
120
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT COUNT( * ) * + MIN( DISTINCT - 35 ) * + 91 AS col1 FROM tab2 AS cor0
----
-9555

skipif mysql # not compatible
query I rowsort label-5504
SELECT COUNT ( * ) * + MIN ( DISTINCT - 35 ) * + 91 AS col1 FROM tab2 AS cor0
----
-9555

query I rowsort
SELECT DISTINCT 48 FROM tab2 AS cor0 WHERE NOT col2 / col0 IS NULL
----
48

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT - 20 * + - col0 + + + 65 AS col0 FROM tab2 AS cor0
----
1345
1565
985

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 36 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 36 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * + - col0 + - col2 col1 FROM tab0 cor0
----
58
580
599

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT DISTINCT - - col2 DIV + 42 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT - - col2 / + 42 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT ALL - ( + col2 ) DIV - + ( + col0 ) + - col2 col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5511
SELECT ALL - ( + col2 ) / - + ( + col0 ) + - col2 col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL < - + col0
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL < - + col0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - 78 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5514
SELECT - 19 AS col2, + ( - - col2 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-19
NULL
-19
NULL
-19
NULL

skipif mysql # not compatible
query II rowsort label-5514
SELECT - 19 AS col2, + ( - - col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-19
NULL
-19
NULL
-19
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT ALL - 75 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL - 75 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT DISTINCT COUNT( ( 86 ) ) AS col2, - SUM( col2 ) FROM tab2
----
3
-121

skipif mysql # not compatible
query II rowsort label-5516
SELECT DISTINCT COUNT ( ( 86 ) ) AS col2, - SUM ( col2 ) FROM tab2
----
3
-121

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1 * + col1 + col2 + - - col0
----

query I rowsort
SELECT - 85 * col2 AS col2 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT DISTINCT - ( 21 ) * 42 + - 79 AS col1 FROM tab2
----
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 * col2 col0 FROM tab0 WHERE ( NULL ) IS NULL
----
3384
7128
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5521
SELECT DISTINCT ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE - 50 - + col2 NOT BETWEEN col1 AND + col0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT SUM( ALL - 19 ) AS col2 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-5523
SELECT SUM ( ALL - 19 ) AS col2 FROM tab1
----
-57

query I rowsort
SELECT DISTINCT 54 * col0 AS col2 FROM tab2
----
2484
3456
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT DISTINCT + MIN( ALL col0 ) * - COUNT( * ) AS col1 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT + MIN ( ALL col0 ) * - COUNT ( * ) AS col1 FROM tab1
----
-153

query I rowsort
SELECT ALL - col2 * 11 AS col1 FROM tab2
----
-253
-440
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL - SUM( - 51 ) * + COUNT( * ) FROM tab0 WHERE NOT + 15 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - SUM ( - 51 ) * + COUNT ( * ) FROM tab0 WHERE NOT + 15 < NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 18 NOT BETWEEN + col2 * col0 + col1 AND ( ( col0 ) - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5529
SELECT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) NOT BETWEEN 40 AND - col1 - col1
----

skipif mysql # not compatible
query III rowsort label-5529
SELECT * FROM tab1 WHERE CAST ( NULL AS REAL ) NOT BETWEEN 40 AND - col1 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN - col2 AND 55
----
1

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN - col2 AND 55
----
1

query I rowsort
SELECT col0 + ( 74 ) FROM tab2
----
120
138
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 - + col1 * + 26 col1 FROM tab2
----
-2499
-5082
-5628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 52 col2 FROM tab2
----
103
119
129

query III rowsort
SELECT * FROM tab0 WHERE ( + 9 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 43 * - 77 - 62 * + col0 FROM tab0
----
-4241
-8705
-9325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NULL IN ( 43 - 99 / col1 )
----

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NULL IN ( 43 - 99 / col1 )
----

query I rowsort
SELECT ALL - col0 + col1 AS col0 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE - 94 + - col2 = ( col0 + - col2 )
----

query I rowsort
SELECT + 31 * 39 FROM tab1
----
1209
1209
1209

query I rowsort
SELECT DISTINCT 10 + + 70 AS col2 FROM tab1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT DISTINCT CAST( 10 AS SIGNED ) * col1 col0 FROM tab2
----
510
670
770

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5541
SELECT DISTINCT CAST ( 10 AS INTEGER ) * col1 col0 FROM tab2
----
510
670
770

query I rowsort
SELECT DISTINCT - 57 + - 78 FROM tab1 AS cor0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5543
SELECT * FROM tab2 AS cor0 WHERE NOT 88 * - CAST( col0 AS SIGNED ) BETWEEN ( + col0 ) AND 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5543
SELECT * FROM tab2 AS cor0 WHERE NOT 88 * - CAST ( col0 AS INTEGER ) BETWEEN ( + col0 ) AND 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 13 + - 55 AS col0 FROM tab0 AS cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT + 1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT + 1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab2 AS cor0 WHERE NOT ( ( ( col1 ) ) ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT 90 * + SUM( + 39 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT 90 * + SUM ( + 39 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL - + 82 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - + 82 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 col2 FROM tab2 AS cor0
----
-36
-36
-36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT DISTINCT col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT col2 / + col0 AS col1 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT ALL - 8 * + + col1 FROM tab0
----
-168
-648
-8

query I rowsort
SELECT - col0 - - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + - col1 col0 FROM tab0 WHERE NOT - col2 NOT BETWEEN - col1 + + col0 AND col1
----
-41

query I rowsort
SELECT DISTINCT + 34 + + 35 AS col0 FROM tab1 cor0
----
69

query I rowsort
SELECT - col0 + 89 * 73 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
6400
6410
6482

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL MIN( - ( col1 ) ) + + 87 AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL MIN ( - ( col1 ) ) + + 87 AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT ALL + 32 * - CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + 32 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 9 + - 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT MAX( - 49 ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
-49

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT MAX ( - 49 ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col1 / + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col1 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT + COUNT( * ) + - 46 AS col2 FROM tab0 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5563
SELECT + COUNT ( * ) + - 46 AS col2 FROM tab0 cor0
----
-43

query I rowsort
SELECT col1 + - 5 * 90 AS col2 FROM tab1 AS cor0
----
-403
-436
-445

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL OR NOT 90 * - 30 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5566
SELECT * FROM tab0 AS cor0 WHERE NULL <> + CAST( NULL AS SIGNED ) * + col1 + - 47
----

skipif mysql # not compatible
query III rowsort label-5566
SELECT * FROM tab0 AS cor0 WHERE NULL <> + CAST ( NULL AS INTEGER ) * + col1 + - 47
----

query I rowsort
SELECT col1 + - + col0 * + col2 FROM tab1 cor0
----
-4882
-5010
-6141

query I rowsort
SELECT - 89 + - 66 FROM tab0 AS cor0
----
-155
-155
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL - + 47 - + MIN( - ( col1 ) ) + + 25 AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - + 47 - + MIN ( - ( col1 ) ) + + 25 AS col2 FROM tab0 AS cor0
----
59

query I rowsort
SELECT DISTINCT - col1 - + 36 * col0 FROM tab1 AS cor0 WHERE ( - 46 ) IN ( + col2 * col2 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < ( NULL )
----

query II rowsort
SELECT col2, col1 + - + 5 FROM tab1 AS cor0
----
59
0
68
42
96
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + + 89 - + 69 * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-118

skipif mysql # not compatible
query I rowsort label-5573
SELECT + + 89 - + 69 * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-118

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + c