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 + col2 AND - + col1 * + col1
----

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 18 / 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT COUNT( * ) - SUM( - col0 ) col0 FROM tab1
----
230

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5580
SELECT COUNT ( * ) - SUM ( - col0 ) col0 FROM tab1
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL + MIN( DISTINCT - ( + - 92 ) ) AS col1 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + MIN ( DISTINCT - ( + - 92 ) ) AS col1 FROM tab2
----
92

query I rowsort
SELECT - col2 * + col1 - + - 66 AS col1 FROM tab0
----
-144
-33
-3741

query I rowsort
SELECT + col2 - - 18 + col0 AS col0 FROM tab0
----
115
214
80

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

query I rowsort
SELECT ALL - col0 * + col2 * - ( - - col1 ) * - col0 - ( + col2 ) * col2 FROM tab2
----
-12617280
-21862114
-2482597

query I rowsort
SELECT DISTINCT - + 87 * - col2 AS col0 FROM tab1 AS cor0
----
5133
5916
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT AVG ( 96 ) + - COUNT( * ) FROM tab1 cor0 WHERE NOT ( 42 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT AVG ( 96 ) + - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( 42 ) >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 + + col0 * + 50 >= ( + 58 + col1 * ( 79 ) ) ) )
----

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

query I rowsort
SELECT ALL - + 7 AS col1 FROM tab1 AS cor0
----
-7
-7
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL SUM( ALL - 64 ) AS col0 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL SUM ( ALL - 64 ) AS col0 FROM tab0 AS cor0
----
-192

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - 3 ) BETWEEN ( NULL ) AND - 51 + - ( + col2 ) * col1
----

query I rowsort
SELECT + AVG ( + 86 ) FROM tab1 WHERE NOT NULL BETWEEN ( + col0 + - col2 ) AND + 92 * + col1
----
NULL

query I rowsort
SELECT - ( + col2 ) * - 49 * - col1 FROM tab1 AS cor0
----
-14455
-156604
-65856

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

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

query I rowsort
SELECT ALL + col1 * col2 + col2 AS col1 FROM tab1 AS cor0
----
1440
3264
354

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 > - col0
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT + 8 AS col0 FROM tab1 AS cor0 WHERE NOT + 72 * - + col2 / + 97 - - col0 + col1 * - col2 IS NULL
----
8
8
8

query II rowsort
SELECT + 90 AS col1, - col0 FROM tab1
----
90
-51
90
-85
90
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 25 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 85 * + - col1 * col0 * - col0 * ( - col0 ) + + col2 / - col0
----

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

query II rowsort
SELECT ALL col0, col0 * col0 AS col2 FROM tab2
----
46
2116
64
4096
75
5625

query I rowsort
SELECT ALL 51 + + col2 AS col0 FROM tab1
----
110
119
147

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5608
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS DECIMAL ) - col0 + + col2 + - - 58 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5608
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS REAL ) - col0 + + col2 + - - 58 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 97 + - col0 * col1 AS col2 FROM tab0
----
-1312
-1924
-194

query I rowsort
SELECT + - 1 + - + 58 AS col0 FROM tab2 AS cor0
----
-59
-59
-59

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

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

query I rowsort
SELECT ALL + ( + col2 ) * - col0 / - 49 * - + col0 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT CAST( NULL AS SIGNED ) * MIN( - col0 ) FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT COUNT( * ) * + 17 AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5614
SELECT COUNT ( * ) * + 17 AS col1 FROM tab2
----
51

query I rowsort
SELECT col2 * - 86 AS col2 FROM tab2
----
-1978
-3440
-4988

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL - + SUM( + - 63 ) + + ( + COUNT( * ) ) FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - + SUM ( + - 63 ) + + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
192

query I rowsort
SELECT - 15 AS col2 FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN 91 AND NULL )
----

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

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT + + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT + col1 / col2 AS col2 FROM tab2 AS cor0 WHERE 22 IS NULL
----

query I rowsort
SELECT - + col0 * + ( + col1 ) + + ( + + col0 ) FROM tab2 cor0
----
-2300
-4864
-4950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 - + col1 * + + col2 col1 FROM tab0 AS cor0
----
-2
-2592
1617

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

query I rowsort
SELECT DISTINCT - AVG ( + 21 ) / 63 + + + 64 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 - col0 - - + col0 * - + col0 col0 FROM tab0 AS cor0
----
-198
-7614
-9464

query I rowsort
SELECT DISTINCT - + col0 * - + col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL COUNT( * ) AS col2 FROM tab0 cor0 WHERE ( ( - col1 ) + + col2 ) IN ( - 28 * + col2 * + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL COUNT ( * ) AS col2 FROM tab0 cor0 WHERE ( ( - col1 ) + + col2 ) IN ( - 28 * + col2 * + + col0 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT - COUNT( DISTINCT - - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5629
SELECT - COUNT ( DISTINCT - - col2 ) FROM tab2
----
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT DISTINCT + 53 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + 53 / - col2 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE + 0 >= col2 * col0
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - + col2 * - - col1 IN ( - col0 / col1 + col0 + - + col1 ) AND NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5636
SELECT ALL - 83 * - COUNT( + - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - 83 * - COUNT ( + - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 * + col2 + + col1 <> + 72
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT + COUNT( * ) * + MAX( DISTINCT - + col1 ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-5642
SELECT + COUNT ( * ) * + MAX ( DISTINCT - + col1 ) FROM tab2
----
-153

query I rowsort
SELECT DISTINCT col1 * + 22 * - - col0 FROM tab0
----
2134
26730
40194

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5644
SELECT DISTINCT + col0 AS col0, col2 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) < col0 / - 80
----

skipif mysql # not compatible
query II rowsort label-5644
SELECT DISTINCT + col0 AS col0, col2 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < col0 / - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT + - COUNT( * ) - 97 AS col2 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-5645
SELECT + - COUNT ( * ) - 97 AS col2 FROM tab1 AS cor0
----
-100

query I rowsort
SELECT + 55 - 90 * - col0 + - - 52 AS col1 FROM tab2 AS cor0
----
4247
5867
6857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 - + ( - col0 ) col2 FROM tab0 AS cor0
----
184
293
77

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

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

query I rowsort
SELECT - 41 + + 75 AS col0 FROM tab0 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5650
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 - col2 / - - 7 * + + CAST( NULL AS SIGNED ) * - col0 <> + 18
----

skipif mysql # not compatible
query III rowsort label-5650
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 - col2 / - - 7 * + + CAST ( NULL AS INTEGER ) * - col0 <> + 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 - + - col2 col1 FROM tab0 AS cor0
----
-16
21
73

query I rowsort
SELECT ALL + col2 + + 52 AS col2 FROM tab0 AS cor0
----
151
62
99

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 17 * + - 58 * col2 FROM tab1 cor0
----
58174
67048
94656

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5659
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + - 75 ) / - - col1 * - CAST( NULL AS SIGNED ) + + ( + + col1 ) * - - 89 NOT IN ( + + 91 )
----

skipif mysql # not compatible
query III rowsort label-5659
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + - 75 ) / - - col1 * - CAST ( NULL AS INTEGER ) + + ( + + col1 ) * - - 89 NOT IN ( + + 91 )
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5663
SELECT ALL 53 DIV + COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL 53 / + COUNT ( * ) FROM tab1
----
17

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5665
SELECT DISTINCT + + 91 * + CAST( NULL AS SIGNED ) + - col0, + 71 + col0 AS col2 FROM tab2 cor0 WHERE NOT col1 / col0 * 53 IS NULL
----
NULL
117
NULL
135
NULL
146

skipif mysql # not compatible
query II rowsort label-5665
SELECT DISTINCT + + 91 * + CAST ( NULL AS INTEGER ) + - col0, + 71 + col0 AS col2 FROM tab2 cor0 WHERE NOT col1 / col0 * 53 IS NULL
----
NULL
117
NULL
135
NULL
146

query I rowsort
SELECT + 66 * + col1 + + col1 + col0 FROM tab2 AS cor0
----
3463
4564
5223

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

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

query I rowsort
SELECT ALL + - col0 * ( - 9 ) * col0 AS col2 FROM tab0 AS cor0
----
2025
68121
84681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( - col1 ) ) col2 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT + + MIN( - 51 ) col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND + ( + col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5671
SELECT + + MIN ( - 51 ) col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND + ( + col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5672
SELECT ALL + CAST( SUM( DISTINCT col0 ) AS SIGNED ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL + CAST ( SUM ( DISTINCT col0 ) AS INTEGER ) FROM tab1
----
227

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

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 95 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - - 17 AS col1 FROM tab0 AS cor0
----
1479
1649
255

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5675
SELECT ALL - col2 AS col1, + col1 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5675
SELECT ALL - col2 AS col1, + col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( - ( + + col0 ) ) * + col0 + 74 FROM tab0 AS cor0
----
-151
-7495
-9335

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 40 * - 17 + 29 col2 FROM tab2 AS cor0 WHERE NOT col1 * + col2 > NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col1 col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL col2 * + + 59 FROM tab0
----
2773
5841
590

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL >= ( - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL >= ( - 27 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5683
SELECT col0 + - - col1 DIV - - CAST( - 32 AS SIGNED ) + - 8 AS col0 FROM tab2
----
37
54
65

skipif mysql # not compatible
query I rowsort label-5683
SELECT col0 + - - col1 / - - CAST ( - 32 AS INTEGER ) + - 8 AS col0 FROM tab2
----
37
54
65

query II rowsort
SELECT DISTINCT 44 + - col2 AS col0, 75 + + col2 + 49 FROM tab0
----
-3
171
-55
223
34
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT ALL 71 + - 78 DIV - + COUNT( * ) AS col1 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL 71 + - 78 / - + COUNT ( * ) AS col1 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5686
SELECT DISTINCT - COUNT( * ) + + - 84, - SUM( DISTINCT - + 60 ) AS col0 FROM tab2 AS cor0
----
-87
60

skipif mysql # not compatible
query II rowsort label-5686
SELECT DISTINCT - COUNT ( * ) + + - 84, - SUM ( DISTINCT - + 60 ) AS col0 FROM tab2 AS cor0
----
-87
60

query I rowsort
SELECT ALL - ( 20 ) FROM tab1
----
-20
-20
-20

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT ALL - CAST( - col0 AS SIGNED ) * 39 col2 FROM tab1 AS cor0
----
1989
3315
3549

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5689
SELECT ALL - CAST ( - col0 AS INTEGER ) * 39 col2 FROM tab1 AS cor0
----
1989
3315
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL MAX( ALL + col0 ) * + + SUM( ALL col1 ) AS col1 FROM tab0 AS cor0
----
9991

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL MAX ( ALL + col0 ) * + + SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
9991

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

query II rowsort
SELECT DISTINCT - col1 AS col0, - 47 * 91 AS col1 FROM tab1
----
-14
-4277
-47
-4277
-5
-4277

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

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL + MIN ( ALL + col0 ) AS col2 FROM tab2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5694
SELECT DISTINCT 62 * + + CAST( - COUNT( ( + col2 ) ) AS SIGNED ) FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT 62 * + + CAST ( - COUNT ( ( + col2 ) ) AS INTEGER ) FROM tab1
----
-186

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

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

query I rowsort
SELECT ALL + 99 * - col0 * + ( + 66 ) FROM tab0 cor0
----
-568458
-633798
-98010

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

query III rowsort
SELECT + 0 AS col2, col0 * col1 * - 30, col2 FROM tab1 AS cor0
----
9 values hashing to 4946710b3c456f9962f537316fa34d63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT DISTINCT 20 * - 33 + CAST( + + ( 82 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-578

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

query I rowsort
SELECT col1 * - - col0 * + col2 * col1 AS col1 FROM tab1
----
125375
13669292
959616

query I rowsort
SELECT col1 + + 58 AS col2 FROM tab0 AS cor0
----
139
59
79

query I rowsort
SELECT + ( + + 63 ) + - col2 + + ( - col0 ) FROM tab1 AS cor0
----
-81
-84
-96

query II rowsort
SELECT - + 76 + + - col0, col1 FROM tab2 AS cor0
----
-122
51
-140
77
-151
67

query I rowsort
SELECT + col0 * - - 76 AS col0 FROM tab0
----
1140
6612
7372

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

query II rowsort
SELECT DISTINCT - 27 AS col0, col2 AS col1 FROM tab0
----
-27
10
-27
47
-27
99

query I rowsort
SELECT ALL + + 8 AS col1 FROM tab2 WHERE NOT + - 90 IS NULL
----
8
8
8

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

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

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

skipif mysql # not compatible
query I rowsort label-5710
SELECT + - CAST ( NULL AS REAL ) * 95 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + 72 * - col1, 57 AS col2 FROM tab2 AS cor0
----
-3672
57
-4824
57
-5544
57

query I rowsort
SELECT ALL + - col2 * - col1 * + + 41 FROM tab2 AS cor0
----
126280
159326
48093

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT - MIN( DISTINCT ( - CAST( + ( - col1 ) AS SIGNED ) ) ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5714
SELECT - MIN ( DISTINCT ( - CAST ( + ( - col1 ) AS INTEGER ) ) ) AS col1 FROM tab2
----
-51

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + - col0 * - - col1 * col2 FROM tab0
----
-383670
-4625505
-9603

query I rowsort
SELECT DISTINCT col1 * + 73 FROM tab0
----
1533
5913
73

query I rowsort
SELECT - col1 * col0 * - + 63 AS col2 FROM tab0 AS cor0
----
115101
6111
76545

query I rowsort
SELECT col0 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT ALL + COUNT( * ) * 81 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + COUNT ( * ) * 81 FROM tab0 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT - 58 * - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-522

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - 58 * - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-522

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT - SUM( ALL - col1 ) + 69 AS col1 FROM tab0
----
172

skipif mysql # not compatible
query I rowsort label-5725
SELECT - SUM ( ALL - col1 ) + 69 AS col1 FROM tab0
----
172

query I rowsort
SELECT 10 * col1 AS col0 FROM tab2
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT + MIN( + + 25 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-5727
SELECT + MIN ( + + 25 ) FROM tab0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, col2 * col2 col2 FROM tab1 AS cor0
----
59
3481
68
4624
96
9216

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + - 63 * - ( - col2 ) / + col1, - col0 )
----

query I rowsort
SELECT + - col0 - + 70 / col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

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

query I rowsort
SELECT DISTINCT + - 95 AS col2 FROM tab0 cor0 WHERE ( NULL ) <= NULL
----

query II rowsort
SELECT 78 - 41 + + 99 * + col2, + ( + + col1 ) AS col0 FROM tab1 AS cor0
----
5878
5
6769
47
9541
14

query I rowsort
SELECT ALL col2 - - 38 FROM tab2
----
61
78
96

query I rowsort
SELECT 7 + + col0 * - + 10 + 28 FROM tab2
----
-425
-605
-715

query I rowsort
SELECT col2 + - 24 FROM tab2
----
-1
16
34

query I rowsort
SELECT 47 + - 67 + col2 + 24 + + 60 - - 43 - - 83 * - col0 * + col1 AS col1 FROM tab2
----
-194588
-408877
-416910

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT MAX( - col1 ) + - COUNT( * ) - - - 83 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5739
SELECT MAX ( - col1 ) + - COUNT ( * ) - - - 83 FROM tab1
----
-91

query I rowsort
SELECT ALL + col1 + + col0 + col2 AS col0 FROM tab0 AS cor0
----
118
143
197

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON 66 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT MAX( ALL + 30 ) + + - 30 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT MAX ( ALL + 30 ) + + - 30 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 14 BETWEEN - - 49 / + col1 AND - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - ( col1 ) * 88 FROM tab0 cor0
----
-1848
-7128
-88

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5748
SELECT ALL + - 24 col0, - COUNT ( * ) AS col2 FROM tab0 cor0
----
-24
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT - - 95 * + COUNT( * ) * - - 37 FROM tab2 AS cor0
----
10545

skipif mysql # not compatible
query I rowsort label-5749
SELECT - - 95 * + COUNT ( * ) * - - 37 FROM tab2 AS cor0
----
10545

query I rowsort
SELECT AVG ( ALL 94 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 33 ) IS NOT NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5753
SELECT - COUNT( * ) AS col2, 67 FROM tab0 AS cor0
----
-3
67

skipif mysql # not compatible
query II rowsort label-5753
SELECT - COUNT ( * ) AS col2, 67 FROM tab0 AS cor0
----
-3
67

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

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

query I rowsort
SELECT + col0 * - col0 * + 6 AS col2 FROM tab1 AS cor0
----
-15606
-43350
-49686

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

query I rowsort
SELECT - - ( col1 ) * + col1 + - col1 FROM tab0 AS cor0
----
0
420
6480

query I rowsort
SELECT ALL - 45 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + col1 * col1 + col0 * + 16
----

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

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

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT - 41 + + 55 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE 42 * - + 12 IS NULL
----

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

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

query I rowsort
SELECT - - 37 + col1 FROM tab0 AS cor0
----
118
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT - + COUNT( ( + 40 ) ) + + 79 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5767
SELECT - + COUNT ( ( + 40 ) ) + + 79 FROM tab0 AS cor0
----
76

query I rowsort
SELECT 37 + + col2 FROM tab2 AS cor0
----
60
77
95

query I rowsort
SELECT ALL + col1 - - - 83 AS col0 FROM tab1 AS cor0
----
-36
-69
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5770
SELECT DISTINCT + col1 * 75 * + col2 * ( 22 ) * 0 DIV + + 3 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT + col1 * 75 * + col2 * ( 22 ) * 0 / + + 3 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT ALL 60 * col2 DIV + 15 FROM tab0
----
188
396
40

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL 60 * col2 / + 15 FROM tab0
----
188
396
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT DISTINCT + + CAST( - + col1 AS SIGNED ) / - col0 / + + ( + 75 ) col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

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

query I rowsort
SELECT ALL - col2 - - 32 AS col2 FROM tab2
----
-26
-8
9

query I rowsort
SELECT + 79 * - col1 FROM tab0
----
-1659
-6399
-79

query I rowsort
SELECT + col0 - + + 65 * - - col0 + - + col1 AS col2 FROM tab1
----
-3278
-5445
-5871

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT - COUNT( * ) * - 73 - - - COUNT( * ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-5776
SELECT - COUNT ( * ) * - 73 - - - COUNT ( * ) FROM tab0
----
216

query I rowsort
SELECT ALL + col1 + + + ( - 74 ) FROM tab2
----
-23
-7
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5778
SELECT ALL + COUNT ( * ) col2, 49 col0 FROM tab0 AS cor0
----
3
49

query I rowsort
SELECT DISTINCT + + 97 * col0 AS col0 FROM tab1 cor0
----
4947
8245
8827

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5780
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 4 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 26 * + ( 22 ) > NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5786
SELECT COUNT ( - - col1 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT 31 <= - 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 AS col2, + col1 + col0 * - col0 AS col2 FROM tab0
----
15
-144
87
-7548
97
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5789
SELECT col0, ( - - CAST( NULL AS SIGNED ) ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5789
SELECT col0, ( - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5790
SELECT MAX( ALL - CAST( CAST( col1 AS DECIMAL ) AS SIGNED ) ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5790
SELECT MAX ( ALL - CAST ( CAST ( col1 AS REAL ) AS INTEGER ) ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT ALL + col0 + 67 FROM tab1
----
118
152
158

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 18 * + + col0 + 81 + - col1, col2 col0 FROM tab0 AS cor0 WHERE - 2 IS NOT NULL
----
-1506
10
-1666
99
-270
47

query I rowsort
SELECT DISTINCT ( - 83 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-83

query II rowsort
SELECT ALL + - col2, 6 AS col2 FROM tab0 cor0 WHERE NOT 42 BETWEEN - col2 AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + - col1 - col0 + + + 32 FROM tab2 AS cor0
----
-109
-110
-65

query I rowsort
SELECT ALL - col1 - - + col2 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT col1 + + 12 + + ( - + col1 ) FROM tab0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5801
SELECT DISTINCT + 50 DIV - - ( - CAST( + - col0 AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT + 50 / - - ( - CAST ( + - col0 AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT + ( + col1 ) + col2 FROM tab1
----
110
115
64

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

query I rowsort
SELECT - col2 FROM tab1 WHERE - col0 NOT BETWEEN 77 AND NULL
----
-59
-68
-96

query I rowsort
SELECT + 37 + col1 AS col1 FROM tab0
----
118
38
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5806
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5806
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT ALL + col1 DIV + + col2 + + - 69 AS col1 FROM tab1
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL + col1 / + + col2 + + - 69 AS col1 FROM tab1
----
-69
-69
-69

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

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL MAX ( DISTINCT - 62 ) AS col0 FROM tab1
----
-62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT - + CAST( - + 84 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <> - col0
----

skipif mysql # not compatible
query I rowsort label-5810
SELECT - + CAST ( - + 84 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <> - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT - col0 DIV + - 1 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5811
SELECT - col0 / + - 1 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT ALL + + COUNT( * ) * - + 52 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL + + COUNT ( * ) * - + 52 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT col0 * - 22 * - - col0 FROM tab1
----
-158950
-182182
-57222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5814
SELECT ALL - 27 DIV MIN( ALL + col0 ) col1 FROM tab1
----
0

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5818
SELECT - 98 AS col2, col0 DIV - 18 col2 FROM tab0 AS cor0
----
-98
-4
-98
-5
-98
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5818
SELECT - 98 AS col2, col0 / - 18 col2 FROM tab0 AS cor0
----
-98
-4
-98
-5
-98
0

query I rowsort
SELECT + 0 + + - col0 + ( - col1 ) FROM tab0 AS cor0
----
-108
-96
-98

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

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

query I rowsort
SELECT + col0 + + 47 AS col1 FROM tab2
----
111
122
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5823
SELECT ALL - CAST( NULL AS DECIMAL ) * - col1 * - 57 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL - CAST ( NULL AS REAL ) * - col1 * - 57 FROM tab0
----
NULL
NULL
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 43 * - + 93 * + 10 <> 58 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 16 + col1 AS col2 FROM tab2 AS cor0
----
35
51
61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT 41 DIV - + col1 + - 6 + - 12 FROM tab1 cor0
----
-18
-20
-26

skipif mysql # not compatible
query I rowsort label-5830
SELECT 41 / - + col1 + - 6 + - 12 FROM tab1 cor0
----
-18
-20
-26

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

query I rowsort
SELECT DISTINCT - col1 + + - 71 FROM tab1 AS cor0
----
-118
-76
-85

query I rowsort
SELECT DISTINCT col2 + - + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT ALL + MAX( - + 7 ) - CAST( NULL AS SIGNED ) FROM tab2 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL + MAX ( - + 7 ) - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT DISTINCT 35 - + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT 35 - + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
44

query I rowsort
SELECT + 87 * + col0 * - col2 AS col1 FROM tab2
----
-222720
-378450
-92046

query I rowsort
SELECT - col1 * 24 * + 23 AS col1 FROM tab0
----
-11592
-44712
-552

query I rowsort
SELECT ALL - ( + 97 ) FROM tab0
----
-97
-97
-97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5840
SELECT col2 DIV + 28 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5840
SELECT col2 / + 28 FROM tab0 AS cor0
----
0
1
3

query II rowsort
SELECT - ( col1 ) + - - col0, 6 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 0 * - 48 FROM tab1
----
0
0
0

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

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

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

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

query I rowsort
SELECT ALL - - 29 + + col1 + + col2 + col2 * + - col1 FROM tab2 AS cor0
----
-1070
-2934
-3732

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

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT - ( + 22 ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

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

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

query I rowsort
SELECT + - 28 * 61 * col0 FROM tab1 AS cor0
----
-145180
-155428
-87108

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - - ( + ( - col2 ) ) ) < - 51 + + col1 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5851
SELECT DISTINCT col2 DIV - 78 + + 25 AS col1 FROM tab1 AS cor0
----
24
25

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT col2 / - 78 + + 25 AS col1 FROM tab1 AS cor0
----
24
25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT DISTINCT col1 * + + col1 + + - col0 * 21 DIV + col2 FROM tab0 AS cor0
----
-19
259
6555

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT col1 * + + col1 + + - col0 * 21 / + col2 FROM tab0 AS cor0
----
-19
259
6555

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT ALL 26 DIV - 92 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL 26 / - 92 FROM tab2
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT - MAX ( DISTINCT - 14 ) AS col1 FROM tab0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT + ( - col2 ) DIV - 45 + - col0 FROM tab2
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-5858
SELECT + ( - col2 ) / - 45 + - col0 FROM tab2
----
-46
-64
-74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 14 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 >= - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT + col2 - - col2 + + - col1 AS col2 FROM tab2
----
-5
3
49

onlyif mysql # DIV for integer division: 
query II rowsort label-5863
SELECT - col1 DIV + - col0 col1, 84 + - 63 + + - col0 * - col0 FROM tab1
----
0
2622
0
7246
0
8302

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5863
SELECT - col1 / + - col0 col1, 84 + - 63 + + - col0 * - col0 FROM tab1
----
0
2622
0
7246
0
8302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5864
SELECT + 92 - COUNT( ALL + - col0 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT + 92 - COUNT ( ALL + - col0 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

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

query I rowsort
SELECT + + 54 - 58 FROM tab1 cor0 WHERE NULL NOT BETWEEN - col0 AND + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND col0 / 12
----

query I rowsort
SELECT - - col1 + + - 17 + - 54 FROM tab1 AS cor0
----
-24
-57
-66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - 79
----

query I rowsort
SELECT - 59 + - col2 AS col1 FROM tab2 cor0
----
-117
-82
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - SUM( - ( - 55 ) ) AS col0 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-5872
SELECT - SUM ( - ( - 55 ) ) AS col0 FROM tab2
----
-165

query I rowsort
SELECT col0 * - - 66 AS col2 FROM tab1
----
3366
5610
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT DISTINCT 92 * + COUNT( * ) AS col2 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT 92 * + COUNT ( * ) AS col2 FROM tab0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT DISTINCT - MAX( DISTINCT 36 ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT - MAX ( DISTINCT 36 ) FROM tab2
----
-36

query II rowsort
SELECT + col0 AS col1, + col2 * col0 AS col2 FROM tab2
----
46
1058
64
2560
75
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-5877
SELECT DISTINCT col2, + col2 DIV col0 AS col0 FROM tab1
----
59
0
68
0
96
1

skipif mysql # not compatible
query II rowsort label-5877
SELECT DISTINCT col2, + col2 / col0 AS col0 FROM tab1
----
59
0
68
0
96
1

query II rowsort
SELECT DISTINCT - + col1, 21 AS col0 FROM tab0 AS cor0
----
-1
21
-21
21
-81
21

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

skipif mysql # not compatible
query I rowsort label-5879
SELECT + 0 / + col0 FROM tab1 AS cor0
----
0
0
0

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

query II rowsort
SELECT DISTINCT col2 AS col2, - col2 * + 65 FROM tab2 AS cor0
----
23
-1495
40
-2600
58
-3770

query I rowsort
SELECT DISTINCT - ( + + col2 ) * ( + + col1 ) FROM tab0 WHERE NULL IS NULL
----
-210
-3807
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5883
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = col0 * + ( + - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5883
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = col0 * + ( + - CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5884
SELECT + CAST( + + COUNT( * ) AS SIGNED ) + - - SUM( - + 64 ) AS col1 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-5884
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) + - - SUM ( - + 64 ) AS col1 FROM tab1 AS cor0
----
-189

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

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

query I rowsort
SELECT col1 + - ( + col1 ) * + col0 - 91 FROM tab0 AS cor0
----
-1225
-187
-1897

query I rowsort
SELECT col1 + 67 * - col2 FROM tab2 cor0
----
-1490
-2603
-3819

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT ( + col2 ) DIV - + col0 * + 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT ( + col2 ) / - + col0 * + 86 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 28 * + + col0 * + col0 AS col2 FROM tab1
----
202300
231868
72828

query I rowsort
SELECT DISTINCT col1 * - + col0 * + col2 AS col0 FROM tab0
----
-18270
-57105
-9603

query II rowsort
SELECT DISTINCT col0, 61 FROM tab0
----
15
61
87
61
97
61

query I rowsort
SELECT DISTINCT - 54 + + + col2 AS col2 FROM tab2
----
-14
-31
4

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

skipif mysql # not compatible
query I rowsort label-5894
SELECT - ( MIN ( 79 ) ) AS col2 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT ALL + col0 + - 76 + + col0 AS col1 FROM tab1 AS cor0
----
106
26
94

query I rowsort
SELECT DISTINCT + col0 + - + col2 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT DISTINCT 77 + COUNT( * ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT 77 + COUNT ( * ) FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT + - ( - MAX( DISTINCT + ( - + ( + 19 ) ) ) ) * - COUNT( * ) - - COUNT( * ) * - - 41 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5899
SELECT + - ( - MAX ( DISTINCT + ( - + ( + 19 ) ) ) ) * - COUNT ( * ) - - COUNT ( * ) * - - 41 FROM tab0 AS cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5900
SELECT ALL col1 * + + 98 + + - col1, + col1 + + col2 * + - 74 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
4947
NULL
6499
NULL
7469
NULL

skipif mysql # not compatible
query II rowsort label-5900
SELECT ALL col1 * + + 98 + + - col1, + col1 + + col2 * + - 74 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
4947
NULL
6499
NULL
7469
NULL

query I rowsort
SELECT DISTINCT col1 * + + 27 FROM tab0
----
2187
27
567

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, + ( 22 ) col0 FROM tab0
----
10
22
47
22
99
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 66 col0 FROM tab0 AS cor0
----
3102
6534
660

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT 19 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5905
SELECT 19 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-57

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 23 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT 34 * MIN( - + col0 ) FROM tab2 AS cor0
----
-2550

skipif mysql # not compatible
query I rowsort label-5908
SELECT 34 * MIN ( - + col0 ) FROM tab2 AS cor0
----
-2550

query I rowsort
SELECT - - 69 FROM tab1 cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT - COUNT( * ) + + + 40 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + + col2 = NULL
----
40

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT - COUNT ( * ) + + + 40 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + + col2 = NULL
----
40

query II rowsort
SELECT ALL 4, col2 FROM tab2 AS cor0
----
4
23
4
40
4
58

query II rowsort
SELECT + - 5, col1 * - 87 AS col0 FROM tab2 AS cor0
----
-5
-4437
-5
-5829
-5
-6699

query II rowsort
SELECT DISTINCT col0 * - col1 * + - col1 * + - 96 AS col1, + col0 AS col1 FROM tab1 WHERE + col1 IS NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT - 46 + + col2 + 23 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-13
24
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL MAX( - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL MAX ( - col1 ) FROM tab1
----
-5

query II rowsort
SELECT ALL + col2 * + col1 + - 79 + - 30 AS col0, - 84 * 74 AS col2 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + 79 + - 48 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + 79 + - 48 IS NULL
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT - 66 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

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

query I rowsort
SELECT ALL col1 * col0 * + col1 * 90 FROM tab1
----
18091710
191250
899640

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

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

skipif mysql # not compatible
query I rowsort label-5931
SELECT col1 + + CAST ( + col2 AS INTEGER ) + - col2 AS col0 FROM tab2
----
51
67
77

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

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

query I rowsort
SELECT col0 * col1 * col2 + + + 25 FROM tab2
----
197145
291475
53983

query I rowsort
SELECT ALL + col2 + 88 + col2 FROM tab1
----
206
224
280

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

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

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

query II rowsort
SELECT DISTINCT ( + - 17 ) * + col1, col2 AS col2 FROM tab1
----
-238
96
-799
68
-85
59

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5939
SELECT + CAST ( NULL AS INTEGER ) - col2 + - 63, col0 col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5942
SELECT ALL + col2, - 5 - + col0 + + col0 DIV + col0 FROM tab0 AS cor0
----
10
-91
47
-19
99
-101

skipif mysql # not compatible
query II rowsort label-5942
SELECT ALL + col2, - 5 - + col0 + + col0 / + col0 FROM tab0 AS cor0
----
10
-91
47
-19
99
-101

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

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

query I rowsort
SELECT + 5 * + - col2 FROM tab2 cor0
----
-115
-200
-290

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

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

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

query III rowsort
SELECT col0, col0 AS col0, + - 80 FROM tab0
----
9 values hashing to ec8f5be48c6720115e2ce6e023b40032

onlyif mysql # DIV for integer division: 
query II rowsort label-5948
SELECT ALL col1 * 38 DIV ( - col1 ) AS col1, - col0 FROM tab1
----
-38
-51
-38
-85
-38
-91

skipif mysql # not compatible
query II rowsort label-5948
SELECT ALL col1 * 38 / ( - col1 ) AS col1, - col0 FROM tab1
----
-38
-51
-38
-85
-38
-91

query I rowsort
SELECT ALL + 66 * + - 67 FROM tab1
----
-4422
-4422
-4422

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT IN ( - 77 / - col2, + col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT - + MAX( + col0 ) AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-97
3

skipif mysql # not compatible
query II rowsort label-5952
SELECT - + MAX ( + col0 ) AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-97
3

query I rowsort
SELECT + - 64 AS col1 FROM tab0 cor0
----
-64
-64
-64

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT ALL 88 + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL < + 33
----
88

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL 88 + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < + 33
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5958
SELECT DISTINCT - 1 + - CAST( NULL AS SIGNED ) * - col0 AS col2, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5958
SELECT DISTINCT - 1 + - CAST ( NULL AS INTEGER ) * - col0 AS col2, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 32 + + col0 col2, + 75 FROM tab2 AS cor0
----
107
75
78
75
96
75

onlyif mysql # DIV for integer division: 
query III rowsort label-5960
SELECT 33 DIV - + col0 * + - col1 - - 69 + - 15 AS col0, - col2 + ( ( + col1 ) ) + + 11 AS col0, 38 + col0 + + - col2 FROM tab1 cor0
----
9 values hashing to a6ca832d11b4a9648f741a0003155997

skipif mysql # not compatible
query III rowsort label-5960
SELECT 33 / - + col0 * + - col1 - - 69 + - 15 AS col0, - col2 + ( ( + col1 ) ) + + 11 AS col0, 38 + col0 + + - col2 FROM tab1 cor0
----
9 values hashing to a6ca832d11b4a9648f741a0003155997

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

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

query I rowsort
SELECT DISTINCT + - col2 * col2 + + col0 * col1 FROM tab2 AS cor0
----
1661
1817
3328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5963
SELECT DISTINCT + 34 DIV - - SUM( - - col0 ) + - + 4 AS col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + 34 / - - SUM ( - - col0 ) + - + 4 AS col0 FROM tab0 AS cor0
----
-4

query II rowsort
SELECT DISTINCT + col2 + 57 AS col2, - col0 AS col0 FROM tab1 WHERE NOT 99 + 96 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - col2 * col1 FROM tab2
----
-1150
-3040
-3828

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

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

query I rowsort
SELECT 5 - col1 AS col2 FROM tab2
----
-46
-62
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT COUNT( col0 ) * 60 + + 92 AS col2 FROM tab0 WHERE - col1 - 38 IS NULL
----
92

skipif mysql # not compatible
query I rowsort label-5970
SELECT COUNT ( col0 ) * 60 + + 92 AS col2 FROM tab0 WHERE - col1 - 38 IS NULL
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5971
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL > ( - col0 + - 65 * + 14 )
----

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL > ( - col0 + - 65 * + 14 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT - ( SUM( ALL col2 ) ) FROM tab0 WHERE NULL > col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT - ( SUM ( ALL col2 ) ) FROM tab0 WHERE NULL > col0 * col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * 13 - + 28 * + col2 col2 FROM tab0
----
-1784
-328
708

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 79 ) IN ( - ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5976
SELECT col2 DIV + ( + col2 ) + col0 * col1 FROM tab2
----
2347
4929
5026

skipif mysql # not compatible
query I rowsort label-5976
SELECT col2 / + ( + col2 ) + col0 * col1 FROM tab2
----
2347
4929
5026

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5977
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS DECIMAL ) + 48 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5977
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS REAL ) + 48 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5978
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE ( col2 ) < col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( col2 ) < col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 16 * - ( - 8 ) FROM tab1 WHERE ( NULL ) IS NULL
----
128

query I rowsort
SELECT ALL + 9 FROM tab2 WHERE col2 * + col1 NOT BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab0 WHERE ( col1 * ( col0 * col1 ) ) NOT BETWEEN NULL AND + ( col1 )
----
198
20
94

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

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

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

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

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

query I rowsort
SELECT ALL + col1 * + 22 FROM tab1 WHERE NOT - col0 * col2 IN ( ( + col0 ) + col0 )
----
1034
110
308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 52 col2 FROM tab1
----
-3068
-3536
-4992

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

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

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
58

query I rowsort
SELECT - 68 * + col1 AS col1 FROM tab0 AS cor0
----
-1428
-5508
-68

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

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

query I rowsort
SELECT ALL - 7 + 29 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT CAST( col0 AS SIGNED ) * ( 69 ) FROM tab1
----
3519
5865
6279

skipif mysql # not compatible
query I rowsort label-5993
SELECT CAST ( col0 AS INTEGER ) * ( 69 ) FROM tab1
----
3519
5865
6279

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 57 <> NULL
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL - SUM( + 83 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = col2 + - ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL - SUM ( + 83 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = col2 + - ( + col1 )
----
NULL

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

query I rowsort
SELECT - col1 * col2 * - col2 + col1 AS col1 FROM tab1
----
129038
17410
217375

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT 72 DIV 6 * 40 + col2 AS col1 FROM tab1
----
539
548
576

skipif mysql # not compatible
query I rowsort label-6003
SELECT 72 / 6 * 40 + col2 AS col1 FROM tab1
----
539
548
576

query I rowsort
SELECT - col2 + col0 + 76 AS col1 FROM tab2
----
100
93
99

query I rowsort
SELECT - 74 - - col2 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
-27
-64
25

query I rowsort
SELECT - 86 + - col1 * + col0 AS col2 FROM tab1
----
-4363
-511
-800

query I rowsort
SELECT + col0 + + - 48 FROM tab0
----
-33
39
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL + MAX( DISTINCT col1 ) * COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
243

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL + MAX ( DISTINCT col1 ) * COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col1 + col1 * - col0 col0 FROM tab1
----
-1081
-130
630

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

query I rowsort
SELECT ALL - AVG ( ALL col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT 67 * - ( - 10 ) - + ( + 96 + 5 ) >= col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT - MAX( - col2 ) col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6013
SELECT - MAX ( - col2 ) col0 FROM tab1 AS cor0
----
59

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 AS cor0 WHERE NOT 10 / col0 + col0 < 2
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT + col2 DIV 67 * + 75 * col0 + col2 DIV + 65 FROM tab1 AS cor0
----
0
3826
6826

skipif mysql # not compatible
query I rowsort label-6020
SELECT + col2 / 67 * + 75 * col0 + col2 / + 65 FROM tab1 AS cor0
----
0
3826
6826

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

query I rowsort
SELECT ALL 19 / - ( col2 ) FROM tab0 cor0 WHERE NOT NULL > NULL
----

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

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

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

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

query I rowsort
SELECT col2 * - col2 + + col0 FROM tab1 AS cor0
----
-3396
-4533
-9165

query I rowsort
SELECT + 45 * ( - + col2 ) * 42 FROM tab2 AS cor0
----
-109620
-43470
-75600

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT ALL CAST( - - 18 AS SIGNED ) AS col0 FROM tab1
----
18
18
18

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL CAST ( - - 18 AS INTEGER ) AS col0 FROM tab1
----
18
18
18

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

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

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

query I rowsort
SELECT DISTINCT + 82 * col0 * col1 * + col2 FROM tab1
----
2056150
23848552
5620608

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 = - col0
----

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

query I rowsort
SELECT DISTINCT 22 * + + col0 + + + 6 AS col2 FROM tab1 AS cor0
----
1128
1876
2008

query I rowsort
SELECT + 51 * - + col0 * - col0 + + 78 * + + 87 + - col1 FROM tab2 AS cor0
----
114651
215605
293594

query I rowsort
SELECT ALL 75 + + - col0 FROM tab2 AS cor0
----
0
11
29

query I rowsort
SELECT col1 + 97 FROM tab0 AS cor0
----
118
178
98

query I rowsort
SELECT DISTINCT + + col0 * 14 * col1 + - + 12 * - + ( col2 ) + col1 FROM tab1 AS cor0
----
11162
60741
6663

query I rowsort
SELECT ALL + col1 + col1 AS col0 FROM tab0 AS cor0 WHERE col1 * + col2 + - + col0 > ( NULL )
----

query I rowsort
SELECT ALL + 21 * + - col0 + + + col1 FROM tab1 AS cor0
----
-1057
-1780
-1864

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6043
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + col2 * - 79 + CAST( 25 AS SIGNED ) NOT BETWEEN ( + col1 ) AND 90 - + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-6043
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + col2 * - 79 + CAST ( 25 AS INTEGER ) NOT BETWEEN ( + col1 ) AND 90 - + CAST ( NULL AS INTEGER ) * - col1
----

query I rowsort
SELECT ALL + col0 * ( - + 30 ) + 13 + 20 AS col0 FROM tab1
----
-1497
-2517
-2697

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT col0 DIV 3 - - - col1 DIV + + ( - col1 ) AS col0 FROM tab1
----
18
29
31

skipif mysql # not compatible
query I rowsort label-6045
SELECT col0 / 3 - - - col1 / + + ( - col1 ) AS col0 FROM tab1
----
18
29
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT COUNT( 59 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT COUNT ( 59 ) FROM tab1
----
3

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

query II rowsort
SELECT ALL - 48 AS col2, 74 + - col0 FROM tab1
----
-48
-11
-48
-17
-48
23

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6051
SELECT MAX ( + col2 ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT - 22 * - col2 * - + col2 + 35 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-11603
-35165
-73973

query III rowsort
SELECT ALL * FROM tab1 WHERE + 7 + + 85 + + 58 + - col2 - + 70 IS NULL
----

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

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

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

query I rowsort
SELECT ALL col0 / - 59 + + col1 - - col0 * + + col1 / - col2 / 31 AS col1 FROM tab2 cor0 WHERE - col2 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + - 66 * - + 60 FROM tab1 AS cor0
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT DISTINCT - - 66 * + COUNT( DISTINCT + 90 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - - 66 * + COUNT ( DISTINCT + 90 ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT DISTINCT ( 22 ) FROM tab1 AS cor0
----
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 88 / col2 * - col2 + - col0 + - col1 + - 61 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT + + SUM( - - col0 ) * 45 * - + COUNT( * ) col1 FROM tab1 AS cor0
----
-30645

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6062
SELECT + + SUM ( - - col0 ) * 45 * - + COUNT ( * ) col1 FROM tab1 AS cor0
----
-30645

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + + col0 - + - 48 IS NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6065
SELECT * FROM tab1 WHERE NULL BETWEEN - + CAST( NULL AS SIGNED ) AND ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-6065
SELECT * FROM tab1 WHERE NULL BETWEEN - + CAST ( NULL AS INTEGER ) AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT 73 + + COUNT( * ) AS col1 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-6066
SELECT 73 + + COUNT ( * ) AS col1 FROM tab2
----
76

query II rowsort
SELECT col0 + - ( + 82 ), col2 AS col2 FROM tab1
----
-31
96
3
59
9
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL 41 + - COUNT( * ) col2 FROM tab0
----
38

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT ALL + + col0 + - CAST( col2 AS SIGNED ) * 96 FROM tab0 AS cor0
----
-4497
-873
-9407

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL + + col0 + - CAST ( col2 AS INTEGER ) * 96 FROM tab0 AS cor0
----
-4497
-873
-9407

query I rowsort
SELECT ALL 70 + col1 FROM tab1 AS cor0
----
117
75
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6071
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - CAST( + col1 AS SIGNED ) ) = col0 + + col0 + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6071
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - CAST ( + col1 AS INTEGER ) ) = col0 + + col0 + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 69 > NULL
----

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

query II rowsort
SELECT DISTINCT 61 + + 90, col1 AS col1 FROM tab0
----
151
1
151
21
151
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6076
SELECT DISTINCT - + COUNT( * ) + - 17 AS col2, MIN( ALL + 96 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
96

skipif mysql # not compatible
query II rowsort label-6076
SELECT DISTINCT - + COUNT ( * ) + - 17 AS col2, MIN ( ALL + 96 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
96

query I rowsort
SELECT DISTINCT 40 + - 17 * + + 78 FROM tab0 AS cor0
----
-1286

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT - - 78 + + MIN( col2 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - - 78 + + MIN ( col2 ) FROM tab0 AS cor0
----
88

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE - ( + - 72 ) BETWEEN - col2 * col2 * + - col2 AND ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + ( + col1 ) * - col2 ) < - ( + 60 ) / col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 + col2 + + + 53 col0 FROM tab1 AS cor0 WHERE ( - 7 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 26 + - col0 * - - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( ( + ( + col2 ) ) * - ( - - col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 94 < - col2
----

query I rowsort
SELECT + 23 + 43 FROM tab2 AS cor0 WHERE ( NOT NULL >= NULL ) OR NOT - col1 / + col1 + col1 NOT IN ( + - col0 + + + col2 + col0 )
----

query I rowsort
SELECT + col1 + - - 44 + + + col2 + + col0 AS col0 FROM tab0 AS cor0
----
162
187
241

query I rowsort
SELECT DISTINCT 46 - - col1 * + col2 AS col2 FROM tab2
----
1219
3126
3932

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= ( + 42 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6088
SELECT DISTINCT - SUM( ALL - CAST( + - col2 AS SIGNED ) ) * - COUNT( * ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT - SUM ( ALL - CAST ( + - col2 AS INTEGER ) ) * - COUNT ( * ) FROM tab0
----
468

query I rowsort
SELECT ALL + col0 * col0 * + col1 * + + col0 AS col1 FROM tab0
----
13828563
273375
912673

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT MIN( ALL - - 10 ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT MIN ( ALL - - 10 ) FROM tab2
----
10

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL >= ( - col0 ) - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT SUM( ALL - ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6093
SELECT SUM ( ALL - ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 / - + 21 IS NULL
----

query II rowsort
SELECT DISTINCT + 59, col2 AS col2 FROM tab0 AS cor0
----
59
10
59
47
59
99

query I rowsort
SELECT - col1 * - 83 + ( - col1 ) FROM tab2 AS cor0
----
4182
5494
6314

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6097
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - ( - + col2 ) AS DECIMAL ) IS NULL AND 3 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6097
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - ( - + col2 ) AS REAL ) IS NULL AND 3 IS NULL
----

query I rowsort
SELECT - col1 + - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-141
-15
-42

query I rowsort
SELECT DISTINCT col2 * + + col0 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT col1 + col1 * - col2 FROM tab2
----
-1122
-3003
-3819

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

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

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

skipif mysql # not compatible
query I rowsort label-6103
SELECT MIN ( - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + - 79 - 47 + 49 * + 24 AS col1 FROM tab0 AS cor0
----
1050
1050
1050

query II rowsort
SELECT DISTINCT - col2 - - col1 + - - col1, col2 FROM tab0 AS cor0
----
-97
99
115
47
32
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 * - ( + - 81 ) col2 FROM tab1
----
5751

query I rowsort
SELECT ALL 11 + - 5 AS col1 FROM tab1 AS cor0
----
6
6
6

query II rowsort
SELECT - 67 AS col0, 76 - 53 + - col0 AS col1 FROM tab2 cor0
----
-67
-23
-67
-41
-67
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - 42 col0 FROM tab2 AS cor0
----
-23
-42
-40
-42
-58
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT DISTINCT + - SUM( 76 ) FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT + - SUM ( 76 ) FROM tab1 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL + - MIN( 82 ) FROM tab0 AS cor0 WHERE - 21 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + - MIN ( 82 ) FROM tab0 AS cor0 WHERE - 21 > NULL
----
NULL

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + ( + + col1 ) + - col1 + - 2 BETWEEN ( - 88 * - ( - col2 ) ) AND 37 + - col0
----
46
64
75

query I rowsort
SELECT DISTINCT col1 * 66 * - 45 * + col2 FROM tab2
----
-11541420
-3483810
-9147600

query I rowsort
SELECT DISTINCT + col2 * - 11 AS col1 FROM tab0
----
-1089
-110
-517

onlyif mysql # DIV for integer division: 
query I rowsort label-6115
SELECT ALL + ( + 29 ) DIV col2 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL + ( + 29 ) / col2 AS col2 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT DISTINCT COUNT( * ) * + + SUM( + + col0 ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT COUNT ( * ) * + + SUM ( + + col0 ) FROM tab2
----
555

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL col1 DIV ( - - 42 ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL col1 / ( - - 42 ) FROM tab1
----
0
0
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT ( - - MAX( ALL - 96 ) ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT ( - - MAX ( ALL - 96 ) ) FROM tab2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT - MAX( ALL col1 ) col0 FROM tab1
----
-47

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

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

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

query I rowsort
SELECT DISTINCT + + col2 * ( - col0 ) + - col1 * + - col1 + col1 FROM tab0 AS cor0
----
-408
-9601
5937

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + + 8
----

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

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

skipif mysql # not compatible
query I rowsort label-6126
SELECT - + MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-46

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

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT + + col1 / + + col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT - ( - - 55 ) NOT IN ( col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6128
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT - ( - - 55 ) NOT IN ( col2 )
----

query I rowsort
SELECT + 83 FROM tab2 WHERE + 28 - 26 < 29
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT + CAST( - col2 AS SIGNED ) + - + col1 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-6130
SELECT + CAST ( - col2 AS INTEGER ) + - + col1 FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT col0 + - CAST( + 27 AS SIGNED ) + + col2 FROM tab1
----
117
120
132

skipif mysql # not compatible
query I rowsort label-6131
SELECT col0 + - CAST ( + 27 AS INTEGER ) + + col2 FROM tab1
----
117
120
132

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT + col0 + + col1 DIV + col0 AS col0 FROM tab0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-6132
SELECT + col0 + + col1 / + col0 AS col0 FROM tab0
----
20
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 61 = NULL
----

query I rowsort
SELECT col0 * + - 24 + - + col0 AS col1 FROM tab2
----
-1150
-1600
-1875

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col0, + col1, col2 - - - 52, - 55, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6136
SELECT + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0
----
6

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

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

query I rowsort
SELECT DISTINCT - col2 - - col1 + col1 + - + col2 + 2 AS col0 FROM tab1 cor0
----
-106
-162
-40

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

query I rowsort
SELECT col1 - - - col0 + - 61 AS col0 FROM tab1
----
-105
-141
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6142
SELECT ALL - col0 col1, - col1 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6142
SELECT ALL - col0 col1, - col1 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT + 19 AS col2 FROM tab0 cor0 WHERE NOT ( col1 ) = - col2 / + 41
----
19
19
19

query I rowsort
SELECT DISTINCT 39 * 56 * + + col1 AS col2 FROM tab1
----
102648
10920
30576

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT ALL SUM( - + ( 11 ) ) * - 41 FROM tab1
----
1353

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL SUM ( - + ( 11 ) ) * - 41 FROM tab1
----
1353

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT SUM( ALL + 92 ) AS col0 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT SUM ( ALL + 92 ) AS col0 FROM tab0
----
276

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT ALL + col2 * + + CAST( + col1 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
308367
4410
99

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL + col2 * + + CAST ( + col1 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6149
SELECT - 40 * 94 + - 21 DIV + COUNT( * ) + - 94 FROM tab1 AS cor0
----
-3861

skipif mysql # not compatible
query I rowsort label-6149
SELECT - 40 * 94 + - 21 / + COUNT ( * ) + - 94 FROM tab1 AS cor0
----
-3861

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

query I rowsort
SELECT DISTINCT - - col2 * + 22 + - col1 + + ( + 52 ) AS col2 FROM tab1 AS cor0
----
1345
1501
2150

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

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

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

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

query I rowsort
SELECT ALL + + 76 * col2 AS col1 FROM tab1 cor0 WHERE - ( + ( + + col0 ) ) > NULL
----

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

query I rowsort
SELECT DISTINCT + col0 * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT + col2 + - 62 + + col2 AS col0 FROM tab2 AS cor0
----
-16
18
54

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

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

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

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT COUNT ( * ) / + - MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT - MAX( - - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6163
SELECT - MAX ( - - col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT col2 + 74 * + - col0 AS col0 FROM tab0
----
-1063
-6428
-7079

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

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

query I rowsort
SELECT DISTINCT - 73 * - 34 - + + 74 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
2408

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

query I rowsort
SELECT col1 * + col2 * + + 26 AS col1 FROM tab0 cor0
----
2574
5460
98982

query II rowsort
SELECT + 39, - 67 AS col0 FROM tab1 AS cor0
----
39
-67
39
-67
39
-67

query I rowsort
SELECT col2 * + ( - ( + 90 ) ) AS col0 FROM tab2 AS cor0
----
-2070
-3600
-5220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6172
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 > + CAST( + col1 AS SIGNED )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-6172
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 > + CAST ( + col1 AS INTEGER )
----
46
51
23
64
77
40

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL - MIN( ALL + 12 ) + - 19 FROM tab1 AS cor0 WHERE NOT ( + col0 + + + col0 + + + col0 ) >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - MIN ( ALL + 12 ) + - 19 FROM tab1 AS cor0 WHERE NOT ( + col0 + + + col0 + + + col0 ) >= ( NULL )
----
NULL

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

query I rowsort
SELECT DISTINCT 97 * + col2 AS col2 FROM tab2
----
2231
3880
5626

query II rowsort
SELECT DISTINCT - col2 * + col1, col1 AS col1 FROM tab0
----
-210
21
-3807
81
-99
1

query I rowsort
SELECT DISTINCT - + col2 * 28 FROM tab0 WHERE - ( col2 ) * col0 - + - col0 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT COUNT( * ) * - 70 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-6181
SELECT COUNT ( * ) * - 70 FROM tab2
----
-210

query II rowsort
SELECT DISTINCT - - 9 * - - col2, 68 AS col0 FROM tab1 AS cor0
----
531
68
612
68
864
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 88 col2 FROM tab0 cor0
----
1848
7128
88

query I rowsort
SELECT ALL 99 * col0 * col0 AS col2 FROM tab0 AS cor0
----
22275
749331
931491

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6185
SELECT ALL - + col0 * + 75 / - - CAST( NULL AS SIGNED ) * + col2 * + col1, col1 AS col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6185
SELECT ALL - + col0 * + 75 / - - CAST ( NULL AS INTEGER ) * + col2 * + col1, col1 AS col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT DISTINCT - ( - - col2 ) DIV - - col0 * - 8 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT - ( - - col2 ) / - - col0 * - 8 AS col2 FROM tab2 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT + + col0 + CAST ( - col0 AS INTEGER ) + + 99 AS col1 FROM tab0 AS cor0
----
99

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

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

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

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

query I rowsort
SELECT DISTINCT - 24 * + + col1 + - + col1 * - ( col2 ) + col1 + col0 FROM tab2 AS cor0
----
1373
2420
46

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE col0 < + col0
----

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

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

query I rowsort
SELECT - 44 + + col1 + + 64 FROM tab0 AS cor0
----
101
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT DISTINCT - MAX( DISTINCT - 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT - MAX ( DISTINCT - 33 ) FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT 62 + - ( COUNT( * ) ) - - 15 AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-6196
SELECT 62 + - ( COUNT ( * ) ) - - 15 AS col1 FROM tab1
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 83 col1, + 4 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
-83
4
-83
4
-83
4

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

skipif mysql # not compatible
query I rowsort label-6198
SELECT COUNT ( * ) + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
12

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

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT + COUNT( * ) + 88 * - 32 + - 52 + 24 AS col2 FROM tab1
----
-2841

skipif mysql # not compatible
query I rowsort label-6200
SELECT + COUNT ( * ) + 88 * - 32 + - 52 + 24 AS col2 FROM tab1
----
-2841

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + + SUM( + 90 ) FROM tab2 WHERE ( NOT col0 = NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT + + SUM ( + 90 ) FROM tab2 WHERE ( NOT col0 = NULL )
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col2 col1, ( + col2 ) - + + 45 FROM tab2 AS cor0
----
117
-5
125
13
74
-22

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + ( col2 ) / + - 94 * + 55 AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6206
SELECT ALL 71 AS col1, 76 + - 65 + - + 76 * + + CAST( - + CAST( + col2 AS SIGNED ) AS SIGNED ) FROM tab2
----
71
1759
71
3051
71
4419

skipif mysql # not compatible
query II rowsort label-6206
SELECT ALL 71 AS col1, 76 + - 65 + - + 76 * + + CAST ( - + CAST ( + col2 AS INTEGER ) AS INTEGER ) FROM tab2
----
71
1759
71
3051
71
4419

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

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

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

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE ( + col2 IS NULL ) OR NOT + ( + col0 ) - - ( - col1 ) * + ( 11 ) + - + 88 IS NULL
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6212
SELECT DISTINCT - 12 AS col0, - 97 + + COUNT( * ) FROM tab0
----
-12
-94

skipif mysql # not compatible
query II rowsort label-6212
SELECT DISTINCT - 12 AS col0, - 97 + + COUNT ( * ) FROM tab0
----
-12
-94

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

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

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

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

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

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 cor0 WHERE NOT 76 * - 13 IS NULL
----
23
40
58

query I rowsort
SELECT ALL - ( - - col0 ) + - 76 - - col2 * - col0 * + col0 FROM tab0 AS cor0
----
-10666
-75853
-931664

query I rowsort
SELECT DISTINCT - + col1 + + col2 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

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

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

query II rowsort
SELECT col0 AS col0, col0 + col0 + ( + 67 ) AS col1 FROM tab2 AS cor0
----
46
159
64
195
75
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT DISTINCT - + ( + COUNT( DISTINCT 29 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT - + ( + COUNT ( DISTINCT 29 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6223
SELECT ALL + - col1 AS col0, col2 DIV col1 FROM tab2 cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-6223
SELECT ALL + - col1 AS col0, col2 / col1 FROM tab2 cor0
----
-51
0
-67
0
-77
0

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

query I rowsort
SELECT - + 67 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT DISTINCT - 18 + + col0 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
2282
229
92

query I rowsort
SELECT ALL + ( - col0 ) + - 40 FROM tab1 AS cor0
----
-125
-131
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6228
SELECT DISTINCT - 89 + COUNT( * ) DIV + - 93 FROM tab0 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT - 89 + COUNT ( * ) / + - 93 FROM tab0 cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT 49 * - - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-6229
SELECT 49 * - - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
150

query I rowsort
SELECT + - 38 FROM tab1 AS cor0 WHERE col1 * + + col2 * - + 94 + - + 53 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + ( 41 ) + + 33 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT + col0 * - col0 + - + col1 - 10 + + + 97 AS col1 FROM tab2 AS cor0
----
-2080
-4086
-5605

query I rowsort
SELECT ALL - col0 + col2 + - + col2 FROM tab1 WHERE NOT - 95 * + - 63 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + 87 col2 FROM tab1
----
5133
5916
8352

query I rowsort
SELECT + col0 - + col2 * col2 AS col2 FROM tab1
----
-3396
-4533
-9165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + 5 * - COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6237
SELECT + 5 * - COUNT ( * ) FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT DISTINCT - SUM( - 74 ) FROM tab2 WHERE ( + col0 / - 84 + - ( col0 ) ) IS NOT NULL
----
222

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT - SUM ( - 74 ) FROM tab2 WHERE ( + col0 / - 84 + - ( col0 ) ) IS NOT NULL
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT DISTINCT - col2 DIV col2 * - + col0 col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6239
SELECT DISTINCT - col2 / col2 * - + col0 col2 FROM tab1
----
51
85
91

query I rowsort
SELECT - 71 * - - 41 * col1 FROM tab2
----
-148461
-195037
-224147

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT + MAX( col0 ) * + + 69 * - - COUNT( DISTINCT 11 ) AS col0 FROM tab0 AS cor0
----
6693

skipif mysql # not compatible
query I rowsort label-6243
SELECT + MAX ( col0 ) * + + 69 * - - COUNT ( DISTINCT 11 ) AS col0 FROM tab0 AS cor0
----
6693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

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

query II rowsort
SELECT col2, + 42 * - col0 * - col1 FROM tab2
----
23
98532
40
206976
58
211050

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT ALL SUM( DISTINCT - - 96 ) FROM tab1 WHERE + + col0 + + col0 * + col1 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL SUM ( DISTINCT - - 96 ) FROM tab1 WHERE + + col0 + + col0 * + col1 IS NOT NULL
----
96

query I rowsort
SELECT - col2 + + col2 * + 84 AS col0 FROM tab2
----
1909
3320
4814

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT COUNT( * ) + + + 37 + + 93, 89 AS col1 FROM tab0
----
133
89

skipif mysql # not compatible
query II rowsort label-6251
SELECT COUNT ( * ) + + + 37 + + 93, 89 AS col1 FROM tab0
----
133
89

query I rowsort
SELECT col1 + + 20 AS col2 FROM tab1
----
25
34
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT MIN( col1 ) * + COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-6254
SELECT MIN ( col1 ) * + COUNT ( * ) AS col0 FROM tab1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6256
SELECT ALL - COUNT( * ) FROM tab2 WHERE - CAST( + 5 AS SIGNED ) * 65 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - CAST ( + 5 AS INTEGER ) * 65 IS NOT NULL
----
-3

query II rowsort
SELECT - col0 AS col1, - col0 * + - 59 + col1 AS col2 FROM tab2
----
-46
2765
-64
3853
-75
4492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6258
SELECT ALL 43 * - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL 43 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 32 + 80 AS col1 FROM tab1 AS cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - 54 * + - col2 col2 FROM tab0 cor0
----
2553
5443
627

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT + col1 + + col1 + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
21
34
95

skipif mysql # not compatible
query I rowsort label-6261
SELECT + col1 + + col1 + col2 / col1 AS col2 FROM tab1 AS cor0
----
21
34
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT ALL + col0 + 2 + - + col2 DIV - + col0 FROM tab2 AS cor0
----
48
66
77

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL + col0 + 2 + - + col2 / - + col0 FROM tab2 AS cor0
----
48
66
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ( MAX( ALL + col1 ) ) FROM tab1 AS cor0 WHERE ( NULL ) > - + ( - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT ( MAX ( ALL + col1 ) ) FROM tab1 AS cor0 WHERE ( NULL ) > - + ( - 98 )
----
NULL

query I rowsort
SELECT DISTINCT + - col2 - - 96 * col0 + + + col2 + + col1 FROM tab1 AS cor0
----
4910
8165
8783

query I rowsort
SELECT 13 + + - col1 + - col2 * - - col0 * + ( - 14 ) FROM tab1
----
68543
70218
86598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6266
SELECT ALL CAST( + col0 AS SIGNED ) * - col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL CAST ( + col0 AS INTEGER ) * - col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT 54 + + - col1 - - 20 * col1 + - - col1 DIV col1 AS col0 FROM tab1
----
150
321
948

skipif mysql # not compatible
query I rowsort label-6267
SELECT 54 + + - col1 - - 20 * col1 + - - col1 / col1 AS col0 FROM tab1
----
150
321
948

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 + CAST( NULL AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT - ( + CAST( 98 AS SIGNED ) ) + - 3 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d0ef0a1d81af4018c86ba51e4b5f20f

skipif mysql # not compatible
query I rowsort label-6272
SELECT - ( + CAST ( 98 AS INTEGER ) ) + - 3 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d0ef0a1d81af4018c86ba51e4b5f20f

query II rowsort
SELECT col0, 34 + + col2 FROM tab1
----
51
130
85
93
91
102

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

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

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab2, tab1 AS cor0
----
92

query I rowsort
SELECT DISTINCT + ( + col1 ) - + col1 + + col0 + + + 73 FROM tab1 WHERE NOT + - col0 * - 39 >= - 85
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT DISTINCT - 23 DIV - col2 col2 FROM tab2
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6277
SELECT DISTINCT - 23 / - col2 col2 FROM tab2
----
0
1

query II rowsort
SELECT DISTINCT - 43, 88 AS col1 FROM tab0 AS cor0
----
-43
88

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

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

query I rowsort
SELECT col0 + + 78 FROM tab1 cor0
----
129
163
169

query I rowsort
SELECT DISTINCT - ( + col2 ) * - - col0 * + - col2 + + col2 + 18 FROM tab1 AS cor0
----
295962
420870
470130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6283
SELECT DISTINCT + CAST( - MAX( ALL - 77 ) AS SIGNED ) AS col2 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + CAST ( - MAX ( ALL - 77 ) AS INTEGER ) AS col2 FROM tab0
----
77

query I rowsort
SELECT DISTINCT col1 + + 10 * + col2 FROM tab1
----
595
727
974

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

skipif mysql # not compatible
query I rowsort label-6285
SELECT - 82 * - COUNT ( * ) AS col1 FROM tab2
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT + MAX( ALL - + col1 ) + - MAX( col2 ) col1 FROM tab2 cor0
----
-109

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

query II rowsort
SELECT DISTINCT + col2 AS col1, + 83 AS col0 FROM tab1 AS cor0 WHERE 3 * + col0 NOT BETWEEN + col1 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT COUNT( DISTINCT 15 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6289
SELECT COUNT ( DISTINCT 15 ) FROM tab2 AS cor0
----
1

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

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

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

query I rowsort
SELECT ALL 59 + - col1 AS col2 FROM tab0
----
-22
38
58

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

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

skipif mysql # not compatible
query I rowsort label-6294
SELECT + MIN ( ALL - CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL + - COUNT( * ) * - - 37 AS col0 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + - COUNT ( * ) * - - 37 AS col0 FROM tab2 AS cor0
----
-111

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

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

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

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

query I rowsort
SELECT 23 * - - col1 AS col0 FROM tab1
----
1081
115
322

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT + ( + MIN( 24 ) ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6300
SELECT + ( + MIN ( 24 ) ) FROM tab0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6301
SELECT + + ( CAST( NULL AS SIGNED ) ) 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-6301
SELECT + + ( CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT + + ( + COUNT ( * ) ) * - 58 AS col2 FROM tab2 AS cor0
----
-174

query I rowsort
SELECT ALL 18 * - col2 * 8 FROM tab1 AS cor0
----
-13824
-8496
-9792

query II rowsort
SELECT DISTINCT + col1 * 78 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
1092
96
3666
68
390
59

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND + + 62 + - 77
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 10 NOT IN ( 78, 62 * + - 9 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6307
SELECT DISTINCT col1 DIV + 89 AS col2, col0 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-6307
SELECT DISTINCT col1 / + 89 AS col2, col0 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT col1 * 16 * col2 + - col2 AS col0 FROM tab2 AS cor0
----
18745
49240
62118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT ALL + CAST( 34 AS SIGNED ) * + + col2 AS col0 FROM tab0 cor0
----
1598
3366
340

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + CAST ( 34 AS INTEGER ) * + + col2 AS col0 FROM tab0 cor0
----
1598
3366
340

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

query II rowsort
SELECT - col2, ( 15 ) * - col2 * - - col1 AS col1 FROM tab1
----
-59
-4425
-68
-47940
-96
-20160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + + + col0 + - 19 col0 FROM tab1
----
121
127
87

onlyif mysql # DIV for integer division: 
query II rowsort label-6313
SELECT ALL + col0 DIV - col0 + + + col2 AS col0, - col0 AS col1 FROM tab1
----
58
-85
67
-91
95
-51

skipif mysql # not compatible
query II rowsort label-6313
SELECT ALL + col0 / - col0 + + + col2 AS col0, - col0 AS col1 FROM tab1
----
58
-85
67
-91
95
-51

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

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

query I rowsort
SELECT - 15 * + + col1 * - + col2 + - 65 FROM tab2
----
17530
46135
58225

query I rowsort
SELECT ALL col1 + 81 AS col0 FROM tab0 AS cor0
----
102
162
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT ALL ( SUM( - col2 ) ) col1 FROM tab1 AS cor0 WHERE + col1 * - col1 + - 69 IS NOT NULL
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6317
SELECT ALL ( SUM ( - col2 ) ) col1 FROM tab1 AS cor0 WHERE + col1 * - col1 + - 69 IS NOT NULL
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-6318
SELECT ALL - + 29 DIV col2 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - + 29 / col2 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL SUM( + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL SUM ( + col2 ) AS col2 FROM tab0
----
156

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

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL - MIN ( + - 89 ) FROM tab1 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6321
SELECT CAST( - 6 AS SIGNED ) - + - col1 FROM tab0 AS cor0
----
-5
15
75

skipif mysql # not compatible
query I rowsort label-6321
SELECT CAST ( - 6 AS INTEGER ) - + - col1 FROM tab0 AS cor0
----
-5
15
75

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

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

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

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

query I rowsort
SELECT DISTINCT - 12 * - col0 * + + col0 AS col2 FROM tab2 WHERE - + col0 IS NOT NULL
----
25392
49152
67500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 81, col1 - 1 col2 FROM tab0
----
81
0
81
20
81
80

query I rowsort
SELECT 11 FROM tab1 WHERE NOT - col2 / - col0 IS NOT NULL
----

query I rowsort
SELECT + col2 / 92 FROM tab1 WHERE NOT NULL < - 65 AND - col1 * 11 IS NOT NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT + col0 DIV - ( - 57 ) AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6332
SELECT + col0 / - ( - 57 ) AS col1 FROM tab0 AS cor0
----
0
1
1

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

query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
24

query I rowsort
SELECT DISTINCT 46 - 3 + + col1 + 43 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
107
167
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT - - COUNT( * ) + + 70 AS col1 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-6336
SELECT - - COUNT ( * ) + + 70 AS col1 FROM tab1 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT + 22 + + col2 DIV 86 FROM tab2 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-6337
SELECT + 22 + + col2 / 86 FROM tab2 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT COUNT( - col0 ) + - 22 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6338
SELECT COUNT ( - col0 ) + - 22 FROM tab0 AS cor0
----
-19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + 40 + - - 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6340
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) < + 34
----

skipif mysql # not compatible
query III rowsort label-6340
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < + 34
----

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

query I rowsort
SELECT + col2 + + - col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT + col2 + - col2 + 59 * + 13 * - + col1 FROM tab2 AS cor0
----
-39117
-51389
-59059

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

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

query I rowsort
SELECT col2 + - + 71 FROM tab0 AS cor0
----
-24
-61
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT ALL + col1 + + 18 DIV - + col0 col1 FROM tab0 AS cor0
----
1
21
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6346
SELECT ALL + col1 + + 18 / - + col0 col1 FROM tab0 AS cor0
----
1
21
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT + MIN( ALL - 32 ) FROM tab0 AS cor0 WHERE col2 - - + col2 IS NOT NULL
----
-32

skipif mysql # not compatible
query I rowsort label-6347
SELECT + MIN ( ALL - 32 ) FROM tab0 AS cor0 WHERE col2 - - + col2 IS NOT NULL
----
-32

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL - COUNT ( col0 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NULL > - 1
----

query I rowsort
SELECT ALL - + ( - col0 ) * col2 + 86 FROM tab2 WHERE NULL IS NULL
----
1144
2646
4436

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

query I rowsort
SELECT + col0 + + col0 FROM tab1 AS cor0 WHERE col2 = + + 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT - + CAST( - - col2 AS SIGNED ) * + col2 + + + col1 FROM tab2 AS cor0
----
-1523
-3297
-478

skipif mysql # not compatible
query I rowsort label-6355
SELECT - + CAST ( - - col2 AS INTEGER ) * + col2 + + + col1 FROM tab2 AS cor0
----
-1523
-3297
-478

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT DISTINCT col1 DIV - col1 col1 FROM tab2
----
-1

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 BETWEEN NULL AND + col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6365
SELECT + - COUNT( * ), 83 + - - 34 AS col1 FROM tab0 AS cor0
----
-3
117

skipif mysql # not compatible
query II rowsort label-6365
SELECT + - COUNT ( * ), 83 + - - 34 AS col1 FROM tab0 AS cor0
----
-3
117

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - 19 * MAX( ALL - 77 ) AS col2 FROM tab1
----
1463

skipif mysql # not compatible
query I rowsort label-6368
SELECT - 19 * MAX ( ALL - 77 ) AS col2 FROM tab1
----
1463

query I rowsort
SELECT - col0 * col2 - col2 AS col2 FROM tab2 cor0
----
-1081
-2600
-4408

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT - MIN( 8 ) FROM tab2 AS cor0 WHERE NOT - ( + + col0 ) + - col2 IS NOT NULL AND - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT - MIN ( 8 ) FROM tab2 AS cor0 WHERE NOT - ( + + col0 ) + - col2 IS NOT NULL AND - col2 IS NULL
----
NULL

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

query I rowsort
SELECT DISTINCT - col1 + - + col1 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT DISTINCT - + col2 * - + col1 + - ( - + col1 ) + + col1 + col0 AS col1 FROM tab0 AS cor0
----
198
339
3984

query I rowsort
SELECT ALL 18 + - - col0 + 52 + 46 FROM tab1 AS cor0
----
167
201
207

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - col0 col0 FROM tab2 cor0
----
-104
-133
-69

query II rowsort
SELECT ALL + - col1 AS col2, - 26 * - + col0 - 83 + + + col0 + - col2 - - + col1 + + col1 FROM tab1 AS cor0
----
-14
1226
-47
2400
-5
2163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col2 FROM tab1 AS cor0 WHERE NOT NULL > 74 + + col0 + - - col0
----

query I rowsort
SELECT DISTINCT - + col0 + - - col2 FROM tab1 cor0
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 * 24 + 5 * + col1 col1 FROM tab0 AS cor0
----
-387
-687
-787

onlyif mysql # DIV for integer division: 
query II rowsort label-6382
SELECT + 90 + + col2 AS col2, + 96 DIV - col2 FROM tab1
----
149
-1
158
-1
186
-1

skipif mysql # not compatible
query II rowsort label-6382
SELECT + 90 + + col2 AS col2, + 96 / - col2 FROM tab1
----
149
-1
158
-1
186
-1

query I rowsort
SELECT ( - + ( + col1 ) ) + 97 FROM tab0
----
16
76
96

query II rowsort
SELECT ALL + col2 AS col0, 64 FROM tab2
----
23
64
40
64
58
64

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT + 43 + + col0 * - + ( - 54 ) = - 36
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6386
SELECT ALL * FROM tab1 WHERE NOT NULL = + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6386
SELECT ALL * FROM tab1 WHERE NOT NULL = + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT col2 + - - 34 FROM tab1
----
102
130
93

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT DISTINCT col2 DIV + 41 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT col2 / + 41 FROM tab0 cor0
----
0
1
2

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

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

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE + 52 * - + col0 <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= + + 34 * col2 + 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 34 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6397
SELECT DISTINCT + 88 AS col0, COUNT( + CAST( - 92 AS DECIMAL ) ) FROM tab0 AS cor0 WHERE NOT + col2 / + - col2 * + + col0 IS NOT NULL
----
88
0

skipif mysql # not compatible
query II rowsort label-6397
SELECT DISTINCT + 88 AS col0, COUNT ( + CAST ( - 92 AS REAL ) ) FROM tab0 AS cor0 WHERE NOT + col2 / + - col2 * + + col0 IS NOT NULL
----
88
0

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT DISTINCT ( + + 76 ) DIV - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT ( + + 76 ) / - col2 FROM tab1
----
-1
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6404
SELECT col0 * + col0 * col1 AS col2, col0 - - col0 DIV col0 - + col0 FROM tab0
----
158949
1
18225
1
9409
1

skipif mysql # not compatible
query II rowsort label-6404
SELECT col0 * + col0 * col1 AS col2, col0 - - col0 / col0 - + col0 FROM tab0
----
158949
1
18225
1
9409
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT + - MIN( + 39 ) col0 FROM tab2 AS cor0
----
-39

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL COUNT( * ) * 44 AS col1 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL COUNT ( * ) * 44 AS col1 FROM tab2
----
132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT MAX( + col2 ) * - 6 FROM tab1
----
-576

skipif mysql # not compatible
query I rowsort label-6411
SELECT MAX ( + col2 ) * - 6 FROM tab1
----
-576

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT + 43 * + 66 col1 FROM tab0 WHERE ( 72 * col1 + + ( - CAST( col1 AS SIGNED ) + 10 ) * col1 ) NOT BETWEEN col1 AND col0
----
2838
2838

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6414
SELECT + 43 * + 66 col1 FROM tab0 WHERE ( 72 * col1 + + ( - CAST ( col1 AS INTEGER ) + 10 ) * col1 ) NOT BETWEEN col1 AND col0
----
2838
2838

query I rowsort
SELECT + 56 * ( col2 ) AS col2 FROM tab0
----
2632
5544
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col2 FROM tab0 WHERE NOT NULL >= col0
----

query I rowsort
SELECT - col0 * 38 AS col2 FROM tab1
----
-1938
-3230
-3458

query I rowsort
SELECT - 46 * - col0 AS col0 FROM tab2
----
2116
2944
3450

query I rowsort
SELECT col2 * - ( col1 ) AS col1 FROM tab1 WHERE NOT ( 82 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT - MAX( DISTINCT - col2 ) * COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-6421
SELECT - MAX ( DISTINCT - col2 ) * COUNT ( * ) FROM tab1
----
177

query I rowsort
SELECT ALL + 45 + col2 AS col0 FROM tab1
----
104
113
141

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( + 5 ) IN ( - col0 )
----
51
85
91

query I rowsort
SELECT DISTINCT - 1 + - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-16
-88
-98

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

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT - COUNT ( * ) * - 12 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT MAX( - 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-6426
SELECT MAX ( - 96 ) FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - 93 * COUNT( * ) + 19 AS col1 FROM tab2
----
-260

skipif mysql # not compatible
query I rowsort label-6427
SELECT - 93 * COUNT ( * ) + 19 AS col1 FROM tab2
----
-260

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6428
SELECT ALL * FROM tab2 WHERE NOT 65 * 27 + col0 * col0 IN ( col0 + + ( ( - 47 ) ) * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6428
SELECT ALL * FROM tab2 WHERE NOT 65 * 27 + col0 * col0 IN ( col0 + + ( ( - 47 ) ) * CAST ( NULL AS INTEGER ) )
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6431
SELECT COUNT( * ) DIV - ( 25 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6431
SELECT COUNT ( * ) / - ( 25 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ALL ( MAX( col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL ( MAX ( col1 ) ) FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <= - 13 * 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT COUNT( * ) * ( COUNT( * ) ) + + MIN( - col1 ) AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-6434
SELECT COUNT ( * ) * ( COUNT ( * ) ) + + MIN ( - col1 ) AS col2 FROM tab0
----
-72

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6437
SELECT + COUNT ( * ) / AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT ALL - 65 - COUNT( * ) AS col1 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL - 65 - COUNT ( * ) AS col1 FROM tab2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT 11 DIV col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6439
SELECT 11 / col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT - 53 * COUNT( * ) - 64 AS col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6440
SELECT - 53 * COUNT ( * ) - 64 AS col0 FROM tab1 cor0
----
-223

query I rowsort
SELECT ALL ( 81 ) + - col0 FROM tab0 AS cor0
----
-16
-6
66

query I rowsort
SELECT DISTINCT - col1 - - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT + col2 * - 43 + - col1 FROM tab1 AS cor0
----
-2542
-2971
-4142

query I rowsort
SELECT ( col1 ) + ( + ( + col0 ) + col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
19405
2995
991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6445
SELECT ALL 85 - + COUNT( * ) * + SUM( col0 DIV col2 ) FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL 85 - + COUNT ( * ) * + SUM ( col0 / col2 ) FROM tab1 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL COUNT( ALL + col2 ) * + MIN( col2 * col1 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL COUNT ( ALL + col2 ) * + MIN ( col2 * col1 ) FROM tab0 AS cor0
----
297

query III rowsort
SELECT * FROM tab0 WHERE NOT + 81 - 4 NOT BETWEEN NULL AND + 79 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT DISTINCT COUNT( ( - 45 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT COUNT ( ( - 45 ) ) AS col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT + - col2 DIV + col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6449
SELECT + - col2 / + col2 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - 11 NOT IN ( 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT - 78 * COUNT( * ) FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-6451
SELECT - 78 * COUNT ( * ) FROM tab1 AS cor0
----
-234

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

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

query I rowsort
SELECT - 92 * - col0 AS col2 FROM tab2 AS cor0
----
4232
5888
6900

query I rowsort
SELECT ALL + - 59 AS col0 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT - col1 * + 26 AS col2 FROM tab2 AS cor0
----
-1326
-1742
-2002

query I rowsort
SELECT ALL + ( 1 ) * col0 AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - col0 * + 88 AS col0 FROM tab2 AS cor0
----
-4048
-5632
-6600

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT ALL + + 59 DIV col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL + + 59 / col0 FROM tab0 AS cor0
----
0
0
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6459
SELECT ALL COUNT ( * ) * + 64 col2 FROM tab1 cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT + COUNT( col1 ) * - ( COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + COUNT ( col1 ) * - ( COUNT ( * ) ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT ALL 57 * - + 66 + SUM( ALL - col0 ) * COUNT( * ) FROM tab0
----
-4359

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL 57 * - + 66 + SUM ( ALL - col0 ) * COUNT ( * ) FROM tab0
----
-4359

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 / + ( - col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT SUM( col0 ) FROM tab0 WHERE - col1 NOT BETWEEN - 46 / - col2 AND ( - col1 )
----
199

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT SUM ( col0 ) FROM tab0 WHERE - col1 NOT BETWEEN - 46 / - col2 AND ( - col1 )
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL - 7 + - SUM( + col1 ) * 59 FROM tab0
----
-6084

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL - 7 + - SUM ( + col1 ) * 59 FROM tab0
----
-6084

query I rowsort
SELECT DISTINCT col2 * - - col1 + + col2 FROM tab2 AS cor0
----
1196
3120
3944

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT - 73 * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-657

skipif mysql # not compatible
query I rowsort label-6467
SELECT - 73 * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-657

query I rowsort
SELECT ALL - + 91 - 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 52dac45f33d6404e37f10f4a0ca24a50

query I rowsort
SELECT ALL - 30 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT 96 + + 97 + 65 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a5340480e0e456b0973e9c2e64e2c3f0

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL + 63 * COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
576

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + 63 * COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT - + 27 * - - COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6472
SELECT - + 27 * - - COUNT ( * ) FROM tab1 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 > ( ( + col1 ) )
----

query I rowsort
SELECT ALL - + col1 + col2 - - 47 AS col0 FROM tab0 AS cor0
----
13
145
36

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + col2 ) <> 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT DISTINCT col0 DIV - - 30 - - col0 * - col0 + 99 col1 FROM tab0
----
-126
-7468
-9307

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6481
SELECT DISTINCT col0 / - - 30 - - col0 * - col0 + 99 col1 FROM tab0
----
-126
-7468
-9307

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL IN ( + col2 * + col2 + - col0 )
----

query I rowsort
SELECT + 44 FROM tab2 WHERE - col0 * + + 66 * 74 NOT IN ( + 41 )
----
44
44
44

query I rowsort
SELECT + col0 + + - 68 + col2 + + col2 * - 36 AS col1 FROM tab0
----
-1698
-331
-3436

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL + 51 * + + ( + COUNT( * ) ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL + 51 * + + ( + COUNT ( * ) ) FROM tab0
----
153

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 4 <= + - 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, - col2 col0 FROM tab0 cor0
----
-15
-47
-87
-10
-97
-99

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

query I rowsort
SELECT 45 * - + col2 FROM tab0 cor0
----
-2115
-4455
-450

query I rowsort
SELECT ALL + col0 * - + 31 + 57 AS col2 FROM tab0 cor0
----
-2640
-2950
-408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6497
SELECT - CAST( + - 52 AS SIGNED ) * col1 * + + 46 AS col1 FROM tab2 AS cor0
----
121992
160264
184184

skipif mysql # not compatible
query I rowsort label-6497
SELECT - CAST ( + - 52 AS INTEGER ) * col1 * + + 46 AS col1 FROM tab2 AS cor0
----
121992
160264
184184

query I rowsort
SELECT DISTINCT - ( - 59 ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT 95 DIV 48 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6499
SELECT 95 / 48 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL - COUNT( ALL 71 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL - COUNT ( ALL 71 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT DISTINCT - col1 DIV + 43 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT - col1 / + 43 AS col0 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE + 46 * - 78 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL + COUNT( * ) * + + 73 * 33 FROM tab2, tab1 AS cor0
----
21681

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL + COUNT ( * ) * + + 73 * 33 FROM tab2, tab1 AS cor0
----
21681

query I rowsort
SELECT DISTINCT + ( col1 ) + 94 FROM tab1
----
108
141
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6507
SELECT DISTINCT COUNT( DISTINCT - + 33 ) DIV + 56 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT COUNT ( DISTINCT - + 33 ) / + 56 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT CAST( - - col0 AS SIGNED ) * - - col1 + col2 + + col1 * 81 * - col0 FROM tab1 cor0
----
-33941
-342092
-57024

skipif mysql # not compatible
query I rowsort label-6508
SELECT CAST ( - - col0 AS INTEGER ) * - - col1 + col2 + + col1 * 81 * - col0 FROM tab1 cor0
----
-33941
-342092
-57024

query I rowsort
SELECT - - 88 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query II rowsort
SELECT ALL col2 + + col2 AS col2, 65 FROM tab2
----
116
65
46
65
80
65

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

query I rowsort
SELECT ALL col2 + - 80 AS col2 FROM tab2 AS cor0
----
-22
-40
-57

query I rowsort
SELECT - ( + 92 ) + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL <> ( - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6514
SELECT + 51 / - 52 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 81 ) <= + 96 + 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 86 - 57 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
2375
4957
5054

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE 11 NOT IN ( + 9 * + col2 * + 18 )
----
23
40
58

query I rowsort
SELECT DISTINCT + col2 - - 23 AS col1 FROM tab2 AS cor0
----
46
63
81

query I rowsort
SELECT - 89 FROM tab0 AS cor0 WHERE col1 + - - col1 BETWEEN + 25 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6521
SELECT + col2 DIV col1 - 51 AS col0, col1 DIV + col1 + - col0 AS col2 FROM tab2
----
-51
-45
-51
-63
-51
-74

skipif mysql # not compatible
query II rowsort label-6521
SELECT + col2 / col1 - 51 AS col0, col1 / + col1 + - col0 AS col2 FROM tab2
----
-51
-45
-51
-63
-51
-74

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

query I rowsort
SELECT 68 * - - 90 - - - col1 FROM tab2
----
6043
6053
6069

query I rowsort
SELECT - col2 * + col2 * + col0 * - col1 FROM tab1
----
1479425
19776848
6580224

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL + SUM( + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + SUM ( + col2 ) AS col0 FROM tab0
----
156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL + 76 * 25 - + 29 * + COUNT( * ) * ( 10 ) + 33 AS col2 FROM tab1 AS cor0
----
1063

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL + 76 * 25 - + 29 * + COUNT ( * ) * ( 10 ) + 33 AS col2 FROM tab1 AS cor0
----
1063

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6530
SELECT DISTINCT ( + MIN ( DISTINCT 12 ) ) col1 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL - - 84 FROM tab2 cor0
----
84
84
84

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

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

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

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

query I rowsort
SELECT 6 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT - ( - + col2 ) * - - 92 + + - col0 FROM tab1 cor0
----
5343
6165
8781

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6537
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( CAST( 69 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6537
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( CAST ( 69 AS INTEGER ) )
----

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

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

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

query I rowsort
SELECT DISTINCT col0 * - + ( - 40 ) FROM tab1 AS cor0
----
2040
3400
3640

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

query I rowsort
SELECT ALL - col2 * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( col1 )
----

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

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL col1 / - col1 AS col0 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT - col2 * + 29 AS col2 FROM tab0
----
-1363
-2871
-290

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

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

query I rowsort
SELECT ALL col0 + + - 18 + - 64 - + col2 FROM tab0
----
-114
-5
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6548
SELECT * FROM tab1 WHERE - col1 * - 93 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6548
SELECT * FROM tab1 WHERE - col1 * - 93 > - CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT col1 + - 31 + - ( - + 85 ) AS col2 FROM tab0
----
135
55
75

query II rowsort
SELECT - ( + - col2 ) + + col1 AS col1, - col0 + + col0 FROM tab2
----
117
0
125
0
74
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( - 88 ) > - col0 )
----
51
14
96
85
5
59

query I rowsort
SELECT ALL - col1 + - - col1 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT 74 * + + SUM( + + col2 ) AS col2 FROM tab2
----
8954

skipif mysql # not compatible
query I rowsort label-6557
SELECT 74 * + + SUM ( + + col2 ) AS col2 FROM tab2
----
8954

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6559
SELECT - CAST( - - col0 AS SIGNED ), col0 * - 98 AS col2 FROM tab1
----
-51
-4998
-85
-8330
-91
-8918

skipif mysql # not compatible
query II rowsort label-6559
SELECT - CAST ( - - col0 AS INTEGER ), col0 * - 98 AS col2 FROM tab1
----
-51
-4998
-85
-8330
-91
-8918

query I rowsort
SELECT - + 85 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT 68 * - col0 - - col2 * col2 + + 36 * + col1 FROM tab0
----
-5060
3241
4105

query I rowsort
SELECT 95 * + + 64 * - 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c473a49922b4c9f0cda8462c6729d033

query I rowsort
SELECT DISTINCT + - 54 - + + col2 AS col2 FROM tab1 AS cor0
----
-113
-122
-150

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 - col2 + ( + 73 ) - - 35 - - ( + 72 ) col2 FROM tab0 AS cor0
----
2342
270
9882

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

skipif mysql # not compatible
query I rowsort label-6566
SELECT - - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL + MIN( ALL - 85 ) AS col0 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + MIN ( ALL - 85 ) AS col0 FROM tab1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT ALL - col1 DIV col0 col1 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6568
SELECT ALL - col1 / col0 col1 FROM tab0 cor0
----
-5
0
0

query I rowsort
SELECT - + col0 * + - ( + 14 ) FROM tab0 AS cor0
----
1218
1358
210

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49 col0, + ( 16 ) FROM tab1 AS cor0
----
49
16
49
16
49
16

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 73 * + 13 * - col1 IS NOT NULL
----

query I rowsort
SELECT - col2 + 20 FROM tab1 cor0
----
-39
-48
-76

query I rowsort
SELECT + 5 + + + 59 * col1 + - 99 AS col2 FROM tab2 AS cor0
----
2915
3859
4449

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT + - 33 DIV - 52 - - col0 * col0 + - + col0 * + - col2 AS col0 FROM tab0 AS cor0
----
19012
8439
930

skipif mysql # not compatible
query I rowsort label-6576
SELECT + - 33 / - 52 - - col0 * col0 + - + col0 * + - col2 AS col0 FROM tab0 AS cor0
----
19012
8439
930

query I rowsort
SELECT + - col0 * + 33 FROM tab1 AS cor0
----
-1683
-2805
-3003

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

query I rowsort
SELECT ALL 63 * + - col1 AS col0 FROM tab2
----
-3213
-4221
-4851

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6580
SELECT * FROM tab0 WHERE + col2 IN ( - - CAST( + col2 AS SIGNED ), col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6580
SELECT * FROM tab0 WHERE + col2 IN ( - - CAST ( + col2 AS INTEGER ), col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + col2 * + - 70 * - - col0 + 83 IS NULL
----

query I rowsort
SELECT DISTINCT 74 * - - ( - - col0 ) * - - col1 - - col1 + - 43 + - col2 + + 8 AS col0 FROM tab2 AS cor0
----
173597
364674
371824

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT - 22 + ( + MIN( DISTINCT + + col1 ) ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6583
SELECT - 22 + ( + MIN ( DISTINCT + + col1 ) ) FROM tab0 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6584
SELECT + + CAST( + - ( + + 14 ) AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

skipif mysql # not compatible
query I rowsort label-6584
SELECT + + CAST ( + - ( + + 14 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT COUNT( * ) + + SUM( DISTINCT + + col2 ) AS col0 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-6585
SELECT COUNT ( * ) + + SUM ( DISTINCT + + col2 ) AS col0 FROM tab0
----
159

query I rowsort
SELECT DISTINCT col2 * 76 FROM tab2
----
1748
3040
4408

query I rowsort
SELECT DISTINCT col2 * - 78 * col1 * - - col0 + 19 AS col0 FROM tab1 AS cor0
----
-1955831
-22685189
-5346413

query I rowsort
SELECT ALL + ( + col2 ) + - - 44 + - 40 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
392183
4054
88451

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

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

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

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

query I rowsort
SELECT - ( - - 2 ) FROM tab2
----
-2
-2
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT DISTINCT - COUNT( * ) * + 77 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT - COUNT ( * ) * + 77 FROM tab0 AS cor0
----
-231

query I rowsort
SELECT - 55 FROM tab0 AS cor0 WHERE NOT ( NOT - 32 NOT BETWEEN NULL AND - col0 )
----
-55
-55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <= - 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6596
SELECT MIN( - - 78 ), - 72 AS col0 FROM tab0
----
78
-72

skipif mysql # not compatible
query II rowsort label-6596
SELECT MIN ( - - 78 ), - 72 AS col0 FROM tab0
----
78
-72

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

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

query III rowsort
SELECT * FROM tab0 WHERE col1 IS NULL OR NOT - col2 * + + col2 <> - col0
----

query II rowsort
SELECT DISTINCT 80 + - col0 + - col1, - 95 + + col1 AS col1 FROM tab0 AS cor0
----
-16
-14
-18
-94
-28
-74

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

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

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

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL - MIN ( + ( - - 26 ) ) FROM tab2 AS cor0
----
-26

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

query I rowsort
SELECT + 24 * + - 65 + - - col1 FROM tab2
----
-1483
-1493
-1509

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT DISTINCT - 43 * - + COUNT( - 59 ) AS col2 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT - 43 * - + COUNT ( - 59 ) AS col2 FROM tab0
----
129

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 + - + col1 col2 FROM tab2
----
-12
-28
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6608
SELECT + ( + CAST( - + col0 AS SIGNED ) ) + col2 DIV ( col2 ) FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-6608
SELECT + ( + CAST ( - + col0 AS INTEGER ) ) + col2 / ( col2 ) FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6609
SELECT 20 + + ( - - COUNT( * ) ), + 16 * - - COUNT( * ) AS col0 FROM tab1
----
23
48

skipif mysql # not compatible
query II rowsort label-6609
SELECT 20 + + ( - - COUNT ( * ) ), + 16 * - - COUNT ( * ) AS col0 FROM tab1
----
23
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6610
SELECT - CAST( NULL AS DECIMAL ) + - ( SUM( ALL - 21 ) ) * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6610
SELECT - CAST ( NULL AS REAL ) + - ( SUM ( ALL - 21 ) ) * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6611
SELECT ALL + col2 * + CAST( 86 AS SIGNED ) FROM tab1 cor0
----
5074
5848
8256

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL + col2 * + CAST ( 86 AS INTEGER ) FROM tab1 cor0
----
5074
5848
8256

query I rowsort
SELECT ( 99 ) - - + 79 AS col2 FROM tab0
----
178
178
178

query I rowsort
SELECT + - 38 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < col2 - - col1
----

query II rowsort
SELECT DISTINCT - 80 AS col2, + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 37 AS col0 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT 47 * 37 - + + 8 AS col2 FROM tab2 AS cor0
----
1731

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ( + MAX( DISTINCT + 97 ) ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-6618
SELECT ( + MAX ( DISTINCT + 97 ) ) FROM tab2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6619
SELECT CAST( - 44 AS SIGNED ) AS col1 FROM tab1
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-6619
SELECT CAST ( - 44 AS INTEGER ) AS col1 FROM tab1
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6620
SELECT DISTINCT - 43 DIV + 97 * - col1 * 20 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT - 43 / + 97 * - col1 * 20 FROM tab2
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 94 IN ( + col0, - ( + 93 ) )
----

query II rowsort
SELECT DISTINCT col0 AS col1, col0 * + + ( + - 32 ) * - col2 + + col2 * + 87 * + + 29 FROM tab1
----
51
398880
85
309337
91
369580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 28 col2 FROM tab1 AS cor0
----
1316
140
392

query I rowsort
SELECT - col0 * - + 91 FROM tab2 AS cor0
----
4186
5824
6825

query II rowsort
SELECT + 5 AS col0, - col2 FROM tab2 cor0 WHERE NOT + col1 < - ( + - col1 )
----
5
-23
5
-40
5
-58

query II rowsort
SELECT 34 AS col1, col0 AS col0 FROM tab1 AS cor0
----
34
51
34
85
34
91

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

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT - - COUNT ( * ) / + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 59 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

query I rowsort
SELECT DISTINCT - - 12 + col2 AS col0 FROM tab1 AS cor0
----
108
71
80

query II rowsort
SELECT DISTINCT col0 * - 4 * - ( 71 ), col2 AS col0 FROM tab0 AS cor0
----
24708
10
27548
99
4260
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT - - COUNT( * ) + - + 23 AS col2 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-6634
SELECT - - COUNT ( * ) + - + 23 AS col2 FROM tab2 AS cor0
----
-20

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 11 + - col2 col2 FROM tab2 AS cor0
----
538
679
807

query II rowsort
SELECT col1, - 96 FROM tab1 AS cor0
----
14
-96
47
-96
5
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6638
SELECT CAST( NULL AS SIGNED ) * 40 / - 37 * - - 66 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT CAST ( NULL AS INTEGER ) * 40 / - 37 * - - 66 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6639
SELECT - CAST( - 75 AS SIGNED ) * + COUNT( * ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-6639
SELECT - CAST ( - 75 AS INTEGER ) * + COUNT ( * ) FROM tab0
----
225

query I rowsort
SELECT ALL + 82 * col0 * - col1 FROM tab2
----
-192372
-404096
-412050

query I rowsort
SELECT col2 - + - 16 * ( - - col1 ) * col1 + 52 - - - col1 FROM tab1
----
3270
35417
506

onlyif mysql # DIV for integer division: 
query I rowsort label-6642
SELECT - + ( - 98 ) DIV 47 * - 78 + - - col1 * + + col2 + + col1 - col0 * 72 - - col0 FROM tab0 AS cor0
----
-6102
-6943
2667

skipif mysql # not compatible
query I rowsort label-6642
SELECT - + ( - 98 ) / 47 * - 78 + - - col1 * + + col2 + + col1 - col0 * 72 - - col0 FROM tab0 AS cor0
----
-6102
-6943
2667

query I rowsort
SELECT - - 14 * + col0 * - - col0 * - - col1 + - + col2 + - col1 FROM tab1 AS cor0
----
505686
509686
5448783

query I rowsort
SELECT DISTINCT - ( 60 ) + 4 AS col2 FROM tab1 AS cor0
----
-56

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

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

query I rowsort
SELECT - - col2 + + + 2 * 54 AS col1 FROM tab2 AS cor0
----
131
148
166

query I rowsort
SELECT - - col0 + 45 + col1 FROM tab2 AS cor0
----
142
186
187

query I rowsort
SELECT ALL 56 - - col1 AS col2 FROM tab1
----
103
61
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 14 col0 FROM tab0
----
1134
14
294

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6651
SELECT + 50 AS col0, COUNT( * ) * 63 + MIN( DISTINCT - col0 ) AS col2 FROM tab2
----
50
114

skipif mysql # not compatible
query II rowsort label-6651
SELECT + 50 AS col0, COUNT ( * ) * 63 + MIN ( DISTINCT - col0 ) AS col2 FROM tab2
----
50
114

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6654
SELECT - + CAST( MAX( + 26 ) AS SIGNED ) AS col0, - 71 FROM tab0 cor0
----
-26
-71

skipif mysql # not compatible
query II rowsort label-6654
SELECT - + CAST ( MAX ( + 26 ) AS INTEGER ) AS col0, - 71 FROM tab0 cor0
----
-26
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT + + COUNT( + 34 ) * - - 45 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-6656
SELECT + + COUNT ( + 34 ) * - - 45 FROM tab2 AS cor0
----
135

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6658
SELECT ALL + COUNT( * ) DIV - ( + - 57 ) FROM tab0 cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL + COUNT ( * ) / - ( + - 57 ) FROM tab0 cor0 WHERE NULL IS NULL
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6661
SELECT ( + + col2 ) DIV 28 col1 FROM tab1
----
2
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6661
SELECT ( + + col2 ) / 28 col1 FROM tab1
----
2
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT ALL + MIN( + 26 ) AS col2 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL + MIN ( + 26 ) AS col2 FROM tab0
----
26

query I rowsort
SELECT - 33 * - - 34 / + col2 + - 77 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----

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

query I rowsort
SELECT DISTINCT + col1 * + 41 AS col0 FROM tab1
----
1927
205
574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * + col1 col0 FROM tab1
----
-1246
-4183
-445

query II rowsort
SELECT DISTINCT + 93 + + col2 AS col0, - col0 - + ( col0 ) FROM tab1 AS cor0
----
152
-170
161
-182
189
-102

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6673
SELECT 8 DIV COUNT( * ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6673
SELECT 8 / COUNT ( * ) AS col0 FROM tab1
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT - MAX( ALL + + col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT - MAX ( ALL + + col2 ) AS col2 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT col2 + 32 AS col1 FROM tab2 AS cor0
----
55
72
90

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

query I rowsort
SELECT ALL 17 + - 55 AS col1 FROM tab2 cor0
----
-38
-38
-38

query I rowsort
SELECT + + 18 AS col1 FROM tab1 AS cor0 WHERE NULL >= col0 + + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 79 IN ( + 38 )
----

query I rowsort
SELECT ALL + - 82 * col1 + + col1 FROM tab2 AS cor0
----
-4131
-5427
-6237

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT + 16 * 23 - - + COUNT( * ) AS col1 FROM tab2
----
371

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT + 16 * 23 - - + COUNT ( * ) AS col1 FROM tab2
----
371

query II rowsort
SELECT - col1 + - 91 AS col2, + col0 + - col2 * + - col1 AS col0 FROM tab2
----
-142
1219
-158
3961
-168
3144

query I rowsort
SELECT - col1 * + + 73 * col1 + + - col0 + + + 12 * - col0 + - 39 AS col2 FROM tab0
----
-1373
-33363
-479187

query I rowsort
SELECT ALL col0 * col1 - + - col1 AS col2 FROM tab0
----
1296
1848
98

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6687
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6689
SELECT COUNT( * ) col0, MAX( DISTINCT + col1 ) AS col2 FROM tab1
----
3
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6689
SELECT COUNT ( * ) col0, MAX ( DISTINCT + col1 ) AS col2 FROM tab1
----
3
47

query II rowsort
SELECT col0, 49 FROM tab0
----
15
49
87
49
97
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 61 + col2 col0 FROM tab1 AS cor0
----
83
86
98

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT 10 * + 13 IS NULL
----
-23
-40
-58

query II rowsort
SELECT DISTINCT ( - 36 ) - 62 AS col0, 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-98
86

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NOT NULL < NULL )
----

query I rowsort
SELECT ALL + + 38 * - - 54 * 88 - + ( - + 93 ) AS col2 FROM tab1 WHERE - 7 * + ( col0 ) + - 4 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6698
SELECT + 10 col1, - CAST( NULL AS SIGNED ) / 5 AS col1 FROM tab2, tab1 cor0
----
18 values hashing to 9d2568768d0ed0111ecb43e66ff65e43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6698
SELECT + 10 col1, - CAST ( NULL AS INTEGER ) / 5 AS col1 FROM tab2, tab1 cor0
----
18 values hashing to 9d2568768d0ed0111ecb43e66ff65e43

query I rowsort
SELECT ALL + col2 + + 82 * - col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - - col0 * - - 10 AS col1 FROM tab0 cor0
----
150
870
970

query I rowsort
SELECT + col0 * - - 25 AS col2 FROM tab1 cor0
----
1275
2125
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL COUNT( - 89 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL COUNT ( - 89 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col0 * + 12 FROM tab0 WHERE NOT ( + - 12 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6704
SELECT 50 DIV - - 27 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6704
SELECT 50 / - - 27 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 + 55 col2 FROM tab2
----
87

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

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

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

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

query I rowsort
SELECT 9 + - - col0 AS col2 FROM tab0 cor0
----
106
24
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL MIN( DISTINCT + 78 ) - - 42 AS col0 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL MIN ( DISTINCT + 78 ) - - 42 AS col0 FROM tab1 AS cor0
----
120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT - + 42 * + + ( - COUNT( DISTINCT - 77 ) ) FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-6714
SELECT - + 42 * + + ( - COUNT ( DISTINCT - 77 ) ) FROM tab2 cor0
----
42

query I rowsort
SELECT ALL + ( - 76 ) + + col0 * 9 FROM tab1 AS cor0
----
383
689
743

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT + - MIN( + - 80 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6717
SELECT + - MIN ( + - 80 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL - 91 * + col2 * + col1 + - ( - 98 ) AS col1 FROM tab0 AS cor0
----
-19012
-346339
-8911

query I rowsort
SELECT - ( - col1 ) * - 38 * - - col0 AS col1 FROM tab1
----
-16150
-162526
-27132

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT - ( - ( ( - col0 ) ) ) - + 63 DIV - 86 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6721
SELECT - ( - ( ( - col0 ) ) ) - + 63 / - 86 FROM tab1
----
-51
-85
-91

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

skipif mysql # not compatible
query I rowsort label-6722
SELECT - ( COUNT ( - 2 ) ) AS col0 FROM tab1 AS cor0
----
-3

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

query I rowsort
SELECT ALL + col0 * 51 FROM tab2
----
2346
3264
3825

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

query I rowsort
SELECT col2 * + col1 - - 90 AS col0 FROM tab1 AS cor0
----
1434
3286
385

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 * + col1 BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < 67
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT - 34 DIV col0 * col0 * + col0 FROM tab0
----
-450
0
0

skipif mysql # not compatible
query I rowsort label-6735
SELECT - 34 / col0 * col0 * + col0 FROM tab0
----
-450
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 18 > NULL
----

query I rowsort
SELECT ALL 96 + - col1 FROM tab2
----
19
29
45

query I rowsort
SELECT DISTINCT - 92 * + + 63 FROM tab2 WHERE NULL IS NULL
----
-5796

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

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

query I rowsort
SELECT DISTINCT 80 + col0 AS col1 FROM tab1
----
131
165
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT SUM( DISTINCT - col2 ) + 15 AS col2 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-6741
SELECT SUM ( DISTINCT - col2 ) + 15 AS col2 FROM tab0
----
-141

query I rowsort
SELECT - 59 + + 82 FROM tab0 cor0
----
23
23
23

query II rowsort
SELECT - 63 + + 57, col1 AS col1 FROM tab2 AS cor0
----
-6
51
-6
67
-6
77

query I rowsort
SELECT col2 * + ( - 88 ) * + + 2 FROM tab2
----
-10208
-4048
-7040

query I rowsort
SELECT ALL - col1 + + + 77 AS col1 FROM tab0 AS cor0
----
-4
56
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6746
SELECT DISTINCT - COUNT( DISTINCT - col2 ) DIV - + COUNT( * ) - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) / - + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
4

query I rowsort
SELECT ALL col1 - - - 46 AS col0 FROM tab1 AS cor0
----
-32
-41
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 22 * - - col2 + - 85 col1 FROM tab2 AS cor0
----
-1361
-591
-965

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

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

query I rowsort
SELECT - col1 * + - 5 FROM tab1
----
235
25
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT ALL + 71 DIV - + 84 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + 71 / - + 84 FROM tab1
----
0
0
0

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

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

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

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

query I rowsort
SELECT ALL 24 * col2 FROM tab0
----
1128
2376
240

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT - MIN( DISTINCT - 97 ) AS col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6757
SELECT - MIN ( DISTINCT - 97 ) AS col2 FROM tab2 AS cor0
----
97

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

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

query I rowsort
SELECT ALL col1 * 16 FROM tab1
----
224
752
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6761
SELECT DISTINCT 57 DIV - COUNT( * ) AS col0 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT 57 / - COUNT ( * ) AS col0 FROM tab0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT DISTINCT + col1 DIV + 6 FROM tab0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT + col1 / + 6 FROM tab0
----
0
13
3

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

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - 52 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT + 72 + - + COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6767
SELECT + 72 + - + COUNT ( * ) FROM tab1 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6768
SELECT CAST( - col2 AS SIGNED ) DIV + 48 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6768
SELECT CAST ( - col2 AS INTEGER ) / + 48 FROM tab0
----
-2
0
0

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

skipif mysql # not compatible
query I rowsort label-6769
SELECT MIN ( + col0 ) AS col0 FROM tab2
----
46

query I rowsort
SELECT col1 * - + 71 FROM tab0
----
-1491
-5751
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT - col2 DIV - - ( + 89 ) AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6771
SELECT - col2 / - - ( + 89 ) AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT col0 * col1 + + 18 FROM tab0
----
115
1233
1845

query I rowsort
SELECT DISTINCT + col0 * 85 + - 56 FROM tab2
----
3854
5384
6319

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

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

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab1 AS cor0 WHERE NOT - + 26 NOT BETWEEN - - 91 AND col0 + + col0 + + 3 OR NOT ( NULL = + col2 )
----

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

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

query I rowsort
SELECT DISTINCT - + col0 * 17 AS col2 FROM tab1 AS cor0
----
-1445
-1547
-867

query I rowsort
SELECT ALL + - 93 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

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

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

query I rowsort
SELECT DISTINCT + 16 + - 93 + - col2 / + 69 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - col2 + + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE - 56 NOT BETWEEN + col2 + 35 + - - col2 * ( - 4 ) AND - - 87
----
1

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE - 56 NOT BETWEEN + col2 + 35 + - - col2 * ( - 4 ) AND - - 87
----
1

query I rowsort
SELECT ALL + col0 - ( - + 97 ) FROM tab0 AS cor0
----
112
184
194

query II rowsort
SELECT col1 - + col1 AS col2, + col0 * - col0 * 45 FROM tab0 AS cor0
----
0
-10125
0
-340605
0
-423405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT ALL col1 + - + CAST( + - col1 AS SIGNED ) * - col2 * col1 * + - 64 FROM tab0 cor0
----
19735569
282261
6337

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL col1 + - + CAST ( + - col1 AS INTEGER ) * - col2 * col1 * + - 64 FROM tab0 cor0
----
19735569
282261
6337

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6788
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + - 18 AS SIGNED ) NOT IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-6788
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + - 18 AS INTEGER ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT MAX( - 79 ) AS col2 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-6789
SELECT MAX ( - 79 ) AS col2 FROM tab0
----
-79

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 94 >= NULL
----

query I rowsort
SELECT DISTINCT + 19 * - col1 AS col1 FROM tab0
----
-1539
-19
-399

query I rowsort
SELECT 15 * 16 AS col2 FROM tab0
----
240
240
240

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT - MIN( DISTINCT - + col0 ) * + - 78 AS col1 FROM tab0 cor0
----
-7566

skipif mysql # not compatible
query I rowsort label-6795
SELECT - MIN ( DISTINCT - + col0 ) * + - 78 AS col1 FROM tab0 cor0
----
-7566

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 72
----

query I rowsort
SELECT ALL + 3 * + - col1 FROM tab1 cor0
----
-141
-15
-42

query II rowsort
SELECT - + col2 AS col0, col0 + + - col1 AS col2 FROM tab1 AS cor0
----
-59
80
-68
44
-96
37

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6802
SELECT ALL 58 * - 39 AS col1, CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2262
-46
-2262
-64
-2262
-75

skipif mysql # not compatible
query II rowsort label-6802
SELECT ALL 58 * - 39 AS col1, CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2262
-46
-2262
-64
-2262
-75

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

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

query II rowsort
SELECT DISTINCT + col1 AS col2, + 10 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL AND NOT + col0 IS NULL
----
51
10
67
10
77
10

query I rowsort
SELECT - 43 * + + col2 + - + col2 AS col0 FROM tab0
----
-2068
-4356
-440

query II rowsort
SELECT ( - + 78 ) + - + 23 + + 32 + + + col0 AS col1, 66 + - col2 FROM tab2
----
-23
43
-5
26
6
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6808
SELECT col1 * 99 + - CAST( + col2 AS SIGNED ) * - col2 + ( + col2 ) AS col1 FROM tab2
----
10055
5601
9263

skipif mysql # not compatible
query I rowsort label-6808
SELECT col1 * 99 + - CAST ( + col2 AS INTEGER ) * - col2 + ( + col2 ) AS col1 FROM tab2
----
10055
5601
9263

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT DISTINCT - 42 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT - 42 / col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + + ( + + 34 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + ( + + 34 ) FROM tab1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT CAST( + col0 AS SIGNED ) + + 96 AS col1 FROM tab2
----
142
160
171

skipif mysql # not compatible
query I rowsort label-6811
SELECT CAST ( + col0 AS INTEGER ) + + 96 AS col1 FROM tab2
----
142
160
171

onlyif mysql # DIV for integer division: 
query I rowsort label-6812
SELECT col1 DIV - + 87 + + + col2 col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6812
SELECT col1 / - + 87 + + + col2 col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL MIN( DISTINCT + ( + col1 ) ) + 33 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL MIN ( DISTINCT + ( + col1 ) ) + 33 FROM tab0
----
34

query I rowsort
SELECT ( + - ( - col0 ) ) + + col0 AS col2 FROM tab0
----
174
194
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL - ( - MAX( + ( - 44 ) ) ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL - ( - MAX ( + ( - 44 ) ) ) AS col1 FROM tab1 AS cor0
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT MIN( + 25 ) FROM tab1 cor0
----
25

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT MIN ( + 25 ) FROM tab1 cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6819
SELECT ALL + col2 + - col0 DIV + + col0 AS col1 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL + col2 + - col0 / + + col0 AS col1 FROM tab0 AS cor0
----
46
9
98

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

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

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

query II rowsort
SELECT col2, ( + ( col0 ) ) FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT DISTINCT - + MIN( ALL + 91 ) * - + 34 FROM tab1 cor0
----
3094

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT - + MIN ( ALL + 91 ) * - + 34 FROM tab1 cor0
----
3094

query II rowsort
SELECT ALL + col2 * col2, 87 AS col2 FROM tab1 AS cor0
----
3481
87
4624
87
9216
87

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

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - CAST ( + COUNT ( DISTINCT + 3 ) AS INTEGER ) FROM tab2 AS cor0
----
-1

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

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

query I rowsort
SELECT col0 * - + 57 * col1 AS col2 FROM tab1
----
-24225
-243789
-40698

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 18 / - col2 BETWEEN - 95 * + col1 AND + 38 + + + 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6831
SELECT DISTINCT + - 52 * 58 AS col2, - MAX( - + 33 ) + 8 + AVG ( ALL + - ( - - CAST( NULL AS DECIMAL ) ) ) col0 FROM tab2 AS cor0
----
-3016
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6831
SELECT DISTINCT + - 52 * 58 AS col2, - MAX ( - + 33 ) + 8 + AVG ( ALL + - ( - - CAST ( NULL AS REAL ) ) ) col0 FROM tab2 AS cor0
----
-3016
NULL

query II rowsort
SELECT col2, col1 * + col2 FROM tab1
----
59
295
68
3196
96
1344

query I rowsort
SELECT DISTINCT + 93 * + col0 - - col2 FROM tab2 WHERE - col2 + - col1 * col0 * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT ALL 22 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL 22 / col0 FROM tab1 AS cor0
----
0
0
0

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

query II rowsort
SELECT - - col2 * - + col2 + - col0 AS col1, - 62 * - 94 * 10 FROM tab2 AS cor0
----
-1664
58280
-3439
58280
-575
58280

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL - - MAX( ALL col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - - MAX ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
81

query II rowsort
SELECT + 88 AS col0, + ( - 47 ) - + - col1 FROM tab0 AS cor0
----
88
-26
88
-46
88
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT ALL - COUNT( ALL - - col0 ) * + + COUNT( * ) AS col1 FROM tab1 WHERE NOT + 20 NOT BETWEEN NULL AND + - col1 * + + 62
----
0

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL - COUNT ( ALL - - col0 ) * + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 20 NOT BETWEEN NULL AND + - col1 * + + 62
----
0

query I rowsort
SELECT + 47 FROM tab1 WHERE + 1 = NULL
----

query II rowsort
SELECT ALL + - 29, - 39 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 77 * - col0 FROM tab0
----
-1155
-6699
-7469

query I rowsort
SELECT - 7 FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( - 83 * - + col2 * col0 + - - col2 * + 9 * - - col2, 47 + 45, - col0 * - - col1, + 54 + - col2, 26 / + col2, - col2 / - + col0 * - - col2, + - col0 )
----
-7
-7
-7

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

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

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

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

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

query I rowsort
SELECT + 94 * + - 65 FROM tab1 cor0
----
-6110
-6110
-6110

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

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT 45 + - + ( - + 28 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT + MIN( + + 7 ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT + MIN ( + + 7 ) FROM tab0
----
7

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6854
SELECT ALL col1, - col1 DIV col1 col1 FROM tab2
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6854
SELECT ALL col1, - col1 / col1 col1 FROM tab2
----
51
-1
67
-1
77
-1

query I rowsort
SELECT col1 * - 60 AS col1 FROM tab2
----
-3060
-4020
-4620

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

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

query I rowsort
SELECT ALL + col2 * - 21 AS col2 FROM tab0
----
-2079
-210
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT COUNT( DISTINCT - + 81 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6859
SELECT COUNT ( DISTINCT - + 81 ) FROM tab1
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6861
SELECT + COUNT( * ) * - 47 * + + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-423

skipif mysql # not compatible
query I rowsort label-6861
SELECT + COUNT ( * ) * - 47 * + + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, 24 + - col1 + 97 col1 FROM tab2 AS cor0
----
23
70
40
44
58
54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 14 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, - 80 AS col1 FROM tab2 AS cor0
----
23
-80
40
-80
58
-80

query I rowsort
SELECT ALL + 31 + + col0 AS col1 FROM tab2
----
106
77
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT ( - col2 ) * - - col1 DIV col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6866
SELECT ( - col2 ) * - - col1 / col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 35 + - col1 * + - 27 AS col0 FROM tab0 AS cor0
----
2222
602
62

query I rowsort
SELECT ALL - col0 + 94 * + col0 + - 93 FROM tab1 AS cor0
----
4650
7812
8370

query I rowsort
SELECT col1 / - - col0 AS col0 FROM tab0 cor0 WHERE col2 * - - col1 IS NULL
----

query I rowsort
SELECT ALL col1 * col2 * + ( + + col0 ) - + 48 FROM tab0
----
18222
57057
9555

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT DISTINCT - COUNT( * ) * + 43 AS col1 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT - COUNT ( * ) * + 43 AS col1 FROM tab2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL - MAX( ALL + + 36 ) AS col0 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - MAX ( ALL + + 36 ) AS col0 FROM tab2
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 80 + col0 * - col2 col0, - 78 * - 43 FROM tab1
----
-4976
3354
-5095
3354
-6268
3354

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

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

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

query I rowsort
SELECT ALL 34 * - + col1 AS col0 FROM tab1
----
-1598
-170
-476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 94 col1 FROM tab2
----
145
161
171

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

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

query I rowsort
SELECT DISTINCT - 80 + - col2 AS col0 FROM tab1 AS cor0
----
-139
-148
-176

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

query I rowsort
SELECT ALL 29 - 92 * + col0 AS col0 FROM tab2
----
-4203
-5859
-6871

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

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN + 33 * 6 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT - COUNT( 65 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6884
SELECT - COUNT ( 65 ) AS col2 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT DISTINCT col2 DIV col2 + - col1 DIV - col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT col2 / col2 + - col1 / - col2 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT ALL - col0 DIV - 1 + ( col2 ) * ( - col1 ) AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-123
-2
-3792

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL - col0 / - 1 + ( col2 ) * ( - col1 ) AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-123
-2
-3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT ALL CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
-10
-47
-99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - MIN( ALL 95 ) AS col0 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-6890
SELECT - MIN ( ALL 95 ) AS col0 FROM tab2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT DISTINCT CAST( 89 AS SIGNED ) AS col1 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT CAST ( 89 AS INTEGER ) AS col1 FROM tab2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6892
SELECT 87 DIV 13 - + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6892
SELECT 87 / 13 - + COUNT ( * ) FROM tab1
----
3

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

query III rowsort
SELECT * FROM tab0 WHERE ( + 12 ) < NULL
----

query I rowsort
SELECT - col0 + + 79 FROM tab1
----
-12
-6
28

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE col2 = col0
----

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

query I rowsort
SELECT ALL + col2 - 12 * col2 FROM tab0
----
-1089
-110
-517

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col0 / col1 AND NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + col1 + + 63 * - ( - col0 + col2 ) FROM tab0
----
-125
-1935
4872

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL - COUNT( * ) * + 35 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - COUNT ( * ) * + 35 FROM tab1
----
-105

query I rowsort
SELECT col2 + col2 * 81 FROM tab1
----
4838
5576
7872

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab1 WHERE 66 * 38 IS NULL
----

query I rowsort
SELECT col0 * + col0 FROM tab0 cor0 WHERE NOT NULL = - col0
----

query I rowsort
SELECT DISTINCT 53 + - 6 FROM tab2 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND 33
----
91
47
68

query I rowsort
SELECT DISTINCT 58 * col2 AS col0 FROM tab2
----
1334
2320
3364

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

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

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

query I rowsort
SELECT ( + col2 ) * col2 + - col2 FROM tab2 AS cor0
----
1560
3306
506

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - ( col2 ) BETWEEN ( - 1 + - col1 ) AND col0
----
15
81
47
97
1
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6918
SELECT - col2 * 29 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-6918
SELECT - col2 * 29 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT - ( 18 ) AS col1 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - - col1 - 57 AS col0 FROM tab0 AS cor0
----
-36
-56
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL ( MAX( ALL - 5 ) ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL ( MAX ( ALL - 5 ) ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6922
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * + 18 + 33 * - CAST( NULL AS SIGNED ) > 74 + col2
----

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * + 18 + 33 * - CAST ( NULL AS INTEGER ) > 74 + col2
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 cor0 WHERE ( 38 * - col1 ) BETWEEN 74 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 58 >= 37 / 43 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT ALL 4 * + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL 4 * + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL 77 + - - col0 AS col2 FROM tab1
----
128
162
168

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab2 WHERE NOT - col1 * - 15 > NULL
----

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

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

query I rowsort
SELECT + 78 - - - ( col1 ) AS col1 FROM tab0
----
-3
57
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6930
SELECT CAST( - col2 AS SIGNED ) col0 FROM tab2 cor0 WHERE ( - ( 80 ) / col1 ) > 71
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6930
SELECT CAST ( - col2 AS INTEGER ) col0 FROM tab2 cor0 WHERE ( - ( 80 ) / col1 ) > 71
----

query I rowsort
SELECT + - col2 + - + 81 FROM tab0 AS cor0
----
-128
-180
-91

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

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

query I rowsort
SELECT ALL - 64 * + col2 * col0 + col0 FROM tab0 AS cor0
----
-45105
-55593
-614495

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL = ( NULL ) )
----

query I rowsort
SELECT + col0 * + + col2 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT DISTINCT col0 AS col1, - 91 * + 42 AS col2 FROM tab1 AS cor0
----
51
-3822
85
-3822
91
-3822

query II rowsort
SELECT + + col2, col0 + + - 64 AS col1 FROM tab1 AS cor0
----
59
21
68
27
96
-13

query II rowsort
SELECT - 89 AS col1, 15 AS col2 FROM tab2 AS cor0
----
-89
15
-89
15
-89
15

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

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

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

query I rowsort
SELECT ALL - + 17 * - col2 * + col2 * col1 AS col1 FROM tab2 cor0
----
2094400
3831596
458643

query I rowsort
SELECT ALL 30 * - 69 * - 55 FROM tab1 AS cor0
----
113850
113850
113850

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

query I rowsort
SELECT ALL - 0 * - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - - ( + 30 ) + col0 AS col1 FROM tab1 AS cor0
----
1855
2131
2931

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 67 + - 7 * - 63 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6948
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN CAST( NULL AS DECIMAL ) AND ( + 83 / + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6948
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN CAST ( NULL AS REAL ) AND ( + 83 / + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 + - + col1 col1 FROM tab0
----
-146
-66
-86

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

query I rowsort
SELECT + col0 * + + ( col2 ) + + col0 FROM tab2
----
1104
2624
4425

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

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

query I rowsort
SELECT 45 + - - col2 FROM tab1
----
104
113
141

query I rowsort
SELECT 63 + + col0 FROM tab2
----
109
127
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT - 60 * + COUNT( * ) + + 55 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-6956
SELECT - 60 * + COUNT ( * ) + + 55 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-128

query I rowsort
SELECT DISTINCT + 24 AS col2 FROM tab2 cor0 WHERE - col2 > - 73
----
24

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6958
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + - + 55 FROM tab1 AS cor0
----
-106
-140
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-6960
SELECT ALL + MIN( ALL - + col0 ) col0, + 41 FROM tab0 AS cor0
----
-97
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6960
SELECT ALL + MIN ( ALL - + col0 ) col0, + 41 FROM tab0 AS cor0
----
-97
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT ALL + CAST( NULL AS SIGNED ) - - 31 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND + - col2 * CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL + CAST ( NULL AS INTEGER ) - - 31 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND + - col2 * CAST ( - col2 AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6963
SELECT ALL + - 85 DIV + COUNT( * ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + - 85 / + COUNT ( * ) FROM tab1 AS cor0
----
-28

query I rowsort
SELECT DISTINCT - col1 + - 19 FROM tab1
----
-24
-33
-66

query I rowsort
SELECT DISTINCT - col1 * 75 AS col1 FROM tab2
----
-3825
-5025
-5775

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

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

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

query I rowsort
SELECT ALL - 66 + + col2 + - col2 + - + col2 * + + 10 FROM tab1 AS cor0
----
-1026
-656
-746

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 72 ) col0 FROM tab1 AS cor0 WHERE NULL > + 10
----

query I rowsort
SELECT DISTINCT - + col2 * - 32 + + 58 + + + col2 FROM tab2 AS cor0
----
1378
1972
817

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

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

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

query I rowsort
SELECT col0 * - col0 + - - 60 FROM tab1
----
-2541
-7165
-8221

query I rowsort
SELECT col2 + ( 11 ) AS col0 FROM tab1
----
107
70
79

query I rowsort
SELECT - 41 + + col0 AS col1 FROM tab1
----
10
44
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT + ( 16 ) FROM tab2 WHERE ( NULL ) NOT IN ( - 69 + + + col1 / + + CAST( + 57 AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-6978
SELECT + ( 16 ) FROM tab2 WHERE ( NULL ) NOT IN ( - 69 + + + col1 / + + CAST ( + 57 AS INTEGER ) * col1 )
----

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

query I rowsort
SELECT col1 * + - 88 AS col2 FROM tab1
----
-1232
-4136
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6981
SELECT ALL COUNT( - col0 ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - + 89 * + 46 + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL COUNT ( - col0 ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - + 89 * + 46 + + CAST ( NULL AS INTEGER ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, col0 * + - col1 * + 82 col0 FROM tab2
----
23
-192372
40
-404096
58
-412050

query I rowsort
SELECT 65 * col0 FROM tab2 WHERE ( - 99 + - - col2 + 64 / + ( 16 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - + col1 * - ( - - 27 ) + + + 91 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6986
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE 66 - - CAST( NULL AS SIGNED ) / - + 85 IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE 66 - - CAST ( NULL AS INTEGER ) / - + 85 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT DISTINCT - - MIN( ALL 49 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT - - MIN ( ALL 49 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
49

query I rowsort
SELECT + ( + + col2 ) * - + 64 AS col0 FROM tab2 AS cor0
----
-1472
-2560
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT + - 32 * MIN( ALL + + col0 ) col2 FROM tab1 AS cor0
----
-1632

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6989
SELECT + - 32 * MIN ( ALL + + col0 ) col2 FROM tab1 AS cor0
----
-1632

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT DISTINCT - - col1 DIV + 3 + - col2 FROM tab2 AS cor0
----
-15
-36
-6

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT - - col1 / + 3 + - col2 FROM tab2 AS cor0
----
-15
-36
-6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 col0 FROM tab0 AS cor0 WHERE NOT - 38 * - col1 IS NOT NULL
----

query II rowsort
SELECT - col0, - 43 - col1 AS col0 FROM tab1
----
-51
-57
-85
-48
-91
-90

query I rowsort
SELECT 73 FROM tab0 WHERE NOT - col1 NOT IN ( col2, ( - - col0 ) + + col2 * col2 )
----

query I rowsort
SELECT ALL - 87 * + - col2 FROM tab1
----
5133
5916
8352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col2 AS col2 FROM tab0 WHERE NOT 42 IN ( - + 10, + 33 )
----
-15
47
-87
10
-97
99

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col2 + ( col2 ) AS col1, - col1 * + - col0 FROM tab1
----
118
425
136
4277
192
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL MAX( ALL + col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL MAX ( ALL + col0 ) AS col2 FROM tab2 cor0
----
75

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab1 AS cor0 WHERE NOT ( - 14 ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT + 84 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT - 11 * - 18 * - col1 FROM tab0 AS cor0
----
-16038
-198
-4158

query I rowsort
SELECT DISTINCT 47 + - - col1 FROM tab1 AS cor0
----
52
61
94

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col2 ) > - col2 * col1 - 50 + + col0
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7009
SELECT col0 FROM tab2 AS cor0 WHERE - col2 NOT IN ( + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-7009
SELECT col0 FROM tab2 AS cor0 WHERE - col2 NOT IN ( + + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT + col2 + + col1 * - col2 FROM tab2 AS cor0 WHERE ( NULL ) >= + + col2 * 13
----

query I rowsort
SELECT ALL - - col0 - + 30 FROM tab1 AS cor0
----
21
55
61

query I rowsort
SELECT - - col1 * + - col0 - 5 FROM tab0 AS cor0
----
-102
-1220
-1832

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

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

query I rowsort
SELECT 90 * col2 + + 74 * + col2 * - + 98 * + - ( - col0 ) + + 90 * - 76 + + 50 - col0 AS col2 FROM tab1 AS cor0
----
-35503993
-36370345
-44876137

query I rowsort
SELECT + 95 FROM tab2 cor0 WHERE + ( + - col1 ) NOT IN ( - col0 + - col2 )
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT + ( + COUNT( * ) ) - - + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7017
SELECT + ( + COUNT ( * ) ) - - + COUNT ( * ) FROM tab0
----
6

query II rowsort
SELECT DISTINCT col1 AS col2, col1 - col1 FROM tab0
----
1
0
21
0
81
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7019
SELECT ALL col0 AS col0, + 51 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
46
102
64
128
75
118

skipif mysql # not compatible
query II rowsort label-7019
SELECT ALL col0 AS col0, + 51 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
46
102
64
128
75
118

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

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

query I rowsort
SELECT col2 * - 27 + - 94 + - col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-1746
-1998
-2782

query I rowsort
SELECT DISTINCT - - col1 * + col0 + 49 + + - 12 + col0 * - + 33 / col1 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

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

query I rowsort
SELECT col2 * - + 21 AS col2 FROM tab2
----
-1218
-483
-840

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

skipif mysql # not compatible
query III rowsort label-7025
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 * CAST ( + + 75 AS INTEGER ) * + 20 - + col1 AND 6
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 35 * + 16 col1 FROM tab0 cor0
----
560
560
560

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

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

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

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

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

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

query I rowsort
SELECT 4 + 69 FROM tab0
----
73
73
73

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

query I rowsort
SELECT ALL col0 + - 96 + - - col2 FROM tab2
----
-27
37
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT 45 + - - SUM( + col1 ) + 38 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-7036
SELECT 45 + - - SUM ( + col1 ) + 38 FROM tab0
----
186

query I rowsort
SELECT + ( col1 ) * + col0 * + col1 FROM tab0
----
38367
97
98415

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + + 55 AS col1 FROM tab2 AS cor0
----
106
122
132

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 28 NOT BETWEEN + - col2 AND + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7044
SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col2, + 72 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query II rowsort label-7044
SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col2, + 72 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - 2 + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7046
SELECT - 2 + COUNT ( * ) FROM tab0 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL - col1 - - col1 + + + col2 / - col2 FROM tab0 cor0
----
-1
-1
-1

query II rowsort
SELECT col2 AS col2, col1 AS col2 FROM tab1 cor0
----
59
5
68
47
96
14

query II rowsort
SELECT DISTINCT - 38 AS col1, col2 * 93 FROM tab2 AS cor0
----
-38
2139
-38
3720
-38
5394

query I rowsort
SELECT ALL - + 82 AS col0 FROM tab1 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT + col2 * + CAST( - 33 AS SIGNED ) FROM tab0
----
-1551
-3267
-330

skipif mysql # not compatible
query I rowsort label-7051
SELECT + col2 * + CAST ( - 33 AS INTEGER ) FROM tab0
----
-1551
-3267
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT + MIN( + 94 ) * + 92 FROM tab2
----
8648

skipif mysql # not compatible
query I rowsort label-7052
SELECT + MIN ( + 94 ) * + 92 FROM tab2
----
8648

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL + - COUNT( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT + col2 * + + col0 >= - 78 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + - COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT + col2 * + + col0 >= - 78 * + col1
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7057
SELECT - CAST ( + + MIN ( + 36 ) AS INTEGER ) col1 FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT DISTINCT + - 3 * + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-27

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT + - 3 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-27

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

query I rowsort
SELECT + - 37 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

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

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

query I rowsort
SELECT col2 + - col2 * - col1 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7064
SELECT + 64 + CAST( col0 AS SIGNED ) DIV + col0 col1 FROM tab1 AS cor0
----
65
65
65

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

query I rowsort
SELECT DISTINCT 73 + + - col1 FROM tab2 AS cor0
----
-4
22
6

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL + MIN( DISTINCT - - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + MIN ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT DISTINCT - + COUNT( * ) * + COUNT( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * 99 <= + 77
----
-9

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * 99 <= + 77
----
-9

query III rowsort
SELECT * FROM tab2 WHERE - ( - 46 ) + + + ( - 58 ) > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL MAX( col1 ) * - 83 AS col2 FROM tab2
----
-6391

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL MAX ( col1 ) * - 83 AS col2 FROM tab2
----
-6391

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

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

query I rowsort
SELECT - ( - col1 ) + - + col0 + col2 AS col0 FROM tab0 AS cor0
----
-56
113
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > - 23 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT ALL - ( + col0 ) DIV + + col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL - ( + col0 ) / + + col1 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT + + col2 * - col2 * 45 FROM tab2 AS cor0
----
-151380
-23805
-72000

onlyif mysql # aggregate syntax: 
query II rowsort label-7078
SELECT - SUM( + 46 ) AS col1, - 81 AS col0 FROM tab0 AS cor0
----
-138
-81

skipif mysql # not compatible
query II rowsort label-7078
SELECT - SUM ( + 46 ) AS col1, - 81 AS col0 FROM tab0 AS cor0
----
-138
-81

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7082
SELECT + COUNT ( * ) / 26 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7083
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-7083
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7084
SELECT DISTINCT COUNT( DISTINCT ( 73 ) ), 41 AS col1 FROM tab2
----
1
41

skipif mysql # not compatible
query II rowsort label-7084
SELECT DISTINCT COUNT ( DISTINCT ( 73 ) ), 41 AS col1 FROM tab2
----
1
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT DISTINCT COUNT( * ) * 7 AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT COUNT ( * ) * 7 AS col2 FROM tab0
----
21

query I rowsort
SELECT + col2 * 59 * + - ( + 23 ) AS col0 FROM tab2
----
-31211
-54280
-78706

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT + 86 * col1 * col0 DIV - col0 + - col2 - col2 + - - col1 FROM tab1 AS cor0
----
-1382
-4131
-543

skipif mysql # not compatible
query I rowsort label-7088
SELECT + 86 * col1 * col0 / - col0 + - col2 - col2 + - - col1 FROM tab1 AS cor0
----
-1382
-4131
-543

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ( + SUM( ALL + 97 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
873

skipif mysql # not compatible
query I rowsort label-7090
SELECT ( + SUM ( ALL + 97 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
873

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 68 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT col1 + 54 + - col0 FROM tab2 AS cor0
----
46
59
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT + CAST( col2 AS SIGNED ) + - - ( - - 37 ) FROM tab1
----
105
133
96

skipif mysql # not compatible
query I rowsort label-7094
SELECT + CAST ( col2 AS INTEGER ) + - - ( - - 37 ) FROM tab1
----
105
133
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT + COUNT( * ) + + COUNT( * ) - 12 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7095
SELECT + COUNT ( * ) + + COUNT ( * ) - 12 FROM tab0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 86 col1 FROM tab1
----
-100
-133
-91

query I rowsort
SELECT + 82 + 25 AS col0 FROM tab1
----
107
107
107

query I rowsort
SELECT col2 + + col2 * 36 AS col2 FROM tab1
----
2183
2516
3552

query I rowsort
SELECT ALL 25 + + 55 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT - col0 * - col2 * + + ( + col2 ) FROM tab1 AS cor0
----
295885
420784
470016

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

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

query I rowsort
SELECT ( 33 ) AS col0 FROM tab1 cor0
----
33
33
33

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

query II rowsort
SELECT col1 + - 50 + + - col2, - col0 FROM tab0 AS cor0 WHERE + col1 >= NULL
----

query I rowsort
SELECT 32 - 61 AS col0 FROM tab1
----
-29
-29
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7106
SELECT 91 * + SUM( DISTINCT - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2
----
16835

skipif mysql # not compatible
query I rowsort label-7106
SELECT 91 * + SUM ( DISTINCT - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2
----
16835

query II rowsort
SELECT - 36 AS col1, + 87 * 97 FROM tab2
----
-36
8439
-36
8439
-36
8439

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7108
SELECT DISTINCT col0, - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-7108
SELECT DISTINCT col0, - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 35 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - 55 AS col0 FROM tab0 AS cor0 WHERE NOT 69 - + col2 + - + 94 + + + col0 / - - 35 <> NULL
----

query II rowsort
SELECT + 2 AS col1, col2 + + + col1 AS col0 FROM tab1 AS cor0
----
2
110
2
115
2
64

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT DISTINCT 67 DIV - col0 col2 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7113
SELECT DISTINCT 67 / - col0 col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7114
SELECT ALL SUM( - col1 ) * - - ( + MAX( DISTINCT col1 ) ) col0, 40 FROM tab2
----
-15015
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7114
SELECT ALL SUM ( - col1 ) * - - ( + MAX ( DISTINCT col1 ) ) col0, 40 FROM tab2
----
-15015
40

query I rowsort
SELECT + 86 * col0 - + 42 - + - col0 * - + col2 AS col0 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL + - 90 * + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL + - 90 * + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT DISTINCT - COUNT( DISTINCT - col1 ) * - + 34 + - 80 AS col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) * - + 34 + - 80 AS col2 FROM tab0 AS cor0
----
22

query II rowsort
SELECT + + 29 * + - col1, + col0 FROM tab1 AS cor0
----
-1363
91
-145
85
-406
51

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( - + col0 / - 83 * + - col0 ) NOT BETWEEN ( + + 72 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT COUNT( * ) + COUNT( * ) * 44 AS col0 FROM tab0 WHERE + + 5 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7121
SELECT COUNT ( * ) + COUNT ( * ) * 44 AS col0 FROM tab0 WHERE + + 5 IS NULL
----
0

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

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

query I rowsort
SELECT DISTINCT - 67 * + 28 FROM tab0 AS cor0
----
-1876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col1 * - col0 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7125
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <> col2
----

skipif mysql # not compatible
query III rowsort label-7125
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> col2
----

query I rowsort
SELECT DISTINCT - 73 + - - col2 AS col2 FROM tab2 cor0 WHERE col1 + - - 68 > 13 - - + 49
----
-15
-33
-50

query II rowsort
SELECT ALL + + ( + col0 ) + - col2, - col0 AS col1 FROM tab1 AS cor0
----
-45
-51
23
-91
26
-85

query II rowsort
SELECT DISTINCT col1, 82 - col0 AS col2 FROM tab0 AS cor0
----
1
-15
21
-5
81
67

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

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

query I rowsort
SELECT - col2 * - col2 * + col1 AS col0 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ALL SUM( DISTINCT - - 74 ) FROM tab0, tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL SUM ( DISTINCT - - 74 ) FROM tab0, tab0 AS cor0
----
74

query I rowsort
SELECT DISTINCT + ( 60 ) + ( + - col0 ) * + 32 + - - ( col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
-228
-2365
344

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT + col2 + - 41 DIV - col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7134
SELECT + col2 + - 41 / - col0 FROM tab2 cor0
----
23
40
58

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

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

query I rowsort
SELECT ( col1 ) * + col2 + ( + - 17 ) + - + col2 FROM tab0 AS cor0
----
-17
183
3743

query III rowsort
SELECT * FROM tab2 WHERE NOT - 46 + - - 14 IS NOT NULL
----

query I rowsort
SELECT - 65 * - - 65 AS col1 FROM tab2
----
-4225
-4225
-4225

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT - COUNT( * ) * - + ( MAX( + ( - 43 ) ) ) FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-7139
SELECT - COUNT ( * ) * - + ( MAX ( + ( - 43 ) ) ) FROM tab2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT + COUNT( * ) * + ( MAX( col0 ) ) AS col2 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7140
SELECT + COUNT ( * ) * + ( MAX ( col0 ) ) AS col2 FROM tab2 AS cor0
----
225

query II rowsort
SELECT - - col2, + col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT 54 * + + 43 + + col1 FROM tab2 AS cor0
----
2373
2389
2399

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + - col0 * - + col2 + - 32 + 55 + 25 * 62 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col2 * + 99 AS col1 FROM tab2
----
-116127
-304920
-384714

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT ALL - + COUNT( * ) AS col2 FROM tab0 WHERE + + 65 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL - + COUNT ( * ) AS col2 FROM tab0 WHERE + + 65 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col2 * + ( col2 ) AS col0 FROM tab1
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query II rowsort label-7149
SELECT + col2, ( + col1 ) DIV - col1 + 30 * + ( + col2 ) AS col1 FROM tab1
----
59
1769
68
2039
96
2879

skipif mysql # not compatible
query II rowsort label-7149
SELECT + col2, ( + col1 ) / - col1 + 30 * + ( + col2 ) AS col1 FROM tab1
----
59
1769
68
2039
96
2879

query I rowsort
SELECT - ( 4 ) FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT 36 + - COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7151
SELECT 36 + - COUNT ( * ) FROM tab0
----
33

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

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

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

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

query I rowsort
SELECT col0 + 11 + - 12 FROM tab0 AS cor0
----
14
86
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL - 10 + + + MAX( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL - 10 + + + MAX ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
81

query I rowsort
SELECT DISTINCT ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT - col0 + - ( - - 55 ) FROM tab0 AS cor0
----
-142
-152
-70

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7161
SELECT * FROM tab1 WHERE + + 81 - + - 40 + + ( + CAST( NULL AS SIGNED ) ) * + - 83 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7161
SELECT * FROM tab1 WHERE + + 81 - + - 40 + + ( + CAST ( NULL AS INTEGER ) ) * + - 83 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 95 * - col0 + + col0 FROM tab0
----
-1410
-8178
-9118

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT DISTINCT col2 + + 69 DIV - ( + ( col2 ) ) AS col1 FROM tab0
----
4
46
99

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT col2 + + 69 / - ( + ( col2 ) ) AS col1 FROM tab0
----
4
46
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7165
SELECT ALL - - col2 col1, col2 * col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7165
SELECT ALL - - col2 col1, col2 * col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

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

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

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

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

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + col0 = col0
----

query II rowsort
SELECT - col2 * - col0 AS col2, - col0 AS col0 FROM tab2
----
1058
-46
2560
-64
4350
-75

query I rowsort
SELECT 66 FROM tab1 AS cor0 WHERE NOT NULL > - 94
----

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

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL + CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL - + MIN( col1 ) * COUNT( * ) + - 23 AS col0 FROM tab2 AS cor0
----
-176

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL - + MIN ( col1 ) * COUNT ( * ) + - 23 AS col0 FROM tab2 AS cor0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT DISTINCT + - 75 * + COUNT( * ) AS col1 FROM tab2 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT + - 75 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
-225

query I rowsort
SELECT + ( ( + - 35 ) ) AS col2 FROM tab0
----
-35
-35
-35

query II rowsort
SELECT - col0 AS col1, + 69 + - col1 + - + col0 AS col0 FROM tab1
----
-51
4
-85
-21
-91
-69

query I rowsort
SELECT 18 * + + col1 FROM tab0
----
1458
18
378

query II rowsort
SELECT col1 AS col2, 32 * - 89 * - col0 FROM tab1
----
14
145248
47
259168
5
242080

query I rowsort
SELECT ALL + 23 + + + ( - col0 ) AS col1 FROM tab0
----
-64
-74
8

query II rowsort
SELECT DISTINCT - 90 + 85 - + 9, + ( col0 ) AS col2 FROM tab0
----
-14
15
-14
87
-14
97

query I rowsort
SELECT ALL col1 * + col2 * - + col2 AS col1 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT DISTINCT + col0 + - - col2 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 / - 88 - + col2 + + col2 * - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL - MAX( + col0 ) * - - 33 * - - 24 * + COUNT( - col0 ) FROM tab1 AS cor0
----
-216216

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL - MAX ( + col0 ) * - - 33 * - - 24 * + COUNT ( - col0 ) FROM tab1 AS cor0
----
-216216

query I rowsort
SELECT DISTINCT + 33 + - + 69 AS col2 FROM tab1 AS cor0
----
-36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 1 * col0 - col0 = ( col0 * col1 + - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT + 28 + - - COUNT( ( - ( + - col2 ) ) ) AS col1 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-7187
SELECT + 28 + - - COUNT ( ( - ( + - col2 ) ) ) AS col1 FROM tab0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7188
SELECT - - COUNT( * ) DIV 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-7188
SELECT - - COUNT ( * ) / 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 <= + + col0
----
87
21
10

query I rowsort
SELECT DISTINCT - col1 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL + col2 * - - 6 + ( col2 ) AS col2 FROM tab2 AS cor0
----
161
280
406

query I rowsort
SELECT DISTINCT - + 4 * + col1 + + col2 FROM tab2 AS cor0
----
-181
-210
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT - + COUNT( * ) + + + 87 AS col1 FROM tab2 cor0 WHERE - col0 * - col0 + - col0 + + col0 + col2 IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-7193
SELECT - + COUNT ( * ) + + + 87 AS col1 FROM tab2 cor0 WHERE - col0 * - col0 + - col0 + + col0 + col2 IS NULL
----
87

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

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

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

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

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

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

query I rowsort
SELECT ( col1 ) - - col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ( + col2 ) - + - 11 FROM tab2
----
34
51
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + - 68 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + 2 * col0 * - col0 AS col2 FROM tab1
----
72250
72828
778414

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT DISTINCT + + MAX( ALL + col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT + + MAX ( ALL + col1 ) FROM tab0 cor0
----
81

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

query I rowsort
SELECT DISTINCT - 53 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-53

query I rowsort
SELECT ALL 85 * - + col0 FROM tab1
----
-4335
-7225
-7735

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-7208
SELECT COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7210
SELECT - 81 * - - COUNT( ALL 56 ), + ( + 69 ) AS col1 FROM tab2 AS cor0
----
-243
69

skipif mysql # not compatible
query II rowsort label-7210
SELECT - 81 * - - COUNT ( ALL 56 ), + ( + 69 ) AS col1 FROM tab2 AS cor0
----
-243
69

query II rowsort
SELECT col0, - 45 AS col1 FROM tab1 AS cor0
----
51
-45
85
-45
91
-45

query II rowsort
SELECT ALL - col1, - 45 AS col2 FROM tab1 cor0
----
-14
-45
-47
-45
-5
-45

query I rowsort
SELECT - + col1 * + + 63 AS col1 FROM tab0 cor0
----
-1323
-5103
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT - SUM( + 28 ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7216
SELECT - SUM ( + 28 ) AS col2 FROM tab1 AS cor0
----
-84

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 98 AS col0, col2 col2 FROM tab2 AS cor0
----
-98
23
-98
40
-98
58

query I rowsort
SELECT ALL - 38 + - col2 * - col1 * - - 19 FROM tab1
----
25498
5567
60686

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7222
SELECT ALL + 33 DIV + 91 + + col2 + - col2 + - 17 + col2 + + 83 DIV col1 AS col1 FROM tab0
----
-4
165
31

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + 33 / + 91 + + col2 + - col2 + - 17 + col2 + + 83 / col1 AS col1 FROM tab0
----
-4
165
31

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7225
SELECT + MAX( - col1 ) + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT + + 56 + + 13 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT + col2 * - col2 + - col0 + 37 + col1 FROM tab0 AS cor0
----
-129
-2106
-9860

query I rowsort
SELECT DISTINCT + 93 - + 28 + + col2 FROM tab1 AS cor0
----
124
133
161

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7232
SELECT + 28, SUM( ALL - ( - col2 ) ) AS col0 FROM tab1
----
28
223

skipif mysql # not compatible
query II rowsort label-7232
SELECT + 28, SUM ( ALL - ( - col2 ) ) AS col0 FROM tab1
----
28
223

query I rowsort
SELECT 60 * 64 FROM tab2
----
3840
3840
3840

query II rowsort
SELECT ALL - col1, col2 + - 23 * - 86 AS col1 FROM tab1
----
-14
2074
-47
2046
-5
2037

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT COUNT( * ) * + ( - 68 ) AS col2 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-7235
SELECT COUNT ( * ) * + ( - 68 ) AS col2 FROM tab1
----
-204

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7236
SELECT DISTINCT COUNT ( * ) * - - SUM ( ALL - + col0 ) col1 FROM tab1
----
-681

query II rowsort
SELECT col2, - 77 FROM tab1
----
59
-77
68
-77
96
-77

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

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

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + 27 / COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT ALL - SUM( ALL 92 ) AS col0 FROM tab1 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - SUM ( ALL 92 ) AS col0 FROM tab1 cor0
----
-276

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

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

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

query II rowsort
SELECT 67 + + col2 AS col2, col2 FROM tab2 cor0
----
107
40
125
58
90
23

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

skipif mysql # not compatible
query II rowsort label-7244
SELECT DISTINCT - COUNT ( DISTINCT + + col1 ) AS col2, + 96 FROM tab1 AS cor0
----
-3
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL + - COUNT( * ) * - 24 * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + - COUNT ( * ) * - 24 * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) <> NULL
----
0

query I rowsort
SELECT DISTINCT + 38 AS col1 FROM tab2 WHERE NOT - + col2 * col1 + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab1 WHERE NULL IN ( - - col1, 40 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT ALL col1 + + - col2 + col2 DIV col1 col1 FROM tab0
----
1
11
34

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

query I rowsort
SELECT DISTINCT col1 + + col2 + 61 * - ( + - col2 ) AS col1 FROM tab1
----
3663
4263
5966

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL - + SUM( + 41 ) * 90 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-11067

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - + SUM ( + 41 ) * 90 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-11067

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7253
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * col1 * 72 DIV + col0 + + 77 FROM tab2 AS cor0
----
-3994
-4232
-6593

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * col1 * 72 / + col0 + + 77 FROM tab2 AS cor0
----
-3994
-4232
-6593

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT + - MIN( DISTINCT + - col2 ) + + + MAX( + + 3 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-7255
SELECT + - MIN ( DISTINCT + - col2 ) + + + MAX ( + + 3 ) FROM tab2 AS cor0
----
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7256
SELECT DISTINCT + ( + 55 ) / - ( + - 86 ) + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + ( + 55 ) / - ( + - 86 ) + + CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7257
SELECT 94 DIV + ( - - ( - COUNT( * ) ) ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-7257
SELECT 94 / + ( - - ( - COUNT ( * ) ) ) FROM tab1
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7258
SELECT * FROM tab1 AS cor0 WHERE 85 + col1 * - ( + CAST( NULL AS DECIMAL ) ) - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7258
SELECT * FROM tab1 AS cor0 WHERE 85 + col1 * - ( + CAST ( NULL AS REAL ) ) - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT ALL + 75 + + 93 AS col0 FROM tab1 AS cor0
----
168
168
168

query I rowsort
SELECT 61 - 43 AS col1 FROM tab1 AS cor0
----
18
18
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT + 57 * - + COUNT( * ) FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT + 57 * - + COUNT ( * ) FROM tab2 AS cor0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT - col0 FROM tab1 WHERE NOT + 47 + - col1 + - col0 NOT IN ( col1, + col0, - col0 * - 61 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7265
SELECT - col0 FROM tab1 WHERE NOT + 47 + - col1 + - col0 NOT IN ( col1, + col0, - col0 * - 61 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT CAST( 77 AS SIGNED ) AS col0 FROM tab2
----
77
77
77

skipif mysql # not compatible
query I rowsort label-7266
SELECT CAST ( 77 AS INTEGER ) AS col0 FROM tab2
----
77
77
77

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

skipif mysql # not compatible
query I rowsort label-7267
SELECT 70 / - MAX ( ALL + col2 ) FROM tab2
----
-1

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

query I rowsort
SELECT DISTINCT 90 * - + 92 FROM tab0 AS cor0
----
-8280

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

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

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

query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
92

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

query I rowsort
SELECT ALL - col0 * + col2 + + col0 FROM tab0 AS cor0
----
-690
-783
-9506

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 = - col2 * 25 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-7277
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 = - col2 * 25 * - col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT MIN( + + col0 ) FROM tab2 WHERE ( NULL IS NULL )
----
46

skipif mysql # not compatible
query I rowsort label-7279
SELECT MIN ( + + col0 ) FROM tab2 WHERE ( NULL IS NULL )
----
46

query I rowsort
SELECT - 32 + - 16 AS col1 FROM tab2
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-7281
SELECT ALL - col0 DIV + col2 col0, col1 AS col2 FROM tab0
----
-8
21
0
1
0
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7281
SELECT ALL - col0 / + col2 col0, col1 AS col2 FROM tab0
----
-8
21
0
1
0
81

query I rowsort
SELECT - col1 + + - col2 * 68 FROM tab1
----
-4017
-4671
-6542

query I rowsort
SELECT 72 + col1 + - 61 FROM tab1
----
16
25
58

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

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

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

query I rowsort
SELECT - col2 * - 47 + 63 FROM tab1
----
2836
3259
4575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 * + + 99 col1, - col0 AS col2 FROM tab2 AS cor0
----
5049
-46
6633
-75
7623
-64

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 13 * 24
----

query I rowsort
SELECT ALL + 91 - - 49 AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ec2e101908a0c2a3287de7292cabaa57

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT COUNT( * ) - - 38 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-7291
SELECT COUNT ( * ) - - 38 FROM tab1
----
41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7293
SELECT 9 DIV - 47 + col2 AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7293
SELECT 9 / - 47 + col2 AS col0 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7294
SELECT col0 DIV - - col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7294
SELECT col0 / - - col1 FROM tab1 AS cor0
----
1
17
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT - MIN( - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT - MIN ( - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT DISTINCT + col1 * + col0 DIV 1 + - + col2 col2 FROM tab1 AS cor0
----
366
4209
618

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7298
SELECT DISTINCT + col1 * + col0 / 1 + - + col2 col2 FROM tab1 AS cor0
----
366
4209
618

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

query I rowsort
SELECT ALL + 38 * - 43 FROM tab0 cor0
----
-1634
-1634
-1634

query I rowsort
SELECT - col1 * + col1 + + 57 * - - col0 - + + 27 * col2 AS col1 FROM tab1 AS cor0
----
1142
119
3227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT + ( + SUM( DISTINCT - + 31 ) ) AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-7303
SELECT + ( + SUM ( DISTINCT - + 31 ) ) AS col1 FROM tab0
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT SUM( + 5 ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-7305
SELECT SUM ( + 5 ) AS col0 FROM tab1
----
15

query I rowsort
SELECT ALL col2 * 29 * + - col1 AS col0 FROM tab2
----
-112694
-34017
-89320

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + SUM( + 40 ) AS col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-7307
SELECT + SUM ( + 40 ) AS col1 FROM tab2 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + COUNT( * ) * - 88 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-7308
SELECT + COUNT ( * ) * - 88 FROM tab1 AS cor0
----
-264

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT + SUM( 28 ) AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-7310
SELECT + SUM ( 28 ) AS col1 FROM tab2
----
84

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

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

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

query I rowsort
SELECT DISTINCT - - col0 + + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-690
-783
-9506

query I rowsort
SELECT ALL + col0 + - 25 AS col0 FROM tab2 cor0
----
21
39
50

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

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT + COUNT ( * ) / - 34 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7316
SELECT ALL 24 DIV col2 + - + col0 - - ( - col2 ) * col2 * + + col1 FROM tab1 AS cor0
----
-129075
-17490
-217419

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL 24 / col2 + - + col0 - - ( - col2 ) * col2 * + + col1 FROM tab1 AS cor0
----
-129075
-17490
-217419

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT - MIN( ALL - ( + 19 ) ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7317
SELECT - MIN ( ALL - ( + 19 ) ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE 19 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 30 * + col1 + - col1 - - + col2 AS col1 FROM tab2 AS cor0
----
-1558
-2019
-2347

query I rowsort
SELECT ALL + ( - + col2 ) + + + 38 AS col0 FROM tab0 AS cor0
----
-61
-9
28

query I rowsort
SELECT col1 * ( + col2 ) + - col1 + + 19 FROM tab1 AS cor0
----
1349
309
3168

query I rowsort
SELECT DISTINCT + col2 * + + col2 - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 90 * + + col0 * - col0 IS NULL
----
3566
4715
9267

query II rowsort
SELECT DISTINCT + + col1 AS col1, + ( + + 39 ) FROM tab1 AS cor0
----
14
39
47
39
5
39

query II rowsort
SELECT - ( + col2 ) * - 9 AS col0, + ( - - 57 ) * + + col0 * - col2 FROM tab1 AS cor0
----
531
-285855
612
-352716
864
-279072

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT DISTINCT MIN( ALL + - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT MIN ( ALL + - col1 ) AS col0 FROM tab1
----
-47

query I rowsort
SELECT 23 * - 3 AS col0 FROM tab2
----
-69
-69
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7328
SELECT + COUNT( * ) DIV + 89, 2 * 5 + + 87 + 97 * COUNT( * ) AS col1 FROM tab0
----
0
388

skipif mysql # not compatible
query II rowsort label-7328
SELECT + COUNT ( * ) / + 89, 2 * 5 + + 87 + 97 * COUNT ( * ) AS col1 FROM tab0
----
0
388

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + col0 + + + col2 >= - col1 + + col0
----

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 60 * 59 + - col0 * - 97 BETWEEN 5 * 59 + col1 AND - col1
----

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

query I rowsort
SELECT + 35 + - col2 FROM tab1 AS cor0
----
-24
-33
-61

query I rowsort
SELECT - col2 * - ( + col1 ) + - 34 FROM tab0 cor0
----
176
3773
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7336
SELECT DISTINCT MIN( ALL + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE CAST( col2 AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT MIN ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE CAST ( col2 AS REAL ) IS NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7337
SELECT + 10 / - col1 FROM tab1 AS cor0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7338
SELECT - + 25 DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7338
SELECT - + 25 / + col0 FROM tab1 AS cor0
----
0
0
0

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

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

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

query II rowsort
SELECT DISTINCT - 81, - col0 * + col1 AS col0 FROM tab0
----
-81
-1215
-81
-1827
-81
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col0 ) * + - 72 * - + 15 > 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 19 * - - col1 FROM tab1
----
-266
-893
-95

query I rowsort
SELECT col2 + 18 + - col2 FROM tab1 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL - - SUM( - 40 ) AS col1 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL - - SUM ( - 40 ) AS col1 FROM tab0 AS cor0
----
-120

query I rowsort
SELECT DISTINCT - 13 AS col2 FROM tab2 AS cor0
----
-13

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

skipif mysql # not compatible
query II rowsort label-7347
SELECT ALL - COUNT ( * ), MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
-3
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) < + 94
----

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

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

query I rowsort
SELECT DISTINCT col2 * + 53 AS col2 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT 75 - - col1 FROM tab0
----
156
76
96

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL < - 26 - ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 15 + + col0 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * 13 + - col0 AS col2 FROM tab2
----
253
456
679

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT ALL MIN( - col2 ) AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
-96

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL MIN ( - col2 ) AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT DISTINCT 9 + - COUNT( * ) * + 5 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT 9 + - COUNT ( * ) * + 5 FROM tab1
----
-6

query I rowsort
SELECT - 20 * 45 FROM tab1
----
-900
-900
-900

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - col2 * col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT col1 * - ( col0 ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT + col2 * + 66 + 98 FROM tab0 WHERE ( 2 + + col0 * - 81 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT DISTINCT SUM( + 15 ) AS col2 FROM tab1 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT SUM ( + 15 ) AS col2 FROM tab1 WHERE NULL <> NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( col1 * + 50 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( - col1 * - 22 )
----

query I rowsort
SELECT + col2 FROM tab2 WHERE + col2 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( 74 ) + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT DISTINCT - SUM( - 90 ) + COUNT( * ) FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT - SUM ( - 90 ) + COUNT ( * ) FROM tab2
----
273

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NULL BETWEEN - 19 * ( - col2 ) AND 29 * 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT + 14 * + col0 FROM tab1 WHERE - col2 <= col1 + 74 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7370
SELECT + 14 * + col0 FROM tab1 WHERE - col2 <= col1 + 74 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col0 + - 15 FROM tab0
----
-102
-112
-30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT CAST( col1 AS SIGNED ) + + 78 FROM tab0
----
159
79
99

skipif mysql # not compatible
query I rowsort label-7373
SELECT CAST ( col1 AS INTEGER ) + + 78 FROM tab0
----
159
79
99

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 42 * - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL 59 * + COUNT( * ) - 91 * + ( ( COUNT( * ) ) + COUNT( * ) ) FROM tab2 cor0
----
-369

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL 59 * + COUNT ( * ) - 91 * + ( ( COUNT ( * ) ) + COUNT ( * ) ) FROM tab2 cor0
----
-369

query I rowsort
SELECT ALL + col2 * + col0 FROM tab1 AS cor0 WHERE ( - col2 ) <= - 65
----
4896
6188

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

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

query I rowsort
SELECT 73 - col0 AS col1 FROM tab0 WHERE NOT col1 + col2 * 9 <= ( - col2 )
----
-14
-24
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL COUNT( ALL - 27 ) * COUNT( + col0 * + 83 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL COUNT ( ALL - 27 ) * COUNT ( + col0 * + 83 ) AS col1 FROM tab2
----
9

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT ALL 49 DIV 72 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL 49 / 72 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT DISTINCT 4 + COUNT( 72 ) AS col1 FROM tab1 AS cor0 WHERE + col0 * + col0 BETWEEN ( NULL ) AND NULL
----
4

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT 4 + COUNT ( 72 ) AS col1 FROM tab1 AS cor0 WHERE + col0 * + col0 BETWEEN ( NULL ) AND NULL
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN ( col2 ) AND ( 58 * - 17 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 IN ( col1 )
----

query I rowsort
SELECT DISTINCT 11 * 20 + + 86 FROM tab1 AS cor0 WHERE col1 > col1
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7392
SELECT DISTINCT - CAST( NULL AS SIGNED ) - MAX( 53 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - MAX ( 53 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7393
SELECT col1 + - col1 FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) + - col2 * 48 ) BETWEEN ( - CAST( NULL AS SIGNED ) / + ( col2 ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7393
SELECT col1 + - col1 FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) + - col2 * 48 ) BETWEEN ( - CAST ( NULL AS INTEGER ) / + ( col2 ) ) AND NULL
----

query I rowsort
SELECT 52 + 6 AS col0 FROM tab0 WHERE NOT NULL >= 10
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) BETWEEN - col1 AND - col0
----
87
21
10
97
1
99

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

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

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

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 57 NOT BETWEEN NULL AND 40
----

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

skipif mysql # not compatible
query I rowsort label-7399
SELECT - MIN ( col0 ) + COUNT ( * ) FROM tab2 AS cor0
----
-43

query I rowsort
SELECT col0 / ( - 33 ) FROM tab1 WHERE 38 + 37 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 17 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7402
SELECT DISTINCT + ( col2 ) * col2 DIV + col1 AS col2 FROM tab0
----
27
4
9801

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT + ( col2 ) * col2 / + col1 AS col2 FROM tab0
----
27
4
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT 69 * - COUNT( * ) * + 65 + - COUNT( * ) AS col2 FROM tab2
----
-13458

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT 69 * - COUNT ( * ) * + 65 + - COUNT ( * ) AS col2 FROM tab2
----
-13458

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 12 ) IS NULL
----

query II rowsort
SELECT - col1, + 69 AS col1 FROM tab2 AS cor0
----
-51
69
-67
69
-77
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + 51 * + COUNT( * ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7406
SELECT + 51 * + COUNT ( * ) FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT - 72 + - MIN( DISTINCT - 17 ) * - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT - 72 + - MIN ( DISTINCT - 17 ) * - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + ( 76 ) + 43 col2 FROM tab0 AS cor0
----
119
1639
6199

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7409
SELECT - 27 AS col2, + CAST( + - col2 AS DECIMAL ) * 55 + CAST( NULL AS SIGNED ) * - ( - col1 * - col2 ) col0 FROM tab0 AS cor0
----
-27
NULL
-27
NULL
-27
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7409
SELECT - 27 AS col2, + CAST ( + - col2 AS REAL ) * 55 + CAST ( NULL AS INTEGER ) * - ( - col1 * - col2 ) col0 FROM tab0 AS cor0
----
-27
NULL
-27
NULL
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT + COUNT( * ) * - MIN( - + 66 ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7410
SELECT + COUNT ( * ) * - MIN ( - + 66 ) FROM tab1 AS cor0
----
198

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 cor0 WHERE ( NULL ) >= col1 * - 67
----

query I rowsort
SELECT - + ( - - 40 ) FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT DISTINCT COUNT( DISTINCT - col2 ) - 68 AS col1 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT COUNT ( DISTINCT - col2 ) - 68 AS col1 FROM tab0
----
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7414
SELECT DISTINCT CAST( - col0 AS SIGNED ) DIV - 1 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT CAST ( - col0 AS INTEGER ) / - 1 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT 23 - + 57 AS col2 FROM tab0
----
-34
-34
-34

query III rowsort
SELECT * FROM tab1 WHERE 74 * 9 + col0 * + col0 IN ( 66 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7417
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE col2 NOT IN ( + - col1 ) AND col1 + 4 NOT BETWEEN 2 * CAST( - 97 AS SIGNED ) + - 95 AND ( ( col0 ) )
----
2

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE col2 NOT IN ( + - col1 ) AND col1 + 4 NOT BETWEEN 2 * CAST ( - 97 AS INTEGER ) + - 95 AND ( ( col0 ) )
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7418
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) < col1 * CAST( + col1 AS DECIMAL ) + col1 AND NULL < 17
----

skipif mysql # not compatible
query III rowsort label-7418
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) < col1 * CAST ( + col1 AS REAL ) + col1 AND NULL < 17
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7419
SELECT * FROM tab2 WHERE + 39 NOT BETWEEN + + 84 * - CAST( 16 * ( - 70 * - col2 ) AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7419
SELECT * FROM tab2 WHERE + 39 NOT BETWEEN + + 84 * - CAST ( 16 * ( - 70 * - col2 ) AS REAL ) AND NULL
----

query I rowsort
SELECT 92 FROM tab2 WHERE NULL IS NULL
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT - SUM( + - 24 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7421
SELECT - SUM ( + - 24 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT + - 56 AS col0 FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT + + 57 AS col2 FROM tab1 cor0
----
57
57
57

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 80 <= - - 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT DISTINCT 51 DIV col2 AS col0 FROM tab1 WHERE NOT ( 9 * - + 98 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT 51 / col2 AS col0 FROM tab1 WHERE NOT ( 9 * - + 98 ) IS NULL
----
0

query I rowsort
SELECT - 3 * 73 FROM tab0 AS cor0 WHERE NOT - 39 IS NULL
----
-219
-219
-219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT 44 * - - col0 FROM tab2 cor0
----
2024
2816
3300

query I rowsort
SELECT - col2 * + col1 - 59 AS col2 FROM tab2 AS cor0
----
-1232
-3139
-3945

onlyif mysql # DIV for integer division: 
query I rowsort label-7430
SELECT - col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7430
SELECT - col1 / + col0 AS col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7431
SELECT ALL - 10 + + - col2 + 39 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( - - col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - 10 + + - col2 + 39 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( - - col1 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT col1 * 7 FROM tab0 AS cor0
----
147
567
7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= 0 - 1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 7 * 60
----

query I rowsort
SELECT ALL + col0 - + col0 * - col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT ALL + COUNT( * ) * + COUNT( * ) * - COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-27

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT col2 <> + col1 * + - 14
----

query II rowsort
SELECT 21 + 26 + - 79 + - + 6, + 58 + - col0 AS col1 FROM tab0
----
-38
-29
-38
-39
-38
43

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 <> ( col0 ) )
----

query I rowsort
SELECT + col0 * + + col2 + 50 FROM tab2
----
1108
2610
4400

query I rowsort
SELECT - 41 + + - 64 * col1 FROM tab2
----
-3305
-4329
-4969

query I rowsort
SELECT DISTINCT - ( - 25 ) AS col2 FROM tab1 AS cor0
----
25

query II rowsort
SELECT DISTINCT + col2 AS col2, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7444
SELECT ALL + col1, - CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7444
SELECT ALL + col1, - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 35
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 69 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT - MIN( ALL - 38 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
38

skipif mysql # not compatible
query I rowsort label-7447
SELECT - MIN ( ALL - 38 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 WHERE 63 NOT BETWEEN NULL AND + 57
----
-3

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 WHERE 63 NOT BETWEEN NULL AND + 57
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7449
SELECT DISTINCT - COUNT( * ) - - MIN( DISTINCT - 66 ) col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7449
SELECT DISTINCT - COUNT ( * ) - - MIN ( DISTINCT - 66 ) col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL + COUNT( * ) + - 78 - - 79 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL + COUNT ( * ) + - 78 - - 79 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7451
SELECT - 13 + + COUNT( 40 ) * + + 53 + 91 AS col1, 10 FROM tab0 AS cor0
----
237
10

skipif mysql # not compatible
query II rowsort label-7451
SELECT - 13 + + COUNT ( 40 ) * + + 53 + 91 AS col1, 10 FROM tab0 AS cor0
----
237
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + + 36 col0 FROM tab2 AS cor0
----
15
31
41

query II rowsort
SELECT DISTINCT + col0 AS col2, 14 FROM tab1
----
51
14
85
14
91
14

query I rowsort
SELECT + - col0 FROM tab2 WHERE NULL NOT BETWEEN + col0 AND col2
----

query I rowsort
SELECT ALL + col0 - - 74 * + col1 + + col0 FROM tab1
----
1138
3660
540

query I rowsort
SELECT DISTINCT - - 11 / + col0 + col1 - 97 FROM tab2 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT + col0 * + 25 AS col0 FROM tab0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7458
SELECT + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
-9

query II rowsort
SELECT + 91 AS col1, 0 + - col2 AS col1 FROM tab1
----
91
-59
91
-68
91
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT - COUNT( ALL - + ( + col0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT - COUNT ( ALL - + ( + col0 ) ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7462
SELECT - col2 AS col2, 10 DIV + 34 * ( col2 ) FROM tab1 cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-7462
SELECT - col2 AS col2, 10 / + 34 * ( col2 ) FROM tab1 cor0
----
-59
0
-68
0
-96
0

query I rowsort
SELECT 35 AS col1 FROM tab0 cor0
----
35
35
35

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT - col0 * + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7465
SELECT - col0 * + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT ALL - 95 DIV + 25 AS col2 FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - 95 / + 25 AS col2 FROM tab2 AS cor0
----
-3
-3
-3

query II rowsort
SELECT DISTINCT - 79, col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN ( - 48 ) AND col1
----
-79
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col2 col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT 13 * + COUNT( ALL + + col2 ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT 13 * + COUNT ( ALL + + col2 ) FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT - MAX( ALL + + 73 ) * + - 24 FROM tab0 AS cor0
----
1752

skipif mysql # not compatible
query I rowsort label-7470
SELECT - MAX ( ALL + + 73 ) * + - 24 FROM tab0 AS cor0
----
1752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT CAST( 36 AS SIGNED ) * - 50 + + - 16 FROM tab1
----
-1816
-1816
-1816

skipif mysql # not compatible
query I rowsort label-7471
SELECT CAST ( 36 AS INTEGER ) * - 50 + + - 16 FROM tab1
----
-1816
-1816
-1816

onlyif mysql # DIV for integer division: 
query I rowsort label-7472
SELECT ALL - col1 DIV + - 62 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL - col1 / + - 62 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7473
SELECT - - SUM( CAST( col0 AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN 10 * + + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT - - SUM ( CAST ( col0 AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN 10 * + + col1 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7474
SELECT ALL + col0 DIV + col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + col0 / + col0 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT - ( 81 ) AS col0 FROM tab1
----
-81
-81
-81

query I rowsort
SELECT - 50 + + col0 - ( + col0 ) FROM tab1 cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7477
SELECT + CAST( - COUNT( * ) AS SIGNED ) + + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7477
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT MIN( DISTINCT + - 43 ) FROM tab1 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7478
SELECT MIN ( DISTINCT + - 43 ) FROM tab1 cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT col2 * - + CAST( NULL AS SIGNED ) * - - col2 FROM tab0 AS cor0 WHERE 1 * - - 23 > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7479
SELECT col2 * - + CAST ( NULL AS INTEGER ) * - - col2 FROM tab0 AS cor0 WHERE 1 * - - 23 > ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + - col2 - + col2 FROM tab0 AS cor0
----
-13
-197
1

query I rowsort
SELECT DISTINCT + ( - 57 ) - + col2 + col2 AS col2 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT - ( - col1 ) - col2 + + - col0 AS col0 FROM tab0 AS cor0
----
-195
-76
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 98 col2 FROM tab0 AS cor0
----
-17
-77
-97

query I rowsort
SELECT - 55 - 10 + - col1 AS col1 FROM tab2
----
-116
-132
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 31 IS NOT NULL
----

query I rowsort
SELECT ALL - + 42 * col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 57 * + ( + col1 ) FROM tab2 AS cor0
----
-2907
-3819
-4389

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 / - + 58 + + ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL - SUM( ALL - - ( + 65 ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-585

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - SUM ( ALL - - ( + 65 ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-585

query I rowsort
SELECT DISTINCT 61 * + + 2 * + col1 FROM tab0
----
122
2562
9882

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE - 60 + + + 42 / - + col0 BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE - 60 + + + 42 / - + col0 BETWEEN NULL AND + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < - 35
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7495
SELECT - + 67 * - 87 DIV + COUNT( * ) FROM tab2 AS cor0
----
1943

skipif mysql # not compatible
query I rowsort label-7495
SELECT - + 67 * - 87 / + COUNT ( * ) FROM tab2 AS cor0
----
1943

query II rowsort
SELECT ALL 15 * - 15 + + col2, - 65 AS col1 FROM tab2 AS cor0
----
-167
-65
-185
-65
-202
-65

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 27 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT + MIN( - + col0 ) * + - 31 + - + COUNT( * ) FROM tab1 AS cor0
----
2818

skipif mysql # not compatible
query I rowsort label-7498
SELECT + MIN ( - + col0 ) * + - 31 + - + COUNT ( * ) FROM tab1 AS cor0
----
2818

onlyif mysql # DIV for integer division: 
query I rowsort label-7499
SELECT ALL + - 33 DIV + col0 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + - 33 / + col0 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT - - COUNT( * ) FROM tab0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7500
SELECT - - COUNT ( * ) FROM tab0 WHERE + col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7501
SELECT DISTINCT 46 DIV - col0 col0 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7501
SELECT DISTINCT 46 / - col0 col0 FROM tab2
----
-1
0

query I rowsort
SELECT + 99 + col2 + 48 FROM tab0
----
157
194
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 84 col1 FROM tab1
----
-33
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT DISTINCT + COUNT( * ) + 52 AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT + COUNT ( * ) + 52 AS col0 FROM tab2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT ALL - col0 + - col0 + + + col2 DIV col1 DIV + + 59 * + + col2 * col0 AS col1 FROM tab1
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - col0 + - col0 + + + col2 / col1 / + + 59 * + + col2 * col0 AS col1 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 33 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 33 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE - + col2 * 68 + + + ( - col1 ) <= + 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 97 - - - 71 - - + ( col0 ) FROM tab0
----
113
123
41

query I rowsort
SELECT + col1 + + + col0 * - 5 + - + 81 FROM tab1 AS cor0
----
-322
-489
-501

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL + 11 * MIN( 1 ) - + COUNT( * ) + - 52 AS col2 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + 11 * MIN ( 1 ) - + COUNT ( * ) + - 52 AS col2 FROM tab0 AS cor0
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-7512
SELECT DISTINCT + + 49 + 45 - + + col1 + + - col2 DIV - col2, - col1 AS col2 FROM tab0 AS cor0
----
14
-81
74
-21
94
-1

skipif mysql # not compatible
query II rowsort label-7512
SELECT DISTINCT + + 49 + 45 - + + col1 + + - col2 / - col2, - col1 AS col2 FROM tab0 AS cor0
----
14
-81
74
-21
94
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 39 - - col1 = col2
----

query II rowsort
SELECT DISTINCT - 47 AS col1, col1 FROM tab0 cor0
----
-47
1
-47
21
-47
81

query II rowsort
SELECT 62 AS col2, col1 * - col0 + + 83 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * col1 * - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7516
SELECT + - ( CAST( 89 AS SIGNED ) ) AS col0 FROM tab2 cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-7516
SELECT + - ( CAST ( 89 AS INTEGER ) ) AS col0 FROM tab2 cor0
----
-89
-89
-89

query III rowsort
SELECT ALL + col1 AS col0, col0 AS col0, col2 + + 89 + - - col0 * + ( - + 74 ) + col0 FROM tab1
----
9 values hashing to 30a4944565d93eea140903acbdb311a4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7518
SELECT ALL * FROM tab1 WHERE CAST( NULL AS DECIMAL ) / + - col0 = NULL
----

skipif mysql # not compatible
query III rowsort label-7518
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS REAL ) / + - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7519
SELECT DISTINCT - COUNT( * ) AS col2, ( - COUNT( * ) ) FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7519
SELECT DISTINCT - COUNT ( * ) AS col2, ( - COUNT ( * ) ) FROM tab0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT col1 + + col0 + 17 + + ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT - - col2 <= - 15
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT col1 + + col0 + 17 + + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT - - col2 <= - 15
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7522
SELECT MAX( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 > - 68
----
15
81
47

query II rowsort
SELECT ALL - col0 AS col2, col1 FROM tab1 WHERE 96 NOT BETWEEN col2 AND ( - - col1 )
----
-51
14
-85
5
-91
47

query II rowsort
SELECT col0, 99 FROM tab2
----
46
99
64
99
75
99

query I rowsort
SELECT DISTINCT - ( + 16 ) FROM tab0
----
-16

query I rowsort
SELECT ALL - col1 * + + col0 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT + col0 * + 8 AS col1 FROM tab1 AS cor0
----
408
680
728

query I rowsort
SELECT DISTINCT + 39 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 58 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL + + COUNT( * ) + 70 AS col1 FROM tab1 AS cor0 WHERE - col0 * + - col0 - 70 IS NULL
----
70

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL + + COUNT ( * ) + 70 AS col1 FROM tab1 AS cor0 WHERE - col0 * + - col0 - 70 IS NULL
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT - COUNT( * ) + + 34 + COUNT( * ) * - 43 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-7532
SELECT - COUNT ( * ) + + 34 + COUNT ( * ) * - 43 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT DISTINCT - col1 + + col0 + + col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT + 25 * + MIN( ALL + + col0 ) AS col1 FROM tab1
----
1275

skipif mysql # not compatible
query I rowsort label-7534
SELECT + 25 * + MIN ( ALL + + col0 ) AS col1 FROM tab1
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL - COUNT( ALL - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL - COUNT ( ALL - col2 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL + 19 + + col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL + 19 + + col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 AS col1, - col1 + - + col2 AS col1 FROM tab1
----
51
-110
85
-64
91
-115

query I rowsort
SELECT 37 + + 11 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query II rowsort
SELECT DISTINCT 63 * 30 * ( - col1 ) AS col2, - 75 * + col2 FROM tab0
----
-153090
-3525
-1890
-7425
-39690
-750

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col0 * 33 + col1 < + 85 )
----

query I rowsort
SELECT + - col2 + - 74 AS col1 FROM tab1 AS cor0 WHERE NOT col1 - - + 15 IS NULL
----
-133
-142
-170

onlyif mysql # DIV for integer division: 
query I rowsort label-7542
SELECT ALL col2 DIV col0 + col0 + - - col1 * ( + 47 ) AS col1 FROM tab2 AS cor0
----
2443
3224
3683

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL col2 / col0 + col0 + - - col1 * ( + 47 ) AS col1 FROM tab2 AS cor0
----
2443
3224
3683

query I rowsort
SELECT - 65 * 57 FROM tab2 AS cor0
----
-3705
-3705
-3705

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + col2
----

query I rowsort
SELECT ALL 36 * col2 * - - col1 * - + 94 AS col0 FROM tab1
----
-10815264
-4548096
-998280

query II rowsort
SELECT DISTINCT 70 AS col1, + 85 + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
70
100
70
172
70
182

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT 71 * 46 + + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7548
SELECT * FROM tab1 WHERE NOT + - CAST( + col0 AS SIGNED ) + + + col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7548
SELECT * FROM tab1 WHERE NOT + - CAST ( + col0 AS INTEGER ) + + + col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + col0 ) * col1 AS col2 FROM tab1
----
425
4277
714

query II rowsort
SELECT DISTINCT + col0, - col2 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT DISTINCT 22 + + + col1 FROM tab0
----
103
23
43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7553
SELECT + - 30 AS col0, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-30
-3

skipif mysql # not compatible
query II rowsort label-7553
SELECT + - 30 AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-30
-3

query I rowsort
SELECT ALL + col2 + + 41 + 20 AS col1 FROM tab1 AS cor0
----
120
129
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL 57 + + 67 + + - COUNT( * ) FROM tab1 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL 57 + + 67 + + - COUNT ( * ) FROM tab1 AS cor0
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7556
SELECT - AVG ( - - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT - AVG ( - - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL COUNT( * ) + + 73 * + - COUNT( * ) * COUNT( * ) col0 FROM tab0 AS cor0
----
-654

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7557
SELECT ALL COUNT ( * ) + + 73 * + - COUNT ( * ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
-654

query I rowsort
SELECT 46 + - + 73 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT col0 + col2 < - - 13 * - col2 + - col1
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 63 * + - col1 IS NOT NULL
----

query I rowsort
SELECT 50 + - 14 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7562
SELECT DISTINCT + col1 + - - col2 AS col2, CAST( - + col1 AS SIGNED ) FROM tab2
----
117
-77
125
-67
74
-51

skipif mysql # not compatible
query II rowsort label-7562
SELECT DISTINCT + col1 + - - col2 AS col2, CAST ( - + col1 AS INTEGER ) FROM tab2
----
117
-77
125
-67
74
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT ALL CAST( + + MIN( DISTINCT col0 ) AS SIGNED ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL CAST ( + + MIN ( DISTINCT col0 ) AS INTEGER ) AS col1 FROM tab0
----
15

query I rowsort
SELECT col0 + - ( + 28 ) AS col1 FROM tab2
----
18
36
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT MAX( + 16 ) + - + MIN( + col2 ) FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-7565
SELECT MAX ( + 16 ) + - + MIN ( + col2 ) FROM tab1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7566
SELECT - CAST( NULL AS SIGNED ) + + 81 AS col1, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-7566
SELECT - CAST ( NULL AS INTEGER ) + + 81 AS col1, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query II rowsort
SELECT ALL - col1 + + + ( + + col0 ) AS col0, - 78 FROM tab1
----
37
-78
44
-78
80
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT COUNT( * ) + - - 22 * - 82 col1 FROM tab0
----
-1801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7568
SELECT COUNT ( * ) + - - 22 * - 82 col1 FROM tab0
----
-1801

query I rowsort
SELECT ALL + col0 * - - 67 + col0 * + col1 FROM tab2 AS cor0
----
10050
5428
9216

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 53 AS col2 FROM tab2 AS cor0
----
-53
-53
-53

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 66 + - + 41 IS NULL
----

query I rowsort
SELECT ALL + col0 * - + col2 - - + 53 AS col0 FROM tab0 AS cor0
----
-652
-817
-9550

query II rowsort
SELECT - + col1 - - - 44 AS col0, + col2 * - + 12 + - col1 FROM tab0 AS cor0
----
-125
-645
-45
-1189
-65
-141

query I rowsort
SELECT DISTINCT + col2 * ( col0 ) FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT - col2 - + col0 - - CAST( NULL AS SIGNED ) / - col0 * + + ( + col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT - col2 - + col0 - - CAST ( NULL AS INTEGER ) / - col0 * + + ( + col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL - MAX( - 33 ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL - MAX ( - 33 ) FROM tab0
----
33

query I rowsort
SELECT DISTINCT 44 * - - col0 - + col2 + col2 FROM tab1
----
2244
3740
4004

query I rowsort
SELECT + col1 * col1 * 30 * + col0 AS col0 FROM tab0
----
1151010
2910
2952450

query I rowsort
SELECT + 6 * - + col2 AS col2 FROM tab1
----
-354
-408
-576

onlyif mysql # aggregate syntax: 
query II rowsort label-7581
SELECT DISTINCT - + 15, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-7581
SELECT DISTINCT - + 15, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7582
SELECT ALL + MIN( DISTINCT + ( + col1 ) ) AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + col1 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7582
SELECT ALL + MIN ( DISTINCT + ( + col1 ) ) AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + col1 )
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7583
SELECT + CAST( + + 81 AS SIGNED ) FROM tab2 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-7583
SELECT + CAST ( + + 81 AS INTEGER ) FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT ALL - 71 * - - ( + col1 ) FROM tab0 cor0
----
-1491
-5751
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7585
SELECT 35 DIV - COUNT( * ) AS col2 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-7585
SELECT 35 / - COUNT ( * ) AS col2 FROM tab0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 19 col1 FROM tab2
----
-1216
-1425
-874

query I rowsort
SELECT DISTINCT + - 94 FROM tab2 cor0
----
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 64 - - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + - 49 * + col0 FROM tab0 cor0
----
-11025
-370881
-461041

query I rowsort
SELECT + + col1 * + - 39 FROM tab0 AS cor0
----
-3159
-39
-819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT ALL + 91 * + CAST( + 34 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3094
3094
3094

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL + 91 * + CAST ( + 34 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3094
3094
3094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 + - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 + - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT - - col0 * col0 * - - 52 * - 5 - - + col0 / - col2 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT - - col0 * col0 * - - 52 * - 5 - - + col0 / - col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 73 NOT IN ( - col1, 88 * - - col2 * + + col0 - 52 + - 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + + + ( + 29 ) - - col2 FROM tab2
----
-8
1
20

query II rowsort
SELECT DISTINCT + col0 + ( + col2 ) * - 12 * - + ( + + col0 ) AS col1, 69 FROM tab1
----
58803
69
60265
69
74347
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7597
SELECT ALL - 42 DIV CAST( - 12 AS SIGNED ) + - + col1 + - col1 FROM tab0 AS cor0
----
-159
-39
1

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL - 42 / CAST ( - 12 AS INTEGER ) + - + col1 + - col1 FROM tab0 AS cor0
----
-159
-39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT 19 + COUNT( * ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT 19 + COUNT ( * ) FROM tab0 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT DISTINCT CAST( + col2 AS SIGNED ) col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7599
SELECT DISTINCT CAST ( + col2 AS INTEGER ) col2 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL + 21 + + 81 * + 32 * 13 AS col1 FROM tab2 cor0
----
33717
33717
33717

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 17 col1 FROM tab2 cor0
----
-1088
-1275
-782

query I rowsort
SELECT DISTINCT ( - 52 ) * - - col0 AS col2 FROM tab0 AS cor0
----
-4524
-5044
-780

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 < col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 = - - col2
----

query I rowsort
SELECT DISTINCT + ( col0 ) + + col2 AS col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7607
SELECT ALL + ( - - AVG ( + - CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + ( - - AVG ( + - CAST ( NULL AS REAL ) ) ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 92 * ( + + 81 ) <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7609
SELECT DISTINCT MIN( + - 92 ) AS col2, COUNT( * ) AS col2 FROM tab2
----
-92
3

skipif mysql # not compatible
query II rowsort label-7609
SELECT DISTINCT MIN ( + - 92 ) AS col2, COUNT ( * ) AS col2 FROM tab2
----
-92
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT + 41 + - - MAX( ALL - col0 ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7610
SELECT + 41 + - - MAX ( ALL - col0 ) FROM tab2 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT ALL - + col0 + - + col0 + 24 DIV - col2 FROM tab0 AS cor0
----
-176
-194
-30

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL - + col0 + - + col0 + 24 / - col2 FROM tab0 AS cor0
----
-176
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT + CAST( col2 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7612
SELECT + CAST ( col2 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT ALL + - 18 * + CAST( + 60 AS SIGNED ) + + col2 col2 FROM tab2 AS cor0
----
-1022
-1040
-1057

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7613
SELECT ALL + - 18 * + CAST ( + 60 AS INTEGER ) + + col2 col2 FROM tab2 AS cor0
----
-1022
-1040
-1057

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT + 78 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT + 78 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
234

onlyif mysql # DIV for integer division: 
query II rowsort label-7615
SELECT DISTINCT 51 DIV + 79, - 57 col1 FROM tab2
----
0
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7615
SELECT DISTINCT 51 / + 79, - 57 col1 FROM tab2
----
0
-57

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 WHERE NULL NOT BETWEEN ( + + 82 ) AND NULL
----

query II rowsort
SELECT col1 * - - col0 AS col1, - col0 AS col0 FROM tab1
----
425
-85
4277
-91
714
-51

query I rowsort
SELECT DISTINCT + col1 * + 22 FROM tab1 AS cor0
----
1034
110
308

query I rowsort
SELECT + 12 * - col0 + col0 FROM tab0 AS cor0
----
-1067
-165
-957

query I rowsort
SELECT + + 64 AS col1 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT - + COUNT( * ) * + 73 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-7621
SELECT - + COUNT ( * ) * + 73 FROM tab1 AS cor0
----
-219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7622
SELECT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT 56 * + - CAST( 90 AS SIGNED ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7622
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT 56 * + - CAST ( 90 AS INTEGER ) BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT DISTINCT + 8 * - CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT + 8 * - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 30 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7625
SELECT 35 DIV + + col0 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7625
SELECT 35 / + + col0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * col1 + ( + 74 ) FROM tab2 AS cor0
----
2420
5002
5099

query I rowsort
SELECT ALL + + 81 * - - col2 FROM tab2 AS cor0
----
1863
3240
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL MAX( - col2 ) * - + COUNT( * ) + + COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL MAX ( - col2 ) * - + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT + COUNT( DISTINCT - - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7629
SELECT + COUNT ( DISTINCT - - col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE - - col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL col1 + - + col2 + + + col0 + - col2 * - col0 + - col0 FROM tab1
----
4814
4961
6167

query I rowsort
SELECT ALL - col1 * - + ( + col0 ) AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT + ( - - COUNT( * ) ) + 67 + + - 72 + - 49 + + + COUNT( * ) - + + 34 * - COUNT( * ) * - MAX( - col1 ) col2 FROM tab2 AS cor0
----
5154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7633
SELECT + ( - - COUNT ( * ) ) + 67 + + - 72 + - 49 + + + COUNT ( * ) - + + 34 * - COUNT ( * ) * - MAX ( - col1 ) col2 FROM tab2 AS cor0
----
5154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT + + CAST( NULL AS SIGNED ) + + + col0 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-7634
SELECT + + CAST ( NULL AS INTEGER ) + + + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - 63 * - + col0 + - col2 AS col0, col1 AS col1 FROM tab2 AS cor0
----
-2921
51
-4072
77
-4783
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7636
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 78 + COUNT( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-7636
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 78 + COUNT ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
81

query I rowsort
SELECT 0 * col0 * - + ( - - 32 ) FROM tab0 cor0 WHERE ( col0 + + - col0 ) NOT BETWEEN ( col2 ) AND col1 + + col0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT ALL - CAST( - 98 AS SIGNED ) * - col1 AS col0 FROM tab2
----
-4998
-6566
-7546

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL - CAST ( - 98 AS INTEGER ) * - col1 AS col0 FROM tab2
----
-4998
-6566
-7546

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * - 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL + 91 + MAX( - - col1 ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL + 91 + MAX ( - - col1 ) FROM tab2
----
168

query I rowsort
SELECT col0 - 3 AS col0 FROM tab2
----
43
61
72

query I rowsort
SELECT + 11 + - col1 + - col2 FROM tab0 AS cor0
----
-117
-20
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 + - col2 col2 FROM tab0 AS cor0
----
-16
36
73

query I rowsort
SELECT + - col0 * + col2 + 70 AS col2 FROM tab0 AS cor0 WHERE + 32 + ( 98 ) <= + - col0
----

query I rowsort
SELECT ALL + col0 * + col2 - col0 AS col0 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT COUNT( * ) + + 51 col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7646
SELECT COUNT ( * ) + + 51 col1 FROM tab0 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col2 FROM tab2 cor0
----
92

query I rowsort
SELECT ALL - col1 + - - col1 + - + 61 FROM tab2 cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 85 + col1 AS col2 FROM tab1
----
132
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( col2, col0, col2, col1 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7651
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( col2, col0, col2, col1 * + col1 )
----
0

query I rowsort
SELECT + col2 * - 39 FROM tab2
----
-1560
-2262
-897

query I rowsort
SELECT + ( + 62 ) AS col1 FROM tab0
----
62
62
62

query III rowsort
SELECT * FROM tab0 WHERE ( col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT COUNT( * ) + + - 80 AS col2 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT COUNT ( * ) + + - 80 AS col2 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT + MAX( - 18 ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-7657
SELECT + MAX ( - 18 ) AS col2 FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7659
SELECT - + 1 DIV + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7659
SELECT - + 1 / + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * - 99 AS col0 FROM tab1 AS cor0
----
5049
8415
9009

query I rowsort
SELECT DISTINCT ( ( + - col1 ) ) * - + col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab2 WHERE - - 14 * - col2 BETWEEN + - col2 AND - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab0 WHERE - ( - + 88 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab0 WHERE - ( - + 88 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - 65
----

query I rowsort
SELECT + - col0 AS col0 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7666
SELECT ALL - 46 * - col2 DIV - col2 AS col0, 28 FROM tab1
----
-46
28
-46
28
-46
28

skipif mysql # not compatible
query II rowsort label-7666
SELECT ALL - 46 * - col2 / - col2 AS col0, 28 FROM tab1
----
-46
28
-46
28
-46
28

query I rowsort
SELECT - - col2 + 17 + + - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-6
-7
0

query I rowsort
SELECT - 28 + + col2 AS col1 FROM tab2 AS cor0
----
-5
12
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ALL - 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-7669
SELECT ALL - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + col2 + 74 / - + 72 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1 + - 28
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 * + - 87 <> + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND - + ( - + col1 )
----

query I rowsort
SELECT ALL + - col1 * + col1 + + 49 FROM tab2 cor0
----
-2552
-4440
-5880

query I rowsort
SELECT ALL col0 - + col0 + - 21 * + col1 FROM tab1 AS cor0
----
-105
-294
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT + 42 * 76 - + + MAX( - + col2 ) * - 18 AS col2 FROM tab0 AS cor0
----
3012

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT + 42 * 76 - + + MAX ( - + col2 ) * - 18 AS col2 FROM tab0 AS cor0
----
3012

query I rowsort
SELECT - 86 * 29 AS col1 FROM tab2 AS cor0 WHERE + ( + 36 ) / ( - col1 ) IS NOT NULL
----
-2494
-2494
-2494

query I rowsort
SELECT + - 18 * 12 - + col0 + + col1 AS col0 FROM tab2 AS cor0
----
-203
-211
-224

query I rowsort
SELECT + + 73 - - col2 + - col1 + col0 FROM tab0 AS cor0
----
149
268
54

query I rowsort
SELECT col0 - + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 - - 41 FROM tab2 cor0
----
108
118
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 50 - + 39 * - - col0 col0, - 29 + - 43 + - - 68 FROM tab0 AS cor0
----
-3343
-4
-3733
-4
-535
-4

query I rowsort
SELECT ALL - + 73 - + col2 AS col0 FROM tab2 AS cor0
----
-113
-131
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT DISTINCT COUNT( * ) - COUNT( * ) + - 5 * + 13, 50 AS col0 FROM tab1
----
-65
50

skipif mysql # not compatible
query II rowsort label-7683
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) + - 5 * + 13, 50 AS col0 FROM tab1
----
-65
50

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab2 WHERE ( NULL ) IS NULL AND NOT ( NULL ) >= 15
----

query I rowsort
SELECT ALL - col0 - 11 + col2 FROM tab0
----
-88
-9
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7686
SELECT DISTINCT 4 * - COUNT( * ) * - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT 4 * - COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7687
SELECT DISTINCT col1 * + CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7687
SELECT DISTINCT col1 * + CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - 80 + + col1 * + 67 AS col0 FROM tab1 WHERE NOT - ( + + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 NOT IN ( - 15, ( + - col2 ) * + col1 + + - col1 + col2 * - 39, - + col2, + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7690
SELECT - + 93 + - + CAST( NULL AS SIGNED ) * + + 64 + - 93, - col2 AS col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN + col2 AND + col2 * + + 66
----

skipif mysql # not compatible
query II rowsort label-7690
SELECT - + 93 + - + CAST ( NULL AS INTEGER ) * + + 64 + - 93, - col2 AS col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN + col2 AND + col2 * + + 66
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT MAX( - + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7692
SELECT MAX ( - + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT + 15 DIV - - 33 + - - 46 AS col0 FROM tab1 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-7693
SELECT + 15 / - - 33 + - - 46 AS col0 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT - MAX( 47 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT - MAX ( 47 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - 70 >= NULL ) OR NOT - col2 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col0, + col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 84 col1 FROM tab2 AS cor0 WHERE NOT NULL <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col0, - 17 * - col0 FROM tab0 AS cor0
----
-10
1479
-47
255
-99
1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7699
SELECT DISTINCT + MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT + MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT ALL + MIN( ALL col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL + MIN ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT BETWEEN col1 AND + 0
----

query I rowsort
SELECT + 83 + + 14 FROM tab2
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT 62 + MIN( - 61 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT 62 + MIN ( - 61 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + col0 + - - col1 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab0 WHERE - + col2 NOT BETWEEN + col0 * + col0 + - col0 * col1 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT + 58 FROM tab0 AS cor0 WHERE NULL IS NULL
----
58
58
58

query I rowsort
SELECT ALL - col1 + - - ( - 7 ) AS col0 FROM tab1 AS cor0
----
-12
-21
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL SUM( DISTINCT + 24 ) + + 13 AS col0 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL SUM ( DISTINCT + 24 ) + + 13 AS col0 FROM tab1 AS cor0
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 67 - - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col2 - + - 46 - - col1 + + 51 FROM tab0
----
128
197
225

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT ( + - COUNT( * ) ) - + - 61 * COUNT( * ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-7712
SELECT ( + - COUNT ( * ) ) - + - 61 * COUNT ( * ) FROM tab0
----
180

query I rowsort
SELECT + col0 FROM tab2 WHERE col1 - - ( 71 ) IS NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE + col0 BETWEEN - col2 * 5 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col1 FROM tab0 cor0 WHERE col0 - - 77 IS NOT NULL
----
1
21
81

query I rowsort
SELECT + + 64 + - col2 FROM tab0 cor0
----
-35
17
54

query I rowsort
SELECT ALL - 55 + + 61 AS col2 FROM tab2 cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 29 + - ( - 77 ) + - col1 col2 FROM tab2 AS cor0
----
-1160
-1672
-641

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
66
66
66

query I rowsort
SELECT - col0 * + 47 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
-2162
-3008
-3525

query I rowsort
SELECT DISTINCT + + 3 AS col1 FROM tab2 WHERE NOT + ( col0 ) = ( - + 85 )
----
3

query II rowsort
SELECT DISTINCT + col1 AS col1, - 3 FROM tab0
----
1
-3
21
-3
81
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT COUNT( + 69 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7725
SELECT COUNT ( + 69 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT - col1 * 6 FROM tab1
----
-282
-30
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT - CAST( - col0 AS SIGNED ) * - - 95 AS col0 FROM tab1
----
4845
8075
8645

skipif mysql # not compatible
query I rowsort label-7728
SELECT - CAST ( - col0 AS INTEGER ) * - - 95 AS col0 FROM tab1
----
4845
8075
8645

query II rowsort
SELECT + col0 * + - col2 * col0, col0 AS col2 FROM tab2
----
-163840
64
-326250
75
-48668
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT + - 62 - + col2 AS col2 FROM tab0 WHERE NOT 5 * - - col0 * + + col1 * CAST( NULL AS SIGNED ) * col1 + - col2 IS NOT NULL
----
-109
-161
-72

skipif mysql # not compatible
query I rowsort label-7730
SELECT + - 62 - + col2 AS col2 FROM tab0 WHERE NOT 5 * - - col0 * + + col1 * CAST ( NULL AS INTEGER ) * col1 + - col2 IS NOT NULL
----
-109
-161
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT col2 DIV - - 28 col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7731
SELECT col2 / - - 28 col0 FROM tab2 AS cor0
----
0
1
2

query II rowsort
SELECT col1 AS col1, + 29 AS col0 FROM tab2 AS cor0
----
51
29
67
29
77
29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col0 <> 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT DISTINCT CAST( + ( col2 ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT CAST ( + ( col2 ) AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL + - COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7737
SELECT DISTINCT - - 72 DIV - - SUM( DISTINCT - col2 ) + + - COUNT( * ) * + MIN( ALL - col2 ) + MIN( DISTINCT + col2 ) * + 21 FROM tab2 AS cor0
----
657

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT - - 72 / - - SUM ( DISTINCT - col2 ) + + - COUNT ( * ) * + MIN ( ALL - col2 ) + MIN ( DISTINCT + col2 ) * + 21 FROM tab2 AS cor0
----
657

query I rowsort
SELECT ALL - col0 + 82 - - 69 * + + 91 + - col1 AS col1 FROM tab1 AS cor0
----
6223
6271
6296

query I rowsort
SELECT DISTINCT ( + 87 ) FROM tab1 cor0
----
87

query I rowsort
SELECT + ( - col2 ) * 12 FROM tab2 AS cor0
----
-276
-480
-696

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT - CAST( NULL AS SIGNED ) / - 36 - - col2 / + - 58 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT - CAST ( NULL AS INTEGER ) / - 36 - - col2 / + - 58 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT col0 * + CAST( NULL AS SIGNED ) * - col1 / ( ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT col0 * + CAST ( NULL AS INTEGER ) * - col1 / ( ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT + - CAST( - col2 AS SIGNED ) * 60 AS col1 FROM tab0 AS cor0
----
2820
5940
600

skipif mysql # not compatible
query I rowsort label-7744
SELECT + - CAST ( - col2 AS INTEGER ) * 60 AS col1 FROM tab0 AS cor0
----
2820
5940
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT ( - + CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7745
SELECT ( - + CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT 68 * - COUNT( * ) AS col1 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-7746
SELECT 68 * - COUNT ( * ) AS col1 FROM tab0
----
-204

onlyif mysql # aggregate syntax: 
query II rowsort label-7747
SELECT COUNT( * ) AS col0, - 88 col2 FROM tab2
----
3
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7747
SELECT COUNT ( * ) AS col0, - 88 col2 FROM tab2
----
3
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT 48 * - + COUNT( - ( ( - 44 ) ) ) AS col0 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-7748
SELECT 48 * - + COUNT ( - ( ( - 44 ) ) ) AS col0 FROM tab1
----
-144

query I rowsort
SELECT DISTINCT + 2 * - - col2 FROM tab1 WHERE col2 IS NOT NULL
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7751
SELECT - 93 DIV + col1 + - ( + 16 ) AS col2, col2 DIV - + 8 AS col0 FROM tab2
----
-17
-2
-17
-5
-17
-7

skipif mysql # not compatible
query II rowsort label-7751
SELECT - 93 / + col1 + - ( + 16 ) AS col2, col2 / - + 8 AS col0 FROM tab2
----
-17
-2
-17
-5
-17
-7

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - 61 * - col2 + + + 14 AND + col0
----

query I rowsort
SELECT DISTINCT col1 * + + 23 FROM tab0
----
1863
23
483

query I rowsort
SELECT col1 * + 51 - + + col0 + 51 * + ( - col0 ) + + col1 * 27 * + + ( - + 67 ) FROM tab1 AS cor0
----
-13210
-27264
-87358

query II rowsort
SELECT - col2 - 2 AS col2, col2 FROM tab0 cor0
----
-101
99
-12
10
-49
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT DISTINCT - + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT COUNT( + + col0 ) - - - 51 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7757
SELECT COUNT ( + + col0 ) - - - 51 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT - ( ( + + col0 ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT MIN( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7759
SELECT MIN ( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7761
SELECT ALL + COUNT( * ) * + + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL + COUNT ( * ) * + + CAST ( NULL AS REAL ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 44 ) * - col2 * + col2 + + + col2 col2 FROM tab0
----
431343
4410
97243

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT + - col1 NOT BETWEEN NULL AND + + 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col0 FROM tab1 WHERE NOT ( col1 ) NOT IN ( + 77 * + col0, - col0 * + - 18 - - 62 )
----

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col0 FROM tab1 WHERE NOT ( col1 ) NOT IN ( + 77 * + col0, - col0 * + - 18 - - 62 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 78 NOT BETWEEN NULL AND + 63
----

query I rowsort
SELECT DISTINCT - 25 FROM tab1 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT + - COUNT( * ) * + - 7 + - - 15 AS col2 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7767
SELECT + - COUNT ( * ) * + - 7 + - - 15 AS col2 FROM tab1 AS cor0
----
36

query I rowsort
SELECT ( - 19 ) FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + - col1 * - - ( - + 83 ) AS col1 FROM tab1 AS cor0
----
1162
3901
415

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - + ( col0 )
----

query I rowsort
SELECT DISTINCT 43 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col2 FROM tab1
----
-21
-54
-82

query II rowsort
SELECT - col2 AS col0, - ( - col2 ) FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - - 50 AS col1 FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT DISTINCT col1 + 60 * - - col0 AS col2 FROM tab0 AS cor0
----
5241
5821
981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * + 34 / - - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * + 34 / - - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - - col0 / col1 + + + col2 AND NULL
----
97
1
99

query I rowsort
SELECT 30 + - 7 FROM tab2
----
23
23
23

query I rowsort
SELECT - col2 + + 62 AS col0 FROM tab2
----
22
39
4

onlyif mysql # DIV for integer division: 
query II rowsort label-7780
SELECT DISTINCT - col1 + + col0 + - - col0 DIV + 89 AS col1, col2 * + - col0 * - col1 FROM tab2
----
-13
197120
-5
53958
8
291450

skipif mysql # not compatible
query II rowsort label-7780
SELECT DISTINCT - col1 + + col0 + - - col0 / + 89 AS col1, col2 * + - col0 * - col1 FROM tab2
----
-13
197120
-5
53958
8
291450

query I rowsort
SELECT DISTINCT + + 18 + - 34 AS col0 FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ALL COUNT( * ) - + - 71 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL COUNT ( * ) - + - 71 FROM tab0 AS cor0
----
74

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - - col0 - - col2 FROM tab2
----
144
191
92

query I rowsort
SELECT ( 23 ) FROM tab2 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT 90 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT 90 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-7787
SELECT ALL ( - col0 ) * col0 DIV + 14 AS col2 FROM tab1 cor0
----
-185
-516
-591

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL ( - col0 ) * col0 / + 14 AS col2 FROM tab1 cor0
----
-185
-516
-591

query I rowsort
SELECT 79 * - - 58 FROM tab2 AS cor0
----
4582
4582
4582

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - col1 / - col1 * - 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7790
SELECT CAST( NULL AS SIGNED ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-7790
SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
-3

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( + + col0 * + 78 + + col0, + col2, + - ( + - col2 ), - col0 / - 87 * - + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT 46 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 * + col2 IN ( + col2 + - 70 )
----
138

skipif mysql # not compatible
query I rowsort label-7792
SELECT 46 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 * + col2 IN ( + col2 + - 70 )
----
138

query I rowsort
SELECT 30 * - 79 + - 68 FROM tab0 AS cor0
----
-2438
-2438
-2438

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT MAX( DISTINCT - + 54 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-7795
SELECT MAX ( DISTINCT - + 54 ) FROM tab2
----
-54

query II rowsort
SELECT + 84, + col0 FROM tab2
----
84
46
84
64
84
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL - MAX( ALL + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL - MAX ( ALL + col0 ) FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col0 FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT MIN( DISTINCT + col1 ) * + 54 * + + 94 FROM tab2
----
258876

skipif mysql # not compatible
query I rowsort label-7799
SELECT MIN ( DISTINCT + col1 ) * + 54 * + + 94 FROM tab2
----
258876

query II rowsort
SELECT + col0 AS col1, + 77 AS col1 FROM tab0
----
15
77
87
77
97
77

onlyif mysql # DIV for integer division: 
query II rowsort label-7801
SELECT DISTINCT 52 AS col0, + col1 DIV + - col1 FROM tab2
----
52
-1

skipif mysql # not compatible
query II rowsort label-7801
SELECT DISTINCT 52 AS col0, + col1 / + - col1 FROM tab2
----
52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT - MIN( - - 55 ) col2 FROM tab2
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7802
SELECT - MIN ( - - 55 ) col2 FROM tab2
----
-55

query I rowsort
SELECT - ( 11 ) AS col2 FROM tab1
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7804
SELECT - COUNT( * ) AS col1, - SUM( ALL col0 ) * - - MIN( DISTINCT col2 ) AS col0 FROM tab1
----
-3
-13393

skipif mysql # not compatible
query II rowsort label-7804
SELECT - COUNT ( * ) AS col1, - SUM ( ALL col0 ) * - - MIN ( DISTINCT col2 ) AS col0 FROM tab1
----
-3
-13393

query I rowsort
SELECT ( ( col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT ALL + 37 DIV + - 48 * col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL + 37 / + - 48 * col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - 32 * - col0 * + 11 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 43 * - - col1 FROM tab0 AS cor0
----
-3483
-43
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL SUM( col0 ) + + COUNT( * ) AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL SUM ( col0 ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - col1 * - col0 + - 25 - - - col0 + - 46 FROM tab2
----
2229
4793
4879

query I rowsort
SELECT ALL 48 + col1 AS col0 FROM tab0
----
129
49
69

query I rowsort
SELECT DISTINCT col1 * - 96 * - col1 FROM tab0 WHERE - + col1 IS NULL
----

query I rowsort
SELECT ALL - ( 28 ) + col1 FROM tab1 AS cor0
----
-14
-23
19

onlyif mysql # DIV for integer division: 
query II rowsort label-7814
SELECT DISTINCT + + 56 DIV + 35 col0, col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7814
SELECT DISTINCT + + 56 / + 35 col0, col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

query I rowsort
SELECT - - col1 * - + 69 AS col0 FROM tab0 AS cor0
----
-1449
-5589
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT + MAX( - 82 ) FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT + MAX ( - 82 ) FROM tab0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE + 68 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, ( + 7 ) AS col2 FROM tab0
----
15
7
87
7
97
7

query III rowsort
SELECT * FROM tab2 WHERE + 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 14
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT DISTINCT - 99 AS col0, + COUNT( * ) col2 FROM tab2
----
-99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7821
SELECT DISTINCT - 99 AS col0, + COUNT ( * ) col2 FROM tab2
----
-99
3

query I rowsort
SELECT ALL col1 + - 56 AS col0 FROM tab0
----
-35
-55
25

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= - 97
----

query I rowsort
SELECT - col1 + - + 34 * - - 31 AS col1 FROM tab2 AS cor0
----
-1105
-1121
-1131

query I rowsort
SELECT DISTINCT + - col1 + + - 53 FROM tab1 AS cor0
----
-100
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT 22 * SUM( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7826
SELECT 22 * SUM ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT DISTINCT - 42 DIV + col0 - - + 6 DIV 55 + - col0 FROM tab0 AS cor0
----
-17
-87
-97

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT - 42 / + col0 - - + 6 / 55 + - col0 FROM tab0 AS cor0
----
-17
-87
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 2 / + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7829
SELECT col2 FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) * + 38 + + col2 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7829
SELECT col2 FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) * + 38 + + col2 IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7830
SELECT ALL - 27 DIV + 94 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - 27 / + 94 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT DISTINCT COUNT( * ) * + 98 + COUNT( * ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT COUNT ( * ) * + 98 + COUNT ( * ) FROM tab1
----
297

query III rowsort
SELECT * FROM tab0 WHERE + col1 / col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL ( 20 ) * - COUNT( * ) + - 45 AS col0 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL ( 20 ) * - COUNT ( * ) + - 45 AS col0 FROM tab0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT + COUNT( - col1 ) + 34 * - MIN( col1 ) AS col1 FROM tab0 WHERE NULL >= ( 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT + COUNT ( - col1 ) + 34 * - MIN ( col1 ) AS col1 FROM tab0 WHERE NULL >= ( 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col0 FROM tab1 WHERE ( + col2 - + col1 ) IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 WHERE ( + col2 - + col1 ) IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL - COUNT( * ) + - ( + 13 ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL - COUNT ( * ) + - ( + 13 ) AS col0 FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL - 83 * ( + 32 ) + COUNT( * ) FROM tab2
----
-2653

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL - 83 * ( + 32 ) + COUNT ( * ) FROM tab2
----
-2653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT col2 * CAST( NULL AS SIGNED ) + 11 * 0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT col2 * CAST ( NULL AS INTEGER ) + 11 * 0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 >= col1 * 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7841
SELECT * FROM tab2 WHERE NOT ( + col0 ) <> + 98 * CAST( NULL AS SIGNED ) + - 8 * + col1
----

skipif mysql # not compatible
query III rowsort label-7841
SELECT * FROM tab2 WHERE NOT ( + col0 ) <> + 98 * CAST ( NULL AS INTEGER ) + - 8 * + col1
----

query I rowsort
SELECT ( + ( 1 ) ) AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT col2 * 17 + 17 AS col0 FROM tab1
----
1020
1173
1649

query I rowsort
SELECT ALL - col2 * + ( - ( - col1 ) ) FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL ( 23 ) * + 28 FROM tab2 cor0
----
644
644
644

query I rowsort
SELECT DISTINCT 84 / ( - 56 ) + col0 FROM tab2 WHERE + col2 * 8 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT ALL - col1 + CAST( 27 AS SIGNED ) FROM tab0 AS cor0
----
-54
26
6

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL - col1 + CAST ( 27 AS INTEGER ) FROM tab0 AS cor0
----
-54
26
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7848
SELECT DISTINCT + col1 DIV col2 + 60 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT + col1 / col2 + 60 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL col1 - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-420
-4230
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 68 col0 FROM tab0 AS cor0
----
68

query I rowsort
SELECT ALL + col2 * col0 + + 72 AS col2 FROM tab1 AS cor0
----
4968
5087
6260

query I rowsort
SELECT DISTINCT - col2 - - col1 * col0 AS col0 FROM tab0 cor0
----
-2
1168
1817

query I rowsort
SELECT + 9 * - col0 + + col1 * + col2 FROM tab2 AS cor0 WHERE + col2 / col2 - 62 IN ( - 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT CAST( NULL AS SIGNED ) / - col0 + col2 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT CAST ( NULL AS INTEGER ) / - col0 + col2 * + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT + COUNT( * ) * COUNT( ALL col0 ) * 23 + + COUNT( * ) FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-7855
SELECT + COUNT ( * ) * COUNT ( ALL col0 ) * 23 + + COUNT ( * ) FROM tab0
----
210

query I rowsort
SELECT col0 + - col1 + + 21 AS col2 FROM tab2
----
16
29
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( + col2 * + col1 )
----

query I rowsort
SELECT DISTINCT + col2 + - col2 * col1 AS col0 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7859
SELECT - SUM( DISTINCT 84 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT - SUM ( DISTINCT 84 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT 1 * COUNT( * ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7860
SELECT 1 * COUNT ( * ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT + 97 DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7861
SELECT + 97 / col2 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT BETWEEN ( + 71 ) AND 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 76 * 83 FROM tab2
----
6308

query I rowsort
SELECT - ( col0 ) * ( 32 ) FROM tab2
----
-1472
-2048
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-7865
SELECT - 64 DIV - + 80 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7865
SELECT - 64 / - + 80 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT ALL col0 DIV 59 * + col0 + - col1 FROM tab1
----
-14
44
80

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL col0 / 59 * + col0 + - col1 FROM tab1
----
-14
44
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 / + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 53 ) col0 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT + + 93 AS col0 FROM tab1 AS cor0
----
93

query II rowsort
SELECT + col2, + 55 + - 35 FROM tab2
----
23
20
40
20
58
20

query I rowsort
SELECT + 26 * + col2 FROM tab1 WHERE NOT - + col1 > col1 * 88
----
1534
1768
2496

query I rowsort
SELECT - col2 * + 65 * - col0 AS col0 FROM tab2
----
166400
282750
68770

onlyif mysql # DIV for integer division: 
query I rowsort label-7874
SELECT - 44 DIV - + 39 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7874
SELECT - 44 / - + 39 AS col1 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT - 89 AS col0, 21 FROM tab2 AS cor0
----
-89
21
-89
21
-89
21

query I rowsort
SELECT - - col0 + col2 * ( col1 + col0 * + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
18567
60927
9799

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < - col2 * 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ( - + COUNT( * ) ) * - 93 AS col2 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-7878
SELECT ( - + COUNT ( * ) ) * - 93 AS col2 FROM tab1 AS cor0
----
279

query I rowsort
SELECT col0 * - - col0 * + col0 FROM tab0
----
3375
658503
912673

query I rowsort
SELECT ALL 67 + col0 AS col0 FROM tab1
----
118
152
158

query I rowsort
SELECT + - col0 AS col0 FROM tab0 WHERE NOT NULL <= - - col0
----

query I rowsort
SELECT - 66 FROM tab0 WHERE NOT ( NULL ) < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT COUNT( * ) * + - 3 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7883
SELECT COUNT ( * ) * + - 3 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT + MIN( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT + MIN ( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 39 + col1 * 97 col0 FROM tab2 cor0 WHERE NOT + 82 IN ( - + 40 * - col1 )
----
5844
8761
9029

query I rowsort
SELECT 70 * - col0 + - ( - + col2 ) FROM tab1
----
-3474
-5891
-6302

query I rowsort
SELECT DISTINCT - 53 * - - 64 + - col1 * + col0 FROM tab0
----
-3489
-4607
-5219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT + CAST( NULL AS SIGNED ) + + col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7888
SELECT + CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + 75 + - + 49 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT ALL + + MIN( ALL + + col1 ) + COUNT( * ) + - MIN( DISTINCT - 3 ) - 4 * - 47 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL + + MIN ( ALL + + col1 ) + COUNT ( * ) + - MIN ( DISTINCT - 3 ) - 4 * - 47 FROM tab0 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT DISTINCT - CAST( ( col1 ) AS SIGNED ) * + col2 + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - CAST ( ( col1 ) AS INTEGER ) * + col2 + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

query III rowsort
SELECT * FROM tab2 cor0 WHERE 42 + - 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT ALL - ( + + col0 ) * - - CAST( - 6 AS SIGNED ) * + + col1 * + ( - col1 ) + 44 FROM tab0 AS cor0
----
-230158
-538
-590446

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - ( + + col0 ) * - - CAST ( - 6 AS INTEGER ) * + + col1 * + ( - col1 ) + 44 FROM tab0 AS cor0
----
-230158
-538
-590446

query II rowsort
SELECT - - 98 AS col0, col2 * col2 FROM tab2 AS cor0
----
98
1600
98
3364
98
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT col0 * col2 FROM tab2 AS cor0 WHERE ( + CAST( col0 AS SIGNED ) ) NOT IN ( 4 * + ( - col1 ) * col0 )
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7895
SELECT col0 * col2 FROM tab2 AS cor0 WHERE ( + CAST ( col0 AS INTEGER ) ) NOT IN ( 4 * + ( - col1 ) * col0 )
----
1058
2560
4350

query I rowsort
SELECT + ( 56 ) FROM tab0 cor0
----
56
56
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT ALL - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND ( CAST( NULL AS SIGNED ) * - 20 )
----
0

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND ( CAST ( NULL AS INTEGER ) * - 20 )
----
0

query I rowsort
SELECT 67 * + - col0 * + - 18 + + ( 97 ) FROM tab1 cor0
----
102607
109843
61603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7899
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) >= + CAST( + 15 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7899
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) >= + CAST ( + 15 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL - - COUNT( * ) * 51 * + - 16 + 43 + + COUNT( * ) FROM tab1 AS cor0
----
-2402

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL - - COUNT ( * ) * 51 * + - 16 + 43 + + COUNT ( * ) FROM tab1 AS cor0
----
-2402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT DISTINCT + 79 * ( + + col1 ) * - col1 + + + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT + 79 * ( + + col1 ) * - col1 + + + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE 59 >= ( + + 41 * - + 83 * - 30 / 24 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT 74 * - 11 - SUM( DISTINCT col1 ) FROM tab1
----
-880

skipif mysql # not compatible
query I rowsort label-7904
SELECT 74 * - 11 - SUM ( DISTINCT col1 ) FROM tab1
----
-880

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7905
SELECT * FROM tab0 WHERE ( NOT col0 >= - 78 * - 56 - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7905
SELECT * FROM tab0 WHERE ( NOT col0 >= - 78 * - 56 - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7906
SELECT - col2 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT - col2 - + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN ( + 60 ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 5 - + col0 + + ( - + col2 ) FROM tab2
----
-128
-64
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( + col1 * 99 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * 66 * + col2 + 47 ) <> col1 * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 + - col2 ) <= ( NULL )
----

query I rowsort
SELECT 63 AS col2 FROM tab1 WHERE ( - 31 ) NOT IN ( col0 )
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 + col0 col2 FROM tab2
----
58
76
87

query I rowsort
SELECT col2 * - col1 + + 18 * 59 AS col0 FROM tab1 WHERE - ( col1 ) NOT IN ( + col2 )
----
-2134
-282
767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT ALL + + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col2 * - col0 NOT BETWEEN - col0 AND + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col2 * - col0 NOT BETWEEN - col0 AND + col0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL - + 54 * - ( - MIN( DISTINCT - ( - 20 ) ) ) AS col2 FROM tab2 AS cor0
----
-1080

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL - + 54 * - ( - MIN ( DISTINCT - ( - 20 ) ) ) AS col2 FROM tab2 AS cor0
----
-1080

query I rowsort
SELECT DISTINCT + col1 * - + col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + - col2 + col1 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-7920
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + - col2 + col1 * + col0
----
0

query I rowsort
SELECT + 7 * col0 * + col0 FROM tab1 cor0
----
18207
50575
57967

query II rowsort
SELECT DISTINCT col1 * + col2, + 9 AS col1 FROM tab0 AS cor0
----
210
9
3807
9
99
9

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab2 WHERE NOT NULL < + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col2 + 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL + SUM( DISTINCT + ( 0 ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL + SUM ( DISTINCT + ( 0 ) ) AS col1 FROM tab1
----
0

query I rowsort
SELECT + col0 + - 41 FROM tab2
----
23
34
5

query I rowsort
SELECT 34 * - col1 + + col1 AS col1 FROM tab0
----
-2673
-33
-693

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 93 + - 67 AS col2 FROM tab2
----
-160

query I rowsort
SELECT - 98 * col0 + col1 AS col0 FROM tab2
----
-4457
-6195
-7283

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE col1 BETWEEN - col2 AND NULL
----

query II rowsort
SELECT - col1 AS col0, - col2 + - 61 - + - col1 * + col2 FROM tab0 AS cor0
----
-1
-61
-21
139
-81
3699

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT - 19 + ( 32 ) + + COUNT( * ) + 42 * 93 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3928

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7934
SELECT - 19 + ( 32 ) + + COUNT ( * ) + 42 * 93 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3928

query I rowsort
SELECT + - 87 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + - col2 col1 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7937
SELECT - 4 DIV - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7937
SELECT - 4 / - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - 47 + 23 ) IS NULL
----

query I rowsort
SELECT 22 + - col0 * + - col1 FROM tab2 AS cor0
----
2368
4950
5047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT ALL + ( + col0 ) * col2 - - CAST( NULL AS SIGNED ) + col1 * - col2 / + col0 + - col2 + + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + ( + col0 ) * col2 - - CAST ( NULL AS INTEGER ) + col1 * - col2 / + col0 + - col2 + + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 54 + col1 * - col1 BETWEEN ( - ( + col1 ) * + col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - 69 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT 71 * - - COUNT( * ) AS col1 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT 71 * - - COUNT ( * ) AS col1 FROM tab0
----
213

query III rowsort
SELECT * FROM tab0 WHERE ( - + col1 * - col0 + ( ( + 74 ) ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7946
SELECT ALL CAST( NULL AS DECIMAL ) col0, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7946
SELECT ALL CAST ( NULL AS REAL ) col0, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7947
SELECT ( + + CAST( NULL AS DECIMAL ) ) * 11 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT ( + + CAST ( NULL AS REAL ) ) * 11 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7948
SELECT CAST( + + 71 AS SIGNED ) DIV - col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7948
SELECT CAST ( + + 71 AS INTEGER ) / - col2 AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL - ( - + col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT ( + col1 ) + - 61 - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col2 * col2 / col0 * + col1 ) AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col0 IS NULL
----

query II rowsort
SELECT ALL + col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT - + 82 * + col1 * - 13 - + 88 AS col2 FROM tab0 AS cor0
----
22298
86258
978

query I rowsort
SELECT DISTINCT + - 88 * - + 36 FROM tab0 cor0
----
3168

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT ALL - 49 DIV - col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL - 49 / - col2 FROM tab2
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT DISTINCT CAST( + 27 AS SIGNED ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT CAST ( + 27 AS INTEGER ) FROM tab2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT ALL col1 DIV + - col0 AS col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL col1 / + - col0 AS col1 FROM tab0
----
-5
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, + 51 AS col1 FROM tab1 cor0
----
51
51
85
51
91
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL - + MIN( ALL - ( 78 ) ) AS col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL - + MIN ( ALL - ( 78 ) ) AS col2 FROM tab0 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 * + 32 * + 53 col2 FROM tab1 AS cor0
----
-3392
-3392
-3392

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - col0 <= - + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL - ( - ( - COUNT( * ) ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL - ( - ( - COUNT ( * ) ) ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - col0 * + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-2615
-7230
-8328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + col2 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + + 63 FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT ALL - col0 DIV col2 * + col2 AS col2 FROM tab0 AS cor0
----
-80
0
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL - col0 / col2 * + col2 AS col2 FROM tab0 AS cor0
----
-80
0
0

query I rowsort
SELECT ( + 28 ) * - col0 AS col2 FROM tab0
----
-2436
-2716
-420

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - 0 / - 30 / + col2 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL MAX( 2 ) AS col0 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL MAX ( 2 ) AS col0 FROM tab2
----
2

query I rowsort
SELECT ALL + col1 * - col2 + + 53 FROM tab1 WHERE NOT NULL <> 47
----

query I rowsort
SELECT ALL - + 54 * - col0 + col2 - + 36 FROM tab1 AS cor0
----
2814
4613
4946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 88 * 97 col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7975
SELECT DISTINCT - ( + ( + + 26 ) ) - - CAST( - COUNT( * ) AS SIGNED ) - + 28 - + 22 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT - ( + ( + + 26 ) ) - - CAST ( - COUNT ( * ) AS INTEGER ) - + 28 - + 22 FROM tab1
----
-79

query II rowsort
SELECT col2, - 96 AS col1 FROM tab1
----
59
-96
68
-96
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7977
SELECT ALL col0 + - CAST( - col2 AS SIGNED ), col1 + + - col2 AS col1 FROM tab0 AS cor0
----
196
-98
62
34
97
11

skipif mysql # not compatible
query II rowsort label-7977
SELECT ALL col0 + - CAST ( - col2 AS INTEGER ), col1 + + - col2 AS col1 FROM tab0 AS cor0
----
196
-98
62
34
97
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT ALL - col1 + + col1 DIV + 89 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL - col1 + + col1 / + 89 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - 85
----

query I rowsort
SELECT DISTINCT 66 + - col2 AS col2 FROM tab1 AS cor0
----
-2
-30
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL - COUNT( * ) - - - 1 + + 59 AS col2 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL - COUNT ( * ) - - - 1 + + 59 AS col2 FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT 87 + + 5 - - + MIN( + 63 ) AS col2 FROM tab0 cor0 WHERE - col1 IN ( - - 94 * - col1 + col2 * + col0 + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT 87 + + 5 - - + MIN ( + 63 ) AS col2 FROM tab0 cor0 WHERE - col1 IN ( - - 94 * - col1 + col2 * + col0 + + col2 )
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE + col0 * + col2 NOT IN ( - + col1 )
----
10
47
99

query I rowsort
SELECT ALL - col1 + - 43 + - col1 AS col1 FROM tab0 AS cor0
----
-205
-45
-85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 = - 8
----

query I rowsort
SELECT ALL - 26 * - 20 FROM tab2
----
520
520
520

query I rowsort
SELECT DISTINCT + 20 * - - col0 + + col2 FROM tab0 AS cor0
----
1750
2039
347

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 <= + col0
----

query I rowsort
SELECT - 17 * col1 * - - col2 AS col2 FROM tab1 AS cor0
----
-22848
-5015
-54332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - 29 + 87 / col0 * + col0 col1, col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col2 + - + 96
----

query I rowsort
SELECT - 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7993
SELECT ALL - col1, col2 * 75 DIV - 5 col1 FROM tab0 AS cor0
----
-1
-1485
-21
-150
-81
-705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7993
SELECT ALL - col1, col2 * 75 / - 5 col1 FROM tab0 AS cor0
----
-1
-1485
-21
-150
-81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL 78 * + - MAX( + 98 ) + - 44 FROM tab2 AS cor0
----
-7688

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL 78 * + - MAX ( + 98 ) + - 44 FROM tab2 AS cor0
----
-7688

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7995
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + CAST( NULL AS SIGNED ) + - col0 + + col1 + col2 * col0
----

skipif mysql # not compatible
query III rowsort label-7995
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + CAST ( NULL AS INTEGER ) + - col0 + + col1 + col2 * col0
----

query I rowsort
SELECT DISTINCT + ( + col2 ) * - + 89 FROM tab1 AS cor0
----
-5251
-6052
-8544

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT + 57 * + - COUNT( * ) FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7998
SELECT + 57 * + - COUNT ( * ) FROM tab1 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-7999
SELECT DISTINCT COUNT( * ) * + - 67 + - COUNT( * ) AS col0, - ( - COUNT( * ) ) FROM tab1 AS cor0
----
-204
3

skipif mysql # not compatible
query II rowsort label-7999
SELECT DISTINCT COUNT ( * ) * + - 67 + - COUNT ( * ) AS col0, - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-204
3

query I rowsort
SELECT col2 * - + col2 AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * col2 IN ( 91, 23, + + col0 )
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col1 * col2 * col1 + - + col0 * - 61 * - - col1 * - col0 FROM tab0 AS cor0
----
-573850
-803358
-9691479

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT DISTINCT col2 DIV + - col0 * - + 30 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT col2 / + - col0 * - + 30 AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL - COUNT( DISTINCT + 7 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL - COUNT ( DISTINCT + 7 ) FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8005
SELECT ALL - col1 + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL - col1 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT * FROM tab1 WHERE - 56 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT DISTINCT col0 + CAST( col0 AS SIGNED ) FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT col0 + CAST ( col0 AS INTEGER ) FROM tab1
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 + - col1 col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * - - col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT DISTINCT - col1 + - col0 + 48 * 17 DIV + col0 AS col2 FROM tab2
----
-129
-132
-80

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT - col1 + - col0 + 48 * 17 / + col0 AS col2 FROM tab2
----
-129
-132
-80

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT - 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * ( - ( col0 ) ) + + 26 FROM tab1 AS cor0
----
4922
5041
6214

query II rowsort
SELECT col2 + - + col1 * + col1, - col2 AS col0 FROM tab1 cor0
----
-100
-96
-2141
-68
34
-59

query I rowsort
SELECT ALL 17 AS col2 FROM tab2 AS cor0 WHERE - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8015
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - col0 + - col1 / - - col0 + 21 >= col1
----

skipif mysql # not compatible
query III rowsort label-8015
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - col0 + - col1 / - - col0 + 21 >= col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 71 * - ( 34 ) + - col1 IS NULL
----

query II rowsort
SELECT ALL col1, ( col2 ) AS col1 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT + 74 AS col2, - col1 AS col2 FROM tab1
----
74
-14
74
-47
74
-5

query I rowsort
SELECT + 10 * + - col1 * - + col0 FROM tab1
----
4250
42770
7140

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 53 = - col0 / - col2 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col2 FROM tab2 cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT DISTINCT - MAX( DISTINCT - 67 ) AS col1 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT - MAX ( DISTINCT - 67 ) AS col1 FROM tab1 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8023
SELECT ALL + 55 + + col0, 87 + - col0 * - + CAST( - ( + - col0 ) AS SIGNED ) AS col1 FROM tab2
----
101
2203
119
4183
130
5712

skipif mysql # not compatible
query II rowsort label-8023
SELECT ALL + 55 + + col0, 87 + - col0 * - + CAST ( - ( + - col0 ) AS INTEGER ) AS col1 FROM tab2
----
101
2203
119
4183
130
5712

query I rowsort
SELECT ALL col1 * - 14 AS col1 FROM tab2
----
-1078
-714
-938

query I rowsort
SELECT ALL + - 68 + - col1 * col2 + - col1 FROM tab0 AS cor0
----
-168
-299
-3956

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 89 / + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( + 16 ) * - col2 * + col0 + - + 37 FROM tab2 AS cor0 WHERE NOT ( NOT - 40 NOT BETWEEN NULL AND col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( 56 + - ( col0 ), 56 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 48 + - col2 AS col1 FROM tab2 AS cor0
----
-106
-71
-88

query II rowsort
SELECT + 31 * + col2 AS col0, col1 FROM tab2 AS cor0
----
1240
77
1798
67
713
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8031
SELECT + - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE 88 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT col0 * + + col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query II rowsort
SELECT 41 * + + col2 * - - col1 AS col2, - 53 AS col0 FROM tab2
----
126280
-53
159326
-53
48093
-53

query I rowsort
SELECT + 15 * + + 86 FROM tab0
----
1290
1290
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT - SUM( - + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8036
SELECT - SUM ( - + col0 ) FROM tab2
----
185

query I rowsort
SELECT ALL + col1 * - 90 * + + 75 FROM tab0
----
-141750
-546750
-6750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 72 col1 FROM tab2 WHERE - 35 * col0 + - 37 >= + 21
----

query III rowsort
SELECT * FROM tab2 WHERE + - 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query III rowsort
SELECT * FROM tab1 WHERE + - ( + col2 ) >= col0
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 23 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8043
SELECT ALL 73 DIV + col0 AS col1 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL 73 / + col0 AS col1 FROM tab0
----
0
0
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8044
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col2 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8044
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col2 col2 FROM tab2
----
NULL

query I rowsort
SELECT 13 * - 84 FROM tab0 AS cor0
----
-1092
-1092
-1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8046
SELECT - - col2 / + col2 + + ( 40 ) + + col0 * + col0 * + 31 - - ( 83 ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT - - col2 / + col2 + + ( 40 ) + + col0 * + col0 * + 31 - - ( 83 ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2, - 48 AS col0 FROM tab1 AS cor0
----
59
-48
68
-48
96
-48

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT - COUNT( DISTINCT col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8049
SELECT - COUNT ( DISTINCT col0 ) FROM tab1 cor0
----
-3

query II rowsort
SELECT ALL - - col2, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT 98 FROM tab2 cor0 WHERE - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL + COUNT( col2 ) * + 2 AS col0 FROM tab2 AS cor0 WHERE + 21 - - col2 IN ( 57 * + col0, - col0 + - 48, - col1 * + col2 + + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL + COUNT ( col2 ) * + 2 AS col0 FROM tab2 AS cor0 WHERE + 21 - - col2 IN ( 57 * + col0, - col0 + - 48, - col1 * + col2 + + - col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + 56 * + + col2 + - col1 FROM tab1 WHERE NOT - col1 - + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * 6 FROM tab0 AS cor0
----
522
582
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + col1 col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT - 85 AS col2 FROM tab1 WHERE NOT NULL = + + col0
----

query I rowsort
SELECT ALL 97 * - - col0 * col0 + + 53 FROM tab0
----
21878
734246
912726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE 42 BETWEEN + col2 AND col1 + + 13
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8059
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE 42 BETWEEN + col2 AND col1 + + 13
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8060
SELECT DISTINCT + ( + CAST( - - COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT + ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT - MIN( DISTINCT - - ( col2 ) ) + + + 5 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8061
SELECT - MIN ( DISTINCT - - ( col2 ) ) + + + 5 FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8062
SELECT - ( + 20 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8062
SELECT - ( + 20 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 83 ) col0 FROM tab1 AS cor0
----
-83

query II rowsort
SELECT + col2 + - 64 AS col0, + col2 * 15 + + - col0 + + col1 AS col0 FROM tab1
----
-5
805
32
1403
4
976

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col0 IS NOT NULL )
----

query I rowsort
SELECT ALL 78 * + + col2 FROM tab2
----
1794
3120
4524

query I rowsort
SELECT DISTINCT + 22 * + col1 FROM tab1
----
1034
110
308

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + - 73 + - - col2 + - 92 + + + 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8069
SELECT ( CAST( NULL AS DECIMAL ) ) AS col2, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8069
SELECT ( CAST ( NULL AS REAL ) ) AS col2, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - + 67 AS col1 FROM tab2 cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT DISTINCT COUNT( * ) AS col2, + 17 FROM tab1
----
3
17

skipif mysql # not compatible
query II rowsort label-8071
SELECT DISTINCT COUNT ( * ) AS col2, + 17 FROM tab1
----
3
17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 56 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL SUM( ALL - - col0 ) col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8073
SELECT ALL SUM ( ALL - - col0 ) col2 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT 83 + + + 50 + - 77 * + MAX( 81 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + + 36 + + - col1 * col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT 83 + + + 50 + - 77 * + MAX ( 81 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + + 36 + + - col1 * col2 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT MAX( col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8075
SELECT MAX ( col2 ) col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8076
SELECT ALL MIN( DISTINCT + col2 ) * + COUNT( * ) + - 8 AS col1, - COUNT( * ) FROM tab2
----
61
-3

skipif mysql # not compatible
query II rowsort label-8076
SELECT ALL MIN ( DISTINCT + col2 ) * + COUNT ( * ) + - 8 AS col1, - COUNT ( * ) FROM tab2
----
61
-3

query II rowsort
SELECT col1, - 63 FROM tab0
----
1
-63
21
-63
81
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT DISTINCT col1 DIV + col0 + - + 10 FROM tab1 WHERE + col0 >= + + col1
----
-10

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT col1 / + col0 + - + 10 FROM tab1 WHERE + col0 >= + + col1
----
-10

query I rowsort
SELECT ALL + 88 * + col2 FROM tab2
----
2024
3520
5104

onlyif mysql # DIV for integer division: 
query I rowsort label-8080
SELECT ALL - col2 DIV - col0 col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8080
SELECT ALL - col2 / - col0 col1 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 21 < - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, 27 * col0 FROM tab1
----
51
1377
85
2295
91
2457

query I rowsort
SELECT 20 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
20
20
20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT COUNT( ALL col0 ) + 20 AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-8085
SELECT COUNT ( ALL col0 ) + 20 AS col0 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL col1 * + - col1 * col2 + - 71 FROM tab2
----
-237231
-260433
-59894

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col2 - - 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT COUNT( DISTINCT + + 63 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 81 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-8088
SELECT COUNT ( DISTINCT + + 63 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 81 IS NOT NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8089
SELECT ALL * FROM tab2 WHERE - col2 * - col0 + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8089
SELECT ALL * FROM tab2 WHERE - col2 * - col0 + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8090
SELECT - + MIN( col2 ) AS col2, 37 AS col0 FROM tab0 AS cor0
----
-10
37

skipif mysql # not compatible
query II rowsort label-8090
SELECT - + MIN ( col2 ) AS col2, 37 AS col0 FROM tab0 AS cor0
----
-10
37

query I rowsort
SELECT ALL - + col0 * + - col2 + - col0 + - col0 AS col2 FROM tab1 AS cor0
----
4794
4845
6006

query I rowsort
SELECT ALL + - col2 + - 85 FROM tab1 AS cor0
----
-144
-153
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT DISTINCT - - MAX( DISTINCT col0 ) - - + COUNT( * ) * 52 FROM tab0 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT - - MAX ( DISTINCT col0 ) - - + COUNT ( * ) * 52 FROM tab0 AS cor0
----
253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT COUNT( * ) - CAST( NULL AS SIGNED ) * - COUNT( * ) + - 44 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 44 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT + MAX( DISTINCT + 42 ) AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT + MAX ( DISTINCT + 42 ) AS col0 FROM tab1
----
42

query I rowsort
SELECT ALL 43 * - col0 AS col0 FROM tab0
----
-3741
-4171
-645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT CAST( NULL AS SIGNED ) - + - 34 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT CAST ( NULL AS INTEGER ) - + - 34 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT 61 * + COUNT( * ) AS col1 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT 61 * + COUNT ( * ) AS col1 FROM tab0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8099
SELECT ALL - CAST( 1 AS SIGNED ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL - CAST ( 1 AS INTEGER ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + + 39 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 30 * + 53 AS col0 FROM tab1 AS cor0
----
1590
1590
1590

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT 91 * - COUNT( * ) * COUNT( * ) AS col1 FROM tab1 cor0 WHERE ( - + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT 91 * - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 cor0 WHERE ( - + col1 ) IS NULL
----
0

query I rowsort
SELECT ( - - col2 ) AS col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT + - 36 AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8105
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8105
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT - - COUNT( * ) * COUNT( * ) + + COUNT( * ) col1 FROM tab1 cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8106
SELECT - - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) col1 FROM tab1 cor0
----
12

query I rowsort
SELECT + - 79 AS col0 FROM tab0 cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT - col1 * - 95 FROM tab2 AS cor0
----
4845
6365
7315

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE 97 IS NULL
----

query I rowsort
SELECT ALL col1 * + + 58 FROM tab2 AS cor0
----
2958
3886
4466

query I rowsort
SELECT ALL ( + - col1 ) * - col1 AS col1 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT + 77 * + 33 FROM tab2 AS cor0
----
2541

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT DISTINCT - col0 DIV - - 99 + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT - col0 / - - 99 + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL ( - col1 ) FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - - col0 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 30 + - - 70 col0 FROM tab2
----
-1310
-1850
-2180

query I rowsort
SELECT DISTINCT + col2 * col2 + + col2 + + 94 AS col2 FROM tab0
----
204
2350
9994

query II rowsort
SELECT DISTINCT + 55 * + col0 * + col2 + + ( + col2 ), + 40 * + + col0 AS col0 FROM tab2 AS cor0
----
140840
2560
239308
3000
58213
1840

onlyif mysql # DIV for integer division: 
query I rowsort label-8119
SELECT + 19 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8119
SELECT + 19 / col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 99 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 61 * - ( col1 ) + + - col0 + + 74 AS col2 FROM tab1
----
-2884
-316
-831

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > col1
----

query I rowsort
SELECT DISTINCT col0 + 24 AS col1 FROM tab1 cor0
----
109
115
75

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE col1 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> NULL OR NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 - - + col1 * 50 AS col2 FROM tab0
----
1071
4131
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL - COUNT( * ) - COUNT( ALL + - col2 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - COUNT ( * ) - COUNT ( ALL + - col2 ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT DISTINCT 52 + + COUNT( * ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT 52 + + COUNT ( * ) FROM tab1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8130
SELECT - 81 AS col2, + 46 + - COUNT( + col1 ) AS col1 FROM tab1 WHERE NULL NOT IN ( + - CAST( NULL AS SIGNED ) + 94, - ( - col0 ) * col1 + + 46 + - col1 + + col2, - 16 )
----
-81
46

skipif mysql # not compatible
query II rowsort label-8130
SELECT - 81 AS col2, + 46 + - COUNT ( + col1 ) AS col1 FROM tab1 WHERE NULL NOT IN ( + - CAST ( NULL AS INTEGER ) + 94, - ( - col0 ) * col1 + + 46 + - col1 + + col2, - 16 )
----
-81
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 WHERE 78 + - - col0 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8131
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 WHERE 78 + - - col0 IS NOT NULL
----
9

query I rowsort
SELECT - 58 * col1 FROM tab0
----
-1218
-4698
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 16 + + col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT + 4 DIV + 29 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8134
SELECT + 4 / + 29 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 + + col2 - - 10 + + + col1 * 78 AS col1 FROM tab2 AS cor0 WHERE col1 * + 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT - MAX( - 18 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
18

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - MAX ( - 18 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col0 col1 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT ALL - COUNT( * ) AS col1, + 55 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
55

skipif mysql # not compatible
query II rowsort label-8138
SELECT ALL - COUNT ( * ) AS col1, + 55 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 55 col0 FROM tab0 AS cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + ( - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8142
SELECT ALL - + 67 * col2 DIV col2 FROM tab1 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL - + 67 * col2 / col2 FROM tab1 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8143
SELECT ALL + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8144
SELECT DISTINCT + 9 * + + MIN( - + CAST( NULL AS SIGNED ) ) / + + ( COUNT( DISTINCT 21 ) ) + AVG ( DISTINCT - - 14 ) + - - MAX( + ( + - col2 ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT + 9 * + + MIN ( - + CAST ( NULL AS INTEGER ) ) / + + ( COUNT ( DISTINCT 21 ) ) + AVG ( DISTINCT - - 14 ) + - - MAX ( + ( + - col2 ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 17 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 - + col0 IS NOT NULL
----

query I rowsort
SELECT - ( - + 73 ) AS col1 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8147
SELECT - 50 DIV + - col2 * + col2 + - col0 col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8147
SELECT - 50 / + - col2 * + col2 + - col0 col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 - col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8149
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) col2, + 38 * - col2 AS col2 FROM tab2
----
NULL
-1520
NULL
-2204
NULL
-874

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8149
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) col2, + 38 * - col2 AS col2 FROM tab2
----
NULL
-1520
NULL
-2204
NULL
-874

query I rowsort
SELECT ALL + col0 * - 34 AS col1 FROM tab1
----
-1734
-2890
-3094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8151
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE - + 87 + CAST( + col2 AS SIGNED ) * + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE - + 87 + CAST ( + col2 AS INTEGER ) * + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col1 ), 48 col2 FROM tab0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT DISTINCT - col0 * - - col1 + - col0 DIV - col1 AS col2 FROM tab2
----
-2346
-4928
-5024

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT - col0 * - - col1 + - col0 / - col1 AS col2 FROM tab2
----
-2346
-4928
-5024

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col0 / - - col1 + - 87 > NULL
----

query I rowsort
SELECT ALL + col0 + - col0 + + col0 + - 82 + - col1 * - col2 FROM tab0 AS cor0
----
114
215
3740

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - + 17 / + + 48 = - 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8157
SELECT - - CAST( - col2 AS SIGNED ) + + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8157
SELECT - - CAST ( - col2 AS INTEGER ) + + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL - + SUM( + - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL - + SUM ( + - col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT + + 95 + - col0 FROM tab2 AS cor0
----
20
31
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + MAX( + + 3 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-8161
SELECT + MAX ( + + 3 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

query II rowsort
SELECT + 41, 97 - + - 20 * - + 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to a06871b69d1f2d76b67570f5b13b608e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8163
SELECT DISTINCT + CAST( - 95 AS SIGNED ) + + 3 * + col2 - - col0 FROM tab1 AS cor0
----
167
200
244

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT + CAST ( - 95 AS INTEGER ) + + 3 * + col2 - - col0 FROM tab1 AS cor0
----
167
200
244

query I rowsort
SELECT DISTINCT - 4 + + col0 FROM tab1 AS cor0
----
47
81
87

query I rowsort
SELECT - col1 * - 88 * - col2 AS col1 FROM tab1 AS cor0
----
-118272
-25960
-281248

query I rowsort
SELECT - col0 - + col0 AS col2 FROM tab1 cor0
----
-102
-170
-182

query I rowsort
SELECT DISTINCT - 36 - col0 FROM tab2 AS cor0
----
-100
-111
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL + 96 + + + ( + MAX( ALL - 9 ) ) AS col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + 96 + + + ( + MAX ( ALL - 9 ) ) AS col2 FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8169
SELECT - 92 * - ( - + 71 ) / SUM( - 41 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT - 92 * - ( - + 71 ) / SUM ( - 41 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL + 40 * + - 38 - - MIN( - + col2 ) FROM tab1
----
-1616

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + 40 * + - 38 - - MIN ( - + col2 ) FROM tab1
----
-1616

query I rowsort
SELECT - col2 - - - col0 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT DISTINCT + SUM( ALL + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT + SUM ( ALL + col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT DISTINCT ( - - 50 ) FROM tab1 WHERE 6 = + + 84
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - 4
----

query I rowsort
SELECT ALL 96 * - col1 AS col1 FROM tab2
----
-4896
-6432
-7392

onlyif mysql # aggregate syntax: 
query II rowsort label-8176
SELECT ALL 65, COUNT( * ) AS col1 FROM tab2
----
65
3

skipif mysql # not compatible
query II rowsort label-8176
SELECT ALL 65, COUNT ( * ) AS col1 FROM tab2
----
65
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8177
SELECT CAST( NULL AS DECIMAL ) * + col1 / - col2 + - 49 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT CAST ( NULL AS REAL ) * + col1 / - col2 + - 49 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8178
SELECT ALL * FROM tab0 WHERE + ( + col2 ) * - col1 * + + CAST( NULL AS SIGNED ) - - 75 <> + col2
----

skipif mysql # not compatible
query III rowsort label-8178
SELECT ALL * FROM tab0 WHERE + ( + col2 ) * - col1 * + + CAST ( NULL AS INTEGER ) - - 75 <> + col2
----

query I rowsort
SELECT + - col1 * col0 - - + col2 + - - ( - + col0 ) * - + ( - + col2 ) * + col1 * col2 * - + col0 AS col0 FROM tab1 cor0
----
125750759
1799688959
335590806

query I rowsort
SELECT - 53 * - - ( - + 99 ) FROM tab2 AS cor0
----
5247
5247
5247

query II rowsort
SELECT + col2 * + col1 AS col1, - col2 FROM tab0 AS cor0
----
210
-10
3807
-47
99
-99

query II rowsort
SELECT DISTINCT - col1 AS col2, 39 FROM tab2
----
-51
39
-67
39
-77
39

query II rowsort
SELECT DISTINCT + 22 AS col2, + col0 AS col2 FROM tab0
----
22
15
22
87
22
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 97 + + 86 / - col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 53 + - 69 AS col2 FROM tab1
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + col1 ) + - - 50 col1, col0 FROM tab1
----
3
91
36
51
45
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT + 97 * + COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8187
SELECT + 97 * + COUNT ( * ) FROM tab0 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT ALL CAST( NULL AS SIGNED ) + - col2 + col1 - 5 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 + col1 - 5 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8189
SELECT ALL ( + - col0 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL ( + - col0 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + 39 + + 87 * - - COUNT( * ) AS col1 FROM tab1
----
300

skipif mysql # not compatible
query I rowsort label-8190
SELECT + 39 + + 87 * - - COUNT ( * ) AS col1 FROM tab1
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8191
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 7 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8193
SELECT ALL 47 + COUNT( * ) + + CAST( MIN( ALL + col0 ) AS SIGNED ) AS col1, + COUNT( * ) * - 98 FROM tab0 AS cor0
----
65
-294

skipif mysql # not compatible
query II rowsort label-8193
SELECT ALL 47 + COUNT ( * ) + + CAST ( MIN ( ALL + col0 ) AS INTEGER ) AS col1, + COUNT ( * ) * - 98 FROM tab0 AS cor0
----
65
-294

query I rowsort
SELECT ALL - col2 * - col2 + + 71 AS col1 FROM tab0 AS cor0
----
171
2280
9872

query I rowsort
SELECT DISTINCT - + col1 * + col1 + + + col1 FROM tab0 AS cor0
----
-420
-6480
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT MIN( ALL + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8197
SELECT MIN ( ALL + col2 ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT COUNT( * ) FROM tab1 WHERE NOT - col1 BETWEEN NULL AND 34
----
0

skipif mysql # not compatible
query I rowsort label-8198
SELECT COUNT ( * ) FROM tab1 WHERE NOT - col1 BETWEEN NULL AND 34
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 92 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, - 79 FROM tab1
----
51
-79
85
-79
91
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT + COUNT( * ) DIV + 40 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT + COUNT ( * ) / + 40 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8203
SELECT ALL + - 32 AS col0, col1 DIV + 82 FROM tab1 AS cor0
----
-32
0
-32
0
-32
0

skipif mysql # not compatible
query II rowsort label-8203
SELECT ALL + - 32 AS col0, col1 / + 82 FROM tab1 AS cor0
----
-32
0
-32
0
-32
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 81 >= ( - + 57 ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 12 AS col0 FROM tab1 WHERE + col1 <> col2 + - - 34 + + col0 / - + col1
----
12
12
12

query I rowsort
SELECT ALL 17 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - 81 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8207
SELECT DISTINCT + - col0 + - CAST( + ( + - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT + - col0 + - CAST ( + ( + - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-37
-44
-80

query II rowsort
SELECT 24 AS col1, 45 AS col0 FROM tab2 AS cor0
----
24
45
24
45
24
45

query II rowsort
SELECT DISTINCT + ( 61 ) AS col1, col2 + - ( - + col1 ) FROM tab2 AS cor0
----
61
117
61
125
61
74

query II rowsort
SELECT col2 AS col0, - col0 FROM tab2 cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL + MIN( + + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + MIN ( + + col2 ) FROM tab1
----
59

query I rowsort
SELECT - col2 * + - col2 AS col1 FROM tab0
----
100
2209
9801

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 = col2
----

query I rowsort
SELECT DISTINCT - + 87 + 76 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - 99 FROM tab0 cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT + ( - 97 ) + + 44 FROM tab0 AS cor0
----
-53
-53
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT ALL CAST( NULL AS SIGNED ) * ( - - 95 ) col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col1 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8217
SELECT ALL CAST ( NULL AS INTEGER ) * ( - - 95 ) col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT DISTINCT + COUNT( * ) * + - 35 AS col2, 58 * - - 28 + 9 - - COUNT( ALL 99 ) AS col1 FROM tab0 cor0
----
-105
1636

skipif mysql # not compatible
query II rowsort label-8218
SELECT DISTINCT + COUNT ( * ) * + - 35 AS col2, 58 * - - 28 + 9 - - COUNT ( ALL 99 ) AS col1 FROM tab0 cor0
----
-105
1636

query I rowsort
SELECT DISTINCT + ( - col1 ) - 43 FROM tab1 AS cor0
----
-48
-57
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT + 28 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8220
SELECT + 28 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
31

query I rowsort
SELECT DISTINCT - col1 * + 70 FROM tab1
----
-3290
-350
-980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8222
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 88 * + col1 AS col0 FROM tab0
----
-1848
-7128
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8224
SELECT - CAST( NULL AS DECIMAL ) AS col1, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8224
SELECT - CAST ( NULL AS REAL ) AS col1, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT DISTINCT - - SUM( + - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - - SUM ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT MIN( + col0 ) col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8226
SELECT MIN ( + col0 ) col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + 27 * - col2 AS col0 FROM tab1 AS cor0
----
-1593
-1836
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT DISTINCT 82 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT 82 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
246

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 40 > col2
----
64
77
40
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT DISTINCT + col2 DIV col2 * + 73 * - col2 AS col0 FROM tab2
----
-1679
-2920
-4234

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT + col2 / col2 * + 73 * - col2 AS col0 FROM tab2
----
-1679
-2920
-4234

query II rowsort
SELECT ALL col1 * - col0 AS col0, 86 FROM tab2
----
-2346
86
-4928
86
-5025
86

query III rowsort
SELECT * FROM tab2 WHERE NOT + 15 + - + col0 + + col0 * + + 71 BETWEEN - col1 AND col2 + + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT - 92 AS col1, 26 * - + ( + MIN( - 77 ) ) AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-8233
SELECT - 92 AS col1, 26 * - + ( + MIN ( - 77 ) ) AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
-92
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / - + 34 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT + COUNT( * ) FROM tab0 WHERE NOT col0 * + + 72 + + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8235
SELECT + COUNT ( * ) FROM tab0 WHERE NOT col0 * + + 72 + + col2 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 col1 FROM tab0 AS cor0
----
92
92
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT DISTINCT - - CAST( + + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT - - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8239
SELECT DISTINCT - + MIN( col1 ), 48 AS col2 FROM tab2 AS cor0
----
-51
48

skipif mysql # not compatible
query II rowsort label-8239
SELECT DISTINCT - + MIN ( col1 ), 48 AS col2 FROM tab2 AS cor0
----
-51
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT ALL - 63 DIV + - ( - + col2 ) FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL - 63 / + - ( - + col2 ) FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT - - MAX( col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT - - MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - + 48 FROM tab0 cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL + ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT - col1 < - 32 * col0
----
3

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL + ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT - col1 < - 32 * col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT ALL - CAST( + SUM( DISTINCT + + col1 ) AS SIGNED ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL - CAST ( + SUM ( DISTINCT + + col1 ) AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-585

query I rowsort
SELECT - 13 + + - ( - - 78 ) * + - col2 + - ( + col0 ) FROM tab1 AS cor0 WHERE NULL > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8246
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( 70 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8246
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( 70 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + - col2 - + col0 * - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - col2 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8250
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT DISTINCT MAX( 56 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT MAX ( 56 ) FROM tab1
----
56

query I rowsort
SELECT ALL 32 * - col0 FROM tab1
----
-1632
-2720
-2912

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE - 54 * + col0 IS NULL
----

query I rowsort
SELECT 26 * 48 FROM tab1
----
1248
1248
1248

query I rowsort
SELECT ALL + - 39 AS col0 FROM tab1 WHERE NULL NOT IN ( - col2, col1, col0 * - col1 / col2 )
----

query II rowsort
SELECT - col1, col2 * - col0 AS col2 FROM tab2
----
-51
-1058
-67
-4350
-77
-2560

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT - + col1 * + 9 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - col2 + + - 62 - - - ( + - 69 ) + col1 AND + 4 * - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL + + ( + COUNT( * ) ) - + 66 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL + + ( + COUNT ( * ) ) - + 66 FROM tab1 AS cor0
----
-63

query II rowsort
SELECT col2 - - + 46 * 86 AS col2, + col0 AS col0 FROM tab1
----
4015
85
4024
91
4052
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT - 40 * 80 + COUNT( * ) AS col2 FROM tab0
----
-3197

skipif mysql # not compatible
query I rowsort label-8261
SELECT - 40 * 80 + COUNT ( * ) AS col2 FROM tab0
----
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT ( + MIN( DISTINCT - + col2 ) ) + + - 85 FROM tab0
----
-184

skipif mysql # not compatible
query I rowsort label-8262
SELECT ( + MIN ( DISTINCT - + col2 ) ) + + - 85 FROM tab0
----
-184

query I rowsort
SELECT - - 84 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT + + COUNT( ALL - ( + col0 ) ) * - 90 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8264
SELECT + + COUNT ( ALL - ( + col0 ) ) * - 90 FROM tab2 AS cor0
----
-270

query I rowsort
SELECT ALL - col2 * + + col1 - - 40 AS col2 FROM tab0 cor0
----
-170
-3767
-59

query I rowsort
SELECT - + col0 * - + col0 * col0 FROM tab1 AS cor0
----
132651
614125
753571

query I rowsort
SELECT DISTINCT col2 * - - col1 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col0 AND + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8269
SELECT col2 AS col1, + 87 DIV - + col0 + 23 FROM tab0
----
10
22
47
18
99
23

skipif mysql # not compatible
query II rowsort label-8269
SELECT col2 AS col1, + 87 / - + col0 + 23 FROM tab0
----
10
22
47
18
99
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT DISTINCT + col0 DIV 59 * - + ( + col0 ) FROM tab0
----
-87
-97
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT + col0 / 59 * - + ( + col0 ) FROM tab0
----
-87
-97
0

query I rowsort
SELECT DISTINCT 85 * + col2 * col2 AS col2 FROM tab0
----
187765
833085
8500

query I rowsort
SELECT - 52 * - col0 * col0 AS col0 FROM tab1
----
135252
375700
430612

query I rowsort
SELECT ALL col0 * + 15 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1050
644
896

query I rowsort
SELECT ( - col1 ) AS col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + 5 * - col0 FROM tab1 AS cor0
----
-255
-425
-455

query I rowsort
SELECT + 45 * col2 AS col1 FROM tab0
----
2115
4455
450

query I rowsort
SELECT DISTINCT - 86 * + col0 + col2 FROM tab1 WHERE NULL NOT BETWEEN col2 / col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT COUNT( * ) * 5 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8278
SELECT COUNT ( * ) * 5 FROM tab1
----
15

query I rowsort
SELECT + 86 * col2 AS col0 FROM tab0
----
4042
8514
860

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT COUNT( * ) * 48 AS col2 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-8281
SELECT COUNT ( * ) * 48 AS col2 FROM tab2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT DISTINCT - ( - col0 ) * - ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT - ( - col0 ) * - ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 35 * 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + 73 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT ALL 31 * col2 + - 16 DIV ( + col0 * + ( + 56 ) ) AS col0 FROM tab0
----
1457
3069
310

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL 31 * col2 + - 16 / ( + col0 * + ( + 56 ) ) AS col0 FROM tab0
----
1457
3069
310

query I rowsort
SELECT DISTINCT - 57 * 37 AS col2 FROM tab2
----
-2109

query I rowsort
SELECT ALL ( 39 ) + 27 FROM tab0 WHERE NOT col0 / col0 > ( + col2 )
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT + 25 + COUNT( * ) AS col0 FROM tab0 WHERE 26 IS NOT NULL
----
28

skipif mysql # not compatible
query I rowsort label-8288
SELECT + 25 + COUNT ( * ) AS col0 FROM tab0 WHERE 26 IS NOT NULL
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT - 8 DIV col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8289
SELECT - 8 / col1 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT + COUNT( ALL col0 ) + + 69 AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-8290
SELECT + COUNT ( ALL col0 ) + + 69 AS col0 FROM tab2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8291
SELECT DISTINCT - CAST( + ( 62 ) AS SIGNED ) * SUM( DISTINCT - col0 * - 27 ) col2 FROM tab1
----
-379998

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8291
SELECT DISTINCT - CAST ( + ( 62 ) AS INTEGER ) * SUM ( DISTINCT - col0 * - 27 ) col2 FROM tab1
----
-379998

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL - 13 + COUNT( * ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL - 13 + COUNT ( * ) FROM tab1
----
-10

query I rowsort
SELECT ALL + col1 + - col1 * col0 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT DISTINCT + 14 FROM tab1 WHERE col0 >= + col0
----
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 89 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col2 FROM tab0 WHERE col2 IS NOT NULL
----
12

query I rowsort
SELECT 81 + - 33 AS col0 FROM tab0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT ALL COUNT( * ) * - MAX( - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL COUNT ( * ) * - MAX ( - col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8299
SELECT ALL 76 + 24 DIV COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL 76 + 24 / COUNT ( * ) FROM tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT ALL CAST( 7 AS SIGNED ) + 23 FROM tab2
----
30
30
30

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL CAST ( 7 AS INTEGER ) + 23 FROM tab2
----
30
30
30

query I rowsort
SELECT 3 + 98 AS col2 FROM tab0 AS cor0
----
101
101
101

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( ( + 82 ) ) AND ( NULL )
----

query I rowsort
SELECT col2 + - 1 * 69 FROM tab0 AS cor0
----
-22
-59
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT DISTINCT + 37 - MIN( col1 ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT + 37 - MIN ( col1 ) FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL col2 - - 74 FROM tab0 AS cor0
----
121
173
84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 25 = col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col0 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL + COUNT( * ) - 81 AS col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL + COUNT ( * ) - 81 AS col2 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT 21 * + col0 AS col2 FROM tab2 AS cor0
----
1344
1575
966

query I rowsort
SELECT + 82 * col2 AS col0 FROM tab2 AS cor0
----
1886
3280
4756

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT - + ( - col0 ) DIV + 15 AS col2 FROM tab1 AS cor0
----
3
5
6

skipif mysql # not compatible
query I rowsort label-8311
SELECT - + ( - col0 ) / + 15 AS col2 FROM tab1 AS cor0
----
3
5
6

query I rowsort
SELECT ( - col1 ) * + 85 - - 77 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 77 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 8 col0 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT - 34 DIV col1 col1 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8315
SELECT - 34 / col1 col1 FROM tab1 AS cor0
----
-2
-6
0

query I rowsort
SELECT ALL col1 / - 24 AS col0 FROM tab1 AS cor0 WHERE ( + 83 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE + col1 * + 25 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 * + 25 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col1 FROM tab0 AS cor0 WHERE NOT 42 IN ( col2 )
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL + MAX( DISTINCT col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + MAX ( DISTINCT col0 ) FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 ) BETWEEN NULL AND 24 * 10 + + col2 * + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = 67 * - 33
----

query I rowsort
SELECT col2 * + col1 FROM tab0 WHERE NOT 68 >= - ( col0 )
----

query I rowsort
SELECT col0 * + col0 * + col0 AS col1 FROM tab2
----
262144
421875
97336

onlyif mysql # DIV for integer division: 
query I rowsort label-8324
SELECT - 74 DIV + + col0 - col1 FROM tab2 cor0
----
-52
-67
-78

skipif mysql # not compatible
query I rowsort label-8324
SELECT - 74 / + + col0 - col1 FROM tab2 cor0
----
-52
-67
-78

query I rowsort
SELECT + col0 * - col1 * 68 + + 79 AS col1 FROM tab2 AS cor0
----
-159449
-335025
-341621

query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab1 WHERE NOT ( NOT ( + 68 ) IS NOT NULL )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT DISTINCT + - CAST( + 34 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + - CAST ( + 34 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

query III rowsort
SELECT * FROM tab1 WHERE 31 - 5 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT - 35 * - COUNT( * ) AS col1 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-8329
SELECT - 35 * - COUNT ( * ) AS col1 FROM tab1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT + COUNT( * ) + 71 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
80

skipif mysql # not compatible
query I rowsort label-8330
SELECT + COUNT ( * ) + 71 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
80

query I rowsort
SELECT ALL - 14 * + + col1 + col1 FROM tab2
----
-1001
-663
-871

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT - 21 + + COUNT( * ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-8332
SELECT - 21 + + COUNT ( * ) AS col2 FROM tab0
----
-18

query I rowsort
SELECT + - 87 + - - col2 FROM tab2 AS cor0
----
-29
-47
-64

query I rowsort
SELECT ALL - - col0 + + - 23 AS col0 FROM tab2 AS cor0
----
23
41
52

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + + 27 * col2 + - col2 FROM tab2 AS cor0
----
1040
1508
598

query I rowsort
SELECT DISTINCT - 97 + + col2 + - 36 + - col1 * col0 FROM tab1 AS cor0
----
-4342
-499
-751

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT + - COUNT( * ) + MAX( DISTINCT - ( - ( col0 ) ) ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-8338
SELECT + - COUNT ( * ) + MAX ( DISTINCT - ( - ( col0 ) ) ) FROM tab0 AS cor0
----
94

query I rowsort
SELECT ALL + col1 + + + 47 AS col2 FROM tab2 AS cor0
----
114
124
98

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 77 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT - COUNT( * ) + - 37 + + 9 FROM tab1 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT - COUNT ( * ) + - 37 + + 9 FROM tab1 cor0
----
-31

query I rowsort
SELECT DISTINCT + 10 FROM tab0 AS cor0 WHERE NOT 87 - + col2 IN ( 21 / + col2 )
----
10

query I rowsort
SELECT - + col1 + 98 + col0 AS col1 FROM tab0 AS cor0
----
164
194
32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT - + ( - + COUNT( * ) ) - + 33 AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT - + ( - + COUNT ( * ) ) - + 33 AS col1 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL - col0 + + 20 AS col2 FROM tab0 AS cor0
----
-67
-77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT ALL - COUNT( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL - COUNT ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col0 * - 75 )
----

query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab1 WHERE NOT - col0 NOT BETWEEN + 75 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8350
SELECT CAST( - 83 AS SIGNED ) DIV + col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8350
SELECT CAST ( - 83 AS INTEGER ) / + col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 85 * col0 AS col1 FROM tab0
----
1275
7395
8245

onlyif mysql # DIV for integer division: 
query II rowsort label-8352
SELECT col1 DIV - col0 AS col0, 37 FROM tab2
----
-1
37
-1
37
0
37

skipif mysql # not compatible
query II rowsort label-8352
SELECT col1 / - col0 AS col0, 37 FROM tab2
----
-1
37
-1
37
0
37

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT 34 * + ( COUNT( * ) ) AS col2 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-8354
SELECT 34 * + ( COUNT ( * ) ) AS col2 FROM tab1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT DISTINCT ( COUNT( * ) ) FROM tab2 AS cor0 WHERE ( 24 ) BETWEEN NULL AND ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( 24 ) BETWEEN NULL AND ( - col0 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 50 IN ( - 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8358
SELECT ALL + - ( + COUNT( * ) ) AS col1, + ( + - COUNT( * ) ) * + 44 AS col0 FROM tab0 AS cor0
----
-3
-132

skipif mysql # not compatible
query II rowsort label-8358
SELECT ALL + - ( + COUNT ( * ) ) AS col1, + ( + - COUNT ( * ) ) * + 44 AS col0 FROM tab0 AS cor0
----
-3
-132

query I rowsort
SELECT 61 * + col1 AS col1 FROM tab0
----
1281
4941
61

query I rowsort
SELECT - - 28 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 57, 92 / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT ALL + ( - - CAST( ( - col2 ) AS SIGNED ) ) col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8362
SELECT ALL + ( - - CAST ( ( - col2 ) AS INTEGER ) ) col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 - 68 AND + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 * col2 * col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 43 IS NOT NULL AND NOT ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * 6 FROM tab0 AS cor0
----
522
582
90

query I rowsort
SELECT ALL ( - + col0 ) FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT - 11 * - - 68 FROM tab2, tab0 AS cor0
----
9 values hashing to 7b02e3c05cd8beead6731064c09b4f99

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL COUNT( col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL COUNT ( col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8370
SELECT - COUNT( * ) AS col0, 26 FROM tab1
----
-3
26

skipif mysql # not compatible
query II rowsort label-8370
SELECT - COUNT ( * ) AS col0, 26 FROM tab1
----
-3
26

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 > - - col1 * - col1
----

query I rowsort
SELECT DISTINCT + 67 - + - 28 * - col2 AS col2 FROM tab2 WHERE NULL IN ( - ( + 64 ) )
----

query I rowsort
SELECT 7 * - - col2 AS col0 FROM tab0
----
329
693
70

query I rowsort
SELECT col0 + + col0 * 68 FROM tab2 WHERE NOT col0 <> ( col2 + - col0 )
----

query I rowsort
SELECT DISTINCT + 79 * 30 * + col1 AS col0 FROM tab2
----
120870
158790
182490

query III rowsort
SELECT * FROM tab0 WHERE NOT + 85 + col0 BETWEEN NULL AND - col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8378
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8378
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - + CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 35 <> NULL
----

query I rowsort
SELECT - + col2 + 1 AS col2 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT DISTINCT + 37 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
37

query I rowsort
SELECT ALL col0 + 59 AS col0 FROM tab2
----
105
123
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 77 + - col1 AS col1, col2 * 69 * + + col0 col2 FROM tab0
----
-4
48645
56
60030
76
662607

query I rowsort
SELECT ALL col2 + 68 * - - 26 + - - 9 FROM tab1 AS cor0
----
1836
1845
1873

query I rowsort
SELECT ALL + + col0 - 15 AS col2 FROM tab1 cor0 WHERE NOT col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT + + SUM( + 22 ) AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8386
SELECT + + SUM ( + 22 ) AS col1 FROM tab2 AS cor0
----
66

query II rowsort
SELECT + col2 - col1 AS col1, col1 FROM tab1 cor0
----
21
47
54
5
82
14

query I rowsort
SELECT 58 - col0 FROM tab2 AS cor0
----
-17
-6
12

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <> ( NULL )
----

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1 WHERE NOT col1 * + + col1 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8391
SELECT ALL + ( 93 ) DIV 95 + - COUNT( col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL + ( 93 ) / 95 + - COUNT ( col0 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT ( 43 ) AS col0 FROM tab0
----
43

query I rowsort
SELECT DISTINCT + 46 + - + 82 FROM tab2
----
-36

query I rowsort
SELECT + ( + col2 ) * + col1 + + col1 * - - 7 FROM tab0 AS cor0
----
106
357
4374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8395
SELECT - ( + COUNT( * ) ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8395
SELECT - ( + COUNT ( * ) ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT + - COUNT( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8396
SELECT + - COUNT ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT + col0 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-8397
SELECT + col0 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + AVG ( DISTINCT ( - col2 ) ) FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 ) < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT CAST( - col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8400
SELECT CAST ( - col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL SUM( + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL SUM ( + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8403
SELECT ALL - ( - - COUNT( * ) ) AS col0, + 41 AS col1 FROM tab2 AS cor0
----
-3
41

skipif mysql # not compatible
query II rowsort label-8403
SELECT ALL - ( - - COUNT ( * ) ) AS col0, + 41 AS col1 FROM tab2 AS cor0
----
-3
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8404
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - 97 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8404
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - 97 AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - col0 * - col2 + + col2 * + col1 AND col1 / col2
----

query I rowsort
SELECT ALL 87 + + - col0 AS col1 FROM tab2
----
12
23
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8407
SELECT DISTINCT - 20 DIV - 88 * - ( - ( + 82 ) ) + - COUNT( DISTINCT - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT - 20 / - 88 * - ( - ( + 82 ) ) + - COUNT ( DISTINCT - col0 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT + col2 + - col1 + - - col1 DIV - 71 AS col1 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-8408
SELECT + col2 + - col1 + - - col1 / - 71 AS col1 FROM tab1
----
21
54
82

query I rowsort
SELECT 68 + + 19 AS col1 FROM tab1
----
87
87
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8410
SELECT ALL ( + 24 ) AS col0, + COUNT( * ) FROM tab1 WHERE + 54 = + col0 / 42 * + + col1
----
24
0

skipif mysql # not compatible
query II rowsort label-8410
SELECT ALL ( + 24 ) AS col0, + COUNT ( * ) FROM tab1 WHERE + 54 = + col0 / 42 * + + col1
----
24
0

query I rowsort
SELECT col0 + + col0 FROM tab0 cor0 WHERE + 70 IS NOT NULL
----
174
194
30

query I rowsort
SELECT 14 * col0 FROM tab2
----
1050
644
896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8413
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 / + - CAST( NULL AS SIGNED ) - + - 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8413
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 / + - CAST ( NULL AS INTEGER ) - + - 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8414
SELECT + 9 * + 24 DIV 24 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif mysql # not compatible
query I rowsort label-8414
SELECT + 9 * + 24 / 24 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT - col1 + ( - - col0 ) FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL - + col2 + 42 AS col2 FROM tab1 AS cor0
----
-17
-26
-54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 20 * + 29 / 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - col2 ) + - + ( 85 ) FROM tab2 AS cor0
----
-27
-45
-62

query I rowsort
SELECT DISTINCT ( 45 ) FROM tab0 cor0 WHERE NULL IS NULL
----
45

query II rowsort
SELECT + 63 AS col0, + ( - col2 ) FROM tab1 AS cor0
----
63
-59
63
-68
63
-96

query I rowsort
SELECT ALL col1 * - + 96 FROM tab2
----
-4896
-6432
-7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * + 95 AS col0 FROM tab2
----
4370
6080
7125

query I rowsort
SELECT - col2 * + col0 * + + 63 FROM tab1
----
-308448
-315945
-389844

query I rowsort
SELECT col0 * - - 22 - col2 * + ( 77 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + + col2 * 25 FROM tab2 cor0
----
1000
1450
575

query I rowsort
SELECT - col2 * + col0 - + col2 AS col1 FROM tab2 AS cor0
----
-1081
-2600
-4408

query I rowsort
SELECT - - col2 * + 0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ALL - COUNT( * ) * + 63 AS col0 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL - COUNT ( * ) * + 63 AS col0 FROM tab1 AS cor0
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT COUNT( * ) * - 75 * CAST( 39 AS SIGNED ) col1 FROM tab0 AS cor0
----
-8775

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8431
SELECT COUNT ( * ) * - 75 * CAST ( 39 AS INTEGER ) col1 FROM tab0 AS cor0
----
-8775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT + COUNT( * ) DIV - + 51 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT + COUNT ( * ) / - + 51 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + 47 * COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-8433
SELECT + 47 * COUNT ( * ) FROM tab1 AS cor0
----
141

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 - - ( - 40 ) IS NOT NULL
----

query II rowsort
SELECT + + col0 * + + col2 * + ( - 45 ) * col2 * - col0, - col1 AS col1 FROM tab1 AS cor0
----
1078686720
-14
1131760125
-5
1723110480
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT + 85 * 7 DIV col2 FROM tab1
----
10
6
8

skipif mysql # not compatible
query I rowsort label-8436
SELECT + 85 * 7 / col2 FROM tab1
----
10
6
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT MIN( ALL + col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8437
SELECT MIN ( ALL + col0 ) AS col2 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT DISTINCT - col0 DIV - 71 col2 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8438
SELECT DISTINCT - col0 / - 71 col2 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT col2 + - - col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT + COUNT( + - col2 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8440
SELECT + COUNT ( + - col2 ) col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8441
SELECT ALL + col2 DIV - - col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + col2 / - - col2 AS col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8442
SELECT DISTINCT COUNT( * ) + + SUM( DISTINCT + 41 ) - - ( + COUNT( * ) ) + - 0 DIV + COUNT( * ) AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT COUNT ( * ) + + SUM ( DISTINCT + 41 ) - - ( + COUNT ( * ) ) + - 0 / + COUNT ( * ) AS col2 FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT + MAX( + 5 ) + - 53 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8443
SELECT + MAX ( + 5 ) + - 53 FROM tab2 cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8444
SELECT col2 * + - 49 + - col2 + + - CAST( + - ( + ( 67 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-2283
-433
-4883

skipif mysql # not compatible
query I rowsort label-8444
SELECT col2 * + - 49 + - col2 + + - CAST ( + - ( + ( 67 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-2283
-433
-4883

query I rowsort
SELECT - col0 + col1 + - + col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + col1 + + 80 AS col1 FROM tab2 AS cor0
----
131
147
157

query I rowsort
SELECT DISTINCT + ( - - 68 ) * - 52 FROM tab0 WHERE NOT - - col2 / - 15 IS NULL
----
-3536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 76, 31 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to e2994f56f00912742c8d9e5a4580ffbe

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT MIN( + - 88 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-88

skipif mysql # not compatible
query I rowsort label-8449
SELECT MIN ( + - 88 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-88

query I rowsort
SELECT DISTINCT - 96 + - 31 * - ( - 4 ) * + 21 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT COUNT( * ) - - + 86 * 7 * - 63 AS col1 FROM tab2 AS cor0
----
-37923

skipif mysql # not compatible
query I rowsort label-8451
SELECT COUNT ( * ) - - + 86 * 7 * - 63 AS col1 FROM tab2 AS cor0
----
-37923

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT DISTINCT - + col1 - - + col0 DIV - 59 FROM tab0 AS cor0
----
-2
-22
-81

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT - + col1 - - + col0 / - 59 FROM tab0 AS cor0
----
-2
-22
-81

query I rowsort
SELECT ALL + col2 - - + col0 + - col2 * - + col1 FROM tab0 AS cor0
----
295
307
3869

query I rowsort
SELECT - + col0 - + col2 + col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT MIN( + - 13 ) AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8455
SELECT MIN ( + - 13 ) AS col2 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col0 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - 58 col2 FROM tab2
----
46
-58
64
-58
75
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8458
SELECT DISTINCT - COUNT( * ), - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8458
SELECT DISTINCT - COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 62 * + 69 IS NOT NULL
----

query I rowsort
SELECT col0 * 13 FROM tab2
----
598
832
975

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + 89 * - COUNT( * ) + + 39 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-8461
SELECT + 89 * - COUNT ( * ) + + 39 FROM tab2 AS cor0
----
-228

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( + col1 ) * + 77 + 36 + - col1 * - col2 )
----

query I rowsort
SELECT - 52 AS col1 FROM tab1 AS cor0 WHERE NOT + 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT + SUM( DISTINCT + ( + - ( + col2 ) ) ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8464
SELECT + SUM ( DISTINCT + ( + - ( + col2 ) ) ) col0 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-8465
SELECT DISTINCT + col2 * 66 DIV - + col1 AS col0 FROM tab1 AS cor0
----
-452
-778
-95

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT + col2 * 66 / - + col1 AS col0 FROM tab1 AS cor0
----
-452
-778
-95

query II rowsort
SELECT - 58 * - col0 AS col1, - col2 + - col2 AS col0 FROM tab0 cor0
----
5046
-20
5626
-198
870
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col0 * + - col2 col0 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT + + col2 * + col0 + col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT - 67 + - col0 AS col0 FROM tab2 AS cor0
----
-113
-131
-142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 * col1 * - - col0 col2 FROM tab0 AS cor0
----
3395
42525
63945

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 30 <= NULL
----

query I rowsort
SELECT - col2 * + - col0 + - + 4 * + col1 + - - 54 FROM tab1
----
4894
5049
6054

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 77 col0, 57 AS col2 FROM tab2
----
-77
57
-77
57
-77
57

query II rowsort
SELECT DISTINCT col2, 65 FROM tab2
----
23
65
40
65
58
65

query II rowsort
SELECT DISTINCT col0 * + 92 + + + 57 AS col0, + ( col2 ) AS col2 FROM tab1
----
4749
96
7877
59
8429
68

query I rowsort
SELECT + 68 * + col1 FROM tab0
----
1428
5508
68

query II rowsort
SELECT - col2, 29 AS col0 FROM tab2
----
-23
29
-40
29
-58
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN NULL AND - 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1 + - ( + col2 ) AS col1, + 63 FROM tab0 AS cor0
----
-100
63
-128
63
-31
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT DISTINCT col2 DIV 24 AS col1 FROM tab1 AS cor0
----
2
4

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT col2 / 24 AS col1 FROM tab1 AS cor0
----
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT - + 86 - + COUNT( * ) AS col0 FROM tab0 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT - + 86 - + COUNT ( * ) AS col0 FROM tab0 cor0
----
-89

query I rowsort
SELECT - 37 AS col2 FROM tab2 cor0
----
-37
-37
-37

query I rowsort
SELECT ALL - - ( + + 65 ) AS col1 FROM tab0 AS cor0
----
65
65
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + col0 NOT BETWEEN + col2 AND 75 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8485
SELECT DISTINCT - 76 * - + COUNT( * ) AS col2, ( 51 ) FROM tab1 AS cor0
----
228
51

skipif mysql # not compatible
query II rowsort label-8485
SELECT DISTINCT - 76 * - + COUNT ( * ) AS col2, ( 51 ) FROM tab1 AS cor0
----
228
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8487
SELECT + COUNT( * ), COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-8487
SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT - CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8488
SELECT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8489
SELECT + 19 DIV 14 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8489
SELECT + 19 / 14 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + col1 * + col0 * - col0 AS col1 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT - + 75 AS col2 FROM tab1 AS cor0
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8492
SELECT ALL - CAST( NULL AS DECIMAL ) + + col2 FROM tab1 AS cor0 WHERE NOT ( - ( + - 38 ) ) * - col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - CAST ( NULL AS REAL ) + + col2 FROM tab1 AS cor0 WHERE NOT ( - ( + - 38 ) ) * - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab1 WHERE - col0 IS NOT NULL
----
14
47
5

query I rowsort
SELECT col2 + - ( + col1 ) * 42 AS col2 FROM tab0
----
-3355
-872
57

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + ( + col0 ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8496
SELECT + COUNT( DISTINCT - col2 ) DIV - - COUNT( * ) + 72 AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-8496
SELECT + COUNT ( DISTINCT - col2 ) / - - COUNT ( * ) + 72 AS col0 FROM tab0
----
73

query II rowsort
SELECT DISTINCT col2, + ( - - col0 ) * - 9 FROM tab1
----
59
-765
68
-819
96
-459

query I rowsort
SELECT - col2 + + col2 AS col2 FROM tab0 AS cor0 WHERE + col1 IN ( col1, col0 * + col0 )
----
0
0
0

query I rowsort
SELECT ALL + col1 + col2 * 23 FROM tab2 AS cor0
----
1401
580
997

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - COUNT( + - 35 ) * + ( - ( + + ( - COUNT( * ) ) ) ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8500
SELECT - COUNT ( + - 35 ) * + ( - ( + + ( - COUNT ( * ) ) ) ) FROM tab2 cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8501
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT - - col2 / + col2 * + col1 / - CAST( NULL AS SIGNED ) - + col1 + - col2 * + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT - - col2 / + col2 * + col1 / - CAST ( NULL AS INTEGER ) - + col1 + - col2 * + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT - - col2 * col0 DIV + + col0 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8503
SELECT - - col2 * col0 / + + col0 AS col0 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT + col2 * col2 AS col1, + ( col1 ) AS col2 FROM tab0
----
100
21
2209
81
9801
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL - COUNT( + col0 ) FROM tab2 WHERE NOT - + col1 < - 92
----
-3

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL - COUNT ( + col0 ) FROM tab2 WHERE NOT - + col1 < - 92
----
-3

query I rowsort
SELECT ALL 73 + 59 AS col2 FROM tab1
----
132
132
132

query I rowsort
SELECT col1 * + - col1 - 37 FROM tab0
----
-38
-478
-6598

query I rowsort
SELECT DISTINCT - 13 * - + col0 * + col1 AS col2 FROM tab2
----
30498
64064
65325

query II rowsort
SELECT ALL - col2 + + 1 AS col2, - col1 + - col2 AS col2 FROM tab1
----
-58
-64
-67
-115
-95
-110

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 IN ( - col2 + + col0, col0 )
----
46
51
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 > + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT + + MAX( col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8512
SELECT + + MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT ALL - ( - + CAST( - - 75 AS SIGNED ) ) FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - ( - + CAST ( - - 75 AS INTEGER ) ) FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT - SUM( - + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8514
SELECT - SUM ( - + col0 ) FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-2

query I rowsort
SELECT + col1 * col1 * - + ( col2 ) AS col0 FROM tab2
----
-237160
-260362
-59823

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 86 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + + 56 AND col0
----
75
67
58

query II rowsort
SELECT DISTINCT col2 AS col0, 88 FROM tab1 AS cor0
----
59
88
68
88
96
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT + 93 DIV - 20 + + 13 * + - col2 FROM tab2 cor0
----
-303
-524
-758

skipif mysql # not compatible
query I rowsort label-8520
SELECT + 93 / - 20 + + 13 * + - col2 FROM tab2 cor0
----
-303
-524
-758

query II rowsort
SELECT + + col0 AS col2, col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT + CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT + CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col2, + col2 - col2 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2 AS col2, col2 * + col1 FROM tab1 AS cor0
----
-59
295
-68
3196
-96
1344

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 14
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 + col2 <= + col0 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 2 col2 FROM tab0
----
174
194
30

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT + col2 * col2 + - - col1 FROM tab2 AS cor0
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT + 29 * + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8531
SELECT + 29 * + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT MAX( + 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-8532
SELECT MAX ( + 7 ) FROM tab1
----
7

query I rowsort
SELECT - - ( - 56 ) * - + col0 + + 46 - - col0 * - 83 AS col0 FROM tab2 AS cor0
----
-1196
-1682
-1979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT - - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-8534
SELECT - - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE ( NULL ) > NULL
----

query II rowsort
SELECT ALL + col2 * col1, + col0 FROM tab2
----
1173
46
3080
64
3886
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT ALL CAST( col1 AS SIGNED ) * col1 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL CAST ( col1 AS INTEGER ) * col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT col2 * + + 91 FROM tab2
----
2093
3640
5278

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT ALL - col1 DIV - 72 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL - col1 / - 72 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8539
SELECT ( + col1 ) + - + CAST( - 24 AS SIGNED ) DIV + - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
1
19
81

skipif mysql # not compatible
query I rowsort label-8539
SELECT ( + col1 ) + - + CAST ( - 24 AS INTEGER ) / + - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
1
19
81

query I rowsort
SELECT ALL col1 + - + col2 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT + col1 + + col2 - - - col2 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - 10 - + - col0 FROM tab2 AS cor0
----
36
54
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - col0 + - 49 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 63 col1 FROM tab0
----
5481
6111
945

query I rowsort
SELECT ALL + 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col2 + - - col2 - col1 + col1 AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) = 57 / + col0 + - - 16 + + 69 )
----

query I rowsort
SELECT + 7 * + - col1 * + col2 AS col2 FROM tab2
----
-21560
-27202
-8211

query I rowsort
SELECT DISTINCT 61 * - 42 AS col0 FROM tab2
----
-2562

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT ALL MIN( + col2 ) col2 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8549
SELECT ALL MIN ( + col2 ) col2 FROM tab0
----
10

query II rowsort
SELECT ALL ( + col2 ) AS col1, + 35 * + - 11 AS col2 FROM tab0 AS cor0
----
10
-385
47
-385
99
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - 12 BETWEEN - col1 + - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - 12 BETWEEN - col1 + - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8552
SELECT col1 DIV - 42 + col2 AS col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-8552
SELECT col1 / - 42 + col2 AS col0 FROM tab2 AS cor0
----
22
39
57

query I rowsort
SELECT DISTINCT ( - - col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL SUM( col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL SUM ( col0 ) AS col2 FROM tab2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT COUNT( - CAST( col2 AS SIGNED ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8555
SELECT COUNT ( - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - - col2 + - col0 FROM tab1 WHERE NOT - col2 * + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL + col1 + - - 89 AS col2 FROM tab2
----
140
156
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8559
SELECT DISTINCT 59 DIV + MIN( ALL 76 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8559
SELECT DISTINCT 59 / + MIN ( ALL 76 ) col1 FROM tab0
----
0

query I rowsort
SELECT ALL + ( + 87 ) * + + col1 + + 66 * + + col2 AS col2 FROM tab0 AS cor0
----
10149
2487
6621

query I rowsort
SELECT + + ( + col2 ) + + col2 + 43 FROM tab0 AS cor0
----
137
241
63

query I rowsort
SELECT - ( + col1 ) + col0 FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT - 78 + - 11 DIV + - ( - + col2 ) AS col0 FROM tab0
----
-78
-78
-79

skipif mysql # not compatible
query I rowsort label-8563
SELECT - 78 + - 11 / + - ( - + col2 ) AS col0 FROM tab0
----
-78
-78
-79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 63 * - 83 NOT BETWEEN - 41 + - 89 + col1 AND col0 / - 69 - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - ( + col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + col2 - col1 * - col0 AS col2 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8567
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST( + - col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8567
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST ( + - col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 - - ( + + col0 ) * - 60 * 2 FROM tab0
----
-10430
-11541
-1753

query II rowsort
SELECT - - col1 AS col0, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 47 IS NULL
----

query I rowsort
SELECT - 59 AS col0 FROM tab2 cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab1 cor0
----
99
99
99

query II rowsort
SELECT - + col1 AS col1, - col0 * 99 FROM tab0 cor0
----
-1
-9603
-21
-8613
-81
-1485

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + col2 IS NOT NULL
----

query II rowsort
SELECT - col1, - col0 AS col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT - + 43 * 50 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT + + col0 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8577
SELECT ALL + CAST( + 19 AS SIGNED ) FROM tab0 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + CAST ( + 19 AS INTEGER ) FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT col0 * - col0 - + col0 AS col2 FROM tab2 AS cor0
----
-2162
-4160
-5700

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8579
SELECT DISTINCT CAST( - col1 AS SIGNED ) DIV col0 col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8579
SELECT DISTINCT CAST ( - col1 AS INTEGER ) / col0 col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - + SUM( - + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8580
SELECT - + SUM ( - + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT DISTINCT - + col0 DIV - 28 AS col2 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT - + col0 / - 28 AS col2 FROM tab1 AS cor0
----
1
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / col2 * + 60 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + MAX( + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + MAX ( + col0 ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT + ( + MAX( col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT + ( + MAX ( col0 ) ) FROM tab0
----
97

query I rowsort
SELECT ALL + + 33 AS col1 FROM tab2 WHERE NULL IS NULL
----
33
33
33

query I rowsort
SELECT + 98 * col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * - 0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 76 + - col0 * col2 FROM tab1
----
-4820
-4939
-6112

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT + 90 + + COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-8589
SELECT + 90 + + COUNT ( * ) FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT DISTINCT ( + ( - COUNT( * ) ) ) + + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT ( + ( - COUNT ( * ) ) ) + + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT - col1 * + col1 * - col2 FROM tab1
----
1475
150212
18816

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8592
SELECT 97 DIV + 97 AS col1 FROM tab2 cor0 WHERE + col0 NOT BETWEEN NULL AND CAST( + - col0 AS SIGNED )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8592
SELECT 97 / + 97 AS col1 FROM tab2 cor0 WHERE + col0 NOT BETWEEN NULL AND CAST ( + - col0 AS INTEGER )
----
1
1
1

query I rowsort
SELECT DISTINCT - + 13 + col1 AS col2 FROM tab2 AS cor0
----
38
54
64

query I rowsort
SELECT 97 + + + col0 FROM tab1
----
148
182
188

query I rowsort
SELECT - ( + col1 ) + - 14 AS col0 FROM tab1
----
-19
-28
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT + col1 DIV + + ( + col0 ) + - - col1 + + - col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-8596
SELECT + col1 / + + ( + col0 ) + - - col1 + + - col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - 50 + col1 + + + col1 * - col1 * 61 FROM tab1 AS cor0
----
-11992
-134752
-1570

query I rowsort
SELECT DISTINCT + 84 + col0 AS col0 FROM tab2 AS cor0
----
130
148
159

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT DISTINCT col2 DIV + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT col2 / + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-95

query I rowsort
SELECT DISTINCT col2 * col2 - - col2 AS col1 FROM tab2
----
1640
3422
552

query I rowsort
SELECT ALL ( - 69 ) AS col1 FROM tab1
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT + COUNT( DISTINCT + - col1 ) FROM tab1 WHERE 45 - + col0 * + ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8602
SELECT + COUNT ( DISTINCT + - col1 ) FROM tab1 WHERE 45 - + col0 * + ( + col0 ) IS NULL
----
0

query II rowsort
SELECT - 30, - 29 FROM tab2 WHERE - - 32 IS NULL
----

query I rowsort
SELECT DISTINCT + 95 + + 32 * col0 * + - col2 * - + col1 - + + 56 + + ( + - 67 ) FROM tab0
----
1827332
307268
584612

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT MIN( DISTINCT - + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT MIN ( DISTINCT - + col1 ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + 29 - - COUNT( * ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-8606
SELECT + 29 - - COUNT ( * ) FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT COUNT( * ) - - 45 * - + COUNT( * ) AS col2 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-8607
SELECT COUNT ( * ) - - 45 * - + COUNT ( * ) AS col2 FROM tab2
----
-132

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE NOT + - col2 <= - col2 * col2
----
-51
-67
-77

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col0 * + col2 BETWEEN NULL AND ( + 40 + - - col0 * + + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8610
SELECT ALL - + 4, - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4
-9

skipif mysql # not compatible
query II rowsort label-8610
SELECT ALL - + 4, - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4
-9

query I rowsort
SELECT - 50 * col0 AS col2 FROM tab1 AS cor0
----
-2550
-4250
-4550

query I rowsort
SELECT DISTINCT 28 * col0 AS col1 FROM tab1 AS cor0
----
1428
2380
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT DISTINCT + + COUNT( * ) * - MIN( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT + + COUNT ( * ) * - MIN ( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT ALL - col0 * + 17 AS col0 FROM tab0 AS cor0
----
-1479
-1649
-255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, + col0 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT ALL col0 AS col1, + col0 * 54 * col2 * - + col1 AS col2 FROM tab2
----
46
-2913732
64
-10644480
75
-15738300

query II rowsort
SELECT ALL + col0, - col0 + + - col2 AS col1 FROM tab0 AS cor0
----
15
-62
87
-97
97
-196

query I rowsort
SELECT + col0 + + - 45 AS col1 FROM tab2 cor0
----
1
19
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - 27 col0, - col2 FROM tab1
----
24
-96
58
-59
64
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT + MIN( ALL 65 ) + 59 AS col1 FROM tab0
----
124

skipif mysql # not compatible
query I rowsort label-8620
SELECT + MIN ( ALL 65 ) + 59 AS col1 FROM tab0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT + - COUNT( ( col2 ) ) - + SUM( col2 ) AS col2 FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-8621
SELECT + - COUNT ( ( col2 ) ) - + SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
-124

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * - 75 NOT IN ( + - col0 * + col0, 94 * - 64, + ( + col1 ) / - col0 + + 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE 57 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT - - 58 - - + CAST( + - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1
-10
-38

skipif mysql # not compatible
query I rowsort label-8624
SELECT - - 58 - - + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1
-10
-38

query I rowsort
SELECT + 9 - + col1 + + - col1 FROM tab2 AS cor0
----
-125
-145
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT - 12 - - - CAST( NULL AS SIGNED ) - + col1 * - + ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT - 12 - - - CAST ( NULL AS INTEGER ) - + col1 * - + ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 4 AS col2, col2 * - 95 FROM tab0
----
-4
-4465
-4
-9405
-4
-950

query I rowsort
SELECT ALL + 45 AS col0 FROM tab2
----
45
45
45

query II rowsort
SELECT col2, + col0 AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8631
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + col2 AND + 3 + CAST( NULL AS DECIMAL )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-8631
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + col2 AND + 3 + CAST ( NULL AS REAL )
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8632
SELECT - COUNT( * ), - SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
-3
103

skipif mysql # not compatible
query II rowsort label-8632
SELECT - COUNT ( * ), - SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
-3
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0, + col1 col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT DISTINCT - + 79 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - + 5 + + 29 / + 39 / ( + - 26 ) FROM tab2 WHERE NOT + ( + + col2 ) <> 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL + + MAX( 40 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + + MAX ( 40 ) FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 54 * + + ( - col0 ) col0 FROM tab1 AS cor0
----
2754
4590
4914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8639
SELECT ALL MIN( ALL + col2 ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL MIN ( ALL + col2 ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col2 + 83 / + - col0 ) <> NULL
----

query I rowsort
SELECT ALL - 22 + 43 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
2171
3633
3891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT + - CAST( - 99 AS SIGNED ) + + 90 FROM tab0 cor0
----
189
189
189

skipif mysql # not compatible
query I rowsort label-8642
SELECT + - CAST ( - 99 AS INTEGER ) + + 90 FROM tab0 cor0
----
189
189
189

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT + MIN( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT + MIN ( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + 84 + - 65 FROM tab1 AS cor0
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT - col0 DIV - ( - - col2 ) AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8645
SELECT - col0 / - ( - - col2 ) AS col1 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT CAST( - - col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8646
SELECT CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT col2 + col2 * - + col1 AS col0 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT ALL + ( 55 ) + + col0 FROM tab1 AS cor0
----
106
140
146

query I rowsort
SELECT DISTINCT 79 + - col1 FROM tab0 AS cor0
----
-2
58
78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = + col0
----

query I rowsort
SELECT ALL + col1 * - col1 - - col1 FROM tab1 AS cor0
----
-182
-20
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL MIN( + 98 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL MIN ( + 98 ) FROM tab0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8653
SELECT DISTINCT + 79 * + + SUM( - col1 ) DIV + COUNT( * ) AS col2 FROM tab2
----
-5135

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT + 79 * + + SUM ( - col1 ) / + COUNT ( * ) AS col2 FROM tab2
----
-5135

query I rowsort
SELECT DISTINCT 63 + col0 * - - col0 AS col1 FROM tab0
----
288
7632
9472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT ALL + col2 * - CAST( + 97 AS SIGNED ) + + col0 + - 54 AS col2 FROM tab2
----
-2239
-3870
-5605

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL + col2 * - CAST ( + 97 AS INTEGER ) + + col0 + - 54 AS col2 FROM tab2
----
-2239
-3870
-5605

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + + 25 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + + 25 FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE ( 9 + 57 * 8 * - 34 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8657
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( 9 + 57 * 8 * - 34 ) IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 1 + + + 76 - 25 * col2 * + 10 FROM tab1 cor0
----
-14673
-16923
-23923

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE col0 = col0
----
23
40
58

query I rowsort
SELECT - 49 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 25 AS col0, col0 col0 FROM tab2 AS cor0
----
-25
46
-25
64
-25
75

query II rowsort
SELECT 24 * 3 AS col2, - col2 + - 37 AS col1 FROM tab2
----
72
-60
72
-77
72
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT - 55 * COUNT( * ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-8663
SELECT - 55 * COUNT ( * ) FROM tab1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT COUNT( * ) * MAX( DISTINCT 44 ) AS col0 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-8664
SELECT COUNT ( * ) * MAX ( DISTINCT 44 ) AS col0 FROM tab2
----
132

query I rowsort
SELECT DISTINCT col2 * + - 75 FROM tab2
----
-1725
-3000
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8666
SELECT DISTINCT CAST( - 68 AS SIGNED ) AS col2, - col2 * col1 FROM tab0
----
-68
-210
-68
-3807
-68
-99

skipif mysql # not compatible
query II rowsort label-8666
SELECT DISTINCT CAST ( - 68 AS INTEGER ) AS col2, - col2 * col1 FROM tab0
----
-68
-210
-68
-3807
-68
-99

query II rowsort
SELECT DISTINCT + + ( - 88 ), + col0 AS col1 FROM tab2 AS cor0
----
-88
46
-88
64
-88
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT - COUNT( * ) AS col0, AVG ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8668
SELECT - COUNT ( * ) AS col0, AVG ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL + 96 / + col1 - col2 + - 63 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col0 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 83 col1 FROM tab0 AS cor0
----
83
83
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT DISTINCT - col2 DIV + ( - 13 ) + + + 85 FROM tab0
----
85
88
92

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - col2 / + ( - 13 ) + + + 85 FROM tab0
----
85
88
92

query I rowsort
SELECT + col1 * + 32 AS col1 FROM tab2
----
1632
2144
2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8674
SELECT + + COUNT( ALL + - col1 ) * + - MIN( DISTINCT + 79 ) * - 53 / - 61 * + CAST( NULL AS SIGNED ) + 30 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT + + COUNT ( ALL + - col1 ) * + - MIN ( DISTINCT + 79 ) * - 53 / - 61 * + CAST ( NULL AS INTEGER ) + 30 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT + + 19 * COUNT( ALL + col0 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8675
SELECT + + 19 * COUNT ( ALL + col0 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT - ( col2 ) FROM tab2 AS cor0 WHERE col2 IN ( 32 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 4 * - col2 * + col1 * + col0 * - col2 + - - 60 <= - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + 15 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT ALL CAST( 58 AS SIGNED ) col0 FROM tab1 AS cor0
----
58
58
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8679
SELECT ALL CAST ( 58 AS INTEGER ) col0 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT SUM( ALL 95 ) col0 FROM tab1
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8680
SELECT SUM ( ALL 95 ) col0 FROM tab1
----
285

query II rowsort
SELECT 41 * + + col1, + col0 AS col2 FROM tab1
----
1927
91
205
85
574
51

query I rowsort
SELECT ALL + 67 + + 88 AS col1 FROM tab1
----
155
155
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8683
SELECT ALL + COUNT( * ) + CAST( 49 AS SIGNED ) AS col2 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL + COUNT ( * ) + CAST ( 49 AS INTEGER ) AS col2 FROM tab1
----
52

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE - - 8 * + col0 / 32 + - + col1 IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8685
SELECT - 46 * - col0 + - + col2 DIV + col0 FROM tab0 AS cor0
----
4002
4461
687

skipif mysql # not compatible
query I rowsort label-8685
SELECT - 46 * - col0 + - + col2 / + col0 FROM tab0 AS cor0
----
4002
4461
687

query I rowsort
SELECT ALL col1 + col2 FROM tab1 WHERE NOT col1 + - col0 IS NULL
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT + MAX( - 93 ) * - - SUM( DISTINCT - - col1 ) AS col1 FROM tab0
----
-9579

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT + MAX ( - 93 ) * - - SUM ( DISTINCT - - col1 ) AS col1 FROM tab0
----
-9579

query I rowsort
SELECT DISTINCT - 39 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

query I rowsort
SELECT ( - 73 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT + col1 - + - 92 AS col2 FROM tab2 cor0
----
143
159
169

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col0 * col0 * - col2 * + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 0 * col0 / + col2 IS NULL
----

query I rowsort
SELECT + 98 * + col1 FROM tab1 AS cor0
----
1372
4606
490

query II rowsort
SELECT + col0 AS col1, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + COUNT( - - 70 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8695
SELECT + COUNT ( - - 70 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 AS cor0 WHERE col0 <> + - col1 - col1
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 34
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 96 * col0 + - ( + - col1 ) + - ( - 30 ) + - + 98 * col1 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 47 * 87 AS col2 FROM tab1
----
4089
4089
4089

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT DISTINCT COUNT( + 35 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT COUNT ( + 35 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - + 77 AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-77
-77
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8702
SELECT DISTINCT + MAX( ALL + col1 ) DIV + + 74 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT + MAX ( ALL + col1 ) / + + 74 AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8703
SELECT * FROM tab1 WHERE NOT + col1 * col1 * + CAST( NULL AS SIGNED ) * + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8703
SELECT * FROM tab1 WHERE NOT + col1 * col1 * + CAST ( NULL AS INTEGER ) * + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8704
SELECT DISTINCT COUNT( * ) DIV 49 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT COUNT ( * ) / 49 AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, - 87 - - 33 FROM tab2
----
46
-54
64
-54
75
-54

query I rowsort
SELECT + 43 * 61 AS col0 FROM tab1 AS cor0
----
2623
2623
2623

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 9 * + + col2 * col0 IS NULL )
----

query I rowsort
SELECT + - 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT + 41 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - col2 AS col1, + 4 col0 FROM tab0 AS cor0
----
-705
4
-870
4
-9603
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT - + MIN( DISTINCT + ( + + col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8711
SELECT - + MIN ( DISTINCT + ( + + col1 ) ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8712
SELECT + 60 + + + col1 AS col2, - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
111
-46
127
-75
137
-64

skipif mysql # not compatible
query II rowsort label-8712
SELECT + 60 + + + col1 AS col2, - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
111
-46
127
-75
137
-64

query I rowsort
SELECT ALL - col1 + - + col1 - - col0 + - - 60 AS col1 FROM tab1 AS cor0
----
135
57
83

onlyif mysql # aggregate syntax: 
query II rowsort label-8714
SELECT DISTINCT COUNT( * ) + - 73 AS col1, 38 AS col0 FROM tab1 AS cor0
----
-70
38

skipif mysql # not compatible
query II rowsort label-8714
SELECT DISTINCT COUNT ( * ) + - 73 AS col1, 38 AS col0 FROM tab1 AS cor0
----
-70
38

query I rowsort
SELECT - col1 * + + col0 * + - 67 * - col2 FROM tab2
----
-13207040
-19527150
-3615186

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT col2 DIV + + col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8716
SELECT col2 / + + col2 FROM tab1
----
1
1
1

query I rowsort
SELECT - - 62 + + 88 AS col1 FROM tab2 WHERE NULL IS NULL
----
150
150
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT - MIN( ALL ( - col2 ) ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT - MIN ( ALL ( - col2 ) ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ( MAX( DISTINCT - 64 ) ) AS col1 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-8719
SELECT ( MAX ( DISTINCT - 64 ) ) AS col1 FROM tab1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT + SUM( DISTINCT - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8720
SELECT + SUM ( DISTINCT - col2 ) FROM tab2
----
-121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> col0
----

query I rowsort
SELECT + 97 - col1 AS col2 FROM tab1 AS cor0
----
50
83
92

query I rowsort
SELECT ALL col2 + 37 * + col0 AS col2 FROM tab2
----
1725
2408
2833

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN ( 15 ) AND 3 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * 16 AS col0 FROM tab1
----
224
752
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8726
SELECT DISTINCT - col0 DIV - CAST( 28 AS SIGNED ) + col0 * + col2 FROM tab2
----
1059
2562
4352

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT - col0 / - CAST ( 28 AS INTEGER ) + col0 * + col2 FROM tab2
----
1059
2562
4352

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8727
SELECT ALL 88 * + COUNT( * ) AS col0 FROM tab1 WHERE + 40 + CAST( NULL AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL 88 * + COUNT ( * ) AS col0 FROM tab1 WHERE + 40 + CAST ( NULL AS REAL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL SUM( 94 ) FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL SUM ( 94 ) FROM tab1
----
282

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 54 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT - COUNT( * ) col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8730
SELECT - COUNT ( * ) col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT - MAX( DISTINCT - col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8732
SELECT - MAX ( DISTINCT - col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT 97 * COUNT( * ) + + COUNT( ALL - col2 ) col2 FROM tab1
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8733
SELECT 97 * COUNT ( * ) + + COUNT ( ALL - col2 ) col2 FROM tab1
----
294

query I rowsort
SELECT 57 + - col0 AS col0 FROM tab2
----
-18
-7
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 - col1 col2 FROM tab1
----
-40
-7
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT + CAST( NULL AS SIGNED ) + - 99 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( ( col2 ) / - col0 )
----

skipif mysql # not compatible
query I rowsort label-8736
SELECT + CAST ( NULL AS INTEGER ) + - 99 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( ( col2 ) / - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 54 ) col0 FROM tab0
----
54
54
54

query I rowsort
SELECT - 5 + col1 AS col1 FROM tab2
----
46
62
72

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> col1 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8740
SELECT - CAST( NULL AS SIGNED ) - col1 FROM tab1 WHERE NOT + 74 BETWEEN col1 * + col0 AND ( - CAST( col1 AS DECIMAL ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT - CAST ( NULL AS INTEGER ) - col1 FROM tab1 WHERE NOT + 74 BETWEEN col1 * + col0 AND ( - CAST ( col1 AS REAL ) )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT COUNT( ALL - 59 ) + 60 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-8741
SELECT COUNT ( ALL - 59 ) + 60 FROM tab1
----
63

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT col1 + + col1 FROM tab0 WHERE ( - col1 * col2 ) IS NOT NULL
----
162
2
42

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + 13 )
----

query I rowsort
SELECT + 40 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT DISTINCT + COUNT( * ) * 79 AS col0 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT + COUNT ( * ) * 79 AS col0 FROM tab1 AS cor0
----
237

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8747
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * col0 + CAST( NULL AS DECIMAL ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8747
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * col0 + CAST ( NULL AS REAL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 0 + - col2 * + 57 AS col0 FROM tab1
----
-3363
-3876
-5472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col2 FROM tab1 WHERE ( 87 ) = col2 - col0
----

query I rowsort
SELECT ALL - + 26 * col0 + col1 * col2 AS col2 FROM tab0 cor0
----
-2052
-2423
3417

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL - SUM( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL - SUM ( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT - col1 DIV col0 AS col1 FROM tab1 AS cor0 WHERE ( 33 ) <> - col2 DIV - ( + 33 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT - col1 / col0 AS col1 FROM tab1 AS cor0 WHERE ( 33 ) <> - col2 / - ( + 33 )
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 53 * + 45 < - col1 * + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 49 AND - col0 * col0
----

query I rowsort
SELECT 71 AS col1 FROM tab0 AS cor0 WHERE 89 NOT BETWEEN 5 + col2 * - ( - col1 * 4 ) AND NULL
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8756
SELECT ALL * FROM tab1 cor0 WHERE ( ( CAST( NULL AS SIGNED ) ) ) <> col2 + col0
----

skipif mysql # not compatible
query III rowsort label-8756
SELECT ALL * FROM tab1 cor0 WHERE ( ( CAST ( NULL AS INTEGER ) ) ) <> col2 + col0
----

query I rowsort
SELECT DISTINCT - col2 - 62 AS col2 FROM tab1 AS cor0
----
-121
-130
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT COUNT( ALL 44 ) * + 2 AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8758
SELECT COUNT ( ALL 44 ) * + 2 AS col0 FROM tab0 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 62 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT - col1 / col2 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8761
SELECT + - 4 DIV col0 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8761
SELECT + - 4 / col0 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT ALL + - col1 DIV 4 AS col2 FROM tab0 AS cor0
----
-20
-5
0

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + - col1 / 4 AS col2 FROM tab0 AS cor0
----
-20
-5
0

query I rowsort
SELECT - 62 - 59 - - col0 FROM tab0
----
-106
-24
-34

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col2 / + col2 )
----

query I rowsort
SELECT col1 * - + 5 - - 51 AS col2 FROM tab0
----
-354
-54
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT + 47 + col0 + 90 DIV col2 FROM tab0
----
143
144
63

skipif mysql # not compatible
query I rowsort label-8766
SELECT + 47 + col0 + 90 / col2 FROM tab0
----
143
144
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT DISTINCT - MAX( ALL 77 ) AS col1 FROM tab1 WHERE NOT ( - col1 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT - MAX ( ALL 77 ) AS col1 FROM tab1 WHERE NOT ( - col1 ) <= NULL
----
NULL

query I rowsort
SELECT - col2 + - col2 * + col2 FROM tab1
----
-3540
-4692
-9312

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 BETWEEN ( NULL ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 39 * - - col2 + 81 AS col0 FROM tab1 AS cor0
----
-2220
-2571
-3663

query I rowsort
SELECT - + col1 + + - 95 AS col0 FROM tab2 AS cor0
----
-146
-162
-172

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 50 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT + 14 - + SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT + 14 - + SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
135

query I rowsort
SELECT DISTINCT + 44 - + - ( 61 ) FROM tab2 AS cor0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8775
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8775
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8776
SELECT * FROM tab1 WHERE NOT + 45 + - CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8776
SELECT * FROM tab1 WHERE NOT + 45 + - CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - + col0 * - col2
----

query I rowsort
SELECT + ( 92 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - 48 * col1 * col2 AS col0 FROM tab1 AS cor0
----
-14160
-153408
-64512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT - col2 / + 56 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT - col2 / + 56 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / + ( - 81 ) * - 4 NOT BETWEEN NULL AND + col0 + col2 * - col2
----

query I rowsort
SELECT DISTINCT - 64 * + 79 + - 25 * + 14 FROM tab2 AS cor0
----
-5406

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT - + MIN( col0 ) * - 86 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
11868

skipif mysql # not compatible
query I rowsort label-8783
SELECT - + MIN ( col0 ) * - 86 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
11868

query I rowsort
SELECT ( + 59 ) AS col0 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT - 38 * + col2 FROM tab1 AS cor0
----
-2242
-2584
-3648

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 + + col0 * + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 * col1 - - 89 * + col0 col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col0 + col0 ) AND ( - col2 / - col1 )
----

query I rowsort
SELECT ALL - col0 - - 61 AS col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + COUNT( * ) * 88 col1 FROM tab0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8789
SELECT + COUNT ( * ) * 88 col1 FROM tab0
----
264

query I rowsort
SELECT ALL - col2 * - - 39 FROM tab1
----
-2301
-2652
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT - col2 * + col1 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT - col2 * + col1 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - + col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8793
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 66 + - col1 ) BETWEEN - 60 * - col0 AND ( - 77 + - CAST( - 13 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8793
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 66 + - col1 ) BETWEEN - 60 * - col0 AND ( - 77 + - CAST ( - 13 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE - + col1 * - 22 * + + ( col2 ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 44 + + + 66 AS col0 FROM tab0
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT - CAST( NULL AS SIGNED ) + - - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT - CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT COUNT( ALL col2 ) FROM tab1 cor0 WHERE + col2 IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT COUNT ( ALL col2 ) FROM tab1 cor0 WHERE + col2 IN ( + col0 )
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( col1 ) IN ( - col1, + col0 - - 5 * + 94 )
----

query I rowsort
SELECT DISTINCT + col0 - 50 * - col0 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + + col2 - ( - col0 ) + 39 + + col1 AS col0 FROM tab2 AS cor0
----
159
220
239

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL + COUNT( * ) col0 FROM tab0 WHERE NOT + - col1 NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8801
SELECT ALL + COUNT ( * ) col0 FROM tab0 WHERE NOT + - col1 NOT BETWEEN NULL AND - col1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 = + 2 * 81
----

query I rowsort
SELECT ALL col2 + 78 * + col0 FROM tab2 WHERE NOT - + col0 < ( col2 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8804
SELECT col0 * - col2 * CAST( + - col0 AS SIGNED ) FROM tab2
----
163840
326250
48668

skipif mysql # not compatible
query I rowsort label-8804
SELECT col0 * - col2 * CAST ( + - col0 AS INTEGER ) FROM tab2
----
163840
326250
48668

query I rowsort
SELECT - ( 61 ) AS col0 FROM tab0
----
-61
-61
-61

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 86 NOT BETWEEN NULL AND - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 - col2 * + + col1 col0 FROM tab1
----
-1407
-3259
-358

query I rowsort
SELECT ALL + col1 + - - col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8809
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + 71 * CAST( + + 61 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8809
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + 71 * CAST ( + + 61 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 IN ( + + 89 )
----

query I rowsort
SELECT col1 * + - 22 * - 11 FROM tab1
----
11374
1210
3388

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + + - ( ( - + col0 ) ) IS NULL
----

query I rowsort
SELECT + + 0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT + SUM( + - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8814
SELECT + SUM ( + - col1 ) AS col1 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 96 > NULL )
----

query I rowsort
SELECT DISTINCT - ( - 64 ) FROM tab1 AS cor0
----
64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 77 ) < ( col0 * - 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 21 FROM tab2 WHERE NULL < NULL
----

query II rowsort
SELECT + col2 AS col1, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT ALL + 70 AS col1 FROM tab2 WHERE NULL <> - 53
----

query I rowsort
SELECT - + col0 * - 44 + - 71 + + col0 + + 10 * col1 AS col0 FROM tab2 AS cor0
----
2509
3579
3974

query III rowsort
SELECT ALL - - col2 AS col2, - 93 + + + col0 * + + 18 AS col0, - 10 * + col0 FROM tab2 AS cor0
----
9 values hashing to 390ecb5acb1b4cda2df0012d0b0106e3

query II rowsort
SELECT + col0 * - 7 + + - col1 * + 78 AS col0, col2 AS col2 FROM tab2
----
-4300
23
-5751
58
-6454
40

query I rowsort
SELECT ALL 89 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT col2 * 45 DIV col0 AS col2 FROM tab1
----
31
33
84

skipif mysql # not compatible
query I rowsort label-8825
SELECT col2 * 45 / col0 AS col2 FROM tab1
----
31
33
84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 * + col1 / + - col1 + + col1 BETWEEN NULL AND 92 + - col2 )
----

query I rowsort
SELECT + col1 * + 13 + - - 33 * col2 - + + col0 FROM tab1 cor0
----
1927
2764
3299

query I rowsort
SELECT + - col2 - 96 * - - ( + col1 ) + + 8 AS col0 FROM tab2 AS cor0
----
-4911
-6482
-7424

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT - COUNT( * ) + 6 * 64 * 22 FROM tab2 cor0 WHERE NULL IS NULL
----
8445

skipif mysql # not compatible
query I rowsort label-8829
SELECT - COUNT ( * ) + 6 * 64 * 22 FROM tab2 cor0 WHERE NULL IS NULL
----
8445

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT - 55 + + + MIN( + col1 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8830
SELECT - 55 + + + MIN ( + col1 ) FROM tab2
----
-4

query I rowsort
SELECT DISTINCT - col0 * - col2 * + + col0 FROM tab1
----
249696
426275
563108

onlyif mysql # DIV for integer division: 
query I rowsort label-8832
SELECT 46 + + col0 DIV - + ( col1 ) FROM tab0
----
-51
42
46

skipif mysql # not compatible
query I rowsort label-8832
SELECT 46 + + col0 / - + ( col1 ) FROM tab0
----
-51
42
46

query III rowsort
SELECT * FROM tab1 WHERE 10 + - 7 = - - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 8 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8836
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - - 40 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT CAST ( NULL AS REAL ) / - - 40 AS col0 FROM tab1
----
NULL

query II rowsort
SELECT col0 * + ( + col2 ), col0 FROM tab2
----
1058
46
2560
64
4350
75

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NOT 11 <= 19 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8839
SELECT - - COUNT( * ), 44 AS col0 FROM tab1 AS cor0
----
3
44

skipif mysql # not compatible
query II rowsort label-8839
SELECT - - COUNT ( * ), 44 AS col0 FROM tab1 AS cor0
----
3
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 col0 FROM tab0 AS cor0
----
-59
-59
-59

query II rowsort
SELECT + col0, col2 FROM tab0 cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8842
SELECT DISTINCT * FROM tab0 WHERE + + ( - + CAST( NULL AS SIGNED ) ) * - 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8842
SELECT DISTINCT * FROM tab0 WHERE + + ( - + CAST ( NULL AS INTEGER ) ) * - 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 64, col0 AS col2 FROM tab1
----
64
51
64
85
64
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97, col2 col2 FROM tab0
----
97
10
97
47
97
99

query I rowsort
SELECT 63 FROM tab1 WHERE NOT - + 57 + + col0 BETWEEN + col2 + + 22 AND - col2
----
63
63
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8846
SELECT - + 14 DIV + COUNT( * ) + + 83 AS col1 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8846
SELECT - + 14 / + COUNT ( * ) + + 83 AS col1 FROM tab2 AS cor0
----
79

query II rowsort
SELECT DISTINCT col1 AS col1, 51 FROM tab1 cor0
----
14
51
47
51
5
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + ( - COUNT( * ) ) * 20 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8848
SELECT + ( - COUNT ( * ) ) * 20 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + + COUNT( ALL + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8850
SELECT + + COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT - + AVG ( + 17 ) * CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8851
SELECT - + AVG ( + 17 ) * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( - - 93 ) FROM tab2 AS cor0
----
93

query I rowsort
SELECT - col1 + - - 68 + + 49 FROM tab2 AS cor0
----
40
50
66

query II rowsort
SELECT ALL - 96, ( + col1 ) AS col1 FROM tab1 AS cor0
----
-96
14
-96
47
-96
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 60 FROM tab1, tab1 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8857
SELECT DISTINCT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8857
SELECT DISTINCT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8858
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL BETWEEN - ( + 0 ) AND CAST( - 43 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8858
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL BETWEEN - ( + 0 ) AND CAST ( - 43 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT + COUNT( * ) FROM tab1 WHERE NOT CAST( + - 54 AS SIGNED ) * - CAST( + 8 AS SIGNED ) NOT BETWEEN + + ( + ( - CAST( col0 AS SIGNED ) ) ) * + 54 AND - - col2 * + col2 + - CAST( col1 AS SIGNED ) / col0
----
3

skipif mysql # not compatible
query I rowsort label-8859
SELECT + COUNT ( * ) FROM tab1 WHERE NOT CAST ( + - 54 AS INTEGER ) * - CAST ( + 8 AS INTEGER ) NOT BETWEEN + + ( + ( - CAST ( col0 AS INTEGER ) ) ) * + 54 AND - - col2 * + col2 + - CAST ( col1 AS INTEGER ) / col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 * col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 * col2 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT ( - 59 ) + 98 - - col1 + col0 AS col2, 90 * - col0 + + 0 FROM tab2
----
136
-4140
180
-5760
181
-6750

query II rowsort
SELECT col1 + - col1, - 94 - + col0 AS col1 FROM tab1
----
0
-145
0
-179
0
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col2 FROM tab1 cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8864
SELECT ALL + - 91 AS col1, - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 66 IS NOT NULL
----
-91
-3

skipif mysql # not compatible
query II rowsort label-8864
SELECT ALL + - 91 AS col1, - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 66 IS NOT NULL
----
-91
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT MIN( ALL ( col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8865
SELECT MIN ( ALL ( col0 ) ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8866
SELECT + ( + + ( + + CAST( NULL AS DECIMAL ) ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT + ( + + ( + + CAST ( NULL AS REAL ) ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - - col1 - col0 * col2 AS col2 FROM tab2
----
-2419
-4208
-961

onlyif mysql # aggregate syntax: 
query II rowsort label-8868
SELECT + + 28 AS col0, MIN( ALL + + 84 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
28
84

skipif mysql # not compatible
query II rowsort label-8868
SELECT + + 28 AS col0, MIN ( ALL + + 84 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
28
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT + AVG ( + col2 ) * SUM( ALL 54 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT + AVG ( + col2 ) * SUM ( ALL 54 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) + + + 1 + - + ( + + MAX( col2 ) ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8870
SELECT COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) + + + 1 + - + ( + + MAX ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + col0 AS col0 FROM tab1 cor0 WHERE NOT 86 + + col0 IS NOT NULL
----

query II rowsort
SELECT ALL - - ( - - 89 ) - + - col0 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
135
51
153
77
164
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - 99 ) - + col2, col0 col2 FROM tab1 cor0
----
3
51
31
91
40
85

query I rowsort
SELECT ALL col0 + + + col2 AS col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT ALL col2 - - 6 - - 49 FROM tab1 AS cor0
----
114
123
151

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 >= ( - col2 + + - 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 21 - - 81 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL - col1 - - + col2 FROM tab0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col2, + col0 col1 FROM tab0
----
-210
87
-3807
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8881
SELECT * FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) * 71 < ( + 9 + col1 )
----

skipif mysql # not compatible
query III rowsort label-8881
SELECT * FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) * 71 < ( + 9 + col1 )
----

query I rowsort
SELECT ALL col1 * + 92 * - col1 FROM tab1
----
-18032
-203228
-2300

query I rowsort
SELECT col0 * - ( - col0 ) AS col2 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + col1 * + + 13 FROM tab0
----
1053
13
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8885
SELECT ALL + COUNT( * ) DIV 94 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + COUNT ( * ) / 94 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + 14 / - + col0 * + col2 * 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT DISTINCT + col1 DIV - - col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT + col1 / - - col2 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8888
SELECT ALL MAX( + - col0 ) DIV + ( + + 22 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL MAX ( + - col0 ) / + ( + + 22 ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 < 31
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL + MAX( ALL + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL + MAX ( ALL + col0 ) FROM tab0
----
97

query I rowsort
SELECT + col0 * - col2 * - ( - col2 ) AS col1 FROM tab2 cor0
----
-102400
-24334
-252300

onlyif mysql # DIV for integer division: 
query I rowsort label-8892
SELECT - - col0 DIV + 73 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8892
SELECT - - col0 / + 73 AS col1 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND ( + - 24 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col1 FROM tab0 WHERE NULL IS NULL
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT DISTINCT SUM( DISTINCT + - 48 ) + - - 88 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT SUM ( DISTINCT + - 48 ) + - - 88 FROM tab1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT + 99 + - - SUM( col0 ) FROM tab0 WHERE NULL IS NULL
----
298

skipif mysql # not compatible
query I rowsort label-8896
SELECT + 99 + - - SUM ( col0 ) FROM tab0 WHERE NULL IS NULL
----
298

query II rowsort
SELECT + col2 AS col2, col2 + + + 6 FROM tab1
----
59
65
68
74
96
102

query I rowsort
SELECT + col2 + - 83 AS col2 FROM tab0 cor0
----
-36
-73
16

query I rowsort
SELECT col2 * - - col1 + + 62 FROM tab2 cor0
----
1235
3142
3948

query I rowsort
SELECT DISTINCT 76 - - 15 FROM tab0
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IS NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 64 + - col0 FROM tab1 AS cor0
----
-115
-149
-155

query I rowsort
SELECT DISTINCT - 25 * - col1 AS col2 FROM tab0 AS cor0
----
2025
25
525

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + ( + MAX( ALL + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8905
SELECT + ( + MAX ( ALL + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL - col1 AS col2, - 26 AS col2 FROM tab2
----
-51
-26
-67
-26
-77
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8907
SELECT DISTINCT CAST( + ( - ( col2 ) ) AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT CAST ( + ( - ( col2 ) ) AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col2 / col0 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - col0 * 74 FROM tab0
----
-1110
-6438
-7178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT ALL - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + 11
----

query I rowsort
SELECT DISTINCT ( + - col2 ) * - + col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT + + 99 * 28 + - col1 AS col2 FROM tab1 AS cor0
----
2725
2758
2767

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8915
SELECT ALL - - 75 AS col2, - SUM( DISTINCT + + 10 ) DIV + - COUNT( * ) col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8915
SELECT ALL - - 75 AS col2, - SUM ( DISTINCT + + 10 ) / + - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
75
3

query I rowsort
SELECT DISTINCT + col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - col0 - - - col0 + + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL >= NULL )
----

query I rowsort
SELECT + col0 * + - 59 AS col1 FROM tab0 AS cor0
----
-5133
-5723
-885

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col1 - - - ( col1 ) * - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT - + COUNT( * ) * 97 + ( 26 ) AS col2 FROM tab1 AS cor0
----
-265

skipif mysql # not compatible
query I rowsort label-8920
SELECT - + COUNT ( * ) * 97 + ( 26 ) AS col2 FROM tab1 AS cor0
----
-265

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT 39 + + - MIN( col1 ) AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8921
SELECT 39 + + - MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL + - col1 * - col1 * CAST( + 71 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
184671
318719
420959

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + - col1 * - col1 * CAST ( + 71 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
184671
318719
420959

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT DISTINCT ( + + col2 ) DIV + + col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT ( + + col2 ) / + + col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + ( 96 ) AS col2 FROM tab0
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, 8 AS col2 FROM tab2
----
23
8
40
8
58
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 98 + 55 * - col2 col0, - 46 FROM tab0
----
-2487
-46
-452
-46
-5347
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col0 FROM tab0
----
45

query I rowsort
SELECT DISTINCT + col0 + + + ( - col1 ) AS col2 FROM tab0
----
-66
66
96

query I rowsort
SELECT DISTINCT - 51 - + col0 + - col2 * - col0 FROM tab2 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT col2 * - col2 + - + 86 AS col2 FROM tab0
----
-186
-2295
-9887

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT - COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8934
SELECT - COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8935
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - CAST( 26 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8935
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - CAST ( 26 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - 7 AS col1 FROM tab1 cor0
----
-7

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( 20 ) IS NULL
----

query I rowsort
SELECT + + col0 AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT - 32 AS col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) >= ( col1 )
----

skipif mysql # not compatible
query I rowsort label-8939
SELECT - 32 AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) >= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL MIN( DISTINCT + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL MIN ( DISTINCT + - col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - + MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8941
SELECT - + MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + - MAX( ALL 65 ) AS col2 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8943
SELECT + - MAX ( ALL 65 ) AS col2 FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT DISTINCT - + COUNT( * ) + COUNT( + col0 ) FROM tab0 cor0 WHERE - col1 + - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT - + COUNT ( * ) + COUNT ( + col0 ) FROM tab0 cor0 WHERE - col1 + - - col1 IS NOT NULL
----
0

query I rowsort
SELECT 64 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query II rowsort
SELECT ALL 16 AS col2, - 13 * + 74 AS col0 FROM tab0
----
16
-962
16
-962
16
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT 49 * - ( COUNT( * ) ) + MAX( - 97 ) FROM tab2
----
-244

skipif mysql # not compatible
query I rowsort label-8947
SELECT 49 * - ( COUNT ( * ) ) + MAX ( - 97 ) FROM tab2
----
-244

query I rowsort
SELECT col0 + - - ( + col2 ) AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT + 69 + + 89 + - col2 AS col1 FROM tab1
----
62
90
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 37 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + 40 FROM tab2 AS cor0
----
-1840
-2560
-3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT DISTINCT CAST( - 46 AS SIGNED ) AS col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT CAST ( - 46 AS INTEGER ) AS col2 FROM tab2 cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - - col0 col1 FROM tab0 AS cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 83 col1 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT + AVG ( ALL + - col2 ) * - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT + AVG ( ALL + - col2 ) * - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8956
SELECT ALL - col1 DIV + 86 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL - col1 / + 86 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 98 * + col1 - + col0 FROM tab2 AS cor0
----
4952
6491
7482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 83 * - - ( - col0 ) * - - col2 col0, + 25 + + - col2 FROM tab0
----
58515
-22
72210
15
797049
-74

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - col1 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8960
SELECT col1 DIV col0 + - 89 FROM tab0
----
-84
-89
-89

skipif mysql # not compatible
query I rowsort label-8960
SELECT col1 / col0 + - 89 FROM tab0
----
-84
-89
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 7 col1 FROM tab0 WHERE ( NOT col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col2 + - + col0 * + + col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + col2 ) col1, 47 FROM tab1 AS cor0
----
-59
47
-68
47
-96
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 87 col0 FROM tab1
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8966
SELECT + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT ALL + col1 * col0 * col0 DIV + 97 FROM tab1
----
372
375
4012

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + col1 * col0 * col0 / + 97 FROM tab1
----
372
375
4012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8968
SELECT + COUNT( ALL ( + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8968
SELECT + COUNT ( ALL ( + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT - + MIN( ALL + col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8969
SELECT - + MIN ( ALL + col1 ) FROM tab2 cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8970
SELECT ALL + 25 DIV - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL + 25 / - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 95 * + 41 + + col1 AS col2 FROM tab1 AS cor0
----
3900
3909
3942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT - - CAST( NULL AS SIGNED ) / + col2 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT - - CAST ( NULL AS INTEGER ) / + col2 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + col1 * 77 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT DISTINCT MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 74 IN ( col1 / + - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8976
SELECT - 84 AS col2, + SUM( DISTINCT + 11 ) FROM tab0 cor0
----
-84
11

skipif mysql # not compatible
query II rowsort label-8976
SELECT - 84 AS col2, + SUM ( DISTINCT + 11 ) FROM tab0 cor0
----
-84
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT - COUNT( - + col1 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8977
SELECT - COUNT ( - + col1 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8978
SELECT ALL COUNT( * ) col0, - COUNT( + col0 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8978
SELECT ALL COUNT ( * ) col0, - COUNT ( + col0 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
3
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <= + ( + col2 )
----

query II rowsort
SELECT col1 AS col2, 39 AS col1 FROM tab1
----
14
39
47
39
5
39

query I rowsort
SELECT + 41 * + ( - - 24 ) + + - col0 FROM tab0 WHERE NOT - 10 BETWEEN col0 AND NULL
----
887
897
969

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT 76 * + 13 * COUNT( + col1 ) AS col2 FROM tab0
----
2964

skipif mysql # not compatible
query I rowsort label-8982
SELECT 76 * + 13 * COUNT ( + col1 ) AS col2 FROM tab0
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT - + COUNT( * ) + + 48 AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT - + COUNT ( * ) + + 48 AS col1 FROM tab0 AS cor0
----
45

query I rowsort
SELECT 95 * - col1 * col2 FROM tab0 AS cor0
----
-19950
-361665
-9405

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT + 41 DIV + + 55 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8985
SELECT + 41 / + + 55 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8986
SELECT - 67 AS col1, - 33 * + - ( - COUNT( * ) ) FROM tab2 AS cor0
----
-67
-99

skipif mysql # not compatible
query II rowsort label-8986
SELECT - 67 AS col1, - 33 * + - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-67
-99

query I rowsort
SELECT DISTINCT + - col1 * + ( + - 21 ) * + 15 AS col0 FROM tab1 AS cor0
----
14805
1575
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT - - COUNT( DISTINCT col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8988
SELECT - - COUNT ( DISTINCT col0 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + + ( - + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col1 * - col0 + + ( + col1 ) + + col2 + - col0 * + 44 * - 39 * col0 FROM tab1
----
12397739
14206034
4462712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT + - col0 + - CAST( NULL AS SIGNED ) * - + 93 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT + - col0 + - CAST ( NULL AS INTEGER ) * - + 93 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col0 - 22 + - + ( col1 ) + 67 FROM tab1 AS cor0
----
-4865
-4975
-6190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 + - - 8 * - col0 col2 FROM tab2 AS cor0
----
-278
-422
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 58 / - col1 BETWEEN + col2 AND ( + 4 )
----
3

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 58 / - col1 BETWEEN + col2 AND ( + 4 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + 74 + ( + - COUNT( * ) ) + COUNT( * ) * SUM( ALL col2 ) / + COUNT( - col2 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 74 + ( + - COUNT ( * ) ) + COUNT ( * ) * SUM ( ALL col2 ) / + COUNT ( - col2 ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT - COUNT( * ) * 93 FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT - COUNT ( * ) * 93 FROM tab0 AS cor0
----
-279

query III rowsort
SELECT * FROM tab0 WHERE + - 26 >= ( - + col0 - - col2 / + + col1 )
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL - SUM( + 38 ) AS col2 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - SUM ( + 38 ) AS col2 FROM tab1
----
-114

query I rowsort
SELECT ALL - col2 + - + 50 + + col1 FROM tab0
----
-148
-16
-39

query I rowsort
SELECT + 99 * - - col0 FROM tab1
----
5049
8415
9009

query I rowsort
SELECT ALL - 36 * - 99 AS col1 FROM tab0
----
3564
3564
3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9002
SELECT - 66 * CAST( SUM( ALL - - col1 ) AS SIGNED ) AS col2 FROM tab1
----
-4356

skipif mysql # not compatible
query I rowsort label-9002
SELECT - 66 * CAST ( SUM ( ALL - - col1 ) AS INTEGER ) AS col2 FROM tab1
----
-4356

query I rowsort
SELECT DISTINCT - col2 * + col1 + + 13 FROM tab2
----
-1160
-3067
-3873

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT col1 - col1 DIV + + 76 AS col1 FROM tab2
----
51
67
76

skipif mysql # not compatible
query I rowsort label-9004
SELECT col1 - col1 / + + 76 AS col1 FROM tab2
----
51
67
76

query I rowsort
SELECT DISTINCT + col0 * + - 81 * col2 AS col2 FROM tab2 AS cor0
----
-207360
-352350
-85698

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9006
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - col0 + + col2 IN ( - + col1 * - col0, CAST( NULL AS SIGNED ) * + 81 )
----

skipif mysql # not compatible
query III rowsort label-9006
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - col0 + + col2 IN ( - + col1 * - col0, CAST ( NULL AS INTEGER ) * + 81 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9007
SELECT ALL 78 * + + 23 AS col1, + ( - - COUNT( * ) ) * COUNT( * ) AS col2 FROM tab0
----
1794
9

skipif mysql # not compatible
query II rowsort label-9007
SELECT ALL 78 * + + 23 AS col1, + ( - - COUNT ( * ) ) * COUNT ( * ) AS col2 FROM tab0
----
1794
9

query I rowsort
SELECT - - 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * col0 IS NOT NULL
----

query I rowsort
SELECT + 43 FROM tab1 AS cor0 WHERE NOT - col2 * col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - - col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 35 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * 71 + + 9 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND 66
----

query I rowsort
SELECT ( 3 ) AS col2 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ALL 85 * - col0 AS col1 FROM tab0
----
-1275
-7395
-8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 * + ( col2 ) col2 FROM tab1
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT ALL - col2 DIV - + col1 AS col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - col2 / - + col1 AS col1 FROM tab0
----
0
0
99

query II rowsort
SELECT col0, - 28 + - col0 AS col2 FROM tab1
----
51
-79
85
-113
91
-119

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + - - col1 AS col2 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT - col1 + - + col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT ( + + 51 ) + col1 FROM tab2
----
102
118
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9023
SELECT DISTINCT CAST( + col2 AS SIGNED ), + ( col2 ) AS col0 FROM tab2
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-9023
SELECT DISTINCT CAST ( + col2 AS INTEGER ), + ( col2 ) AS col0 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 WHERE - 88 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 BETWEEN col1 AND - col2 - 46
----

query I rowsort
SELECT ALL - col1 + + col0 + + col0 FROM tab0 AS cor0
----
-51
153
193

query II rowsort
SELECT ALL 44, col0 AS col0 FROM tab2 AS cor0
----
44
46
44
64
44
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 78 = NULL
----

query I rowsort
SELECT + 44 - + - col0 FROM tab0 AS cor0
----
131
141
59

query I rowsort
SELECT col2 - - 11 FROM tab2 AS cor0
----
34
51
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT DISTINCT COUNT( * ) * - 98 + 51 FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT COUNT ( * ) * - 98 + 51 FROM tab1 AS cor0
----
-243

query I rowsort
SELECT col1 - - 95 FROM tab1 AS cor0 WHERE - col0 * 6 <= + col2 + + col1 + - + col0 * + col0 * + - col1
----
100
109
142

query II rowsort
SELECT col0 + - - col2 + - + 59 * ( - col1 ), - col2 AS col0 FROM tab1
----
2932
-68
439
-59
973
-96

query I rowsort
SELECT + + col1 FROM tab2 WHERE - col2 + + - col0 + - col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

query II rowsort
SELECT DISTINCT + 51, + col2 * + 31 AS col2 FROM tab0 AS cor0
----
51
1457
51
3069
51
310

query I rowsort
SELECT - + ( + + 52 ) FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 + col2 + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 + col2 + - col1 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col2, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT - MIN( + 57 ) AS col0 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9040
SELECT - MIN ( + 57 ) AS col0 FROM tab1 cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 35 col0, col1 AS col0 FROM tab1 AS cor0
----
-35
14
-35
47
-35
5

query II rowsort
SELECT col1, - 64 * - col2 FROM tab2 AS cor0
----
51
1472
67
3712
77
2560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * - 53 col1 FROM tab0
----
-3657

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT SUM( + col1 ) + COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-9044
SELECT SUM ( + col1 ) + COUNT ( * ) FROM tab1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9045
SELECT DISTINCT COUNT( * ) DIV 19 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT COUNT ( * ) / 19 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9047
SELECT DISTINCT - col1 DIV - col0, + col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-9047
SELECT DISTINCT - col1 / - col0, + col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT DISTINCT 63 + - 40 - + COUNT( * ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT 63 + - 40 - + COUNT ( * ) FROM tab2
----
20

query I rowsort
SELECT - 72 * - + col2 FROM tab0 cor0
----
3384
7128
720

query I rowsort
SELECT ALL ( - + col2 ) + + 46 FROM tab2
----
-12
23
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 IN ( + 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + - - 14 + MIN( ALL + + 19 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + - - 14 + MIN ( ALL + + 19 ) FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT 56 + COUNT( * ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9053
SELECT 56 + COUNT ( * ) FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL - 94 * + + col1 + - 64 AS col2 FROM tab2 cor0
----
-4858
-6362
-7302

query I rowsort
SELECT - col2 + - 72 * col0 FROM tab0 AS cor0
----
-1127
-6274
-7083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9056
SELECT - CAST( + 23 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-28
-37
-70

skipif mysql # not compatible
query I rowsort label-9056
SELECT - CAST ( + 23 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-28
-37
-70

query I rowsort
SELECT DISTINCT - 57 + col2 + ( col0 ) AS col2 FROM tab2 AS cor0
----
12
47
76

query I rowsort
SELECT ALL - - col1 - + col0 AS col0 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9059
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN - - CAST( + + col0 AS DECIMAL ) AND + - col0
----

skipif mysql # not compatible
query III rowsort label-9059
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN - - CAST ( + + col0 AS REAL ) AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL COUNT( - - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL COUNT ( - - col2 ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL - COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL - COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col1 - - col1 * + 54 AS col2 FROM tab2
----
2805
3685
4235

onlyif mysql # DIV for integer division: 
query I rowsort label-9064
SELECT + col2 DIV col1 - + 15 * 47 - + col2 FROM tab1
----
-753
-772
-795

skipif mysql # not compatible
query I rowsort label-9064
SELECT + col2 / col1 - + 15 * 47 - + col2 FROM tab1
----
-753
-772
-795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT 49 - + col0 + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT 49 - + col0 + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT + ( + col0 ) DIV + - col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9066
SELECT + ( + col0 ) / + - col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9067
SELECT + 76 DIV - - 61 + COUNT( * ) + + 3 * - 60 FROM tab2 AS cor0
----
-176

skipif mysql # not compatible
query I rowsort label-9067
SELECT + 76 / - - 61 + COUNT ( * ) + + 3 * - 60 FROM tab2 AS cor0
----
-176

query II rowsort
SELECT ALL - 19 AS col1, col2 * + 46 + - + col2 FROM tab2 AS cor0
----
-19
1035
-19
1800
-19
2610

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 57 <= NULL
----

query III rowsort
SELECT DISTINCT ( col0 ) AS col1, col1 AS col1, col0 FROM tab1
----
9 values hashing to a30636bba45d0c3150df3c088268a236

query II rowsort
SELECT col2 AS col0, - col1 AS col1 FROM tab0 WHERE NOT - col1 IS NULL AND NOT col0 IS NULL
----
10
-21
47
-81
99
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 <> - - col0 * col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9073
SELECT + + ( - SUM( ALL + - col2 ) ) AS col2, + 64 * MAX( + 17 ) FROM tab2 AS cor0
----
121
1088

skipif mysql # not compatible
query II rowsort label-9073
SELECT + + ( - SUM ( ALL + - col2 ) ) AS col2, + 64 * MAX ( + 17 ) FROM tab2 AS cor0
----
121
1088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * + col0 * 82 col2 FROM tab0 AS cor0
----
313896
349976
54120

onlyif mysql # DIV for integer division: 
query I rowsort label-9075
SELECT 20 DIV + - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9075
SELECT 20 / + - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + 69 + + col0 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9077
SELECT ALL - CAST( NULL AS SIGNED ) * + - col2 AS col1, - col0, + + 72 + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 530f7d2d74505fd5cc0b91db1c47ded8

skipif mysql # not compatible
query III rowsort label-9077
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col2 AS col1, - col0, + + 72 + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 530f7d2d74505fd5cc0b91db1c47ded8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col0 col2 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - COUNT( - 20 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9079
SELECT - COUNT ( - 20 ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 56 col1, col2 AS col2 FROM tab2
----
56
23
56
40
56
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + - + col0 col2 FROM tab1
----
3
43
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT DISTINCT - col1 + - CAST( - 85 AS SIGNED ) * - 17 FROM tab0
----
-1446
-1466
-1526

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - col1 + - CAST ( - 85 AS INTEGER ) * - 17 FROM tab0
----
-1446
-1466
-1526

query II rowsort
SELECT DISTINCT + col2 * + + 82 * col2 + 24 AS col2, - 54 AS col1 FROM tab2 AS cor0
----
131224
-54
275872
-54
43402
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT ALL + col0 DIV - col1 - col1 AS col1 FROM tab1 AS cor0
----
-17
-22
-48

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL + col0 / - col1 - col1 AS col1 FROM tab1 AS cor0
----
-17
-22
-48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT + col2 + + 66 AS col0 FROM tab0 cor0
----
113
165
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT col2 DIV + 46 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9087
SELECT col2 / + 46 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE NULL > - 48
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9089
SELECT 99 - - 85 col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
184
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9089
SELECT 99 - - 85 col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
184
3

query I rowsort
SELECT ALL - col2 - - 50 + - + col0 AS col0 FROM tab2 AS cor0
----
-19
-54
-83

query I rowsort
SELECT DISTINCT - col1 - - + ( - col2 ) FROM tab1 AS cor0
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 + + col2 col0, - col2 * - col1 AS col2 FROM tab2 AS cor0
----
104
3080
133
3886
69
1173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + ( + - 40 ) FROM tab0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT DISTINCT + 56 + 96 * - - ( + - COUNT( * ) ) AS col0 FROM tab1 WHERE + col0 - - 43 * + ( + + 52 ) IS NULL
----
56

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT + 56 + 96 * - - ( + - COUNT ( * ) ) AS col0 FROM tab1 WHERE + col0 - - 43 * + ( + + 52 ) IS NULL
----
56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - col1 AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + - + col1 <= - 3 - + 30
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9098
SELECT 7, MAX( + + col2 ) AS col1 FROM tab1
----
7
96

skipif mysql # not compatible
query II rowsort label-9098
SELECT 7, MAX ( + + col2 ) AS col1 FROM tab1
----
7
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9099
SELECT + - col1 DIV - + 54 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9099
SELECT + - col1 / - + 54 FROM tab2 cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN + - 92 * + - col0 AND - col2 + - + 49 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( ( NOT col0 < - + 5 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT ( NOT NULL IN ( 27, col0 * + 75, - col1, - col0 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9103
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2, - COUNT( * ) FROM tab1
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9103
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2, - COUNT ( * ) FROM tab1
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT - COUNT( + 19 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9104
SELECT - COUNT ( + 19 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT + - ( + CAST( NULL AS SIGNED ) ) * - 65 + - ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT + - ( + CAST ( NULL AS INTEGER ) ) * - 65 + - ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + - 77 * 58 FROM tab2 AS cor0
----
-4466
-4466
-4466

query I rowsort
SELECT col1 + - - 65 FROM tab1 AS cor0
----
112
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + COUNT( * ) + - ( - 86 ) * + 4 AS col2 FROM tab0 cor0
----
347

skipif mysql # not compatible
query I rowsort label-9109
SELECT + COUNT ( * ) + - ( - 86 ) * + 4 AS col2 FROM tab0 cor0
----
347

query I rowsort
SELECT DISTINCT 8 * + - col2 FROM tab1 AS cor0
----
-472
-544
-768

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 88 <= 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - - ( 20 ) + - 27 FROM tab0 AS cor0
----
-7
-7
-7

query III rowsort
SELECT ALL * FROM tab1 WHERE - 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9115
SELECT DISTINCT * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) * col0 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9115
SELECT DISTINCT * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) * col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT ( MIN( + col2 ) ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT ( MIN ( + col2 ) ) AS col2 FROM tab1
----
59

query I rowsort
SELECT + ( + 99 ) + 63 FROM tab0
----
162
162
162

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 49 IS NULL
----

query I rowsort
SELECT + col0 * - + 30 AS col0 FROM tab1
----
-1530
-2550
-2730

query I rowsort
SELECT - col0 * col0 * - - col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT 49 * col2 + + - col1 - - col0 + - 53 * col1 AS col2 FROM tab1 cor0
----
2706
3999
885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT + CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9122
SELECT + CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT + SUM( - - col2 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-9123
SELECT + SUM ( - - col2 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
226

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT DISTINCT col1 * - - ( + + col1 ) + col2 DIV + 57 FROM tab1 AS cor0
----
197
2210
26

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT col1 * - - ( + + col1 ) + col2 / + 57 FROM tab1 AS cor0
----
197
2210
26

query I rowsort
SELECT ALL - col0 - + - 76 AS col0 FROM tab1 AS cor0
----
-15
-9
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9126
SELECT ALL - 68 + COUNT( DISTINCT CAST( + 42 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL - 68 + COUNT ( DISTINCT CAST ( + 42 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9127
SELECT ALL - - 42 DIV col2 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - - 42 / col2 FROM tab0 AS cor0
----
0
0
4

query II rowsort
SELECT - col1 AS col1, 55 + - col0 FROM tab1 cor0 WHERE NOT ( NOT - col1 + - - col0 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT MAX( - + CAST( col2 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9129
SELECT MAX ( - + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
-10

query II rowsort
SELECT DISTINCT - - col0, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL - ( - 75 ) AS col2 FROM tab2 cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * - col2 col1 FROM tab2
----
-184
-320
-464

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <= 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT COUNT( ALL - 12 ) * - - 91 AS col2 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT COUNT ( ALL - 12 ) * - - 91 AS col2 FROM tab2
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ( + MIN( - 99 ) ) AS col2 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-9136
SELECT ( + MIN ( - 99 ) ) AS col2 FROM tab2
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - + col2 = NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT - ( + + 35 ) FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL col2 * 63 + - - col1 + + - col1 * - col1 * - col0 FROM tab1 cor0
----
-196688
-3934
1597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col1 FROM tab0 cor0
----
64

query I rowsort
SELECT ALL + 79 FROM tab2 cor0
----
79
79
79

query I rowsort
SELECT ALL - - 9 + col2 * col2 FROM tab2 AS cor0
----
1609
3373
538

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE NOT - 6 * col1 = NULL
----

query I rowsort
SELECT ALL - 46 * - 32 + col2 FROM tab1
----
1531
1540
1568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9146
SELECT - col1 + - 35 AS col1, CAST( NULL AS SIGNED ) * + col0 * 7 FROM tab2
----
-102
NULL
-112
NULL
-86
NULL

skipif mysql # not compatible
query II rowsort label-9146
SELECT - col1 + - 35 AS col1, CAST ( NULL AS INTEGER ) * + col0 * 7 FROM tab2
----
-102
NULL
-112
NULL
-86
NULL

query I rowsort
SELECT DISTINCT col0 * - - 0 + - col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT - col2 + - col0, + col0 + - col1 AS col0 FROM tab0
----
-196
96
-62
-66
-97
66

query I rowsort
SELECT ALL + 98 + - col1 AS col1 FROM tab0
----
17
77
97

query I rowsort
SELECT ALL + + col0 + + + col2 - - + 93 + + col1 FROM tab1 AS cor0
----
242
254
299

query II rowsort
SELECT + + col1 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT DISTINCT - COUNT( * ) * - - 0 - - COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT - COUNT ( * ) * - - 0 - - COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col0 + + - 83 * 70 FROM tab2
----
-5856
-5874
-5885

onlyif mysql # DIV for integer division: 
query II rowsort label-9154
SELECT DISTINCT col2 DIV + + col0, col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-9154
SELECT DISTINCT col2 / + + col0, col0 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + + ( + MAX( DISTINCT - - 79 ) ) AS col1 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9155
SELECT + + ( + MAX ( DISTINCT - - 79 ) ) AS col1 FROM tab0 AS cor0
----
79

query I rowsort
SELECT ALL ( + 66 ) * - col2 FROM tab1 AS cor0
----
-3894
-4488
-6336

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 62 IS NOT NULL
----

query I rowsort
SELECT ( + + col1 ) FROM tab2 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT - SUM( + + 10 ) AS col1 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9159
SELECT - SUM ( + + 10 ) AS col1 FROM tab2 AS cor0
----
-30

query II rowsort
SELECT col0, + col1 AS col0 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col2 <> col1
----

query I rowsort
SELECT - ( + 74 ) AS col1 FROM tab2
----
-74
-74
-74

query II rowsort
SELECT ALL col0, col0 FROM tab1 cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT + MAX( + - 72 ) AS col2 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9164
SELECT + MAX ( + - 72 ) AS col2 FROM tab0 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT - CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9165
SELECT - CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT col2 DIV + col0 col2 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9166
SELECT col2 / + col0 col2 FROM tab0 AS cor0
----
0
1
3

query II rowsort
SELECT ALL + 66, + col2 AS col2 FROM tab0 AS cor0
----
66
10
66
47
66
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL ( MIN( ALL col1 ) ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL ( MIN ( ALL col1 ) ) AS col1 FROM tab2
----
51

query III rowsort
SELECT * FROM tab2 WHERE NULL > ( 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT + COUNT( + 23 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT + COUNT ( + 23 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - col1 / - col1 - + ( col0 ) ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - col1 / 7 )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT + col0 > - col2
----

query I rowsort
SELECT ALL + col1 * - 66 FROM tab0
----
-1386
-5346
-66

query I rowsort
SELECT col2 * 50 AS col0 FROM tab0 WHERE - ( 88 ) * col0 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * - 39 col0 FROM tab2
----
-1560
-2262
-897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT ALL - col0 - CAST( col0 + + col0 * col1 AS SIGNED ) AS col0 FROM tab2
----
-2438
-5056
-5175

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - col0 - CAST ( col0 + + col0 * col1 AS INTEGER ) AS col0 FROM tab2
----
-2438
-5056
-5175

query I rowsort
SELECT + col2 * ( 53 ) FROM tab2
----
1219
2120
3074

query I rowsort
SELECT - col2 * - 81 FROM tab1
----
4779
5508
7776

query I rowsort
SELECT ALL + col1 * + 19 AS col2 FROM tab1
----
266
893
95

query I rowsort
SELECT 81 + col2 AS col1 FROM tab1
----
140
149
177

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + col1 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 19 + col2 col1 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT 93 * 61 FROM tab1
----
5673
5673
5673

query I rowsort
SELECT DISTINCT + 43 * col1 FROM tab1 WHERE - col2 < ( + col0 )
----
2021
215
602

query I rowsort
SELECT DISTINCT 16 * 37 + col0 FROM tab1
----
643
677
683

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT + COUNT( DISTINCT + 42 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT + COUNT ( DISTINCT + 42 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab2 WHERE NOT - col2 * - col1 NOT BETWEEN col2 * ( col2 * col0 ) AND NULL
----

query I rowsort
SELECT ALL 69 AS col1 FROM tab2 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT SUM( DISTINCT 60 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-9191
SELECT SUM ( DISTINCT 60 ) FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9192
SELECT ( + CAST( col2 AS SIGNED ) ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9192
SELECT ( + CAST ( col2 AS INTEGER ) ) FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT 18 FROM tab1 WHERE NOT col0 * col0 IS NULL
----
18

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) = col0 * col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 13 * + col1 + col1 * col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3009
5896
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT DISTINCT MIN( ALL - 48 ) - - 80 col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9197
SELECT DISTINCT MIN ( ALL - 48 ) - - 80 col2 FROM tab2 AS cor0
----
32

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE 76 < ( - 57 + + col0 * + col0 )
----
14
47
5

query I rowsort
SELECT col1 - col1 * + col0 AS col0 FROM tab0 cor0
----
-1134
-1806
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT ALL CAST( col0 AS SIGNED ) - - 64 * - 46 FROM tab0 AS cor0
----
-2847
-2857
-2929

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL CAST ( col0 AS INTEGER ) - - 64 * - 46 FROM tab0 AS cor0
----
-2847
-2857
-2929

query I rowsort
SELECT - col0 / + 79 AS col2 FROM tab1 AS cor0 WHERE + 45 / + col0 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT + col2 col1 FROM tab0 WHERE col2 + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9202
SELECT + col2 col1 FROM tab0 WHERE col2 + CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT 55 + + col2 FROM tab0
----
102
154
65

query I rowsort
SELECT ALL ( + col2 ) * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - 28 ) IS NULL
----
-100
-2209
-9801

query I rowsort
SELECT + 27 * 39 AS col1 FROM tab1 cor0
----
1053
1053
1053

query I rowsort
SELECT DISTINCT - 12 FROM tab0 cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL COUNT( * ) * 56 AS col2 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL COUNT ( * ) * 56 AS col2 FROM tab2 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT - + ( COUNT( * ) ) * + 34 AS col0 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9208
SELECT - + ( COUNT ( * ) ) * + 34 AS col0 FROM tab1 AS cor0
----
-102

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 94 + ( 74 + col2 * + col1 ) BETWEEN ( + 4 * - 14 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col1 * + ( col1 ) - ( + col2 - 48 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 53 * 93 FROM tab0
----
-4929
-4929
-4929

query III rowsort
SELECT ALL * FROM tab1 WHERE - 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 20 * col0 * + col0 FROM tab0
----
151380
188180
4500

query I rowsort
SELECT ALL col2 * col1 * col2 AS col1 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT DISTINCT COUNT( * ) * - 7 AS col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT COUNT ( * ) * - 7 AS col0 FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT DISTINCT MAX( ALL + 20 ) AS col0 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT MAX ( ALL + 20 ) AS col0 FROM tab1 AS cor0
----
20

query I rowsort
SELECT ALL 11 FROM tab0 AS cor0 WHERE NOT - 25 IS NOT NULL
----

query I rowsort
SELECT + 64 + - col2 * + 57 AS col0 FROM tab0 AS cor0
----
-2615
-506
-5579

query I rowsort
SELECT - 68 + + 7 AS col1 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 79 * 63 AS col2 FROM tab0 WHERE NOT - + 55 / - 98 - 52 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9223
SELECT * FROM tab1 WHERE ( - + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9223
SELECT * FROM tab1 WHERE ( - + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 73 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( - ( col0 ) * ( 87 ) )
----

query I rowsort
SELECT DISTINCT + ( ( 79 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
79

query I rowsort
SELECT ALL - + col1 + + ( - - ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE + 63 / col1 <= col1
----
10
47

query I rowsort
SELECT ( - - ( - 25 ) ) AS col0 FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL SUM( col2 ) - - MIN( 6 ) + MIN( ALL 96 ) FROM tab1 AS cor0
----
325

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL SUM ( col2 ) - - MIN ( 6 ) + MIN ( ALL 96 ) FROM tab1 AS cor0
----
325

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 19 / + col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT - col0 DIV col0 * + + col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9232
SELECT - col0 / col0 * + + col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9233
SELECT ALL - - 14 DIV ( + 39 ) + + CAST( ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL - - 14 / ( + 39 ) + + CAST ( ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT col2 - 15 FROM tab1 AS cor0
----
44
53
81

query II rowsort
SELECT ALL - + 89 AS col2, col0 + + 40 - col0 * 72 AS col2 FROM tab2 AS cor0
----
-89
-3226
-89
-4504
-89
-5285

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE + ( - - ( + col2 ) ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9236
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE + ( - - ( + col2 ) ) IS NOT NULL
----
3

query I rowsort
SELECT col1 + - + 74 + - 32 AS col2 FROM tab1
----
-101
-59
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 56 / col1 IS NULL
----

query I rowsort
SELECT ALL - col2 + ( + + ( col1 ) ) FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + + col0 + + - ( col0 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * col2 IS NOT NULL
----

query I rowsort
SELECT - 39 * - col2 FROM tab2 AS cor0 WHERE NOT - col0 >= NULL
----

query I rowsort
SELECT ALL - 16 * + col2 FROM tab1 cor0
----
-1088
-1536
-944

query I rowsort
SELECT 16 * - + 98 AS col1 FROM tab2 AS cor0
----
-1568
-1568
-1568

query I rowsort
SELECT + 96 * - - col1 * 59 FROM tab2 AS cor0
----
288864
379488
436128

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9247
SELECT SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + col1 NOT IN ( 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT + COUNT( DISTINCT - - 22 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9249
SELECT + COUNT ( DISTINCT - - 22 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9250
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9250
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

query I rowsort
SELECT 32 * col0 FROM tab1 AS cor0
----
1632
2720
2912

onlyif mysql # DIV for integer division: 
query I rowsort label-9252
SELECT - - col1 DIV - 78 - - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9252
SELECT - - col1 / - 78 - - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 16 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 23 ) col0 FROM tab2 AS cor0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col1 + 39 col1 FROM tab1 cor0
----
2248
235
64

query I rowsort
SELECT + col2 * 98 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 * + col1 AND ( - - col1 )
----

query I rowsort
SELECT ALL - + 78 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
3978
5226
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT CAST( NULL AS SIGNED ) * - - ( ( + - 42 ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT CAST ( NULL AS INTEGER ) * - - ( ( + - 42 ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 41 AS col1, - 2 FROM tab2
----
41
-2
41
-2
41
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 90 + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT + - col2 / - CAST( NULL AS SIGNED ) + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9261
SELECT + - col2 / - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9263
SELECT 35 AS col2, + COUNT( * ) AS col1 FROM tab2
----
35
3

skipif mysql # not compatible
query II rowsort label-9263
SELECT 35 AS col2, + COUNT ( * ) AS col1 FROM tab2
----
35
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9264
SELECT + COUNT( * ) AS col1, - ( - COUNT( CAST( + col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9264
SELECT + COUNT ( * ) AS col1, - ( - COUNT ( CAST ( + col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT + - COUNT( * ) * + 9 AS col2 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9265
SELECT + - COUNT ( * ) * + 9 AS col2 FROM tab0 AS cor0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT + - COUNT( * ) * + - CAST( NULL AS SIGNED ) + 47 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + 47 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT - - 93 / + + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT - - 93 / + + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT col1 DIV + 7 AS col2 FROM tab0 AS cor0
----
0
11
3

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT col1 / + 7 AS col2 FROM tab0 AS cor0
----
0
11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT COUNT( * ) FROM tab2 WHERE - 29 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9269
SELECT COUNT ( * ) FROM tab2 WHERE - 29 IS NULL
----
0

query I rowsort
SELECT + 2 + 52 AS col1 FROM tab1
----
54
54
54

query I rowsort
SELECT col1 + - 1 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT COUNT( * ) + + 14 AS col2 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9272
SELECT COUNT ( * ) + + 14 AS col2 FROM tab0 AS cor0
----
17

query I rowsort
SELECT - ( - col2 ) - + col1 * + col0 FROM tab0 AS cor0 WHERE - ( + col1 ) NOT IN ( - col2 * + + col2 )
----
-1168
-1817
2

query I rowsort
SELECT 72 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= + + col0 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT ALL col0 + CAST( NULL AS SIGNED ) + ( + + 67 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL col0 + CAST ( NULL AS INTEGER ) + ( + + 67 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9276
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) - 39 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT + - CAST ( NULL AS REAL ) - 39 AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT 11 + col2 AS col0, + col2 FROM tab0 cor0
----
110
99
21
10
58
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 75 ) FROM tab1 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT - 62 DIV - col1 FROM tab1 cor0 WHERE NULL IS NULL
----
1
12
4

skipif mysql # not compatible
query I rowsort label-9280
SELECT - 62 / - col1 FROM tab1 cor0 WHERE NULL IS NULL
----
1
12
4

query I rowsort
SELECT DISTINCT col0 - col2 + + 7 FROM tab1
----
-38
30
33

query II rowsort
SELECT DISTINCT col1, - col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL + CAST( + - col2 AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT DISTINCT MAX( + ( col1 ) ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT MAX ( + ( col1 ) ) AS col2 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT - col1 * - 14 + col2 AS col0 FROM tab1 WHERE + 80 + + col1 / - col2 > ( + CAST( col0 AS SIGNED ) )
----
292

skipif mysql # not compatible
query I rowsort label-9285
SELECT - col1 * - 14 + col2 AS col0 FROM tab1 WHERE + 80 + + col1 / - col2 > ( + CAST ( col0 AS INTEGER ) )
----
292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9287
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - - CAST( + + 44 AS SIGNED ) ) ) BETWEEN col2 * + ( col1 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9287
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - - CAST ( + + 44 AS INTEGER ) ) ) BETWEEN col2 * + ( col1 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 33 + + + 50 / - - 88 FROM tab2 WHERE NOT 8 NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT - col2 - + + col0 AS col0 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT 1 - + MAX( ALL + + col0 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-9291
SELECT 1 - + MAX ( ALL + + col0 ) FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT ( + ( + - COUNT( * ) ) ) AS col2 FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT ( + ( + - COUNT ( * ) ) ) AS col2 FROM tab0 WHERE NULL = NULL
----
0

query I rowsort
SELECT ALL - ( 88 ) AS col2 FROM tab1 AS cor0
----
-88
-88
-88

query II rowsort
SELECT DISTINCT + + col0 AS col0, 32 FROM tab0 AS cor0
----
15
32
87
32
97
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT DISTINCT CAST( col1 AS SIGNED ) * - + 3 - + 32 + col1 FROM tab0 AS cor0
----
-194
-34
-74

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - + 3 - + 32 + col1 FROM tab0 AS cor0
----
-194
-34
-74

query III rowsort
SELECT * FROM tab0 WHERE NOT - 60 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9297
SELECT ALL + CAST( 71 AS SIGNED ) + - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
80

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + CAST ( 71 AS INTEGER ) + - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT ( NOT ( ( NULL ) IS NOT NULL ) )
----

query I rowsort
SELECT + ( + + col0 ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT DISTINCT + + MIN( ALL + + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + + MIN ( ALL + + col0 ) AS col2 FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT + - ( MIN( col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + - ( MIN ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + 79 * + + col0 FROM tab1 cor0
----
4029
6715
7189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT DISTINCT + CAST( - 5 AS SIGNED ) AS col1 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT + CAST ( - 5 AS INTEGER ) AS col1 FROM tab2
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, + col2 + - + 4 col2 FROM tab1
----
51
92
85
55
91
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT DISTINCT ( + MIN( col0 ) ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT ( + MIN ( col0 ) ) AS col1 FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9307
SELECT ALL 83 * + + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) * + CAST( - COUNT( * ) AS SIGNED ) + + - COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9307
SELECT ALL 83 * + + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) * + CAST ( - COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL ( - COUNT( * ) ) + + - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL ( - COUNT ( * ) ) + + - COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT DISTINCT col0 + + 76 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + - col0 FROM tab2
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + ( + 67 ) * - - col0 * + 22 + - + col1 col2 FROM tab2 AS cor0
----
110425
67730
94219

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT + + COUNT( * ) + - 71 col2 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9312
SELECT + + COUNT ( * ) + - 71 col2 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT + 81 + col0 * + - 60 + + col0 FROM tab0
----
-5052
-5642
-804

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE col2 BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT ( - col0 ) * + col1 - col0 AS col2 FROM tab0 cor0
----
-1230
-1914
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 + col2 col2 FROM tab2 AS cor0
----
120
137
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT + MAX( + - ( - 18 ) ) AS col0 FROM tab2 AS cor0 WHERE + 90 + + col2 + 61 IS NOT NULL
----
18

skipif mysql # not compatible
query I rowsort label-9317
SELECT + MAX ( + - ( - 18 ) ) AS col0 FROM tab2 AS cor0 WHERE + 90 + + col2 + 61 IS NOT NULL
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9318
SELECT DISTINCT - + col1 + + ( + col2 ) + - 86 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - + col1 + + ( + col2 ) + - 86 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT + COUNT( * ) - + ( + COUNT( - 47 ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT + COUNT ( * ) - + ( + COUNT ( - 47 ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9320
SELECT ALL col1 * - 83 + 98 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL col1 * - 83 + 98 + + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + + 73 ) * col0 - 58 AS col1 FROM tab2 AS cor0
----
-3416
-4730
-5533

query II rowsort
SELECT + col2 - - 42 AS col1, + 10 AS col2 FROM tab0 AS cor0
----
141
10
52
10
89
10

query I rowsort
SELECT - 46 - - 26 FROM tab2 AS cor0
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( - 82 ) IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 50 + col1 * col1 FROM tab1 AS cor0
----
2259
246
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9326
SELECT COUNT( * ) * - SUM( - 36 ) FROM tab0 AS cor0 WHERE - col0 * - 0 + + col1 * - CAST( NULL AS SIGNED ) IS NULL
----
324

skipif mysql # not compatible
query I rowsort label-9326
SELECT COUNT ( * ) * - SUM ( - 36 ) FROM tab0 AS cor0 WHERE - col0 * - 0 + + col1 * - CAST ( NULL AS INTEGER ) IS NULL
----
324

query I rowsort
SELECT + + 73 + - col0 AS col2 FROM tab0 AS cor0
----
-14
-24
58

query I rowsort
SELECT ALL col1 - col0 + + col1 FROM tab2
----
56
59
90

query III rowsort
SELECT * FROM tab1 WHERE + col0 = - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT col1 DIV - + 23 + col0 AS col1 FROM tab1
----
51
85
89

skipif mysql # not compatible
query I rowsort label-9330
SELECT col1 / - + 23 + col0 AS col1 FROM tab1
----
51
85
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9331
SELECT + CAST( NULL AS DECIMAL ) / + - ( + 67 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT + CAST ( NULL AS REAL ) / + - ( + 67 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9332
SELECT ALL CAST( + AVG ( - ( - - col2 ) ) AS SIGNED ) AS col1, 60 FROM tab2 WHERE NOT ( NULL IS NULL )
----
NULL
60

skipif mysql # not compatible
query II rowsort label-9332
SELECT ALL CAST ( + AVG ( - ( - - col2 ) ) AS INTEGER ) AS col1, 60 FROM tab2 WHERE NOT ( NULL IS NULL )
----
NULL
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT ALL col1 DIV - col1 col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9333
SELECT ALL col1 / - col1 col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL + ( - 53 ) + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 68 * - - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT DISTINCT ( - col1 ) + - - col0 + - - col2 FROM tab1 AS cor0 WHERE + col0 IN ( 98, + col1, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT 24 DIV + col1 FROM tab0 AS cor0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-9338
SELECT 24 / + col1 FROM tab0 AS cor0
----
0
1
24

query II rowsort
SELECT - - ( + col1 ) AS col1, + col2 + - col2 AS col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT - - ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT - - ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9341
SELECT ALL col2 AS col0, col0 DIV + ( + col2 ) FROM tab1
----
59
1
68
1
96
0

skipif mysql # not compatible
query II rowsort label-9341
SELECT ALL col2 AS col0, col0 / + ( + col2 ) FROM tab1
----
59
1
68
1
96
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 NOT BETWEEN + col1 * col2 AND col2
----

query I rowsort
SELECT - + col2 * + 30 FROM tab2 cor0
----
-1200
-1740
-690

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 cor0 WHERE NOT ( col1 * - 15 ) IS NULL
----
15
87
97

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT col1 * - - CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-9346
SELECT col1 * - - CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT + col0 DIV + col0 + 47 AS col1 FROM tab0 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-9347
SELECT + col0 / + col0 + 47 AS col1 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT + 45 + - + col0 FROM tab1 AS cor0
----
-40
-46
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT ALL + CAST( NULL AS SIGNED ) * - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL + CAST ( NULL AS INTEGER ) * - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 FROM tab2 WHERE NULL BETWEEN + col2 AND 94 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT MIN( + 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-9352
SELECT MIN ( + 5 ) FROM tab2
----
5

query I rowsort
SELECT DISTINCT + 38 * + 44 * - - col2 + - 78 AS col1 FROM tab1
----
113618
160434
98570

query I rowsort
SELECT ALL + 83 + + col2 FROM tab0
----
130
182
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 - + 10 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT 89 + + SUM( DISTINCT - + 5 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9356
SELECT 89 + + SUM ( DISTINCT - + 5 ) FROM tab2
----
84

query I rowsort
SELECT col2 + + col2 - + col2 AS col2 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 29 col1 FROM tab2
----
-17
-35
-46

query I rowsort
SELECT + 29 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL col1 * + 77 FROM tab1
----
1078
3619
385

query II rowsort
SELECT DISTINCT + ( + col1 ) AS col0, + col0 * 7 AS col2 FROM tab1 AS cor0 WHERE 0 NOT BETWEEN NULL AND - + col1
----
14
357
47
637
5
595

query I rowsort
SELECT DISTINCT - 5 + - - col2 AS col1 FROM tab1 AS cor0
----
54
63
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9363
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE CAST( + - col1 AS SIGNED ) + ( col2 ) * col2 BETWEEN NULL AND + + col0
----
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) + ( col2 ) * col2 BETWEEN NULL AND + + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT COUNT( DISTINCT - + col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + MAX( - 30 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-9365
SELECT + MAX ( - 30 ) FROM tab0
----
-30

query II rowsort
SELECT ALL + col2 * + 76, - col2 AS col2 FROM tab2
----
1748
-23
3040
-40
4408
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL - COUNT( ALL ( + + col0 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - COUNT ( ALL ( + + col0 ) ) AS col1 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col0 * - col0 col1 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-9369
SELECT + col2 * col2 DIV 68 FROM tab2
----
23
49
7

skipif mysql # not compatible
query I rowsort label-9369
SELECT + col2 * col2 / 68 FROM tab2
----
23
49
7

query I rowsort
SELECT 24 * 33 FROM tab0
----
792
792
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9371
SELECT + COUNT( * ) DIV + ( - + COUNT( * ) ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9371
SELECT + COUNT ( * ) / + ( - + COUNT ( * ) ) AS col0 FROM tab2
----
-1

query II rowsort
SELECT ALL - col1 AS col2, + col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - 61 * - + COUNT( * ) AS col0 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-9373
SELECT - 61 * - + COUNT ( * ) AS col0 FROM tab0
----
183

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= col0 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - - MAX( + + 18 ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9375
SELECT - - MAX ( + + 18 ) AS col2 FROM tab1 AS cor0
----
18

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN - col1 * col1 * 39 AND + col2 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT DISTINCT - COUNT( ALL - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT - COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col2 * - 22 * + - 31, 3 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 - - col2 * col2 AND + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9379
SELECT * FROM tab2 cor0 WHERE NOT NULL >= CAST( + 1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9379
SELECT * FROM tab2 cor0 WHERE NOT NULL >= CAST ( + 1 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT - COUNT( * ) * - MAX( ALL - 0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT - COUNT ( * ) * - MAX ( ALL - 0 ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT + ( - ( - 85 ) ) + - MIN( + - col0 ) FROM tab0
----
182

skipif mysql # not compatible
query I rowsort label-9381
SELECT + ( - ( - 85 ) ) + - MIN ( + - col0 ) FROM tab0
----
182

query I rowsort
SELECT + 54 FROM tab0 WHERE + + col0 IS NOT NULL
----
54
54
54

query II rowsort
SELECT ALL + 92 * - col0 + + col1, + col0 - - 71 AS col2 FROM tab1
----
-4678
122
-7815
156
-8325
162

query I rowsort
SELECT ALL 66 FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 46 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 3 IN ( + 77 + + col1 * + col1 + + + 91 + + col0, - 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9387
SELECT ALL + CAST( - + col0 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL + CAST ( - + col0 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 20 FROM tab0 WHERE + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT ALL col0 * ( - 79 ) * 28 DIV - ( + col1 ) FROM tab0
----
214564
409
9164

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL col0 * ( - 79 ) * 28 / - ( + col1 ) FROM tab0
----
214564
409
9164

query I rowsort
SELECT ALL 59 * 77 FROM tab0
----
4543
4543
4543

query I rowsort
SELECT col0 * col2 * ( + - col0 ) FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT + ( + ( + - 27 ) ) * - - COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9393
SELECT + ( + ( + - 27 ) ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - 4 * + col0 FROM tab0 AS cor0
----
-348
-388
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + - MIN( ALL 75 ) FROM tab2 AS cor0 WHERE NOT col0 = col1 + + - col1
----
-75

skipif mysql # not compatible
query I rowsort label-9395
SELECT + - MIN ( ALL 75 ) FROM tab2 AS cor0 WHERE NOT col0 = col1 + + - col1
----
-75

query I rowsort
SELECT col2 * - 25 AS col0 FROM tab1
----
-1475
-1700
-2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab1 cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9398
SELECT CAST( NULL AS SIGNED ) + + - CAST( NULL AS DECIMAL ) - - + 83 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS REAL ) - - + 83 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9401
SELECT col1 + CAST( - 28 AS SIGNED ) FROM tab0 AS cor0
----
-27
-7
53

skipif mysql # not compatible
query I rowsort label-9401
SELECT col1 + CAST ( - 28 AS INTEGER ) FROM tab0 AS cor0
----
-27
-7
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT + - CAST( NULL AS SIGNED ) + col2 * 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT + - CAST ( NULL AS INTEGER ) + col2 * 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT ALL 19 DIV - - 82 + - 31 AS col0 FROM tab0 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL 19 / - - 82 + - 31 AS col0 FROM tab0 AS cor0
----
-31
-31
-31

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT + CAST( - col1 AS SIGNED ) col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9405
SELECT + CAST ( - col1 AS INTEGER ) col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - col2 * - col1 + 55 + - col2 FROM tab1 AS cor0
----
1303
291
3183

onlyif mysql # aggregate syntax: 
query II rowsort label-9407
SELECT SUM( - - col2 ), - COUNT( ALL col2 ) AS col1 FROM tab2 cor0
----
121
-3

skipif mysql # not compatible
query II rowsort label-9407
SELECT SUM ( - - col2 ), - COUNT ( ALL col2 ) AS col1 FROM tab2 cor0
----
121
-3

query II rowsort
SELECT ALL + col2 + - col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-23
47
-26
5
45
14

query II rowsort
SELECT DISTINCT 76 + + + 68, 37 * 56 AS col0 FROM tab2 AS cor0
----
144
2072

query I rowsort
SELECT DISTINCT + 99 + - - col2 AS col1 FROM tab0 AS cor0
----
109
146
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 cor0 WHERE + col1 < - + ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT ALL col0 DIV - col1 + + - 84 FROM tab2 AS cor0
----
-84
-84
-85

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL col0 / - col1 + + - 84 FROM tab2 AS cor0
----
-84
-84
-85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT + ( + SUM( 26 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
234

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT + ( + SUM ( 26 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9415
SELECT - 77 AS col1, - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-77
23
-77
40
-77
58

skipif mysql # not compatible
query II rowsort label-9415
SELECT - 77 AS col1, - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-77
23
-77
40
-77
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + col2 col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT DISTINCT + SUM( - 5 ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT + SUM ( - 5 ) FROM tab2 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL - SUM( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - SUM ( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-9419
SELECT DISTINCT - COUNT( * ), 64 AS col2 FROM tab1 AS cor0
----
-3
64

skipif mysql # not compatible
query II rowsort label-9419
SELECT DISTINCT - COUNT ( * ), 64 AS col2 FROM tab1 AS cor0
----
-3
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9420
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9420
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT - + MIN( - - col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9421
SELECT - + MIN ( - - col1 ) col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 47 - col0 * - col0 AND NULL
----

query II rowsort
SELECT 94 * col1 AS col1, col0 + col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( + 52 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( + 52 ) IS NOT NULL
----
0

query I rowsort
SELECT + col1 * 53 AS col2 FROM tab1
----
2491
265
742

query I rowsort
SELECT - - col2 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * 35 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= col0 * - col1 + 32
----

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NOT ( + + 58 ) BETWEEN NULL AND NULL OR NOT 34 + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + + - col2 - + 41 AS col2 FROM tab1
----
-105
-151
-156

query I rowsort
SELECT + ( + 78 ) FROM tab1
----
78
78
78

query I rowsort
SELECT 19 - + 94 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9435
SELECT COUNT( * ) + 81 AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
81
0

skipif mysql # not compatible
query II rowsort label-9435
SELECT COUNT ( * ) + 81 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
81
0

query I rowsort
SELECT DISTINCT 71 + col0 AS col1 FROM tab0 AS cor0
----
158
168
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT DISTINCT 78 DIV col1 * + 43 + - + 49 AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT 78 / col1 * + 43 + - + 49 AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT - col0 * ( - col1 ) * col0 + + + 67 FROM tab0 AS cor0
----
159016
18292
9476

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 + - 79 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9440
SELECT + - col1 DIV + col1 + + 79 * col2 - - 96 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
4756
-5
5467
-47
7679
-14

skipif mysql # not compatible
query II rowsort label-9440
SELECT + - col1 / + col1 + + 79 * col2 - - 96 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
4756
-5
5467
-47
7679
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-9441
SELECT ALL - 46, + ( + col2 ) DIV + + 51 - - col1 AS col0 FROM tab0
----
-46
2
-46
21
-46
81

skipif mysql # not compatible
query II rowsort label-9441
SELECT ALL - 46, + ( + col2 ) / + + 51 - - col1 AS col0 FROM tab0
----
-46
2
-46
21
-46
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9442
SELECT ALL COUNT( * ) AS col0, - MIN( + col2 ) FROM tab0
----
3
-10

skipif mysql # not compatible
query II rowsort label-9442
SELECT ALL COUNT ( * ) AS col0, - MIN ( + col2 ) FROM tab0
----
3
-10

query I rowsort
SELECT 15 + - + 39 * + + col0 AS col2 FROM tab2
----
-1779
-2481
-2910

query III rowsort
SELECT * FROM tab0 WHERE - col2 >= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9445
SELECT ALL + 27 * + col0 DIV col0 AS col1 FROM tab1
----
27
27
27

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL + 27 * + col0 / col0 AS col1 FROM tab1
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT - CAST( 43 AS SIGNED ) + - 33 AS col2 FROM tab0 cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-9446
SELECT - CAST ( 43 AS INTEGER ) + - 33 AS col2 FROM tab0 cor0
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT - col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9447
SELECT - col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col1 - 59 AS col2 FROM tab0 AS cor0
----
-38
-58
22

query I rowsort
SELECT + col0 * - 5 AS col2 FROM tab1
----
-255
-425
-455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0, tab1 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9451
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - 89 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9451
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - 89 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab0 cor0
----
47

query II rowsort
SELECT + 66 * 26, col0 AS col2 FROM tab2 AS cor0
----
1716
46
1716
64
1716
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9454
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / - - col2 >= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9454
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / - - col2 >= - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * 42 - + col2 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9456
SELECT + ( ( ( + MIN( - col2 ) ) ) ) DIV + 15 AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9456
SELECT + ( ( ( + MIN ( - col2 ) ) ) ) / + 15 AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + ( 47 ) * - - col2 FROM tab1 AS cor0
----
2773
3196
4512

query II rowsort
SELECT - col0, - 11 AS col0 FROM tab0
----
-15
-11
-87
-11
-97
-11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - + col1 BETWEEN + 8 * - - 75 AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE + col1 - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT - - MIN( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9461
SELECT - - MIN ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT 51 + - col2 - col2 AS col0 FROM tab1
----
-141
-67
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT DISTINCT - ( - 34 ) + COUNT( * ) FROM tab0 cor0
----
37

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT - ( - 34 ) + COUNT ( * ) FROM tab0 cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT DISTINCT SUM( ALL col0 ) + SUM( ALL - + col0 ) + + MIN( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9465
SELECT DISTINCT SUM ( ALL col0 ) + SUM ( ALL - + col0 ) + + MIN ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - col0 + col0 + - ( col2 ) * - - col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + col2 - col2 > - - col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + + col2 * - 28 + + 22 FROM tab2 AS cor0
----
-1098
-1602
-622

query I rowsort
SELECT ALL 62 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + 93 - 52 - - SUM( col2 ) AS col2 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + 93 - 52 - - SUM ( col2 ) AS col2 FROM tab2
----
162

query I rowsort
SELECT 43 * + 46 AS col1 FROM tab2
----
1978
1978
1978

query I rowsort
SELECT DISTINCT + 59 / + col1 FROM tab2 WHERE NOT col2 * - 41 = NULL
----

query I rowsort
SELECT ALL + col1 + 9 + col1 AS col0 FROM tab0
----
11
171
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL + COUNT( col1 ) * + ( + MIN( - col2 ) ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + COUNT ( col1 ) * + ( + MIN ( - col2 ) ) FROM tab0
----
-297

query I rowsort
SELECT ALL 24 + - col0 FROM tab2
----
-22
-40
-51

query I rowsort
SELECT DISTINCT col1 * + 11 - + col1 AS col1 FROM tab0 AS cor0
----
10
210
810

query I rowsort
SELECT DISTINCT - ( + - col0 ) + + + col0 * + - col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

query I rowsort
SELECT - col0 * - - ( - 79 ) - - - col2 FROM tab0 AS cor0
----
1138
6863
7564

query I rowsort
SELECT DISTINCT + ( + col0 ) - - col0 + - col1 FROM tab2 AS cor0
----
41
51
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT - MIN( - 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-9481
SELECT - MIN ( - 83 ) FROM tab2
----
83

query II rowsort
SELECT 38, 99 AS col0 FROM tab1
----
38
99
38
99
38
99

query I rowsort
SELECT + col2 * - - col1 * col1 AS col2 FROM tab2
----
237160
260362
59823

query II rowsort
SELECT DISTINCT col2, col0 * - col1 AS col0 FROM tab2 AS cor0
----
23
-2346
40
-4928
58
-5025

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9485
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col1 * + ( - col1 ) + 63 - + + CAST( NULL AS DECIMAL ) * + - col0
----

skipif mysql # not compatible
query III rowsort label-9485
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col1 * + ( - col1 ) + 63 - + + CAST ( NULL AS REAL ) * + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / + - 97 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - col2 ) <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9488
SELECT CAST( - col1 AS SIGNED ) AS col2, 87 * col0 * + col2 FROM tab0
----
-1
835461
-21
75690
-81
61335

skipif mysql # not compatible
query II rowsort label-9488
SELECT CAST ( - col1 AS INTEGER ) AS col2, 87 * col0 * + col2 FROM tab0
----
-1
835461
-21
75690
-81
61335

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT COUNT( 45 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9489
SELECT COUNT ( 45 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE ( ( NOT ( NOT col2 <> col0 ) ) ) OR NOT ( col2 IS NOT NULL )
----
46
64
75

query I rowsort
SELECT ALL col0 * - 80 + + - col0 AS col1 FROM tab1
----
-4131
-6885
-7371

query I rowsort
SELECT + 7 * + + 47 AS col0 FROM tab0
----
329
329
329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9493
SELECT DISTINCT CAST( - ( + 81 ) AS SIGNED ) + - col1 AS col2 FROM tab0
----
-102
-162
-82

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT CAST ( - ( + 81 ) AS INTEGER ) + - col1 AS col2 FROM tab0
----
-102
-162
-82

query I rowsort
SELECT ALL - - 15 * col1 FROM tab2 AS cor0 WHERE NOT col0 * - + 81 BETWEEN - col0 + 15 + + 93 AND - col2
----
1005
1155
765

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT ( + col1 ) DIV - + 51 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9496
SELECT ( + col1 ) / - + 51 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9497
SELECT ALL + col0 DIV 27 DIV - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + col0 / 27 / - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 96 * + col1 * 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 - - 84 AS col2 FROM tab0 AS cor0
----
-15
37
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT - col1 DIV 8 - - 8 AS col1 FROM tab2 AS cor0
----
-1
0
2

skipif mysql # not compatible
query I rowsort label-9500
SELECT - col1 / 8 - - 8 AS col1 FROM tab2 AS cor0
----
-1
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT DISTINCT MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col0 - 69 FROM tab1 AS cor0
----
-120
-154
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT DISTINCT + COUNT( - - ( + - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT + COUNT ( - - ( + - col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT DISTINCT - ( - COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - col1 + + 18 FROM tab1
----
-29
13
4

query I rowsort
SELECT DISTINCT 34 * + + 4 FROM tab0
----
136

query I rowsort
SELECT col1 + - col1 * - col2 + + ( - + col2 ) * 71 AS col2 FROM tab1
----
-1585
-3889
-5458

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + COUNT( * ) + + 53 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-9508
SELECT + COUNT ( * ) + + 53 FROM tab2
----
56

query I rowsort
SELECT ALL - 0 * - + 69 * - col2 * - 93 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT 97 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT + ( + col0 ) * + col1 DIV - + col1 + - - col2 FROM tab2 cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-9511
SELECT + ( + col0 ) * + col1 / - + col1 + - - col2 FROM tab2 cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9512
SELECT ALL + - COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + - COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 4 * + col0 col0, + 41 FROM tab2 AS cor0
----
-184
41
-256
41
-300
41

query I rowsort
SELECT DISTINCT - 22 * - 44 AS col2 FROM tab2
----
968

query I rowsort
SELECT + + 1 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT DISTINCT + + COUNT( * ) * - 63 col0 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9516
SELECT DISTINCT + + COUNT ( * ) * - 63 col0 FROM tab2 AS cor0
----
-189

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 40 * - ( + ( - ( + + col2 ) ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT - SUM( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9518
SELECT - SUM ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-103

query II rowsort
SELECT + - col0 AS col2, col0 AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ( - - col2 ) * + col2 * + 73 FROM tab2 AS cor0
----
116800
245572
38617

query I rowsort
SELECT DISTINCT + 39 * - col1 AS col1 FROM tab0 AS cor0
----
-3159
-39
-819

onlyif mysql # DIV for integer division: 
query I rowsort label-9522
SELECT - - col1 DIV - 11 AS col0 FROM tab2 AS cor0
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-9522
SELECT - - col1 / - 11 AS col0 FROM tab2 AS cor0
----
-4
-6
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9523
SELECT ALL + ( MAX( ALL 39 ) ) * MIN( + col2 ) DIV COUNT( * ) col2 FROM tab1 AS cor0
----
767

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9523
SELECT ALL + ( MAX ( ALL 39 ) ) * MIN ( + col2 ) / COUNT ( * ) col2 FROM tab1 AS cor0
----
767

query I rowsort
SELECT ALL col1 * + 24 FROM tab0 AS cor0
----
1944
24
504

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9525
SELECT + 16 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT + 16 + + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT DISTINCT - col2 * - CAST( 50 AS SIGNED ) FROM tab0 cor0
----
2350
4950
500

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - col2 * - CAST ( 50 AS INTEGER ) FROM tab0 cor0
----
2350
4950
500

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL + + COUNT( * ) * - 79 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL + + COUNT ( * ) * - 79 FROM tab2 AS cor0
----
-237

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL BETWEEN NULL AND 43 )
----

query II rowsort
SELECT - 85 + col2, col1 AS col0 FROM tab2
----
-27
67
-45
77
-62
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - 89 - - col1 * - 11 <> - + col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT DISTINCT + 11 AS col1, COUNT( * ) FROM tab0
----
11
3

skipif mysql # not compatible
query II rowsort label-9531
SELECT DISTINCT + 11 AS col1, COUNT ( * ) FROM tab0
----
11
3

query I rowsort
SELECT DISTINCT 51 FROM tab2 WHERE NULL > - + 10 * - 91
----

query I rowsort
SELECT - - ( col0 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT - - col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT ALL 25 + - - col2 + col2 * + col1 * + + col1 AS col2 FROM tab2
----
237225
260445
59871

query I rowsort
SELECT - 17 + - 50 + - col2 * + - col0 * - 29 * + col0 FROM tab2 AS cor0
----
-1411439
-4751427
-9461317

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL SUM( + 5 ) + - - ( - + 2 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL SUM ( + 5 ) + - - ( - + 2 ) FROM tab2 AS cor0
----
13

query I rowsort
SELECT + col1 + + - col1 + col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT col2 + + 6 FROM tab2 AS cor0
----
29
46
64

query I rowsort
SELECT ALL + col1 * 89 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9541
SELECT ALL - - 61 + - 41 AS col2, - CAST( - 25 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
20
25
20
25
20
25

skipif mysql # not compatible
query II rowsort label-9541
SELECT ALL - - 61 + - 41 AS col2, - CAST ( - 25 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
20
25
20
25
20
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL - 15 - + + CAST( NULL AS SIGNED ) * + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - 15 - + + CAST ( NULL AS INTEGER ) * + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT + SUM( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + SUM ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
103

query I rowsort
SELECT + 72 AS col1 FROM tab1 cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 35 * - + 99 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9545
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 35 * - + 99 AND NULL
----
0

query I rowsort
SELECT ALL - ( col0 ) + + col0 + - + col1 * + 9 AS col2 FROM tab0 AS cor0
----
-189
-729
-9

query II rowsort
SELECT ALL - ( - col1 ) - + col1, col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT DISTINCT col2 - - col0 * + 9 AS col2 FROM tab1
----
555
824
887

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 98 > - col1 - - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT - - COUNT( * ) + - - 98 FROM tab2 WHERE + col2 IN ( col0 + 43, - col1, - col2 * - + col0 / + ( col0 ), - 18 )
----
101

skipif mysql # not compatible
query I rowsort label-9550
SELECT - - COUNT ( * ) + - - 98 FROM tab2 WHERE + col2 IN ( col0 + 43, - col1, - col2 * - + col0 / + ( col0 ), - 18 )
----
101

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 56 - - 47 ) IS NOT NULL
----

query I rowsort
SELECT ALL 58 * - + col0 FROM tab0
----
-5046
-5626
-870

query II rowsort
SELECT ALL - 7, - 38 AS col1 FROM tab2
----
-7
-38
-7
-38
-7
-38

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL ( COUNT( DISTINCT + - 7 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL ( COUNT ( DISTINCT + - 7 ) ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT COUNT( * ) * + 18 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-9556
SELECT COUNT ( * ) * + 18 FROM tab0
----
54

query II rowsort
SELECT + col0 AS col0, - 54 FROM tab1
----
51
-54
85
-54
91
-54

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 - - col0 - + - col0 * - col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT - CAST( - 70 AS SIGNED ) FROM tab1
----
70
70
70

skipif mysql # not compatible
query I rowsort label-9559
SELECT - CAST ( - 70 AS INTEGER ) FROM tab1
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9560
SELECT 57 DIV col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9560
SELECT 57 / col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col0 * + 50 AS col0 FROM tab1 cor0
----
2550
4250
4550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT DISTINCT - 97 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT - 97 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND + - ( - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL MAX( + - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL MAX ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9566
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IN ( - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ( SUM( + 24 ) ) AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9567
SELECT ( SUM ( + 24 ) ) AS col0 FROM tab0 AS cor0
----
72

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > ( NULL )
----

query II rowsort
SELECT ALL + col2 + 15, + col0 AS col2 FROM tab1 AS cor0
----
111
51
74
85
83
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT MAX( ALL + ( + + 55 ) ) AS col2 FROM tab0 cor0
----
55

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT MAX ( ALL + ( + + 55 ) ) AS col2 FROM tab0 cor0
----
55

query I rowsort
SELECT 35 * + - 71 + + + ( col2 ) FROM tab0 AS cor0 WHERE NOT - 90 NOT BETWEEN col1 AND col0 * - - col0 + 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 0 * + col0 col2, col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT ALL + + 31 * - col0 AS col2 FROM tab2 AS cor0
----
-1426
-1984
-2325

query I rowsort
SELECT + - col2 + - col0 FROM tab0 AS cor0 WHERE NOT - col1 - - - col2 IS NULL
----
-196
-62
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9575
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT + ( - 86 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-9576
SELECT + ( - 86 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-258

query I rowsort
SELECT - + 69 AS col1 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT - 66 * col1 + - - ( - col2 ) AS col0 FROM tab1
----
-1020
-3170
-389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 78 + col1 * 72 col1 FROM tab0
----
1600
249
5957

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9581
SELECT 56 + CAST( NULL AS SIGNED ) * - - 77 + COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9581
SELECT 56 + CAST ( NULL AS INTEGER ) * - - 77 + COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 38 NOT IN ( + col1 / + - 46 * - col2 * 24 + + 31 * 20, + col0 * + - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 85 AS col1, col1 FROM tab2
----
85
51
85
67
85
77

query I rowsort
SELECT ALL + col0 + - 84 FROM tab2 AS cor0
----
-20
-38
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT DISTINCT 8 - - + col0 - + - col1 DIV + + col2 col0 FROM tab1 cor0
----
59
93
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9585
SELECT DISTINCT 8 - - + col0 - + - col1 / + + col2 col0 FROM tab1 cor0
----
59
93
99

query I rowsort
SELECT ALL + + col2 - + + col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 97 * + - col2 + col2 + - + col2 AS col1, col2 col0 FROM tab1 AS cor0
----
5723
59
6596
68
9312
96

onlyif mysql # DIV for integer division: 
query II rowsort label-9588
SELECT col2, - 90 DIV - col1 col1 FROM tab1 AS cor0
----
59
18
68
1
96
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9588
SELECT col2, - 90 / - col1 col1 FROM tab1 AS cor0
----
59
18
68
1
96
6

query I rowsort
SELECT - + 24 * 1 AS col2 FROM tab0 AS cor0
----
-24
-24
-24

query II rowsort
SELECT + + col1 AS col0, + col1 * - col2 + - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL ( - MAX( - - col0 ) ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL ( - MAX ( - - col0 ) ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT ALL MAX( + - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL MAX ( + - col1 ) AS col0 FROM tab2
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL ) BETWEEN col0 + - col0 + col0 AND + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 52 IN ( + - 1 * + 45, 7 + - 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT ALL - + CAST( col2 AS SIGNED ) * + 80 AS col2 FROM tab0 AS cor0
----
-3760
-7920
-800

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL - + CAST ( col2 AS INTEGER ) * + 80 AS col2 FROM tab0 AS cor0
----
-3760
-7920
-800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9596
SELECT - CAST( + col0 AS SIGNED ) * + col1 + + ( 31 ) - CAST( NULL AS SIGNED ) AS col1, 28 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-9596
SELECT - CAST ( + col0 AS INTEGER ) * + col1 + + ( 31 ) - CAST ( NULL AS INTEGER ) AS col1, 28 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
28
NULL
28
NULL
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9597
SELECT ALL * FROM tab1 cor0 WHERE NOT + 80 + + CAST( ( + col0 ) AS SIGNED ) * + + col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-9597
SELECT ALL * FROM tab1 cor0 WHERE NOT + 80 + + CAST ( ( + col0 ) AS INTEGER ) * + + col1 > NULL
----

query II rowsort
SELECT ALL 92 * - col0 * 19 AS col2, col2 * - - col2 AS col0 FROM tab0
----
-152076
100
-169556
9801
-26220
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT - + MIN( ALL + 91 ) + - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-82

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - + MIN ( ALL + 91 ) + - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9600
SELECT - - CAST( NULL AS DECIMAL ) * + col1 + + 81 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT - - CAST ( NULL AS REAL ) * + col1 + + 81 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) * MAX( DISTINCT + ( + + col0 ) ) AS col0 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) * MAX ( DISTINCT + ( + + col0 ) ) AS col0 FROM tab0 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT + MAX( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9603
SELECT + MAX ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT - col1 + + col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 96 + + - ( 43 ) + + - col1 AS col0 FROM tab2 AS cor0
----
-14
-24
2

query I rowsort
SELECT - - col0 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
196
297
3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col2 + - 64 col1, + 23 AS col0 FROM tab0 cor0
----
641
23
806
23
9539
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT 39 + + MAX( - col1 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9608
SELECT 39 + + MAX ( - col1 ) FROM tab1 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + 42 col1 FROM tab2 AS cor0
----
-106
-117
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9610
SELECT DISTINCT col0 * + - 67 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT col0 * + - 67 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 * 94 * - col1 + + col2 + + col0 AS col2 FROM tab2 AS cor0
----
244563
422099
557430

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9612
SELECT DISTINCT + - COUNT( * ), CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9612
SELECT DISTINCT + - COUNT ( * ), CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT ALL + ( ( + col2 ) ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT SUM( DISTINCT - 68 ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-9614
SELECT SUM ( DISTINCT - 68 ) FROM tab1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT CAST( - + col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9615
SELECT CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - col0 + - 62 FROM tab1
----
-113
-147
-153

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + 51 - - col0 FROM tab1 cor0
----
102
136
142

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL <> NULL ) )
----

query II rowsort
SELECT - ( + col2 ) + + - col2 AS col2, - col0 * + col0 FROM tab0
----
-198
-9409
-20
-7569
-94
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT COUNT( * ) + + 29 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-9621
SELECT COUNT ( * ) + + 29 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + 84 + - + SUM( ALL col0 ) FROM tab1
----
-143

skipif mysql # not compatible
query I rowsort label-9622
SELECT + 84 + - + SUM ( ALL col0 ) FROM tab1
----
-143

query I rowsort
SELECT ALL ( - 45 ) + - + col0 AS col0 FROM tab1
----
-130
-136
-96

query I rowsort
SELECT ALL - + col0 + - col1 + - + col1 - col2 AS col2 FROM tab1 AS cor0
----
-154
-175
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT COUNT( DISTINCT - - col1 ) * - 1 + - 71 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9625
SELECT COUNT ( DISTINCT - - col1 ) * - 1 + - 71 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT col1 + col0 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( - - 28 ) AND + 96 + - col1 * + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( + col2 ) ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 23 col0, col0 * + 28 AS col1 FROM tab0
----
23
2436
23
2716
23
420

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT COUNT( * ) * + 28 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-9630
SELECT COUNT ( * ) * + 28 FROM tab1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, + col0 col2 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT col2 * - col2 * - col1 * - - col1 AS col1 FROM tab2
----
1375929
15100996
9486400

query II rowsort
SELECT ALL col0, - col2 + col2 AS col0 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT DISTINCT - ( + - 39 ) AS col1 FROM tab1
----
39

query II rowsort
SELECT DISTINCT + col0 AS col2, col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9636
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 70 - - CAST( + - 18 AS DECIMAL ) + + + col0 + + - 21 * + col1 * - 88 * - col1 < col1
----

skipif mysql # not compatible
query III rowsort label-9636
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 70 - - CAST ( + - 18 AS REAL ) + + + col0 + + - 21 * + col1 * - 88 * - col1 < col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 33 * + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 76 * + col1 + - 92 + - ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT ( + col2 ) + 87 FROM tab2
----
110
127
145

query I rowsort
SELECT + - 53 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT DISTINCT - ( + COUNT( * ) ) + + 32 AS col0 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT - ( + COUNT ( * ) ) + + 32 AS col0 FROM tab1 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 71 NOT BETWEEN NULL AND col1 - col0 + + col0 * - + 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 37 + col0 * + col2 FROM tab0 cor0
----
668
833
9566

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL - COUNT( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL - COUNT ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + + col0 + + col0 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT + MAX( ALL col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT + MAX ( ALL col0 ) FROM tab0
----
97

query II rowsort
SELECT col2 + - - ( - - col1 ) AS col1, - col2 AS col0 FROM tab1
----
110
-96
115
-68
64
-59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( - + 54 + 10 IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col0 + 74 + + 68 col1 FROM tab2
----
1200
2702
4492

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9650
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col1 * col0 + ( + ( + + 54 ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT CAST ( NULL AS REAL ) * - col1 * col0 + ( + ( + + 54 ) ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 46 col0 FROM tab2
----
110
121
92

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - 0 * - - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - ( + col2 ) ) - - ( - col0 ) - col0 FROM tab1 AS cor0
----
-111
-114
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 + + col2 ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 23 * 92 FROM tab2 WHERE 53 IS NOT NULL
----
2116
2116
2116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT COUNT( * ) DIV - 29 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT COUNT ( * ) / - 29 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT 95 DIV 80 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9658
SELECT 95 / 80 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + col0 * - col1 AS col1 FROM tab1 WHERE + 98 * - col1 >= - 94 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT 2 + COUNT( * ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT 2 + COUNT ( * ) AS col0 FROM tab1
----
5

query I rowsort
SELECT ALL - col1 * - col2 + col0 FROM tab2 WHERE ( 25 + + col0 ) > col1
----
1219
3144
3961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 WHERE col2 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9663
SELECT * FROM tab1 WHERE + CAST( 38 AS SIGNED ) <= 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9663
SELECT * FROM tab1 WHERE + CAST ( 38 AS INTEGER ) <= 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT DISTINCT col0 DIV 19 + + col1 * - col1 FROM tab0
----
-437
-6561
4

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT col0 / 19 + + col1 * - col1 FROM tab0
----
-437
-6561
4

query I rowsort
SELECT DISTINCT + col1 - 47 AS col1 FROM tab0
----
-26
-46
34

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( 27 ) / 57 NOT IN ( - col2 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT + COUNT( - 42 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9667
SELECT + COUNT ( - 42 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9668
SELECT * FROM tab1 WHERE ( + 58 * col1 - + col1 ) >= + col2 + + col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9668
SELECT * FROM tab1 WHERE ( + 58 * col1 - + col1 ) >= + col2 + + col1 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 + - 26 AS col0 FROM tab2
----
-103
-77
-93

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + 36 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT ALL 47 + 78 DIV - col2 AS col1 FROM tab1
----
46
46
47

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL 47 + 78 / - col2 AS col1 FROM tab1
----
46
46
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9672
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9672
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( 98 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - ( 27 ) AS col1 FROM tab2 AS cor0
----
-1377
-1809
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT + COUNT( * ) * + 62 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-9675
SELECT + COUNT ( * ) * + 62 FROM tab1 AS cor0
----
186

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 60 IN ( col1 )
----

query I rowsort
SELECT ALL col1 + 9 * - 32 FROM tab2 AS cor0
----
-211
-221
-237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9679
SELECT DISTINCT + - COUNT( * ) DIV 51 + MAX( + 38 ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT + - COUNT ( * ) / 51 + MAX ( + 38 ) FROM tab1 AS cor0
----
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 92 IS NULL
----

query I rowsort
SELECT 61 + + col2 AS col0 FROM tab1 AS cor0
----
120
129
157

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT 16 * - col2 + - col0 * + CAST( ( - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
3360
4071
5100

skipif mysql # not compatible
query I rowsort label-9683
SELECT 16 * - col2 + - col0 * + CAST ( ( - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
3360
4071
5100

query I rowsort
SELECT ALL 8 + + col2 FROM tab0 AS cor0
----
107
18
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9685
SELECT + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT + CAST ( NULL AS REAL ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( + 69 ) FROM tab0 AS cor0 WHERE ( - col1 + + ( col2 ) ) BETWEEN col2 + 59 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + ( - col2 ) ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 57 - col0 AS col0 FROM tab2 AS cor0
----
-103
-121
-132

query I rowsort
SELECT 61 AS col0 FROM tab0 WHERE NULL < 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT DISTINCT MIN( - ( + 38 ) ) AS col0 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT MIN ( - ( + 38 ) ) AS col0 FROM tab0
----
-38

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) + col1 IS NULL
----

query I rowsort
SELECT ALL - col2 + - col0 FROM tab1 WHERE + 33 NOT IN ( col2 )
----
-144
-147
-159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 32 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT DISTINCT + AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NULL >= 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT + AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NULL >= 88
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col0 FROM tab0 WHERE + col1 NOT IN ( + col2 + col2 )
----
-46
-46
-46

query I rowsort
SELECT DISTINCT 94 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ( + 65 ) - COUNT( * ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-9697
SELECT ( + 65 ) - COUNT ( * ) AS col0 FROM tab1
----
62

query I rowsort
SELECT DISTINCT - col2 - col2 + + col0 FROM tab1 AS cor0
----
-141
-33
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT - 77 DIV - 84 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9699
SELECT - 77 / - 84 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT 86 DIV - col1 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-9700
SELECT 86 / - col1 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9701
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9701
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT DISTINCT + + 26 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT + + 26 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 - - 48 - - ( 78 ) / + col1 IN ( 43 * - ( 56 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9705
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT col2 * 53 * + 56 AS col0 FROM tab1
----
175112
201824
284928

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT SUM( 29 ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT SUM ( 29 ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 44 ) col0, + col2 AS col2 FROM tab2
----
44
23
44
40
44
58

query II rowsort
SELECT ALL + 35 * col1, - col0 + + col2 AS col1 FROM tab2
----
1785
-23
2345
-17
2695
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT ALL col2 DIV + col0 * + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL col2 / + col0 * + col0 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 BETWEEN + 0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9712
SELECT - SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 60 AS col0 FROM tab2 WHERE NOT - - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT DISTINCT - - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT - - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT ALL - ( + + col0 ) DIV - col0 + + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL - ( + + col0 ) / - col0 + + col0 FROM tab2
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT COUNT( * ) * 24 FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NOT - 65 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9716
SELECT COUNT ( * ) * 24 FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NOT - 65 IS NOT NULL
----
0

query I rowsort
SELECT + - 99 FROM tab1 WHERE - col0 IS NOT NULL
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9718
SELECT ALL - CAST( NULL AS SIGNED ) * ( - - 23 ) + + ( col1 ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9718
SELECT ALL - CAST ( NULL AS INTEGER ) * ( - - 23 ) + + ( col1 ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 <> col0
----
0

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 <> col0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col0 * + - 23
----

query I rowsort
SELECT ALL col2 * col2 + - col2 FROM tab1 AS cor0
----
3422
4556
9120

onlyif mysql # aggregate syntax: 
query II rowsort label-9723
SELECT DISTINCT + COUNT( - - 69 ) - + 30 AS col2, COUNT( * ) FROM tab1 AS cor0
----
-27
3

skipif mysql # not compatible
query II rowsort label-9723
SELECT DISTINCT + COUNT ( - - 69 ) - + 30 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-27
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 / - col1 ) >= ( + col2 * + + 19 )
----

query I rowsort
SELECT + - 89 + - col2 AS col0 FROM tab2 AS cor0
----
-112
-129
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9726
SELECT + col2 * - CAST( NULL AS SIGNED ) * 18 + 25 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT + col2 * - CAST ( NULL AS INTEGER ) * 18 + 25 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT col0 * col1 + - col2 + col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT - SUM( ALL col2 ) + + 88 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-9729
SELECT - SUM ( ALL col2 ) + + 88 FROM tab0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col2 * + - col1 FROM tab0
----
10
-210
47
-3807
99
-99

query I rowsort
SELECT DISTINCT - col1 * + col1 * - - 91 + + col2 * + + col0 FROM tab2
----
-235633
-404149
-536979

query II rowsort
SELECT DISTINCT - col1 AS col1, 20 FROM tab0
----
-1
20
-21
20
-81
20

query I rowsort
SELECT - 96 + + - col0 FROM tab1
----
-147
-181
-187

query II rowsort
SELECT DISTINCT 13, col2 + + col1 AS col1 FROM tab2
----
13
117
13
125
13
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9735
SELECT + 3 AS col1, ( - + COUNT( * ) ) * + MIN( - 51 ) FROM tab1
----
3
153

skipif mysql # not compatible
query II rowsort label-9735
SELECT + 3 AS col1, ( - + COUNT ( * ) ) * + MIN ( - 51 ) FROM tab1
----
3
153

query I rowsort
SELECT ALL - - col2 + - 87 AS col1 FROM tab0 AS cor0
----
-40
-77
12

query I rowsort
SELECT + 76 * + + col2 * - 55 AS col1 FROM tab1 cor0
----
-246620
-284240
-401280

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN + ( - + ( 2 ) ) AND 94
----
15
81
47
87
21
10

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col0 / - - col0 + - - 46 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL - ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9740
SELECT ALL - ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND + 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT DISTINCT col1 * - + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9742
SELECT DISTINCT col1 * - + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 NOT IN ( - col2, 31 * - 97 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9744
SELECT + SUM( ALL + col1 ) / + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 22 * + + 79 / + 48 - 12 * + 73 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT + SUM ( ALL + col1 ) / + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 22 * + + 79 / + 48 - 12 * + 73 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - ( + col1 ) * - - col2 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - 68 * - ( col1 ) FROM tab1 AS cor0
----
3196
340
952

query I rowsort
SELECT ALL + col1 * - col2 * - col1 + - + 18 AS col1 FROM tab2 AS cor0
----
237142
260344
59805

query I rowsort
SELECT + col0 * - - col2 + - - col0 * - col0 FROM tab2 cor0
----
-1058
-1275
-1536

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 56 FROM tab2 cor0 WHERE 48 < NULL
----

query I rowsort
SELECT DISTINCT + - ( - + 58 ) * col1 AS col2 FROM tab2 AS cor0
----
2958
3886
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT ALL - COUNT( + + col2 ) FROM tab1 cor0 WHERE ( NOT - col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - COUNT ( + + col2 ) FROM tab1 cor0 WHERE ( NOT - col2 IS NOT NULL )
----
0

query I rowsort
SELECT col0 + + col1 FROM tab0 WHERE NOT col2 IS NULL
----
108
96
98

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9755
SELECT * FROM tab2 WHERE NOT - CAST( col1 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9755
SELECT * FROM tab2 WHERE NOT - CAST ( col1 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9756
SELECT + CAST( 46 AS SIGNED ) AS col1 FROM tab1
----
46
46
46

skipif mysql # not compatible
query I rowsort label-9756
SELECT + CAST ( 46 AS INTEGER ) AS col1 FROM tab1
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT ALL ( + - col1 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL ( + - col1 ) / - col1 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + 46 * + 33 FROM tab1 AS cor0
----
1518
1518
1518

onlyif mysql # aggregate syntax: 
query II rowsort label-9759
SELECT - - COUNT( * ) AS col1, + 13 FROM tab2 cor0
----
3
13

skipif mysql # not compatible
query II rowsort label-9759
SELECT - - COUNT ( * ) AS col1, + 13 FROM tab2 cor0
----
3
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL - + 4 * - - COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - + 4 * - - COUNT ( * ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT DISTINCT - col1 DIV 64 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT - col1 / 64 FROM tab2
----
-1
0

query I rowsort
SELECT + ( + + col2 ) + + - col0 FROM tab1 AS cor0
----
-23
-26
45

query II rowsort
SELECT + col0 + - col1 + - + col1 * - col0, col2 FROM tab1 AS cor0
----
4321
68
505
59
751
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) * - - col1 NOT IN ( + 12 + + + col2, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 + + ( + 12 ) FROM tab2 AS cor0
----
-11
-28
-46

query II rowsort
SELECT col1 AS col1, + col1 AS col0 FROM tab2 AS cor0 WHERE + col0 * 35 * col2 IS NOT NULL
----
51
51
67
67
77
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 < 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT + col2 DIV - + 23 AS col2 FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-9769
SELECT + col2 / - + 23 AS col2 FROM tab0
----
-2
-4
0

query I rowsort
SELECT - 47 - - - 65 FROM tab0
----
-112
-112
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL MAX( + + 1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL MAX ( + + 1 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT ALL + CAST( - - col0 AS SIGNED ) + - + 3 FROM tab0
----
12
84
94

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + CAST ( - - col0 AS INTEGER ) + - + 3 FROM tab0
----
12
84
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT + 78 * + col1 - - col0 DIV 76 AS col2 FROM tab0
----
1639
6318
79

skipif mysql # not compatible
query I rowsort label-9773
SELECT + 78 * + col1 - - col0 / 76 AS col2 FROM tab0
----
1639
6318
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9774
SELECT - col1 * 90 DIV + + 11 FROM tab2
----
-417
-548
-630

skipif mysql # not compatible
query I rowsort label-9774
SELECT - col1 * 90 / + + 11 FROM tab2
----
-417
-548
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9775
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col1 * + - col2 * + col2, col1 * - 0 AS col2 FROM tab1 AS cor0
----
129024
0
17405
0
217328
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 12 * 60 - + - 11 ) NOT IN ( + ( col0 ), 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL - - MAX( ALL - col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - - MAX ( ALL - col1 ) FROM tab1 cor0
----
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT - 15 + - + 47 > - col2
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col1 * - - col2 col2 FROM tab0
----
10
210
47
3807
99
99

query I rowsort
SELECT ALL - col1 * + col2 FROM tab2 AS cor0 WHERE NOT ( + 4 ) IN ( col1, + col0 )
----
-1173
-3080
-3886

query I rowsort
SELECT + col0 * - 40 AS col2 FROM tab0 AS cor0
----
-3480
-3880
-600

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( + 34 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 91 ) FROM tab0 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT + CAST( - + col2 AS SIGNED ) * - 56 FROM tab0
----
2632
5544
560

skipif mysql # not compatible
query I rowsort label-9785
SELECT + CAST ( - + col2 AS INTEGER ) * - 56 FROM tab0
----
2632
5544
560

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT - col0 DIV ( col1 ) + - - col2 col2 FROM tab1
----
42
67
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9786
SELECT - col0 / ( col1 ) + - - col2 col2 FROM tab1
----
42
67
93

onlyif mysql # DIV for integer division: 
query II rowsort label-9787
SELECT DISTINCT col1 + 92 DIV col0 AS col0, + 40 AS col0 FROM tab1
----
15
40
48
40
6
40

skipif mysql # not compatible
query II rowsort label-9787
SELECT DISTINCT col1 + 92 / col0 AS col0, + 40 AS col0 FROM tab1
----
15
40
48
40
6
40

query I rowsort
SELECT - - col2 AS col2 FROM tab2 WHERE + 49 < - - 30
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 29 * - 80 + + 41 * - col2 IN ( + 55 )
----

query I rowsort
SELECT ALL 37 + + 38 AS col0 FROM tab1
----
75
75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9791
SELECT - + CAST( + COUNT( * ) AS SIGNED ) - COUNT( - 76 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9791
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) - COUNT ( - 76 ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT 53 * col0 * 42 - 71 FROM tab2 cor0
----
102325
142393
166879

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 < - col2 * col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - ( + - 44 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + + 4 - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9795
SELECT + + 4 - COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL col0 * + col2 * 33 - - col2 AS col1 FROM tab0 AS cor0 WHERE ( - 28 ) > NULL
----

query I rowsort
SELECT ALL - col2 + + ( - col1 ) + - - 33 AS col0 FROM tab0 AS cor0
----
-67
-95
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE ( - - 45 * col2 - + col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE ( - - 45 * col2 - + col1 IS NULL )
----
0

query I rowsort
SELECT DISTINCT + col1 - - col1 + col2 * + col0 + + col2 FROM tab2 AS cor0
----
1183
2754
4542

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9800
SELECT DISTINCT + col2 * - col0 + - col1 - - + col1 + + col2 * - 16 * + - 75 + + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT + col2 * - col0 + - col1 - - + col1 + + col2 * - 16 * + - 75 + + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * + 81 + + + col2 * - col0 * + col2 + - 28 AS col0 FROM tab0
----
-29356
-7918
-942706

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT COUNT( * ) + + 29 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-9802
SELECT COUNT ( * ) + + 29 FROM tab2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col0 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9803
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col0 col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT 18 * + COUNT( * ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-9804
SELECT 18 * + COUNT ( * ) FROM tab0
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) <> ( - ( + col0 ) - col1 * + 26 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9806
SELECT + + col1 DIV - - col0 AS col0, - col1 * - 22 * + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
NULL
0
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9806
SELECT + + col1 / - - col0 AS col0, - col1 * - 22 * + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
NULL
0
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT - AVG ( - + 82 ) * 77 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL AND NOT + + CAST( col1 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT - AVG ( - + 82 ) * 77 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL AND NOT + + CAST ( col1 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT + - 14 + - MIN( DISTINCT col1 ) FROM tab0 WHERE NOT NULL > - col0 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT + - 14 + - MIN ( DISTINCT col1 ) FROM tab0 WHERE NOT NULL > - col0 * 25
----
NULL

query I rowsort
SELECT 81 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 78 * + + 88 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9811
SELECT - + CAST( - ( + - col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9811
SELECT - + CAST ( - ( + - col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL ( - 69 ) FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + - 63 * - col1 * 37 + - col0 + + col1 * - col2 * + 49 FROM tab2 AS cor0
----
-34312
28503
61358

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL + MAX( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + MAX ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - col0 + 28 FROM tab2 AS cor0
----
-18
-36
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT + 22 + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9817
SELECT + 22 + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT DISTINCT + - COUNT( col0 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT + - COUNT ( col0 ) AS col0 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE + + 59 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL <= 96
----

query I rowsort
SELECT ALL ( + 57 ) * - - 38 FROM tab1
----
2166
2166
2166

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT + ( + + COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9822
SELECT + ( + + COUNT ( * ) ) col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE - 89 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9824
SELECT DISTINCT - col0 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT - col0 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9825
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + CAST( NULL AS SIGNED ) + + col2 AND + + col2
----

skipif mysql # not compatible
query III rowsort label-9825
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + CAST ( NULL AS INTEGER ) + + col2 AND + + col2
----

query I rowsort
SELECT ALL 38 + + col1 FROM tab0 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL + 86 * - 50 * + + col2 AS col2 FROM tab1
----
-253700
-292400
-412800

query II rowsort
SELECT DISTINCT - - 46 * - 56 + - col1 AS col0, - col1 FROM tab0 AS cor0
----
-2577
-1
-2597
-21
-2657
-81

query I rowsort
SELECT ALL - col2 - + + col2 + - 60 * + 27 + - + 40 FROM tab2 cor0
----
-1706
-1740
-1776

onlyif mysql # DIV for integer division: 
query I rowsort label-9830
SELECT ALL col0 DIV + 17 - col2 + + 99 FROM tab2 AS cor0 WHERE NULL IS NULL
----
45
62
78

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL col0 / + 17 - col2 + + 99 FROM tab2 AS cor0 WHERE NULL IS NULL
----
45
62
78

query II rowsort
SELECT DISTINCT 29 + col1 AS col2, col0 FROM tab2 AS cor0
----
106
64
80
46
96
75

query I rowsort
SELECT DISTINCT ( - 96 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-96

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL + - COUNT( - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL + - COUNT ( - col0 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <> - 30
----

query I rowsort
SELECT DISTINCT - col1 * - - 21 FROM tab2
----
-1071
-1407
-1617

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ( + 47 ) * - col0 AS col0, col2 FROM tab0
----
-4089
10
-4559
99
-705
47

query I rowsort
SELECT ALL - col1 * 67 * - + col1 AS col1 FROM tab1
----
13132
148003
1675

query I rowsort
SELECT - 66 * + + 48 AS col0 FROM tab0
----
-3168
-3168
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT - 51 * + - COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-9841
SELECT - 51 * + - COUNT ( * ) FROM tab0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9842
SELECT 39 DIV + ( + COUNT( * ) ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-9842
SELECT 39 / + ( + COUNT ( * ) ) FROM tab1
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT + 16, col0 - + 3 AS col0 FROM tab0 AS cor0
----
16
12
16
84
16
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 / 96 ) <= - 35 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 22 AS col2, + col0 * col0 FROM tab2 AS cor0
----
22
2116
22
4096
22
5625

query II rowsort
SELECT ALL - 56 AS col1, - col0 AS col1 FROM tab1 cor0
----
-56
-51
-56
-85
-56
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + col1 - + + col0 - + ( - col1 ) * + col2 IS NOT NULL OR + + col2 NOT IN ( + - 87, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9849
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) DIV + 22 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) / + 22 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9850
SELECT DISTINCT * FROM tab2 WHERE + CAST( + 73 AS SIGNED ) + - 93 BETWEEN + 96 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9850
SELECT DISTINCT * FROM tab2 WHERE + CAST ( + 73 AS INTEGER ) + - 93 BETWEEN + 96 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - col0 + - + 89 - - 97 * + + 46 - - col2 AS col1 FROM tab2 cor0
----
-1194
2280
317

query II rowsort
SELECT ALL - col2 AS col0, 37 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL + COUNT( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + COUNT ( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col1 * + col1 AS col0, col2 FROM tab0 cor0
----
-1
99
-441
10
-6561
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col2 col0 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT + col2 * - col2 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
-100
-87
-2209
-15
-9801
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT - 25 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9857
SELECT - 25 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ( - + COUNT( * ) ) * + 49 + - - COUNT( * ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-9858
SELECT ( - + COUNT ( * ) ) * + 49 + - - COUNT ( * ) FROM tab2
----
-144

query I rowsort
SELECT ALL ( + - col1 ) + + col0 * + ( col0 ) AS col1 FROM tab2
----
2065
4019
5558

query I rowsort
SELECT - col2 + + + col0 + - col1 + - + 39 AS col2 FROM tab0
----
-152
-42
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9861
SELECT col2 + + CAST( NULL AS SIGNED ) + - + col0 AS col2, col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9861
SELECT col2 + + CAST ( NULL AS INTEGER ) + - + col0 AS col2, col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT ALL 28 AS col2 FROM tab1 WHERE col1 < - 98 * - + CAST( - - col2 AS SIGNED )
----
28
28
28

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL 28 AS col2 FROM tab1 WHERE col1 < - 98 * - + CAST ( - - col2 AS INTEGER )
----
28
28
28

query I rowsort
SELECT - 8 * - col0 + + 36 FROM tab2
----
404
548
636

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL - COUNT( ALL + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - COUNT ( ALL + col0 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col2 + + + 38 FROM tab0
----
137
48
85

query I rowsort
SELECT DISTINCT - col0 + 13 AS col2 FROM tab1
----
-38
-72
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 WHERE - col0 + + 97 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 + + 97 IS NULL
----
0

query I rowsort
SELECT ALL - + 65 + + col1 FROM tab2 AS cor0
----
-14
12
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 71 = NULL
----

query II rowsort
SELECT col2 * + col2 AS col2, col2 * - col2 FROM tab0
----
100
-100
2209
-2209
9801
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT + + MAX( 82 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT + + MAX ( 82 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9872
SELECT ALL - + ( COUNT( * ) ) AS col2, COUNT( ALL - col1 ) DIV + - COUNT( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-9872
SELECT ALL - + ( COUNT ( * ) ) AS col2, COUNT ( ALL - col1 ) / + - COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-3
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT ALL - ( + CAST( - 29 AS SIGNED ) ) FROM tab2 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL - ( + CAST ( - 29 AS INTEGER ) ) FROM tab2 AS cor0
----
29
29
29

query III rowsort
SELECT - col0, + col0 AS col0, + col0 FROM tab2 cor0
----
9 values hashing to 8ebbaa74e664d20c3a2272cbd927b619

query II rowsort
SELECT - col2 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT ALL col0 * - - ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL col0 * - - ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 9 AS col0, col2 FROM tab0 AS cor0
----
9
10
9
47
9
99

query I rowsort
SELECT ( - 27 ) AS col2 FROM tab2
----
-27
-27
-27

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT - CAST( MIN( + col1 ) AS SIGNED ) * - COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9881
SELECT - CAST ( MIN ( + col1 ) AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9882
SELECT + COUNT( * ) * - - COUNT( * ) AS col2, 55 + + - COUNT( * ) FROM tab0 AS cor0
----
9
52

skipif mysql # not compatible
query II rowsort label-9882
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col2, 55 + + - COUNT ( * ) FROM tab0 AS cor0
----
9
52

query I rowsort
SELECT + + ( + + col1 ) - + - 25 - - col0 - + col2 FROM tab1 AS cor0 WHERE NOT ( NOT - 69 * + col2 IS NOT NULL )
----
-6
56
95

query I rowsort
SELECT - 61 * col2 - - + col1 * + - col1 FROM tab1 cor0
----
-3624
-6052
-6357

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + - 52 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT col0 + + 57 * col1 DIV - ( col0 ) FROM tab2 cor0
----
-17
-4
25

skipif mysql # not compatible
query I rowsort label-9886
SELECT col0 + + 57 * col1 / - ( col0 ) FROM tab2 cor0
----
-17
-4
25

query I rowsort
SELECT + 92 + - col0 AS col2 FROM tab1 AS cor0
----
1
41
7

onlyif mysql # DIV for integer division: 
query II rowsort label-9888
SELECT + col2 + - col1 DIV 23, col2 FROM tab0 AS cor0
----
10
10
44
47
99
99

skipif mysql # not compatible
query II rowsort label-9888
SELECT + col2 + - col1 / 23, col2 FROM tab0 AS cor0
----
10
10
44
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + - col1 col0 FROM tab0 AS cor0
----
16
76
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT + - CAST( NULL AS SIGNED ) * + 27 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT + - CAST ( NULL AS INTEGER ) * + 27 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - 2 NOT IN ( - - 54 + col2 * + col2 / - 4 + + - 54, + col2, - + col2, 76 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 41 * col2 * - - 90 FROM tab2
----
-147600
-214020
-84870

query I rowsort
SELECT DISTINCT - ( - - 74 ) AS col1 FROM tab1 WHERE NULL <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT ALL CAST( + col2 AS SIGNED ) + - - col1 - + CAST( NULL AS SIGNED ) - 79 * - col2 / - 74 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL CAST ( + col2 AS INTEGER ) + - - col1 - + CAST ( NULL AS INTEGER ) - 79 * - col2 / - 74 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 - - ( ( - col2 ) ) FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - col2 - - - 9 * col2 AS col2 FROM tab2 AS cor0
----
-230
-400
-580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT ALL - CAST( - col1 AS SIGNED ) * col0 + + col0 FROM tab0 AS cor0
----
1230
1914
194

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL - CAST ( - col1 AS INTEGER ) * col0 + + col0 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT + 18 - 67 + + - col2 * ( + col2 ) * - col2 FROM tab0 AS cor0
----
103774
951
970250

query I rowsort
SELECT DISTINCT col1 - - - 73 * + 34 AS col1 FROM tab2 AS cor0
----
-2405
-2415
-2431

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT MAX( ALL - - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9900
SELECT MAX ( ALL - - col1 ) FROM tab0
----
81

query I rowsort
SELECT - - 72 AS col1 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT - SUM( DISTINCT 53 ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9902
SELECT - SUM ( DISTINCT 53 ) FROM tab0 AS cor0
----
-53

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col0 ) BETWEEN col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 72 FROM tab2 AS cor0 WHERE NOT col2 + col1 IS NULL
----
72
72
72

query II rowsort
SELECT ALL + 16 AS col2, col1 AS col0 FROM tab1
----
16
14
16
47
16
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9906
SELECT COUNT( * ) AS col1, 59 AS col2 FROM tab1
----
3
59

skipif mysql # not compatible
query II rowsort label-9906
SELECT COUNT ( * ) AS col1, 59 AS col2 FROM tab1
----
3
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9907
SELECT ALL + 49, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
49
NULL
49
NULL
49
NULL

skipif mysql # not compatible
query II rowsort label-9907
SELECT ALL + 49, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
49
NULL
49
NULL
49
NULL

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0 AS col0, col1 * - col1 AS col2 FROM tab2
----
46
-2601
64
-5929
75
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT - - COUNT( * ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT col1 AS col1, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 93 ) col0 FROM tab1
----
-93

query I rowsort
SELECT ALL - col2 * + + 3 FROM tab1
----
-177
-204
-288

query II rowsort
SELECT DISTINCT + 5 AS col0, + col1 * - 55 AS col0 FROM tab1
----
5
-2585
5
-275
5
-770

query I rowsort
SELECT + 34 * - + col0 FROM tab2 AS cor0
----
-1564
-2176
-2550

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT DISTINCT - col1 DIV - - col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT - col1 / - - col1 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9917
SELECT DISTINCT + 17 * - - ( - COUNT( * ) ) DIV - 49 FROM tab1 AS cor0 WHERE NOT - col0 * 1 - - col2 - - CAST( NULL AS DECIMAL ) + - ( - 53 ) * + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT + 17 * - - ( - COUNT ( * ) ) / - 49 FROM tab1 AS cor0 WHERE NOT - col0 * 1 - - col2 - - CAST ( NULL AS REAL ) + - ( - 53 ) * + - col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT - + 10 * - col1 * 19 + + col2 FROM tab1 AS cor0
----
1009
2756
8998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 + - - CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 + - - CAST ( - col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + + col2 FROM tab0
----
198
20
94

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT DISTINCT 89 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT 89 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT + col1 AS col0, col0 * - col1 * - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
107916
67
376875
77
315392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9926
SELECT DISTINCT + COUNT( * ) DIV 12 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT + COUNT ( * ) / 12 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT - ( COUNT( * ) ) * + CAST( - MIN( - 72 ) AS SIGNED ) * CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) * - 7 + 12 * + 0 FROM tab2 AS cor0
----
-13608

skipif mysql # not compatible
query I rowsort label-9927
SELECT - ( COUNT ( * ) ) * + CAST ( - MIN ( - 72 ) AS INTEGER ) * CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * - 7 + 12 * + 0 FROM tab2 AS cor0
----
-13608

query II rowsort
SELECT DISTINCT col2 + 67, 69 AS col0 FROM tab2 AS cor0
----
107
69
125
69
90
69

query II rowsort
SELECT ALL + ( - - col2 ), - col0 AS col2 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT + ( - 6 ) + + col1 AS col0 FROM tab2
----
45
61
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9931
SELECT 91 DIV + 93 * + col1 + - col0 + col1 * + - ( col1 ) FROM tab2
----
-2647
-4564
-5993

skipif mysql # not compatible
query I rowsort label-9931
SELECT 91 / + 93 * + col1 + - col0 + col1 * + - ( col1 ) FROM tab2
----
-2647
-4564
-5993

query I rowsort
SELECT DISTINCT 51 + 28 FROM tab0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT MAX( - col1 ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT MAX ( - col1 ) AS col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT - - col2 - - - col1 - - - col0 FROM tab0 AS cor0
----
-49
-98
1

query I rowsort
SELECT ALL - 0 - col2 * - col2 * - + 12 FROM tab0 AS cor0
----
-117612
-1200
-26508

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 cor0 WHERE 45 > - col2 * + 69 + - col1 + + col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT - + COUNT( + + col1 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9937
SELECT - + COUNT ( + + col1 ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9938
SELECT ALL + CAST( - ( COUNT( * ) ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL + CAST ( - ( COUNT ( * ) ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9939
SELECT ALL COUNT( * ) * - 93, + 6 AS col0 FROM tab2
----
-279
6

skipif mysql # not compatible
query II rowsort label-9939
SELECT ALL COUNT ( * ) * - 93, + 6 AS col0 FROM tab2
----
-279
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9940
SELECT ALL CAST( + + col2 AS SIGNED ), + col1 FROM tab0 cor0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-9940
SELECT ALL CAST ( + + col2 AS INTEGER ), + col1 FROM tab0 cor0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 57 col0 FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT DISTINCT + 26 AS col1, + COUNT( * ) FROM tab0
----
26
3

skipif mysql # not compatible
query II rowsort label-9942
SELECT DISTINCT + 26 AS col1, + COUNT ( * ) FROM tab0
----
26
3

query I rowsort
SELECT ALL col2 + col2 + + col2 AS col2 FROM tab1 WHERE NOT 80 + - + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 64 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL 42 * + - MIN( ALL 46 ) FROM tab2
----
-1932

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL 42 * + - MIN ( ALL 46 ) FROM tab2
----
-1932

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9946
SELECT ALL - + col0 / + - col0 + - + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT + col2 + + ( + + 37 ) + col2 * col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - + col0 / + - col0 + - + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT + col2 + + ( + + 37 ) + col2 * col2 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 + + col0 + col1 AS col2, col1 AS col0 FROM tab2
----
143
51
205
77
217
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 17 * + col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 8 * + 41 AS col0 FROM tab2 AS cor0
----
328
328
328

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9950
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9950
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT COUNT( * ) * - MIN( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9951
SELECT COUNT ( * ) * - MIN ( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - + col0 * + - 3 FROM tab0 AS cor0
----
261
291
45

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - col2 * + col2 / - col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT DISTINCT + COUNT( + ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT + COUNT ( + ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9955
SELECT 80 FROM tab0 AS cor0 WHERE + col2 IN ( - CAST( NULL AS DECIMAL ), ( + col0 ), + ( + + 52 ) )
----

skipif mysql # not compatible
query I rowsort label-9955
SELECT 80 FROM tab0 AS cor0 WHERE + col2 IN ( - CAST ( NULL AS REAL ), ( + col0 ), + ( + + 52 ) )
----

query II rowsort
SELECT DISTINCT - col0 AS col0, ( - col2 ) FROM tab0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT + CAST( NULL AS SIGNED ) + - - 10 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT + CAST ( NULL AS INTEGER ) + - - 10 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT - col2 + + col0 * col0 - col0 * - + ( col1 ) * - col1 + + CAST( + + col1 AS SIGNED ) * - 53 FROM tab2
----
-120256
-334659
-379481

skipif mysql # not compatible
query I rowsort label-9958
SELECT - col2 + + col0 * col0 - col0 * - + ( col1 ) * - col1 + + CAST ( + + col1 AS INTEGER ) * - 53 FROM tab2
----
-120256
-334659
-379481

query I rowsort
SELECT 78 + ( - 10 ) AS col1 FROM tab0 AS cor0 WHERE + col0 + - col2 IS NOT NULL
----
68
68
68

query I rowsort
SELECT + 33 + - + 16 AS col0 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT ALL + col0 + - 44 FROM tab1 AS cor0
----
41
47
7

query I rowsort
SELECT 67 * col1 * - col0 + - - col2 + - 33 AS col0 FROM tab1 AS cor0
----
-28449
-286524
-47775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT - CAST( + + 99 AS SIGNED ) FROM tab2 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-9963
SELECT - CAST ( + + 99 AS INTEGER ) FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL - 66 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-66
-66
-66

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + col1 = + - col1 * + col1 - - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT ALL - MAX( - 61 ) AS col0 FROM tab1 cor0
----
61

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL - MAX ( - 61 ) AS col0 FROM tab1 cor0
----
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT DISTINCT + MAX( DISTINCT - col1 ) * + 22 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT + MAX ( DISTINCT - col1 ) * + 22 FROM tab0
----
-22

query I rowsort
SELECT ALL - 19 * - + 32 FROM tab0
----
608
608
608

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT DISTINCT COUNT( * ) * - ( + - COUNT( * ) ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT COUNT ( * ) * - ( + - COUNT ( * ) ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT COUNT( DISTINCT + col2 ) - 90 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-9971
SELECT COUNT ( DISTINCT + col2 ) - 90 FROM tab0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT col0 * - CAST( NULL AS SIGNED ) * - col0 - - + ( + col2 ) * - 18 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT col0 * - CAST ( NULL AS INTEGER ) * - col0 - - + ( + col2 ) * - 18 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 12 FROM tab1 WHERE NULL BETWEEN NULL AND + 61
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT - 72 DIV - 78 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9974
SELECT - 72 / - 78 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query III rowsort label-9975
SELECT ALL 95 * + - 82 * - + 63 AS col0, COUNT( * ) AS col1, ( COUNT( * ) ) FROM tab1
----
490770
3
3

skipif mysql # not compatible
query III rowsort label-9975
SELECT ALL 95 * + - 82 * - + 63 AS col0, COUNT ( * ) AS col1, ( COUNT ( * ) ) FROM tab1
----
490770
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9976
SELECT DISTINCT 80 DIV - + COUNT( * ) AS col2 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT 80 / - + COUNT ( * ) AS col2 FROM tab0
----
-26

query II rowsort
SELECT ALL + + 54, + col0 FROM tab2 AS cor0
----
54
46
54
64
54
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9978
SELECT CAST( NULL AS SIGNED ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-9978
SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
-3

query I rowsort
SELECT ALL - - ( + - col0 ) FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT ALL 13 AS col1 FROM tab2 cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT DISTINCT + COUNT( DISTINCT - ( col2 ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9981
SELECT DISTINCT + COUNT ( DISTINCT - ( col2 ) ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9983
SELECT ALL - - 25, 73 * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
25
219

skipif mysql # not compatible
query II rowsort label-9983
SELECT ALL - - 25, 73 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
25
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL + SUM( - CAST( + CAST( col0 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + SUM ( - CAST ( + CAST ( col0 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT ALL - col1 * - 91 FROM tab1
----
1274
4277
455

query I rowsort
SELECT col1 + - col2 + col2 * + + 39 * - col1 FROM tab1
----
-11559
-124665
-52498

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL + MIN( - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + MIN ( - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + 15 - col0 AS col2 FROM tab2 AS cor0
----
-31
-49
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT - 45 + + MIN( ALL + + col1 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT - 45 + + MIN ( ALL + + col1 ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + + 14 - - col2 FROM tab1 AS cor0
----
110
73
82

query I rowsort
SELECT + ( + + 53 ) FROM tab2 AS cor0 WHERE NULL = 5
----

query I rowsort
SELECT + ( 30 ) + 63 AS col1 FROM tab1 AS cor0 WHERE NULL < col1 AND col1 * + col2 + col2 / + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col0 + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col0 + + col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL - COUNT( * ) * + 19 AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - COUNT ( * ) * + 19 AS col0 FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT 4 + - + SUM( - col2 ) AS col2 FROM tab0
----
160

skipif mysql # not compatible
query I rowsort label-9995
SELECT 4 + - + SUM ( - col2 ) AS col2 FROM tab0
----
160

query I rowsort
SELECT col1 + 78 + + 48 AS col2 FROM tab2
----
177
193
203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 * + + 74 col2 FROM tab2
----
-192474
-332186
-438746

query III rowsort
SELECT * FROM tab1 WHERE NULL = - col1
----

query I rowsort
SELECT DISTINCT - col0 * 68 FROM tab1
----
-3468
-5780
-6188

