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)

query I rowsort
SELECT DISTINCT col0 + - + 54 - col2 FROM tab1
----
-28
-31
-99

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 6 - - + col2 * + ( - ( + col0 ) ) IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4
SELECT - ( - + CAST( NULL AS SIGNED ) ) AS col0, col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4
SELECT - ( - + CAST ( NULL AS INTEGER ) ) AS col0, col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

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

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

query I rowsort
SELECT 28 + + 94 AS col2 FROM tab2
----
122
122
122

query I rowsort
SELECT - 33 - - 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8
SELECT - COUNT( * ), - CAST( NULL AS SIGNED ) + + 77 col1 FROM tab2 AS cor0 JOIN tab1 AS cor1 ON 18 + 62 IS NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8
SELECT - COUNT ( * ), - CAST ( NULL AS INTEGER ) + + 77 col1 FROM tab2 AS cor0 JOIN tab1 AS cor1 ON 18 + 62 IS NULL
----
0
NULL

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

query I rowsort
SELECT ALL + col2 + - ( - 88 ) FROM tab1 AS cor0
----
147
156
184

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

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL MAX( DISTINCT + - 5 ) - - + 99 AS col2 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL MAX ( DISTINCT + - 5 ) - - + 99 AS col2 FROM tab2 AS cor0
----
94

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-15
SELECT - 59 AS col1, ( + + CAST( NULL AS DECIMAL ) ) + + col0 FROM tab2
----
-59
NULL
-59
NULL
-59
NULL

skipif mysql # not compatible
query II rowsort label-15
SELECT - 59 AS col1, ( + + CAST ( NULL AS REAL ) ) + + col0 FROM tab2
----
-59
NULL
-59
NULL
-59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-16
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE + 12 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE + 12 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-18
SELECT DISTINCT 38 AS col0, col0 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-18
SELECT DISTINCT 38 AS col0, col0 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
38
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) * + col2 + + col2 + + - 80 * - - 7 * col2 col1 FROM tab1
----
-27966
-31824
-48768

query III rowsort
SELECT * FROM tab2 WHERE + col1 = - - 55 - - col0 + + - 94
----

query I rowsort
SELECT - 52 * 16 AS col1 FROM tab0
----
-832
-832
-832

query I rowsort
SELECT - + col2 * col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE 51 BETWEEN - col0 AND - col0 / + 82 * - - col1 * + + 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-24
SELECT ALL * FROM tab1 WHERE NOT + - col1 + ( col1 ) * - col1 NOT BETWEEN NULL AND - 81 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-24
SELECT ALL * FROM tab1 WHERE NOT + - col1 + ( col1 ) * - col1 NOT BETWEEN NULL AND - 81 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT - MAX( - + col1 ) - + 33 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-25
SELECT - MAX ( - + col1 ) - + 33 FROM tab1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT DISTINCT col0 DIV - - col2 + - 22 AS col0 FROM tab0
----
-14
-22

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT col0 / - - col2 + - 22 AS col0 FROM tab0
----
-14
-22

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE col1 <> NULL AND - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 58 + - col1 FROM tab0 AS cor0
----
-23
37
57

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + - 68 - COUNT( * ) * - 8 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-29
SELECT + - 68 - COUNT ( * ) * - 8 FROM tab1 AS cor0
----
-44

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

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

query II rowsort
SELECT + 7 * - 60, col1 FROM tab0 AS cor0
----
-420
1
-420
21
-420
81

query I rowsort
SELECT - ( - + 19 ) * - 18 * col2 AS col0 FROM tab1 AS cor0
----
-20178
-23256
-32832

query I rowsort
SELECT DISTINCT 12 * + - col0 * - - 64 AS col0 FROM tab1 AS cor0
----
-39168
-65280
-69888

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

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

query I rowsort
SELECT + col2 * + col0 + 7 * - + ( - - col2 ) FROM tab1 AS cor0
----
4224
4602
5712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-37
SELECT + + 90 DIV - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-37
SELECT + + 90 / - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
30

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( + col0 ) + - col1 - - - col1 - + col2 / + ( - 84 ), - col0 - + col2 + - - col1 + + col2 * - col1 * + ( + col0 ) )
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 58 + - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT DISTINCT + SUM( DISTINCT col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT + SUM ( DISTINCT col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-43
SELECT COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT + - ( col0 ) * + - 14 + + col1 FROM tab1 AS cor0
----
1195
1321
728

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE + 73 + - col1 IS NOT NULL
----
-51
-85
-91

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 5 ) * - ( - col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 83 IN ( - col1, - ( - 17 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT - - COUNT( * ) * - 30 * ( - 60 ) FROM tab1 WHERE + 82 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-49
SELECT - - COUNT ( * ) * - 30 * ( - 60 ) FROM tab1 WHERE + 82 >= NULL
----
0

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

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

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

query II rowsort
SELECT - 59 - + 89 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
-148
-14
-148
-47
-148
-5

query I rowsort
SELECT ALL 1 * - col2 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT - 2 + - col1 AS col2 FROM tab2
----
-53
-69
-79

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-57
SELECT ALL + col1 / + col1 - - col2 col1 FROM tab1
----
60
69
97

query I rowsort
SELECT 84 + 77 FROM tab0
----
161
161
161

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

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

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

skipif mysql # not compatible
query I rowsort label-60
SELECT + + ( + COUNT ( * ) ) FROM tab0 cor0
----
3

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

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL + SUM ( DISTINCT + 76 ) FROM tab2 cor0
----
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 11 * col0 IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-64
SELECT - + ( - 74 ) * - + COUNT( ALL - + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-64
SELECT - + ( - 74 ) * - + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT ALL - - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-66
SELECT * FROM tab0 WHERE NOT - + 8 - + - col2 + - col2 / + col0 * + col0 * + ( 23 ) + - + CAST( NULL AS DECIMAL ) >= ( - + 31 )
----

skipif mysql # not compatible
query III rowsort label-66
SELECT * FROM tab0 WHERE NOT - + 8 - + - col2 + - col2 / + col0 * + col0 * + ( 23 ) + - + CAST ( NULL AS REAL ) >= ( - + 31 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * - 82 + + 61 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2, 18 + - 12 AS col1 FROM tab1
----
59
6
68
6
96
6

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

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

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

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

query II rowsort
SELECT ALL - - col2 AS col1, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT ALL 63 * + col2 * + - col0 + - col0 FROM tab1 WHERE NOT - 69 IS NULL
----
-308499
-316030
-389935

query I rowsort
SELECT - col1 + + - 65 - - + col1 + - - col0 AS col2 FROM tab1
----
-14
20
26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT + 87 DIV ( - col2 ) FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-78
SELECT + 87 / ( - col2 ) FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT MAX( ALL + col2 ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-79
SELECT MAX ( ALL + col2 ) col0 FROM tab2
----
58

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

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

query I rowsort
SELECT DISTINCT + 10 + col0 + - col0 + + + col0 FROM tab1
----
101
61
95

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

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 AS col0 FROM tab1 AS cor0 WHERE ( 83 IS NOT NULL )
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT DISTINCT - col2 + - 39 DIV + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT - col2 + - 39 / + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT ALL - col0 DIV 59 + - col1 * 49 + 79 FROM tab1 AS cor0
----
-167
-2225
-607

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL - col0 / 59 + - col1 * 49 + 79 FROM tab1 AS cor0
----
-167
-2225
-607

query I rowsort
SELECT DISTINCT - col0 + - 59 FROM tab0 AS cor0
----
-146
-156
-74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT + + 74 DIV 41 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-90
SELECT + + 74 / 41 FROM tab0 AS cor0
----
1
1
1

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 * + 48 FROM tab0
----
2256
4752
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-97
SELECT DISTINCT - COUNT( - - ( - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT - COUNT ( - - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 18 AS col1 FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ( - - MAX( - 28 ) ) FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-99
SELECT ( - - MAX ( - 28 ) ) FROM tab2 AS cor0
----
-28

query I rowsort
SELECT DISTINCT 78 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - ( 61 ) col1 FROM tab2
----
-3111
-4087
-4697

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT DISTINCT col1 * - col2 DIV col2 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT col1 * - col2 / col2 AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL - 82 + - 67 AS col0 FROM tab1 WHERE - + 68 IS NOT NULL
----
-149
-149
-149

query II rowsort
SELECT ALL col2, + ( - col0 ) FROM tab0
----
10
-87
47
-15
99
-97

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

query I rowsort
SELECT DISTINCT + col2 * - col2 + - + col1 FROM tab2 AS cor0
----
-1677
-3431
-580

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

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT DISTINCT 36 DIV 83 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT 36 / 83 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT - - MAX( ALL + col0 ) - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-113
SELECT - - MAX ( ALL + col0 ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL + - 37 + col0 + - 33 * col1 AS col2 FROM tab0 AS cor0
----
-2695
-643
27

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT DISTINCT 34 DIV col1 AS col2 FROM tab0 AS cor0
----
0
1
34

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT 34 / col1 AS col2 FROM tab0 AS cor0
----
0
1
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-116
SELECT + - CAST( NULL AS SIGNED ), col1 FROM tab0 WHERE NOT - col0 NOT IN ( - col1, + 8 )
----

skipif mysql # not compatible
query II rowsort label-116
SELECT + - CAST ( NULL AS INTEGER ), col1 FROM tab0 WHERE NOT - col0 NOT IN ( - col1, + 8 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ALL + 67 * - - COUNT( * ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL + 67 * - - COUNT ( * ) FROM tab1
----
201

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + - 47 * + 51 IS NOT NULL
----

query II rowsort
SELECT + col1, col2 + col2 * - - 5 FROM tab2
----
51
138
67
348
77
240

query I rowsort
SELECT + 76 * - col2 AS col1 FROM tab0
----
-3572
-7524
-760

query III rowsort
SELECT * FROM tab0 WHERE NOT - 21 / + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT + MAX( - 9 ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-125
SELECT + MAX ( - 9 ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT col2 * + + ( - col2 ) FROM tab2
----
-1600
-3364
-529

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

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT DISTINCT + 73 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT + 73 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
219

query I rowsort
SELECT ALL - - 59 AS col2 FROM tab0 cor0
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-130
SELECT ALL - CAST( + 89 AS SIGNED ) AS col2 FROM tab0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - CAST ( + 89 AS INTEGER ) AS col2 FROM tab0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT + - 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT ALL - col0 DIV - + col1 + + col0 * - 83 + col1 AS col0 FROM tab2 AS cor0
----
-3767
-5235
-6157

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL - col0 / - + col1 + + col0 * - 83 + col1 AS col0 FROM tab2 AS cor0
----
-3767
-5235
-6157

query II rowsort
SELECT ALL col1 * - col2 AS col0, + col2 AS col2 FROM tab1 cor0
----
-1344
96
-295
59
-3196
68

query I rowsort
SELECT - col0 + 87 FROM tab0 AS cor0
----
-10
0
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-136
SELECT - - CAST( + col0 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-136
SELECT - - CAST ( + col0 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT 16 + + col1 AS col0 FROM tab1
----
21
30
63

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

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL MIN ( DISTINCT - col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL + MAX( + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL + MAX ( + col2 ) FROM tab2
----
58

query II rowsort
SELECT + 81 AS col0, - col1 AS col2 FROM tab1
----
81
-14
81
-47
81
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-141
SELECT DISTINCT MAX( - - 75 ) * + - 37 * MIN( - col2 ) AS col2 FROM tab1 WHERE - + CAST( - - 84 AS SIGNED ) + col1 BETWEEN + col1 AND - + col2 + col0 - col0 * - col1 / col0 + + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT MAX ( - - 75 ) * + - 37 * MIN ( - col2 ) AS col2 FROM tab1 WHERE - + CAST ( - - 84 AS INTEGER ) + col1 BETWEEN + col1 AND - + col2 + col0 - col0 * - col1 / col0 + + - col1
----
NULL

query I rowsort
SELECT ALL - + col1 + 28 + + - col1 * - col0 FROM tab2 WHERE NOT - col0 IS NULL
----
2323
4879
4986

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

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

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

query I rowsort
SELECT DISTINCT - col1 + 59 * + col0 FROM tab1 AS cor0
----
2995
5010
5322

query I rowsort
SELECT - - 59 - - col0 FROM tab1 cor0
----
110
144
150

query I rowsort
SELECT + - 45 - + 45 AS col0 FROM tab0 cor0
----
-90
-90
-90

query II rowsort
SELECT ALL - 51, + col1 AS col2 FROM tab0
----
-51
1
-51
21
-51
81

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-150
SELECT + 77 * + CAST( + col0 AS SIGNED ) + + + col1 + 12 DIV - col0 AS col2 FROM tab2
----
3593
5005
5842

skipif mysql # not compatible
query I rowsort label-150
SELECT + 77 * + CAST ( + col0 AS INTEGER ) + + + col1 + 12 / - col0 AS col2 FROM tab2
----
3593
5005
5842

query II rowsort
SELECT DISTINCT col1 * 71, col2 AS col0 FROM tab1 AS cor0
----
3337
68
355
59
994
96

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT ALL + COUNT( * ) * - - 91 AS col2 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL + COUNT ( * ) * - - 91 AS col2 FROM tab0 AS cor0
----
273

query I rowsort
SELECT DISTINCT - 9 * + col2 FROM tab0 AS cor0
----
-423
-891
-90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-155
SELECT - col0 DIV 2 AS col1 FROM tab0 AS cor0
----
-43
-48
-7

skipif mysql # not compatible
query I rowsort label-155
SELECT - col0 / 2 AS col1 FROM tab0 AS cor0
----
-43
-48
-7

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

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

query II rowsort
SELECT DISTINCT - 18 AS col0, 26 FROM tab1 AS cor0
----
-18
26

query I rowsort
SELECT col1 * + + col1 + + 4 FROM tab0 AS cor0
----
445
5
6565

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-160
SELECT - 73 DIV - MIN( + 43 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-160
SELECT - 73 / - MIN ( + 43 ) AS col0 FROM tab2 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-162
SELECT DISTINCT 38 * col0, col0 * - + col0 * + col0 * 39 - + col1 * - - CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab0
----
3306
NULL
3686
NULL
570
NULL

skipif mysql # not compatible
query II rowsort label-162
SELECT DISTINCT 38 * col0, col0 * - + col0 * + col0 * 39 - + col1 * - - CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab0
----
3306
NULL
3686
NULL
570
NULL

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

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

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

query I rowsort
SELECT - 38 * - col1 AS col1 FROM tab0
----
3078
38
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * - col2 * - col2 col0 FROM tab0 cor0
----
1557345
87000
94119003

query II rowsort
SELECT - col0 * + col1 AS col1, + col2 FROM tab0 AS cor0
----
-1215
47
-1827
10
-97
99

query II rowsort
SELECT col2 AS col1, col1 * - 24 FROM tab1
----
59
-120
68
-1128
96
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-169
SELECT CAST( NULL AS SIGNED ) AS col1, 7 * - COUNT( * ) AS col2 FROM tab0 cor0
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-169
SELECT CAST ( NULL AS INTEGER ) AS col1, 7 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
NULL
-21

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - SUM( + 78 ) FROM tab1 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-172
SELECT - SUM ( + 78 ) FROM tab1 cor0
----
-234

query I rowsort
SELECT + col1 * + + col2 FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT ALL - 48 AS col0, 36 * + 27 * - col0 * col0 AS col0 FROM tab2 AS cor0
----
-48
-2056752
-48
-3981312
-48
-5467500

onlyif mysql # DIV for integer division: 
query I rowsort label-175
SELECT DISTINCT col0 + + col1 DIV + col0 + + + col1 AS col0 FROM tab0 cor0
----
101
108
98

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT col0 + + col1 / + col0 + + + col1 AS col0 FROM tab0 cor0
----
101
108
98

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-177
SELECT + MIN( 24 ) DIV + - ( + 43 ) + ( + + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-177
SELECT + MIN ( 24 ) / + - ( + 43 ) + ( + + COUNT ( * ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44 + - 65 col1, col2 AS col0 FROM tab2
----
-21
23
-21
40
-21
58

query I rowsort
SELECT + col0 * 55 + + - col2 FROM tab1
----
2709
4616
4937

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - - COUNT( 50 ) FROM tab0 WHERE NULL BETWEEN NULL AND - + col1 + - - col2
----
0

skipif mysql # not compatible
query I rowsort label-180
SELECT - - COUNT ( 50 ) FROM tab0 WHERE NULL BETWEEN NULL AND - + col1 + - - col2
----
0

query I rowsort
SELECT + col1 + + 25 FROM tab1 AS cor0
----
30
39
72

query I rowsort
SELECT 54 + + col0 AS col2 FROM tab0 cor0
----
141
151
69

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT - COUNT( * ) + - ( 79 ) AS col2 FROM tab2 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-183
SELECT - COUNT ( * ) + - ( 79 ) AS col2 FROM tab2 cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE ( + - col0 <= - 70 )
----
2

skipif mysql # not compatible
query I rowsort label-184
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE ( + - col0 <= - 70 )
----
2

query I rowsort
SELECT - 48 * + col2 FROM tab0
----
-2256
-4752
-480

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

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT ALL COUNT( * ) + - MAX( + col0 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-72

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL COUNT ( * ) + - MAX ( + col0 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT - SUM( - 69 ) AS col0 FROM tab0 cor0
----
207

skipif mysql # not compatible
query I rowsort label-188
SELECT - SUM ( - 69 ) AS col0 FROM tab0 cor0
----
207

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

query I rowsort
SELECT DISTINCT + 71 AS col2 FROM tab0 cor0
----
71

query II rowsort
SELECT DISTINCT - 73 AS col1, - col2 FROM tab2 AS cor0
----
-73
-23
-73
-40
-73
-58

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

query II rowsort
SELECT col0, col1 * + 93 FROM tab0
----
15
7533
87
1953
97
93

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

skipif mysql # not compatible
query II rowsort label-194
SELECT + col0 AS col1, CAST ( - 0 AS INTEGER ) FROM tab1
----
51
0
85
0
91
0

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

query I rowsort
SELECT DISTINCT + 71 * - + col0 FROM tab0
----
-1065
-6177
-6887

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

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

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

query I rowsort
SELECT + 25 * 95 FROM tab2 AS cor0
----
2375
2375
2375

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-200
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( col2 AS DECIMAL ) / + col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-200
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( col2 AS REAL ) / + col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-201
SELECT DISTINCT + - MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col1 * col2, + 9 col0 FROM tab0
----
308367
9
4410
9
99
9

query I rowsort
SELECT ALL 20 * + 68 AS col2 FROM tab1
----
1360
1360
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL COUNT( * ) * - + 69 * + 31 FROM tab0
----
-6417

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL COUNT ( * ) * - + 69 * + 31 FROM tab0
----
-6417

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-205
SELECT DISTINCT + 40 DIV 83 * + - col0 AS col0, CAST( NULL AS DECIMAL ) * - col1 * 80 AS col1 FROM tab2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-205
SELECT DISTINCT + 40 / 83 * + - col0 AS col0, CAST ( NULL AS REAL ) * - col1 * 80 AS col1 FROM tab2
----
0
NULL

query I rowsort
SELECT - col2 * col2 * + col1 + 45 * ( col1 ) AS col2 FROM tab1 cor0 WHERE 49 * col1 IS NOT NULL
----
-128394
-17180
-215213

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 77 AND + col2
----
15
81
47
87
21
10

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 93 * - col0 + + col2 + + 5 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT col1 / - + col0 FROM tab0
----
-5
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + 96 ) >= - + col2 * + - 74
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT + col1 * - + col0 * - col0 AS col1, col2 - - ( - - col1 ) AS col0, + - 63 AS col1 FROM tab1
----
9 values hashing to 72c08bd85b7cc04773156d28387764a7

query III rowsort
SELECT * FROM tab0 WHERE 23 / + col2 * - - col2 + - col0 IN ( - + 76 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT ALL col1 DIV + - col0 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL col1 / + - col0 AS col2 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT DISTINCT MIN( - - col1 ) + - - 3 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT MIN ( - - col1 ) + - - 3 FROM tab2
----
54

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + 34, + 86, col1 ) AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT 92 * col1 FROM tab0
----
1932
7452
92

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT - + 10 FROM tab0 cor0
----
-10
-10
-10

query II rowsort
SELECT + + col0 * - col1, col2 FROM tab1 AS cor0
----
-425
59
-4277
68
-714
96

query I rowsort
SELECT + - 11 FROM tab2 cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT - 61 * - COUNT( * ) FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-225
SELECT - 61 * - COUNT ( * ) FROM tab0 AS cor0
----
183

query I rowsort
SELECT - + ( - col2 ) * + 50 FROM tab1 AS cor0
----
2950
3400
4800

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-227
SELECT + + col0 / - col1 col1 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT DISTINCT 18 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * - + 80 FROM tab1
----
1120
3760
400

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

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

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

query II rowsort
SELECT 87 AS col0, col2 * + 6 FROM tab1
----
87
354
87
408
87
576

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

query I rowsort
SELECT + 99 * + - col2 + 20 + col1 * + 34 FROM tab0 AS cor0
----
-1879
-256
-9747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col1 FROM tab2 AS cor0 WHERE NOT - col2 * + col2 + - ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col1 * + - col1 * + col0 FROM tab2 AS cor0
----
-119692
-336750
-379520

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

query I rowsort
SELECT + 83 + 82 AS col0 FROM tab1 AS cor0
----
165
165
165

query I rowsort
SELECT ALL + 6 * + col1 AS col1 FROM tab0
----
126
486
6

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

query I rowsort
SELECT ALL 44 * + 24 FROM tab1
----
1056
1056
1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT DISTINCT + COUNT( * ) - - 90 - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
108

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT + COUNT ( * ) - - 90 - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
108

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

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

query I rowsort
SELECT DISTINCT - col2 * - + 91 + ( col2 ) FROM tab2 AS cor0
----
2116
3680
5336

query II rowsort
SELECT - - col0, 54 AS col0 FROM tab0 AS cor0
----
15
54
87
54
97
54

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

skipif mysql # not compatible
query I rowsort label-248
SELECT - MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL + 87 + - 97 FROM tab1 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT - COUNT( * ) - 62 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-250
SELECT - COUNT ( * ) - 62 FROM tab1 AS cor0
----
-65

query II rowsort
SELECT DISTINCT - + 46 * + + col2 + col1 + col2 + + 24 * + - 66 + col0 * + + 28 + - - 76, col2 AS col0 FROM tab0 AS cor0
----
-3122
47
-3246
99
499
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 6 * - col1 - + + col1 col2 FROM tab1 AS cor0
----
235
25
70

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

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

query I rowsort
SELECT ALL - 24 * + 11 - 25 FROM tab1
----
-289
-289
-289

query I rowsort
SELECT ALL ( - ( col0 ) ) FROM tab2
----
-46
-64
-75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-257
SELECT - col0 + + col0 AS col0, - 39 + - - CAST( NULL AS SIGNED ) FROM tab0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-257
SELECT - col0 + + col0 AS col0, - 39 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
0
NULL
0
NULL
0
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-259
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-259
SELECT DISTINCT - COUNT ( + col2 ) col1 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT + col1 * + - 53 AS col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

query II rowsort
SELECT col0, - 24 * + col2 AS col0 FROM tab0
----
15
-1128
87
-240
97
-2376

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + + 90 + - + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT - - CAST( - ( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-265
SELECT - - CAST ( - ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col0 * + 11 * - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-267
SELECT ALL + col2, col0 col2 FROM tab0 cor0 WHERE NOT - col1 <= + - CAST( NULL AS SIGNED ) * - col1 / 62 + 56 * - 72
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-267
SELECT ALL + col2, col0 col2 FROM tab0 cor0 WHERE NOT - col1 <= + - CAST ( NULL AS INTEGER ) * - col1 / 62 + 56 * - 72
----

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

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

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL + MIN ( - + col0 ) AS col1 FROM tab2 cor0
----
-75

query I rowsort
SELECT - 19 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT 84 > NULL )
----

query I rowsort
SELECT col2 + 55 + + col0 AS col2 FROM tab0
----
117
152
251

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

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT MAX ( ALL + col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT + COUNT( * ) DIV 62 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-273
SELECT + COUNT ( * ) / 62 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-274
SELECT DISTINCT + col0 DIV 55 * 73 + - col0 * 87 DIV - col2 + - col0, col2 FROM tab1 AS cor0
----
-5
96
113
59
98
68

skipif mysql # not compatible
query II rowsort label-274
SELECT DISTINCT + col0 / 55 * 73 + - col0 * 87 / - col2 + - col0, col2 FROM tab1 AS cor0
----
-5
96
113
59
98
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= 1 * - 97 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE 47 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-278
SELECT * FROM tab1 AS cor0 WHERE - CAST( + col0 AS SIGNED ) BETWEEN - - 51 + + col2 * + col1 AND ( + + col2 * + 35 * + col2 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-278
SELECT * FROM tab1 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) BETWEEN - - 51 + + col2 * + col1 AND ( + + col2 * + 35 * + col2 * + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-279
SELECT COUNT( * ) DIV + + COUNT( * ) + + 50 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-279
SELECT COUNT ( * ) / + + COUNT ( * ) + + 50 FROM tab0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT ALL + col0 + - col2 + + col0 DIV 94 FROM tab0 cor0
----
-1
-32
77

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL + col0 + - col2 + + col0 / 94 FROM tab0 cor0
----
-1
-32
77

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

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + MIN ( col1 ) FROM tab2 AS cor0
----
51

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-286
SELECT + COUNT( * ) AS col1, CAST( 79 AS SIGNED ) AS col1 FROM tab2
----
3
79

skipif mysql # not compatible
query II rowsort label-286
SELECT + COUNT ( * ) AS col1, CAST ( 79 AS INTEGER ) AS col1 FROM tab2
----
3
79

query I rowsort
SELECT DISTINCT 34 * + 83 - 88 FROM tab1
----
2734

query II rowsort
SELECT DISTINCT 44 AS col1, - 76 AS col1 FROM tab0
----
44
-76

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

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

query II rowsort
SELECT ALL + col1 * - - 71 * - - col0 + col2 AS col0, + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
166589
23
349928
40
356833
58

query II rowsort
SELECT - 4 AS col0, ( + 60 ) FROM tab1 AS cor0
----
-4
60
-4
60
-4
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-293
SELECT DISTINCT - - COUNT( * ) DIV + 3 + 60 AS col0 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT - - COUNT ( * ) / + 3 + 60 AS col0 FROM tab1 AS cor0
----
61

query II rowsort
SELECT + 89 AS col0, 44 + col1 FROM tab2 cor0
----
89
111
89
121
89
95

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT MAX( DISTINCT 38 ), 59 + + 20 AS col0 FROM tab2
----
38
79

skipif mysql # not compatible
query II rowsort label-295
SELECT MAX ( DISTINCT 38 ), 59 + + 20 AS col0 FROM tab2
----
38
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-296
SELECT DISTINCT CAST( + col1 AS SIGNED ) DIV - - col2 col0 FROM tab2
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-296
SELECT DISTINCT CAST ( + col1 AS INTEGER ) / - - col2 col0 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query II rowsort label-297
SELECT + + col1 DIV + - col1 AS col0, 61 FROM tab1 AS cor0
----
-1
61
-1
61
-1
61

skipif mysql # not compatible
query II rowsort label-297
SELECT + + col1 / + - col1 AS col0, 61 FROM tab1 AS cor0
----
-1
61
-1
61
-1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT - MIN( DISTINCT 96 ) * + COUNT( * ) AS col2 FROM tab0 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-298
SELECT - MIN ( DISTINCT 96 ) * + COUNT ( * ) AS col2 FROM tab0 cor0
----
-288

query I rowsort
SELECT - 94 * 2 + - col0 AS col1 FROM tab0 AS cor0
----
-203
-275
-285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-300
SELECT SUM( - 46 ) DIV - 76 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-300
SELECT SUM ( - 46 ) / - 76 AS col2 FROM tab2 AS cor0
----
1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT ALL col2 DIV + + 78 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL col2 / + + 78 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 28 AS col0 FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, + col2 * - col0 - + 27 + col0 FROM tab2
----
51
-1039
67
-4302
77
-2523

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT SUM( + col0 ) AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-309
SELECT SUM ( + col0 ) AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT DISTINCT COUNT( * ) + + - 53 + 38 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT COUNT ( * ) + + - 53 + 38 FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT + COUNT( * ) + - 34 + + + MIN( ( + ( col2 ) ) ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-311
SELECT + COUNT ( * ) + - 34 + + + MIN ( ( + ( col2 ) ) ) FROM tab1 AS cor0
----
28

query I rowsort
SELECT - - 46 + - col2 AS col2 FROM tab1 AS cor0
----
-13
-22
-50

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

query I rowsort
SELECT + 71 + + + col0 + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
2718
4635
6064

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IS NULL OR NOT 12 <> NULL
----

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

query I rowsort
SELECT col1 + + col2 AS col1 FROM tab2 WHERE NOT ( - 16 + 81 ) IN ( - ( - col1 ) )
----
117
125
74

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

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

skipif mysql # not compatible
query I rowsort label-319
SELECT - 0 + - COUNT ( * ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 9 <> + 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT - col1 / + CAST( col0 AS SIGNED ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT - col1 / + CAST ( col0 AS INTEGER ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT + 90 + COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-322
SELECT + 90 + COUNT ( * ) FROM tab0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-323
SELECT DISTINCT 34 DIV - COUNT( * ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT 34 / - COUNT ( * ) FROM tab1
----
-11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ALL SUM( - 83 ) * - 38 + MAX( ALL + col2 ) FROM tab2
----
9520

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL SUM ( - 83 ) * - 38 + MAX ( ALL + col2 ) FROM tab2
----
9520

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - 35
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-329
SELECT - 49 DIV + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-329
SELECT - 49 / + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT MAX( - 80 ) * - COUNT( * ) AS col1 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-330
SELECT MAX ( - 80 ) * - COUNT ( * ) AS col1 FROM tab2
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col0 FROM tab2 WHERE 87 * - 61 BETWEEN ( + 68 ) AND ( - col1 / + col2 )
----

query I rowsort
SELECT DISTINCT 94 + col2 * - col1 AS col1 FROM tab1
----
-1250
-201
-3102

query I rowsort
SELECT 85 * col1 AS col0 FROM tab2
----
4335
5695
6545

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

query I rowsort
SELECT col2 * col0 AS col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( - 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT MAX( - 46 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-336
SELECT MAX ( - 46 ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT + SUM( col0 ) AS col1 FROM tab1 WHERE NULL NOT IN ( - 91 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT + SUM ( col0 ) AS col1 FROM tab1 WHERE NULL NOT IN ( - 91 * col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * col1 col0 FROM tab1 AS cor0 WHERE NOT col1 * - col1 NOT BETWEEN 42 AND - ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT - SUM( 81 ) * - COUNT( * ) AS col0 FROM tab1 cor0
----
729

skipif mysql # not compatible
query I rowsort label-339
SELECT - SUM ( 81 ) * - COUNT ( * ) AS col0 FROM tab1 cor0
----
729

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 8 NOT IN ( + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT DISTINCT + SUM( col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT + SUM ( col2 ) AS col1 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-344
SELECT DISTINCT + + col0 + + col1 DIV col2 col1 FROM tab0 AS cor0
----
16
89
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-344
SELECT DISTINCT + + col0 + + col1 / col2 col1 FROM tab0 AS cor0
----
16
89
97

query I rowsort
SELECT ALL + col1 + - col0 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( 58 ) AND + 60 * col1
----
0

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( 58 ) AND + 60 * col1
----
0

query I rowsort
SELECT ALL + col0 * 29 + 87 FROM tab2 AS cor0
----
1421
1943
2262

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

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT - col2 + 18 DIV - col1 FROM tab1 cor0
----
-62
-68
-97

skipif mysql # not compatible
query I rowsort label-349
SELECT - col2 + 18 / - col1 FROM tab1 cor0
----
-62
-68
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col1 FROM tab0 AS cor0 WHERE ( - 81 * col1 ) NOT IN ( 8 + col1 )
----
-1215
-1827
-97

query I rowsort
SELECT - ( 99 ) * col0 + - 50 FROM tab0 AS cor0
----
-1535
-8663
-9653

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - 4
----

query I rowsort
SELECT col0 * - 45 FROM tab0 WHERE col2 - col2 * ( + 67 ) IS NOT NULL
----
-3915
-4365
-675

query I rowsort
SELECT + col1 / col0 - col2 FROM tab2 WHERE ( 7 ) = col2 + col1 * + col2
----

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

skipif mysql # not compatible
query I rowsort label-355
SELECT 47 * COUNT ( * ) AS col1 FROM tab2
----
141

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT col2 * + ( col0 * - 73 ) IN ( + col1 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT ALL - MAX( col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL - MAX ( col0 ) FROM tab0
----
-97

query I rowsort
SELECT DISTINCT col2 * - col0 + 61 FROM tab2
----
-2499
-4289
-997

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL col1 * - - col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL - col2 + + col2 + + 3 FROM tab2
----
3
3
3

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( + ( 6 ) ) IN ( col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-367
SELECT ALL 53 * + CAST( col1 AS SIGNED ) - + col0 AS col2 FROM tab1 AS cor0
----
180
2400
691

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL 53 * + CAST ( col1 AS INTEGER ) - + col0 AS col2 FROM tab1 AS cor0
----
180
2400
691

query I rowsort
SELECT DISTINCT 57 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
57

query I rowsort
SELECT 29 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + col2 * + - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT ALL COUNT( * ) * - 98 AS col0 FROM tab2 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL COUNT ( * ) * - 98 AS col0 FROM tab2 cor0
----
-294

query I rowsort
SELECT ALL col0 + - - 15 * - - col2 * 40 AS col1 FROM tab1 AS cor0
----
35485
40891
57651

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <> ( - 75 / - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 5 - 12 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - 74 * - col1 * - col0 FROM tab2
----
-173604
-364672
-371850

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * col2 ) <> - col2 - 49 * + 39
----

query I rowsort
SELECT DISTINCT + 97 FROM tab2 WHERE NOT NULL > ( - col1 + - ( ( - col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT - - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-382
SELECT - - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT ALL ( 59 ) FROM tab0
----
59
59
59

query I rowsort
SELECT ALL + col0 - col2 FROM tab2 WHERE - 44 <> NULL
----

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab0 WHERE NOT + + ( 7 ) * col0 + - col0 <= + ( col0 )
----
5

query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab1 WHERE NOT - - col2 * + 20 IN ( - 3 )
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( NOT + 51 > NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + - col1 * - col2 col1 FROM tab2 AS cor0
----
237160
260362
59823

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

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

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 2 )
----

query II rowsort
SELECT col2 AS col0, col0 - - col1 FROM tab1 AS cor0
----
59
90
68
138
96
65

query II rowsort
SELECT col0, col1 + + 23 AS col2 FROM tab2 AS cor0
----
46
74
64
100
75
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-395
SELECT + - 62 AS col0, CAST( - 70 AS SIGNED ) FROM tab2 AS cor0
----
-62
-70
-62
-70
-62
-70

skipif mysql # not compatible
query II rowsort label-395
SELECT + - 62 AS col0, CAST ( - 70 AS INTEGER ) FROM tab2 AS cor0
----
-62
-70
-62
-70
-62
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT - MAX( ALL col0 ) col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-397
SELECT DISTINCT - MAX ( ALL col0 ) col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT ALL + 47 + + + COUNT( * ) - 3 * COUNT( * ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL + 47 + + + COUNT ( * ) - 3 * COUNT ( * ) FROM tab2 AS cor0
----
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col2 IS NULL
----

query I rowsort
SELECT ALL - - col0 * - col0 * col0 * - col2 FROM tab1 AS cor0
----
12734496
36233375
51242828

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

query I rowsort
SELECT DISTINCT col1 + - + 65 FROM tab1
----
-18
-51
-60

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

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

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

query I rowsort
SELECT 16 + - 93 FROM tab0
----
-77
-77
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT ALL - ( COUNT( * ) ) + - 18 AS col2 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL - ( COUNT ( * ) ) + - 18 AS col2 FROM tab2 AS cor0
----
-21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT ALL - 67 + + MIN( DISTINCT - 36 ) AS col2 FROM tab1 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - 67 + + MIN ( DISTINCT - 36 ) AS col2 FROM tab1 cor0
----
-103

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

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

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE + col0 NOT IN ( + 38 )
----
-51
-67
-77

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

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

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

query I rowsort
SELECT ALL 91 AS col2 FROM tab0 cor0
----
91
91
91

query II rowsort
SELECT DISTINCT col1 AS col2, + col2 - - + col0 AS col2 FROM tab0
----
1
196
21
97
81
62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-418
SELECT + 48 * col1 AS col0 FROM tab2 WHERE NOT col0 NOT IN ( - - col2 + col1 - col1, + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-418
SELECT + 48 * col1 AS col0 FROM tab2 WHERE NOT col0 NOT IN ( - - col2 + col1 - col1, + CAST ( + col2 AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT SUM( ALL col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-420
SELECT SUM ( ALL col2 ) AS col2 FROM tab0
----
156

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col2 FROM tab0 WHERE NOT 28 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT 50 * + - 51 FROM tab2
----
-2550

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-426
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, + col2 + 20 FROM tab2 AS cor0 WHERE - col0 = - + col1
----

skipif mysql # not compatible
query II rowsort label-426
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, + col2 + 20 FROM tab2 AS cor0 WHERE - col0 = - + col1
----

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

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

query I rowsort
SELECT + - 21 * - col2 FROM tab0 AS cor0
----
2079
210
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-429
SELECT + CAST( 6 AS SIGNED ) * + - 62 + - col1 + - 66 AS col2 FROM tab2
----
-489
-505
-515

skipif mysql # not compatible
query I rowsort label-429
SELECT + CAST ( 6 AS INTEGER ) * + - 62 + - col1 + - 66 AS col2 FROM tab2
----
-489
-505
-515

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 col2 FROM tab0
----
-40

query I rowsort
SELECT - col2 * + 78 FROM tab2
----
-1794
-3120
-4524

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

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

query I rowsort
SELECT DISTINCT + col0 * 7 FROM tab0
----
105
609
679

query I rowsort
SELECT - col1 * + + col1 * 26 AS col1 FROM tab0
----
-11466
-170586
-26

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

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

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

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

query I rowsort
SELECT col0 * - 20 - - 6 FROM tab1 AS cor0
----
-1014
-1694
-1814

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

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

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

query I rowsort
SELECT + col1 + 83 AS col1 FROM tab0 AS cor0
----
104
164
84

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-444
SELECT + CAST( - col0 AS SIGNED ) + + 59 AS col0, + col2 FROM tab2 cor0
----
-16
58
-5
40
13
23

skipif mysql # not compatible
query II rowsort label-444
SELECT + CAST ( - col0 AS INTEGER ) + + 59 AS col0, + col2 FROM tab2 cor0
----
-16
58
-5
40
13
23

query I rowsort
SELECT DISTINCT + col0 - - 64 FROM tab0 AS cor0
----
151
161
79

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

query I rowsort
SELECT ALL + col2 - + col0 AS col2 FROM tab2
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col0 col0 FROM tab1 WHERE NULL IS NULL
----
-4896
-5015
-6188

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 FROM tab2
----
51
46
67
75
77
64

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

query I rowsort
SELECT + - 71 * 75 AS col1 FROM tab0 AS cor0
----
-5325
-5325
-5325

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - 22 FROM tab2 cor0 WHERE NOT 13 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT + col2 * - ( 53 ) + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - + col0 + - ( + - 66 ) - - 15 + 65 - - 61 * + - 33 * - + col0 / CAST( NULL AS SIGNED ) * + col2
----

skipif mysql # not compatible
query I rowsort label-455
SELECT + col2 * - ( 53 ) + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - + col0 + - ( + - 66 ) - - 15 + 65 - - 61 * + - 33 * - + col0 / CAST ( NULL AS INTEGER ) * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * + + col2 col0 FROM tab1 AS cor0
----
3717
4284
6048

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT + MIN( + col2 ) + + MAX( DISTINCT - col0 ) + + 48 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + MIN ( + col2 ) + + MAX ( DISTINCT - col0 ) + + 48 FROM tab2 AS cor0
----
25

query I rowsort
SELECT - col1 + - - 42 FROM tab0 AS cor0
----
-39
21
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 + - col1, 32 * col0 col1 FROM tab1 AS cor0
----
-42
2912
-9
1632
0
2720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-464
SELECT ALL - col2 * - - col2 + - col2 * + col0 - col2 * - col1 FROM tab2 WHERE - - CAST( + col1 AS DECIMAL ) = + col1 * - + col1
----

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL - col2 * - - col2 + - col2 * + col0 - col2 * - col1 FROM tab2 WHERE - - CAST ( + col1 AS REAL ) = + col1 * - + col1
----

query I rowsort
SELECT DISTINCT + ( + 29 ) AS col2 FROM tab2
----
29

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

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

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

query I rowsort
SELECT ALL + col1 + - col0 * - col1 AS col1 FROM tab0 AS cor0
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - 95 <= + + col0
----
-3

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - 95 <= + + col0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 28 col2 FROM tab2 AS cor0
----
105
79
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 20 + - 59 + - 72 = - col2 * - 5 + - - 67
----

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

query I rowsort
SELECT ALL - col1 - ( - 73 ) FROM tab2
----
-4
22
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 39 + - col1 col2 FROM tab0
----
-3414
-3784
-666

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

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

query I rowsort
SELECT 9 + + - col2 FROM tab2
----
-14
-31
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-478
SELECT 22 * - ( - - CAST( MIN( DISTINCT + col1 ) AS SIGNED ) ) + + SUM( DISTINCT + col0 ) AS col1, 63 FROM tab1
----
117
63

skipif mysql # not compatible
query II rowsort label-478
SELECT 22 * - ( - - CAST ( MIN ( DISTINCT + col1 ) AS INTEGER ) ) + + SUM ( DISTINCT + col0 ) AS col1, 63 FROM tab1
----
117
63

onlyif mysql # DIV for integer division: 
query I rowsort label-479
SELECT - + 17 * - col2 * + col2 * - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-156672
-59177
-78608

skipif mysql # not compatible
query I rowsort label-479
SELECT - + 17 * - col2 * + col2 * - col2 / + col2 AS col1 FROM tab1 AS cor0
----
-156672
-59177
-78608

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

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

query I rowsort
SELECT - - 76 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT + ( 7 ) DIV 59 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-482
SELECT + ( 7 ) / 59 AS col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT 91 * col2 * + 17 * + col2, - col1 * + - 82 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15162147
82
154700
1722
3417323
6642

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

query II rowsort
SELECT + col1, - 30 + - col1 FROM tab0
----
1
-31
21
-51
81
-111

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

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT COUNT ( * ) / + + 57 FROM tab2
----
0

query I rowsort
SELECT - ( - + col1 ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT - MAX( - 5 ) AS col2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-488
SELECT - MAX ( - 5 ) AS col2 FROM tab2
----
5

query III rowsort
SELECT - col1 AS col0, - 24 * - + 0 * - col0 AS col1, + - 23 AS col2 FROM tab1
----
9 values hashing to 71c90d272c9be85540692f3c8f163ecb

onlyif mysql # DIV for integer division: 
query II rowsort label-490
SELECT DISTINCT - col1 AS col1, 2 * 26 DIV 99 AS col2 FROM tab2
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-490
SELECT DISTINCT - col1 AS col1, 2 * 26 / 99 AS col2 FROM tab2
----
-51
0
-67
0
-77
0

onlyif mysql # aggregate syntax: 
query II rowsort label-491
SELECT 66 AS col1, - COUNT( * ) AS col2 FROM tab2
----
66
-3

skipif mysql # not compatible
query II rowsort label-491
SELECT 66 AS col1, - COUNT ( * ) AS col2 FROM tab2
----
66
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT + ( - COUNT( DISTINCT + col0 ) ) AS col1 FROM tab1 AS cor0 WHERE - ( col2 ) * - - col1 IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-494
SELECT + ( - COUNT ( DISTINCT + col0 ) ) AS col1 FROM tab1 AS cor0 WHERE - ( col2 ) * - - col1 IN ( - col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( - - 14 * 37 )
----

query II rowsort
SELECT ALL + col0 AS col2, + 14 * - col0 FROM tab1 WHERE NOT + col2 NOT IN ( col2, - col2, - + col0 )
----
51
-714
85
-1190
91
-1274

query III rowsort
SELECT - - col2 + col0 AS col0, col0, col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to 86b7089bd8aa36f1018a1c0cd3c9b4f8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col2 + - col1
----

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

query II rowsort
SELECT ALL - col1 + 18 AS col0, - 49 AS col1 FROM tab2 AS cor0
----
-33
-49
-49
-49
-59
-49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - col2 <= 72
----

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

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

query I rowsort
SELECT - 90 AS col1 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT DISTINCT - - COUNT( * ) - ( COUNT( * ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT - - COUNT ( * ) - ( COUNT ( * ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT + 95 DIV - 49 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-506
SELECT + 95 / - 49 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 - - 40 AS col0 FROM tab0
----
127
137
55

query II rowsort
SELECT DISTINCT 60, col1 FROM tab2
----
60
51
60
67
60
77

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

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

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL - - COUNT ( * ) + + CAST ( + 50 AS INTEGER ) FROM tab2 AS cor0
----
53

query I rowsort
SELECT - col0 - - 28 - - col1 AS col0 FROM tab2 AS cor0
----
20
33
41

query I rowsort
SELECT ALL + + 26 AS col2 FROM tab2 AS cor0
----
26
26
26

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

skipif mysql # not compatible
query I rowsort label-513
SELECT + MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT 3 + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-78

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT 3 + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-78

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

skipif mysql # not compatible
query I rowsort label-516
SELECT - MAX ( + col0 ) AS col0 FROM tab1
----
-91

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

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

query I rowsort
SELECT + + col0 * + - 60 AS col1 FROM tab2 AS cor0
----
-2760
-3840
-4500

query I rowsort
SELECT - 69 * col0 + + + col0 + - col2 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-4301
-7432
-8986

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

query II rowsort
SELECT - - ( - 60 ) AS col1, 86 AS col0 FROM tab0 cor0
----
-60
86
-60
86
-60
86

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + - col2 * col1 >= col0 OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT - ( + col2 ) >= 52
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col0 * - col1 * + + 45 FROM tab0
----
4365
54675
82215

query I rowsort
SELECT DISTINCT + col0 * - - col2 + - col1 + - col2 FROM tab2
----
2443
4225
984

query I rowsort
SELECT + + col2 + col1 + + col1 + - 2 + - 13 AS col2 FROM tab2 AS cor0
----
110
177
179

query I rowsort
SELECT + - 7 + - col1 AS col0 FROM tab2 cor0
----
-58
-74
-84

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab2 cor0
----
84

query II rowsort
SELECT DISTINCT 6 * ( - col2 ) * - + 40 AS col2, 13 FROM tab0
----
11280
13
23760
13
2400
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT ALL COUNT( DISTINCT + 39 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL COUNT ( DISTINCT + 39 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-538
SELECT + ( + + 27 ) DIV - - ( COUNT( * ) ) FROM tab0 AS cor0
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT - ( - ( + SUM( DISTINCT + - col2 ) ) ) * + 82 - + + MIN( DISTINCT - + col0 ) + + 91 AS col2 FROM tab1 AS cor0
----
-18104

skipif mysql # not compatible
query I rowsort label-540
SELECT - ( - ( + SUM ( DISTINCT + - col2 ) ) ) * + 82 - + + MIN ( DISTINCT - + col0 ) + + 91 AS col2 FROM tab1 AS cor0
----
-18104

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

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

query I rowsort
SELECT + 63 - + + 88 AS col0 FROM tab2 AS cor0
----
-25
-25
-25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL - COUNT( * ) * COUNT( * ) - + - COUNT( * ) * + - 27 * + 55 FROM tab2 cor0
----
-4464

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL - COUNT ( * ) * COUNT ( * ) - + - COUNT ( * ) * + - 27 * + 55 FROM tab2 cor0
----
-4464

query I rowsort
SELECT col0 * 90 FROM tab0
----
1350
7830
8730

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

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT COUNT( * ) * + COUNT( * ) * - MAX( - col2 ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-547
SELECT COUNT ( * ) * + COUNT ( * ) * - MAX ( - col2 ) AS col0 FROM tab0
----
90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT - 45 DIV - - col1 FROM tab0
----
-2
-45
0

skipif mysql # not compatible
query I rowsort label-549
SELECT - 45 / - - col1 FROM tab0
----
-2
-45
0

query I rowsort
SELECT DISTINCT + col1 * + - 65 FROM tab1
----
-3055
-325
-910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-551
SELECT CAST( MIN( DISTINCT - - ( + - col0 ) ) AS SIGNED ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-551
SELECT CAST ( MIN ( DISTINCT - - ( + - col0 ) ) AS INTEGER ) FROM tab1
----
-91

query I rowsort
SELECT DISTINCT + 3 * - col1 FROM tab1
----
-141
-15
-42

query I rowsort
SELECT ALL 79 FROM tab0 AS cor0 WHERE 58 * col2 * col0 NOT BETWEEN 34 + - col2 AND - col1
----
79
79
79

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

skipif mysql # not compatible
query III rowsort label-554
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + col2 )
----

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

query I rowsort
SELECT col1 * + col2 * - - col2 AS col0 FROM tab0 AS cor0
----
178929
2100
9801

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <= 61 - - 43
----

query I rowsort
SELECT + 32 + - col2 AS col2 FROM tab0 AS cor0
----
-15
-67
22

query I rowsort
SELECT - 41 + - - 83 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT + col1 * - - ( - col2 ) + - 60 + col2 AS col2 FROM tab1
----
-1308
-296
-3188

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT + 79 DIV - col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-561
SELECT + 79 / - col0 AS col2 FROM tab0
----
-5
0
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NULL ) IN ( ( 98 ) - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT ALL + + 17 + + - col0 DIV col1 FROM tab2 AS cor0
----
16
17
17

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + + 17 + + - col0 / col1 FROM tab2 AS cor0
----
16
17
17

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL + MAX( ALL + 30 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
30

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL + MAX ( ALL + 30 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
30

query I rowsort
SELECT - - 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * + 24 * 43 + - col0 - col1 <= NULL )
----

query I rowsort
SELECT ALL - 36 + + col0 - + + col0 - - col0 - + - 29 * + - 2 * + col1 * - 60 * - col1 FROM tab0 cor0
----
-1534629
-22832301
-3419

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) + + col1 > col1 / - ( 69 ) + - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + CAST ( NULL AS INTEGER ) / + 89 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 1 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT DISTINCT - col0 DIV + - 36 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT - col0 / + - 36 FROM tab2
----
1
2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-580
SELECT ALL SUM( - - col0 ) * - 74 * + - 42 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL SUM ( - - col0 ) * - 74 * + - 42 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT CAST( - 1 AS SIGNED ) col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-581
SELECT CAST ( - 1 AS INTEGER ) col1 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT DISTINCT col1, ( + - col1 ) * col1 FROM tab1
----
14
-196
47
-2209
5
-25

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab0 WHERE NOT - 76 IS NOT NULL
----

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

query II rowsort
SELECT ALL + col2, col0 * - col2 AS col1 FROM tab0
----
10
-870
47
-705
99
-9603

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-587
SELECT col2, + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

skipif mysql # not compatible
query II rowsort label-587
SELECT col2, + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT DISTINCT 50 - - 18 * - - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab1 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT ALL - + col0 + + 39 + + - col2 + - col0 - + col1 AS col1 FROM tab2 AS cor0
----
-127
-206
-236

query II rowsort
SELECT DISTINCT + - col1 + + 51, col1 FROM tab2 AS cor0
----
-16
67
-26
77
0
51

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

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

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

query I rowsort
SELECT DISTINCT 34 * - 47 AS col1 FROM tab0 AS cor0
----
-1598

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT DISTINCT + 14 * + - SUM( + col0 ) FROM tab0 AS cor0
----
-2786

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT + 14 * + - SUM ( + col0 ) FROM tab0 AS cor0
----
-2786

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - + COUNT( * ) FROM tab2 WHERE NULL BETWEEN ( - col1 ) AND - ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-598
SELECT - + COUNT ( * ) FROM tab2 WHERE NULL BETWEEN ( - col1 ) AND - ( + col0 )
----
0

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

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

query I rowsort
SELECT ALL 73 + - + ( + col2 ) * + col2 FROM tab2
----
-1527
-3291
-456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-602
SELECT col1 * - - col2 + - ( - CAST( col1 AS SIGNED ) ) * 3, col0 FROM tab0
----
102
97
273
87
4050
15

skipif mysql # not compatible
query II rowsort label-602
SELECT col1 * - - col2 + - ( - CAST ( col1 AS INTEGER ) ) * 3, col0 FROM tab0
----
102
97
273
87
4050
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-603
SELECT COUNT( * ) * COUNT( * ) + - ( - COUNT( * ) ) DIV + SUM( + - col0 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-603
SELECT COUNT ( * ) * COUNT ( * ) + - ( - COUNT ( * ) ) / + SUM ( + - col0 ) FROM tab2
----
9

query II rowsort
SELECT + 57, col2 AS col0 FROM tab2 AS cor0
----
57
23
57
40
57
58

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT COUNT( + 21 ) * + 75 FROM tab0 cor0
----
225

skipif mysql # not compatible
query I rowsort label-605
SELECT COUNT ( + 21 ) * + 75 FROM tab0 cor0
----
225

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

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

query I rowsort
SELECT - 32 - - col2 - - col2 AS col2 FROM tab0
----
-12
166
62

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

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

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

query I rowsort
SELECT DISTINCT - 55 * - col2 + + col1 FROM tab2 AS cor0
----
1316
2277
3257

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-612
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-612
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

query I rowsort
SELECT + ( - 49 ) * col1 FROM tab0
----
-1029
-3969
-49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT DISTINCT SUM( - 89 ) FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT SUM ( - 89 ) FROM tab0
----
-267

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

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

query I rowsort
SELECT + + 64 FROM tab1 WHERE NOT col0 + + 40 NOT IN ( + col0, 70, ( 40 ), - col2 + col1 + col1 * 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT + COUNT( + 18 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-620
SELECT + COUNT ( + 18 ) FROM tab0
----
3

query I rowsort
SELECT ALL + 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL col1 + + 61 FROM tab2
----
112
128
138

query I rowsort
SELECT DISTINCT + + 57 + + + col0 AS col1 FROM tab0 AS cor0
----
144
154
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT ALL + SUM( 18 ) + + - MIN( col1 ) AS col0 FROM tab0 cor0
----
53

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL + SUM ( 18 ) + + - MIN ( col1 ) AS col0 FROM tab0 cor0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-626
SELECT - ( + ( - MIN( - 81 ) ) ) + + - 67 + + COUNT( * ) AS col1, COUNT( + + col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col2 * + - col0 + + col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-626
SELECT - ( + ( - MIN ( - 81 ) ) ) + + - 67 + + COUNT ( * ) AS col1, COUNT ( + + col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col2 * + - col0 + + col1
----
NULL
0

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

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab2 AS cor0 WHERE + ( - - col0 ) - 97 NOT IN ( 6, 24 + - 35 / - col0 )
----
46
64
75

query I rowsort
SELECT + 78 + + col0 FROM tab0 cor0
----
165
175
93

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-630
SELECT ALL - MIN ( DISTINCT + col2 ) col2 FROM tab0
----
-10

query I rowsort
SELECT + col2 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT 41 * + 38 AS col0 FROM tab1
----
1558
1558
1558

query I rowsort
SELECT col1 * + ( - 5 ) FROM tab1
----
-235
-25
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-634
SELECT - 36 DIV + MAX( - col0 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-634
SELECT - 36 / + MAX ( - col0 ) FROM tab0
----
2

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

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

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

query I rowsort
SELECT DISTINCT + col1 + - 50 FROM tab0 AS cor0
----
-29
-49
31

query I rowsort
SELECT ALL 28 + - + col0 AS col1 FROM tab2 AS cor0
----
-18
-36
-47

query I rowsort
SELECT 9 + 23 FROM tab0
----
32
32
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-640
SELECT DISTINCT COUNT( 54 ) DIV + COUNT( * ) - ( + + 19 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT COUNT ( 54 ) / + COUNT ( * ) - ( + + 19 ) FROM tab2
----
-18

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT - 84 DIV 69 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-646
SELECT - 84 / 69 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 60 <> NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-649
SELECT DISTINCT - col1 AS col2, + CAST( NULL AS SIGNED ) 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-649
SELECT DISTINCT - col1 AS col2, + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL + col1 * - - 83 FROM tab1 AS cor0
----
1162
3901
415

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

query II rowsort
SELECT + 13, col2 FROM tab1 AS cor0
----
13
59
13
68
13
96

query I rowsort
SELECT DISTINCT col0 * col0 * - - col1 * + col2 FROM tab0 AS cor0
----
1589490
856575
931491

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT - CAST( - - col2 AS SIGNED ) col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-655
SELECT - CAST ( - - col2 AS INTEGER ) col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT + MAX( col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-656
SELECT + MAX ( col0 ) AS col1 FROM tab2
----
75

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + col1 ) * + 62 > col1 + + + 78 + + 40 + + col1 * ( + col2 ) + + 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 87 + + - 73 + + col1 + col0 / col2 NOT BETWEEN NULL AND - col0 * - - 5 + + 2
----

query I rowsort
SELECT 20 * - + 42 * - 49 AS col1 FROM tab0 WHERE NOT NULL = NULL
----

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

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT MAX ( + + 42 ) AS col0 FROM tab0
----
42

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

onlyif mysql # DIV for integer division: 
query II rowsort label-663
SELECT DISTINCT col2 DIV - ( + col2 ) + + col1 + + col2 col2, - 84 + + 44 AS col0 FROM tab2 AS cor0
----
116
-40
124
-40
73
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-663
SELECT DISTINCT col2 / - ( + col2 ) + + col1 + + col2 col2, - 84 + + 44 AS col0 FROM tab2 AS cor0
----
116
-40
124
-40
73
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT MIN( - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-665
SELECT MIN ( - col0 ) FROM tab2 AS cor0
----
-75

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

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

query II rowsort
SELECT ALL 21, 51 AS col0 FROM tab0 AS cor0 WHERE col0 - ( - col0 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + 44 + - COUNT( * ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-669
SELECT + 44 + - COUNT ( * ) FROM tab0 AS cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 - 7 col0 FROM tab1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT - col0 + + CAST( - 7 AS SIGNED ) * + col0 * - col1 AS col1 FROM tab0
----
12702
582
8490

skipif mysql # not compatible
query I rowsort label-671
SELECT - col0 + + CAST ( - 7 AS INTEGER ) * + col0 * - col1 AS col1 FROM tab0
----
12702
582
8490

query I rowsort
SELECT col2 + 76 AS col0 FROM tab1
----
135
144
172

query I rowsort
SELECT + col2 + - + col0 AS col0 FROM tab1
----
-23
-26
45

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

skipif mysql # not compatible
query I rowsort label-674
SELECT COUNT ( * ) + + ( - COUNT ( DISTINCT - - 77 ) ) FROM tab2
----
2

query I rowsort
SELECT + col1 + + 42 + - col0 * + col0 * + + col0 AS col0 FROM tab1 cor0
----
-132595
-614078
-753482

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 43 IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - - 25 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
25

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

query I rowsort
SELECT 27 * + - col1 AS col2 FROM tab2
----
-1377
-1809
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT DISTINCT - - COUNT( * ) * ( - 21 ) col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-682
SELECT DISTINCT - - COUNT ( * ) * ( - 21 ) col2 FROM tab1 AS cor0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-683
SELECT + col1 DIV - + col2 AS col1 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-683
SELECT + col1 / - + col2 AS col1 FROM tab0 cor0
----
-1
-2
0

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 65 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3315
-5525
-5915

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

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

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

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

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

query I rowsort
SELECT DISTINCT 39 * - col1 * + col0 * 67 FROM tab1
----
-1110525
-11175801
-1865682

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 2 * + col0 < NULL
----

query I rowsort
SELECT DISTINCT + col0 * - ( + 43 ) AS col1 FROM tab0
----
-3741
-4171
-645

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

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

query I rowsort
SELECT DISTINCT 74 * + col2 - - - 71 FROM tab1 AS cor0 WHERE - ( + + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT 32 + + - 32 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - ( col1 ) AS col1, col1 + + ( - + 61 ) FROM tab2 AS cor0
----
-51
-10
-67
6
-77
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT DISTINCT 45 + + COUNT( * ) AS col0 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT 45 + + COUNT ( * ) AS col0 FROM tab0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT ALL col2 DIV + 58 - - col2 - + - col1 DIV + + 48 AS col2 FROM tab2
----
24
41
60

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL col2 / + 58 - - col2 - + - col1 / + + 48 AS col2 FROM tab2
----
24
41
60

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT + COUNT( * ) FROM tab1 WHERE - - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-702
SELECT + COUNT ( * ) FROM tab1 WHERE - - col0 >= NULL
----
0

query I rowsort
SELECT 71 * 36 AS col1 FROM tab1
----
2556
2556
2556

onlyif mysql # aggregate syntax: 
query II rowsort label-704
SELECT - 78 AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-78
3

skipif mysql # not compatible
query II rowsort label-704
SELECT - 78 AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-78
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-705
SELECT ALL + + COUNT( * ) DIV + + 80 + 43 FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + + COUNT ( * ) / + + 80 + 43 FROM tab2 cor0
----
43

query I rowsort
SELECT ALL 79 - + 77 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - + col0 * col2 FROM tab1 WHERE + 65 * - col1 < col0
----
-4896
-5015
-6188

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-710
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 49, + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + col0 + + + 46 + - 56, + col0 )
----

skipif mysql # not compatible
query III rowsort label-710
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 49, + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + col0 + + + 46 + - 56, + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 20 * 91 - - + 80 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT 55 DIV col2 - + + col1 + + 74 AS col1 FROM tab1 AS cor0
----
27
60
69

skipif mysql # not compatible
query I rowsort label-712
SELECT 55 / col2 - + + col1 + + 74 AS col1 FROM tab1 AS cor0
----
27
60
69

query I rowsort
SELECT 56 * - col0 AS col2 FROM tab2 AS cor0
----
-2576
-3584
-4200

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

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

query I rowsort
SELECT - col2 * - 20 * 72 FROM tab0 cor0
----
142560
14400
67680

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT CAST( 71 AS SIGNED ) * + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
113600
238844
37559

skipif mysql # not compatible
query I rowsort label-717
SELECT CAST ( 71 AS INTEGER ) * + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
113600
238844
37559

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT ALL - 86 + 25 - - COUNT( * ) + - 34 AS col1 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL - 86 + 25 - - COUNT ( * ) + - 34 AS col1 FROM tab1
----
-92

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + 58 ) AS col1 FROM tab2 AS cor0
----
-58

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

query I rowsort
SELECT ALL - col0 + 94 * + + col2 * + col1 * 47 * - 68 AS col1 FROM tab1 AS cor0
----
-403769907
-88625165
-960155195

onlyif mysql # aggregate syntax: 
query II rowsort label-727
SELECT ALL + 77 AS col2, - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
77
-9

skipif mysql # not compatible
query II rowsort label-727
SELECT ALL + 77 AS col2, - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
77
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT ALL 22 + - MAX( - + 30 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL 22 + - MAX ( - + 30 ) FROM tab1
----
52

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

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT ALL + col0 + col2 DIV + 40 FROM tab0 AS cor0
----
16
87
99

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + col0 + col2 / + 40 FROM tab0 AS cor0
----
16
87
99

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT - col0 - - col1 + - + col2 * col0 DIV 63 FROM tab2 AS cor0
----
-11
-27
-77

skipif mysql # not compatible
query I rowsort label-731
SELECT - col0 - - col1 + - + col2 * col0 / 63 FROM tab2 AS cor0
----
-11
-27
-77

query I rowsort
SELECT DISTINCT + ( - + col1 ) - + col2 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT 86 + - - 5 AS col1 FROM tab0 AS cor0
----
91
91
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT DISTINCT SUM( 85 ) * + COUNT( * ) FROM tab0
----
765

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT SUM ( 85 ) * + COUNT ( * ) FROM tab0
----
765

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 41 + + + 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT DISTINCT COUNT( * ) - - 92 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT COUNT ( * ) - - 92 FROM tab0
----
95

query I rowsort
SELECT ALL col1 - - col1 * - col0 FROM tab2
----
-2295
-4851
-4958

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

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT COUNT( * ) * - 80 + - + 83 FROM tab1
----
-323

skipif mysql # not compatible
query I rowsort label-740
SELECT COUNT ( * ) * - 80 + - + 83 FROM tab1
----
-323

query I rowsort
SELECT + col0 * 75 FROM tab2
----
3450
4800
5625

query I rowsort
SELECT + + 58 FROM tab2 WHERE + + 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT ALL - SUM( ALL - - ( + - 53 ) ) FROM tab1 cor0
----
159

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL - SUM ( ALL - - ( + - 53 ) ) FROM tab1 cor0
----
159

query I rowsort
SELECT + ( 36 ) * - + col1 AS col1 FROM tab1 cor0
----
-1692
-180
-504

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

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

query II rowsort
SELECT - 55 * - ( + - ( - + 78 ) ), 23 AS col0 FROM tab2 AS cor0
----
4290
23
4290
23
4290
23

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

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

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

query I rowsort
SELECT ALL - - 22 FROM tab2 cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL - SUM( - 71 ) FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - SUM ( - 71 ) FROM tab2 AS cor0
----
213

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-754
SELECT * FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) + + 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-754
SELECT * FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) + + 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-755
SELECT 87, col1 - - + 8 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
87
NULL
87
NULL
87
NULL

skipif mysql # not compatible
query II rowsort label-755
SELECT 87, col1 - - + 8 + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
87
NULL
87
NULL
87
NULL

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

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

query I rowsort
SELECT + col0 * 93 FROM tab2
----
4278
5952
6975

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-758
SELECT ALL + col0 col2, - CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
15
-81
87
-21
97
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-758
SELECT ALL + col0 col2, - CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-759
SELECT DISTINCT - CAST( + 52 AS SIGNED ) + + SUM( DISTINCT + col2 ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT - CAST ( + 52 AS INTEGER ) + + SUM ( DISTINCT + col2 ) AS col2 FROM tab2
----
69

query II rowsort
SELECT DISTINCT + col2, 34 + - col2 * - col0 * - - col0 FROM tab2
----
23
48702
40
163874
58
326284

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 19 - + - col2 > - 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE + col2 <= + + 1 - + col1 * - col1
----
-51
-67
-77

query I rowsort
SELECT ALL 47 + + + col2 AS col2 FROM tab0 AS cor0
----
146
57
94

query I rowsort
SELECT DISTINCT - col0 + + - col2 FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT ALL - col0 + - 39 FROM tab1 AS cor0
----
-124
-130
-90

query I rowsort
SELECT col0 * - + 87 + 35 FROM tab2 AS cor0
----
-3967
-5533
-6490

query I rowsort
SELECT ALL col1 - col1 + + + col2 * - col2 * - - col1 * col0 * ( - - col2 ) FROM tab0 AS cor0
----
-126144945
-1827000
-94119003

query I rowsort
SELECT DISTINCT + - col1 + col1 FROM tab2 AS cor0 WHERE 30 BETWEEN NULL AND - - col1
----

query I rowsort
SELECT ALL - ( col1 ) + + col2 + col2 FROM tab2 AS cor0
----
-5
3
49

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

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

query II rowsort
SELECT 48 AS col2, + 48 * col0 + + col0 AS col1 FROM tab1
----
48
2499
48
4165
48
4459

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT DISTINCT - 75 - + + 75 + + 54 * + 84 + - + col0 + + 37 DIV 19 FROM tab2
----
4312
4323
4341

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT - 75 - + + 75 + + 54 * + 84 + - + col0 + + 37 / 19 FROM tab2
----
4312
4323
4341

query I rowsort
SELECT - col2 - + col0 + + col2 + + + 70 * + - col1 AS col2 FROM tab2
----
-3616
-4765
-5454

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL COUNT( 10 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL COUNT ( 10 ) FROM tab0
----
3

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

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

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

query I rowsort
SELECT - + 97 * + + 60 FROM tab0 AS cor0
----
-5820
-5820
-5820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-780
SELECT + col2 - CAST( NULL AS SIGNED ) + + - 27 / + col1 * 67 FROM tab2 AS cor0 WHERE NOT - col0 * + col2 / ( - 83 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-780
SELECT + col2 - CAST ( NULL AS INTEGER ) + + - 27 / + col1 * 67 FROM tab2 AS cor0 WHERE NOT - col0 * + col2 / ( - 83 ) = NULL
----

query I rowsort
SELECT ALL + - col2 * + 13 FROM tab2 AS cor0
----
-299
-520
-754

onlyif mysql # aggregate syntax: 
query II rowsort label-782
SELECT DISTINCT + - COUNT( * ), - 51 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
-48

skipif mysql # not compatible
query II rowsort label-782
SELECT DISTINCT + - COUNT ( * ), - 51 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
-48

query I rowsort
SELECT - - 4 * - col1 AS col2 FROM tab2 AS cor0
----
-204
-268
-308

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

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-788
SELECT + col1 * CAST ( - 18 AS INTEGER ) col0 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND col2 * + col1
----

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND col2
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab1 WHERE + col1 IN ( col1 )
----
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 >= ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT - ( + 92 ) * 52 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 - - 53 FROM tab0
----
-46
43
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( col2 ) col1 FROM tab2 WHERE - col2 NOT BETWEEN ( 72 * 94 ) AND NULL
----
116
46
80

query I rowsort
SELECT DISTINCT - 93 - 56 FROM tab0
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT + col2 + col2 DIV - 81 FROM tab1 AS cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-803
SELECT + col2 + col2 / - 81 FROM tab1 AS cor0
----
59
68
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-804
SELECT - 97 DIV 9 + 36 * COUNT( * ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-804
SELECT - 97 / 9 + 36 * COUNT ( * ) FROM tab0 AS cor0
----
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( col2 ) ) = - 7
----

query I rowsort
SELECT DISTINCT - col2 + 31 FROM tab1 AS cor0
----
-28
-37
-65

query I rowsort
SELECT - 12 * 25 + + col2 FROM tab0 cor0 WHERE 27 + + col2 NOT IN ( - col1 )
----
-201
-253
-290

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 58 ) NOT BETWEEN + col1 + + col1 / - 5 AND ( NULL )
----
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT DISTINCT + 6 * col1 - 73 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT ( 16 ) < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-809
SELECT DISTINCT + 6 * col1 - 73 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT ( 16 ) < NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-812
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT BETWEEN + ( CAST( 47 AS SIGNED ) ) AND - 44 - col2
----

skipif mysql # not compatible
query III rowsort label-812
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT BETWEEN + ( CAST ( 47 AS INTEGER ) ) AND - 44 - col2
----

query I rowsort
SELECT ( + 21 ) - - 52 FROM tab0 AS cor0
----
73
73
73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 * + col1 ) >= col2 * - 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 85 AS col0 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT DISTINCT col2 DIV - col0 + ( 84 ) AS col2 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT col2 / - col0 + ( 84 ) AS col2 FROM tab2 AS cor0
----
84

query I rowsort
SELECT col0 + - 62 AS col2 FROM tab0 AS cor0
----
-47
25
35

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT DISTINCT - - ( - 8 ) + - ( + 91 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-281

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT - - ( - 8 ) + - ( + 91 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT ALL - 96 * col1 - + col0 FROM tab1 AS cor0
----
-1395
-4603
-565

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE + 86 + + col1 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 IN ( + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT DISTINCT 90 - MIN( - col0 ) AS col2 FROM tab0 AS cor0 WHERE - 81 * col2 <> - 81
----
187

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT 90 - MIN ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE - 81 * col2 <> - 81
----
187

query I rowsort
SELECT DISTINCT + col1 * + ( + ( col2 ) ) FROM tab2 WHERE NOT + col1 * col0 IS NULL
----
1173
3080
3886

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

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

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT col0 * - - col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT DISTINCT COUNT( * ) * 36 AS col1 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT COUNT ( * ) * 36 AS col1 FROM tab2
----
108

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

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

query I rowsort
SELECT ALL + col0 * + col0 * ( 24 ) AS col2 FROM tab1 AS cor0
----
173400
198744
62424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( 34 ) * ( - ( - ( - 96 ) ) + col2 ) col0 FROM tab0 AS cor0
----
-24990
-254388
9894

query I rowsort
SELECT DISTINCT col0 * - 12 + col2 AS col2 FROM tab1 cor0
----
-1024
-516
-961

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-834
SELECT ALL - CAST( NULL AS DECIMAL ) / col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL - CAST ( NULL AS REAL ) / col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
58

query II rowsort
SELECT - col2, col2 * - ( col0 ) AS col1 FROM tab2
----
-23
-1058
-40
-2560
-58
-4350

query I rowsort
SELECT ALL 17 AS col2 FROM tab0 WHERE + + 69 + + 74 IS NOT NULL
----
17
17
17

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT DISTINCT - col2 DIV 63 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT - col2 / 63 AS col2 FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + 60 / col1 ) AND ( - 84 )
----

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

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

query I rowsort
SELECT + - 38 + + - col0 AS col1 FROM tab0 AS cor0
----
-125
-135
-53

query I rowsort
SELECT col2 FROM tab0 WHERE ( - col1 ) >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + + + 62 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + + 62 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL ( + COUNT( * ) ) * - 15 AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL ( + COUNT ( * ) ) * - 15 AS col1 FROM tab0
----
-45

query I rowsort
SELECT + col0 / col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN + col2 * 18 AND 0 * 35
----

query I rowsort
SELECT ALL + 17 + - 21 FROM tab0 AS cor0
----
-4
-4
-4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-851
SELECT + col0 DIV + - 97 + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-851
SELECT + col0 / + - 97 + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 * 92 * - - 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT DISTINCT COUNT( * ) * + + MAX( - ( - + col0 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
225

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT COUNT ( * ) * + + MAX ( - ( - + col0 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
225

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT + + CAST( + 34 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-857
SELECT + + CAST ( + 34 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-858
SELECT - col1 * - col0 * - - col2 AS col2, - CAST( - 32 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
197120
32
291450
32
53958
32

skipif mysql # not compatible
query II rowsort label-858
SELECT - col1 * - col0 * - - col2 AS col2, - CAST ( - 32 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
197120
32
291450
32
53958
32

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

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

query I rowsort
SELECT ALL + 51 * - 45 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT - + MAX( + - col2 ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col2 IS NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-863
SELECT + COUNT( * ) + - COUNT( * ) - + COUNT( * ) DIV + 22 DIV - ( + 1 ) FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-863
SELECT + COUNT ( * ) + - COUNT ( * ) - + COUNT ( * ) / + 22 / - ( + 1 ) FROM tab0, tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT + MAX( + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-864
SELECT + MAX ( + col0 ) FROM tab1
----
91

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

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

query II rowsort
SELECT DISTINCT col1, col1 AS col2 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - + 43 <= col1
----

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * col2 * + - 30 AS col2 FROM tab0 AS cor0
----
-21150
-26100
-288090

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

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

query I rowsort
SELECT col0 * - ( - col2 ) FROM tab2 AS cor0
----
1058
2560
4350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT ALL - COUNT( * ) col0 FROM tab2 cor0
----
-3

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

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

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

query I rowsort
SELECT ALL - col0 * - 59 AS col1 FROM tab1
----
3009
5015
5369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-879
SELECT ALL CAST( - col0 AS SIGNED ) + - - col1 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL CAST ( - col0 AS INTEGER ) + - - col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL - + 72 + 67 + + 96 AS col0 FROM tab0 AS cor0
----
91
91
91

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-882
SELECT ALL + + col2 * col0 / + col1 + 57 FROM tab0 cor0 WHERE NOT CAST( - col1 AS SIGNED ) < 45
----

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL + + col2 * col0 / + col1 + 57 FROM tab0 cor0 WHERE NOT CAST ( - col1 AS INTEGER ) < 45
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( + 77 ) = 49
----

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

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL COUNT ( * ) + SUM ( + col2 ) AS col1 FROM tab1
----
226

query I rowsort
SELECT DISTINCT - ( col1 ) * + - 20 FROM tab1
----
100
280
940

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

onlyif mysql # DIV for integer division: 
query II rowsort label-888
SELECT ALL + col2 DIV col0 * + - 78 AS col1, - 33 FROM tab0
----
-234
-33
-78
-33
0
-33

skipif mysql # not compatible
query II rowsort label-888
SELECT ALL + col2 / col0 * + - 78 AS col1, - 33 FROM tab0
----
-234
-33
-78
-33
0
-33

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

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

query I rowsort
SELECT col0 * + 29 AS col1 FROM tab1 WHERE - col1 - + - 58 * + col2 - + 62 BETWEEN - col2 + + col0 AND - 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-891
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 + + CAST( - + col1 AS SIGNED ) / + col1 NOT BETWEEN NULL AND + - col1 * - 70 * + + 39 - - ( + 28 ) * - col1
----

skipif mysql # not compatible
query III rowsort label-891
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 + + CAST ( - + col1 AS INTEGER ) / + col1 NOT BETWEEN NULL AND + - col1 * - 70 * + + 39 - - ( + 28 ) * - col1
----

query I rowsort
SELECT ALL + 96 - + col1 AS col1 FROM tab2 AS cor0
----
19
29
45

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT ALL + MAX( ALL + col2 ) + 4 AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + MAX ( ALL + col2 ) + 4 AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - - col0 * + + col1 + + - ( 27 ) + - col0 + - col1 FROM tab2 AS cor0
----
2222
4760
4856

query I rowsort
SELECT DISTINCT col1 - + - col2 + + + col1 + 30 * col1 FROM tab1 AS cor0
----
1572
219
544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT 14 * - + col2 - - 88 FROM tab0
----
-1298
-52
-570

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT - MAX( col2 ) - ( 72 ) - + 56 AS col0, COUNT( * ) FROM tab2
----
-186
3

skipif mysql # not compatible
query II rowsort label-898
SELECT - MAX ( col2 ) - ( 72 ) - + 56 AS col0, COUNT ( * ) FROM tab2
----
-186
3

query I rowsort
SELECT ALL 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

query I rowsort
SELECT - - col0 * + - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

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

query I rowsort
SELECT ALL 1 AS col1 FROM tab1 cor0
----
1
1
1

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - col1 - + col2 + + col0 - - 19 + col2 = - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-906
SELECT DISTINCT COUNT( * ) col2, 16 FROM tab2
----
3
16

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

query I rowsort
SELECT col0 FROM tab0 WHERE NOT 53 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * - 1 * + + col2 col2 FROM tab2
----
-1587
-2760
-4002

query I rowsort
SELECT ALL 87 * 41 * 25 * - col1 FROM tab1
----
-1248450
-4191225
-445875

query I rowsort
SELECT col1 * col2 * - 35 FROM tab2 AS cor0 WHERE NOT ( col2 + col1 ) IS NULL
----
-107800
-136010
-41055

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

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

query II rowsort
SELECT ALL - 98 * ( + 54 ) AS col0, col1 * + col0 + 30 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-5292
4307
-5292
455
-5292
744

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT MIN( - col1 ) * 15 + 90 AS col0 FROM tab2 cor0
----
-1065

skipif mysql # not compatible
query I rowsort label-914
SELECT MIN ( - col1 ) * 15 + 90 AS col0 FROM tab2 cor0
----
-1065

query II rowsort
SELECT DISTINCT - 83, ( col1 ) FROM tab1
----
-83
14
-83
47
-83
5

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT DISTINCT + COUNT( ALL - 95 ) + - 54 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT + COUNT ( ALL - 95 ) + - 54 FROM tab1 cor0
----
-51

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

query I rowsort
SELECT DISTINCT - + 98 + + 61 * + 26 AS col0 FROM tab1 AS cor0
----
1488

query I rowsort
SELECT ALL col1 * 25 * + col2 AS col1 FROM tab0 AS cor0
----
2475
5250
95175

query I rowsort
SELECT DISTINCT + col0 + 68 FROM tab0 AS cor0
----
155
165
83

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT - ( - + col0 ) * + + col0 + - 81 * - + 53 AS col0 FROM tab1
----
11518
12574
6894

query I rowsort
SELECT ALL + col1 - + + col2 * - col0 FROM tab1
----
4910
5020
6235

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - - 63 AS col0, 61 + - col1 * col0 col1 FROM tab0
----
1323
-1766
5103
-1154
63
-36

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-928
SELECT COUNT( * ) DIV - 79 FROM tab2 WHERE ( NULL IN ( col1 + - - col1 DIV - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-928
SELECT COUNT ( * ) / - 79 FROM tab2 WHERE ( NULL IN ( col1 + - - col1 / - col1 ) )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT DISTINCT - 34 col0 FROM tab1 AS cor0 WHERE 12 * + col2 / ( + + ( + + col0 ) ) + - 84 - - col0 - + CAST( - + 30 AS SIGNED ) + col0 NOT BETWEEN NULL AND + col1
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-931
SELECT DISTINCT - 34 col0 FROM tab1 AS cor0 WHERE 12 * + col2 / ( + + ( + + col0 ) ) + - 84 - - col0 - + CAST ( - + 30 AS INTEGER ) + col0 NOT BETWEEN NULL AND + col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT - + 34 + + + COUNT( * ) + + 21 AS col2 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-932
SELECT - + 34 + + + COUNT ( * ) + + 21 AS col2 FROM tab1 AS cor0
----
-10

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

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

query I rowsort
SELECT DISTINCT col0 - - + 93 FROM tab1
----
144
178
184

query I rowsort
SELECT DISTINCT + ( - ( - ( col2 ) ) ) * - col1 + - 28 AS col0 FROM tab1
----
-1372
-3224
-323

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - col2 + - - 85 AS col0 FROM tab2 AS cor0
----
-1515
-3279
-444

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

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

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

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

query I rowsort
SELECT + 80 * + col1 AS col0 FROM tab2 AS cor0
----
4080
5360
6160

query I rowsort
SELECT DISTINCT + ( - - 60 ) AS col1 FROM tab2
----
60

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

onlyif mysql # aggregate syntax: 
query II rowsort label-946
SELECT ALL SUM( ALL 94 ) col2, - 86 FROM tab0
----
282
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-946
SELECT ALL SUM ( ALL 94 ) col2, - 86 FROM tab0
----
282
-86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 46 + + col1 * - - col0 * + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + 89 AS col0, 84 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
103
84
136
84
94
84

query I rowsort
SELECT - + ( - - 72 ) + + 7 AS col0 FROM tab0 cor0
----
-65
-65
-65

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

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

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

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

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

query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab0, tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT 11 + - + 94 FROM tab0 AS cor0
----
-83

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

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

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

query I rowsort
SELECT DISTINCT + 85 + - + col0 FROM tab0 AS cor0
----
-12
-2
70

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT DISTINCT col2 DIV + - 55 + - 49 AS col2 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT col2 / + - 55 + - 49 AS col2 FROM tab1 AS cor0
----
-50

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - + 36 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-962
SELECT ALL - COUNT( ALL col2 ) * - - CAST( + + 7 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL - COUNT ( ALL col2 ) * - - CAST ( + + 7 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-21

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

query I rowsort
SELECT col0 + + 53 AS col1 FROM tab1
----
104
138
144

query I rowsort
SELECT - ( 96 ) + - 7 * col2 FROM tab2
----
-257
-376
-502

query I rowsort
SELECT + ( + col1 ) * + col2 AS col0 FROM tab0
----
210
3807
99

query II rowsort
SELECT DISTINCT - ( + col2 ) * - + col1 + + 67 * - col1 + col2, col2 FROM tab0 AS cor0
----
-1187
10
-1573
47
131
99

query I rowsort
SELECT DISTINCT 45 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-13
22
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-969
SELECT col0 * - col0 + + 75 FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) + + col0 BETWEEN + col2 AND + col2 - + col2
----
-2041
-4021
-5550

skipif mysql # not compatible
query I rowsort label-969
SELECT col0 * - col0 + + 75 FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) + + col0 BETWEEN + col2 AND + col2 - + col2
----
-2041
-4021
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL + COUNT( * ) * - - SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL + COUNT ( * ) * - - SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
669

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * 4 - - col1 + - - 15 * + 74 + - + 59 - - col1 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col0 * col1 AS col1, 8 * - - 72 AS col1 FROM tab0 AS cor0
----
1215
576
1827
576
97
576

query I rowsort
SELECT ALL - 92 AS col0 FROM tab2 AS cor0 WHERE NULL >= col1 * + + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT ALL - COUNT( * ) * + SUM( - 14 ) * + 52 * - COUNT( * ) FROM tab0 WHERE - col0 NOT IN ( - ( + 38 ), col2, - + 89, col1 * col1 * col0 )
----
-19656

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL - COUNT ( * ) * + SUM ( - 14 ) * + 52 * - COUNT ( * ) FROM tab0 WHERE - col0 NOT IN ( - ( + 38 ), col2, - + 89, col1 * col1 * col0 )
----
-19656

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

onlyif mysql # aggregate syntax: 
query II rowsort label-980
SELECT + 85, MAX( + col0 ) * 37 AS col2 FROM tab0
----
85
3589

skipif mysql # not compatible
query II rowsort label-980
SELECT + 85, MAX ( + col0 ) * 37 AS col2 FROM tab0
----
85
3589

query II rowsort
SELECT - col2, + col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

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

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

query I rowsort
SELECT DISTINCT col2 * col2 + + ( + col2 ) FROM tab1
----
3540
4692
9312

query I rowsort
SELECT 44 + + 44 + - col2 FROM tab0
----
-11
41
78

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

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

query I rowsort
SELECT + col2 + - col0 * + col1 + + + 97 AS col0 FROM tab2
----
-2226
-4791
-4870

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
30

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) + + 25 col0 FROM tab0 AS cor0
----
-22
-74
15

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT DISTINCT - COUNT( ALL + 1 ) + + COUNT( - col1 ) + + ( + MIN( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT - COUNT ( ALL + 1 ) + + COUNT ( - col1 ) + + ( + MIN ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

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

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

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

query II rowsort
SELECT DISTINCT + col0 * + + col0 * + col2 - + col0 AS col1, 41 AS col0 FROM tab0 AS cor0
----
10560
41
75603
41
931394
41

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT ALL + col2 + - 13 + - col0 DIV col0 AS col2 FROM tab1
----
45
54
82

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + col2 + - 13 + - col0 / col0 AS col2 FROM tab1
----
45
54
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-997
SELECT COUNT( * ) DIV COUNT( DISTINCT - - col0 ) - - 21 AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-997
SELECT COUNT ( * ) / COUNT ( DISTINCT - - col0 ) - - 21 AS col2 FROM tab1
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 * col1 * + col1 col2 FROM tab1
----
1176
13254
150

query I rowsort
SELECT DISTINCT + 6 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT 78 * 80 - - + COUNT( * ) FROM tab1
----
6243

skipif mysql # not compatible
query I rowsort label-1000
SELECT 78 * 80 - - + COUNT ( * ) FROM tab1
----
6243

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

query I rowsort
SELECT DISTINCT 92 * + + col1 * + col0 - - col1 AS col2 FROM tab1
----
39105
393531
65702

query I rowsort
SELECT - col2 - + 99 AS col2 FROM tab2
----
-122
-139
-157

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

query II rowsort
SELECT DISTINCT col2 AS col1, col0 * - col1 + - + 82 - + + col1 FROM tab2 AS cor0
----
23
-2479
40
-5087
58
-5174

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

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

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

query I rowsort
SELECT DISTINCT + 0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 55 BETWEEN + + col2 AND ( NULL )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1010
SELECT CAST( - 79 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-3713
-7821
-790

skipif mysql # not compatible
query I rowsort label-1010
SELECT CAST ( - 79 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-3713
-7821
-790

query I rowsort
SELECT ALL col2 * + 32 AS col0 FROM tab0 AS cor0
----
1504
3168
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT ALL col2 * + 75 * - - CAST( - - 63 AS SIGNED ) * - col2 + + + col0 + + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
-10433703
-46309529
-472203

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL col2 * + 75 * - - CAST ( - - 63 AS INTEGER ) * - col2 + + + col0 + + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
-10433703
-46309529
-472203

query I rowsort
SELECT - 64 * + col1 * + - 34 FROM tab1 AS cor0
----
102272
10880
30464

query II rowsort
SELECT col0, 32 * + 12 FROM tab0 AS cor0
----
15
384
87
384
97
384

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT col1 * 58 DIV - col2 FROM tab1 AS cor0
----
-4
-40
-8

skipif mysql # not compatible
query I rowsort label-1015
SELECT col1 * 58 / - col2 FROM tab1 AS cor0
----
-4
-40
-8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * col1 NOT IN ( + 69, 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT 18 * ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

skipif mysql # not compatible
query I rowsort label-1017
SELECT 18 * ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 26 + + - col2 + col2 <= - - col2
----

query II rowsort
SELECT ALL 25 * - col2, - col0 - + 63 + + 95 AS col2 FROM tab0
----
-1175
17
-2475
-65
-250
-55

query I rowsort
SELECT col1 * + 97 FROM tab2 WHERE + - col0 IN ( - - ( + 45 ), col0 )
----

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

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

query I rowsort
SELECT - col0 * + col1 + - 0 + - ( - + col1 ) FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT + 5 + - col0 AS col0 FROM tab2 AS cor0
----
-41
-59
-70

query II rowsort
SELECT ALL col0 + + col0 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
128
-40
150
-58
92
-23

query II rowsort
SELECT - 87 AS col2, 10 + - col2 AS col1 FROM tab0 AS cor0 WHERE 12 * - 15 - - 42 IS NULL
----

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

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

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL BETWEEN 82 AND 87
----

query I rowsort
SELECT + 2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

query I rowsort
SELECT ALL + + 45 AS col2 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT COUNT( * ) * 45 + - - ( 24 ) - + 25 AS col1 FROM tab0 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-1032
SELECT COUNT ( * ) * 45 + - - ( 24 ) - + 25 AS col1 FROM tab0 AS cor0
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1033
SELECT ALL - 16 + - + ( + col0 ) AS col0, - CAST( + - 44 AS SIGNED ) * - col0 * - 74 FROM tab1 AS cor0
----
-101
276760
-107
296296
-67
166056

skipif mysql # not compatible
query II rowsort label-1033
SELECT ALL - 16 + - + ( + col0 ) AS col0, - CAST ( + - 44 AS INTEGER ) * - col0 * - 74 FROM tab1 AS cor0
----
-101
276760
-107
296296
-67
166056

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT + 74 * - SUM( col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
-14723

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT + 74 * - SUM ( col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-14723

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT COUNT( * ) + + 99 AS col2 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT COUNT ( * ) + + 99 AS col2 FROM tab0 AS cor0
----
102

query I rowsort
SELECT DISTINCT col2 - 88 AS col1 FROM tab2 cor0
----
-30
-48
-65

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

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

query II rowsort
SELECT - + col1 * col1 + - 65 AS col2, + 61 FROM tab1 AS cor0
----
-2274
61
-261
61
-90
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT COUNT( ALL col2 ) - - 75 AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT COUNT ( ALL col2 ) - - 75 AS col1 FROM tab1
----
78

query I rowsort
SELECT + col0 * + 90 AS col2 FROM tab1
----
4590
7650
8190

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

query I rowsort
SELECT ALL 34 * + col0 AS col0 FROM tab1
----
1734
2890
3094

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT + - 92 + COUNT( * ) AS col1 FROM tab0 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1044
SELECT + - 92 + COUNT ( * ) AS col1 FROM tab0 cor0
----
-89

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1047
SELECT ALL + MIN( DISTINCT + CAST( - col1 AS SIGNED ) ) - + - 8 * + 35 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
203

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + MIN ( DISTINCT + CAST ( - col1 AS INTEGER ) ) - + - 8 * + 35 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
203

onlyif mysql # DIV for integer division: 
query I rowsort label-1048
SELECT 59 DIV + col1 + + ( - 65 ) FROM tab0 AS cor0
----
-6
-63
-65

skipif mysql # not compatible
query I rowsort label-1048
SELECT 59 / + col1 + + ( - 65 ) FROM tab0 AS cor0
----
-6
-63
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT DISTINCT col0 * + + 70 DIV col0 * + - 0 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT col0 * + + 70 / col0 * + - 0 / - col0 FROM tab2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1051
SELECT CAST( - ( - + SUM( ALL + - ( - col2 ) ) ) AS SIGNED ) FROM tab1
----
223

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL = NULL
----
0

query I rowsort
SELECT ALL + 16 + col1 AS col0 FROM tab0
----
17
37
97

query I rowsort
SELECT DISTINCT + 5 * + ( - col1 ) AS col1 FROM tab1
----
-235
-25
-70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL AND NOT - 75 > col0 * - col1
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 75 * - 99 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 62 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT + - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 56 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1061
SELECT + - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 56 IS NULL
----
0
0

query II rowsort
SELECT ALL - - 44 + + col1, + 84 AS col1 FROM tab0 AS cor0
----
125
84
45
84
65
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT DISTINCT - 49 DIV - col2 + 70 DIV 62 * + - col0 AS col0 FROM tab2 AS cor0
----
-44
-63
-75

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - 49 / - col2 + 70 / 62 * + - col0 AS col0 FROM tab2 AS cor0
----
-44
-63
-75

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

query I rowsort
SELECT + col0 * 51 - + col0 * + col1 FROM tab2 cor0
----
-1200
-1664
0

query I rowsort
SELECT ALL - col0 * + col0 - + ( col2 ) AS col0 FROM tab0 AS cor0
----
-272
-7579
-9508

query I rowsort
SELECT DISTINCT col2 * 77 * - ( - + col1 ) AS col0 FROM tab0 AS cor0
----
16170
293139
7623

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

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

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

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

query II rowsort
SELECT col1 AS col2, 29 AS col1 FROM tab0
----
1
29
21
29
81
29

query II rowsort
SELECT ALL 81, col0 AS col1 FROM tab1
----
81
51
81
85
81
91

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

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

query II rowsort
SELECT ALL col0 AS col0, + 75 AS col0 FROM tab0
----
15
75
87
75
97
75

query I rowsort
SELECT 28 * - col2 AS col1 FROM tab0
----
-1316
-2772
-280

query II rowsort
SELECT - + 5 AS col0, - 46 AS col1 FROM tab2 cor0
----
-5
-46
-5
-46
-5
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col0 + - - col0 col2, + col1 FROM tab1 AS cor0
----
4947
14
5100
5
6279
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1079
SELECT COUNT( * ) + + - 24 AS col0, - 73 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-15
-73

skipif mysql # not compatible
query II rowsort label-1079
SELECT COUNT ( * ) + + - 24 AS col0, - 73 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-15
-73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + 33 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + 33 + + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT - MIN( - 31 ) AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1082
SELECT - MIN ( - 31 ) AS col0 FROM tab1 AS cor0
----
31

query I rowsort
SELECT - - 27 AS col2 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT ALL + col1 + + 8 AS col2 FROM tab2 AS cor0
----
59
75
85

query I rowsort
SELECT DISTINCT + 46 + - 76 FROM tab1 AS cor0
----
-30

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

query I rowsort
SELECT DISTINCT - 31 + + - col0 - + col1 * + - 36 + col1 FROM tab1 AS cor0
----
1617
436
69

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

query I rowsort
SELECT ALL + col1 * + 36 FROM tab1
----
1692
180
504

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1090
SELECT ALL + 88 * - CAST( NULL AS DECIMAL ) / + col1, + col2 * col2 AS col2 FROM tab0
----
NULL
100
NULL
2209
NULL
9801

skipif mysql # not compatible
query II rowsort label-1090
SELECT ALL + 88 * - CAST ( NULL AS REAL ) / + col1, + col2 * col2 AS col2 FROM tab0
----
NULL
100
NULL
2209
NULL
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 * col1 col0, - col1 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 70 + + - 0 FROM tab1
----
-70
-70
-70

query I rowsort
SELECT ALL 64 + + ( + 6 ) + + - col1 AS col2 FROM tab0 AS cor0
----
-11
49
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT - MAX( - + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1095
SELECT - MAX ( - + col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT col1 + 86 + col2 AS col0 FROM tab0 AS cor0
----
117
186
214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT + + SUM( DISTINCT + + col0 ) + 67 col0 FROM tab0 AS cor0
----
266

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1098
SELECT + + SUM ( DISTINCT + + col0 ) + 67 col0 FROM tab0 AS cor0
----
266

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

query I rowsort
SELECT - col1 * - col1 * 64 + + col1 * - - col0 * col0 AS col2 FROM tab1 AS cor0
----
37725
48958
530583

query I rowsort
SELECT DISTINCT ( - 49 ) FROM tab1 cor0
----
-49

query I rowsort
SELECT DISTINCT - - col0 * - 27 AS col0 FROM tab2 cor0
----
-1242
-1728
-2025

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + MAX( ( col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1107
SELECT + MAX ( ( col2 ) ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT MAX( 3 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT MAX ( 3 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col1 col0 FROM tab1
----
-196
-2209
-25

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

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

query II rowsort
SELECT - ( + col2 ) AS col1, col0 AS col2 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT ALL 31 DIV + - col0 * + col2 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL 31 / + - col0 * + col2 AS col0 FROM tab2 cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab1 WHERE NULL IS NULL
----
81

query II rowsort
SELECT DISTINCT + + 0, - ( - + 19 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0
19

query I rowsort
SELECT ALL - 52 FROM tab2 WHERE NULL NOT BETWEEN 57 * - 91 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT MAX( ALL + 77 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
77

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT MAX ( ALL + 77 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
77

query I rowsort
SELECT col2 + + + 78 * - ( - col1 ) AS col1 FROM tab2 cor0
----
4001
5284
6046

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - 69 - + col1 + - col0 IS NULL
----
14
47
5

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

skipif mysql # not compatible
query II rowsort label-1120
SELECT col1 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ALL - col2 + - + col1 - - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT COUNT( * ) col1 FROM tab1 cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT COUNT( * ) * - COUNT( * ) * + + 55 FROM tab2
----
-495

skipif mysql # not compatible
query I rowsort label-1125
SELECT COUNT ( * ) * - COUNT ( * ) * + + 55 FROM tab2
----
-495

query I rowsort
SELECT DISTINCT 47 + - 21 FROM tab0
----
26

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

skipif mysql # not compatible
query I rowsort label-1127
SELECT + COUNT ( * ) / - 14 AS col1 FROM tab0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT 37 DIV + 59 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1129
SELECT 37 / + 59 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT ( - + col2 ) + + col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - 45 + + + col1 + + + col2 * - + 85 * - - col1 AS col2 FROM tab2 AS cor0
----
-261768
-330288
-99699

query I rowsort
SELECT DISTINCT - 69 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1134
SELECT ALL - COUNT( * ) DIV + 84 + + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

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

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - + 36 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 - 25 BETWEEN 72 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT - SUM( 83 ) + + 37 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - SUM ( 83 ) + + 37 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT DISTINCT COUNT( * ) * + 74 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT COUNT ( * ) * + 74 FROM tab2 AS cor0
----
222

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT - col1 DIV - col2 + - + 22 AS col0 FROM tab2 AS cor0
----
-20
-21
-21

skipif mysql # not compatible
query I rowsort label-1142
SELECT - col1 / - col2 + - + 22 AS col0 FROM tab2 AS cor0
----
-20
-21
-21

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 35 col0 FROM tab1
----
2065
2380
3360

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

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

query I rowsort
SELECT ALL - 40 + - 58 FROM tab0 AS cor0
----
-98
-98
-98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - 24 col2 FROM tab1 AS cor0
----
-35
-44
-72

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

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

query II rowsort
SELECT DISTINCT - 68 AS col2, - 69 + + col2 FROM tab0 AS cor0
----
-68
-22
-68
-59
-68
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT DISTINCT - MIN( ALL - + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - MIN ( ALL - + col0 ) FROM tab2
----
75

query I rowsort
SELECT DISTINCT - col0 + - + 95 FROM tab0
----
-110
-182
-192

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

query I rowsort
SELECT - 3 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT - col1 * - 91 AS col0 FROM tab2 AS cor0
----
4641
6097
7007

query I rowsort
SELECT ALL - + col0 + + - 16 - + 53 * - + col2 FROM tab2 AS cor0
----
1157
2040
2983

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - COUNT( col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1158
SELECT - COUNT ( col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT ALL - 7 + - 68 AS col0, + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-75
46
-75
64
-75
75

query I rowsort
SELECT + col0 + 6 AS col1 FROM tab2 AS cor0
----
52
70
81

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

query I rowsort
SELECT + col1 + - - col1 AS col0 FROM tab2
----
102
134
154

query III rowsort
SELECT * FROM tab2 WHERE + ( col1 ) <> - + ( + 25 ) * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + col0 + - 13 * - 85 * col0 FROM tab2
----
52946
74816
88500

query I rowsort
SELECT ALL ( - 90 ) AS col0 FROM tab1
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 + + col0 col1 FROM tab0
----
-46
26
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT DISTINCT + - col2 + 82 + + + col1 + 73 DIV col2 * + col0 FROM tab1 AS cor0
----
0
113
152

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT + - col2 + 82 + + + col1 + 73 / col2 * + col0 FROM tab1 AS cor0
----
0
113
152

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

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

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

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

query I rowsort
SELECT ALL - - 60 * + col0 + 9 + - col2 * 69 * - 61 * 49 FROM tab0 AS cor0
----
20423688
2067639
9694236

query II rowsort
SELECT 93, col0 FROM tab1 cor0 WHERE NOT col2 * col1 = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1175
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 29 * + CAST( - col2 AS SIGNED ) * col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1175
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 29 * + CAST ( - col2 AS INTEGER ) * col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT ALL - 63 DIV - 60 - - col2 AS col1 FROM tab1 cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL - 63 / - 60 - - col2 AS col1 FROM tab1 cor0
----
60
69
97

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1181
SELECT ALL + ( + 58 ) DIV - + COUNT( * ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL + ( + 58 ) / - + COUNT ( * ) AS col0 FROM tab2
----
-19

query I rowsort
SELECT - col1 * + 7 FROM tab1
----
-329
-35
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ALL COUNT( * ) * + 25 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL COUNT ( * ) * + 25 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 / - 21 * 83 / - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1184
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 / - 21 * 83 / - col2 IS NULL
----
3

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

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

query I rowsort
SELECT DISTINCT + col0 + 58 * - col0 + ( 56 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4903
-5473
-799

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1188
SELECT * FROM tab1 WHERE NULL >= - col1 + col0 * - 77 * - col1 * - col1 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1188
SELECT * FROM tab1 WHERE NULL >= - col1 + col0 * - 77 * - col1 * - col1 + + + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col0 ) + + col0 + + col2 + - 78 col1 FROM tab1
----
120
151
172

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

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

query I rowsort
SELECT DISTINCT + + ( + col2 ) + - col2 + col1 + - 40 FROM tab2 AS cor0
----
11
27
37

query II rowsort
SELECT DISTINCT + + col1 + - + col0, col0 * + 36 + + - col1 AS col1 FROM tab0 AS cor0
----
-66
3111
-96
3491
66
459

query I rowsort
SELECT DISTINCT + col1 * - col1 * - ( - - col0 ) * 29 - - col0 * - 54 + + col0 AS col2 FROM tab2 AS cor0
----
11000832
3467296
9759600

query I rowsort
SELECT ALL col1 * - 92 FROM tab1
----
-1288
-4324
-460

query I rowsort
SELECT ( 80 ) * + ( - - col0 ) AS col2 FROM tab2
----
3680
5120
6000

query I rowsort
SELECT DISTINCT 20 + - col0 + + 87 * - - col0 + col1 * - - col2 AS col1 FROM tab0 WHERE NOT NULL IN ( - col1 + ( col2 ), col1, - + 12 + + col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT ALL + MIN( ALL + + ( 1 ) ) - - COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL + MIN ( ALL + + ( 1 ) ) - - COUNT ( * ) FROM tab1
----
4

query II rowsort
SELECT ALL - + col2, col0 FROM tab0 WHERE NOT - 95 / - 99 * + col1 * - - col0 IS NULL
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL 49 + + COUNT( * ) + + 38 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL 49 + + COUNT ( * ) + + 38 FROM tab2
----
90

query I rowsort
SELECT ( - + col0 ) - + - col0 + - - 17 * - 24 FROM tab0
----
-408
-408
-408

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1202
SELECT ALL + COUNT( * ) + - + COUNT( * ) + + MIN( - col2 ) * CAST( NULL AS SIGNED ), 85 AS col0 FROM tab0 AS cor0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-1202
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) + + MIN ( - col2 ) * CAST ( NULL AS INTEGER ), 85 AS col0 FROM tab0 AS cor0
----
NULL
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1203
SELECT - col2 DIV + CAST( - 5 AS SIGNED ) + - col2 col0 FROM tab1 AS cor0
----
-48
-55
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1203
SELECT - col2 / + CAST ( - 5 AS INTEGER ) + - col2 col0 FROM tab1 AS cor0
----
-48
-55
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT + MAX( + 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-1205
SELECT + MAX ( + 76 ) FROM tab0
----
76

query II rowsort
SELECT ALL + col1 AS col0, col0 FROM tab2 WHERE NULL >= - col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL + COUNT( * ) * - 38 AS col0 FROM tab2 cor0
----
-114

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + COUNT ( * ) * - 38 AS col0 FROM tab2 cor0
----
-114

query II rowsort
SELECT DISTINCT + + col1, - col2 AS col0 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > + 27 - - col0
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1213
SELECT - - 76 DIV CAST( - 76 AS SIGNED ) * + - col2 col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1213
SELECT - - 76 / CAST ( - 76 AS INTEGER ) * + - col2 col1 FROM tab0 AS cor0
----
10
47
99

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 12 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1217
SELECT DISTINCT COUNT( * ) AS col1, - MIN( col0 ) * + - 62 FROM tab2 WHERE + + ( + col2 ) IS NOT NULL
----
3
2852

skipif mysql # not compatible
query II rowsort label-1217
SELECT DISTINCT COUNT ( * ) AS col1, - MIN ( col0 ) * + - 62 FROM tab2 WHERE + + ( + col2 ) IS NOT NULL
----
3
2852

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1218
SELECT ALL CAST( + col1 AS SIGNED ) * col0 * + 46 + col0 * 94 DIV 94 FROM tab2
----
107962
226752
231225

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL CAST ( + col1 AS INTEGER ) * col0 * + 46 + col0 * 94 / 94 FROM tab2
----
107962
226752
231225

onlyif mysql # aggregate syntax: 
query II rowsort label-1219
SELECT DISTINCT 46 * + 5, SUM( DISTINCT + - col1 ) AS col2 FROM tab2
----
230
-195

skipif mysql # not compatible
query II rowsort label-1219
SELECT DISTINCT 46 * + 5, SUM ( DISTINCT + - col1 ) AS col2 FROM tab2
----
230
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1220
SELECT DISTINCT 73 DIV - + MAX( DISTINCT - 43 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT 73 / - + MAX ( DISTINCT - 43 ) AS col1 FROM tab1
----
1

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

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

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

query I rowsort
SELECT DISTINCT + col2 + + col2 + - 86 FROM tab0 AS cor0
----
-66
112
8

query I rowsort
SELECT DISTINCT + - col1 - 51 AS col1 FROM tab2 AS cor0
----
-102
-118
-128

query I rowsort
SELECT DISTINCT + col0 + col0 + + 33 + + + 60 AS col0 FROM tab0 AS cor0
----
123
267
287

query I rowsort
SELECT ALL - col0 - 46 - - col2 + - 86 + col2 FROM tab0 AS cor0
----
-199
-31
-53

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 76 BETWEEN - 76 AND 39
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + 40 - + col0 + + 78 > - col2
----
15
81
47
97
1
99

query I rowsort
SELECT + col2 - - col0 + 6 FROM tab0 WHERE + 58 NOT BETWEEN + 57 AND + + col1 + - + col2
----
103
202
68

query I rowsort
SELECT ALL col1 - 88 FROM tab2
----
-11
-21
-37

query I rowsort
SELECT col2 * + col1 * + + col2 + - 62 * - 73 AS col0 FROM tab2
----
127726
229914
31505

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT SUM( - ( - + 35 ) ) AS col1 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-1233
SELECT SUM ( - ( - + 35 ) ) AS col1 FROM tab2
----
105

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1235
SELECT ALL - col2 + - + 66 + + 18 DIV 10 AS col1, col1 FROM tab2
----
-105
77
-123
67
-88
51

skipif mysql # not compatible
query II rowsort label-1235
SELECT ALL - col2 + - + 66 + + 18 / 10 AS col1, col1 FROM tab2
----
-105
77
-123
67
-88
51

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1237
SELECT + COUNT ( * ) * COUNT ( * ) col1 FROM tab2
----
9

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

query I rowsort
SELECT col2 * - ( + 27 ) + col0 + + - 70 AS col0 FROM tab2 AS cor0
----
-1086
-1561
-645

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 * - 19 FROM tab0
----
1881
190
893

query I rowsort
SELECT ALL - ( col0 ) + + - ( - col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 51 + + - col1 FROM tab2
----
-16
-26
0

query I rowsort
SELECT ALL 69 + - 88 * - 27 AS col1 FROM tab1
----
2445
2445
2445

query I rowsort
SELECT ALL - + 87 + + col1 FROM tab1 AS cor0
----
-40
-73
-82

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE - col0 * col0 IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * col2 col2 FROM tab0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT COUNT( * ) * 58 AS col1 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-1252
SELECT COUNT ( * ) * 58 AS col1 FROM tab0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT COUNT( * ) * - 87 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-1253
SELECT COUNT ( * ) * - 87 FROM tab2
----
-261

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT COUNT( * ) + 78 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1256
SELECT COUNT ( * ) + 78 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT SUM( - col0 ) AS col0 FROM tab1 WHERE NOT col0 * + 96 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT SUM ( - col0 ) AS col0 FROM tab1 WHERE NOT col0 * + 96 > NULL
----
NULL

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

query I rowsort
SELECT col2 FROM tab0 WHERE ( col1 / 10 ) <= + 55 * + 38
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL COUNT( * ) + - SUM( col0 ) AS col1 FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL COUNT ( * ) + - SUM ( col0 ) AS col1 FROM tab0
----
-196

query I rowsort
SELECT + ( - col0 ) - - col0 * 8 AS col1 FROM tab2
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + 21 * 19 - MIN( DISTINCT + col1 ) AS col1 FROM tab1
----
394

skipif mysql # not compatible
query I rowsort label-1262
SELECT + 21 * 19 - MIN ( DISTINCT + col1 ) AS col1 FROM tab1
----
394

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL - COUNT( * ) * + 64 AS col2 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL - COUNT ( * ) * + 64 AS col2 FROM tab1
----
-192

query I rowsort
SELECT ALL + col1 * + 32 AS col2 FROM tab1
----
1504
160
448

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= 59
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - ( + col1 ) ) IS NOT NULL
----

query I rowsort
SELECT + 13 AS col2 FROM tab0 WHERE NULL <= - 19 * col2 - - 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1269
SELECT ALL * FROM tab2 WHERE NOT ( CAST( + col0 AS SIGNED ) + 21 * + col0 ) BETWEEN ( NULL ) AND + 85 * - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1269
SELECT ALL * FROM tab2 WHERE NOT ( CAST ( + col0 AS INTEGER ) + 21 * + col0 ) BETWEEN ( NULL ) AND + 85 * - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1270
SELECT DISTINCT MIN( - col1 ) DIV - COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT MIN ( - col1 ) / - COUNT ( * ) FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT 57 - - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-1271
SELECT 57 - - COUNT ( * ) FROM tab0
----
60

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 * - col1 col2 FROM tab1
----
-366
-4209
-618

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT ALL 74 DIV col1 + col0 DIV + col2 FROM tab1
----
15
2
5

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL 74 / col1 + col0 / + col2 FROM tab1
----
15
2
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 >= 96 * col2
----

query I rowsort
SELECT ALL + 37 + - col0 AS col0 FROM tab1
----
-14
-48
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + MAX( + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1277
SELECT + MAX ( + col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT DISTINCT col1 * 20 AS col1 FROM tab0 AS cor0
----
1620
20
420

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

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT ( - 16 * + 34 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 6 * col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT + COUNT( * ) * 25 AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1282
SELECT + COUNT ( * ) * 25 AS col1 FROM tab1 AS cor0
----
75

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

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

query I rowsort
SELECT ALL - col2 * + 49 AS col1 FROM tab0 AS cor0
----
-2303
-4851
-490

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 50 * 24 ) NOT BETWEEN col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0 WHERE NOT + col1 <= - 43
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT + COUNT( * ) * 13 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1293
SELECT + COUNT ( * ) * 13 FROM tab0 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1294
SELECT * FROM tab1 AS cor0 WHERE NOT - 69 * CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1294
SELECT * FROM tab1 AS cor0 WHERE NOT - 69 * CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab1 cor0 WHERE NOT NULL <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT + COUNT( * ) - COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) BETWEEN col1 AND NULL
----
0

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT ALL COUNT( * ) * + SUM( DISTINCT col0 ) + 74 FROM tab0
----
671

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT col0 ) + 74 FROM tab0
----
671

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT COUNT( - - col1 ) + ( + 42 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-1300
SELECT COUNT ( - - col1 ) + ( + 42 ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT DISTINCT + - COUNT( * ) * + 85 + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT + - COUNT ( * ) * + 85 + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-264

query I rowsort
SELECT DISTINCT - 25 * - col2 AS col1 FROM tab1 AS cor0 WHERE col2 * - col1 + - 84 IS NOT NULL
----
1475
1700
2400

query I rowsort
SELECT ALL col1 * + - col1 AS col1 FROM tab1
----
-196
-2209
-25

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

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

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

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

query II rowsort
SELECT ALL + col0 AS col2, - col2 - + col0 * col1 FROM tab2
----
46
-2369
64
-4968
75
-5083

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1307
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1307
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL + COUNT( * ) * ( - COUNT( ALL col0 ) ) FROM tab2 AS cor0 WHERE ( 71 ) IN ( - col0 + 41 )
----
0

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL + COUNT ( * ) * ( - COUNT ( ALL col0 ) ) FROM tab2 AS cor0 WHERE ( 71 ) IN ( - col0 + 41 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT DISTINCT + MIN( ( + col0 ) ) + 86 AS col0 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT + MIN ( ( + col0 ) ) + 86 AS col0 FROM tab2 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT + + 83 + 56 * + + SUM( - 57 ) AS col0 FROM tab2 AS cor0
----
-9493

skipif mysql # not compatible
query I rowsort label-1311
SELECT + + 83 + 56 * + + SUM ( - 57 ) AS col0 FROM tab2 AS cor0
----
-9493

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN col1 AND 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL + SUM( + col2 ) - + 57 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL + SUM ( + col2 ) - + 57 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + col2 col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT + COUNT( DISTINCT 93 ) FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1316
SELECT + COUNT ( DISTINCT 93 ) FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT + - COUNT( * ) + - MAX( 77 ) col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1318
SELECT + - COUNT ( * ) + - MAX ( 77 ) col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1320
SELECT ALL + + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL + + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1

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

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

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

query I rowsort
SELECT + col0 * 52 FROM tab1
----
2652
4420
4732

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1324
SELECT ALL * FROM tab0 WHERE - - 79 + - col2 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1324
SELECT ALL * FROM tab0 WHERE - - 79 + - col2 IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col2 * col2 * + col2 AS col2 FROM tab2
----
-12167
-195112
-64000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT - CAST( - col0 AS SIGNED ) * col1 * + ( 80 ) FROM tab1
----
34000
342160
57120

skipif mysql # not compatible
query I rowsort label-1326
SELECT - CAST ( - col0 AS INTEGER ) * col1 * + ( 80 ) FROM tab1
----
34000
342160
57120

query I rowsort
SELECT DISTINCT + col2 + col1 * col1 FROM tab2 WHERE - col1 IS NOT NULL
----
2624
4547
5969

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT col1 DIV - - col0 AS col2 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1328
SELECT col1 / - - col0 AS col2 FROM tab0 cor0
----
0
0
5

query I rowsort
SELECT ALL - col2 * + col0 + - col2 + - ( col2 ) * col1 FROM tab0 AS cor0
----
-1090
-4559
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 27 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT + + 56 FROM tab0 WHERE NOT - col1 IS NULL
----
56
56
56

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

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

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

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

query I rowsort
SELECT - col2 + - - col0 - + col2 AS col2 FROM tab0 AS cor0
----
-101
-79
67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1336
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST( + ( - col1 ) AS DECIMAL ) * col1 NOT BETWEEN col2 AND col2
----

skipif mysql # not compatible
query III rowsort label-1336
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( + ( - col1 ) AS REAL ) * col1 NOT BETWEEN col2 AND col2
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 BETWEEN + ( 45 ) AND + - 11
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1339
SELECT - col2 - 25 AS col2 FROM tab0 AS cor0 WHERE ( - 87 + + - 34 + CAST( NULL AS SIGNED ) + + 31 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1339
SELECT - col2 - 25 AS col2 FROM tab0 AS cor0 WHERE ( - 87 + + - 34 + CAST ( NULL AS INTEGER ) + + 31 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1340
SELECT ALL - - ( ( + 50 ) ) AS col1, + MIN( ALL + col1 ) col2 FROM tab2 AS cor0
----
50
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1340
SELECT ALL - - ( ( + 50 ) ) AS col1, + MIN ( ALL + col1 ) col2 FROM tab2 AS cor0
----
50
51

query I rowsort
SELECT - col1 * + - col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, + ( + - col0 ) * + col2 AS col0 FROM tab1 WHERE NOT ( NULL ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL MAX( + 83 ) FROM tab0 WHERE NOT - + col0 * 89 + ( + 2 ) = ( 73 ) * col1
----
83

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL MAX ( + 83 ) FROM tab0 WHERE NOT - + col0 * 89 + ( + 2 ) = ( 73 ) * col1
----
83

query I rowsort
SELECT DISTINCT col1 + + ( + col0 ) FROM tab1 WHERE NOT + col0 NOT IN ( + + 33 * 63 )
----

query I rowsort
SELECT + + col0 / + - col2 + col1 FROM tab1 WHERE - col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 38 * + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT + - 53 FROM tab1 cor0 WHERE ( NULL ) >= NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1351
SELECT - 89 + - - 81 col1, col1 + - 80 DIV + 26 FROM tab0 AS cor0
----
-8
-2
-8
18
-8
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1351
SELECT - 89 + - - 81 col1, col1 + - 80 / + 26 FROM tab0 AS cor0
----
-8
-2
-8
18
-8
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1353
SELECT + 72 FROM tab0 WHERE NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 72 FROM tab0 WHERE NULL = - CAST ( NULL AS INTEGER )
----

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

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

query II rowsort
SELECT ALL - 96 * + - col0, col1 FROM tab0 AS cor0
----
1440
81
8352
21
9312
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT SUM( ALL - col2 ) AS col2 FROM tab1 cor0 WHERE NOT col0 * - - 32 BETWEEN + + ( + col1 ) * 30 / + - 65 AND + col0 - col1 / 48
----
-223

skipif mysql # not compatible
query I rowsort label-1356
SELECT SUM ( ALL - col2 ) AS col2 FROM tab1 cor0 WHERE NOT col0 * - - 32 BETWEEN + + ( + col1 ) * 30 / + - 65 AND + col0 - col1 / 48
----
-223

query II rowsort
SELECT - col2 * + col2 - col2 AS col0, - col1 FROM tab2 AS cor0
----
-1640
-77
-3422
-67
-552
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT DISTINCT + ( 96 ) * + + COUNT( * ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT + ( 96 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
288

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1359
SELECT DISTINCT - MIN ( col1 ) col1 FROM tab1 AS cor0
----
-5

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

query II rowsort
SELECT DISTINCT + 61 * - - 76 AS col2, col0 AS col0 FROM tab2 WHERE - 20 + col2 >= NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE + 69 >= - col0
----
10
47
99

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

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

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

query I rowsort
SELECT ALL + 89 * - col2 AS col1 FROM tab1
----
-5251
-6052
-8544

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT DISTINCT COUNT( * ) * + - 62 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT COUNT ( * ) * + - 62 FROM tab0
----
-186

query I rowsort
SELECT DISTINCT col0 * col2 * + 39 FROM tab0
----
27495
33930
374517

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + 13 ) BETWEEN - ( col0 ) / + - col0 AND ( col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1372
SELECT DISTINCT 7 FROM tab0 AS cor0 WHERE NOT 53 > ( + - ( ( + 93 ) ) + - CAST( NULL AS SIGNED ) / - - col1 )
----

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT 7 FROM tab0 AS cor0 WHERE NOT 53 > ( + - ( ( + 93 ) ) + - CAST ( NULL AS INTEGER ) / - - col1 )
----

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

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

query I rowsort
SELECT DISTINCT - col1 * + col1 + - 92 AS col1 FROM tab0 AS cor0
----
-533
-6653
-93

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

query I rowsort
SELECT ALL col0 + + col2 * col2 * col2 + - - col0 FROM tab2 AS cor0
----
12259
195262
64128

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

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

query I rowsort
SELECT DISTINCT col0 * + col2 * - - col0 FROM tab1
----
249696
426275
563108

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT ALL - col2 DIV 37 * 31 * - - col2 FROM tab1
----
-1829
-2108
-5952

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - col2 / 37 * 31 * - - col2 FROM tab1
----
-1829
-2108
-5952

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

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

query II rowsort
SELECT ALL - 92, 21 + col2 AS col1 FROM tab2
----
-92
44
-92
61
-92
79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1386
SELECT ALL + + col2 + + col2 * - ( 9 ) AS col2 FROM tab2 WHERE NOT 73 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL + + col2 + + col2 * - ( 9 ) AS col2 FROM tab2 WHERE NOT 73 <= + CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT - + 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ALL MIN( DISTINCT - ( + col1 ) ) FROM tab1 WHERE NOT + col1 IN ( col2 )
----
-47

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL MIN ( DISTINCT - ( + col1 ) ) FROM tab1 WHERE NOT + col1 IN ( col2 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT - MAX( + col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT - MAX ( + col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1391
SELECT col1 AS col0, 19 + col2 DIV + CAST( col2 AS SIGNED ) FROM tab2
----
51
20
67
20
77
20

skipif mysql # not compatible
query II rowsort label-1391
SELECT col1 AS col0, 19 + col2 / + CAST ( col2 AS INTEGER ) FROM tab2
----
51
20
67
20
77
20

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL SUM( - 93 ) FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL SUM ( - 93 ) FROM tab2 AS cor0
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1397
SELECT ALL + 78 * col1 - col0 - + 91 / - 32 + + ( - CAST( NULL AS SIGNED ) ) * + col0 * 52 + + 16 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + 78 * col1 - col0 - + 91 / - 32 + + ( - CAST ( NULL AS INTEGER ) ) * + col0 * 52 + + 16 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT - col0 + + ( 7 ) + - col0 + + 27 NOT BETWEEN ( col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT - col0 + + ( 7 ) + - col0 + + 27 NOT BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT 65 * - ( - 6 ) FROM tab2 AS cor0
----
390
390
390

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

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

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab1 cor0
----
24

query I rowsort
SELECT ALL col2 + + 94 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT + - 7 AS col1, - 84 AS col0 FROM tab2 cor0
----
-7
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - 29 FROM tab1 WHERE NOT + - ( 94 ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1406
SELECT ( - COUNT( * ) ) AS col0, + SUM( ALL - col2 ) + COUNT( * ) FROM tab2
----
-3
-118

skipif mysql # not compatible
query II rowsort label-1406
SELECT ( - COUNT ( * ) ) AS col0, + SUM ( ALL - col2 ) + COUNT ( * ) FROM tab2
----
-3
-118

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

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1408
SELECT DISTINCT + CAST( - col1 AS DECIMAL ) col1 FROM tab2 WHERE ( NOT - col1 NOT IN ( + 44, - col0 - + 28 / - 56 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1408
SELECT DISTINCT + CAST ( - col1 AS REAL ) col1 FROM tab2 WHERE ( NOT - col1 NOT IN ( + 44, - col0 - + 28 / - 56 ) )
----

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

query I rowsort
SELECT - - 87 AS col2 FROM tab2 cor0
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1411
SELECT 72 AS col0, - CAST( NULL AS SIGNED ) / - ( AVG ( + col0 ) ) FROM tab0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-1411
SELECT 72 AS col0, - CAST ( NULL AS INTEGER ) / - ( AVG ( + col0 ) ) FROM tab0
----
72
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1412
SELECT col0 * - - CAST( 94 AS SIGNED ) FROM tab2
----
4324
6016
7050

skipif mysql # not compatible
query I rowsort label-1412
SELECT col0 * - - CAST ( 94 AS INTEGER ) FROM tab2
----
4324
6016
7050

query I rowsort
SELECT DISTINCT - col0 + 53 FROM tab0
----
-34
-44
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1414
SELECT - col2 + CAST( 56 AS SIGNED ) DIV col0 FROM tab2
----
-22
-40
-58

skipif mysql # not compatible
query I rowsort label-1414
SELECT - col2 + CAST ( 56 AS INTEGER ) / col0 FROM tab2
----
-22
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1415
SELECT ALL + CAST( NULL AS DECIMAL ) + + ( + 43 ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1415
SELECT ALL + CAST ( NULL AS REAL ) + + ( + 43 ) col2 FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1416
SELECT col0 + - 61 * + CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1417
SELECT ALL 52 DIV + + MAX( - 13 ) AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL 52 / + + MAX ( - 13 ) AS col0 FROM tab2
----
-4

query I rowsort
SELECT DISTINCT + col2 + - - ( + col1 ) + col0 AS col2 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT DISTINCT 61 * - col1 + - + col2 * + + col2 + - col1 AS col2 FROM tab1 AS cor0
----
-10084
-3791
-7538

query I rowsort
SELECT ALL + - 87 * - col1 * + col1 + + + col0 AS col1 FROM tab1 AS cor0
----
17103
192274
2260

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL - COUNT( * ) + 39 AS col1 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - COUNT ( * ) + 39 AS col1 FROM tab0 AS cor0
----
36

query III rowsort
SELECT * FROM tab1 cor0 WHERE 82 <> - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * 48 * - col0 FROM tab1 AS cor0
----
-20400
-205296
-34272

query I rowsort
SELECT DISTINCT 49 * col2 AS col2 FROM tab0
----
2303
4851
490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 * - 53 * col1 col0 FROM tab2
----
-51357
-67469
-77539

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

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

query I rowsort
SELECT DISTINCT + col1 * + - col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1428
SELECT DISTINCT + 46 DIV - + MIN( ALL - col1 ) col1 FROM tab2
----
0

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

query II rowsort
SELECT ( col2 ), col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT - 43 AS col0 FROM tab2 WHERE + + col0 - 74 IS NULL
----

query I rowsort
SELECT ALL col2 + + col2 * - col0 AS col0 FROM tab0
----
-658
-860
-9504

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1432
SELECT ALL 22 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL 22 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT col0 * - + 49 - + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + ( - 6 ) col1 FROM tab1 AS cor0
----
2595
7219
8275

query I rowsort
SELECT 31 + col2 FROM tab1 cor0
----
127
90
99

query I rowsort
SELECT 39 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT + 29 + + MIN( col0 ) AS col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-1437
SELECT + 29 + + MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
44

query I rowsort
SELECT ALL - col0 * + 2 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT 56 DIV - - col1 FROM tab1
----
1
11
4

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT 56 / - - col1 FROM tab1
----
1
11
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL MIN( + col2 ) col0 FROM tab1 WHERE ( NOT 79 = - col2 )
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1440
SELECT ALL MIN ( + col2 ) col0 FROM tab1 WHERE ( NOT 79 = - col2 )
----
59

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT col2 - - col0 IS NULL
----
23
40
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1443
SELECT - - MIN ( DISTINCT - + 3 ) col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - 85 AS col2, 32 AS col2 FROM tab0 AS cor0
----
-85
32
-85
32
-85
32

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 * - 47 * - 58 <> - + col2 + + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT COUNT( ALL - 87 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1446
SELECT COUNT ( ALL - 87 ) FROM tab2
----
3

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

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

query I rowsort
SELECT + + ( + - AVG ( ALL + 10 ) ) FROM tab1 WHERE NOT NULL <> col1 + - 50
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND + - col1 * - - 75
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 83 * + + 80 IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 WHERE col0 BETWEEN + + 59 AND + col0
----
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT DISTINCT + ( col0 ) DIV + - 43 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT + ( col0 ) / + - 43 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1
-2

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

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

query I rowsort
SELECT col1 * - + ( - 48 ) * + col1 + - col1 - col0 / - + 82 FROM tab1 WHERE NOT + 53 * + col1 + - 34 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT + SUM( + col2 ) * - 10 - + COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1563

skipif mysql # not compatible
query I rowsort label-1455
SELECT + SUM ( + col2 ) * - 10 - + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1456
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * + 18 + - 45 FROM tab1 cor0
----
1485
1593
873

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + 18 + - 45 FROM tab1 cor0
----
1485
1593
873

query I rowsort
SELECT ALL + + col2 * 99 * - col2 FROM tab2 AS cor0
----
-158400
-333036
-52371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1458
SELECT col2 * 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-1458
SELECT col2 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 WHERE NOT - 59 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 76 + col1 FROM tab2 cor0
----
127
143
153

query I rowsort
SELECT DISTINCT col1 * - col1 * col1 + - col1 + + - 70 AS col2 FROM tab0 AS cor0
----
-531592
-72
-9352

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT - COUNT( * ) + 88 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT - COUNT ( * ) + 88 FROM tab1 AS cor0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1464
SELECT + 39 DIV col0 - + 69 + + + ( - col1 ) * - col2 FROM tab1 AS cor0
----
1275
226
3127

skipif mysql # not compatible
query I rowsort label-1464
SELECT + 39 / col0 - + 69 + + + ( - col1 ) * - col2 FROM tab1 AS cor0
----
1275
226
3127

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1465
SELECT ALL - 75 * - + col1 + CAST( NULL AS DECIMAL ) * + - 19 * col2 + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - 75 * - + col1 + CAST ( NULL AS REAL ) * + - 19 * col2 + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT DISTINCT COUNT( * ) + MIN( - 84 ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT COUNT ( * ) + MIN ( - 84 ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT - ( + 95 ) * - - col1 + col0 FROM tab2 AS cor0
----
-4799
-6290
-7251

query I rowsort
SELECT + + 93 + col2 AS col2 FROM tab0 AS cor0
----
103
140
192

query I rowsort
SELECT - ( - 73 ) + + 50 AS col2 FROM tab1 cor0
----
123
123
123

query I rowsort
SELECT ALL + ( 58 ) + col1 * + col0 AS col1 FROM tab0 AS cor0
----
1273
155
1885

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT DISTINCT 55 * + COUNT( * ) - - 0 AS col0 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT 55 * + COUNT ( * ) - - 0 AS col0 FROM tab1
----
165

query I rowsort
SELECT col1 * ( + 8 ) * col0 + - 70 AS col1 FROM tab0
----
14546
706
9650

query I rowsort
SELECT col2 * - 65 AS col2 FROM tab0
----
-3055
-6435
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL MIN( - - 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL MIN ( - - 12 ) FROM tab2
----
12

query I rowsort
SELECT 56 * 63 FROM tab0
----
3528
3528
3528

query I rowsort
SELECT - 19 * - 94 FROM tab0
----
1786
1786
1786

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT - col0 DIV 38 col2 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1480
SELECT - col0 / 38 col2 FROM tab0 AS cor0
----
-2
-2
0

query I rowsort
SELECT + col1 * - - col1 * - - ( + - col2 ) FROM tab0 cor0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT + + 13 AS col1 FROM tab1 cor0
----
13

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1484
SELECT - COUNT( CAST( + col0 AS DECIMAL ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1484
SELECT - COUNT ( CAST ( + col0 AS REAL ) ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT - + col2 * + + 80 FROM tab0 cor0
----
-3760
-7920
-800

query II rowsort
SELECT + col1 * 17 AS col2, - 38 * + col2 AS col0 FROM tab1 AS cor0
----
238
-3648
799
-2584
85
-2242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * - col0 col0 FROM tab2 AS cor0
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT MIN( col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1489
SELECT MIN ( col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----
NULL

query I rowsort
SELECT DISTINCT - + 48 AS col1 FROM tab1 AS cor0
----
-48

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

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

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

query II rowsort
SELECT ALL col2, - col0 * - + 81 * + col1 AS col2 FROM tab1
----
59
34425
68
346437
96
57834

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

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

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 cor0 WHERE NOT NULL IN ( + 49 + - col2, col2 * + 98 )
----

query I rowsort
SELECT DISTINCT col2 * - - col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT DISTINCT + + MAX( DISTINCT - 76 ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT + + MAX ( DISTINCT - 76 ) FROM tab0 AS cor0
----
-76

query I rowsort
SELECT + 7 * - col1 + - 0 FROM tab0
----
-147
-567
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + col0 col0 FROM tab1
----
120
154
160

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

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

query I rowsort
SELECT ALL + col0 - + ( - col2 ) * + 37 FROM tab2 cor0
----
1544
2221
897

query II rowsort
SELECT 47, + col1 FROM tab2 AS cor0
----
47
51
47
67
47
77

query I rowsort
SELECT - 6 * + col2 - + col2 FROM tab2 AS cor0 WHERE - 70 IS NOT NULL
----
-161
-280
-406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + - col0 ) * col2 + 51 + - - col2 + + col0, + col0 + + col0 col0 FROM tab1 AS cor0
----
5094
102
5210
170
6398
182

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1506
SELECT DISTINCT - col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-1506
SELECT DISTINCT - col2, CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT - col2 / 42 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 63 - + 3 FROM tab2
----
60
60
60

query II rowsort
SELECT col0 - - col2 AS col1, 62 * col1 FROM tab0
----
196
62
62
5022
97
1302

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT COUNT( * ) - - SUM( ALL 26 ) + - 66 * + COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-1511
SELECT COUNT ( * ) - - SUM ( ALL 26 ) + - 66 * + COUNT ( * ) FROM tab2
----
-117

query I rowsort
SELECT ALL - 24 * - + col0 * - col1 FROM tab2
----
-118272
-120600
-56304

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT DISTINCT - 55 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT - 55 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
165

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1516
SELECT + col1 / + + col1 + 34 AS col1 FROM tab1 AS cor0
----
35
35
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + 78 / - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT ALL + + col0 DIV col0 * - ( - 80 ) - col2 - + - 58 DIV + + col0 AS col1 FROM tab2 cor0
----
22
40
58

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL + + col0 / col0 * - ( - 80 ) - col2 - + - 58 / + + col0 AS col1 FROM tab2 cor0
----
22
40
58

query I rowsort
SELECT col1 * + 46 FROM tab2 AS cor0
----
2346
3082
3542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col0 ) * - col1 col0, - 30 - + col1 AS col2 FROM tab1 AS cor0
----
-425
-35
-4277
-77
-714
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1521
SELECT ALL + - COUNT( * ) DIV + 50 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL + - COUNT ( * ) / + 50 FROM tab2 cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT + COUNT( * ) * - - ( - SUM( + col2 ) ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-1523
SELECT + COUNT ( * ) * - - ( - SUM ( + col2 ) ) FROM tab1 AS cor0
----
-669

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

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT - 35 IS NULL
----
-51
-85
-91

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - MAX( 85 ) FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1528
SELECT - MAX ( 85 ) FROM tab1 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-1529
SELECT - COUNT( * ) AS col1, - COUNT( DISTINCT - - col2 ) + + 51 AS col1 FROM tab0 AS cor0
----
-3
48

skipif mysql # not compatible
query II rowsort label-1529
SELECT - COUNT ( * ) AS col1, - COUNT ( DISTINCT - - col2 ) + + 51 AS col1 FROM tab0 AS cor0
----
-3
48

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

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

query I rowsort
SELECT DISTINCT + col2 * + col2 + 24 + - 20 FROM tab2
----
1604
3368
533

query I rowsort
SELECT - 36 + + 85 FROM tab0
----
49
49
49

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

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

query I rowsort
SELECT ALL col1 + + 62 FROM tab1
----
109
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT - 0 + MAX( - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1535
SELECT - 0 + MAX ( - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT - 68 + + - 62 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-1536
SELECT - 68 + + - 62 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + 89 * - 79 col0 FROM tab1 AS cor0
----
-7082
-7116
-7122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 69 + + ( + col0 ) col2, col0 * col1 FROM tab2
----
115
2346
133
4928
144
5025

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

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

query I rowsort
SELECT 58 + + - col0 * - 39 * + + col1 AS col0 FROM tab1 AS cor0
----
16633
166861
27904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT DISTINCT - - CAST( - + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT - - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

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

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

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

query I rowsort
SELECT ALL col0 + 36 AS col1 FROM tab2 cor0
----
100
111
82

query I rowsort
SELECT ALL + ( 45 ) - - - col1 FROM tab0 AS cor0
----
-36
24
44

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

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

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL CAST ( NULL AS INTEGER ) * + 86 * - - 20 * + col2 - - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT + SUM( ALL col1 ) * + 15 AS col1 FROM tab0
----
1545

skipif mysql # not compatible
query I rowsort label-1549
SELECT + SUM ( ALL col1 ) * + 15 AS col1 FROM tab0
----
1545

query I rowsort
SELECT ALL 53 * - - col2 AS col1 FROM tab1
----
3127
3604
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT - 41 * MAX( DISTINCT - col1 ) col2 FROM tab0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1551
SELECT - 41 * MAX ( DISTINCT - col1 ) col2 FROM tab0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 29, col0 col2, ( - col1 ) AS col2 FROM tab2
----
9 values hashing to 613701d85427cad0c3e3c6799cc31cc3

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT MIN( - 13 ) * MAX( col1 ) AS col1 FROM tab0
----
-1053

skipif mysql # not compatible
query I rowsort label-1553
SELECT MIN ( - 13 ) * MAX ( col1 ) AS col1 FROM tab0
----
-1053

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + + 81 + col0 * + 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 44, col1 FROM tab2 AS cor0
----
44
51
44
67
44
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1556
SELECT + - col2 AS col1, 33 DIV + + col1 FROM tab1 AS cor0
----
-59
6
-68
0
-96
2

skipif mysql # not compatible
query II rowsort label-1556
SELECT + - col2 AS col1, 33 / + + col1 FROM tab1 AS cor0
----
-59
6
-68
0
-96
2

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

query I rowsort
SELECT ALL - + 19 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

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

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

query I rowsort
SELECT ALL col2 * - 70 FROM tab2
----
-1610
-2800
-4060

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1564
SELECT col1 + - - 91 + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
165
208
216

skipif mysql # not compatible
query I rowsort label-1564
SELECT col1 + - - 91 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
165
208
216

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL + COUNT( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL + COUNT ( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND - col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1566
SELECT DISTINCT + 11 + 79 AS col2, - COUNT( * ) FROM tab2 AS cor0
----
90
-3

skipif mysql # not compatible
query II rowsort label-1566
SELECT DISTINCT + 11 + 79 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
90
-3

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

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

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

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

query II rowsort
SELECT col2 * - col0 * - - 64, col1 AS col1 FROM tab1 AS cor0
----
-313344
14
-320960
5
-396032
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * 87 * + 95 col1 FROM tab2 WHERE NOT - + 9 + - ( - col2 ) * - col1 NOT IN ( - - col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1573
SELECT ALL 64 col2 FROM tab2 WHERE NOT - col0 - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1573
SELECT ALL 64 col2 FROM tab2 WHERE NOT - col0 - - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1574
SELECT + col2 DIV + col0 AS col1 FROM tab0
----
0
1
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT ALL - SUM( DISTINCT col0 ) * 65 AS col2 FROM tab1
----
-14755

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL - SUM ( DISTINCT col0 ) * 65 AS col2 FROM tab1
----
-14755

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT COUNT( ALL + 81 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1576
SELECT COUNT ( ALL + 81 ) FROM tab2
----
3

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

skipif mysql # not compatible
query II rowsort label-1577
SELECT ALL CAST ( NULL AS INTEGER ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT DISTINCT + 1 + + 11 AS col1 FROM tab1 cor0
----
12

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 0 * - col2 + - + 54 col2, 54 * - + 91 FROM tab0 AS cor0
----
-54
-4914
-54
-4914
-54
-4914

query I rowsort
SELECT - + 97 * - + col1 + ( + + col0 ) * + + 13 FROM tab1 AS cor0
----
1590
2021
5742

query I rowsort
SELECT 40 + + + 33 AS col2 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT col1 * + - col0 AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT - 96 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
43

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1587
SELECT ALL 69 DIV + CAST( ( - col2 ) AS SIGNED ) - 15 + 34 AS col0 FROM tab2 cor0
----
16
18
18

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL 69 / + CAST ( ( - col2 ) AS INTEGER ) - 15 + 34 AS col0 FROM tab2 cor0
----
16
18
18

query I rowsort
SELECT DISTINCT + - col2 - 90 FROM tab0 AS cor0
----
-100
-137
-189

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND - - 7 / + col0 - - 88
----

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - - ( - 35 ) AS col0 FROM tab1 WHERE NOT NULL <= - - col1 * - col1 + - col0
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 6 < - - col0 + - col1
----

query I rowsort
SELECT DISTINCT + col0 + - 36 AS col0 FROM tab1 cor0
----
15
49
55

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

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

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

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE - 73 <> + - col0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1604
SELECT DISTINCT - + CAST( NULL AS SIGNED ), - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-1604
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT - col1 * - 15 * - 37 * + - col1 FROM tab2 AS cor0
----
1443555
2491395
3290595

query II rowsort
SELECT ALL - + col1 * - - 62 + + col2 + - col2 * - + ( + col0 ), 85 AS col0 FROM tab2 AS cor0
----
-2081
85
-2174
85
254
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( - col1 ) * + col1 + + col0 * + col1 * - ( 59 ) + + col0 + + col0 + + 14 * - col1 * + col1 col2, - ( 73 ) col2 FROM tab0 AS cor0
----
-113352
-73
-156948
-73
-5542
-73

query I rowsort
SELECT DISTINCT + + 41 + col1 * - - col0 AS col1 FROM tab2 AS cor0
----
2387
4969
5066

query I rowsort
SELECT DISTINCT col0 * - ( - col0 ) AS col0 FROM tab2
----
2116
4096
5625

query II rowsort
SELECT + 76 + - - col0, col0 FROM tab0
----
163
87
173
97
91
15

query I rowsort
SELECT - col0 * col2 * + 3 + col2 AS col0 FROM tab1
----
-14592
-14986
-18496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT ALL - 51 * + CAST( col1 AS SIGNED ) * - 66 - - col1 + - col1 + - - 98 * col0 FROM tab1
----
167120
25160
52122

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - 51 * + CAST ( col1 AS INTEGER ) * - 66 - - col1 + - col1 + - - 98 * col0 FROM tab1
----
167120
25160
52122

query I rowsort
SELECT DISTINCT + - 3 FROM tab0 AS cor0 WHERE NOT + 37 IN ( + col1, - col2 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ALL - MAX( + 76 ) + MIN( DISTINCT - + 74 ) FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL - MAX ( + 76 ) + MIN ( DISTINCT - + 74 ) FROM tab2 AS cor0
----
-150

query I rowsort
SELECT DISTINCT 44 + - 92 AS col2 FROM tab0 cor0 WHERE col2 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + + col0 * - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = + ( - 48 ) * + - 88 + - + col2 + 93 * - col1 + col0
----

query I rowsort
SELECT + - 93 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT + col0 * + 37 * ( col2 ) * - - col2 AS col1 FROM tab1 AS cor0
----
10947745
15569008
17390592

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1620
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, ( - 24 ) AS col0 FROM tab0 cor0
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-1620
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, ( - 24 ) AS col0 FROM tab0 cor0
----
NULL
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT DISTINCT 62 * + COUNT( ALL + + col0 ) FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT 62 * + COUNT ( ALL + + col0 ) FROM tab2 AS cor0
----
186

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT ALL - 95 AS col1, + COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-95
3

skipif mysql # not compatible
query II rowsort label-1625
SELECT ALL - 95 AS col1, + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-95
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + 44 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1627
SELECT DISTINCT col2 * - col2 + + 21 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-2188
-79
-9780

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT col2 * - col2 + + 21 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-2188
-79
-9780

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1630
SELECT - CAST ( NULL AS INTEGER ) * - col0 / + col1 / col2 AS col1, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + 67 * + COUNT( * ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-1631
SELECT + 67 * + COUNT ( * ) FROM tab1
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1632
SELECT DISTINCT - CAST( + 91 AS SIGNED ) / - col2 * - col2 * + col0 FROM tab1 WHERE 7 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT - CAST ( + 91 AS INTEGER ) / - col2 * - col2 * + col0 FROM tab1 WHERE 7 IS NULL
----

query I rowsort
SELECT DISTINCT + + 33 AS col0 FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL - 38 AS col2 FROM tab2 cor0
----
-38
-38
-38

query I rowsort
SELECT + 8 AS col2 FROM tab0 WHERE NOT 65 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL MIN( DISTINCT - + col2 ) * 96 + + - COUNT( * ) FROM tab1
----
-9219

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL MIN ( DISTINCT - + col2 ) * 96 + + - COUNT ( * ) FROM tab1
----
-9219

query I rowsort
SELECT + + 15 + - 46 AS col1 FROM tab0 AS cor0
----
-31
-31
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT ALL - COUNT( * ) * - - 83 AS col2 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL - COUNT ( * ) * - - 83 AS col2 FROM tab0 AS cor0
----
-249

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT DISTINCT MIN( - + col2 ) * + - SUM( DISTINCT + col1 ) FROM tab2
----
11310

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT MIN ( - + col2 ) * + - SUM ( DISTINCT + col1 ) FROM tab2
----
11310

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1646
SELECT COUNT( * ), + 70 * 8 * ( - COUNT( * ) ) AS col1 FROM tab0
----
3
-1680

skipif mysql # not compatible
query II rowsort label-1646
SELECT COUNT ( * ), + 70 * 8 * ( - COUNT ( * ) ) AS col1 FROM tab0
----
3
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT 36 * + COUNT( * ) AS col2 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-1647
SELECT 36 * + COUNT ( * ) AS col2 FROM tab2
----
108

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

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

query I rowsort
SELECT ALL col1 * - 52 AS col0 FROM tab1
----
-2444
-260
-728

onlyif mysql # aggregate syntax: 
query II rowsort label-1650
SELECT - COUNT( * ), ( + + ( ( - COUNT( * ) ) ) ) col1 FROM tab2
----
-3
-3

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

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

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

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

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

query I rowsort
SELECT 28 - ( 81 ) FROM tab1
----
-53
-53
-53

query I rowsort
SELECT DISTINCT ( + - col0 ) + - col2 AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT 0 - col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1656
SELECT DISTINCT + ( + COUNT( * ) ) col0, - COUNT( * ) - - 61 AS col0 FROM tab0
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1656
SELECT DISTINCT + ( + COUNT ( * ) ) col0, - COUNT ( * ) - - 61 AS col0 FROM tab0
----
3
58

query III rowsort
SELECT * FROM tab1 WHERE NOT - 20 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 82 > + col1
----
0

skipif mysql # not compatible
query I rowsort label-1658
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 82 > + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT - ( + - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT - ( + - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL >= - col1
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1661
SELECT DISTINCT - 93 DIV col1, col0 AS col2 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

skipif mysql # not compatible
query II rowsort label-1661
SELECT DISTINCT - 93 / col1, col0 AS col2 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT - + col0 DIV col2 * col1 AS col0 FROM tab0 AS cor0
----
-168
0
0

skipif mysql # not compatible
query I rowsort label-1662
SELECT - + col0 / col2 * col1 AS col0 FROM tab0 AS cor0
----
-168
0
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1664
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * col2 * 4 * - - col2 * + CAST( - - col0 AS DECIMAL ) * + - 93 BETWEEN ( - 61 ) AND NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1664
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * col2 * 4 * - - col2 * + CAST ( - - col0 AS REAL ) * + - 93 BETWEEN ( - 61 ) AND NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT + 49 * - COUNT( * ), 90 AS col1 FROM tab0 AS cor0
----
-147
90

skipif mysql # not compatible
query II rowsort label-1665
SELECT + 49 * - COUNT ( * ), 90 AS col1 FROM tab0 AS cor0
----
-147
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, col1 col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT 49 AS col1, MAX( - - col2 ) FROM tab1
----
49
96

skipif mysql # not compatible
query II rowsort label-1667
SELECT 49 AS col1, MAX ( - - col2 ) FROM tab1
----
49
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT + MAX( + 10 ) AS col0 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-1668
SELECT + MAX ( + 10 ) AS col0 FROM tab2
----
10

query I rowsort
SELECT - 53 AS col0 FROM tab0
----
-53
-53
-53

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

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

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

query II rowsort
SELECT ALL - col0 * - + col0 * - col1 AS col1, - col1 FROM tab2 AS cor0
----
-107916
-51
-315392
-77
-376875
-67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + + 95 ) + + 8 <> - + 0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - 94 * - + COUNT( * ) FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-1675
SELECT - 94 * - + COUNT ( * ) FROM tab0 AS cor0
----
282

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

query I rowsort
SELECT ALL - 39 + col0 * + 89 FROM tab0 AS cor0
----
1296
7704
8594

query I rowsort
SELECT + col2 + 91 * - col0 FROM tab1 AS cor0
----
-4545
-7676
-8213

query I rowsort
SELECT ALL col2 * - col0 + 35 FROM tab2 AS cor0
----
-1023
-2525
-4315

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1680
SELECT col1 + 77 / - CAST( NULL AS DECIMAL ) + - + CAST( - ( - 18 ) AS SIGNED ) + - - 81 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT col1 + 77 / - CAST ( NULL AS REAL ) + - + CAST ( - ( - 18 ) AS INTEGER ) + - - 81 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1682
SELECT DISTINCT + MAX( DISTINCT col0 ) - COUNT( * ) AS col2, 27 AS col2 FROM tab1
----
88
27

skipif mysql # not compatible
query II rowsort label-1682
SELECT DISTINCT + MAX ( DISTINCT col0 ) - COUNT ( * ) AS col2, 27 AS col2 FROM tab1
----
88
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 40 * - 64 + - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1684
SELECT ALL + COUNT( ALL 8 ), COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) >= col0
----
0
0

skipif mysql # not compatible
query II rowsort label-1684
SELECT ALL + COUNT ( ALL 8 ), COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) >= col0
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1685
SELECT ( col1 ) + + + col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
10
NULL
28
NULL
94
NULL

skipif mysql # not compatible
query II rowsort label-1685
SELECT ( col1 ) + + + col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
10
NULL
28
NULL
94
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, 67 + + + col2 * + + 34 col0 FROM tab1
----
59
2073
68
2379
96
3331

query I rowsort
SELECT 74 * + + col1 AS col2 FROM tab0
----
1554
5994
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + MAX( ALL - 21 ) * - COUNT( * ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-1690
SELECT + MAX ( ALL - 21 ) * - COUNT ( * ) FROM tab0
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 11 NOT BETWEEN + 4 + - - 34 AND + - 50
----

query I rowsort
SELECT DISTINCT col2 * - ( + 83 ) + col0 FROM tab0 AS cor0
----
-3886
-743
-8120

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT + 27 DIV - col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1693
SELECT + 27 / - col2 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT ALL + col2 DIV 68 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + col2 / 68 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1695
SELECT ( + ( - col1 ) ) * - 44, - CAST( 59 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2068
-59
220
-59
616
-59

skipif mysql # not compatible
query II rowsort label-1695
SELECT ( + ( - col1 ) ) * - 44, - CAST ( 59 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2068
-59
220
-59
616
-59

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

query I rowsort
SELECT DISTINCT + col1 * + 95 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1330
4465
475

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1699
SELECT DISTINCT + - 61 * + - col0 FROM tab2 AS cor0 WHERE col2 <> + + 36 * - 90 * col2 + - + CAST( NULL AS SIGNED ) - - - CAST( 21 AS SIGNED ) * 31
----

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT + - 61 * + - col0 FROM tab2 AS cor0 WHERE col2 <> + + 36 * - 90 * col2 + - + CAST ( NULL AS INTEGER ) - - - CAST ( 21 AS INTEGER ) * 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL + MIN( ALL - 50 ) FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL + MIN ( ALL - 50 ) FROM tab0 cor0
----
-50

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 21 IN ( col0, 77, - + col2 + 22 * col0 - + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT DISTINCT 41 * + COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
369

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT 41 * + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
369

query I rowsort
SELECT DISTINCT + col2 * - + col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL + col2 * - col2 * + 79 + - col2 AS col1 FROM tab2
----
-126440
-265814
-41814

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT ALL col1 + + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL col1 + + col1 / - col0 AS col0 FROM tab2 AS cor0
----
50
67
76

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

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

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

query I rowsort
SELECT ALL + 32 + + col1 FROM tab1 AS cor0
----
37
46
79

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

query I rowsort
SELECT DISTINCT - ( + ( 17 ) ) + col1 FROM tab1 cor0
----
-12
-3
30

query I rowsort
SELECT DISTINCT - + col0 - + 36 * - 79 FROM tab0 AS cor0
----
2747
2757
2829

query I rowsort
SELECT DISTINCT + + ( 20 ) - - col0 AS col0 FROM tab0 cor0
----
107
117
35

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT - COUNT( * ) * - 48 AS col2 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-1717
SELECT - COUNT ( * ) * - 48 AS col2 FROM tab0
----
144

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 >= + 60
----
85
5
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT + MAX( col0 ) / 73 FROM tab0 WHERE NULL < + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT + MAX ( col0 ) / 73 FROM tab0 WHERE NULL < + col0
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 5 + + 10 + 46 + + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NULL NOT BETWEEN col2 AND + + col1 / col2
----

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

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

query II rowsort
SELECT DISTINCT - 57 AS col1, col1 * col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 AND - col2 * - + col1
----

query I rowsort
SELECT col2 * + - 41 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1927
-4059
-410

query II rowsort
SELECT DISTINCT - - col2 / + - 20, - col1 + col1 + + col0 AS col1 FROM tab0 AS cor0 WHERE + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL + COUNT( ALL + + 80 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1730
SELECT ALL + COUNT ( ALL + + 80 ) col2 FROM tab2
----
3

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

query II rowsort
SELECT ALL - col0 AS col1, - ( + + col1 ) * + col2 + col0 - col1 - - - col2 AS col1 FROM tab2
----
-46
-1201
-64
-3133
-75
-3936

query II rowsort
SELECT DISTINCT + col1, - col2 FROM tab1 AS cor0 WHERE NOT - col2 > NULL
----

query II rowsort
SELECT DISTINCT + col0, + 11 FROM tab0 AS cor0
----
15
11
87
11
97
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1735
SELECT + col2 * + 76 * + 54 col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
164160
NULL
238032
NULL
94392
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1735
SELECT + col2 * + 76 * + 54 col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
164160
NULL
238032
NULL
94392
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1737
SELECT + 1 DIV + CAST( + 10 AS SIGNED ) AS col2, + col0 * + col2 FROM tab0 AS cor0
----
0
705
0
870
0
9603

skipif mysql # not compatible
query II rowsort label-1737
SELECT + 1 / + CAST ( + 10 AS INTEGER ) AS col2, + col0 * + col2 FROM tab0 AS cor0
----
0
705
0
870
0
9603

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

skipif mysql # not compatible
query I rowsort label-1738
SELECT CAST ( - + 74 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + col1 * - col2 + + col0 + - + col1 * - + col0 FROM tab1 AS cor0
----
-579
1172
215

query I rowsort
SELECT + - col0 * 85 AS col1 FROM tab0 AS cor0
----
-1275
-7395
-8245

query I rowsort
SELECT ALL - 98 AS col0 FROM tab2 AS cor0 WHERE NOT 2 IS NULL
----
-98
-98
-98

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

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

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL + CAST ( NULL AS INTEGER ) * + - COUNT ( DISTINCT + 76 ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col1 * - 33 * - col0 * + 5 col1 FROM tab2
----
17806140
52039680
62184375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT ALL CAST( - 55 AS SIGNED ) FROM tab0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL CAST ( - 55 AS INTEGER ) FROM tab0
----
-55
-55
-55

query I rowsort
SELECT col2 FROM tab1 WHERE NOT 17 * - col0 BETWEEN - col0 AND - col1
----
59
68
96

query I rowsort
SELECT DISTINCT col2 * 7 FROM tab2
----
161
280
406

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

query I rowsort
SELECT DISTINCT + col2 + - 51 FROM tab1
----
17
45
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT 70 * - COUNT( * ) FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-1751
SELECT 70 * - COUNT ( * ) FROM tab1 AS cor0
----
-210

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT - + SUM( ALL col1 ) FROM tab1 WHERE NOT col2 + + col2 IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT - + SUM ( ALL col1 ) FROM tab1 WHERE NOT col2 + + col2 IS NULL
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL + SUM( ALL + 8 ) * + 45 col2 FROM tab0
----
1080

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1755
SELECT ALL + SUM ( ALL + 8 ) * + 45 col2 FROM tab0
----
1080

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * col2 + + 96 + 74 * - col2 * 45 IS NOT NULL
----

query I rowsort
SELECT - 5 * + 82 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8a4312d63cba8453eaafe3ee8e7ee39a

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + col0 col1 FROM tab2 AS cor0
----
138
192
225

query I rowsort
SELECT ALL + - 77 + - + col1 * - 76 FROM tab2 AS cor0
----
3799
5015
5775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1761
SELECT - - COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT - - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT COUNT( * ) + + + 61 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1762
SELECT COUNT ( * ) + + + 61 FROM tab2 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT DISTINCT + 73 * - COUNT( * ) - - + 59 FROM tab0 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT + 73 * - COUNT ( * ) - - + 59 FROM tab0 AS cor0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT ALL + ( + + COUNT( * ) ) col0 FROM tab0 AS cor0 WHERE NOT col1 - + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1764
SELECT ALL + ( + + COUNT ( * ) ) col0 FROM tab0 AS cor0 WHERE NOT col1 - + - col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + - 60 <= - + 70
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 27 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 * + - col2 col2 FROM tab1
----
-2478
-2856
-4032

query II rowsort
SELECT ALL - col2 AS col0, 48 AS col0 FROM tab2
----
-23
48
-40
48
-58
48

query I rowsort
SELECT + col1 * - 14 AS col1 FROM tab1 AS cor0
----
-196
-658
-70

query I rowsort
SELECT + ( - + 98 ) FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE 2 + col1 = col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT MIN( DISTINCT - col2 ) AS col0 FROM tab1 WHERE NOT 53 + ( + col1 ) / col2 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT MIN ( DISTINCT - col2 ) AS col0 FROM tab1 WHERE NOT 53 + ( + col1 ) / col2 >= ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <= - 70 * col2
----

query I rowsort
SELECT 81 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT - 8 AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( - 19 )
----

query I rowsort
SELECT ALL + 58 AS col1 FROM tab1
----
58
58
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1777
SELECT DISTINCT - col2 * col1 + + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT ( NULL ) <> - col2
----

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT - col2 * col1 + + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT ( NULL ) <> - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1779
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) / 30 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) / 30 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col2 + + 90 FROM tab1
----
149
158
186

query I rowsort
SELECT + col2 * col0 + + 60 FROM tab0
----
765
930
9663

query I rowsort
SELECT ALL col1 * col1 + - col2 * col2 AS col2 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + col0 * - 58
----

query I rowsort
SELECT DISTINCT + col0 + + 57 FROM tab1
----
108
142
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 80 * - col1 col0 FROM tab0
----
1690
179
6527

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL - MAX( DISTINCT + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - MAX ( DISTINCT + col0 ) FROM tab2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL ( - 55 ) AS col1 FROM tab1
----
-55
-55
-55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 - col0 ) > + col2 / + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + 67 )
----

query I rowsort
SELECT ( + ( + 42 ) ) FROM tab1
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 IN ( col0 )
----

query I rowsort
SELECT ALL - col1 * - 88 FROM tab2
----
4488
5896
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL + SUM( DISTINCT col2 ) * + COUNT( * ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + SUM ( DISTINCT col2 ) * + COUNT ( * ) FROM tab1
----
669

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1794
SELECT DISTINCT - 39 + - col2 * - 4 col0 FROM tab1 WHERE NOT + col0 NOT IN ( + col0 * - CAST( + col1 AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1794
SELECT DISTINCT - 39 + - col2 * - 4 col0 FROM tab1 WHERE NOT + col0 NOT IN ( + col0 * - CAST ( + col1 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT DISTINCT CAST( 52 AS SIGNED ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT CAST ( 52 AS INTEGER ) FROM tab2
----
52

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT COUNT( * ) + 53 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT COUNT ( * ) + 53 FROM tab1 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT DISTINCT - ( col0 ) * CAST( - col0 * CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT - ( col0 ) * CAST ( - col0 * CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - col1 AS col1 FROM tab0 WHERE NOT ( - col2 - col2 ) IS NULL
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT col1 AS col0 FROM tab2 WHERE - 1 * 65 IN ( - CAST( 12 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1801
SELECT col1 AS col0 FROM tab2 WHERE - 1 * 65 IN ( - CAST ( 12 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1802
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT - ( CAST( NULL AS SIGNED ) ) * - 66 IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1802
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) * - 66 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 40 + 9 BETWEEN ( col2 ) AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 85 col1 FROM tab1 cor0
----
-85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + - col1 col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT 88 / - col1 FROM tab0 AS cor0 WHERE + 52 - col0 <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1808
SELECT * FROM tab0 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1808
SELECT * FROM tab0 AS cor0 WHERE NULL <= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + + 71 <= - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT - + 11 + 47 * COUNT( * ) FROM tab0 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT - + 11 + 47 * COUNT ( * ) FROM tab0 AS cor0
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT + - 4 - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-101
-19
-91

skipif mysql # not compatible
query I rowsort label-1811
SELECT + - 4 - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-101
-19
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL 50 - + COUNT( * ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL 50 - + COUNT ( * ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT + MAX( + 61 ) AS col2 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-1813
SELECT + MAX ( + 61 ) AS col2 FROM tab0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT ALL - col1 DIV + 3 FROM tab2
----
-17
-22
-25

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL - col1 / + 3 FROM tab2
----
-17
-22
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT + SUM( - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-1815
SELECT + SUM ( - col0 ) FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1816
SELECT ALL * FROM tab2 WHERE ( - 9 * CAST( NULL AS SIGNED ) ) NOT BETWEEN + 72 + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1816
SELECT ALL * FROM tab2 WHERE ( - 9 * CAST ( NULL AS INTEGER ) ) NOT BETWEEN + 72 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT DISTINCT ( SUM( ALL - col0 ) ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT ( SUM ( ALL - col0 ) ) AS col1 FROM tab1
----
-227

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 76 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT ALL + MAX( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL + MAX ( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + COUNT( - 97 ) * 44 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-1820
SELECT + COUNT ( - 97 ) * 44 FROM tab0 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT COUNT( * ) + + 48 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-1821
SELECT COUNT ( * ) + + 48 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57

query I rowsort
SELECT - col2 * + col0 + + 19 FROM tab0 WHERE NOT + col1 * col0 IS NULL
----
-686
-851
-9584

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL + - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - - col0 * + 87 + 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT COUNT( * ) + - MAX( + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT COUNT ( * ) + - MAX ( + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-44

query II rowsort
SELECT 97 AS col2, ( + col1 ) * col2 FROM tab0 AS cor0
----
97
210
97
3807
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT ALL col0 DIV col0 FROM tab0 AS cor0 WHERE + col1 >= + col1 * col1
----
1

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL col0 / col0 FROM tab0 AS cor0 WHERE + col1 >= + col1 * col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1829
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - + CAST( + col1 AS SIGNED ) BETWEEN ( NULL ) AND - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1829
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - + CAST ( + col1 AS INTEGER ) BETWEEN ( NULL ) AND - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 18 / col1 * + col0 < ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col2 col0 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( col2 + 34 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1834
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - col0 + 24 * + 16 IN ( 74 + CAST( 30 AS SIGNED ) * + 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1834
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - col0 + 24 * + 16 IN ( 74 + CAST ( 30 AS INTEGER ) * + 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT + + CAST( + + col0 AS SIGNED ) * - - 50 * + col2 + + CAST( - 57 AS SIGNED ) AS col1 FROM tab2 cor0
----
127943
217443
52843

skipif mysql # not compatible
query I rowsort label-1835
SELECT + + CAST ( + + col0 AS INTEGER ) * - - 50 * + col2 + + CAST ( - 57 AS INTEGER ) AS col1 FROM tab2 cor0
----
127943
217443
52843

query I rowsort
SELECT DISTINCT - col1 * - col1 + - 65 + 70 FROM tab0 AS cor0
----
446
6
6566

query I rowsort
SELECT + - col1 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT - ( + 32 ) + - - CAST( + - col1 AS SIGNED ) * 34 AS col1 FROM tab0
----
-2786
-66
-746

skipif mysql # not compatible
query I rowsort label-1838
SELECT - ( + 32 ) + - - CAST ( + - col1 AS INTEGER ) * 34 AS col1 FROM tab0
----
-2786
-66
-746

query I rowsort
SELECT - ( col2 ) + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT ( col1 ) * - CAST( NULL AS SIGNED ) + - - ( col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT ( col1 ) * - CAST ( NULL AS INTEGER ) + - - ( col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( - + 8 * 14 ) NOT BETWEEN col0 AND NULL
----
23
40
58

query I rowsort
SELECT ALL col0 + - 22 + + + col1 * col0 * col2 FROM tab1 AS cor0
----
25138
290905
68573

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT DISTINCT - 69 + - - 42 + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT - 69 + - - 42 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1844
SELECT * FROM tab0 cor0 WHERE ( 68 ) NOT BETWEEN + CAST( NULL AS SIGNED ) * + 90 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1844
SELECT * FROM tab0 cor0 WHERE ( 68 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) * + 90 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1845
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT 80 + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
16
34
5

skipif mysql # not compatible
query I rowsort label-1846
SELECT 80 + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
16
34
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT + CAST( NULL AS SIGNED ) / 42 + + col1 * - - col1 + + col1 + + ( col1 ) * col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT + CAST ( NULL AS INTEGER ) / 42 + + col1 * - - col1 + + col1 + + ( col1 ) * col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col1 + - - 34 AS col2 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # DIV for integer division: 
query II rowsort label-1849
SELECT 80 DIV + - col0 + 88, 40 AS col1 FROM tab2 AS cor0
----
87
40
87
40
87
40

skipif mysql # not compatible
query II rowsort label-1849
SELECT 80 / + - col0 + 88, 40 AS col1 FROM tab2 AS cor0
----
87
40
87
40
87
40

query I rowsort
SELECT + ( + col2 ) + + col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT - 28 FROM tab2 AS cor0 WHERE + 13 < NULL
----

query I rowsort
SELECT DISTINCT + + 40 * + 10 * + 73 + + col2 - + 40 AS col0 FROM tab1 AS cor0
----
29219
29228
29256

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + - ( col2 ) + + col1 + 75 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT - + col2 + + 34 DIV + 29 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-1854
SELECT - + col2 + + 34 / + 29 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 + + - 40 * + col0 * - + col2 + + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL + COUNT( col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + COUNT ( col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT col1 / + - ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 91 NOT IN ( 63 )
----

query I rowsort
SELECT ALL 63 * + 42 * + col1 - 46 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT - COUNT( DISTINCT - col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 / + 35 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * ( + + col0 ) AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT col0 * - - col2 AS col0 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1864
SELECT + ( CAST( + MAX( DISTINCT + - col0 ) AS SIGNED ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1864
SELECT + ( CAST ( + MAX ( DISTINCT + - col0 ) AS INTEGER ) ) FROM tab0
----
-15

query I rowsort
SELECT DISTINCT - 86 * + ( + ( col1 ) ) FROM tab2
----
-4386
-5762
-6622

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + col2 * + col2 + + col2 + 77
----

query II rowsort
SELECT + col0 AS col2, + ( - col0 ) FROM tab2
----
46
-46
64
-64
75
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NULL ) IS NULL ) OR ( + 11 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + 73 * - MAX( DISTINCT - col2 ) + - COUNT( * ) FROM tab0 AS cor0
----
727

skipif mysql # not compatible
query I rowsort label-1869
SELECT + 73 * - MAX ( DISTINCT - col2 ) + - COUNT ( * ) FROM tab0 AS cor0
----
727

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1870
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1871
SELECT DISTINCT + + CAST( + - col2 AS SIGNED ) col1, col0 AS col2 FROM tab2 WHERE NOT - col1 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1871
SELECT DISTINCT + + CAST ( + - col2 AS INTEGER ) col1, col0 AS col2 FROM tab2 WHERE NOT - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT ( - col1 ) + + col2 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ( - col1 ) + + col2 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL - 71 + - COUNT( * ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - 71 + - COUNT ( * ) FROM tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT ALL COUNT( ALL + + 3 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL COUNT ( ALL + + 3 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL - COUNT( - col1 ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - COUNT ( - col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( col1 ) + 61 + - 49 * - col1 BETWEEN col1 AND NULL )
----

query I rowsort
SELECT - 11 * + col1 FROM tab2 AS cor0
----
-561
-737
-847

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - col0 + - col2 NOT IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT DISTINCT - COUNT( DISTINCT - ( + + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT - COUNT ( DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL ( col1 ) - + + col2 FROM tab2 WHERE NOT NULL > col0
----

query I rowsort
SELECT - col1 * - 76 AS col1 FROM tab0
----
1596
6156
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1882
SELECT + CAST( + ( - - col1 ) AS SIGNED ) DIV ( col0 ) * - col0 + + col0 AS col2 FROM tab2
----
0
0
75

skipif mysql # not compatible
query I rowsort label-1882
SELECT + CAST ( + ( - - col1 ) AS INTEGER ) / ( col0 ) * - col0 + + col0 AS col2 FROM tab2
----
0
0
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1883
SELECT 78, + ( - - MAX( DISTINCT + col0 ) ) AS col0 FROM tab1
----
78
91

skipif mysql # not compatible
query II rowsort label-1883
SELECT 78, + ( - - MAX ( DISTINCT + col0 ) ) AS col0 FROM tab1
----
78
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT DISTINCT + + MAX( + + col2 ) * - - COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT + + MAX ( + + col2 ) * - - COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 19 - + col0 AS col1 FROM tab0
----
-68
-78
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1886
SELECT ALL CAST( + 11 AS SIGNED ) + + + col0 AS col0 FROM tab0 AS cor0
----
108
26
98

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL CAST ( + 11 AS INTEGER ) + + + col0 AS col0 FROM tab0 AS cor0
----
108
26
98

query I rowsort
SELECT DISTINCT - col2 + + - col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 51 + col0 col1 FROM tab1 AS cor0
----
102
136
142

query I rowsort
SELECT ALL + 99 + + col0 - - + 47 * - col2 AS col1 FROM tab0 AS cor0
----
-2095
-284
-4457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1890
SELECT + col2 + col1 + - CAST( NULL AS SIGNED ) + 46 - + - col0 * 63 / col1 * - + 75 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT + col2 + col1 + - CAST ( NULL AS INTEGER ) + 46 - + - col0 * 63 / col1 * - + 75 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT DISTINCT + SUM( - col1 ) AS col0 FROM tab2 WHERE 70 * col0 + - col2 IS NOT NULL
----
-195

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT + SUM ( - col1 ) AS col0 FROM tab2 WHERE 70 * col0 + - col2 IS NOT NULL
----
-195

query I rowsort
SELECT DISTINCT - 23 FROM tab0, tab0 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT ALL - + CAST( NULL AS SIGNED ) * + ( - CAST( 82 AS SIGNED ) ) * + - 20 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL - + CAST ( NULL AS INTEGER ) * + ( - CAST ( 82 AS INTEGER ) ) * + - 20 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1895
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IN ( - 11, + CAST( NULL AS DECIMAL ), - + 6 )
----

skipif mysql # not compatible
query I rowsort label-1895
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IN ( - 11, + CAST ( NULL AS REAL ), - + 6 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1896
SELECT + col0 DIV + col1 - - 53 AS col1 FROM tab1 AS cor0
----
54
56
70

skipif mysql # not compatible
query I rowsort label-1896
SELECT + col0 / + col1 - - 53 AS col1 FROM tab1 AS cor0
----
54
56
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + 11 * - - SUM( - - col0 ) + - COUNT( * ) FROM tab2 cor0
----
2032

skipif mysql # not compatible
query I rowsort label-1897
SELECT + 11 * - - SUM ( - - col0 ) + - COUNT ( * ) FROM tab2 cor0
----
2032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT - col1 - + + CAST( + col1 AS SIGNED ) FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1898
SELECT - col1 - + + CAST ( + col1 AS INTEGER ) FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1899
SELECT + ( MIN( ALL + - col2 ) ), ( SUM( - ( + - col0 ) ) ) AS col1 FROM tab0
----
-99
199

skipif mysql # not compatible
query II rowsort label-1899
SELECT + ( MIN ( ALL + - col2 ) ), ( SUM ( - ( + - col0 ) ) ) AS col1 FROM tab0
----
-99
199

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT ALL - ( + COUNT( * ) ) + + - 77 FROM tab2 WHERE - col0 = - col2
----
-77

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - ( + COUNT ( * ) ) + + - 77 FROM tab2 WHERE - col0 = - col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + col1 < 39
----
-1

skipif mysql # not compatible
query I rowsort label-1901
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col1 < 39
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * col0 col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL + col1 * 47 + + 72 FROM tab1 cor0
----
2281
307
730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT - COUNT( * ) + - COUNT( 19 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - col2 ) * - col1 * - CAST( + col0 AS SIGNED ) + + col1 ) NOT IN ( - 98, - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-1904
SELECT - COUNT ( * ) + - COUNT ( 19 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - col2 ) * - col1 * - CAST ( + col0 AS INTEGER ) + + col1 ) NOT IN ( - 98, - 49 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1905
SELECT DISTINCT + col0 * 14 DIV + col2 AS col1, ( + col2 ) col1 FROM tab1 AS cor0
----
18
68
20
59
7
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1905
SELECT DISTINCT + col0 * 14 / + col2 AS col1, ( + col2 ) col1 FROM tab1 AS cor0
----
18
68
20
59
7
96

query I rowsort
SELECT - + 63 AS col0 FROM tab2 AS cor0
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT - col1 DIV + ( - + 13 ) col1 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1907
SELECT - col1 / + ( - + 13 ) col1 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1908
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL - 32 * + 72 + + 32 * + - ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2592

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL - 32 * + 72 + + 32 * + - ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2592

query I rowsort
SELECT ALL - 64 + col2 AS col0 FROM tab2 AS cor0
----
-24
-41
-6

query I rowsort
SELECT DISTINCT - col0 + - 83 + + + 63 AS col1 FROM tab0 AS cor0
----
-107
-117
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT MAX( ALL 43 ) AS col2 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1912
SELECT MAX ( ALL 43 ) AS col2 FROM tab1 AS cor0
----
43

query I rowsort
SELECT - col1 + - col2 FROM tab2 AS cor0 WHERE - 68 + - 79 IS NOT NULL
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1914
SELECT ALL - - CAST( col0 AS SIGNED ) + - col0 DIV col2 AS col2, 1 + - ( + 66 ) * + col1 - - - col2 FROM tab2 AS cor0
----
44
-3388
63
-5121
74
-4479

skipif mysql # not compatible
query II rowsort label-1914
SELECT ALL - - CAST ( col0 AS INTEGER ) + - col0 / col2 AS col2, 1 + - ( + 66 ) * + col1 - - - col2 FROM tab2 AS cor0
----
44
-3388
63
-5121
74
-4479

query I rowsort
SELECT + col1 + - + col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT ALL - ( - - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL - ( - - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT ALL + col2 col2 FROM tab0 WHERE NOT - col0 - + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1917
SELECT ALL + col2 col2 FROM tab0 WHERE NOT - col0 - + CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col1 - - - col0 + + col2 NOT BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col2 FROM tab1 cor0
----
17
17
17

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 42 * - col2 FROM tab0 AS cor0
----
-1974
-4158
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-1922
SELECT DISTINCT ( + + COUNT( * ) ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1922
SELECT DISTINCT ( + + COUNT ( * ) ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT + + COUNT( + - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1923
SELECT + + COUNT ( + - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT ALL + + MAX( 24 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL + + MAX ( 24 ) FROM tab1 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 15 col0 FROM tab0 cor0
----
1215
15
315

query I rowsort
SELECT ALL + 7 FROM tab0 AS cor0 WHERE NOT - 46 + - + ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT + COUNT( 54 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1927
SELECT + COUNT ( 54 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - - 73 AS col0, col2 FROM tab2 AS cor0
----
73
23
73
40
73
58

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 92 + - - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT ALL col1 * - - 82 * CAST( NULL AS SIGNED ) * + 67 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL col1 * - - 82 * CAST ( NULL AS INTEGER ) * + 67 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT ALL - SUM( ALL + 10 ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL - SUM ( ALL + 10 ) AS col2 FROM tab2
----
-30

query I rowsort
SELECT - col2 * - + 12 FROM tab0
----
1188
120
564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col2 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL SUM( + 80 ) * + COUNT( * ) FROM tab1
----
720

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL SUM ( + 80 ) * + COUNT ( * ) FROM tab1
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT SUM( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT SUM ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE + col1 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 58 * - 35 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1939
SELECT ALL - COUNT( * ) + 35 DIV + - MAX( DISTINCT - col1 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL - COUNT ( * ) + 35 / + - MAX ( DISTINCT - col1 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT COUNT( * ) AS col2, 19 FROM tab2 AS cor0 WHERE ( col2 ) = NULL
----
0
19

skipif mysql # not compatible
query II rowsort label-1940
SELECT COUNT ( * ) AS col2, 19 FROM tab2 AS cor0 WHERE ( col2 ) = NULL
----
0
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1941
SELECT + col1 * - 17 * - - CAST( NULL AS SIGNED ) + - + col2 + col1 / - - col2 + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT + col1 * - 17 * - - CAST ( NULL AS INTEGER ) + - + col2 + col1 / - - col2 + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL 48 * + - COUNT( * ) AS col1 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL 48 * + - COUNT ( * ) AS col1 FROM tab2
----
-144

query I rowsort
SELECT ALL col1 * - + col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT + col0 - + - col2 AS col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1945
SELECT DISTINCT 75 DIV COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT 75 / COUNT ( * ) FROM tab1
----
25

query I rowsort
SELECT 70 - - col0 FROM tab0
----
157
167
85

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 + + col0 * + - 25 FROM tab0 AS cor0
----
-2088
-2328
-360

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 / + ( - - 67 ) + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1950
SELECT DISTINCT * FROM tab0 WHERE NOT - + 29 * - + col2 * col1 + + CAST( NULL AS SIGNED ) >= + col2
----

skipif mysql # not compatible
query III rowsort label-1950
SELECT DISTINCT * FROM tab0 WHERE NOT - + 29 * - + col2 * col1 + + CAST ( NULL AS INTEGER ) >= + col2
----

query II rowsort
SELECT ALL + + 91 * + col1, col1 FROM tab0 AS cor0 WHERE NOT col2 <= - + col2
----
1911
21
7371
81
91
1

query I rowsort
SELECT col0 * 20 AS col1 FROM tab2 AS cor0
----
1280
1500
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT ALL + CAST( + MIN( DISTINCT - - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + CAST ( + MIN ( DISTINCT - - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col1 * + 56 FROM tab2 AS cor0
----
-2856
-3752
-4312

onlyif mysql # aggregate syntax: 
query II rowsort label-1955
SELECT COUNT( * ) AS col2, MAX( + - col2 ) FROM tab1
----
3
-59

skipif mysql # not compatible
query II rowsort label-1955
SELECT COUNT ( * ) AS col2, MAX ( + - col2 ) FROM tab1
----
3
-59

query II rowsort
SELECT col2, ( + - col0 ) AS col0 FROM tab0
----
10
-87
47
-15
99
-97

query II rowsort
SELECT 55 AS col1, ( col1 ) FROM tab2
----
55
51
55
67
55
77

query I rowsort
SELECT + col2 + - col1 + - col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 34 <> - col1 - 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - - col1 IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * ( - + ( - + col2 ) ) + - col2 + - col1 + + col1 * + - 5 + - 88 col1 FROM tab1 cor0
----
-166
116
59

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT col1 + - - col1 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT DISTINCT - col2 DIV - - col1 + + col1 DIV + col0 AS col2 FROM tab0
----
-99
0
5

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT - col2 / - - col1 + + col1 / + col0 AS col2 FROM tab0
----
-99
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1966
SELECT DISTINCT - 27 DIV SUM( ALL - 99 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1966
SELECT DISTINCT - 27 / SUM ( ALL - 99 ) col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT - - col2 DIV + + col2 - - col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-1967
SELECT - - col2 / + + col2 - - col1 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1968
SELECT ALL - + col2 DIV col0 * + - 41 * col1 + CAST( - 94 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL - + col2 / col0 * + - 41 * col1 + CAST ( - 94 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-94
-94
-94

query II rowsort
SELECT + 58 + col0 AS col2, col1 + - + col2 AS col0 FROM tab2 AS cor0
----
104
28
122
37
133
9

query I rowsort
SELECT DISTINCT + + col0 - - + 50 FROM tab0 AS cor0
----
137
147
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 97 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1974
SELECT - CAST( NULL AS DECIMAL ) * - col1 / + 48 AS col2, - col2 + - 94 FROM tab1
----
NULL
-153
NULL
-162
NULL
-190

skipif mysql # not compatible
query II rowsort label-1974
SELECT - CAST ( NULL AS REAL ) * - col1 / + 48 AS col2, - col2 + - 94 FROM tab1
----
NULL
-153
NULL
-162
NULL
-190

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL MAX( + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL MAX ( + + col0 ) FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT DISTINCT 72 DIV + - col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT 72 / + - col1 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT - 56 DIV - col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1978
SELECT - 56 / - col0 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT DISTINCT - - ( 64 ) * + MIN( DISTINCT + 83 ) FROM tab1 AS cor0
----
5312

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT - - ( 64 ) * + MIN ( DISTINCT + 83 ) FROM tab1 AS cor0
----
5312

query I rowsort
SELECT ( - + col1 ) FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT col1 AS col0, - col0 * - + 78 AS col2, - col2 FROM tab0 cor0
----
9 values hashing to 6d1e87f1591be317f50789814b4a069c

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL 65 * - COUNT( * ) * 78 AS col1 FROM tab0 AS cor0
----
-15210

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL 65 * - COUNT ( * ) * 78 AS col1 FROM tab0 AS cor0
----
-15210

query I rowsort
SELECT 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + 66 / - 17 * - - col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 1 AS col0, + col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT + + ( COUNT( * ) ) * + 21 - + 14 + 5 AS col1 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-1989
SELECT + + ( COUNT ( * ) ) * + 21 - + 14 + 5 AS col1 FROM tab1 cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 91 - col1 > + col1 * - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE 25 + col1 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1993
SELECT DISTINCT CAST( + COUNT( 26 ) AS SIGNED ) DIV - COUNT( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT CAST ( + COUNT ( 26 ) AS INTEGER ) / - COUNT ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL col0 + + col1 - + col2 AS col0 FROM tab0
----
-1
49
98

query I rowsort
SELECT ALL + 32 + + col0 FROM tab2
----
107
78
96

query II rowsort
SELECT DISTINCT - + col0 + 97, col1 AS col0 FROM tab2 AS cor0
----
22
67
33
77
51
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 86 >= + col1
----

query I rowsort
SELECT DISTINCT + col0 + - 39 AS col0 FROM tab0 cor0
----
-24
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2000
SELECT - + col1 DIV + col0 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2000
SELECT - + col1 / + col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 - + - col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT DISTINCT col0 DIV col1 + col0 DIV - col0 - col0 AS col0 FROM tab0 AS cor0
----
-1
-16
-84

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT col0 / col1 + col0 / - col0 - col0 AS col0 FROM tab0 AS cor0
----
-1
-16
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2003
SELECT CAST( COUNT( 80 ) AS SIGNED ) * 81 - - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT CAST ( COUNT ( 80 ) AS INTEGER ) * 81 - - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL ( + COUNT( * ) ) - SUM( col0 ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL ( + COUNT ( * ) ) - SUM ( col0 ) FROM tab2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT 22 - + ( COUNT( * ) ) col0 FROM tab1
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2005
SELECT 22 - + ( COUNT ( * ) ) col0 FROM tab1
----
19

query I rowsort
SELECT DISTINCT - col2 * + - 70 * col1 - - ( col0 ) AS col1 FROM tab2
----
215664
272095
82156

query I rowsort
SELECT DISTINCT col1 - + + col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT col2 - 65 AS col2 FROM tab2
----
-25
-42
-7

query I rowsort
SELECT ( ( col2 ) ) + 87 FROM tab2
----
110
127
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT DISTINCT + COUNT( * ) * + + ( + - COUNT( * ) ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT + COUNT ( * ) * + + ( + - COUNT ( * ) ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT 7 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( 65 ) IS NOT NULL ) OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT DISTINCT - COUNT( * ) * + - 54 AS col2 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT - COUNT ( * ) * + - 54 AS col2 FROM tab0 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT - COUNT( col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2014
SELECT - COUNT ( col0 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - SUM( ALL - 62 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
558

skipif mysql # not compatible
query I rowsort label-2015
SELECT - SUM ( ALL - 62 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col1 FROM tab2 cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 / + + 84 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + - 56 * - 63 * + - col2 FROM tab0 AS cor0
----
-165816
-349272
-35280

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL + + MAX( ALL + 13 ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL + + MAX ( ALL + 13 ) AS col2 FROM tab2 AS cor0
----
13

query I rowsort
SELECT DISTINCT 11 * + - col2 FROM tab0 AS cor0
----
-1089
-110
-517

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 <> col1 / col2 )
----

query I rowsort
SELECT ALL + 10 AS col2 FROM tab2
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT - 88 + + SUM( DISTINCT + col0 ) - + 84 AS col0 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-2023
SELECT - 88 + + SUM ( DISTINCT + col0 ) - + 84 AS col0 FROM tab1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL COUNT( * ) + - + CAST( NULL AS SIGNED ) + 91 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + 91 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) - + col1 * + 62 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT DISTINCT - 80 + + COUNT( * ) FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT - 80 + + COUNT ( * ) FROM tab0
----
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - 36 NOT BETWEEN + 7 AND NULL
----
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT - 26, COUNT( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
-26
3

skipif mysql # not compatible
query II rowsort label-2028
SELECT - 26, COUNT ( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
-26
3

query I rowsort
SELECT + col2 * - 14 FROM tab1 cor0
----
-1344
-826
-952

query I rowsort
SELECT DISTINCT - + ( - col2 ) * + col1 * 37 + - - ( - 86 ) + - - 45 FROM tab1 AS cor0
----
10874
118211
49687

query I rowsort
SELECT - 28 * + 25 AS col1 FROM tab1 AS cor0
----
-700
-700
-700

query I rowsort
SELECT col2 * - 51 FROM tab2
----
-1173
-2040
-2958

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT - col1 BETWEEN - col0 AND NULL
----
46
64

query III rowsort
SELECT * FROM tab0 WHERE + col2 BETWEEN + col0 + + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col2 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT - col1 + - + ( - col2 ), 0 AS col1 FROM tab0 cor0
----
-11
0
-34
0
98
0

query II rowsort
SELECT ALL + 97 + - col2 AS col1, + col2 * col1 FROM tab2 AS cor0
----
39
3886
57
3080
74
1173

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT DISTINCT - col1 + col1, - col1 AS col1 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

query I rowsort
SELECT + - 51 * + 69 + + col2 FROM tab1 AS cor0
----
-3423
-3451
-3460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2041
SELECT + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 3 FROM tab0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 66 ) IS NOT NULL
----

query II rowsort
SELECT ALL col1, 41 FROM tab0
----
1
41
21
41
81
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT - 23 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT - 23 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 62 <= - col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( - col1 ) > 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - 41 AS col1 FROM tab1
----
-1927
-205
-574

query I rowsort
SELECT DISTINCT + 60 / - col2 + + - 88 AS col0 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT - col1 * + 93 FROM tab1
----
-1302
-4371
-465

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT ALL MAX( - col0 ) * - + COUNT( * ) AS col1, - 88 AS col2 FROM tab2
----
138
-88

skipif mysql # not compatible
query II rowsort label-2051
SELECT ALL MAX ( - col0 ) * - + COUNT ( * ) AS col1, - 88 AS col2 FROM tab2
----
138
-88

query II rowsort
SELECT - + col2, col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT - col2 AS col1 FROM tab2 cor0 WHERE NOT col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2054
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + - 10 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col2 col1 FROM tab0 cor0
----
100
128
31

query II rowsort
SELECT - + col1 + col1, 87 * col2 AS col0 FROM tab0 AS cor0
----
0
4089
0
8613
0
870

query I rowsort
SELECT ALL - col2 * + + 38 FROM tab0 AS cor0
----
-1786
-3762
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL - + COUNT( * ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2059
SELECT ALL - + COUNT ( * ) col0 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2060
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE ( NOT NULL > ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT COUNT( DISTINCT 11 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2062
SELECT COUNT ( DISTINCT 11 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT ALL MIN( DISTINCT + + col0 ) * - - COUNT( * ), - COUNT( * ) AS col2 FROM tab0
----
45
-3

skipif mysql # not compatible
query II rowsort label-2063
SELECT ALL MIN ( DISTINCT + + col0 ) * - - COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0
----
45
-3

query I rowsort
SELECT DISTINCT + col0 + - 55 FROM tab2
----
-9
20
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL - 19 * - COUNT( * ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL - 19 * - COUNT ( * ) FROM tab0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( - ( + 87 ) BETWEEN col1 + + + col0 AND - CAST( NULL AS SIGNED ) + - col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( - ( + 87 ) BETWEEN col1 + + + col0 AND - CAST ( NULL AS INTEGER ) + - col2 )
----
-3

query I rowsort
SELECT DISTINCT - col2 + - col0 + + + 43 * - col1 FROM tab2
----
-2262
-3014
-3415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2068
SELECT - 35 + + + 27 + + + COUNT( * ) + - - AVG ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT - 35 + + + 27 + + + COUNT ( * ) + - - AVG ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE 2 * col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT col1 + - + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2071
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT DISTINCT + 18 DIV + col2 AS col1 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + 18 / + col2 AS col1 FROM tab0 cor0
----
0
1

query I rowsort
SELECT DISTINCT - col1 + ( + 25 ) AS col1 FROM tab2 AS cor0
----
-26
-42
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT ALL 86 DIV - - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL 86 / - - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + CAST( + 92 AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + CAST ( + 92 AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT + 69 AS col2, col1 AS col1, 2 * 8 * + col0 * col1 + - 3 FROM tab2 AS cor0
----
9 values hashing to 9134080058518b4102a4e95e7ed44b19

query I rowsort
SELECT DISTINCT + ( + 88 ) AS col2 FROM tab0 AS cor0
----
88

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT + COUNT( ALL + 38 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2079
SELECT + COUNT ( ALL + 38 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 * + - ( - + ( + col1 ) ) FROM tab2
----
2601
4489
5929

query III rowsort
SELECT * FROM tab1 WHERE NOT 97 * + col2 + - col1 / + 63 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT + + COUNT( + + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2082
SELECT + + COUNT ( + + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + ( + 62 ) FROM tab2 AS cor0
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT + - col0 DIV - + ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2084
SELECT + - col0 / - + ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 BETWEEN + - 64 AND + + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL + col2 * col2 + col0 + col2 AS col0 FROM tab0 AS cor0
----
197
2271
9997

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL - COUNT( * ) col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2088
SELECT ALL - COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + col2 + - - col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT 79 * col2 FROM tab1
----
4661
5372
7584

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT DISTINCT col1 DIV - 34 AS col0 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT col1 / - 34 AS col0 FROM tab0
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 1 col1 FROM tab1 WHERE NOT - col1 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT 74 + CAST( NULL AS SIGNED ) + + + 64 + - 22 * - 26 * - col0 * + col1 * - - 4 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT 74 + CAST ( NULL AS INTEGER ) + + + 64 + - 22 * - 26 * - col0 * + col1 * - - 4 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2094
SELECT DISTINCT - 3 * col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - 3 * col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 97 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ( COUNT( * ) ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2096
SELECT ( COUNT ( * ) ) + COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE 19 * - - col2 + - + 13 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + - col1 - - col2 FROM tab2
----
-5
3
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 82 < + - col1
----

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 82 < + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + + - ( + + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + 14 + + + col0 * col0 AS col1 FROM tab1 AS cor0
----
2629
7244
8342

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE - col1 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT + SUM( + col2 ) - - COUNT( * ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT + SUM ( + col2 ) - - COUNT ( * ) FROM tab2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2105
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2106
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-2107
SELECT ALL 20 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL 20 / - col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2108
SELECT - 82 DIV col1 + 50 FROM tab2 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-2108
SELECT - 82 / col1 + 50 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT + MAX( DISTINCT - CAST( + col1 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2109
SELECT + MAX ( DISTINCT - CAST ( + col1 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL - 82 * - COUNT( * ) FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL - 82 * - COUNT ( * ) FROM tab2 AS cor0
----
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2111
SELECT COUNT( 73 ) DIV + 75 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT COUNT ( 73 ) / + 75 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) = + col2
----
0

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) = + col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT + COUNT( * ) * 7 DIV - SUM( + col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT + COUNT ( * ) * 7 / - SUM ( + col1 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( - - 2 ) AS col2 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT + col2 + - col2 - + 60 + - 86 + CAST( NULL AS SIGNED ) + + - 60 - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2115
SELECT + col2 + - col2 - + 60 + - 86 + CAST ( NULL AS INTEGER ) + + - 60 - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > + 47 * - 4 - + - 18
----

query I rowsort
SELECT DISTINCT - 52 * - col2 AS col1 FROM tab0
----
2444
5148
520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT col0 * col1 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT col0 * col1 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * + - ( + col0 ) col1 FROM tab1 WHERE + 40 NOT BETWEEN 23 + col1 + col0 - - - col2 AND + col2
----
425
4277

query II rowsort
SELECT ALL 57 AS col1, - col0 AS col2 FROM tab0
----
57
-15
57
-87
57
-97

query II rowsort
SELECT col1 AS col1, + col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2122
SELECT + COUNT( * ) AS col1, + SUM( - 68 ) FROM tab2
----
3
-204

skipif mysql # not compatible
query II rowsort label-2122
SELECT + COUNT ( * ) AS col1, + SUM ( - 68 ) FROM tab2
----
3
-204

query I rowsort
SELECT 13 * + - 57 FROM tab1
----
-741
-741
-741

query III rowsort
SELECT * FROM tab0 WHERE NOT + 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT + ( + - MIN( - - col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2125
SELECT + ( + - MIN ( - - col2 ) ) FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-2126
SELECT DISTINCT - 85, 77 + col0 DIV 24 + + + 67 AS col1 FROM tab1 AS cor0
----
-85
146
-85
147

skipif mysql # not compatible
query II rowsort label-2126
SELECT DISTINCT - 85, 77 + col0 / 24 + + + 67 AS col1 FROM tab1 AS cor0
----
-85
146
-85
147

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * col1 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = - 91 + - col2
----

query I rowsort
SELECT + col0 + - ( col0 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2130
SELECT + 76 + - CAST( NULL AS DECIMAL ) AS col0, col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2130
SELECT + 76 + - CAST ( NULL AS REAL ) AS col0, col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT - CAST( NULL AS SIGNED ) * col0 * - col2 * - 18 + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT - CAST ( NULL AS INTEGER ) * col0 * - col2 * - 18 + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col2 ) + + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 99 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT - 68 + + - col1 - + - col1 AS col0 FROM tab1 AS cor0
----
-68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col1
----

query I rowsort
SELECT ALL + + col0 * + - 15 FROM tab2 cor0
----
-1125
-690
-960

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT ALL col1 AS col1, 40 FROM tab2
----
51
40
67
40
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2139
SELECT DISTINCT - COUNT( - + col0 ) * COUNT( * ), - CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-9
3

skipif mysql # not compatible
query II rowsort label-2139
SELECT DISTINCT - COUNT ( - + col0 ) * COUNT ( * ), - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT + COUNT( DISTINCT + 44 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2140
SELECT + COUNT ( DISTINCT + 44 ) FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 * col2 col2 FROM tab0
----
-13
-2194
-9704

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col2 FROM tab2
----
46
64
75

query I rowsort
SELECT col0 * + col1 - 27 AS col2 FROM tab1
----
398
4250
687

query I rowsort
SELECT - 44 - + 39 AS col1 FROM tab2
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT - col2 * + col2 + + + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT - col2 * + col2 + + + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + 77 ) FROM tab1
----
-77
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT DISTINCT 19 DIV - - 46 + - + 53 + + - col1 * 43 DIV - 29 AS col2 FROM tab0 AS cor0
----
-22
-52
67

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT 19 / - - 46 + - + 53 + + - col1 * 43 / - 29 AS col2 FROM tab0 AS cor0
----
-22
-52
67

query II rowsort
SELECT + - col2 + ( + col0 ) AS col1, 71 * + col2 AS col2 FROM tab1 AS cor0
----
-45
6816
23
4828
26
4189

query I rowsort
SELECT + 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + - + 67 + - col2 + + + col1 * + + 76 - + 72 IS NOT NULL
----

query I rowsort
SELECT ALL + - 26 AS col0 FROM tab1 cor0
----
-26
-26
-26

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 * + col0 AND - + 29
----

query I rowsort
SELECT + col0 * - col1 * - col0 AS col2 FROM tab1 AS cor0
----
36125
36414
389207

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 99 <= NULL
----

query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT ALL + MIN( DISTINCT - 14 ) DIV MIN( DISTINCT - - col1 ) + - 54 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL + MIN ( DISTINCT - 14 ) / MIN ( DISTINCT - - col1 ) + - 54 FROM tab1 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT + 15 * - CAST( col2 AS SIGNED ) * col0 FROM tab2
----
-15870
-38400
-65250

skipif mysql # not compatible
query I rowsort label-2158
SELECT + 15 * - CAST ( col2 AS INTEGER ) * col0 FROM tab2
----
-15870
-38400
-65250

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + SUM( + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2159
SELECT + SUM ( + - col0 ) FROM tab0
----
-199

query I rowsort
SELECT ALL - ( - 55 ) FROM tab2
----
55
55
55

query III rowsort
SELECT ALL * FROM tab1 WHERE + 54 IS NULL
----

query II rowsort
SELECT + col2 * col1 - - - col2, col2 * col0 AS col0 FROM tab1 cor0
----
1248
4896
236
5015
3128
6188

query I rowsort
SELECT - 57 * - 16 FROM tab0 AS cor0
----
912
912
912

query I rowsort
SELECT ALL - 17 AS col2 FROM tab2 AS cor0 WHERE NOT - 26 NOT IN ( - - col2 - - + 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT DISTINCT + COUNT( + 26 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT + COUNT ( + 26 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2166
SELECT - 33, - 63 + + COUNT( * ) - - 86 * + + 92 AS col0 FROM tab2
----
-33
7852

skipif mysql # not compatible
query II rowsort label-2166
SELECT - 33, - 63 + + COUNT ( * ) - - 86 * + + 92 AS col0 FROM tab2
----
-33
7852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL col2 + - ( - col0 ) + - col1 * - CAST( NULL AS SIGNED ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL col2 + - ( - col0 ) + - col1 * - CAST ( NULL AS INTEGER ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + 96 AS col0 FROM tab0 AS cor0
----
106
143
195

query I rowsort
SELECT DISTINCT col1 * - + col1 * - col2 FROM tab2 AS cor0
----
237160
260362
59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 78 ) + - col2 col0 FROM tab1 AS cor0
----
-18
10
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 13 IS NOT NULL AND NOT + col1 * + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 62 + col2 + - 30 AS col0 FROM tab1 AS cor0
----
100
128
91

query I rowsort
SELECT + col2 + col0 + - col0 + + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2174
SELECT DISTINCT - MIN( ALL CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT - MIN ( ALL CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 93 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2176
SELECT col1 * CAST( - 81 AS SIGNED ) + ( 87 ) AS col1 FROM tab0
----
-1614
-6474
6

skipif mysql # not compatible
query I rowsort label-2176
SELECT col1 * CAST ( - 81 AS INTEGER ) + ( 87 ) AS col1 FROM tab0
----
-1614
-6474
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 > col1 * + col0 * - col1 - 16 * - ( - 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT - COUNT( * ) FROM tab1 WHERE ( ( NOT - col0 IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT - COUNT ( * ) FROM tab1 WHERE ( ( NOT - col0 IS NOT NULL ) )
----
0

query III rowsort
SELECT * FROM tab2 WHERE - ( - 17 ) NOT BETWEEN + 42 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT DISTINCT - COUNT( * ) + - MIN( col2 ) + 58 * + - COUNT( * ) AS col0 FROM tab2
----
-200

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT - COUNT ( * ) + - MIN ( col2 ) + 58 * + - COUNT ( * ) AS col0 FROM tab2
----
-200

query II rowsort
SELECT + col1 - + - col2, col0 FROM tab0 AS cor0
----
100
97
128
15
31
87

query II rowsort
SELECT DISTINCT col0 + col0, col2 FROM tab0 cor0
----
174
10
194
99
30
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL - + COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL - + COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / col1 NOT BETWEEN + - col1 AND + 34 * - + col0 - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2185
SELECT DISTINCT col1, - col2 + + 84 - + CAST( NULL AS DECIMAL ), + 15 col0 FROM tab0
----
9 values hashing to b54374e645246410aaa535245359ec82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2185
SELECT DISTINCT col1, - col2 + + 84 - + CAST ( NULL AS REAL ), + 15 col0 FROM tab0
----
9 values hashing to b54374e645246410aaa535245359ec82

query II rowsort
SELECT - 17 AS col2, + col0 FROM tab2
----
-17
46
-17
64
-17
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT + MIN( 6 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2187
SELECT + MIN ( 6 ) AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2188
SELECT SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
-121

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2189
SELECT * FROM tab1 WHERE NOT NULL < - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2189
SELECT * FROM tab1 WHERE NOT NULL < - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2190
SELECT 7, + ( col0 ) + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
7
NULL
7
NULL
7
NULL

skipif mysql # not compatible
query II rowsort label-2190
SELECT 7, + ( col0 ) + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
7
NULL
7
NULL
7
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2191
SELECT + - CAST( + - 98 AS SIGNED ) DIV - SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2191
SELECT + - CAST ( + - 98 AS INTEGER ) / - SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT - 90 DIV col2 FROM tab0 AS cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-2192
SELECT - 90 / col2 FROM tab0 AS cor0
----
-1
-9
0

query I rowsort
SELECT ALL - col1 * + + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - ( + + 93 ) * + col2 AS col2 FROM tab1 AS cor0
----
-5487
-6324
-8928

query I rowsort
SELECT - col1 * + col0 * - col0 * - col2 + - 28 - - col1 FROM tab0 cor0
----
-1589497
-856522
-931518

onlyif mysql # DIV for integer division: 
query I rowsort label-2196
SELECT ALL col1 DIV + 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL col1 / + 87 FROM tab2
----
0
0
0

query I rowsort
SELECT ( - + col2 ) AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL COUNT( * ) * 76 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL COUNT ( * ) * 76 FROM tab2
----
228

query I rowsort
SELECT + 14 AS col0 FROM tab0
----
14
14
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2200
SELECT - 63 * + COUNT( * ) AS col2, - COUNT( * ) + - MIN( + col0 ) FROM tab2
----
-189
-49

skipif mysql # not compatible
query II rowsort label-2200
SELECT - 63 * + COUNT ( * ) AS col2, - COUNT ( * ) + - MIN ( + col0 ) FROM tab2
----
-189
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + - col2 + + + col0 * - 33 + + - col1 col0, + 91 FROM tab0 AS cor0
----
-2881
91
-3300
91
-542
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + col1, col2 col0 FROM tab0 AS cor0
----
108
10
96
47
98
99

query I rowsort
SELECT DISTINCT - 26 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-26

query I rowsort
SELECT col2 + - col0 + + + ( - 29 ) FROM tab1
----
-52
-55
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT COUNT( ALL - - 7 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT COUNT ( ALL - - 7 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT + + 85 FROM tab2 WHERE col0 * - CAST( NULL AS SIGNED ) * + 37 NOT BETWEEN + col1 AND - + 38
----

skipif mysql # not compatible
query I rowsort label-2206
SELECT + + 85 FROM tab2 WHERE col0 * - CAST ( NULL AS INTEGER ) * + 37 NOT BETWEEN + col1 AND - + 38
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + ( + - 6 ) / + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN - col0 AND + 42
----

query I rowsort
SELECT - + 39 FROM tab1 AS cor0 WHERE 24 * 92 IS NULL
----

query II rowsort
SELECT + col1 AS col0, 46 * - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
-644
47
-2162
5
-230

query I rowsort
SELECT DISTINCT + + col1 + - col0 AS col2 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT + col1 * + - col0 * + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-36184
-36510
-389275

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT + 14 * - COUNT( ALL - 70 ) - + - COUNT( * ) AS col2 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-2213
SELECT + 14 * - COUNT ( ALL - 70 ) - + - COUNT ( * ) AS col2 FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT + COUNT( * ) - 14 AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2214
SELECT + COUNT ( * ) - 14 AS col0 FROM tab0
----
-11

query II rowsort
SELECT ALL col0, - 6 AS col0 FROM tab0
----
15
-6
87
-6
97
-6

query I rowsort
SELECT col1 - - + 11 + - col2 FROM tab1
----
-10
-43
-71

query I rowsort
SELECT - col0 - - + 52 + + col0 FROM tab0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT DISTINCT - 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-2218
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) col0 FROM tab0
----
1
21
81

query I rowsort
SELECT 27 - - col2 AS col0 FROM tab2
----
50
67
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT DISTINCT COUNT( * ) + 33 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT COUNT ( * ) + 33 FROM tab1
----
36

query I rowsort
SELECT DISTINCT - col1 * + col2 + + 55 AS col2 FROM tab1 AS cor0
----
-1289
-240
-3141

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT + + MAX( ALL - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + + MAX ( ALL - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - SUM( + 32 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2223
SELECT - SUM ( + 32 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT - + COUNT( * ) FROM tab0 cor0 WHERE NOT - col2 * + + col0 + col1 / col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT - + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col2 * + + col0 + col1 / col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 * col2 * - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2225
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 * col2 * - col2 IS NULL
----
-3

query II rowsort
SELECT DISTINCT - col1 * + col0, col0 AS col2 FROM tab0 AS cor0
----
-1215
15
-1827
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT + 63 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-2227
SELECT + 63 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
189

query I rowsort
SELECT - 46 FROM tab1 AS cor0 WHERE NOT - 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2229
SELECT ALL - COUNT( * ) * - - 32 AS col1, + 99 * + COUNT( * ) FROM tab2 AS cor0
----
-96
297

skipif mysql # not compatible
query II rowsort label-2229
SELECT ALL - COUNT ( * ) * - - 32 AS col1, + 99 * + COUNT ( * ) FROM tab2 AS cor0
----
-96
297

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 11 + - col1 * col2 * - col1 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2231
SELECT CAST( 96 AS SIGNED ) col1, col1 FROM tab1 AS cor0
----
96
14
96
47
96
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2231
SELECT CAST ( 96 AS INTEGER ) col1, col1 FROM tab1 AS cor0
----
96
14
96
47
96
5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL >= + 27 + + 65 )
----

query I rowsort
SELECT ( + 45 ) AS col2 FROM tab1
----
45
45
45

query I rowsort
SELECT + + 65 * + col1 - + col1 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT 88 * - - col0 AS col1 FROM tab0
----
1320
7656
8536

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2236
SELECT ALL * FROM tab2 WHERE NULL IN ( ( + + 63 ), col2 * - + CAST( + + CAST( 36 AS SIGNED ) AS SIGNED ), 66 * + col0 * + - col2 * col1 + - col1, + 85 )
----

skipif mysql # not compatible
query III rowsort label-2236
SELECT ALL * FROM tab2 WHERE NULL IN ( ( + + 63 ), col2 * - + CAST ( + + CAST ( 36 AS INTEGER ) AS INTEGER ), 66 * + col0 * + - col2 * col1 + - col1, + 85 )
----

query I rowsort
SELECT - 29 + + col2 FROM tab0 AS cor0
----
-19
18
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT + + MIN( ALL + 57 ) AS col0 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2238
SELECT + + MIN ( ALL + 57 ) AS col0 FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT col1 * col2 + col0 * col1 * - - 55 + + col2 AS col2 FROM tab0 AS cor0
----
100705
5533
70679

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 81 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL SUM( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL SUM ( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT + + col0 DIV - col1 - + + ( + col1 ) FROM tab0 cor0
----
-25
-81
-98

skipif mysql # not compatible
query I rowsort label-2242
SELECT + + col0 / - col1 - + + ( + col1 ) FROM tab0 cor0
----
-25
-81
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col1 FROM tab1 WHERE col1 IS NOT NULL
----
-37
-44
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 BETWEEN ( + col1 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT SUM( DISTINCT col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT SUM ( DISTINCT col2 ) FROM tab1
----
223

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( - 46 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL MIN( col0 ) * + 48 AS col1 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
2208

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL MIN ( col0 ) * + 48 AS col1 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
2208

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT ALL + 95 - + SUM( DISTINCT 1 + - 55 ) AS col1 FROM tab2
----
149

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL + 95 - + SUM ( DISTINCT 1 + - 55 ) AS col1 FROM tab2
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT DISTINCT - COUNT( * ) + MIN( ALL - CAST( NULL AS SIGNED ) + col0 * - col0 ) / + 22 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT - COUNT ( * ) + MIN ( ALL - CAST ( NULL AS INTEGER ) + col0 * - col0 ) / + 22 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT ALL + COUNT( * ) DIV 79 + - 70 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + COUNT ( * ) / 79 + - 70 FROM tab0
----
-70

query I rowsort
SELECT - 62 * 76 AS col1 FROM tab2
----
-4712
-4712
-4712

query I rowsort
SELECT - col0 * ( 71 ) AS col0 FROM tab2
----
-3266
-4544
-5325

query I rowsort
SELECT ALL + 33 * col2 FROM tab1
----
1947
2244
3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * + col0 col2 FROM tab1
----
2652
4420
4732

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 * 17 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2258
SELECT CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 90 AS col0 FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col1 + - 79 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT 24 * COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-2261
SELECT 24 * COUNT ( * ) FROM tab0
----
72

query I rowsort
SELECT - 76 * col2 AS col1 FROM tab0
----
-3572
-7524
-760

query I rowsort
SELECT ALL + 84 * - col1 AS col2 FROM tab0
----
-1764
-6804
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT - 46 * + COUNT( * ) - - 89 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-2264
SELECT - 46 * + COUNT ( * ) - - 89 FROM tab1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT ALL 21 DIV 58 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL 21 / 58 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT DISTINCT col1 DIV 33 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT col1 / 33 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col0 * - 29 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2268
SELECT col2 + - ( col2 ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT col2 + - ( col2 ) * - CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT 54 DIV + 7 + + col2 FROM tab2 WHERE NULL IS NULL
----
30
47
65

skipif mysql # not compatible
query I rowsort label-2269
SELECT 54 / + 7 + + col2 FROM tab2 WHERE NULL IS NULL
----
30
47
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL MIN( ALL 97 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL MIN ( ALL 97 ) FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + 89 * COUNT( * ) + - 82 * - 49 FROM tab1 WHERE NOT 46 * col0 + 55 IS NULL
----
4285

skipif mysql # not compatible
query I rowsort label-2271
SELECT + 89 * COUNT ( * ) + - 82 * - 49 FROM tab1 WHERE NOT 46 * col0 + 55 IS NULL
----
4285

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <= 59 + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 64 * + col1 BETWEEN col2 AND ( + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2274
SELECT ALL - COUNT( * ) DIV ( + 10 ) + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL - COUNT ( * ) / ( + 10 ) + COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT + COUNT( - 4 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2275
SELECT + COUNT ( - 4 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT + MIN( DISTINCT col2 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2276
SELECT + MIN ( DISTINCT col2 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT - ( + SUM( + ( + 73 ) ) ) * - 91 AS col0 FROM tab0 AS cor0
----
19929

skipif mysql # not compatible
query I rowsort label-2277
SELECT - ( + SUM ( + ( + 73 ) ) ) * - 91 AS col0 FROM tab0 AS cor0
----
19929

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL COUNT( ALL col0 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2278
SELECT ALL COUNT ( ALL col0 ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT DISTINCT - 11 * - CAST( col0 AS SIGNED ) FROM tab1
----
1001
561
935

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT - 11 * - CAST ( col0 AS INTEGER ) FROM tab1
----
1001
561
935

query I rowsort
SELECT DISTINCT col0 * - ( col1 ) FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 61 / - CAST( NULL AS SIGNED ) AND 11 * col2
----

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 61 / - CAST ( NULL AS INTEGER ) AND 11 * col2
----

query I rowsort
SELECT ALL col2 * col1 + + col0 * + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2283
SELECT ALL - + ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - + ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * 49 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 46 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * 73 BETWEEN + 58 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + + 44 AS col0 FROM tab2 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT DISTINCT COUNT( * ) * - 38 FROM tab1 cor0
----
-114

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT COUNT ( * ) * - 38 FROM tab1 cor0
----
-114

query I rowsort
SELECT ALL + - 25 * + 45 FROM tab2 cor0
----
-1125
-1125
-1125

query I rowsort
SELECT ALL - col2 * 48 AS col2 FROM tab1 AS cor0
----
-2832
-3264
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ( COUNT( * ) ) * 72 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-2291
SELECT ( COUNT ( * ) ) * 72 FROM tab2
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2292
SELECT * FROM tab1 WHERE NOT ( col2 / + 22 + - CAST( NULL AS SIGNED ) ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-2292
SELECT * FROM tab1 WHERE NOT ( col2 / + 22 + - CAST ( NULL AS INTEGER ) ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ( - - SUM( col1 ) ) * 97 AS col2 FROM tab0
----
9991

skipif mysql # not compatible
query I rowsort label-2293
SELECT ( - - SUM ( col1 ) ) * 97 AS col2 FROM tab0
----
9991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT 88 * CAST( 82 AS SIGNED ) AS col1 FROM tab2
----
7216
7216
7216

skipif mysql # not compatible
query I rowsort label-2294
SELECT 88 * CAST ( 82 AS INTEGER ) AS col1 FROM tab2
----
7216
7216
7216

query I rowsort
SELECT ALL col2 + - col2 + - 43 * + col1 FROM tab2
----
-2193
-2881
-3311

query I rowsort
SELECT + 6 * - - ( - 70 ) FROM tab2
----
-420
-420
-420

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + + col1 <> 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * 55 AS col1 FROM tab1
----
2805
4675
5005

query I rowsort
SELECT ALL col0 * - + 30 + col2 * + col0 AS col0 FROM tab0
----
-1740
255
6693

query I rowsort
SELECT + col1 + - col0 AS col0 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL - SUM( 17 ) AS col0 FROM tab2 AS cor0 WHERE col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - SUM ( 17 ) AS col0 FROM tab2 AS cor0 WHERE col1 <= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2303
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) * + 70 AS col1 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * + 70 AS col1 FROM tab0 AS cor0
----
-210

query I rowsort
SELECT ALL - col0 * + + col0 + col2 * col1 AS col0 FROM tab2 AS cor0
----
-1016
-1739
-943

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 col0 - - 91 AS col2 FROM tab2 cor0 WHERE ( col1 * col1 ) >= ( NULL )
----

query I rowsort
SELECT + col2 + - 21 * col1 FROM tab1
----
-198
-46
-919

onlyif mysql # DIV for integer division: 
query II rowsort label-2308
SELECT ALL col2 AS col2, + col2 + + col0 DIV + 72 FROM tab0
----
10
11
47
47
99
100

skipif mysql # not compatible
query II rowsort label-2308
SELECT ALL col2 AS col2, + col2 + + col0 / + 72 FROM tab0
----
10
11
47
47
99
100

onlyif mysql # DIV for integer division: 
query I rowsort label-2309
SELECT ALL + ( + + col1 ) DIV + - col2 * col2 + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL + ( + + col1 ) / + - col2 * col2 + col0 AS col1 FROM tab1
----
51
85
91

query II rowsort
SELECT - + col0 AS col2, 85 AS col0 FROM tab1 AS cor0
----
-51
85
-85
85
-91
85

query I rowsort
SELECT ALL - - 65 + + + 37 - + col0 + + col0 FROM tab1 AS cor0
----
102
102
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 60 col0 FROM tab2 cor0
----
1380
2400
3480

query I rowsort
SELECT - col0 - - 92 FROM tab1 AS cor0
----
1
41
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 67 + + col2 > - col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 - - 74 AS col0 FROM tab1 AS cor0
----
133
142
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) * + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + col1 - + col2 AS col0 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE 36 >= + col0
----

query II rowsort
SELECT DISTINCT - col2 * - - col1, - col1 + 58 AS col0 FROM tab0
----
-210
37
-3807
-23
-99
57

query I rowsort
SELECT ALL col1 * + col0 AS col1 FROM tab2 WHERE col0 + col1 BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2321
SELECT * FROM tab1 WHERE NOT - + col0 + 0 NOT BETWEEN - 72 AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2321
SELECT * FROM tab1 WHERE NOT - + col0 + 0 NOT BETWEEN - 72 AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2322
SELECT ALL + 65 DIV 31, + col2 FROM tab2
----
2
23
2
40
2
58

skipif mysql # not compatible
query II rowsort label-2322
SELECT ALL + 65 / 31, + col2 FROM tab2
----
2
23
2
40
2
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2323
SELECT ALL - ( + - col2 ) DIV col1 * col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL - ( + - col2 ) / col1 * col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT col2 * - col1 * col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2326
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT col2 * - col1 * col1 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - col1 / + 39 * - col2
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 52 * col1 / - - col0 BETWEEN col0 / - 23 AND - col2 * 9
----
-51
-67
-77

query II rowsort
SELECT + - col2 * - + col2, col0 FROM tab0 AS cor0
----
100
87
2209
15
9801
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + 64 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + 42 + + - col0 ) NOT BETWEEN NULL AND - col0 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-2330
SELECT + 64 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + 42 + + - col0 ) NOT BETWEEN NULL AND - col0 + - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT - MAX( ALL + 92 ) AS col0 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-2331
SELECT - MAX ( ALL + 92 ) AS col0 FROM tab2 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT COUNT( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2332
SELECT COUNT ( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab0 cor0
----
-66

query I rowsort
SELECT ALL - - col1 * - + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT + ( 71 ) AS col1 FROM tab2 AS cor0
----
71
71
71

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col0 + + + 85
----

query I rowsort
SELECT ALL - 61 * - 59 + - - col1 * + col2 AS col1 FROM tab1 AS cor0
----
3894
4943
6795

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 45 * + - 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL - - MAX( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL - - MAX ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL + COUNT( + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL + COUNT ( + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 66 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND + + col2 - - - 26 + - col2
----

query I rowsort
SELECT - ( - col0 ) * + 17 + ( col1 ) FROM tab0
----
1500
1650
336

query I rowsort
SELECT - col1 * col2 + - - col0 AS col2 FROM tab1
----
-1293
-210
-3105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2344
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - 61 + - - col2 FROM tab2
----
-21
-3
-38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL ) > ( 55 ) )
----

query I rowsort
SELECT DISTINCT 49 * - col1 * + + 59 FROM tab1
----
-135877
-14455
-40474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2348
SELECT + 93 DIV + + COUNT( * ) + + COUNT( * ) + 86 * - COUNT( ALL + + 78 ) FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 93 / + + COUNT ( * ) + + COUNT ( * ) + 86 * - COUNT ( ALL + + 78 ) FROM tab1
----
-224

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE - ( + col1 ) = - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2350
SELECT DISTINCT - + 85 * + 90 * - + CAST( NULL AS DECIMAL ) + 61 * + col0 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2350
SELECT DISTINCT - + 85 * + 90 * - + CAST ( NULL AS REAL ) + 61 * + col0 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2351
SELECT ALL COUNT( * ) * - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL COUNT ( * ) * - - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT + ( + col2 ), - 79 + - - col1 FROM tab1
----
59
-74
68
-32
96
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT DISTINCT - - 91 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT - - 91 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT + - COUNT( * ) + + - 10 * - COUNT( * ) AS col2 FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-2354
SELECT + - COUNT ( * ) + + - 10 * - COUNT ( * ) AS col2 FROM tab1 cor0
----
27

query I rowsort
SELECT ALL + col2 + + + 79 AS col2 FROM tab1 AS cor0
----
138
147
175

query I rowsort
SELECT ALL - col0 + + col1 FROM tab1 cor0 WHERE ( NOT + - col1 * - col1 + 23 + col0 * - col0 * 39 IS NULL )
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2357
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2357
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 80 * - 59 + 1 FROM tab1 AS cor0 WHERE NOT NULL IN ( 12 * col1, - col0 * - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 78 + - + col2 + 97 = col0 * col1 )
----

query I rowsort
SELECT DISTINCT col0 * - - 43 + + col2 FROM tab1 cor0 WHERE NOT ( + col2 * + col0 ) < ( + col0 )
----
2289
3714
3981

query II rowsort
SELECT ALL + col0 * - col1, 87 AS col0 FROM tab2 AS cor0
----
-2346
87
-4928
87
-5025
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT - + MAX( - col2 ) * - 29 * - + 8 AS col0 FROM tab0 AS cor0
----
2320

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT - + MAX ( - col2 ) * - 29 * - + 8 AS col0 FROM tab0 AS cor0
----
2320

query I rowsort
SELECT 99 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
99
99
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2, - col1 * + col1 * + col0 AS col0 FROM tab0
----
10
-38367
47
-98415
99
-97

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 WHERE NULL BETWEEN + + col2 * col2 + 16 AND + 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2367
SELECT * FROM tab0 WHERE 45 IS NOT NULL OR - CAST( NULL AS SIGNED ) * + col2 - - 35 * - 21 + - col0 * - 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2367
SELECT * FROM tab0 WHERE 45 IS NOT NULL OR - CAST ( NULL AS INTEGER ) * + col2 - - 35 * - 21 + - col0 * - 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2, col2 * - col0 FROM tab1
----
59
-5015
68
-6188
96
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL SUM( col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL SUM ( col2 ) AS col0 FROM tab1
----
223

query I rowsort
SELECT - col2 * + ( + col1 ) FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - col0 AS col1 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT 26 * + col1 FROM tab0
----
2106
26
546

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT + COUNT( * ) * - 72 AS col2 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2373
SELECT + COUNT ( * ) * - 72 AS col2 FROM tab1 AS cor0
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT ALL + CAST( + col0 AS SIGNED ) * + 50 FROM tab0 AS cor0
----
4350
4850
750

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + CAST ( + col0 AS INTEGER ) * + 50 FROM tab0 AS cor0
----
4350
4850
750

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT + - COUNT( * ) * 49 FROM tab2 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-2375
SELECT + - COUNT ( * ) * 49 FROM tab2 cor0
----
-147

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 10 >= NULL
----

query I rowsort
SELECT DISTINCT + 21 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 col1 FROM tab0
----
-60
-60
-60

query I rowsort
SELECT ALL 2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 65 IS NULL
----

query I rowsort
SELECT - ( + + ( - 60 ) ) + - col2 FROM tab1 cor0
----
-36
-8
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT col1 + + col2 * - col0 + 72 * - 48 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + ( col0 ), - col1 )
----

query II rowsort
SELECT + - col2 * + - col1 * + ( - + col2 ) AS col0, ( + col2 ) FROM tab2 AS cor0
----
-123200
40
-225388
58
-26979
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT col0 * + 54 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT col0 * + 54 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT + COUNT( + - 11 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2388
SELECT + COUNT ( + - 11 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT ALL col1 + - + CAST( NULL AS SIGNED ) * - + 55 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL col1 + - + CAST ( NULL AS INTEGER ) * - + 55 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 71 - + col0 AS col1 FROM tab2 cor0
----
-117
-135
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT 62 + 98 DIV + - 1 AS col1 FROM tab1 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-2391
SELECT 62 + 98 / + - 1 AS col1 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT + 6 * + col1 * - col2 - + + 97 AS col0 FROM tab1
----
-1867
-19273
-8161

query I rowsort
SELECT 23 * col1 AS col0 FROM tab2
----
1173
1541
1771

query I rowsort
SELECT ALL + 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT ALL 77 - + col1 - - col0 DIV - 11 AS col0 FROM tab0
----
-5
49
68

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL 77 - + col1 - - col0 / - 11 AS col0 FROM tab0
----
-5
49
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2396
SELECT 71 * + COUNT( * ) * + CAST( + AVG ( - col2 ) AS SIGNED ) col1 FROM tab0
----
-11076

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2396
SELECT 71 * + COUNT ( * ) * + CAST ( + AVG ( - col2 ) AS INTEGER ) col1 FROM tab0
----
-11076

query I rowsort
SELECT ALL - 0 * col1 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 - + - 61 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT DISTINCT 97 * + CAST( COUNT( * ) AS SIGNED ) * - 16 FROM tab2 cor0
----
-4656

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT 97 * + CAST ( COUNT ( * ) AS INTEGER ) * - 16 FROM tab2 cor0
----
-4656

query I rowsort
SELECT DISTINCT col1 * col0 * + + col2 AS col2 FROM tab1 AS cor0
----
25075
290836
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 7 col2 FROM tab0 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col2 col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT - + col0 * + - col2 * - col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT + ( + 91 ) FROM tab2 AS cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 6 <> - col2 * + col0 * 97 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2407
SELECT ALL CAST( ( col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL CAST ( ( col0 ) AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT - ( COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2408
SELECT - ( COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + COUNT( + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2409
SELECT + COUNT ( + col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT + 34 + COUNT( * ) + + - COUNT( DISTINCT - ( + 43 ) ) FROM tab1, tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2410
SELECT + 34 + COUNT ( * ) + + - COUNT ( DISTINCT - ( + 43 ) ) FROM tab1, tab1 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2411
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2411
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2412
SELECT DISTINCT COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 * - + 78 AS col1 FROM tab1
----
-1092
-3666
-390

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= 25 / - - 16
----

query II rowsort
SELECT + col0 * + + 16, col1 AS col0 FROM tab2 AS cor0
----
1024
77
1200
67
736
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 45 ) IS NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL + - ( + - MAX( - - col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + - ( + - MAX ( - - col1 ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ( - col2 ) * col2 + col1 FROM tab0 AS cor0
----
-2128
-79
-9800

query I rowsort
SELECT + 61 * + - 22 AS col1 FROM tab1
----
-1342
-1342
-1342

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT DISTINCT + col0 + - 51 + col0 DIV + col1 AS col1 FROM tab1
----
3
41
51

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT + col0 + - 51 + col0 / + col1 AS col1 FROM tab1
----
3
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT DISTINCT + COUNT( * ) + - 84 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + COUNT ( * ) + - 84 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT - + ( + - COUNT( * ) ) + - + COUNT( * ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2423
SELECT DISTINCT - + ( + - COUNT ( * ) ) + - + COUNT ( * ) col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT + COUNT( ALL - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT + COUNT ( ALL - col1 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT - col2, - col2 FROM tab0 WHERE NOT ( + 15 ) NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT 97, col2 FROM tab0 AS cor0
----
97
10
97
47
97
99

query I rowsort
SELECT ALL + ( 86 ) FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT ALL - - 56 AS col1 FROM tab1 AS cor0
----
56
56
56

query II rowsort
SELECT ALL + col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2430
SELECT + col1 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT + col1 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col0 FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT 0 AS col1, col1 FROM tab0
----
0
1
0
21
0
81

query II rowsort
SELECT ALL - col0, - 56 - + col2 AS col1 FROM tab0 WHERE - col1 NOT BETWEEN + + col0 AND col2
----
-15
-103
-87
-66
-97
-155

query I rowsort
SELECT DISTINCT + col1 * + 30 AS col2 FROM tab1
----
1410
150
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT COUNT( + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2436
SELECT COUNT ( + col1 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - - 47 + + + col1
----

query II rowsort
SELECT 93 AS col1, + col1 + col0 FROM tab1
----
93
138
93
65
93
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2439
SELECT + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2439
SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN NULL AND 33
----

query II rowsort
SELECT ALL col2 AS col1, 61 FROM tab2 AS cor0
----
23
61
40
61
58
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + col2
----

query I rowsort
SELECT DISTINCT - ( ( - - col0 ) ) + - col2 * - 87 FROM tab1
----
5048
5825
8301

query I rowsort
SELECT ALL - col1 + 95 AS col1 FROM tab0 cor0
----
14
74
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT DISTINCT - col1 + - col2 FROM tab0 AS cor0 WHERE - col2 * - + col0 > + - CAST( + + col2 AS SIGNED ) * + - col1 - - - col2
----
-100
-31

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT - col1 + - col2 FROM tab0 AS cor0 WHERE - col2 * - + col0 > + - CAST ( + + col2 AS INTEGER ) * + - col1 - - - col2
----
-100
-31

query I rowsort
SELECT DISTINCT + - col1 + + col2 * + - 89 + + - col0 + + col1 * - col0 FROM tab2 AS cor0
----
-10329
-4490
-8629

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT DISTINCT - COUNT( * ) * - 18 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT - COUNT ( * ) * - 18 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT + + MIN( - 62 ) AS col0 FROM tab1 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2449
SELECT + + MIN ( - 62 ) AS col0 FROM tab1 cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT + 72 * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT + 72 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 >= NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 21 > - col2 + col0 - - - col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT ALL ( - - ( + CAST( NULL AS SIGNED ) ) ) * - 7 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL ( - - ( + CAST ( NULL AS INTEGER ) ) ) * - 7 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT COUNT( * ) - + MAX( - 14 ) AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-2453
SELECT COUNT ( * ) - + MAX ( - 14 ) AS col2 FROM tab2
----
17

query I rowsort
SELECT ALL + ( col2 ) - ( 7 ) FROM tab0
----
3
40
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2455
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NOT col1 * + + 77 * + + CAST( NULL AS SIGNED ) * 14 + + col0 IS NOT NULL ) )
----

skipif mysql # not compatible
query III rowsort label-2455
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NOT col1 * + + 77 * + + CAST ( NULL AS INTEGER ) * 14 + + col0 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT - CAST( - col2 AS SIGNED ) * - CAST( - col0 AS SIGNED ) * - col2 + 64 AS col2 FROM tab1
----
-295821
-420720
-469952

skipif mysql # not compatible
query I rowsort label-2456
SELECT - CAST ( - col2 AS INTEGER ) * - CAST ( - col0 AS INTEGER ) * - col2 + 64 AS col2 FROM tab1
----
-295821
-420720
-469952

query I rowsort
SELECT col2 + 26 AS col2 FROM tab1 AS cor0
----
122
85
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2458
SELECT - 36 AS col2, - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-36
-51
-36
-67
-36
-77

skipif mysql # not compatible
query II rowsort label-2458
SELECT - 36 AS col2, - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-36
-51
-36
-67
-36
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT - 14 BETWEEN - - 99 AND 22
----
3

skipif mysql # not compatible
query I rowsort label-2459
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT - 14 BETWEEN - - 99 AND 22
----
3

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * + + col0 * - 98 >= NULL
----

query I rowsort
SELECT 48 AS col2 FROM tab2 cor0 WHERE NOT ( ( NULL IS NULL ) )
----

query I rowsort
SELECT + + ( + col0 ) * - 12 FROM tab0 AS cor0
----
-1044
-1164
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT - MIN( DISTINCT + + 3 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2465
SELECT - MIN ( DISTINCT + + 3 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col0 FROM tab2 AS cor0
----
92
92
92

query II rowsort
SELECT 53 AS col2, - 46 FROM tab1
----
53
-46
53
-46
53
-46

query II rowsort
SELECT - col0 AS col1, col0 * - 40 + + - col2 AS col0 FROM tab2
----
-46
-1863
-64
-2600
-75
-3058

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2470
SELECT 9 DIV + MAX( DISTINCT col0 ) * + 35 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2470
SELECT 9 / + MAX ( DISTINCT col0 ) * + 35 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 39 * - + col0 FROM tab0
----
-3393
-3783
-585

query I rowsort
SELECT ALL col0 + - - col0 * + 14 + - - ( col0 ) FROM tab1
----
1360
1456
816

query I rowsort
SELECT ALL - ( 48 ) * + col0 + ( + 31 ) + + + 99 FROM tab2 AS cor0
----
-2078
-2942
-3470

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + MIN( ALL + + 88 ) AS col1 FROM tab1 cor0
----
88

skipif mysql # not compatible
query I rowsort label-2474
SELECT + MIN ( ALL + + 88 ) AS col1 FROM tab1 cor0
----
88

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 cor0 WHERE NOT - col2 / 8 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + + COUNT( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2476
SELECT + + COUNT ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 97 * + 28 AS col1 FROM tab1 AS cor0
----
-2716
-2716
-2716

query I rowsort
SELECT ALL AVG ( ALL - - col1 ) FROM tab0 AS cor0 WHERE NOT + ( + 52 ) <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2479
SELECT - 42 * - - CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
-2142
-3570
-3822

skipif mysql # not compatible
query I rowsort label-2479
SELECT - 42 * - - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
-2142
-3570
-3822

query I rowsort
SELECT 15 * - 54 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aeba2ead1c43a90ee080f4461e05f314

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL + COUNT( * ) - + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL + COUNT ( * ) - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + 45 AS col1 FROM tab2 WHERE ( - col1 IS NULL )
----

query I rowsort
SELECT DISTINCT - - 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + 64 - - COUNT( * ) AS col0 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-2485
SELECT + 64 - - COUNT ( * ) AS col0 FROM tab0
----
67

query I rowsort
SELECT ALL col1 + + - 66 FROM tab1 cor0
----
-19
-52
-61

query I rowsort
SELECT ALL + + ( + 15 ) + + col1 FROM tab1 AS cor0
----
20
29
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT - + CAST( NULL AS SIGNED ) * + col2 + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT - + CAST ( NULL AS INTEGER ) * + col2 + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT + 29 + + COUNT( * ) AS col2 FROM tab1 cor0
----
32

skipif mysql # not compatible
query I rowsort label-2489
SELECT + 29 + + COUNT ( * ) AS col2 FROM tab1 cor0
----
32

query II rowsort
SELECT 68 + - + col0 AS col1, 40 FROM tab0 AS cor0
----
-19
40
-29
40
53
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT - MIN( + col0 ) + + 34 AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT - MIN ( + col0 ) + + 34 AS col1 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT col2 + + 22 FROM tab0 AS cor0
----
121
32
69

query I rowsort
SELECT - col2 * + ( + + 65 ) + + + col1 AS col2 FROM tab1 AS cor0
----
-3830
-4373
-6226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT col1 + - col2 * - - CAST( NULL AS SIGNED ) * + 33 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT col1 + - col2 * - - CAST ( NULL AS INTEGER ) * + 33 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2497
SELECT DISTINCT col1 - - - 23 col2, - col2 DIV - col0 AS col2 FROM tab0
----
-2
0
-22
1
58
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2497
SELECT DISTINCT col1 - - - 23 col2, - col2 / - col0 AS col2 FROM tab0
----
-2
0
-22
1
58
3

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE NOT col2 >= - col0 * + 37 + - col2
----

query I rowsort
SELECT DISTINCT - ( + + 72 ) AS col2 FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT - SUM( + + 25 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2500
SELECT - SUM ( + + 25 ) AS col1 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT ALL 5, - 68 * - col2 AS col1 FROM tab1
----
5
4012
5
4624
5
6528

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col2 * 38 AS col0 FROM tab1 AS cor0
----
-2242
-2584
-3648

query II rowsort
SELECT + col2, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2505
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + CAST( NULL AS SIGNED ) * - - 89 * 82
----

skipif mysql # not compatible
query III rowsort label-2505
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + CAST ( NULL AS INTEGER ) * - - 89 * 82
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT 72 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL - MAX( 10 ) AS col0 FROM tab2 WHERE ( - col0 + + + col1 = + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL - MAX ( 10 ) AS col0 FROM tab2 WHERE ( - col0 + + + col1 = + col1 )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 42 ) AS col2 FROM tab2
----
42

query I rowsort
SELECT ALL + - col1 * - 48 AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) NOT BETWEEN NULL AND + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT CAST( - col0 AS SIGNED ) * col1 + + col1 FROM tab2 WHERE NOT col2 + + - col0 IS NULL
----
-2295
-4851
-4958

skipif mysql # not compatible
query I rowsort label-2511
SELECT CAST ( - col0 AS INTEGER ) * col1 + + col1 FROM tab2 WHERE NOT col2 + + - col0 IS NULL
----
-2295
-4851
-4958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * + + 82 col0 FROM tab2
----
1640
1640
1640

query I rowsort
SELECT ALL - ( + - col2 ) FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - col1 + ( + 65 ) FROM tab0
----
-16
44
64

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT 55 * - 16 + - COUNT( * ) AS col0 FROM tab2
----
-883

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT 55 * - 16 + - COUNT ( * ) AS col0 FROM tab2
----
-883

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT - ( - 8 ) + + + COUNT( * ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT - ( - 8 ) + + + COUNT ( * ) FROM tab0 AS cor0
----
11

query I rowsort
SELECT ALL + col0 + + - 18 AS col0 FROM tab0 AS cor0
----
-3
69
79

query I rowsort
SELECT ALL - col1 + + - col0 - - 14 AS col2 FROM tab1
----
-124
-51
-76

query I rowsort
SELECT ALL + col0 * - col2 + + + 14 * + - col0 AS col2 FROM tab0 cor0
----
-10961
-2088
-915

query I rowsort
SELECT ALL 22 + + col2 FROM tab1 AS cor0
----
118
81
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN 29 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT + SUM( DISTINCT col0 ) - + MIN( + 92 ) AS col2 FROM tab0 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT + SUM ( DISTINCT col0 ) - + MIN ( + 92 ) AS col2 FROM tab0 AS cor0
----
107

query I rowsort
SELECT ALL + + 75 - col0 FROM tab2 AS cor0
----
0
11
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT COUNT( * ) - + ( + - COUNT( ALL - col0 ) ) * - SUM( - col0 ) AS col0 FROM tab0
----
600

skipif mysql # not compatible
query I rowsort label-2525
SELECT COUNT ( * ) - + ( + - COUNT ( ALL - col0 ) ) * - SUM ( - col0 ) AS col0 FROM tab0
----
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT CAST( + + col0 AS SIGNED ) - 20 FROM tab1
----
31
65
71

skipif mysql # not compatible
query I rowsort label-2526
SELECT CAST ( + + col0 AS INTEGER ) - 20 FROM tab1
----
31
65
71

query I rowsort
SELECT col1 * 77 FROM tab2
----
3927
5159
5929

query I rowsort
SELECT ALL - + col1 * col2 * + + 61 * col0 AS col2 FROM tab2 AS cor0
----
-12024320
-17778450
-3291438

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL + + MIN( DISTINCT - col2 ) * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + + MIN ( DISTINCT - col2 ) * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2530
SELECT DISTINCT - COUNT( * ) DIV + - 85 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT - COUNT ( * ) / + - 85 AS col1 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT ALL + - 72 DIV col1 + - + col0 AS col0 FROM tab1 AS cor0
----
-56
-92
-99

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL + - 72 / col1 + - + col0 AS col0 FROM tab1 AS cor0
----
-56
-92
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2532
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > - col2
----

skipif mysql # not compatible
query III rowsort label-2532
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > - col2
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2534
SELECT ALL 74 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL 74 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT - MIN( DISTINCT ( + col2 ) ) * + + 78 FROM tab0 AS cor0
----
-780

skipif mysql # not compatible
query I rowsort label-2535
SELECT - MIN ( DISTINCT ( + col2 ) ) * + + 78 FROM tab0 AS cor0
----
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2536
SELECT + 37 * - ( - col1 ) + + CAST( - ( + ( - col1 ) ) AS SIGNED ) FROM tab2 AS cor0
----
1938
2546
2926

skipif mysql # not compatible
query I rowsort label-2536
SELECT + 37 * - ( - col1 ) + + CAST ( - ( + ( - col1 ) ) AS INTEGER ) FROM tab2 AS cor0
----
1938
2546
2926

query I rowsort
SELECT col2 * col0 + - - col2 - + + 11 FROM tab1
----
4981
5063
6245

query II rowsort
SELECT DISTINCT + col1, - col2 * - ( - - col1 ) * - col0 FROM tab1
----
14
-68544
47
-290836
5
-25075

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL COUNT( - + 39 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL COUNT ( - + 39 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT DISTINCT ( - MIN( + - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT ( - MIN ( + - col0 ) ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT 82 * 3 + COUNT( * ) + + SUM( DISTINCT + col1 ) FROM tab0
----
352

skipif mysql # not compatible
query I rowsort label-2541
SELECT 82 * 3 + COUNT ( * ) + + SUM ( DISTINCT + col1 ) FROM tab0
----
352

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2542
SELECT DISTINCT col1 * - - 36 * col2 AS col1, - CAST( NULL AS DECIMAL ) FROM tab2
----
110880
NULL
139896
NULL
42228
NULL

skipif mysql # not compatible
query II rowsort label-2542
SELECT DISTINCT col1 * - - 36 * col2 AS col1, - CAST ( NULL AS REAL ) FROM tab2
----
110880
NULL
139896
NULL
42228
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col1
----

query II rowsort
SELECT ALL + col1, col1 - 69 AS col0 FROM tab1
----
14
-55
47
-22
5
-64

query I rowsort
SELECT DISTINCT + 55 + + 32 AS col2 FROM tab2
----
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col2 + + 57
----

query I rowsort
SELECT 78 * col1 FROM tab2 AS cor0
----
3978
5226
6006

query I rowsort
SELECT ALL + + col0 + 91 FROM tab1 AS cor0
----
142
176
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL 52 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL 52 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + - 84 - + col1 < col1 * - col1
----
2

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + - 84 - + col1 < col1 * - col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT COUNT( * ) + + MIN( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-2553
SELECT COUNT ( * ) + + MIN ( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
13

query I rowsort
SELECT ALL + + 81 + + ( col0 ) * ( + col1 ) * col2 + - col0 FROM tab0 AS cor0
----
18264
57171
9587

query I rowsort
SELECT DISTINCT + ( + col2 ) - 36 FROM tab2 AS cor0
----
-13
22
4

query I rowsort
SELECT - col1 + ( - - col2 ) FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT + ( 37 ) * 40 + - + 4 FROM tab1 AS cor0
----
1476
1476
1476

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT DISTINCT - 20 + 31 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT - 20 + 31 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT MAX( + + 81 ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2559
SELECT MAX ( + + 81 ) FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT DISTINCT + - SUM( DISTINCT - + 62 ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
62
-3

skipif mysql # not compatible
query II rowsort label-2560
SELECT DISTINCT + - SUM ( DISTINCT - + 62 ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
62
-3

query I rowsort
SELECT ALL 85 * + col2 AS col2 FROM tab1 AS cor0
----
5015
5780
8160

query I rowsort
SELECT DISTINCT ( + 69 ) AS col0 FROM tab0
----
69

query II rowsort
SELECT + col2 * + - col0 * col2 AS col2, col1 AS col2 FROM tab0
----
-33135
81
-8700
21
-950697
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 FROM tab0 WHERE NOT ( NOT 53 * - col2 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 WHERE NOT ( NOT 53 * - col2 IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 1 * col2 < - 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + - col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT + 28 * - - col2 FROM tab2
----
1120
1624
644

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - 36 * - 84 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3027

skipif mysql # not compatible
query I rowsort label-2568
SELECT - 36 * - 84 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3027

query I rowsort
SELECT ALL - - 19 AS col0 FROM tab0 AS cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2570
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( + - col2 AS SIGNED ) - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2570
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( + - col2 AS INTEGER ) - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2571
SELECT - CAST( NULL AS SIGNED ) + + 51 + - + COUNT( * ) * - 85 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT - CAST ( NULL AS INTEGER ) + + 51 + - + COUNT ( * ) * - 85 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 0 col0 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + col1 + + col0 / - 43 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT - + 38 * + col1 FROM tab0 AS cor0 WHERE NOT col2 * col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT ALL col2 DIV - + col2 - - - 72 AS col0 FROM tab1 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL col2 / - + col2 - - - 72 AS col0 FROM tab1 AS cor0
----
-73
-73
-73

query II rowsort
SELECT DISTINCT + col1, col1 FROM tab1 cor0
----
14
14
47
47
5
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NULL > + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL + COUNT( DISTINCT - - 73 ) AS col1 FROM tab1 WHERE NOT col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL + COUNT ( DISTINCT - - 73 ) AS col1 FROM tab1 WHERE NOT col1 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT + 88 + + - MIN( + col2 ) AS col0 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT + 88 + + - MIN ( + col2 ) AS col0 FROM tab2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT + COUNT( DISTINCT 52 ) * COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT + COUNT ( DISTINCT 52 ) * COUNT ( * ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 85 col2 FROM tab0
----
3995
8415
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col0 col1 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL - 85 * - col1 * + 8 + + 47 * + + ( - 24 ) * - + 6 * + col1 FROM tab0 AS cor0
----
156408
603288
7448

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT MIN( col1 ) - + 45 col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2586
SELECT DISTINCT MIN ( col1 ) - + 45 col2 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT - 82 + COUNT( * ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - 82 + COUNT ( * ) FROM tab2 AS cor0
----
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - ( col2 ) * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 98 + + + col0 FROM tab1 AS cor0
----
149
183
189

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - COUNT( - + col2 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2590
SELECT - COUNT ( - + col2 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT + COUNT( * ) - - + 1 FROM tab2 WHERE NULL >= NULL
----
1

skipif mysql # not compatible
query I rowsort label-2591
SELECT + COUNT ( * ) - - + 1 FROM tab2 WHERE NULL >= NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + col2, + col2 + + 25 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE col1 * - + col0 * - col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + + ( + + col1 ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT DISTINCT - col2 AS col2, + 77 * + col1 FROM tab2 cor0
----
-23
3927
-40
5929
-58
5159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2596
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * CAST( + + col2 AS SIGNED ) * + + 51 / + CAST( + col1 AS SIGNED ) BETWEEN + col2 AND - col2
----

skipif mysql # not compatible
query III rowsort label-2596
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * CAST ( + + col2 AS INTEGER ) * + + 51 / + CAST ( + col1 AS INTEGER ) BETWEEN + col2 AND - col2
----

query II rowsort
SELECT - col2 AS col0, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT + 16 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + ( - + col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT - MAX( DISTINCT - 54 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
54

skipif mysql # not compatible
query I rowsort label-2600
SELECT - MAX ( DISTINCT - 54 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2601
SELECT - + MIN( DISTINCT + CAST( col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2601
SELECT - + MIN ( DISTINCT + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + 68 * - col0 AS col0 FROM tab0 AS cor0
----
-1020
-5916
-6596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 75 col0 FROM tab2 AS cor0
----
1725
3000
4350

query I rowsort
SELECT + 11 + - - col1 FROM tab1 AS cor0 WHERE 6 + col0 - - col2 IS NULL
----

query I rowsort
SELECT + + col0 * - - ( col2 ) + + col2 + - - col0 AS col2 FROM tab2 AS cor0
----
1127
2664
4483

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT DISTINCT CAST( - 7 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-58
-74
-84

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT CAST ( - 7 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-58
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + COUNT( * ) + - ( + + 4 ) + ( COUNT( * ) ) * + 84 AS col0 FROM tab1 AS cor0
----
251

skipif mysql # not compatible
query I rowsort label-2608
SELECT + COUNT ( * ) + - ( + + 4 ) + ( COUNT ( * ) ) * + 84 AS col0 FROM tab1 AS cor0
----
251

query I rowsort
SELECT + 39 + col1 - + + 53 + - + col2 + + col0 AS col2 FROM tab2 AS cor0
----
60
70
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT COUNT( * ) + - - COUNT( DISTINCT col2 ) * - MAX( - 27 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT COUNT ( * ) + - - COUNT ( DISTINCT col2 ) * - MAX ( - 27 ) FROM tab2 AS cor0
----
84

query II rowsort
SELECT ALL - + ( col1 ) * + col0 AS col0, 5 - - 91 AS col1 FROM tab1 AS cor0
----
-425
96
-4277
96
-714
96

query I rowsort
SELECT - col1 + + + col2 + + 99 + - ( - col0 ) * + col0 FROM tab2
----
2187
4158
5715

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2614
SELECT DISTINCT col1 DIV + CAST( - CAST( col0 AS DECIMAL ) AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT col1 / + CAST ( - CAST ( col0 AS REAL ) AS INTEGER ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT DISTINCT - 34 DIV - + col0 * 22 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT - 34 / - + col0 * 22 AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) >= + - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL > + 5 * - + 97 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + 6 * + col2 + + - col2
----

query I rowsort
SELECT DISTINCT col1 - + 40 AS col0 FROM tab2 AS cor0
----
11
27
37

query I rowsort
SELECT + 35 * 43 - 17 * - col2 + + + 76 FROM tab0 AS cor0
----
1751
2380
3264

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + + col1 * 31
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT 93 DIV - col0 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2622
SELECT 93 / - col0 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-1
-1
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 < + 55
----
64
77
40
75
67
58

query I rowsort
SELECT - + ( + - col0 ) * - 95 FROM tab1 AS cor0
----
-4845
-8075
-8645

query I rowsort
SELECT + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - 81 * - + 26 FROM tab0 AS cor0
----
2106

query II rowsort
SELECT ALL 89 AS col1, - col1 * - 62 AS col0 FROM tab2
----
89
3162
89
4154
89
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL - COUNT( * ) * - - 76 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL - COUNT ( * ) * - - 76 FROM tab2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + ( + - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + ( + - COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL MAX( 37 ) AS col2 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL MAX ( 37 ) AS col2 FROM tab0 AS cor0
----
37

query II rowsort
SELECT ALL + col1, ( - col1 ) FROM tab2 AS cor0 WHERE NOT 14 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN 53 AND + - 59 * 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + col0 col1 FROM tab0
----
104
176
186

query I rowsort
SELECT - - 81 + + 22 FROM tab0 WHERE + ( 92 ) IS NOT NULL
----
103
103
103

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / + ( + col2 ) + - 54 * - - col1 + col0 IS NULL
----

query II rowsort
SELECT + - ( - col2 ), col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT ALL + 41 * + col2 FROM tab0 cor0
----
1927
4059
410

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT 87 DIV + + col1 FROM tab1 cor0 WHERE - col2 < - - col0
----
1
17
6

skipif mysql # not compatible
query I rowsort label-2639
SELECT 87 / + + col1 FROM tab1 cor0 WHERE - col2 < - - col0
----
1
17
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT DISTINCT + 68 - + - COUNT( * ) * + 28 + + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT + 68 - + - COUNT ( * ) * + 28 + + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT + COUNT( DISTINCT - col2 ) * MIN( ALL col0 ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-2642
SELECT + COUNT ( DISTINCT - col2 ) * MIN ( ALL col0 ) AS col1 FROM tab1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT 11 - - MIN( DISTINCT + + 81 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-2643
SELECT 11 - - MIN ( DISTINCT + + 81 ) FROM tab1
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2644
SELECT DISTINCT + COUNT( * ) / + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + COUNT ( * ) / + - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT 73 * + 44 - col1 + - col2 FROM tab0
----
3084
3112
3181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2646
SELECT DISTINCT 53 DIV SUM( + - 40 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2646
SELECT DISTINCT 53 / SUM ( + - 40 ) col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT ( - 94 ) + + 90 AS col0 FROM tab1
----
-4

query I rowsort
SELECT - col2 * col2 FROM tab0 WHERE NULL IS NULL
----
-100
-2209
-9801

query I rowsort
SELECT 52 + - ( 10 ) FROM tab1
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2650
SELECT ALL ( - CAST( col2 AS SIGNED ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL ( - CAST ( col2 AS INTEGER ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL 76 - - col0 AS col0 FROM tab1 AS cor0
----
127
161
167

query I rowsort
SELECT - 58 + + 6 * ( + - col0 ) FROM tab0 AS cor0
----
-148
-580
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE - col1 IN ( col1, 88, - col2, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2653
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 IN ( col1, 88, - col2, col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL - MAX( DISTINCT + 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - ( + 69 ) IS NOT NULL
----
-70

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - MAX ( DISTINCT + 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - ( + 69 ) IS NOT NULL
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT + MIN( + + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2655
SELECT + MIN ( + + col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT DISTINCT MIN( ALL - col0 ) AS col0 FROM tab2 WHERE - - 47 IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT MIN ( ALL - col0 ) AS col0 FROM tab2 WHERE - - 47 IS NOT NULL
----
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT - 28 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2659
SELECT - 28 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + col2 col0 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2661
SELECT - + COUNT( * ) DIV - 17 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2661
SELECT - + COUNT ( * ) / - 17 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, 92 * 66 FROM tab2 cor0
----
51
6072
67
6072
77
6072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2663
SELECT - ( - COUNT( CAST( NULL AS SIGNED ) ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2663
SELECT - ( - COUNT ( CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
0

query I rowsort
SELECT - 25 * + + 10 AS col2 FROM tab0
----
-250
-250
-250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT col0 + col0 - - - col0 * + 56 + - + col1 - + CAST( ( - col2 ) AS SIGNED ) AS col2 FROM tab0
----
-4709
-5140
-844

skipif mysql # not compatible
query I rowsort label-2665
SELECT col0 + col0 - - - col0 * + 56 + - + col1 - + CAST ( ( - col2 ) AS INTEGER ) AS col2 FROM tab0
----
-4709
-5140
-844

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT + COUNT( * ) FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT + COUNT ( * ) FROM tab2, tab1 cor0
----
9

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 > - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT + - SUM( DISTINCT col1 ) * SUM( DISTINCT - - 94 ) FROM tab2 AS cor0
----
-18330

skipif mysql # not compatible
query I rowsort label-2668
SELECT + - SUM ( DISTINCT col1 ) * SUM ( DISTINCT - - 94 ) FROM tab2 AS cor0
----
-18330

query I rowsort
SELECT + + col0 * + + col0 + 47 * + - col1 FROM tab2 AS cor0
----
-281
2476
477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + col0 col0 FROM tab1 AS cor0 WHERE col2 BETWEEN 9 AND NULL
----

query I rowsort
SELECT + ( - - col1 ) * 64 AS col2 FROM tab1
----
3008
320
896

query II rowsort
SELECT ALL - + col1, - col1 AS col2 FROM tab1 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - - col0 + - + 78 IS NULL
----

query I rowsort
SELECT 53 + col2 FROM tab0 AS cor0
----
100
152
63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col2 FROM tab1 AS cor0 WHERE 11 - - - 46 > - col0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT + COUNT( * ) + 66 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT + COUNT ( * ) + 66 FROM tab2 AS cor0
----
69

query I rowsort
SELECT ALL - col0 + - + ( + 96 ) FROM tab1 AS cor0
----
-147
-181
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL + - MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL + - MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT DISTINCT col2 DIV - col2 + - - col1 AS col1 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT col2 / - col2 + - - col1 AS col1 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT 58 + + + CAST( - 28 AS SIGNED ) FROM tab0 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-2681
SELECT 58 + + + CAST ( - 28 AS INTEGER ) FROM tab0 AS cor0
----
30
30
30

query II rowsort
SELECT 93 * - + 63, + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 43 * - ( + 75 ) + - col2 * + 1 AS col0 FROM tab0 AS cor0
----
3126
3178
3215

query I rowsort
SELECT DISTINCT + ( 70 ) AS col2 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL + 97 * COUNT( * ) - - - SUM( DISTINCT + col1 ) FROM tab0
----
188

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + 97 * COUNT ( * ) - - - SUM ( DISTINCT + col1 ) FROM tab0
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT 81 DIV - col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT 81 / - col2 AS col1 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT + SUM( 4 ) * + 92 DIV + - 30 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-2687
SELECT + SUM ( 4 ) * + 92 / + - 30 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + + 64 - + COUNT( - + 85 ) AS col0 FROM tab1 cor0
----
61

skipif mysql # not compatible
query I rowsort label-2688
SELECT + + 64 - + COUNT ( - + 85 ) AS col0 FROM tab1 cor0
----
61

query II rowsort
SELECT + col0 - + 23, - col0 AS col2 FROM tab0 AS cor0
----
-8
-15
64
-87
74
-97

query I rowsort
SELECT DISTINCT 18 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT + MAX( + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2692
SELECT + MAX ( + + col0 ) FROM tab0
----
97

query I rowsort
SELECT ALL ( - - 22 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT + SUM( - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2694
SELECT + SUM ( - col0 ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT + col2 * 96 * col2 FROM tab0
----
212064
940896
9600

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT DISTINCT COUNT( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT COUNT ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2698
SELECT DISTINCT col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT col1 * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT - COUNT( * ) - + 73 AS col1, 56 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 - + + 10 AND NULL
----
-73
56

skipif mysql # not compatible
query II rowsort label-2699
SELECT - COUNT ( * ) - + 73 AS col1, 56 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 - + + 10 AND NULL
----
-73
56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2700
SELECT 68 * + + 91 * - - CAST( NULL AS SIGNED ) / + - CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2700
SELECT 68 * + + 91 * - - CAST ( NULL AS INTEGER ) / + - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL + MAX( - + col0 ) * + COUNT( * ) + + + COUNT( * ) col2 FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2701
SELECT ALL + MAX ( - + col0 ) * + COUNT ( * ) + + + COUNT ( * ) col2 FROM tab1 AS cor0
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT - col2 DIV - col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2702
SELECT - col2 / - col2 FROM tab0 cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 91 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2704
SELECT ALL + - COUNT( * ) / + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL + - COUNT ( * ) / + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + col1 * - + 57 AND col1
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 27 AS col2, 81 col2 FROM tab1
----
27
81
27
81
27
81

query II rowsort
SELECT ALL + col2 AS col0, + 81 AS col0 FROM tab1
----
59
81
68
81
96
81

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE ( - ( col2 ) ) BETWEEN 10 / col1 * col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 55 >= NULL
----

query I rowsort
SELECT ALL col2 + - - col1 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + ( - ( - + 72 ) ) + - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT CAST( NULL AS SIGNED ) / 99 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT CAST ( NULL AS INTEGER ) / 99 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT + SUM( ALL - + 7 ) AS col1 FROM tab2 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2714
SELECT + SUM ( ALL - + 7 ) AS col1 FROM tab2 cor0
----
-21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 ) IN ( - col2, - ( col1 ) * - + col1, + 39, col1 + + ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2716
SELECT col0 * + + 88 * + ( ( + col2 ) ) + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT col0 * + + 88 * + ( ( + col2 ) ) + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 + - col0, col1 AS col2 FROM tab2
----
-8
67
13
77
5
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT + col2 FROM tab0 WHERE + - col2 * 7 - - CAST( NULL AS SIGNED ) < - col0 * - 37
----

skipif mysql # not compatible
query I rowsort label-2718
SELECT + col2 FROM tab0 WHERE + - col2 * 7 - - CAST ( NULL AS INTEGER ) < - col0 * - 37
----

query I rowsort
SELECT ALL 53 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2720
SELECT ALL - CAST( NULL AS SIGNED ) + - 20 + - - col0 * - 74 * + 49 * + col1 * + + 33 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - CAST ( NULL AS INTEGER ) + - 20 + - - col0 * - 74 * + 49 * + col1 * + + 33 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 52 + - col0 FROM tab0 cor0
----
-35
-45
37

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 51 + + 87 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT - 9 * - 39 - - + COUNT( * ) FROM tab2 AS cor0
----
354

skipif mysql # not compatible
query I rowsort label-2724
SELECT - 9 * - 39 - - + COUNT ( * ) FROM tab2 AS cor0
----
354

query I rowsort
SELECT col1 - + + 15 FROM tab2
----
36
52
62

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT + - 84 * col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT DISTINCT - COUNT( + + 1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT - COUNT ( + + 1 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE col1 > + col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL + SUM( + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL + SUM ( + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT DISTINCT + 27 col1, COUNT( * ) AS col0 FROM tab1
----
27
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2730
SELECT DISTINCT + 27 col1, COUNT ( * ) AS col0 FROM tab1
----
27
3

query I rowsort
SELECT ALL ( 98 ) FROM tab0
----
98
98
98

query I rowsort
SELECT ALL 4 * ( - - col1 ) - col0 - + - col1 - - 33 * + - col2 + + col1 * + + col1 + + col0 AS col2 FROM tab2 AS cor0
----
2097
2910
4994

query I rowsort
SELECT DISTINCT + col0 * - - 75 FROM tab1 cor0
----
3825
6375
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL SUM( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL SUM ( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * 76 + - col1 - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + 47 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab0 WHERE col1 NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 27 * + col0 col1 FROM tab0
----
2339
2520
358

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 23 / col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT 69 - SUM( ALL col2 - + 56 * + col1 ) AS col0 FROM tab0
----
5681

skipif mysql # not compatible
query I rowsort label-2741
SELECT 69 - SUM ( ALL col2 - + 56 * + col1 ) AS col0 FROM tab0
----
5681

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL - SUM( - ( col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - SUM ( - ( col1 ) ) FROM tab0
----
103

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 35 * - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT + 26 + - COUNT( * ) AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND + col2 * col2
----
26

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT + 26 + - COUNT ( * ) AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND + col2 * col2
----
26

query I rowsort
SELECT ALL 59 + col1 AS col2 FROM tab1
----
106
64
73

query III rowsort
SELECT * FROM tab1 WHERE NOT 0 / - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( ( - 51 ) ) FROM tab0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT + CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT + CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - 41 ) + 33 * + 29 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2750
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + - col0 col2 FROM tab1 WHERE NOT 26 IS NULL
----
-60
145
2118

query I rowsort
SELECT col1 * 28 AS col0 FROM tab1
----
1316
140
392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 86 ) + + 87 col1 FROM tab2
----
173
173
173

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 25 / - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - MAX( + col2 ) * 7 AS col1 FROM tab2
----
-406

skipif mysql # not compatible
query I rowsort label-2755
SELECT - MAX ( + col2 ) * 7 AS col1 FROM tab2
----
-406

query I rowsort
SELECT ALL + col1 * + 89 FROM tab0
----
1869
7209
89

query I rowsort
SELECT 96 / - col2 + 37 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT 83 * col1 AS col2 FROM tab2
----
4233
5561
6391

query I rowsort
SELECT - 88 AS col1 FROM tab2 WHERE 24 <= ( 42 * 12 )
----
-88
-88
-88

query I rowsort
SELECT DISTINCT 33 * - 48 FROM tab1
----
-1584

query I rowsort
SELECT ALL 67 + + col1 AS col1 FROM tab1 AS cor0
----
114
72
81

query I rowsort
SELECT ALL - col2 + 15 AS col2 FROM tab2 AS cor0
----
-25
-43
-8

query I rowsort
SELECT 30 * + ( col2 ) FROM tab2 AS cor0
----
1200
1740
690

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT DISTINCT SUM( - 44 ) FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT SUM ( - 44 ) FROM tab2 AS cor0
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2765
SELECT 71 DIV COUNT( * ) AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2765
SELECT 71 / COUNT ( * ) AS col0 FROM tab2 cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT DISTINCT - col1 + + 46 FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT - col1 + + 46 FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) NOT IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 69 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 69 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 17 col2 FROM tab2 AS cor0
----
-34
-50
-60

query I rowsort
SELECT ALL - + col1 * + col0 + + col2 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT - 19 DIV - col2 + 34 FROM tab0 cor0
----
34
34
35

skipif mysql # not compatible
query I rowsort label-2772
SELECT - 19 / - col2 + 34 FROM tab0 cor0
----
34
34
35

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0 * + col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT - 71 * + COUNT( * ) + MAX( col2 ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT - 71 * + COUNT ( * ) + MAX ( col2 ) FROM tab0 AS cor0
----
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 7 * 21 - col2 col2 FROM tab2 AS cor0
----
-170
-187
-205

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL < - 94 * - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + col1 )
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT col0 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 99 FROM tab1
----
5841
6732
9504

query I rowsort
SELECT col1 * - col2 * + 5 FROM tab1
----
-1475
-15980
-6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2785
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND + col0 / + 34
----

skipif mysql # not compatible
query III rowsort label-2785
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + col0 / + 34
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * + col0 NOT BETWEEN ( NULL ) AND 34
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2788
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * - col2 <> + col0 - + col0
----

skipif mysql # not compatible
query III rowsort label-2788
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - col2 <> + col0 - + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 * - col0 ) >= ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE ( NOT 16 = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2791
SELECT - CAST( NULL AS SIGNED ) AS col2, - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-2791
SELECT - CAST ( NULL AS INTEGER ) AS col2, - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT + ( - - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL ( col1 ) AS col1 FROM tab0 cor0 WHERE NOT - col0 / + + 90 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT + - MAX( ALL + + 65 ) AS col0 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2795
SELECT + - MAX ( ALL + + 65 ) AS col0 FROM tab2 AS cor0
----
-65

query II rowsort
SELECT ALL - col1, + 78 AS col1 FROM tab0 AS cor0
----
-1
78
-21
78
-81
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL - 2 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - 2 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2798
SELECT COUNT( DISTINCT - CAST( + 0 AS SIGNED ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2798
SELECT COUNT ( DISTINCT - CAST ( + 0 AS INTEGER ) ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN col2 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN col2 AND - col2
----
0

query III rowsort
SELECT * FROM tab2 WHERE + col0 <> ( + 59 * - 85 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - col1 * - - col0 FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2802
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT ( - CAST( 42 AS SIGNED ) ) AS col1 FROM tab1 WHERE + 21 / - + 69 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2803
SELECT ( - CAST ( 42 AS INTEGER ) ) AS col1 FROM tab1 WHERE + 21 / - + 69 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2804
SELECT DISTINCT * FROM tab2 WHERE + - col0 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2804
SELECT DISTINCT * FROM tab2 WHERE + - col0 = - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL - 96 * - 32 + + COUNT( * ) AS col1 FROM tab1
----
3075

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - 96 * - 32 + + COUNT ( * ) AS col1 FROM tab1
----
3075

query I rowsort
SELECT ALL - 63 + + ( + col2 ) * + col1 FROM tab0
----
147
36
3744

query I rowsort
SELECT ALL - 62 FROM tab1 WHERE NOT - col2 NOT BETWEEN ( + col1 + col2 ) AND + col0 * + 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 20 + + + ( - + col0 ) * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 20 + + + ( - + col0 ) * - col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 72 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - col1 + 47 AS col0 FROM tab2
----
10
19
38

query I rowsort
SELECT + 96 * - col0 FROM tab2
----
-4416
-6144
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2812
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 <= - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - col1 + - col0 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( col2 ) AS col1 FROM tab1 WHERE NOT ( + ( 9 ) * - - col2 / col2 ) IS NOT NULL
----

query I rowsort
SELECT 40 + - 2 FROM tab2
----
38
38
38

query I rowsort
SELECT ALL col1 - + 6 FROM tab1
----
-1
41
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT 89 DIV col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2819
SELECT 89 / col2 AS col1 FROM tab1
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 98 * col2 > ( + 31 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2821
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT ALL - - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL - - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - col1 + + col0 AS col1 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 + + - col2 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - - 33 IS NULL AND - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2827
SELECT ALL - + COUNT( * ) DIV ( - 2 ) * - 78 AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - + COUNT ( * ) / ( - 2 ) * - 78 AS col0 FROM tab2 AS cor0
----
-78

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( + 11, + col0 * - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2829
SELECT COUNT( * ), + ( + CAST( NULL AS DECIMAL ) ) col1 FROM tab2
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2829
SELECT COUNT ( * ), + ( + CAST ( NULL AS REAL ) ) col1 FROM tab2
----
3
NULL

query I rowsort
SELECT - col1 * + - col1 AS col2 FROM tab1
----
196
2209
25

query II rowsort
SELECT col0 AS col0, + col0 FROM tab1
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 86 ) col0 FROM tab2
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL - COUNT( - - 86 ) FROM tab1 WHERE NOT ( - col2 + - 66 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL - COUNT ( - - 86 ) FROM tab1 WHERE NOT ( - col2 + - 66 ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2834
SELECT col2, CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
10
87
47
15
99
97

skipif mysql # not compatible
query II rowsort label-2834
SELECT col2, CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col0 + 62 FROM tab0 WHERE NOT - 9 IS NOT NULL
----

query I rowsort
SELECT col0 * + col0 + + ( - col2 ) * - 39 + + 29 - 79 FROM tab1 cor0
----
10883
6295
9476

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - MAX( col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2837
SELECT - MAX ( col1 ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT - + 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT - SUM( + + 83 ) FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT - SUM ( + + 83 ) FROM tab0 AS cor0
----
-249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2840
SELECT 29 + - + SUM( col2 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2840
SELECT 29 + - + SUM ( col2 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT + + COUNT( * ) + + MIN( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2841
SELECT + + COUNT ( * ) + + MIN ( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( ( 35 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( ( 35 ) )
----
0

query II rowsort
SELECT - 17 + + + 2 AS col2, + 88 * - - col0 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-19800
-15
-666072
-15
-827992

query I rowsort
SELECT col0 * col1 + col2 + - col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT col2 + - 69 AS col0 FROM tab0
----
-22
-59
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL COUNT( * ) + - 9 * 95 FROM tab0
----
-852

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL COUNT ( * ) + - 9 * 95 FROM tab0
----
-852

query I rowsort
SELECT DISTINCT + col2 + - + 78 FROM tab0 AS cor0
----
-31
-68
21

query II rowsort
SELECT - col1, + 89 AS col0 FROM tab0 AS cor0
----
-1
89
-21
89
-81
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2849
SELECT + col1 + + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT + col1 + + - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 19 * 14 + - + 67 AS col1 FROM tab2
----
199
199
199

query II rowsort
SELECT DISTINCT + 98, col2 AS col2 FROM tab2 WHERE col2 + + col0 IN ( + + 50, 65 )
----

query I rowsort
SELECT 24 + + col1 FROM tab2 AS cor0
----
101
75
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT - - col1 + + - col1 - + 70 - + col0 DIV col0 - - - col0 + col1 DIV col2 - - + 95 * col1 AS col2 FROM tab2 cor0
----
4730
6220
7181

skipif mysql # not compatible
query I rowsort label-2853
SELECT - - col1 + + - col1 - + 70 - + col0 / col0 - - - col0 + col1 / col2 - - + 95 * col1 AS col2 FROM tab2 cor0
----
4730
6220
7181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 5 col0 FROM tab2 cor0
----
5
5
5

query I rowsort
SELECT + - 76 * col0 FROM tab0 AS cor0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT 96 * - ( - ( - 94 ) ) * COUNT( * ) FROM tab0 AS cor0
----
-27072

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT 96 * - ( - ( - 94 ) ) * COUNT ( * ) FROM tab0 AS cor0
----
-27072

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT - SUM( ALL - 70 ) AS col1 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-2858
SELECT - SUM ( ALL - 70 ) AS col1 FROM tab1 AS cor0
----
210

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 IN ( - - col0 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL - MIN( - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL - MIN ( - col1 ) FROM tab0
----
81

query II rowsort
SELECT ALL - col2, ( + col2 ) FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT - ( - COUNT( * ) ) * - - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - ( - COUNT ( * ) ) * - - COUNT ( * ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT + ( + 67 ) * col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT + ( + 67 ) * col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + col0 + 63 <> - + col2
----

query II rowsort
SELECT + - 51 * + 6 + - + col1 + - - col2 * + - col0, - col2 AS col1 FROM tab1 AS cor0
----
-5216
-96
-5326
-59
-6541
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT + col0 DIV + col2 + - + col0 FROM tab0
----
-15
-79
-97

skipif mysql # not compatible
query I rowsort label-2866
SELECT + col0 / + col2 + - + col0 FROM tab0
----
-15
-79
-97

query I rowsort
SELECT + 39 * - - col0 + + + 97 FROM tab0
----
3490
3880
682

query I rowsort
SELECT + col0 / 63 + - - col1 + + 91 AS col0 FROM tab2 WHERE NULL <> + + col1 * + col0
----

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

query II rowsort
SELECT + col0 AS col0, col0 * + col0 FROM tab2 AS cor0
----
46
2116
64
4096
75
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT DISTINCT + + AVG ( ALL - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT + + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 89 + col2 FROM tab1 cor0
----
148
157
185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT - ( - - col2 ) * - - 96 - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1047
-4527
-9601

skipif mysql # not compatible
query I rowsort label-2874
SELECT - ( - - col2 ) * - - 96 - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1047
-4527
-9601

query I rowsort
SELECT ALL - 75 * + 17 AS col0 FROM tab0
----
-1275
-1275
-1275

query I rowsort
SELECT DISTINCT + 54 * + col0 + - - col0 AS col1 FROM tab1
----
2805
4675
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT + COUNT( * ) - + 33, - 79 AS col1 FROM tab0
----
-30
-79

skipif mysql # not compatible
query II rowsort label-2878
SELECT + COUNT ( * ) - + 33, - 79 AS col1 FROM tab0
----
-30
-79

query I rowsort
SELECT - 83 + - - col2 AS col1 FROM tab0
----
-36
-73
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT ALL COUNT( * ) col1, - 42 FROM tab2, tab0 AS cor0
----
9
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2880
SELECT ALL COUNT ( * ) col1, - 42 FROM tab2, tab0 AS cor0
----
9
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT DISTINCT - 92 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT - 92 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2882
SELECT - 41 + - CAST( - + col2 AS SIGNED ) AS col2, col0 FROM tab1 AS cor0
----
18
85
27
91
55
51

skipif mysql # not compatible
query II rowsort label-2882
SELECT - 41 + - CAST ( - + col2 AS INTEGER ) AS col2, col0 FROM tab1 AS cor0
----
18
85
27
91
55
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 3 + + ( 6 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 52 / col2 + 94 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + ( col1 ) + + col1 IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - - col2 + - col1 IS NOT NULL )
----
-15
-87
-97

query I rowsort
SELECT ALL + col1 * 21 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL - ( - COUNT( * ) ) * - + 59 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - ( - COUNT ( * ) ) * - + 59 FROM tab1 AS cor0
----
-177

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= col1 * ( + ( - 67 ) ) + + 61 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT MAX( DISTINCT - 20 ) AS col2 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2890
SELECT MAX ( DISTINCT - 20 ) AS col2 FROM tab0 AS cor0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT 64 DIV - + col1 FROM tab1 AS cor0
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-2891
SELECT 64 / - + col1 FROM tab1 AS cor0
----
-1
-12
-4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - 57 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2893
SELECT ALL * FROM tab2 WHERE + - CAST( NULL AS DECIMAL ) > - col1 - col1
----

skipif mysql # not compatible
query III rowsort label-2893
SELECT ALL * FROM tab2 WHERE + - CAST ( NULL AS REAL ) > - col1 - col1
----

query I rowsort
SELECT + - 84 AS col2 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
-84
-84
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2895
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) * + 90 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) * + 90 FROM tab1
----
NULL

query I rowsort
SELECT 42 * - col0 * - + col0 AS col0 FROM tab0
----
317898
395178
9450

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL + 29 + + - COUNT( * ) FROM tab0 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + 29 + + - COUNT ( * ) FROM tab0 cor0
----
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col1 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT ALL + + 64 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - col1 > NULL
----

query I rowsort
SELECT DISTINCT - - 95 * + 56 AS col0 FROM tab2 AS cor0
----
5320

query I rowsort
SELECT DISTINCT + col2 + - ( + - 13 ) FROM tab1 AS cor0
----
109
72
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT IN ( - - ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * col2 + - - col2 * - 50 FROM tab2 AS cor0
----
1080
23
986

query I rowsort
SELECT DISTINCT + 92 * - 94 AS col1 FROM tab0 AS cor0
----
-8648

query I rowsort
SELECT - col2 * - col2 + - - 99 FROM tab1 cor0
----
3580
4723
9315

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 IN ( 41, - col1, 84 * - col0 - 88, - + 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL MIN( ALL - - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL MIN ( ALL - - col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT COUNT( * ) AS col2, + 46 - 31 AS col1 FROM tab0
----
3
15

skipif mysql # not compatible
query II rowsort label-2910
SELECT COUNT ( * ) AS col2, + 46 - 31 AS col1 FROM tab0
----
3
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT - ( + + CAST( - 76 AS SIGNED ) ) FROM tab1 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-2911
SELECT - ( + + CAST ( - 76 AS INTEGER ) ) FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT - 71 + - col0 + + ( + col2 ) FROM tab2 AS cor0
----
-88
-94
-95

query I rowsort
SELECT 1 * + ( + col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT col0 * - col2 * - 2 FROM tab0 AS cor0
----
1410
1740
19206

query I rowsort
SELECT ALL + 71 * - 89 AS col1 FROM tab1 AS cor0
----
-6319
-6319
-6319

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT + - MIN( ALL col1 ) * - COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + - MIN ( ALL col1 ) * - COUNT ( * ) FROM tab0 cor0
----
3

query I rowsort
SELECT ( 38 ) AS col1 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT NULL >= 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE - col1 * - - col1 < ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE - col1 * - - col1 < ( col2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2920
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + - ( col1 ) + + 36 + CAST( NULL AS SIGNED ), 14 * + - 66 + ( - + 89 ), col1 )
----

skipif mysql # not compatible
query III rowsort label-2920
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + - ( col1 ) + + 36 + CAST ( NULL AS INTEGER ), 14 * + - 66 + ( - + 89 ), col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2921
SELECT COUNT( * ) AS col1, SUM( col2 ) FROM tab0
----
3
156

skipif mysql # not compatible
query II rowsort label-2921
SELECT COUNT ( * ) AS col1, SUM ( col2 ) FROM tab0
----
3
156

query I rowsort
SELECT DISTINCT - 25 * - col2 FROM tab0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT MAX( DISTINCT + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2923
SELECT MAX ( DISTINCT + col1 ) AS col1 FROM tab0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2924
SELECT COUNT( * ) AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2924
SELECT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
3
NULL

query I rowsort
SELECT - col2 * + col2 + col0 * - - col2 - + + col1 FROM tab0 AS cor0
----
-1585
-199
749

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT col0 * + + 58 - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 24 * - + 0 + + 64 AS col2 FROM tab1 AS cor0
----
64

query I rowsort
SELECT + 86 * - 15 FROM tab1 AS cor0
----
-1290
-1290
-1290

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE col0 BETWEEN + col2 AND + - col1
----

query I rowsort
SELECT ALL + col2 + - col0 - col0 FROM tab2 AS cor0
----
-69
-88
-92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT DISTINCT COUNT( DISTINCT col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT COUNT ( DISTINCT col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL col1 * + - col2 AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT col0 - + 15 FROM tab0
----
0
72
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2936
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) + - + MIN( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT ( - - 88 ) NOT IN ( 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - + MIN ( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT ( - - 88 ) NOT IN ( 87 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 * + col2 - - + ( 29 ) col0 FROM tab1
----
-2331
-2691
-3811

query I rowsort
SELECT col2 - 31 AS col2 FROM tab2
----
-8
27
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + - col0 * - - 40 IS NOT NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NULL IS NULL OR NOT ( NULL ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT 69 - - + 71 * + COUNT( * ) col0 FROM tab0
----
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2941
SELECT 69 - - + 71 * + COUNT ( * ) col0 FROM tab0
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT DISTINCT + CAST( 79 AS SIGNED ) * - ( - col1 ) + - col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT + CAST ( 79 AS INTEGER ) * - ( - col1 ) + - col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2943
SELECT col1 + + - ( + + CAST( NULL AS SIGNED ) ), - col1 AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-2943
SELECT col1 + + - ( + + CAST ( NULL AS INTEGER ) ), - col1 AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT ALL - 91 + col2 * - - col0 FROM tab2
----
2469
4259
967

query II rowsort
SELECT DISTINCT 80 AS col0, + col1 AS col2 FROM tab0
----
80
1
80
21
80
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + col0 col2 FROM tab2
----
-1
-12
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT - - ( SUM( + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - - ( SUM ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ( + COUNT( ALL + col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2948
SELECT ( + COUNT ( ALL + col1 ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL - ( + + 40 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT DISTINCT + col2 / - - 41 + col1 * - - CAST( NULL AS SIGNED ) - col1 * - col2 FROM tab2 WHERE 46 * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + col2 / - - 41 + col1 * - - CAST ( NULL AS INTEGER ) - col1 * - col2 FROM tab2 WHERE 46 * - col0 IS NULL
----

query II rowsort
SELECT col0, - col0 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-2952
SELECT DISTINCT col0 AS col1, col2 DIV - - col1 AS col0 FROM tab0
----
15
0
87
0
97
99

skipif mysql # not compatible
query II rowsort label-2952
SELECT DISTINCT col0 AS col1, col2 / - - col1 AS col0 FROM tab0
----
15
0
87
0
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT SUM( + + col0 ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT SUM ( + + col0 ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 7 col2, + 0 * + 26 FROM tab1 cor0
----
7
0

query II rowsort
SELECT - 70 AS col2, - col1 FROM tab2 AS cor0
----
-70
-51
-70
-67
-70
-77

query II rowsort
SELECT col2, + 27 * col2 + - col2 AS col0 FROM tab2 AS cor0
----
23
598
40
1040
58
1508

query II rowsort
SELECT - - col0 AS col2, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL col0 + - + 63 + - col0 + + 94 FROM tab2 AS cor0 WHERE NOT 16 BETWEEN NULL AND ( col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - 41 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2960
SELECT - 33, + col2 * 16 DIV 35 AS col2 FROM tab2 AS cor0
----
-33
10
-33
18
-33
26

skipif mysql # not compatible
query II rowsort label-2960
SELECT - 33, + col2 * 16 / 35 AS col2 FROM tab2 AS cor0
----
-33
10
-33
18
-33
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT - ( - CAST( - - 45 AS SIGNED ) ) FROM tab0 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-2961
SELECT - ( - CAST ( - - 45 AS INTEGER ) ) FROM tab0 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2962
SELECT ALL AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT - MIN( DISTINCT + + col0 ) col2 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2963
SELECT - MIN ( DISTINCT + + col0 ) col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT ALL + 36 DIV - MAX( + col2 ) + + - 87 FROM tab1 WHERE - + 0 * - col2 DIV - + col2 + + ( col2 ) IS NOT NULL
----
-87

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + 36 / - MAX ( + col2 ) + + - 87 FROM tab1 WHERE - + 0 * - col2 / - + col2 + + ( col2 ) IS NOT NULL
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT + col2 DIV - col2 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2965
SELECT + col2 / - col2 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2966
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT + CAST( + col1 AS SIGNED ) BETWEEN NULL AND 23 * + col0 - - + 96
----
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT + CAST ( + col1 AS INTEGER ) BETWEEN NULL AND 23 * + col0 - - + 96
----
0

query II rowsort
SELECT + col0 + 45 AS col1, - col1 * 2 FROM tab2
----
109
-154
120
-134
91
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT - MIN( + + col2 ) + + 48 + + COUNT( * ) AS col1 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-2968
SELECT - MIN ( + + col2 ) + + 48 + + COUNT ( * ) AS col1 FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT DISTINCT + 90 + - COUNT( * ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT + 90 + - COUNT ( * ) AS col1 FROM tab0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2970
SELECT + COUNT( * ) * - COUNT( * ) + + 35 DIV - 59 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2970
SELECT + COUNT ( * ) * - COUNT ( * ) + + 35 / - 59 FROM tab2
----
-9

query I rowsort
SELECT ALL + + 4 * + ( 64 ) + - col2 AS col0 FROM tab2 AS cor0
----
198
216
233

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL MIN( col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL MIN ( col2 ) AS col2 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT DISTINCT col1 + + - col1 * - ( col2 ) DIV + col2 + - - 95 * + col1 AS col1 FROM tab0
----
2037
7857
97

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT col1 + + - col1 * - ( col2 ) / + col2 + - - 95 * + col1 AS col1 FROM tab0
----
2037
7857
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 41 * 85 FROM tab0
----
3485
3485
3485

query I rowsort
SELECT ALL + + col0 - + - ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT - col1 + - 26 AS col1 FROM tab2 AS cor0
----
-103
-77
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT DISTINCT + ( 10 ) * - - COUNT( * ) - + COUNT( * ) col2 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2979
SELECT DISTINCT + ( 10 ) * - - COUNT ( * ) - + COUNT ( * ) col2 FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL - - 18 * + 47 - + col1 + + - col0 FROM tab0 cor0
----
738
748
750

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > ( + col2 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col1 - + + 25 AS col2 FROM tab1
----
-11
-20
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT DISTINCT - col0 DIV 3 FROM tab2
----
-15
-21
-25

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT - col0 / 3 FROM tab2
----
-15
-21
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + 93 * 82 * COUNT( * ) col0 FROM tab2
----
22878

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2986
SELECT + 93 * 82 * COUNT ( * ) col0 FROM tab2
----
22878

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2987
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 84 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT CAST ( NULL AS REAL ) + - 84 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) - COUNT( * ) - + COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT ALL - + CAST( col0 AS SIGNED ) * - + 43 FROM tab1 cor0
----
2193
3655
3913

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL - + CAST ( col0 AS INTEGER ) * - + 43 FROM tab1 cor0
----
2193
3655
3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT - CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + col1 AND + + 40 * - col1
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2990
SELECT - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + col1 AND + + 40 * - col1
----
-51
-67
-77

query II rowsort
SELECT - 62 AS col0, + col0 AS col0 FROM tab0
----
-62
15
-62
87
-62
97

query I rowsort
SELECT col1 * + col0 + - + col0 + + 25 AS col1 FROM tab2 AS cor0
----
2325
4889
4975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT 90 * - CAST( - MIN( col2 ) AS SIGNED ) * + ( + 85 ) FROM tab2 AS cor0
----
175950

skipif mysql # not compatible
query I rowsort label-2993
SELECT 90 * - CAST ( - MIN ( col2 ) AS INTEGER ) * + ( + 85 ) FROM tab2 AS cor0
----
175950

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL - 84 + + - SUM( ALL - + col1 ) FROM tab2 AS cor0 WHERE NOT col1 <> + 77
----
-7

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL - 84 + + - SUM ( ALL - + col1 ) FROM tab2 AS cor0 WHERE NOT col1 <> + 77
----
-7

query I rowsort
SELECT ALL 25 * + col1 AS col2 FROM tab2 AS cor0
----
1275
1675
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT DISTINCT + + MAX( ALL - 78 ) AS col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + + MAX ( ALL - 78 ) AS col2 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + ( col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2998
SELECT * FROM tab1 AS cor0 WHERE NOT + ( CAST( NULL AS SIGNED ) ) IN ( + col1, col2 + - 26, col0 )
----

skipif mysql # not compatible
query III rowsort label-2998
SELECT * FROM tab1 AS cor0 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) IN ( + col1, col2 + - 26, col0 )
----

query II rowsort
SELECT DISTINCT + col0, col1 * col1 FROM tab2
----
46
2601
64
5929
75
4489

query I rowsort
SELECT DISTINCT + col0 * - ( - ( + + 71 ) ) FROM tab2
----
3266
4544
5325

query II rowsort
SELECT ALL - col2, + col2 * + col0 + col1 AS col2 FROM tab1
----
-59
5020
-68
6235
-96
4910

query I rowsort
SELECT ALL - 91 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT + MAX( + 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3003
SELECT + MAX ( + 6 ) FROM tab1
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 NOT BETWEEN - + ( - col1 ) AND - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + - 89 * + + col1 FROM tab1 AS cor0
----
-1260
-4230
-450

query I rowsort
SELECT DISTINCT col1 + col2 - + - 24 + - - ( 8 ) AS col2 FROM tab0 AS cor0
----
132
160
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3007
SELECT * FROM tab0 AS cor0 WHERE - CAST( + col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3007
SELECT * FROM tab0 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
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-3008
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 37 * - - 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-3034

query I rowsort
SELECT ALL + 24 * col0 * + 25 FROM tab2
----
27600
38400
45000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3011
SELECT - CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3011
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT + - col0 + col1 - + col1 / - ( + + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 34 col2 FROM tab1 AS cor0
----
-39
-48
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT - + 43 DIV - 5 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-3014
SELECT - + 43 / - 5 FROM tab1 AS cor0
----
8
8
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 10 > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT - COUNT( * ) + + 49 col2 FROM tab1 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3016
SELECT DISTINCT - COUNT ( * ) + + 49 col2 FROM tab1 cor0
----
46

query II rowsort
SELECT ALL + col0 + + col0, col1 AS col2 FROM tab0 AS cor0
----
174
21
194
1
30
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT - ( + - CAST( NULL AS SIGNED ) ) - + + col0 / - - col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT - ( + - CAST ( NULL AS INTEGER ) ) - + + col0 / - - col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col0 ) - 17 FROM tab0 AS cor0
----
-2
70
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT MIN( col2 ) FROM tab2 AS cor0 WHERE col0 + + col2 + + 48 - - ( col2 ) IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-3020
SELECT MIN ( col2 ) FROM tab2 AS cor0 WHERE col0 + + col2 + + 48 - - ( col2 ) IS NOT NULL
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 - + - ( - col1 ) col0 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT DISTINCT col0 DIV + - col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT col0 / + - col2 AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT - col1 * 33 AS col2 FROM tab2
----
-1683
-2211
-2541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * + col2 col2 FROM tab1
----
4012
4624
6528

query II rowsort
SELECT ALL + col0, 81 FROM tab0
----
15
81
87
81
97
81

query II rowsort
SELECT + 46 AS col0, col2 FROM tab2
----
46
23
46
40
46
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT + 84 * - COUNT( * ) * + 50 AS col0 FROM tab1
----
-12600

skipif mysql # not compatible
query I rowsort label-3027
SELECT + 84 * - COUNT ( * ) * + 50 AS col0 FROM tab1
----
-12600

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT + MAX( ALL 9 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + MAX ( ALL 9 ) FROM tab2
----
9

query I rowsort
SELECT ALL - 47 * + - 67 FROM tab0
----
3149
3149
3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT DISTINCT + - col2 AS col1 FROM tab0 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT + - col2 AS col1 FROM tab0 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 13 * 81 FROM tab0
----
-1053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT DISTINCT - COUNT( + - 87 ) * CAST( + + COUNT( * ) AS SIGNED ) * 14 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - COUNT ( + - 87 ) * CAST ( + + COUNT ( * ) AS INTEGER ) * 14 FROM tab1 AS cor0
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3033
SELECT ALL - - 97 DIV + CAST( 67 AS SIGNED ) AS col1, CAST( + MAX( DISTINCT + 14 ) AS SIGNED ) * - 72 FROM tab0 AS cor0
----
1
-1008

skipif mysql # not compatible
query II rowsort label-3033
SELECT ALL - - 97 / + CAST ( 67 AS INTEGER ) AS col1, CAST ( + MAX ( DISTINCT + 14 ) AS INTEGER ) * - 72 FROM tab0 AS cor0
----
1
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT col2 DIV col2 + - col2 + - + ( + + col0 ) * + - col2 col1 FROM tab1 AS cor0
----
4801
4957
6121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3034
SELECT col2 / col2 + - col2 + - + ( + + col0 ) * + - col2 col1 FROM tab1 AS cor0
----
4801
4957
6121

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT DISTINCT + col0 DIV + - col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT + col0 / + - col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3036
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - 30 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT MIN( DISTINCT col2 ) + - - 96 * + - 18 FROM tab2
----
-1705

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT MIN ( DISTINCT col2 ) + - - 96 * + - 18 FROM tab2
----
-1705

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT + 63 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-3041
SELECT ALL - MAX( DISTINCT col2 ), + ( + COUNT( * ) ) - + + COUNT( * ) + + 90 + + 83 AS col0 FROM tab0 AS cor0
----
-99
173

skipif mysql # not compatible
query II rowsort label-3041
SELECT ALL - MAX ( DISTINCT col2 ), + ( + COUNT ( * ) ) - + + COUNT ( * ) + + 90 + + 83 AS col0 FROM tab0 AS cor0
----
-99
173

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - + col2
----

query I rowsort
SELECT - - col2 * 58 * - - 28 AS col2 FROM tab2 AS cor0
----
37352
64960
94192

onlyif mysql # aggregate syntax: 
query II rowsort label-3044
SELECT - 78 * + COUNT( * ) col1, 46 AS col0 FROM tab1 cor0
----
-234
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3044
SELECT - 78 * + COUNT ( * ) col1, 46 AS col0 FROM tab1 cor0
----
-234
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3045
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT 52 + + + col0 AS col0 FROM tab2 AS cor0
----
116
127
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3047
SELECT + + 17 + + 23 AS col1, COUNT( * ) AS col2 FROM tab2 cor0
----
40
3

skipif mysql # not compatible
query II rowsort label-3047
SELECT + + 17 + + 23 AS col1, COUNT ( * ) AS col2 FROM tab2 cor0
----
40
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3048
SELECT DISTINCT COUNT( * ) col1, CAST( NULL AS SIGNED ) FROM tab1
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3048
SELECT DISTINCT COUNT ( * ) col1, CAST ( NULL AS INTEGER ) FROM tab1
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= 61
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3050
SELECT DISTINCT 20, MAX( - col0 ) AS col2 FROM tab2
----
20
-46

skipif mysql # not compatible
query II rowsort label-3050
SELECT DISTINCT 20, MAX ( - col0 ) AS col2 FROM tab2
----
20
-46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 + - col2 * - col2 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + COUNT( - 67 ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3052
SELECT + COUNT ( - 67 ) FROM tab1, tab1 AS cor0
----
9

query II rowsort
SELECT ALL 45, 89 AS col2 FROM tab0 AS cor0
----
45
89
45
89
45
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT + 87 * + - MIN( - ( + col0 ) ) + 68 FROM tab0 AS cor0
----
8507

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT + 87 * + - MIN ( - ( + col0 ) ) + 68 FROM tab0 AS cor0
----
8507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - - col2 / 1 col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL + - COUNT( * ) * + 70 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----
0

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL + - COUNT ( * ) * + 70 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----
0

query I rowsort
SELECT - col1 + col0 + col0 * + col2 FROM tab1
----
4933
5095
6232

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT + COUNT( * ) + MIN( - + col0 ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + COUNT ( * ) + MIN ( - + col0 ) FROM tab0 AS cor0
----
-94

query I rowsort
SELECT - + 36 + + col1 * 86 AS col0 FROM tab1 AS cor0
----
1168
394
4006

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT MAX( 18 ) + + 51 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3060
SELECT MAX ( 18 ) + + 51 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-135

query II rowsort
SELECT ALL col2 + + - col0, + col0 AS col1 FROM tab2 AS cor0
----
-17
75
-23
46
-24
64

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 + + - col2 * + + col2 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 65 * + - col0 FROM tab0 AS cor0
----
-5655
-6305
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL COUNT( * ) + + - 27 * MIN( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
-618

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL COUNT ( * ) + + - 27 * MIN ( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
-618

query II rowsort
SELECT DISTINCT - col1, - 52 AS col0 FROM tab0 AS cor0
----
-1
-52
-21
-52
-81
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL - SUM( ALL col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL - SUM ( ALL col2 ) FROM tab1
----
-223

query I rowsort
SELECT ( + - ( + 21 ) ) * + 72 * - col2 FROM tab2
----
34776
60480
87696

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT MIN( ALL + ( - 78 ) ) col0 FROM tab1
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3068
SELECT MIN ( ALL + ( - 78 ) ) col0 FROM tab1
----
-78

query I rowsort
SELECT 79 * - 20 AS col0 FROM tab2
----
-1580
-1580
-1580

query I rowsort
SELECT ALL - + col1 * 37 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1739
-185
-518

query I rowsort
SELECT + col0 * 0 * + + 36 * + - col1 * - + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 87
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT ALL - 42 * 15 - - SUM( ALL + - CAST( ( - col2 ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-509

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL - 42 * 15 - - SUM ( ALL + - CAST ( ( - col2 ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-509

query I rowsort
SELECT ALL - + 87 AS col1 FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT ALL + 51 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT DISTINCT - - col1 * 18 DIV - col2 + - col0 AS col1 FROM tab2 cor0
----
-85
-95
-98

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT - - col1 * 18 / - col2 + - col0 AS col1 FROM tab2 cor0
----
-85
-95
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT - + COUNT( * ) + 64 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT - + COUNT ( * ) + 64 FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT - - 5 * - ( + SUM( ALL - + 71 ) ) FROM tab1 AS cor0 WHERE - 44 + 41 / + col0 * + - col2 * + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT - - 5 * - ( + SUM ( ALL - + 71 ) ) FROM tab1 AS cor0 WHERE - 44 + 41 / + col0 * + - col2 * + + col0 IS NULL
----
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3079
SELECT DISTINCT + 69, - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 cor0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-3079
SELECT DISTINCT + 69, - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 cor0
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - MIN( DISTINCT - 8 ) AS col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3080
SELECT - MIN ( DISTINCT - 8 ) AS col1 FROM tab1 AS cor0
----
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN col1 AND 91 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT 29 DIV - ( + col2 ) AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT 29 / - ( + col2 ) AS col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3083
SELECT COUNT( * ) DIV ( - - 66 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT COUNT ( * ) / ( - - 66 ) FROM tab0
----
0

query II rowsort
SELECT - col2 * col2, col2 AS col0 FROM tab1
----
-3481
59
-4624
68
-9216
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ( SUM( col0 ) ) + + 9 FROM tab0
----
208

skipif mysql # not compatible
query I rowsort label-3085
SELECT ( SUM ( col0 ) ) + + 9 FROM tab0
----
208

query I rowsort
SELECT + 99 + + 56 AS col2 FROM tab2
----
155
155
155

query I rowsort
SELECT 77 + + - col1 + col1 FROM tab0
----
77
77
77

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 12 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-12
-12
-12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 75 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT + + SUM( DISTINCT - - col0 ) + + COUNT( * ) * + 16 FROM tab0 AS cor0
----
247

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + + SUM ( DISTINCT - - col0 ) + + COUNT ( * ) * + 16 FROM tab0 AS cor0
----
247

query I rowsort
SELECT ALL 23 - - 66 + col2 + ( col0 ) * + 62 * + + col0 + - - 8 FROM tab0
----
14094
469385
583554

query I rowsort
SELECT + col0 - - - col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL MIN( ALL - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL MIN ( ALL - col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT + + COUNT( col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT + + COUNT ( col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3096
SELECT - MAX( ALL - 20 ) AS col2, + 53 AS col2 FROM tab0
----
20
53

skipif mysql # not compatible
query II rowsort label-3096
SELECT - MAX ( ALL - 20 ) AS col2, + 53 AS col2 FROM tab0
----
20
53

query I rowsort
SELECT col0 * + + 29 FROM tab0
----
2523
2813
435

query I rowsort
SELECT ( - - 53 ) FROM tab0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - MIN( + 41 ) AS col0 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-3099
SELECT - MIN ( + 41 ) AS col0 FROM tab1
----
-41

query I rowsort
SELECT ALL - ( + 0 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL BETWEEN + + col0 AND + - 63
----

query I rowsort
SELECT 76 * + + 33 AS col1 FROM tab1
----
2508
2508
2508

query I rowsort
SELECT DISTINCT + ( + - col0 ) * col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + - MAX( - ( - col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3105
SELECT + - MAX ( - ( - col1 ) ) FROM tab0 AS cor0
----
-81

query II rowsort
SELECT ALL + 51 AS col2, + 2 * - 81 AS col0 FROM tab0 AS cor0
----
51
-162
51
-162
51
-162

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col0 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab2 WHERE NOT + + 80 * - + 63 * + col2 + + ( + + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT + col0 DIV 89 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3109
SELECT + col0 / 89 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL 30 * + + col0 * + col0 FROM tab0
----
227070
282270
6750

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT 86 * - - col0 * 89 + - + 36 DIV + ( 85 ) FROM tab1 AS cor0
----
390354
650590
696514

skipif mysql # not compatible
query I rowsort label-3111
SELECT 86 * - - col0 * 89 + - + 36 / + ( 85 ) FROM tab1 AS cor0
----
390354
650590
696514

onlyif mysql # aggregate syntax: 
query II rowsort label-3112
SELECT + ( + 71 ) * - SUM( ALL col2 ) + - 63 AS col2, + COUNT( * ) FROM tab1 AS cor0 WHERE col1 - - col2 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3112
SELECT + ( + 71 ) * - SUM ( ALL col2 ) + - 63 AS col2, + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 - - col2 IS NULL
----
NULL
0

query I rowsort
SELECT ALL ( col2 ) + col1 * + 18 AS col2 FROM tab2 AS cor0
----
1264
1426
941

onlyif mysql # DIV for integer division: 
query II rowsort label-3114
SELECT col0 + + col2 AS col2, - 85 DIV + col1 FROM tab1 AS cor0
----
144
-17
147
-6
159
-1

skipif mysql # not compatible
query II rowsort label-3114
SELECT col0 + + col2 AS col2, - 85 / + col1 FROM tab1 AS cor0
----
144
-17
147
-6
159
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL + - 70 * - COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL + - 70 * - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
213

query I rowsort
SELECT - 15 + - col0 * - col1 FROM tab0 AS cor0
----
1200
1812
82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col2 * 32 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - ( + 74 ) ) + col2 AS col2 FROM tab1
----
133
142
170

query I rowsort
SELECT ALL + - 98 FROM tab2 WHERE NOT NULL BETWEEN + col2 * - col2 * + - col0 AND - + col0
----

query II rowsort
SELECT DISTINCT + 72, - col2 AS col0 FROM tab1
----
72
-59
72
-68
72
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 = - col2 / - 42 - 91 * + col0
----

query I rowsort
SELECT - - ( 75 ) AS col0 FROM tab0 cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT DISTINCT + MAX( + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + MAX ( + col2 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT DISTINCT + + 85 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT - col1 * col0 / - 1 * - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3125
SELECT - col1 * col0 / - 1 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 26 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT col2 DIV + col1 + 83 FROM tab1 AS cor0
----
84
89
94

skipif mysql # not compatible
query I rowsort label-3127
SELECT col2 / + col1 + 83 FROM tab1 AS cor0
----
84
89
94

query I rowsort
SELECT + - 98 AS col2 FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT - 10 * - col0 AS col2 FROM tab0 cor0
----
150
870
970

query I rowsort
SELECT - 58 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - - 69
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - col1 OR NOT - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3132
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, - col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-3132
SELECT ALL CAST ( NULL AS REAL ) AS col2, - col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3133
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN col2 AND + + col0
----

skipif mysql # not compatible
query III rowsort label-3133
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN col2 AND + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3134
SELECT DISTINCT - col2 * + CAST( NULL AS DECIMAL ) * - 25, + col2 + - - col2 AS col1 FROM tab0
----
NULL
198
NULL
20
NULL
94

skipif mysql # not compatible
query II rowsort label-3134
SELECT DISTINCT - col2 * + CAST ( NULL AS REAL ) * - 25, + col2 + - - col2 AS col1 FROM tab0
----
NULL
198
NULL
20
NULL
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( col1 ) + + col2 = - 31 * + col2 * + - 66
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3136
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( CAST( NULL AS DECIMAL ), + col2, col1 )
----

skipif mysql # not compatible
query III rowsort label-3136
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( CAST ( NULL AS REAL ), + col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < ( col1 ) / + - 49 + 56
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT 35 * - ( col0 ) + + + col2 FROM tab0
----
-3035
-3296
-478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + 68 * + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + 68 * + col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 < NULL
----

query I rowsort
SELECT ALL - + 40 AS col1 FROM tab0 AS cor0 WHERE NULL < col2
----

query I rowsort
SELECT ALL - 0 + + col1 AS col2 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL + - col0 * - col0 - - col2 AS col1 FROM tab2 AS cor0
----
2139
4136
5683

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 53 - ( + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 - 91 - 49 - 81 AS col2 FROM tab2 cor0
----
-144
-154
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT + COUNT( * ) * MIN( - 68 ) col2 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3148
SELECT DISTINCT + COUNT ( * ) * MIN ( - 68 ) col2 FROM tab1 AS cor0
----
-204

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3149
SELECT ALL - ( - col0 ) DIV - CAST( col1 AS SIGNED ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL - ( - col0 ) / - CAST ( col1 AS INTEGER ) FROM tab0
----
-4
-97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT ALL 45 DIV - 20 AS col0 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL 45 / - 20 AS col0 FROM tab0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col0, 19 col0 FROM tab2
----
2346
19
4928
19
5025
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT + 12 + - - COUNT( ALL CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) + - ( + COUNT( * ) ) col2 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3152
SELECT + 12 + - - COUNT ( ALL CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - ( + COUNT ( * ) ) col2 FROM tab1
----
9

query I rowsort
SELECT 0 + + - col0 - - - col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT - col2 * col1 + - col1 FROM tab0
----
-100
-231
-3888

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 63 IS NOT NULL )
----

query II rowsort
SELECT + 66, 51 / - - 47 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 69 + 51 FROM tab2 AS cor0
----
120

query I rowsort
SELECT DISTINCT + col0 + + - col1 + - + col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + + col0 - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT - 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query III rowsort
SELECT ALL * FROM tab0 WHERE 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - - 0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 3 col1 FROM tab2 cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT + - COUNT( ALL - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + - COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3165
SELECT ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT + + MIN( DISTINCT 60 ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3166
SELECT + + MIN ( DISTINCT 60 ) FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL - + ( - 88 ) FROM tab0 AS cor0
----
88
88
88

query II rowsort
SELECT ALL + col0 AS col2, - 87 * 28 + + ( + - 36 ) AS col1 FROM tab0 AS cor0
----
15
-2472
87
-2472
97
-2472

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN + + col1 + col0 AND + ( - + col0 ) + + col1
----

query I rowsort
SELECT + 98 * + + ( 48 ) AS col0 FROM tab0
----
4704
4704
4704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * col1 AS col0, - col0 col1 FROM tab1 WHERE NOT - col0 + - col1 + ( + col2 ) + - col0 IS NULL
----
-1344
-51
-295
-85
-3196
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL - ( + 83 ) + + - COUNT( * ) - + COUNT( col2 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL - ( + 83 ) + + - COUNT ( * ) - + COUNT ( col2 ) FROM tab2
----
-89

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + ( + col0 ) < 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT - ( + CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3174
SELECT - ( + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + ( - col1 ) + + 29 * - col1 AS col2 FROM tab0 cor0
----
-2430
-30
-630

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 = + + 9 * - 94 * - + 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT DISTINCT + MAX( ALL + + 35 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT + MAX ( ALL + + 35 ) FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL - + COUNT( * ) + - 31 FROM tab0 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - + COUNT ( * ) + - 31 FROM tab0 cor0
----
-34

query I rowsort
SELECT + + col2 * + 4 * - 31 + + 91 * - - 56 + - 67 FROM tab2 AS cor0
----
-2163
2177
69

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT DISTINCT - COUNT( * ) + + 39 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - COUNT ( * ) + + 39 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT COUNT( DISTINCT - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3185
SELECT COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3187
SELECT - COUNT( * ), + 22 col2 FROM tab0 WHERE + + col2 IS NOT NULL
----
-3
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3187
SELECT - COUNT ( * ), + 22 col2 FROM tab0 WHERE + + col2 IS NOT NULL
----
-3
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL SUM( DISTINCT + - 55 ) AS col2 FROM tab2 WHERE NOT + + 90 + col2 BETWEEN NULL AND - col0
----
-55

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL SUM ( DISTINCT + - 55 ) AS col2 FROM tab2 WHERE NOT + + 90 + col2 BETWEEN NULL AND - col0
----
-55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IS NULL AND NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT + 34 * + col1 * col0 * + 84 - + col1 DIV - 79 FROM tab1 cor0
----
1213800
12215112
2039184

skipif mysql # not compatible
query I rowsort label-3190
SELECT + 34 * + col1 * col0 * + 84 - + col1 / - 79 FROM tab1 cor0
----
1213800
12215112
2039184

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 16 IS NOT NULL
----

query I rowsort
SELECT - ( + + ( - - col2 ) ) - ( + + ( + col0 ) ) + col2 * + 74 AS col1 FROM tab0 cor0
----
3416
643
7130

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT + COUNT( * ) * + ( + - 41 ) AS col1 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT + COUNT ( * ) * + ( + - 41 ) AS col1 FROM tab0 AS cor0
----
-123

query I rowsort
SELECT ALL - 68 * + col1 FROM tab1 AS cor0
----
-3196
-340
-952

query I rowsort
SELECT ( - - 73 ) FROM tab1 AS cor0
----
73
73
73

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NULL >= + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT + COUNT( * ) * + 56 * + COUNT( DISTINCT - col1 ) FROM tab2
----
504

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT + COUNT ( * ) * + 56 * + COUNT ( DISTINCT - col1 ) FROM tab2
----
504

query I rowsort
SELECT col1 * + + 11 * + 65 FROM tab2
----
36465
47905
55055

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT - SUM( DISTINCT col2 ) * - - COUNT( * ) FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-3200
SELECT - SUM ( DISTINCT col2 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3201
SELECT + + COUNT( - + col0 ) DIV - 88 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT + + COUNT ( - + col0 ) / - 88 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3202
SELECT ALL + col2 * + 63 + - + col1 + - col0 * + - ( + - CAST( NULL AS SIGNED ) ) / - ( - col2 ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + col2 * + 63 + - + col1 + - col0 * + - ( + - CAST ( NULL AS INTEGER ) ) / - ( - col2 ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 * + ( + col2 ) * - col1 * - - 11 AS col1, - col2 * - col1 * - col2 + + + col1 FROM tab2 cor0
----
1355200
-123123
2479268
-225321
296769
-26928

onlyif mysql # DIV for integer division: 
query I rowsort label-3204
SELECT + col1 DIV col0 - + col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3204
SELECT + col1 / col0 - + col1 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT DISTINCT - 68 DIV col1 FROM tab0 AS cor0
----
-3
-68
0

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT - 68 / col1 FROM tab0 AS cor0
----
-3
-68
0

query I rowsort
SELECT ALL + + col1 * + 49 * 71 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3207
SELECT - - col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3207
SELECT - - col2 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * - ( col2 ) * + - 33 * col1 FROM tab0 AS cor0
----
-10176111
-145530
-3267

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + MAX( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 41 - 46 FROM tab0, tab1 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL + col0 + + 75 AS col1 FROM tab1
----
126
160
166

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT - SUM( DISTINCT 75 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3213
SELECT - SUM ( DISTINCT 75 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - col2 * + 58 AS col2 FROM tab1
----
-3422
-3944
-5568

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NULL NOT IN ( 96 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 WHERE NOT + 40 = col0 + - 94
----
51
67
77

query I rowsort
SELECT DISTINCT col1 / col0 FROM tab0 WHERE NOT - 64 + - 43 / col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 19 FROM tab2
----
1216
1425
874

query I rowsort
SELECT DISTINCT - 55 * - 87 FROM tab1
----
4785

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + col1 + + col2 * + col2 = ( - col1 * 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + MIN( ALL 26 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-3221
SELECT + MIN ( ALL 26 ) FROM tab2
----
26

query I rowsort
SELECT 67 + col2 AS col2 FROM tab1
----
126
135
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3223
SELECT ALL MIN( - col0 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL MIN ( - col0 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT ( - col2 ) DIV 72 + - 87 FROM tab0
----
-87
-87
-88

skipif mysql # not compatible
query I rowsort label-3224
SELECT ( - col2 ) / 72 + - 87 FROM tab0
----
-87
-87
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 * col0 - - col0 / col0 ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT + ( SUM( DISTINCT ( 96 ) ) ) AS col1 FROM tab0 WHERE NOT + 84 * col0 + col2 = ( col2 * col2 )
----
96

skipif mysql # not compatible
query I rowsort label-3226
SELECT + ( SUM ( DISTINCT ( 96 ) ) ) AS col1 FROM tab0 WHERE NOT + 84 * col0 + col2 = ( col2 * col2 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT DISTINCT col2 * CAST( + col2 AS SIGNED ) FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT col2 * CAST ( + col2 AS INTEGER ) FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT 85 NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT + 62 IN ( col1 + - ( col1 ) * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT + 62 IN ( col1 + - ( col1 ) * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + col0 NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL col0 DIV + 83 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL col0 / + 83 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT 28 - + col1 AS col1 FROM tab2
----
-23
-39
-49

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL > ( ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ( COUNT( * ) ) - MAX( col0 + + col1 ) AS col2 FROM tab2
----
-139

skipif mysql # not compatible
query I rowsort label-3234
SELECT ( COUNT ( * ) ) - MAX ( col0 + + col1 ) AS col2 FROM tab2
----
-139

query I rowsort
SELECT col0 + col1 FROM tab1 WHERE NOT ( - col1 ) / + col1 IS NULL
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT CAST( NULL AS SIGNED ) / + col2 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT CAST ( NULL AS INTEGER ) / + col2 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE + col1 BETWEEN ( - 9 * + 4 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3237
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + col1 BETWEEN ( - 9 * + 4 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT + COUNT( * ) * 86 AS col2 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-3239
SELECT + COUNT ( * ) * 86 AS col2 FROM tab0
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT col2 col1 FROM tab0 WHERE NOT col1 BETWEEN + CAST( NULL AS SIGNED ) AND + col2 * col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3240
SELECT col2 col1 FROM tab0 WHERE NOT col1 BETWEEN + CAST ( NULL AS INTEGER ) AND + col2 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * ( + col1 ) NOT BETWEEN col0 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL - MIN( ALL + 83 ) AS col0 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL - MIN ( ALL + 83 ) AS col0 FROM tab1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT - MIN( DISTINCT 29 ) * - COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-3243
SELECT - MIN ( DISTINCT 29 ) * - COUNT ( * ) FROM tab2
----
87

query I rowsort
SELECT - 92 FROM tab1 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col2 FROM tab2 cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3246
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= col1 + + CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3246
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= col1 + + CAST ( col1 AS REAL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 46 + 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 5 * col2 AS col0 FROM tab1 cor0
----
295
340
480

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 / 54 AND col0
----

query I rowsort
SELECT 38 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 42 FROM tab2 AS cor0
----
-2142
-2814
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT - COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT - COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + col0 / 20 + col1 IS NOT NULL
----
51
85
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL 69 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND col2 + col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL - MIN( ALL - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - MIN ( ALL - col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - 51 * col1 AS col0 FROM tab0 AS cor0
----
-1071
-4131
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT - COUNT( * ) * 30 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3260
SELECT - COUNT ( * ) * 30 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT DISTINCT 29 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 + + col0
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT + - col2 DIV 58 AS col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3263
SELECT + - col2 / 58 AS col0 FROM tab2 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * 84 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3265
SELECT ALL + col1 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL + col1 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 81 * + 86 AS col0 FROM tab1 AS cor0
----
-6966

query I rowsort
SELECT ALL col0 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2601
7225
8281

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 21 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 87 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT MAX( DISTINCT + col2 ) + MAX( ALL col1 ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-3271
SELECT MAX ( DISTINCT + col2 ) + MAX ( ALL col1 ) FROM tab0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3272
SELECT * FROM tab2 WHERE col1 + + CAST( NULL AS SIGNED ) < ( + 57 + col2 )
----

skipif mysql # not compatible
query III rowsort label-3272
SELECT * FROM tab2 WHERE col1 + + CAST ( NULL AS INTEGER ) < ( + 57 + col2 )
----

query I rowsort
SELECT col1 * + col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL - + 75 + + + col1 AS col0 FROM tab1 cor0
----
-28
-61
-70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + col1 ) NOT BETWEEN ( NULL ) AND + 58
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 30 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3278
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - 45 * CAST( 66 / 26 AS SIGNED ) + col1 ) = ( - 33 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3278
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - 45 * CAST ( 66 / 26 AS INTEGER ) + col1 ) = ( - 33 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT + COUNT( ALL - + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3279
SELECT + COUNT ( ALL - + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT + - COUNT( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT + - COUNT ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT + 62 * + + COUNT( * ) - + - 28 AS col1 FROM tab2
----
214

skipif mysql # not compatible
query I rowsort label-3281
SELECT + 62 * + + COUNT ( * ) - + - 28 AS col1 FROM tab2
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL MAX( + + col0 ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3282
SELECT ALL MAX ( + + col0 ) col0 FROM tab0
----
97

query I rowsort
SELECT - 70 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3284
SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT BETWEEN ( + col1 + col0 ) AND ( + 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL + COUNT( * ) FROM tab2, tab2 AS cor0 WHERE NOT ( + ( - 17 ) * + 26 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + COUNT ( * ) FROM tab2, tab2 AS cor0 WHERE NOT ( + ( - 17 ) * + 26 ) = NULL
----
0

query I rowsort
SELECT 25 * - 9 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 813a94d3bca6b709f66c4a8a8b57105b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3288
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-3288
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT COUNT( * ) - - - MAX( col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-93

skipif mysql # not compatible
query I rowsort label-3289
SELECT COUNT ( * ) - - - MAX ( col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - 22 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3290
SELECT - 22 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NULL = + col0
----

query I rowsort
SELECT - col2 * - - col1 + - col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT DISTINCT ( col0 ) - col2 + + col2 * col2 * col2 AS col0 FROM tab0 AS cor0
----
103791
1077
970297

query I rowsort
SELECT 73 * col1 + - - 35 + col2 AS col0 FROM tab0 AS cor0
----
1578
207
5995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3295
SELECT COUNT( * ) DIV - 54 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT COUNT ( * ) / - 54 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT + + SUM( col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3296
SELECT + + SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT - - COUNT( DISTINCT + + 86 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3297
SELECT - - COUNT ( DISTINCT + + 86 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * - 24 + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - - 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT DISTINCT - 54 * - MIN( ALL col2 ) AS col2 FROM tab2
----
1242

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - 54 * - MIN ( ALL col2 ) AS col2 FROM tab2
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT MIN( + + ( - col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT MIN ( + + ( - col1 ) ) FROM tab2
----
-77

query I rowsort
SELECT ALL + col0 * + - col2 * + col2 * - col1 AS col2 FROM tab1
----
1479425
19776848
6580224

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL SUM( + col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL SUM ( + col0 ) AS col2 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL SUM( + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL SUM ( + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
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-3308
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab2 WHERE col2 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3310
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT col1 + - ( - col0 ) * + + col0 <> NULL
----

query I rowsort
SELECT ALL - 23 * + ( col2 ) * - + col0 * - col2 FROM tab2 AS cor0
----
-2355200
-559682
-5802900

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 38 / - 27 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT 85 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3314
SELECT 85 / col0 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT col0 * col2 + + 82 FROM tab2 AS cor0
----
1140
2642
4432

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL 9 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL 9 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
12

query I rowsort
SELECT + col1 * + 63 FROM tab2 cor0
----
3213
4221
4851

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= - 14 * 96 + col0
----

query I rowsort
SELECT DISTINCT + 84 * col1 * - col1 + - col2 AS col0 FROM tab0 WHERE NOT - col2 + - - col2 IS NULL
----
-183
-37054
-551171

query I rowsort
SELECT ALL - col0 * - + 23 AS col1 FROM tab0
----
2001
2231
345

query I rowsort
SELECT DISTINCT 20 * - col1 AS col2 FROM tab2
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT COUNT( ALL - col1 ) * - + 82 col1 FROM tab2
----
-246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3322
SELECT COUNT ( ALL - col1 ) * - + 82 col1 FROM tab2
----
-246

query III rowsort
SELECT * FROM tab2 WHERE ( - + col2 ) <= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT + + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3325
SELECT ALL COUNT( * ) DIV + 55 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL COUNT ( * ) / + 55 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col0 * 46 AS col2 FROM tab2
----
2116
2944
3450

query II rowsort
SELECT col1 AS col2, - col0 * col2 * - + ( 1 ) FROM tab2
----
51
1058
67
4350
77
2560

onlyif mysql # DIV for integer division: 
query I rowsort label-3328
SELECT ALL + col2 DIV - - 78 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + col2 / - - 78 FROM tab1
----
0
0
1

query I rowsort
SELECT 60 * - 8 AS col1 FROM tab0
----
-480
-480
-480

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 < - - 31 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT + 87 * + COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-3331
SELECT + 87 * + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
264

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3332
SELECT CAST( - col0 AS SIGNED ) * - col1 + - - 60 - col0 + + 79 DIV col2 * + col1 AS col1 FROM tab2
----
2513
5001
5077

skipif mysql # not compatible
query I rowsort label-3332
SELECT CAST ( - col0 AS INTEGER ) * - col1 + - - 60 - col0 + + 79 / col2 * + col1 AS col1 FROM tab2
----
2513
5001
5077

query I rowsort
SELECT DISTINCT - col0 + col0 + + 10 + col0 * - 20 FROM tab2
----
-1270
-1490
-910

query I rowsort
SELECT - 67 + + col2 * + 4 FROM tab0 AS cor0
----
-27
121
329

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT DISTINCT COUNT( * ) + COUNT( * ) + + 13 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + 13 FROM tab2 AS cor0
----
19

query I rowsort
SELECT ALL + col2 * - 34 + - col2 * - col0 + - - 50 + + 84 + 32 FROM tab1 cor0
----
1798
3175
4042

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT + + COUNT( * ) + - 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

skipif mysql # not compatible
query I rowsort label-3337
SELECT + + COUNT ( * ) + - 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

query II rowsort
SELECT + 6 * + 86, col1 AS col0 FROM tab2
----
516
51
516
67
516
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3339
SELECT - 72 * CAST( + - 7 AS SIGNED ) FROM tab0
----
504
504
504

skipif mysql # not compatible
query I rowsort label-3339
SELECT - 72 * CAST ( + - 7 AS INTEGER ) FROM tab0
----
504
504
504

query I rowsort
SELECT - + col1 * + 58 - - col1 FROM tab2 AS cor0
----
-2907
-3819
-4389

query I rowsort
SELECT DISTINCT - col0 * ( - col0 ) * 65 + + col1 AS col1 FROM tab0 AS cor0
----
14706
492006
611586

query I rowsort
SELECT DISTINCT - 45 + + col0 * col0 FROM tab0 AS cor0
----
180
7524
9364

query I rowsort
SELECT col2 - + + col0 * - col1 FROM tab2 AS cor0
----
2369
4968
5083

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IN ( 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT MAX( DISTINCT - 5 ) * + 47 AS col1 FROM tab1 cor0
----
-235

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT MAX ( DISTINCT - 5 ) * + 47 AS col1 FROM tab1 cor0
----
-235

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT ALL + COUNT( - col1 ) col0, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3346
SELECT ALL + COUNT ( - col1 ) col0, COUNT ( * ) FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 91 NOT BETWEEN ( + 15 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 90 col0 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT col0 + - col2 * - col1 FROM tab1 WHERE 53 * - col1 NOT IN ( + + 90 ) OR ( - 97 * - CAST( NULL AS SIGNED ) ) IN ( - col1 + 19 * - 32 )
----
1395
3287
380

skipif mysql # not compatible
query I rowsort label-3349
SELECT col0 + - col2 * - col1 FROM tab1 WHERE 53 * - col1 NOT IN ( + + 90 ) OR ( - 97 * - CAST ( NULL AS INTEGER ) ) IN ( - col1 + 19 * - 32 )
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query II rowsort label-3350
SELECT 87 col0, COUNT( * ) FROM tab0
----
87
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3350
SELECT 87 col0, COUNT ( * ) FROM tab0
----
87
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3351
SELECT DISTINCT - CAST( NULL AS DECIMAL ), col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3351
SELECT DISTINCT - CAST ( NULL AS REAL ), col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + col1 * + col0 / col0 FROM tab0 WHERE NOT NULL BETWEEN col1 AND + 13 + + col0 + + 28
----

query I rowsort
SELECT ALL - + 32 AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-32
-32
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3354
SELECT - CAST( NULL AS SIGNED ) * - CAST( - COUNT( * ) AS SIGNED ) * 40 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( - COUNT ( * ) AS INTEGER ) * 40 AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT ALL - col2 DIV 38 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL - col2 / 38 AS col2 FROM tab0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col0 ) col0 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT + MAX( 20 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-3358
SELECT + MAX ( 20 ) FROM tab2
----
20

query II rowsort
SELECT col0, 55 * + ( + col1 ) AS col0 FROM tab0
----
15
4455
87
1155
97
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL MAX( 78 ) AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL MAX ( 78 ) AS col2 FROM tab1
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + 4 <= + 72
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT - - COUNT( * ) * 92 col2 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3362
SELECT - - COUNT ( * ) * 92 col2 FROM tab0 AS cor0
----
276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT DISTINCT + 71 AS col1 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + col0 IS NULL
----
71

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT + 71 AS col1 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + col0 IS NULL
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT + MIN( + 91 ) col0 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3364
SELECT DISTINCT + MIN ( + 91 ) col0 FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL COUNT( ALL + 12 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL COUNT ( ALL + 12 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + - col1 AS col0, + col0 + col0 FROM tab1 AS cor0
----
-14
102
-47
182
-5
170

query I rowsort
SELECT - 40 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT + - COUNT( * ) * MAX( 90 ) + 27 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-783

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3368
SELECT + - COUNT ( * ) * MAX ( 90 ) + 27 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-783

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NOT NULL NOT IN ( - 52 * + ( + 2 ) )
----

query I rowsort
SELECT DISTINCT 78 * + col2 AS col1 FROM tab0
----
3666
7722
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT - CAST( 94 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif mysql # not compatible
query I rowsort label-3371
SELECT - CAST ( 94 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query II rowsort
SELECT ALL + 61 + - 59 AS col2, - col2 + - col1 - col0 AS col1 FROM tab2 AS cor0
----
2
-120
2
-181
2
-200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 71 ) col1 FROM tab1 cor0
----
71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = ( + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 75 + + col1 = + col0 + - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3376
SELECT * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) * - 57 + col0 ) = - col0 * col1 * - - col1
----

skipif mysql # not compatible
query III rowsort label-3376
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * - 57 + col0 ) = - col0 * col1 * - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 > - col0 + - 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 + + + col1 AS col2 FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col1 col2, + 57 + col1 + - col2 - col0 - + - col0 AS col0 FROM tab2 AS cor0
----
-2601
85
-4489
66
-5929
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT ALL + col0 + - 24 FROM tab1 cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) + - 25 )
----

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + col0 + - 24 FROM tab1 cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) + - 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT - ( - 91 ) + - COUNT( * ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3381
SELECT - ( - 91 ) + - COUNT ( * ) FROM tab1 AS cor0
----
88

query I rowsort
SELECT 8 + - col1 FROM tab2 AS cor0
----
-43
-59
-69

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 74 * - + col1 BETWEEN 54 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT col0 + col2 DIV + + col1 FROM tab0
----
15
196
87

skipif mysql # not compatible
query I rowsort label-3384
SELECT col0 + col2 / + + col1 FROM tab0
----
15
196
87

query I rowsort
SELECT DISTINCT 51 * + col2 * - 32 FROM tab1
----
-110976
-156672
-96288

query III rowsort
SELECT * FROM tab0 WHERE 27 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT BETWEEN - 7 AND ( - ( 15 ) )
----

query I rowsort
SELECT 40 + + col0 AS col1 FROM tab2
----
104
115
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT + col1 * + col1 FROM tab2 WHERE - 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT + + CAST( + col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3391
SELECT + + CAST ( + col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3392
SELECT * FROM tab1 AS cor0 WHERE CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3392
SELECT * FROM tab1 AS cor0 WHERE CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * ( - 39 ) / col2 + col0 + + 76 + col2 * 77 + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * ( - 39 ) / col2 + col0 + + 76 + col2 * 77 + - col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * - 25 * col2 * + col0 + + col2 * + col2 * + col0 col0 FROM tab0 AS cor0
----
-495615
-6251553
-643800

query I rowsort
SELECT ALL + col2 + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
4345
484
810

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 / + + 18 AND - + ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT 19 - - COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3397
SELECT 19 - - COUNT ( * ) FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT 8 * + COUNT( * ) + + 78 AS col1 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-3398
SELECT 8 * + COUNT ( * ) + + 78 AS col1 FROM tab2
----
102

query II rowsort
SELECT ALL 32, - col2 AS col1 FROM tab1 AS cor0
----
32
-59
32
-68
32
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT - COUNT( + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT - COUNT ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 38 * - ( + + ( + col0 ) ) + - 11 FROM tab0 AS cor0
----
-3317
-3697
-581

onlyif mysql # DIV for integer division: 
query I rowsort label-3402
SELECT - - col2 DIV + + col1 col2 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3402
SELECT - - col2 / + + col1 col2 FROM tab0 AS cor0
----
0
0
99

query II rowsort
SELECT + 74 AS col2, 38 * + + col1 FROM tab0 AS cor0
----
74
3078
74
38
74
798

query I rowsort
SELECT ALL col0 * ( - col1 ) + ( col0 ) AS col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3405
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) > col2
----

skipif mysql # not compatible
query III rowsort label-3405
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) > col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE - 16 NOT IN ( - col0 )
----
10
47
99

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT - col2 * col0 AS col2 FROM tab1 WHERE NOT + - ( - 68 ) IS NOT NULL
----

query I rowsort
SELECT + - col0 + + 4 FROM tab1 WHERE NOT + col0 IS NULL
----
-47
-81
-87

query I rowsort
SELECT + col2 * - - 69 FROM tab0
----
3243
6831
690

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) >= 52
----

query II rowsort
SELECT DISTINCT ( col1 ) AS col0, - col1 AS col0 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 95 + - + col0 FROM tab0
----
-2
8
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT + CAST( + - 28 AS SIGNED ) AS col1 FROM tab0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-3416
SELECT + CAST ( + - 28 AS INTEGER ) AS col1 FROM tab0
----
-28
-28
-28

query II rowsort
SELECT col0, 18 * - col1 FROM tab0 AS cor0
----
15
-1458
87
-378
97
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3418
SELECT ALL + CAST( col0 AS SIGNED ) + ( + CAST( - col1 AS SIGNED ) ) + col1 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL + CAST ( col0 AS INTEGER ) + ( + CAST ( - col1 AS INTEGER ) ) + col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 + - 63 + col0 + col0 FROM tab1 cor0
----
102
25
72

query I rowsort
SELECT 98 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col1 NOT IN ( 66, + 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 + col0, + col1 AS col0 FROM tab2
----
104
77
133
67
69
51

query I rowsort
SELECT - col2 * col1 + - col2 AS col2 FROM tab0
----
-198
-220
-3854

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3424
SELECT - ( + - col0 ) * + ( + - CAST( NULL AS DECIMAL ) ) * col1 + + + 25 + + col1, + col2 + - col0 AS col1 FROM tab1
----
NULL
-23
NULL
-26
NULL
45

skipif mysql # not compatible
query II rowsort label-3424
SELECT - ( + - col0 ) * + ( + - CAST ( NULL AS REAL ) ) * col1 + + + 25 + + col1, + col2 + - col0 AS col1 FROM tab1
----
NULL
-23
NULL
-26
NULL
45

query I rowsort
SELECT - - col0 * - col0 * - col1 + 98 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT + 27 * + 58 * + col0 AS col1 FROM tab0
----
136242
151902
23490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3427
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT COUNT( DISTINCT - 84 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT COUNT ( DISTINCT - 84 ) FROM tab1
----
1

query II rowsort
SELECT DISTINCT - ( ( - + 62 ) ) AS col0, - ( + + col0 ) AS col1 FROM tab0 AS cor0
----
62
-15
62
-87
62
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + + col2 NOT BETWEEN + + 8 - - 44 * col2 + + + col2 AND NULL
----

query I rowsort
SELECT ALL - + 6 * - - col1 AS col0 FROM tab1 cor0
----
-282
-30
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT DISTINCT - col2 DIV - ( + col0 ) + - 12 FROM tab1 AS cor0
----
-11
-12

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT - col2 / - ( + col0 ) + - 12 FROM tab1 AS cor0
----
-11
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT DISTINCT - col0 * 27 DIV - - col2 FROM tab2 AS cor0
----
-34
-43
-54

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT - col0 * 27 / - - col2 FROM tab2 AS cor0
----
-34
-43
-54

query I rowsort
SELECT DISTINCT + 33 FROM tab0 AS cor0 WHERE NULL IN ( - col2 + - col1 )
----

query I rowsort
SELECT ALL - 9 AS col2 FROM tab1 cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT + - MIN( DISTINCT 13 ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3436
SELECT + - MIN ( DISTINCT 13 ) FROM tab0 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT + SUM( ALL - 88 ) AS col0 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-3437
SELECT + SUM ( ALL - 88 ) AS col0 FROM tab1
----
-264

query I rowsort
SELECT ALL + col0 * - - col2 AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + ( - 49 ) AS col2 FROM tab1
----
-49
-49
-49

query I rowsort
SELECT ALL 33 + - - col2 * + - col2 FROM tab1
----
-3448
-4591
-9183

query I rowsort
SELECT + 15 * + ( - + col2 ) AS col0 FROM tab0 AS cor0
----
-1485
-150
-705

query II rowsort
SELECT ALL - col0 AS col2, - 29 * col0 FROM tab1 AS cor0
----
-51
-1479
-85
-2465
-91
-2639

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT + + col2 DIV + + col2 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3443
SELECT + + col2 / + + col2 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - col2 * - + col2 AS col1 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT + ( + - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - col2 <= NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT - ( + col0 ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT - MAX( col0 ) FROM tab0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT - MAX ( col0 ) FROM tab0 WHERE NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + ( - col2 )
----

query I rowsort
SELECT DISTINCT 31 + col1 * + + col0 AS col1 FROM tab0 AS cor0
----
1246
128
1858

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 - + col0 AND NULL
----

query I rowsort
SELECT - + col1 + 89 + col1 AS col2 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT ALL col2 + + 31 AS col2 FROM tab2 AS cor0
----
54
71
89

query I rowsort
SELECT DISTINCT - + 41 AS col0 FROM tab1 AS cor0 WHERE NOT col0 >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT - COUNT( * ) + + 49 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3455
SELECT - COUNT ( * ) + + 49 FROM tab0 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + ( + 93 ) + - 23 col1 FROM tab1 AS cor0
----
129
138
166

query I rowsort
SELECT + 35 * - col1 FROM tab2
----
-1785
-2345
-2695

query II rowsort
SELECT - col2, - col0 AS col2 FROM tab1
----
-59
-85
-68
-91
-96
-51

query I rowsort
SELECT ALL col1 + + - col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT SUM( - 77 ) - MAX( - + col1 ) FROM tab0 AS cor0
----
-230

skipif mysql # not compatible
query I rowsort label-3460
SELECT SUM ( - 77 ) - MAX ( - + col1 ) FROM tab0 AS cor0
----
-230

query III rowsort
SELECT - - 14 * - 66 - - 78, - col1 AS col1, col0 * - ( + + col1 ) AS col0 FROM tab0 AS cor0
----
9 values hashing to bf631e41d98389912da4094905658ac3

query I rowsort
SELECT + col1 * + ( col2 ) - + col0 AS col0 FROM tab1 AS cor0
----
1293
210
3105

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / - col2 + + + ( col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT MIN( DISTINCT col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT MIN ( DISTINCT col1 ) FROM tab2
----
51

query I rowsort
SELECT - 88 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT ALL - col1 * - - 43 FROM tab1
----
-2021
-215
-602

query I rowsort
SELECT + 52 * - - col0 AS col1 FROM tab2 cor0
----
2392
3328
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT + COUNT( * ) * + 25 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3468
SELECT + COUNT ( * ) * + 25 FROM tab0 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT DISTINCT - COUNT( ALL + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT - COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3470
SELECT DISTINCT + COUNT( * ) * 14 DIV + 87 FROM tab1 AS cor0 WHERE NOT 24 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT + COUNT ( * ) * 14 / + 87 FROM tab1 AS cor0 WHERE NOT 24 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / + col0 * 49 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - col1 + - - col2 )
----

query I rowsort
SELECT ALL + ( + - col2 ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + ( - - 23 ) AS col2 FROM tab2
----
23

query II rowsort
SELECT ALL + col1 + 80 * + col0, col0 AS col0 FROM tab0
----
1281
15
6981
87
7761
97

query I rowsort
SELECT col2 / - - ( - + col2 ) * col1 + + + 38 FROM tab1 WHERE NOT + - ( - col2 ) NOT BETWEEN - 48 * + + 10 * 79 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT DISTINCT 16 DIV col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT 16 / col2 FROM tab2
----
0

query I rowsort
SELECT ( + + 63 ) * + + ( col2 ) AS col1 FROM tab1
----
3717
4284
6048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 46 * + col2 AS col2 FROM tab1
----
14
4416
47
3128
5
2714

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT + COUNT( * ) * - - COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3480
SELECT + COUNT ( * ) * - - COUNT ( * ) col2 FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + col0 - - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 * + - 7 IN ( - col1 * - col0 + + col1, col2 * - 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + col0 * - - col2 / - col2 - + col0 AS col1 FROM tab2 AS cor0 WHERE col0 * - ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL col1 * + + col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT + col1 * - 1 * col1 + + col2 FROM tab0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT - 99 + + 5 * + SUM( DISTINCT col1 ) * + - 16 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT - 99 + + 5 * + SUM ( DISTINCT col1 ) * + - 16 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT ALL - - col1 - + col0 + - col1 + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 53 + - + col0 FROM tab1 cor0
----
-104
-138
-144

query I rowsort
SELECT - - 57 - + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-1158
-1770
-40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 39 + 81 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT DISTINCT + CAST( - - MIN( 53 ) AS SIGNED ) AS col2 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT + CAST ( - - MIN ( 53 ) AS INTEGER ) AS col2 FROM tab0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT - 54 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT - 54 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * + 74 + - col2 col1 FROM tab2
----
-1873
-1890
-1908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT + CAST( NULL AS SIGNED ) + - - col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3494
SELECT + CAST ( NULL AS INTEGER ) + - - col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + 22 * col1 FROM tab1
----
1102
169
404

query I rowsort
SELECT ALL - 18 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + ( + - ( col2 ) ) AS col0 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1, ( + col1 ) AS col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL - 49 * 6 AS col1 FROM tab2
----
-294
-294
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT - CAST( + + col0 AS SIGNED ) * 74 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query I rowsort label-3501
SELECT - CAST ( + + col0 AS INTEGER ) * 74 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - ( - 29 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 9 AS col1 FROM tab2 cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT + + MAX( ALL - + ( col1 ) ) * 68 col0 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3504
SELECT + + MAX ( ALL - + ( col1 ) ) * 68 col0 FROM tab0 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT ALL + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - 33 + - 58 * + - col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - 33 + - 58 * + - col1 AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 86 * + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 89 * - - col0 AS col2 FROM tab1 cor0
----
-4539
-7565
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT DISTINCT - - COUNT( + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT - - COUNT ( + col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 25 * - ( - col1 ) AS col0 FROM tab0
----
2025
25
525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3510
SELECT CAST( NULL AS SIGNED ) + + ( - COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT CAST ( NULL AS INTEGER ) + + ( - COUNT ( * ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT MAX( + col2 ) + + ( + 2 ) FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-3511
SELECT MAX ( + col2 ) + + ( + 2 ) FROM tab0
----
101

query I rowsort
SELECT ALL + 22 * 60 FROM tab0
----
1320
1320
1320

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 94 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col2 - + + col0 NOT IN ( + 89, col1, col0, 94 * col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT CAST( col0 AS SIGNED ) + 71 FROM tab0
----
158
168
86

skipif mysql # not compatible
query I rowsort label-3515
SELECT CAST ( col0 AS INTEGER ) + 71 FROM tab0
----
158
168
86

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 + + - 7 AS col1 FROM tab2
----
16
33
51

query I rowsort
SELECT DISTINCT + + 10 + + - col2 AS col1 FROM tab2 AS cor0
----
-13
-30
-48

query II rowsort
SELECT DISTINCT + ( 0 ) AS col2, - col0 * - col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL 66 - + MIN( 95 ) FROM tab1 AS cor0 WHERE 5 / + - col0 IS NOT NULL
----
-29

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL 66 - + MIN ( 95 ) FROM tab1 AS cor0 WHERE 5 / + - col0 IS NOT NULL
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab1 AS cor0
----
-24
-24
-24

query II rowsort
SELECT ALL - ( + - col2 ) * - - ( - - col2 ) + + col2 AS col2, - 9 + 46 + - col2 FROM tab0 AS cor0
----
110
27
2256
-10
9900
-62

query I rowsort
SELECT DISTINCT col1 * + 75 AS col1 FROM tab1
----
1050
3525
375

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3524
SELECT CAST( NULL AS DECIMAL ) + SUM( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT CAST ( NULL AS REAL ) + SUM ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL - 18 * - SUM( ALL - col0 ) FROM tab1 AS cor0
----
-4086

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL - 18 * - SUM ( ALL - col0 ) FROM tab1 AS cor0
----
-4086

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT + 97 + + SUM( ALL + 60 ) AS col2 FROM tab2 AS cor0
----
277

skipif mysql # not compatible
query I rowsort label-3526
SELECT + 97 + + SUM ( ALL + 60 ) AS col2 FROM tab2 AS cor0
----
277

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT + 5 + + col2 DIV + + col0 col1 FROM tab0 cor0
----
5
6
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3527
SELECT + 5 + + col2 / + + col0 col1 FROM tab0 cor0
----
5
6
8

query I rowsort
SELECT DISTINCT + 29 - - col2 * + - col0 + - 92 + col2 + col0 FROM tab1 AS cor0
----
-4812
-4934
-6092

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - - 86 ) >= NULL
----

query I rowsort
SELECT DISTINCT + col1 + - - 28 FROM tab1 AS cor0
----
33
42
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL MIN( DISTINCT - - 56 ) AS col1 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL MIN ( DISTINCT - - 56 ) AS col1 FROM tab2
----
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 - - + col2 * + - 66 / + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT DISTINCT MIN( + - 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT MIN ( + - 92 ) FROM tab1
----
-92

query I rowsort
SELECT ALL + 89 * + 5 * + ( + 46 ) - + 51 FROM tab1
----
20419
20419
20419

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT 73 * - COUNT( * ) AS col0 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-3535
SELECT 73 * - COUNT ( * ) AS col0 FROM tab0
----
-219

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 67 BETWEEN + + 20 - + - 77 AND - - col1 * + - 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL COUNT( DISTINCT + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL COUNT ( DISTINCT + col0 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - - 4 + - - 50 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0, col0 col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3540
SELECT ALL - - 39 col2, + 23 DIV - COUNT( * ) FROM tab1 AS cor0
----
39
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3540
SELECT ALL - - 39 col2, + 23 / - COUNT ( * ) FROM tab1 AS cor0
----
39
-7

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 BETWEEN NULL AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT 70 * - COUNT( * ) FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-3542
SELECT 70 * - COUNT ( * ) FROM tab2 AS cor0
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3543
SELECT DISTINCT - SUM( ALL CAST( 78 AS SIGNED ) ) FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT - SUM ( ALL CAST ( 78 AS INTEGER ) ) FROM tab1 AS cor0
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + 48 ) col0 FROM tab0 AS cor0
----
-48

query II rowsort
SELECT DISTINCT col2 AS col1, - col2 AS col0 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT MAX( ALL - 8 ) FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT MAX ( ALL - 8 ) FROM tab0 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT SUM( DISTINCT + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3547
SELECT SUM ( DISTINCT + col1 ) AS col2 FROM tab1
----
66

query II rowsort
SELECT - 61 AS col1, col1 FROM tab2
----
-61
51
-61
67
-61
77

query I rowsort
SELECT DISTINCT + col1 + - + col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT - COUNT( * ) + + 27 AS col0 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT - COUNT ( * ) + + 27 AS col0 FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT + MIN( DISTINCT - 96 ) AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-3551
SELECT + MIN ( DISTINCT - 96 ) AS col1 FROM tab2
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3552
SELECT DISTINCT 95 col1, + COUNT( * ) FROM tab2
----
95
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3552
SELECT DISTINCT 95 col1, + COUNT ( * ) FROM tab2
----
95
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3553
SELECT COUNT( * ) + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT COUNT ( * ) + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + col0 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT 12 + + COUNT( * ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3555
SELECT 12 + + COUNT ( * ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT - - 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE 90 > - + 97
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - SUM( - + 16 ) col2 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3557
SELECT - SUM ( - + 16 ) col2 FROM tab2 AS cor0
----
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < + 79
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT col0 + - 66 FROM tab1 AS cor0
----
-15
19
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 - 61 * - col2 col1 FROM tab0 cor0
----
2961
6133
704

query I rowsort
SELECT ALL - + col2 + ( + col0 ) - + 84 * col0 FROM tab1 cor0
----
-4329
-7114
-7621

query I rowsort
SELECT ALL + 72 - - + 81 FROM tab2 AS cor0
----
153
153
153

query I rowsort
SELECT ALL + - col0 + - ( - ( - col1 ) ) + - + 32 FROM tab2 AS cor0
----
-129
-173
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - col1 * - col0, + col1 + + col2 col1 FROM tab1
----
-201019
115
-2125
64
-9996
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT + SUM( - 96 ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-3565
SELECT + SUM ( - 96 ) FROM tab0
----
-288

query I rowsort
SELECT ALL + col1 * - 97 FROM tab0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT + MAX( DISTINCT - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT + MAX ( DISTINCT - + col0 ) FROM tab1
----
-51

query I rowsort
SELECT + col0 * + - col1 AS col1 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + 97 + - 32 + col2
----

query I rowsort
SELECT DISTINCT + - col1 * 20 AS col0 FROM tab2 AS cor0
----
-1020
-1340
-1540

query I rowsort
SELECT 38 * 91 AS col0 FROM tab1 AS cor0
----
3458
3458
3458

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3572
SELECT col2 col2, + CAST( + - col2 AS SIGNED ) col1 FROM tab0
----
10
-10
47
-47
99
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3572
SELECT col2 col2, + CAST ( + - col2 AS INTEGER ) col1 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT DISTINCT + 21 * col2 AS col0 FROM tab0 WHERE NULL > 38 - - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT 59 + COUNT( * ) + ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
77

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT 59 + COUNT ( * ) + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT - SUM( DISTINCT + + col1 ) FROM tab2 AS cor0 WHERE NOT + col2 - + 80 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT - SUM ( DISTINCT + + col1 ) FROM tab2 AS cor0 WHERE NOT + col2 - + 80 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT ALL + CAST( ( + col0 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3576
SELECT ALL + CAST ( ( + col0 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - 82 * - col1 * 18 + - 54 * + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT - - 65 + - ( + - 13 ) - + COUNT( * ) FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3578
SELECT - - 65 + - ( + - 13 ) - + COUNT ( * ) FROM tab0 cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3579
SELECT - + 26 * - CAST( NULL AS SIGNED ) + - + 21 - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT - + 26 * - CAST ( NULL AS INTEGER ) + - + 21 - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL MIN( col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3580
SELECT ALL MIN ( col1 ) col2 FROM tab2
----
51

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab0
----
-66

query I rowsort
SELECT ALL 39 * - + ( - 45 ) + 46 AS col0 FROM tab1
----
1801
1801
1801

query I rowsort
SELECT ALL - ( - 50 ) FROM tab2
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT + col2 DIV + - col0 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3584
SELECT + col2 / + - col0 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - col1 + + ( - + col0 ) + + col0 - + col2 + - ( - + col2 ) * + + col0 FROM tab0
----
577
839
9503

query I rowsort
SELECT ALL - 99 AS col0 FROM tab1 AS cor0 WHERE 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( + col1 ) + - CAST( NULL AS SIGNED ), col1, 44 * 7 * col2, + + col0 )
----

skipif mysql # not compatible
query I rowsort label-3587
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( + col1 ) + - CAST ( NULL AS INTEGER ), col1, 44 * 7 * col2, + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL - COUNT( * ) + + ( + - 37 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL - COUNT ( * ) + + ( + - 37 ) FROM tab2 AS cor0
----
-40

query I rowsort
SELECT + col0 * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query II rowsort label-3590
SELECT 57 AS col1, COUNT( * ) * 20 FROM tab2 AS cor0
----
57
60

skipif mysql # not compatible
query II rowsort label-3590
SELECT 57 AS col1, COUNT ( * ) * 20 FROM tab2 AS cor0
----
57
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT DISTINCT COUNT( * ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3591
SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT + col1 * - + 50 * - ( - + col2 ) FROM tab0 AS cor0
----
-10500
-190350
-4950

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT ALL + - COUNT( * ) AS col0, 64 FROM tab2 AS cor0
----
-3
64

skipif mysql # not compatible
query II rowsort label-3593
SELECT ALL + - COUNT ( * ) AS col0, 64 FROM tab2 AS cor0
----
-3
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT DISTINCT COUNT( + - 79 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT COUNT ( + - 79 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + 98 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT ALL + ( - + col0 ) * - CAST( NULL AS SIGNED ) / + 16 * + - ( + - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL + ( - + col0 ) * - CAST ( NULL AS INTEGER ) / + 16 * + - ( + - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3597
SELECT ALL 57 DIV col0, col2 FROM tab1
----
0
59
0
68
1
96

skipif mysql # not compatible
query II rowsort label-3597
SELECT ALL 57 / col0, col2 FROM tab1
----
0
59
0
68
1
96

query I rowsort
SELECT DISTINCT - col0 * - - col2 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 AND - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 42 * + - col0 + col2 - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT + col1 DIV + + 54 * + col1 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3601
SELECT + col1 / + + 54 * + col1 + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT - col1 + + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT + 21 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - - 77 + + col2 * col2 * + + col0 + - - col0 AS col1 FROM tab2 AS cor0
----
102541
24457
252452

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL + MAX( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL + MAX ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - + ( col2 ) * + - 10 FROM tab1 AS cor0
----
590
680
960

query I rowsort
SELECT ( 21 ) AS col1 FROM tab2 cor0
----
21
21
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 72 + + - 44 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT DISTINCT ( - col1 ) DIV col1 AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT ( - col1 ) / col1 AS col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT + - 16 * col2 AS col2 FROM tab2 cor0
----
-368
-640
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT - SUM( ALL - 11 ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - SUM ( ALL - 11 ) FROM tab2 AS cor0
----
33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT ALL + col0 DIV col0 + - - 55 DIV + - col2 AS col1 FROM tab2 AS cor0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + col0 / col0 + - - 55 / + - col2 AS col1 FROM tab2 AS cor0
----
-1
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3614
SELECT + + COUNT( * ) DIV + CAST( - + 24 AS SIGNED ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT + + COUNT ( * ) / + CAST ( - + 24 AS INTEGER ) FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE + - 20 * - 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT SUM( - ( - 35 ) ) col2 FROM tab2
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3616
SELECT SUM ( - ( - 35 ) ) col2 FROM tab2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT COUNT( * ) + + - 88 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-3617
SELECT COUNT ( * ) + + - 88 FROM tab1
----
-85

query III rowsort
SELECT DISTINCT - col0 AS col0, + col2 AS col1, + 7 * 82 - - col0 + + - col1 AS col0 FROM tab2
----
9 values hashing to 4b239c5af1e7c50d69ae72e9b56b02ca

query III rowsort
SELECT * FROM tab1 WHERE - 95 < 23 + + + 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT CAST( + - COUNT( - CAST( + - 77 AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3620
SELECT CAST ( + - COUNT ( - CAST ( + - 77 AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - - col0 * - - col2 AS col0 FROM tab1 WHERE ( col1 > col0 )
----

query I rowsort
SELECT DISTINCT + 15 * + - 74 FROM tab1
----
-1110

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT DISTINCT - 26 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT - 26 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT DISTINCT - COUNT( * ) - - MAX( ALL + col1 ) col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT DISTINCT - COUNT ( * ) - - MAX ( ALL + col1 ) col2 FROM tab0 AS cor0
----
78

query I rowsort
SELECT col0 FROM tab2 WHERE + + 77 <> col2 * + 60
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT - CAST( - 37 AS SIGNED ) AS col1 FROM tab2
----
37
37
37

skipif mysql # not compatible
query I rowsort label-3627
SELECT - CAST ( - 37 AS INTEGER ) AS col1 FROM tab2
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col0 FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3629
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT COUNT( DISTINCT + col0 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3630
SELECT COUNT ( DISTINCT + col0 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3631
SELECT - + col0 * + 35 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( 12 AS DECIMAL ) - + 48 * + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3631
SELECT - + col0 * + 35 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( 12 AS REAL ) - + 48 * + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3632
SELECT + + MIN( DISTINCT + col1 ) DIV + SUM( col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT + + MIN ( DISTINCT + col1 ) / + SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 - - col0 IS NOT NULL
----

query II rowsort
SELECT + 50 AS col1, ( + col0 ) FROM tab0
----
50
15
50
87
50
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3635
SELECT ALL + col0 AS col0, col2 DIV + col1 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-3635
SELECT ALL + col0 AS col0, col2 / + col1 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT ALL 33 * col1 FROM tab2 WHERE + - col2 NOT IN ( col0 )
----
1683
2211
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT DISTINCT + SUM( ALL + 4 ) * + 61 + + + COUNT( * ) FROM tab1
----
735

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT + SUM ( ALL + 4 ) * + 61 + + + COUNT ( * ) FROM tab1
----
735

query I rowsort
SELECT col2 * - - col2 FROM tab2
----
1600
3364
529

query II rowsort
SELECT col1, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3640
SELECT col0, - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3640
SELECT col0, - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3641
SELECT ALL - 34, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-34
3

skipif mysql # not compatible
query II rowsort label-3641
SELECT ALL - 34, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-34
3

query I rowsort
SELECT DISTINCT - + 57 AS col2 FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 31, + col1 AS col1 FROM tab2 AS cor0
----
-31
51
-31
67
-31
77

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-3645
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS DECIMAL ) + + 1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3645
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS REAL ) + + 1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 48 + + col1 AS col1 FROM tab0 AS cor0
----
129
49
69

query I rowsort
SELECT ALL 55 * - - col1 + col2 FROM tab0 AS cor0
----
1165
154
4502

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3649
SELECT + 58 * - CAST( NULL AS SIGNED ) + + CAST( AVG ( DISTINCT - col2 ) AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT + 58 * - CAST ( NULL AS INTEGER ) + + CAST ( AVG ( DISTINCT - col2 ) AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + + 72 AS col1 FROM tab2 cor0
----
-3
26
8

query I rowsort
SELECT - - col2 * - 5 + + + 49 FROM tab1 AS cor0
----
-246
-291
-431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT + ( 2 ) * - ( COUNT( * ) ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT + ( 2 ) * - ( COUNT ( * ) ) FROM tab2
----
-6

query I rowsort
SELECT - + ( - 12 ) AS col0 FROM tab1 WHERE - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT 89 + + + MAX( + col0 ), - 60 AS col2 FROM tab2
----
164
-60

skipif mysql # not compatible
query II rowsort label-3655
SELECT 89 + + + MAX ( + col0 ), - 60 AS col2 FROM tab2
----
164
-60

query II rowsort
SELECT DISTINCT 25 AS col1, col1 * + + 1 FROM tab1
----
25
14
25
47
25
5

query I rowsort
SELECT DISTINCT + col2 - + - col2 FROM tab1 WHERE NOT col0 IS NULL
----
118
136
192

query III rowsort
SELECT * FROM tab0 WHERE + col1 IN ( + col1, ( 96 ), + 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 49 * 90 * + col0 FROM tab0
----
383670
427770
66150

query I rowsort
SELECT DISTINCT col1 + - col2 + - + col2 AS col0 FROM tab2
----
-3
-49
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3661
SELECT 87 DIV COUNT( 66 ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-3661
SELECT 87 / COUNT ( 66 ) FROM tab2
----
29

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + - col1 AND + col1
----

query I rowsort
SELECT - 47 - - col1 * col0 FROM tab1 AS cor0
----
378
4230
667

query I rowsort
SELECT ALL + col0 + - col0 * ( + col0 ) - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-195
-7395
-9215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3665
SELECT - 71 * - + COUNT( * ) - - CAST( NULL AS SIGNED ) * - CAST( + MAX( DISTINCT + - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT - 71 * - + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - CAST ( + MAX ( DISTINCT + - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3666
SELECT ALL - + 41 DIV + 25 + - CAST( + + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL - + 41 / + 25 + - CAST ( + + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT - COUNT( * ) + + + 82 AS col2 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-3667
SELECT - COUNT ( * ) + + + 82 AS col2 FROM tab0 cor0
----
79

query I rowsort
SELECT DISTINCT 85 * col1 - - col1 FROM tab0
----
1806
6966
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3669
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - + 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query II rowsort
SELECT ALL 66 AS col2, col0 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + 91 * + + 87 * + 10 + + 77 )
----

query I rowsort
SELECT + col0 * + 20 FROM tab1 cor0
----
1020
1700
1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT - col1 * + CAST( NULL AS SIGNED ) + + 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT - col1 * + CAST ( NULL AS INTEGER ) + + 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 38 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 65, 18 col0 FROM tab2 AS cor0 WHERE col2 * col1 + + col0 * + - col2 IS NULL
----

query II rowsort
SELECT DISTINCT col0 * - col2, + col2 AS col0 FROM tab0
----
-705
47
-870
10
-9603
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT SUM( - - 89 ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-3677
SELECT SUM ( - - 89 ) FROM tab2
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT ALL - CAST( + - ( col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL - CAST ( + - ( col0 ) AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT col2 * - - 45 * + col2 FROM tab1
----
156645
208080
414720

query III rowsort
SELECT * FROM tab1 WHERE - - 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL 64 * + COUNT( * ) AS col0 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL 64 * + COUNT ( * ) AS col0 FROM tab0
----
192

query I rowsort
SELECT ALL col2 * - - col2 * + 24 + ( + col1 ) AS col1 FROM tab1
----
111023
221198
83549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3683
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3683
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - + col0 + + - col2 AS col1 FROM tab0 cor0
----
-752
-880
-9702

query I rowsort
SELECT DISTINCT + - 87 * + 91 FROM tab1 AS cor0
----
-7917

query I rowsort
SELECT ALL - ( - col2 ) * - 37 + - + col2 * + - col2 * - + ( - 90 ) FROM tab2 AS cor0
----
142520
300614
46759

query I rowsort
SELECT ALL + col1 * + 33 FROM tab1 AS cor0
----
1551
165
462

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 8 > - 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3690
SELECT DISTINCT 55 - + - COUNT( * ) DIV - - 50 AS col0, COUNT( * ) FROM tab1 AS cor0
----
55
3

skipif mysql # not compatible
query II rowsort label-3690
SELECT DISTINCT 55 - + - COUNT ( * ) / - - 50 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
55
3

query I rowsort
SELECT 69 + - + 61 FROM tab2
----
8
8
8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * - col0 AND + - col0
----

query III rowsort
SELECT * FROM tab0 WHERE + 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3694
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3694
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT COUNT( * ) * - - MAX( + col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT COUNT ( * ) * - - MAX ( + col2 ) FROM tab2
----
174

query I rowsort
SELECT col2 + - - col2 * 28 * ( + - 48 ) AS col2 FROM tab2
----
-30889
-53720
-77894

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE col0 + - 54 IS NULL
----

query I rowsort
SELECT - col1 * - + col2 + - col1 FROM tab1
----
1330
290
3149

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT DISTINCT + ( col1 ) DIV + + col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT + ( col1 ) / + + col1 FROM tab1
----
1

query I rowsort
SELECT + 15 + - - 64 + - col0 AS col2 FROM tab0
----
-18
-8
64

query I rowsort
SELECT 7 + - + col2 + col1 FROM tab1
----
-14
-47
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3702
SELECT col0 + 92 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT col0 + 92 * - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - + 81 AS col1 FROM tab2 AS cor0
----
-23
-41
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT 48 - - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT 48 - - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT - MIN( DISTINCT + col2 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT - MIN ( DISTINCT + col2 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL 35 * + ( + 81 ) FROM tab2 AS cor0
----
2835
2835
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT DISTINCT - - 55 * + - COUNT( * ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - - 55 * + - COUNT ( * ) FROM tab2 AS cor0
----
-165

onlyif mysql # DIV for integer division: 
query II rowsort label-3708
SELECT DISTINCT 78 AS col2, col2 DIV + + col0 FROM tab1
----
78
0
78
1

skipif mysql # not compatible
query II rowsort label-3708
SELECT DISTINCT 78 AS col2, col2 / + + col0 FROM tab1
----
78
0
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT ( MIN( DISTINCT col0 ) ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT ( MIN ( DISTINCT col0 ) ) AS col0 FROM tab0
----
15

query I rowsort
SELECT 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3711
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + + col0 / + - col2 * + col0 = + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3713
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + ( + 69 ) AS col2 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT + col2 DIV - - 30 AS col0 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3715
SELECT + col2 / - - 30 AS col0 FROM tab2 cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT + CAST( + - 27 AS SIGNED ) AS col2 FROM tab2
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-3716
SELECT + CAST ( + - 27 AS INTEGER ) AS col2 FROM tab2
----
-27
-27
-27

query II rowsort
SELECT col2 AS col0, 46 FROM tab2
----
23
46
40
46
58
46

query II rowsort
SELECT - 6 AS col1, col0 AS col2 FROM tab1
----
-6
51
-6
85
-6
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT ALL - COUNT( * ), - 45 AS col0 FROM tab2
----
-3
-45

skipif mysql # not compatible
query II rowsort label-3719
SELECT ALL - COUNT ( * ), - 45 AS col0 FROM tab2
----
-3
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3720
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + col1 BETWEEN - col2 * - + col0 + - + CAST( - + col1 AS SIGNED ) - + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + col1 BETWEEN - col2 * - + col0 + - + CAST ( - + col1 AS INTEGER ) - + col2 AND NULL
----
0

query II rowsort
SELECT DISTINCT + col2 AS col0, + 81 AS col0 FROM tab0
----
10
81
47
81
99
81

query I rowsort
SELECT 60 * col1 + + col0 AS col0 FROM tab1
----
2911
385
891

query I rowsort
SELECT + - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + col1 + 69 FROM tab0
----
150
70
90

query I rowsort
SELECT DISTINCT + col2 + col2 + + col0 FROM tab2 cor0
----
144
191
92

query II rowsort
SELECT ALL - col2 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL = ( col0 )
----

query I rowsort
SELECT + 70 AS col0 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT + - col1 AS col0 FROM tab2 AS cor0 WHERE - 15 + - - 80 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 60 + + + col0 + - col0 AS col1 FROM tab1
----
60

query I rowsort
SELECT DISTINCT col0 + - 22 AS col2 FROM tab2 AS cor0
----
24
42
53

onlyif mysql # DIV for integer division: 
query II rowsort label-3732
SELECT - 62 + + col1 AS col0, - 63 DIV - col0 FROM tab2 cor0
----
-11
1
15
0
5
0

skipif mysql # not compatible
query II rowsort label-3732
SELECT - 62 + + col1 AS col0, - 63 / - col0 FROM tab2 cor0
----
-11
1
15
0
5
0

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 * + + col2 AS col2 FROM tab1 AS cor0
----
-3657
-3744
6615

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT 31 + - MIN( - 90 ) FROM tab0 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3734
SELECT 31 + - MIN ( - 90 ) FROM tab0 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + ( - MAX( ALL + 41 ) ) + - 1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3735
SELECT + ( - MAX ( ALL + 41 ) ) + - 1 FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT + COUNT( * ) + - SUM( + col0 ) AS col1 FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + COUNT ( * ) + - SUM ( + col0 ) AS col1 FROM tab1 AS cor0
----
-224

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> col2
----

query I rowsort
SELECT DISTINCT - + col0 * + col2 - col0 AS col2 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT ALL + 31 + 38 AS col2 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT + 66 FROM tab0 WHERE NOT NULL IS NOT NULL
----
66

query I rowsort
SELECT ALL - 37 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT + COUNT( + - 46 ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT + COUNT ( + - 46 ) FROM tab2, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3744
SELECT DISTINCT 60 AS col2, - MAX( + col1 ) FROM tab2
----
60
-77

skipif mysql # not compatible
query II rowsort label-3744
SELECT DISTINCT 60 AS col2, - MAX ( + col1 ) FROM tab2
----
60
-77

query I rowsort
SELECT ALL + 78 * + + 98 + + col0 AS col2 FROM tab0
----
7659
7731
7741

query I rowsort
SELECT ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 * + col0 col0 FROM tab1 AS cor0
----
2091
3485
3731

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT + col2 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT ALL + col1 / + col1 AS col1 FROM tab1 WHERE NOT + col2 > col2 / + CAST( - ( + col0 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL + col1 / + col1 AS col1 FROM tab1 WHERE NOT + col2 > col2 / + CAST ( - ( + col0 ) AS INTEGER )
----

query I rowsort
SELECT col2 FROM tab2 WHERE ( col1 ) * - col1 + - col2 IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 29 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT COUNT( ALL col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT COUNT ( ALL col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - 56 - + col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-102
-120
-131

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + 10 IS NOT NULL
----

query I rowsort
SELECT 68 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 62 + + col2 / 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT ( + col0 ) + - col1 DIV col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
45
63
74

skipif mysql # not compatible
query I rowsort label-3758
SELECT ( + col0 ) + - col1 / col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
45
63
74

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT 54 + - col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 37 * 47 BETWEEN NULL AND 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL + COUNT( ALL - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + COUNT ( ALL - col2 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE + col0 >= ( col1 )
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT CAST( ( 5 ) AS SIGNED ) AS col2 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3764
SELECT CAST ( ( 5 ) AS INTEGER ) AS col2 FROM tab1
----
5
5
5

query I rowsort
SELECT DISTINCT 56 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL 16 * + COUNT( * ) AS col0 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL 16 * + COUNT ( * ) AS col0 FROM tab0
----
48

query III rowsort
SELECT * FROM tab1 WHERE NOT + 60 * - col1 + col0 NOT BETWEEN ( NULL ) AND 50
----

query I rowsort
SELECT + col2 + + col0 FROM tab2 WHERE col2 NOT IN ( 93 * 53 )
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT DISTINCT ( COUNT( * ) ) + - COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN + col1 AND ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT ( COUNT ( * ) ) + - COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN + col1 AND ( + col0 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN 48 AND 13 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE ( + col2 * + col1 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 12 * 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT col2 DIV col2 + col2 col2 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3775
SELECT col2 / col2 + col2 col2 FROM tab0 AS cor0
----
100
11
48

query I rowsort
SELECT - col0 * col1 + 19 AS col2 FROM tab0 AS cor0
----
-1196
-1808
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL - COUNT( ALL 71 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - COUNT ( ALL 71 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT ALL + 94 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL COUNT( * ) + + ( - 30 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL COUNT ( * ) + + ( - 30 ) FROM tab2
----
-27

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 42 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT ALL + 27 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL + 27 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3783
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + + ( col0 ) + 37 AS col1 FROM tab0 AS cor0
----
124
134
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT COUNT( 69 ) + COUNT( * ) FROM tab1 AS cor0 WHERE ( col2 + - col0 ) NOT IN ( 27 )
----
6

skipif mysql # not compatible
query I rowsort label-3785
SELECT COUNT ( 69 ) + COUNT ( * ) FROM tab1 AS cor0 WHERE ( col2 + - col0 ) NOT IN ( 27 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + AVG ( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE col2 * + col1 + - 18 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + AVG ( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE col2 * + col1 + - 18 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3787
SELECT - col1 - + CAST( + col2 + + col2 AS SIGNED ) DIV 12 FROM tab2 AS cor0
----
-54
-76
-83

skipif mysql # not compatible
query I rowsort label-3787
SELECT - col1 - + CAST ( + col2 + + col2 AS INTEGER ) / 12 FROM tab2 AS cor0
----
-54
-76
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col0 * 77 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col0 * 77 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + 43 * col2 - 8 AS col1 FROM tab1 AS cor0
----
2529
2916
4120

query I rowsort
SELECT DISTINCT - col0 + - col0 FROM tab1 AS cor0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL - COUNT( col1 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - COUNT ( col1 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 40 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
40
40
40

query I rowsort
SELECT 67 * + - col2 + + 84 FROM tab2
----
-1457
-2596
-3802

query I rowsort
SELECT ( - 53 ) + + 0 AS col0 FROM tab2
----
-53
-53
-53

query I rowsort
SELECT ALL col1 - - - col2 AS col0 FROM tab2
----
28
37
9

query I rowsort
SELECT + col0 + + - ( + 72 ) FROM tab0
----
-57
15
25

query I rowsort
SELECT + 23 * - 4 AS col1 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT + 7 * + - col2 * 64 AS col2 FROM tab2
----
-10304
-17920
-25984

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3799
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 69 * - ( CAST( col0 AS SIGNED ) ) - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3799
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 69 * - ( CAST ( col0 AS INTEGER ) ) - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 + + col2 AND NULL
----

query I rowsort
SELECT ALL col2 * - 26 * 99 FROM tab0 cor0
----
-120978
-254826
-25740

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3805
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT col2 DIV + - 23 col1 FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3807
SELECT col2 / + - 23 col1 FROM tab0 AS cor0
----
-2
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + SUM( ALL - 93 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT + SUM ( ALL - 93 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND NULL
----
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 65 ) BETWEEN - col1 / - 85 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT - - ( - + MIN( + 76 ) ) AS col0 FROM tab0 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - - ( - + MIN ( + 76 ) ) AS col0 FROM tab0 cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL + - col1 * - CAST( - - 97 AS SIGNED ) FROM tab1 AS cor0
----
1358
4559
485

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + - col1 * - CAST ( - - 97 AS INTEGER ) FROM tab1 AS cor0
----
1358
4559
485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT - + MIN( + + 76 ) * - + CAST( MAX( + 32 ) AS SIGNED ) col0 FROM tab2 AS cor0
----
2432

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3812
SELECT - + MIN ( + + 76 ) * - + CAST ( MAX ( + 32 ) AS INTEGER ) col0 FROM tab2 AS cor0
----
2432

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - col0 * 94 NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 47 * - - 73 + 32 col1 FROM tab1 AS cor0
----
-202397
-233276
-329344

onlyif mysql # aggregate syntax: 
query II rowsort label-3816
SELECT ALL + 80, COUNT( * ) AS col0 FROM tab2 AS cor0
----
80
3

skipif mysql # not compatible
query II rowsort label-3816
SELECT ALL + 80, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
80
3

query I rowsort
SELECT ALL - col0 * ( - 89 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 46 * + - 47 * col2 BETWEEN NULL AND + col0
----
4094
5696
6675

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 93 )
----

query I rowsort
SELECT col0 * + ( + - col0 ) + 95 FROM tab1
----
-2506
-7130
-8186

query I rowsort
SELECT + col2 + + 67 FROM tab1
----
126
135
163

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 77
----

query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab0 WHERE NOT NULL <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT + ( COUNT( * ) ) * 79 + 1 * - COUNT( * ) FROM tab1 WHERE + col2 * col1 + - col2 + col0 * 53 > ( col1 )
----
234

skipif mysql # not compatible
query I rowsort label-3823
SELECT + ( COUNT ( * ) ) * 79 + 1 * - COUNT ( * ) FROM tab1 WHERE + col2 * col1 + - col2 + col0 * 53 > ( col1 )
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 FROM tab1 WHERE NULL NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 FROM tab1 WHERE NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( ( - - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 + 12 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 + 12 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 + + col1 AS col1 FROM tab0 cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ( - - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3828
SELECT ( - - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT MIN( DISTINCT + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3829
SELECT MIN ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 14 + 45 + - col2 BETWEEN ( NULL ) AND 32
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * - col1 - col0 col0 FROM tab0
----
-1230
-1914
-194

query I rowsort
SELECT ALL 66 + - - 20 AS col0 FROM tab2
----
86
86
86

query I rowsort
SELECT col2 + - col1 + - col1 + + 10 AS col2 FROM tab0 AS cor0
----
-105
-22
107

query I rowsort
SELECT ALL ( + ( + col2 ) ) + + + col1 AS col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL + ( col0 ) + + - 84 * + - col0 FROM tab0 cor0
----
1275
7395
8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col0 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT DISTINCT - 86 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT - 86 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 6 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 27 - + col0 AS col1 FROM tab1 AS cor0
----
-24
-58
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 75 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE ( 19 ) >= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT 20 * + - 14 FROM tab2
----
-280
-280
-280

query II rowsort
SELECT DISTINCT - 27, - 16 AS col1 FROM tab0
----
-27
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT + COUNT( ALL + 41 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3845
SELECT DISTINCT + COUNT ( ALL + 41 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3846
SELECT SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 AS cor0 WHERE NOT + col0 * + col0 + - col0 + col2 > - col1 * 18 + 63
----

query II rowsort
SELECT ALL - col0 * - col2, + col0 FROM tab0
----
705
15
870
87
9603
97

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + col0 + + ( + col0 ) + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( 17 ) * 98 + + + 66 AS col1 FROM tab0 AS cor0
----
-1600
-1600
-1600

query I rowsort
SELECT DISTINCT col0 + - 25 * col1 AS col1 FROM tab0 AS cor0
----
-2010
-438
72

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE NOT + col0 NOT IN ( 55 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 < - col2 + 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col2 FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3855
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + ( - ( - col0 ) ) AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3855
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + ( - ( - col0 ) ) AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col1 - + + 38 + 54 * col1 NOT BETWEEN - - ( col2 ) * - ( + 95 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL SUM( 17 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL SUM ( 17 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT 68 + + ( + - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 * + col1 * - + 94 ) IS NULL
----
-7
22
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT DISTINCT + SUM( DISTINCT + 38 ) * - CAST( 68 AS SIGNED ) + - MIN( ALL col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + SUM ( DISTINCT + 38 ) * - CAST ( 68 AS INTEGER ) + - MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT ALL - 72 + - CAST( + col0 AS SIGNED ) - + - col1 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 + + 32 IS NULL
----
-168
282
6474

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - 72 + - CAST ( + col0 AS INTEGER ) - + - col1 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 + + 32 IS NULL
----
-168
282
6474

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND ( + 34 )
----

query II rowsort
SELECT ALL col0 * col2 * - - col0, - 61 * + col0 AS col0 FROM tab2
----
163840
-3904
326250
-4575
48668
-2806

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 23 IS NOT NULL
----

query I rowsort
SELECT + 97 + + col2 AS col2 FROM tab1
----
156
165
193

query I rowsort
SELECT DISTINCT col2 * 23 AS col2 FROM tab1
----
1357
1564
2208

query III rowsort
SELECT * FROM tab0 WHERE col2 IN ( 29 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 + - - col0 * col1 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT 59 + + MIN( + col1 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3869
SELECT 59 + + MIN ( + col1 ) FROM tab0
----
60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3870
SELECT - col0 * col0 - - CAST( 58 AS SIGNED ) + + 5 * - 13 * col2 + + + CAST( NULL AS DECIMAL ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT - col0 * col0 - - CAST ( 58 AS INTEGER ) + + 5 * - 13 * col2 + + + CAST ( NULL AS REAL ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - - 40 * - + 16 + + + COUNT( col0 ) + - COUNT( * ) FROM tab0 AS cor0
----
-640

skipif mysql # not compatible
query I rowsort label-3871
SELECT - - 40 * - + 16 + + + COUNT ( col0 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-640

query II rowsort
SELECT ALL - col2 + - - ( + 98 ), 30 AS col0 FROM tab2 cor0
----
40
30
58
30
75
30

query I rowsort
SELECT + col2 FROM tab2 WHERE ( - - 64 ) IN ( - col1 * - + 64 + - 19 + - + 99, + 95 * - ( + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3874
SELECT ALL 41 FROM tab1 AS cor0 WHERE - col1 DIV + col2 * + + col0 + + + col1 NOT BETWEEN col2 DIV + + CAST( + - col1 AS SIGNED ) + - - CAST( NULL AS SIGNED ) AND + 2
----
41
41
41

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL 41 FROM tab1 AS cor0 WHERE - col1 / + col2 * + + col0 + + + col1 NOT BETWEEN col2 / + + CAST ( + - col1 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AND + 2
----
41
41
41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 96 = + - col1 OR NOT + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3876
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-3876
SELECT ALL + - CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT + col2 >= + col2 + + - ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3878
SELECT DISTINCT - CAST( + 84 AS SIGNED ) * + col2 * - - col0 AS col1 FROM tab1
----
-411264
-421260
-519792

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT - CAST ( + 84 AS INTEGER ) * + col2 * - - col0 AS col1 FROM tab1
----
-411264
-421260
-519792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3879
SELECT COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) * 92 AS col1 FROM tab0
----
828

skipif mysql # not compatible
query I rowsort label-3879
SELECT COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) * 92 AS col1 FROM tab0
----
828

query I rowsort
SELECT ALL ( - 84 ) AS col1 FROM tab0
----
-84
-84
-84

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 18 - + ( + 73 ) + + col1 - col1 AND ( + + col2 )
----

query II rowsort
SELECT ALL col2, ( + col0 ) FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3884
SELECT - col1 AS col0, 60 DIV + 25 AS col2 FROM tab0
----
-1
2
-21
2
-81
2

skipif mysql # not compatible
query II rowsort label-3884
SELECT - col1 AS col0, 60 / + 25 AS col2 FROM tab0
----
-1
2
-21
2
-81
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ALL MAX( DISTINCT - 86 ) AS col1 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL MAX ( DISTINCT - 86 ) AS col1 FROM tab2
----
-86

query I rowsort
SELECT + col1 * + 85 * + - col1 FROM tab2 AS cor0
----
-221085
-381565
-503965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3887
SELECT ALL + CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL + CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT + COUNT( * ) DIV - - SUM( - col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT + COUNT ( * ) / - - SUM ( - col0 ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL COUNT( * ) + - - 16 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL COUNT ( * ) + - - 16 FROM tab0
----
19

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 77 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3892
SELECT + COUNT( + col1 ), 68 * + ( + COUNT( DISTINCT + col2 ) ) AS col1 FROM tab2
----
3
204

skipif mysql # not compatible
query II rowsort label-3892
SELECT + COUNT ( + col1 ), 68 * + ( + COUNT ( DISTINCT + col2 ) ) AS col1 FROM tab2
----
3
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 0 col1, 20 - + + col2 / col1 / - - 62 / - + 23 * col2 + ( - col1 ) FROM tab2 AS cor0 WHERE + col1 + + - 73 = col1 + + 42
----

query II rowsort
SELECT ALL + - col0 AS col1, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 23 IN ( - + col1 + - col2, - col1 * col1, - ( - 45 ) + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3896
SELECT + col2 + col1 AS col2, col2 * - - CAST( CAST( col2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
100
9801
128
2209
31
100

skipif mysql # not compatible
query II rowsort label-3896
SELECT + col2 + col1 AS col2, col2 * - - CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
100
9801
128
2209
31
100

query I rowsort
SELECT 80 + - col0 FROM tab1
----
-11
-5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL + ( + COUNT( * ) ) * 58 AS col0 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL + ( + COUNT ( * ) ) * 58 AS col0 FROM tab2
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3899
SELECT + AVG ( - 16 ) AS col0 FROM tab2 WHERE NULL IN ( + - CAST( NULL AS SIGNED ), col2 * - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT + AVG ( - 16 ) AS col0 FROM tab2 WHERE NULL IN ( + - CAST ( NULL AS INTEGER ), col2 * - 17 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT 40 * - - COUNT( * ) FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT 40 * - - COUNT ( * ) FROM tab0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT - + ( - + COUNT( - 79 ) ) + + COUNT( ALL - + col2 ) * - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3902
SELECT - + ( - + COUNT ( - 79 ) ) + + COUNT ( ALL - + col2 ) * - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE col0 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT 18 * - COUNT( * ) * COUNT( * ) FROM tab1, tab2 AS cor0
----
-1458

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT 18 * - COUNT ( * ) * COUNT ( * ) FROM tab1, tab2 AS cor0
----
-1458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) * + + COUNT( * ) * + + 93 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + + COUNT ( * ) * + + 93 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT DISTINCT ( - - COUNT( * ) ) + - 1 * - 77 col0 FROM tab0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3905
SELECT DISTINCT ( - - COUNT ( * ) ) + - 1 * - 77 col0 FROM tab0
----
80

query I rowsort
SELECT - col1 - + col0 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL - COUNT( * ) + MIN( ALL + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - COUNT ( * ) + MIN ( ALL + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - ( - + col0 ) IS NOT NULL OR ( NOT ( NULL ) IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-3908
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( - + col0 ) IS NOT NULL OR ( NOT ( NULL ) IS NOT NULL )
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + - col0 + + - col1 AND + + col0 * + 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT ALL - 40 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - 40 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - - col0 * ( + + col0 ) + + + 17 FROM tab2 AS cor0
----
2133
4113
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT + COUNT( - - 83 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT + COUNT ( - - 83 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 82 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 98 col0 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT - - COUNT( * ) * 30 + - + 1 + - SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT - - COUNT ( * ) * 30 + - + 1 + - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
155

query III rowsort
SELECT * FROM tab0 WHERE NOT - 32 + 30 IN ( + - col0, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3918
SELECT ALL 31 DIV - col2 AS col2, - col0 AS col1 FROM tab2
----
-1
-46
0
-64
0
-75

skipif mysql # not compatible
query II rowsort label-3918
SELECT ALL 31 / - col2 AS col2, - col0 AS col1 FROM tab2
----
-1
-46
0
-64
0
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT - + 11 + 94 - - col1 + - col0 * - - col2 FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3919
SELECT - + 11 + 94 - - col1 + - col0 * - - col2 FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 32 * col1 - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + MAX( + col0 ) * COUNT( * ) AS col0 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-3921
SELECT + MAX ( + col0 ) * COUNT ( * ) AS col0 FROM tab0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT DISTINCT - + col0 DIV - - 56 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT - + col0 / - - 56 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT + col0 * col2 * + - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-18249
-57024
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL - ( + ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - ( + ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT col2, 9 FROM tab1
----
59
9
68
9
96
9

query I rowsort
SELECT ALL - 12 + - col0 AS col2 FROM tab0
----
-109
-27
-99

query I rowsort
SELECT DISTINCT col0 * - col2 + 16 FROM tab2 AS cor0
----
-1042
-2544
-4334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col1 FROM tab1 AS cor0
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT ALL + + CAST( NULL AS SIGNED ) + + 9 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL + + CAST ( NULL AS INTEGER ) + + 9 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL + - COUNT( * ) + 21 AS col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL + - COUNT ( * ) + 21 AS col0 FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT + ( - col2 ) + - 29 * + 49 * + col0 FROM tab1 AS cor0
----
-120844
-129379
-72567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 col2 FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL - - SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - - SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - - col0 + col2 FROM tab2 AS cor0 WHERE NOT col1 > col2 * - - col1
----
104
133
69

query III rowsort
SELECT * FROM tab1 WHERE + 43 * 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 89 * + ( - + col1 ) FROM tab2
----
-4539
-5963
-6853

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT - - COUNT( * ) * COUNT( * ) AS col1, + 23 * - 52 FROM tab1 WHERE + 25 * - - col0 + - 61 + - - col2 IN ( + col0, - ( - + 69 ) + 87 * - col1 + - col1 )
----
0
-1196

skipif mysql # not compatible
query II rowsort label-3939
SELECT - - COUNT ( * ) * COUNT ( * ) AS col1, + 23 * - 52 FROM tab1 WHERE + 25 * - - col0 + - 61 + - - col2 IN ( + col0, - ( - + 69 ) + 87 * - col1 + - col1 )
----
0
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT - 51 + - MAX( ALL - 87 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3940
SELECT - 51 + - MAX ( ALL - 87 ) FROM tab2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT + COUNT( * ) DIV - COUNT( * ) + 57 AS col0 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-3941
SELECT + COUNT ( * ) / - COUNT ( * ) + 57 AS col0 FROM tab0
----
56

query I rowsort
SELECT - col1 + 52 AS col2 FROM tab1
----
38
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3943
SELECT DISTINCT 6, COUNT( * ) + + MAX( - + ( + - col2 ) ) * 45 AS col0 FROM tab2
----
6
2613

skipif mysql # not compatible
query II rowsort label-3943
SELECT DISTINCT 6, COUNT ( * ) + + MAX ( - + ( + - col2 ) ) * 45 AS col0 FROM tab2
----
6
2613

query I rowsort
SELECT ALL col1 + + 3 - - col1 AS col1 FROM tab2
----
105
137
157

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - 13 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT ALL - 23 + + MAX( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL - 23 + + MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT SUM( 51 ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3947
SELECT SUM ( 51 ) FROM tab1 AS cor0
----
153

query III rowsort
SELECT col2, 12 AS col1, - col2 FROM tab1 AS cor0
----
9 values hashing to 6993700dd8e555c5ed7dec07a693f2e1

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE ( ( NOT + col1 * + col0 - - col0 * + ( col0 ) + - col1 <= + 36 ) )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 7 + + + col0 IN ( - col2, - col2 * + col0 * 67 + + col1 + + 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT ALL + COUNT( ALL + - ( + col1 ) ) * 79 * + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + COUNT ( ALL + - ( + col1 ) ) * 79 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 69 * - 21 AS col1 FROM tab2 AS cor0
----
-1449
-1449
-1449

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 93 > NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT DISTINCT + + ( col2 ) DIV col1 * + - col2 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + + ( col2 ) / col1 * + - col2 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + SUM( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3956
SELECT + SUM ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT DISTINCT col1 DIV - - col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT col1 / - - col1 FROM tab1
----
1

query I rowsort
SELECT ALL col1 * 40 FROM tab2
----
2040
2680
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - ( - - MIN( DISTINCT col0 ) ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3959
SELECT - ( - - MIN ( DISTINCT col0 ) ) AS col1 FROM tab1
----
-51

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 * - 81 * + + col0 * + - 13, col2 AS col1 FROM tab1
----
2738853
96
7607925
59
8719893
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 <> col0 * - col2 * col2
----

query I rowsort
SELECT ALL + 68 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT + 19 + MAX( - col0 ) AS col0 FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3964
SELECT + 19 + MAX ( - col0 ) AS col0 FROM tab2 cor0
----
-27

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 80 / - + 85 + - - 40 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - col1 + + col2 * + 99 FROM tab1 AS cor0
----
5836
6685
9490

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT + 7 + + 1 DIV - col0 FROM tab2 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3967
SELECT + 7 + + 1 / - col0 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT COUNT( * ) * + 80 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-3968
SELECT COUNT ( * ) * + 80 FROM tab2
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT DISTINCT - 46 - - + 88 DIV + 36 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - 46 - - + 88 / + 36 FROM tab2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3970
SELECT ALL 7, col2 col1 FROM tab2 WHERE NOT + - CAST( - + col0 AS SIGNED ) IS NULL
----
7
23
7
40
7
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3970
SELECT ALL 7, col2 col1 FROM tab2 WHERE NOT + - CAST ( - + col0 AS INTEGER ) IS NULL
----
7
23
7
40
7
58

query I rowsort
SELECT col0 - - - 6 + - ( + 67 ) AS col0 FROM tab0 AS cor0
----
-58
14
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 96 NOT IN ( + 31 * - 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3973
SELECT COUNT( * ) - + + ( - CAST( NULL AS DECIMAL ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3973
SELECT COUNT ( * ) - + + ( - CAST ( NULL AS REAL ) ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 50 - + 42 AS col0 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT ALL + 47 - + col1 + - - ( - col1 ) + + col2 FROM tab0 AS cor0
----
-68
144
15

query II rowsort
SELECT - col1 AS col1, + 1 * col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT - - 56 * - 95 AS col1 FROM tab2 AS cor0
----
-5320
-5320
-5320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT ALL CAST( - - col2 AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT - COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3980
SELECT * FROM tab0 AS cor0 WHERE NOT 62 * CAST( NULL AS SIGNED ) > - + 46
----

skipif mysql # not compatible
query III rowsort label-3980
SELECT * FROM tab0 AS cor0 WHERE NOT 62 * CAST ( NULL AS INTEGER ) > - + 46
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 92 IS NOT NULL
----

query I rowsort
SELECT - 28 * + 33 + + + 25 FROM tab0 AS cor0
----
-899
-899
-899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 85 + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 85 + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 * + + col2 AS col0 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT + 33, col2 - - col1 + 23 + + + col1 AS col1 FROM tab2 AS cor0
----
33
148
33
215
33
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 AND 83 - - + CAST( 96 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 AND 83 - - + CAST ( 96 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col1 FROM tab2
----
-4

query I rowsort
SELECT DISTINCT - col0 * 40 FROM tab1
----
-2040
-3400
-3640

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT ALL - COUNT( * ) * + + 35 AS col0, 61 FROM tab1 WHERE + 77 IS NOT NULL
----
-105
61

skipif mysql # not compatible
query II rowsort label-3989
SELECT ALL - COUNT ( * ) * + + 35 AS col0, 61 FROM tab1 WHERE + 77 IS NOT NULL
----
-105
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3990
SELECT ALL * FROM tab0 WHERE NOT CAST( + col0 AS SIGNED ) * col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3990
SELECT ALL * FROM tab0 WHERE NOT CAST ( + col0 AS INTEGER ) * col1 IS NOT NULL
----

query I rowsort
SELECT - ( - 65 ) FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT ALL - - col1 + + - 57 + col1 FROM tab2 cor0
----
45
77
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT ALL 2 DIV + 85 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL 2 / + 85 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT DISTINCT MIN( - col0 ), COUNT( * ) * MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-97
-291

skipif mysql # not compatible
query II rowsort label-3994
SELECT DISTINCT MIN ( - col0 ), COUNT ( * ) * MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-97
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT 20 * - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3995
SELECT 20 * - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT COUNT( - 62 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3996
SELECT COUNT ( - 62 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 + + col0 / + 98 + - 7 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 + + col0 / + 98 + - 7 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT + + ( + MAX( + + 5 ) ) - + + 98 AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT + + ( + MAX ( + + 5 ) ) - + + 98 AS col1 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT DISTINCT + 79 - + col0 AS col1 FROM tab0 AS cor0
----
-18
-8
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT SUM( - - 90 ) AS col1 FROM tab1 cor0
----
270

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT SUM ( - - 90 ) AS col1 FROM tab1 cor0
----
270

query I rowsort
SELECT ALL col1 - - + col2 FROM tab2 cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT DISTINCT COUNT( ALL - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT COUNT ( ALL - col1 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 < - 16 * - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT + ( MIN( - 84 ) ) + 0 AS col1, COUNT( + col1 ) FROM tab0
----
-84
3

skipif mysql # not compatible
query II rowsort label-4005
SELECT + ( MIN ( - 84 ) ) + 0 AS col1, COUNT ( + col1 ) FROM tab0
----
-84
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col2 ) NOT BETWEEN + ( + ( + + col1 ) ) AND + 17 - + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL + 45 - - - 14 - + + COUNT( * ) + + 51 AS col0 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + 45 - - - 14 - + + COUNT ( * ) + + 51 AS col0 FROM tab0
----
79

query I rowsort
SELECT 41 + - + 24 FROM tab0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4009
SELECT DISTINCT ( col1 ), + CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4009
SELECT DISTINCT ( col1 ), + CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4010
SELECT ALL - - CAST( + SUM( + col2 ) AS SIGNED ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL - - CAST ( + SUM ( + col2 ) AS INTEGER ) FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT - + SUM( DISTINCT + + ( + + col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT - + SUM ( DISTINCT + + ( + + col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL <> - 36
----

query II rowsort
SELECT col0 AS col1, + 31 + - 12 FROM tab2
----
46
19
64
19
75
19

query II rowsort
SELECT + col0, + 63 AS col1 FROM tab2 AS cor0 WHERE NOT 46 + col0 + + col1 + 18 / col1 + col1 IS NULL
----
46
63
64
63
75
63

query I rowsort
SELECT 46 + - - 13 + + - col0 AS col1 FROM tab2 cor0
----
-16
-5
13

query I rowsort
SELECT + col2 + + 39 FROM tab1
----
107
135
98

query III rowsort
SELECT ALL * FROM tab1 WHERE + 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 60 col2 FROM tab2 WHERE NOT - 93 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - 53 * + col0 col1 FROM tab0 WHERE NULL IS NULL
----
-37365
-46110
-508959

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT 36 + + - COUNT( * ) - + - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT 36 + + - COUNT ( * ) - + - COUNT ( * ) FROM tab0
----
36

query I rowsort
SELECT DISTINCT col1 + + col0 + - - 56 AS col0 FROM tab2
----
153
197
198

query I rowsort
SELECT DISTINCT - col1 + + col0 * + 75 AS col0 FROM tab0
----
1044
6504
7274

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL + ( MAX( + col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL + ( MAX ( + col1 ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT 67 * col2 * + - 53 FROM tab2 AS cor0
----
-142040
-205958
-81673

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL - 1 * + COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - 1 * + COUNT ( * ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT - SUM( + col1 ) + + + COUNT( * ) + - - 32 AS col0 FROM tab1 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4026
SELECT - SUM ( + col1 ) + + + COUNT ( * ) + - - 32 AS col0 FROM tab1 cor0
----
-31

query I rowsort
SELECT ALL - 13 * + + col2 + + 66 FROM tab0 cor0
----
-1221
-545
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT + SUM( - - 16 ) AS col1 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-4028
SELECT + SUM ( - - 16 ) AS col1 FROM tab2 cor0
----
48

query I rowsort
SELECT - + col0 / + - col1 AS col1 FROM tab0 AS cor0 WHERE NULL = ( + - ( - 33 ) ) * + 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT ALL - col1 DIV + - col0 AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL - col1 / + - col0 AS col0 FROM tab0
----
0
0
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 90 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 / col1 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT DISTINCT + COUNT( * ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4034
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT 18 * - COUNT( * ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT 18 * - COUNT ( * ) FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4037
SELECT ALL + MAX( + - col2 ), 58 + COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
-10
58

skipif mysql # not compatible
query II rowsort label-4037
SELECT ALL + MAX ( + - col2 ), 58 + COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
-10
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT - MAX( ALL - - 45 ) FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4038
SELECT - MAX ( ALL - - 45 ) FROM tab1 AS cor0
----
-45

query I rowsort
SELECT ALL col1 * - - 85 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1785
6885
85

query II rowsort
SELECT - col2 * - - col0 AS col2, col2 * - col0 AS col0 FROM tab0 AS cor0
----
-705
-705
-870
-870
-9603
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL ( - + COUNT( + - col2 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL ( - + COUNT ( + - col2 ) ) FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * col0 * - - col0 AND + 94
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - - col2 - - - 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT CAST( - 55 AS SIGNED ) FROM tab2
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-4044
SELECT CAST ( - 55 AS INTEGER ) FROM tab2
----
-55
-55
-55

query III rowsort
SELECT * FROM tab0 WHERE - - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * - - col0 * - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + col1 col1 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT ALL col1 * - col2 * ( + + 86 ) FROM tab2
----
-100878
-264880
-334196

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL ( - - 79 ) + + + COUNT( * ) AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL ( - - 79 ) + + + COUNT ( * ) AS col2 FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL - MIN( + 75 ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - MIN ( + 75 ) FROM tab1
----
-75

query I rowsort
SELECT DISTINCT - 39 * 13 FROM tab1
----
-507

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT DISTINCT SUM( + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT SUM ( + col0 ) AS col1 FROM tab2
----
185

onlyif mysql # DIV for integer division: 
query II rowsort label-4054
SELECT ALL - + col2, 73 * col2 DIV 52 AS col0 FROM tab2 AS cor0
----
-23
32
-40
56
-58
81

skipif mysql # not compatible
query II rowsort label-4054
SELECT ALL - + col2, 73 * col2 / 52 AS col0 FROM tab2 AS cor0
----
-23
32
-40
56
-58
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4055
SELECT ALL + + col1 + - + col2 + col0 * CAST( NULL AS SIGNED ), - CAST( - + 68 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
68
NULL
68
NULL
68

skipif mysql # not compatible
query II rowsort label-4055
SELECT ALL + + col1 + - + col2 + col0 * CAST ( NULL AS INTEGER ), - CAST ( - + 68 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
68
NULL
68
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + COUNT( * ) - 49 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4056
SELECT + COUNT ( * ) - 49 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4057
SELECT DISTINCT COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT COUNT ( * ) - + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4058
SELECT * FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-4058
SELECT * FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4059
SELECT ALL 37 DIV col0 * 12 AS col0, + col1 FROM tab0
----
0
1
0
21
24
81

skipif mysql # not compatible
query II rowsort label-4059
SELECT ALL 37 / col0 * 12 AS col0, + col1 FROM tab0
----
0
1
0
21
24
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT + COUNT( * ) * + + 81 * + 94 FROM tab0
----
22842

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT + COUNT ( * ) * + + 81 * + 94 FROM tab0
----
22842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 39 col2 FROM tab0
----
3159
39
819

onlyif mysql # DIV for integer division: 
query II rowsort label-4062
SELECT ALL 3 DIV - col2, + col2 FROM tab0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-4062
SELECT ALL 3 / - col2, + col2 FROM tab0
----
0
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT SUM( DISTINCT - 89 ) AS col1 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT SUM ( DISTINCT - 89 ) AS col1 FROM tab1
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col2 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + 69 AND NULL
----

query II rowsort
SELECT col0 * + col2 AS col1, - 57 FROM tab1
----
4896
-57
5015
-57
6188
-57

query I rowsort
SELECT DISTINCT + 61 * 66 AS col1 FROM tab2
----
4026

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + 39
----

query II rowsort
SELECT ALL - 10 * 79 AS col0, 81 FROM tab1 AS cor0
----
-790
81
-790
81
-790
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - + ( + COUNT( - + col0 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4071
SELECT - + ( + COUNT ( - + col0 ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 / col2, 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT + - 92 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 36 * - + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT COUNT( * ) * + - 39 * - COUNT( * ) + + 96 + - 14 col0 FROM tab2 AS cor0
----
433

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4077
SELECT DISTINCT COUNT ( * ) * + - 39 * - COUNT ( * ) + + 96 + - 14 col0 FROM tab2 AS cor0
----
433

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - 22 - + 67
----

query I rowsort
SELECT ( - 17 ) + - col2 FROM tab0 AS cor0
----
-116
-27
-64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) <= col0 / + - col0 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 46 + + col2 AS col0 FROM tab0 AS cor0
----
-36
1
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4082
SELECT col1 + - 10 * + col1 - + col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-505
NULL
-678
NULL
-757
NULL

skipif mysql # not compatible
query II rowsort label-4082
SELECT col1 + - 10 * + col1 - + col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-505
NULL
-678
NULL
-757
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT ALL + + CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL + + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE NOT ( - ( + col2 ) IN ( col2 ) ) OR NOT + col0 * - col1 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query III rowsort label-4085
SELECT ( + 43 ) + + MIN( DISTINCT col0 ) AS col2, COUNT( * ), - - COUNT( * ) FROM tab1
----
94
3
3

skipif mysql # not compatible
query III rowsort label-4085
SELECT ( + 43 ) + + MIN ( DISTINCT col0 ) AS col2, COUNT ( * ), - - COUNT ( * ) FROM tab1
----
94
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT - ( + 24 ) col2 FROM tab1 WHERE + 76 * - CAST( NULL AS SIGNED ) * + col1 * - col0 * col2 IN ( + col1 + - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4086
SELECT - ( + 24 ) col2 FROM tab1 WHERE + 76 * - CAST ( NULL AS INTEGER ) * + col1 * - col0 * col2 IN ( + col1 + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4087
SELECT - COUNT( * ) * - MIN( 58 ) * + + 76 + - - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
13221

skipif mysql # not compatible
query I rowsort label-4087
SELECT - COUNT ( * ) * - MIN ( 58 ) * + + 76 + - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
13221

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT - - COUNT( * ) FROM tab2 WHERE - col0 + col0 * + - 47 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT - - COUNT ( * ) FROM tab2 WHERE - col0 + col0 * + - 47 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT - 0 + + MIN( DISTINCT - - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT - 0 + + MIN ( DISTINCT - - col0 ) FROM tab2
----
46

query I rowsort
SELECT DISTINCT + 58 + + 61 FROM tab2 AS cor0
----
119

query I rowsort
SELECT + col0 + - ( + col0 ) - - col1 AS col1 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) + + col2 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL - 34 + - COUNT( * ) + + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - 34 + - COUNT ( * ) + + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT COUNT( * ) + + 12 AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT COUNT ( * ) + + 12 AS col2 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL + COUNT( col2 ) * - + 40 FROM tab2 cor0
----
-120

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL + COUNT ( col2 ) * - + 40 FROM tab2 cor0
----
-120

query I rowsort
SELECT ALL - 7 + - 8 * - col2 * - 3 + 93 AS col1 FROM tab1 AS cor0
----
-1330
-1546
-2218

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4097
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4097
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT + col1 AS col1, col2 * col0 AS col2 FROM tab0 cor0
----
1
9603
21
870
81
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * - col1 col2 FROM tab1 cor0
----
-1739
-185
-518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT - col1 / + col0 - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT - col1 / + col0 - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4101
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - 43 * + - col2 FROM tab0 AS cor0
----
2021
4257
430

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT DISTINCT - - SUM( ALL 21 ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - - SUM ( ALL 21 ) FROM tab1 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL - - CAST( + col1 AS SIGNED ) + - col0 * + - 94 FROM tab1 WHERE NULL <= col0
----

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - - CAST ( + col1 AS INTEGER ) + - col0 * + - 94 FROM tab1 WHERE NULL <= col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) * - col1 IS NOT NULL
----

query I rowsort
SELECT col2 * + 16 AS col2 FROM tab1
----
1088
1536
944

query I rowsort
SELECT DISTINCT - 67 * - - 76 FROM tab1
----
-5092

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT - 33, - SUM( + - col2 ) AS col0 FROM tab2
----
-33
121

skipif mysql # not compatible
query II rowsort label-4108
SELECT - 33, - SUM ( + - col2 ) AS col0 FROM tab2
----
-33
121

query III rowsort
SELECT * FROM tab1 WHERE NOT 16 < NULL
----

query I rowsort
SELECT - 73 * - col1 FROM tab0 AS cor0
----
1533
5913
73

query I rowsort
SELECT ALL - + 42 * - 47 FROM tab0 AS cor0
----
1974
1974
1974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 46 ) * + col0 - + - col2 + + + 23 col2 FROM tab0 AS cor0
----
-3969
-4340
-620

query II rowsort
SELECT ALL - 20 AS col1, 85 * 27 + col1 * + + 60 AS col0 FROM tab1 AS cor0
----
-20
2595
-20
3135
-20
5115

query II rowsort
SELECT DISTINCT + col2 AS col2, 60 FROM tab0 AS cor0
----
10
60
47
60
99
60

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL + + COUNT( * ), - ( + - SUM( ALL - 63 ) ) AS col1 FROM tab1 WHERE + + col2 - - 35 IN ( - col1 + - + col1 * + + 45, + col2, - + 45 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL + + COUNT ( * ), - ( + - SUM ( ALL - 63 ) ) AS col1 FROM tab1 WHERE + + col2 - - 35 IN ( - col1 + - + col1 * + + 45, + col2, - + 45 )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT ALL + COUNT( * ) * - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0
----
27

query II rowsort
SELECT + ( col2 ), + 50 AS col0 FROM tab0
----
10
50
47
50
99
50

query I rowsort
SELECT DISTINCT + col2 + + - col1 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT ( ( + CAST( + MIN( ALL + col2 ) AS SIGNED ) ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4120
SELECT ( ( + CAST ( + MIN ( ALL + col2 ) AS INTEGER ) ) ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT - + COUNT( DISTINCT + col1 ) * 35 * + + COUNT( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-315

skipif mysql # not compatible
query I rowsort label-4121
SELECT - + COUNT ( DISTINCT + col1 ) * 35 * + + COUNT ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + 34 + - col2 col2 FROM tab1 AS cor0
----
111
1530
380

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL > col2 / col0 * col1 * + - 82 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT 5 * COUNT( col0 ) + - 98 AS col1 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT 5 * COUNT ( col0 ) + - 98 AS col1 FROM tab0 AS cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4125
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 87 * + col0 - + CAST( - - col1 AS SIGNED ) + + + 47 * + col1 / - + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4125
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 87 * + col0 - + CAST ( - - col1 AS INTEGER ) + + + 47 * + col1 / - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT DISTINCT COUNT( - + 36 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT COUNT ( - + 36 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL 65 * ( 54 ) FROM tab2
----
3510
3510
3510

query I rowsort
SELECT - col1 + 90 FROM tab0
----
69
89
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT 83 + - COUNT( * ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-4129
SELECT 83 + - COUNT ( * ) FROM tab1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4130
SELECT DISTINCT + col1 * - + CAST( NULL AS SIGNED ) * - + col0 + 92, col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4130
SELECT DISTINCT + col1 * - + CAST ( NULL AS INTEGER ) * - + col0 + 92, col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + col2 - col0 AND + 57
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 75 IS NULL
----

query I rowsort
SELECT + 70 + - + col0 FROM tab1 AS cor0
----
-15
-21
19

query I rowsort
SELECT + - ( + - col2 ) + + col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - + col2 - - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( - - col2 IS NOT NULL ) )
----

query I rowsort
SELECT ALL + 9 FROM tab0 WHERE NOT 72 < 89 + + ( + + 52 )
----

query I rowsort
SELECT - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col2 FROM tab1 cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col0 ) col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - col2 * - - 2 AS col0 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT col1 * + + col1 AS col1 FROM tab0
----
1
441
6561

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 86 * 91 - + col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + SUM( ALL + col1 ) * + COUNT( ALL + + col2 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-4145
SELECT + SUM ( ALL + col1 ) * + COUNT ( ALL + + col2 ) FROM tab1
----
198

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT DISTINCT CAST( NULL AS SIGNED ) * - AVG ( DISTINCT - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - col2 ) FROM tab2
----
NULL

query II rowsort
SELECT + col1, col1 FROM tab2 cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4149
SELECT - - col2 col0 FROM tab2 AS cor0 WHERE NOT + 34 * - col1 * - - col1 + + 36 + 86 + col1 / + + col2 - - 37 * + + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4149
SELECT - - col2 col0 FROM tab2 AS cor0 WHERE NOT + 34 * - col1 * - - col1 + + 36 + 86 + col1 / + + col2 - - 37 * + + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT SUM( ALL - 44 ) AS col2 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT SUM ( ALL - 44 ) AS col2 FROM tab0
----
-132

query I rowsort
SELECT ALL + col1 * + - ( + - col2 ) AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT 45 + - col0 FROM tab1 AS cor0
----
-40
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL + COUNT( * ) + + 68 AS col0 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL + COUNT ( * ) + + 68 AS col0 FROM tab1 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT + - CAST( NULL AS SIGNED ) + + col1 / - col0 * + 93 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT + - CAST ( NULL AS INTEGER ) + + col1 / - col0 * + 93 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL - MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL - MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT + 87 + ( - 74 ) * - CAST( - 48 AS SIGNED ) FROM tab0 AS cor0
----
-3465
-3465
-3465

skipif mysql # not compatible
query I rowsort label-4157
SELECT + 87 + ( - 74 ) * - CAST ( - 48 AS INTEGER ) FROM tab0 AS cor0
----
-3465
-3465
-3465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4158
SELECT * FROM tab1 AS cor0 WHERE + CAST( ( - col1 ) AS SIGNED ) <= + + 22 * - 72 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4158
SELECT * FROM tab1 AS cor0 WHERE + CAST ( ( - col1 ) AS INTEGER ) <= + + 22 * - 72 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL BETWEEN ( NULL ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL + COUNT( * ) * 15 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + COUNT ( * ) * 15 FROM tab1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL ( col2 ) DIV - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL ( col2 ) / - col1 AS col0 FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL NOT IN ( 9 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT ALL - CAST( ( + - col0 ) AS SIGNED ) + + col2 AS col1 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - CAST ( ( + - col0 ) AS INTEGER ) + + col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT - 57 + + + ( + col1 ) - col2 FROM tab2 AS cor0
----
-20
-29
-48

query I rowsort
SELECT DISTINCT col2 * - 9 + + col1 + + col1 FROM tab2 AS cor0
----
-105
-206
-388

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + col1 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2, + col2 * + - ( 59 ) AS col2 FROM tab0
----
10
-590
47
-2773
99
-5841

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - + COUNT( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4168
SELECT - + COUNT ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + 52 * - col2 + - col1 FROM tab0 AS cor0
----
-2525
-5149
-541

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL + COUNT( DISTINCT + - 52 ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4170
SELECT ALL + COUNT ( DISTINCT + - 52 ) col0 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT 75 DIV - 38 + ( + - 76 ) AS col1 FROM tab1 cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-4171
SELECT 75 / - 38 + ( + - 76 ) AS col1 FROM tab1 cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4172
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( ( col1 ) + + col2 )
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE - col2 * col2 BETWEEN col2 AND ( - 69 ) - + ( 63 )
----

query I rowsort
SELECT ALL - 67 AS col2 FROM tab0 AS cor0 WHERE 89 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 98 + 62 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT - MAX( - - col1 ) * + + 11 AS col0 FROM tab1
----
-517

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT - MAX ( - - col1 ) * + + 11 AS col0 FROM tab1
----
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4178
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4179
SELECT SUM( + col1 ), - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
195
NULL

skipif mysql # not compatible
query II rowsort label-4179
SELECT SUM ( + col1 ), - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
195
NULL

query I rowsort
SELECT DISTINCT - col0 + - 77 FROM tab0
----
-164
-174
-92

query II rowsort
SELECT - 56 * col1 * + ( - + col0 ) AS col1, - 84 FROM tab2
----
131376
-84
275968
-84
281400
-84

query I rowsort
SELECT DISTINCT - - 39 AS col1 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL - - COUNT( ALL 41 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - - COUNT ( ALL 41 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4184
SELECT + col1 * + - 33 * + col2 + - col2 DIV col1 * - 6 FROM tab1 AS cor0
----
-105462
-44316
-9669

skipif mysql # not compatible
query I rowsort label-4184
SELECT + col1 * + - 33 * + col2 + - col2 / col1 * - 6 FROM tab1 AS cor0
----
-105462
-44316
-9669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + + col1 col0 FROM tab2 AS cor0 WHERE NOT 53 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT COUNT( ALL + - 0 ) + 45 AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-4186
SELECT COUNT ( ALL + - 0 ) + 45 AS col2 FROM tab2
----
48

query I rowsort
SELECT DISTINCT + + col1 - + + 31 AS col2 FROM tab0 AS cor0
----
-10
-30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT - MAX( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4188
SELECT - MAX ( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col0 + + 91 FROM tab0 AS cor0
----
-6
4
76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - 28 * + 64 )
----

query I rowsort
SELECT col1 * + + 79 AS col2 FROM tab2 AS cor0
----
4029
5293
6083

query I rowsort
SELECT DISTINCT - col0 + col1 * + 21 AS col2 FROM tab2 AS cor0
----
1025
1332
1553

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT + CAST( - col2 AS SIGNED ) + col1 AS col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-4194
SELECT + CAST ( - col2 AS INTEGER ) + col1 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT ALL - COUNT( * ) DIV - + 21 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - COUNT ( * ) / - + 21 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT DISTINCT - AVG ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT ALL - col2 + - + 81 DIV 53 + col0 AS col0 FROM tab0
----
-3
-33
76

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - col2 + - + 81 / 53 + col0 AS col0 FROM tab0
----
-3
-33
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT ALL - col2 DIV + + col1 AS col0 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL - col2 / + + col1 AS col0 FROM tab1
----
-1
-11
-6

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN NULL AND - 11
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * + col0 + 44 col1 FROM tab0
----
-1411
-8395
-9365

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT - 21 * - MIN( DISTINCT 47 ) FROM tab2 AS cor0
----
987

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT - 21 * - MIN ( DISTINCT 47 ) FROM tab2 AS cor0
----
987

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL - ( SUM( + - col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - ( SUM ( + - col2 ) ) FROM tab0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + ( col0 ) * - - col1 - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + - MAX( ALL - col1 ) * + 92 * 31 AS col0 FROM tab2 AS cor0
----
145452

skipif mysql # not compatible
query I rowsort label-4206
SELECT + - MAX ( ALL - col1 ) * + 92 * 31 AS col0 FROM tab2 AS cor0
----
145452

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT SUM( ALL - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4207
SELECT SUM ( ALL - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT - col1 * col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4208
SELECT - col1 * col2 / + col2 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT 97 + + MIN( + col2 ) FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-4209
SELECT 97 + + MIN ( + col2 ) FROM tab0
----
107

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT + col1 BETWEEN 23 AND - 98 - + + 17 + - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 + 68 AS col0 FROM tab1
----
73
73
73

query I rowsort
SELECT + 98 * - col1 * - + col2 AS col0 FROM tab0
----
20580
373086
9702

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4213
SELECT ALL CAST( NULL AS DECIMAL ) / + col0 + - + col2 * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL CAST ( NULL AS REAL ) / + col0 + - + col2 * - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL COUNT( - + ( - col0 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL COUNT ( - + ( - col0 ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT - + MIN( - col2 ) * 46 + - - 9 FROM tab1 WHERE NOT + - col2 IS NULL
----
4425

skipif mysql # not compatible
query I rowsort label-4215
SELECT - + MIN ( - col2 ) * 46 + - - 9 FROM tab1 WHERE NOT + - col2 IS NULL
----
4425

onlyif mysql # aggregate syntax: 
query II rowsort label-4216
SELECT DISTINCT COUNT( * ) AS col2, 41 - COUNT( * ) FROM tab2 cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-4216
SELECT DISTINCT COUNT ( * ) AS col2, 41 - COUNT ( * ) FROM tab2 cor0
----
3
38

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( col1 NOT IN ( col2 + + + col0 - + + col1 * + col0 ) ) OR NULL IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col0 ) * + col2 FROM tab2 WHERE NOT + 34 * + 57 IS NULL
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT DISTINCT SUM( col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT SUM ( col1 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ( + COUNT( * ) ) AS col2 FROM tab0 WHERE 44 * 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT ( + COUNT ( * ) ) AS col2 FROM tab0 WHERE 44 * 3 IS NULL
----
0

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + COUNT( * ) * + 57 AS col1 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-4223
SELECT + COUNT ( * ) * + 57 AS col1 FROM tab1
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT 68 * col0 + + 39 DIV + col1 AS col0 FROM tab2
----
3128
4352
5100

skipif mysql # not compatible
query I rowsort label-4224
SELECT 68 * col0 + + 39 / + col1 AS col0 FROM tab2
----
3128
4352
5100

query I rowsort
SELECT DISTINCT col2 + + 51 * + col1 FROM tab1
----
2465
314
810

query I rowsort
SELECT ALL + 32 + col1 * col2 FROM tab0
----
131
242
3839

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 * - col0 - - col2 ) NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 75 * + 6 FROM tab1
----
450
450
450

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT - 65 * MIN( ALL 71 * + col0 ) AS col1 FROM tab0
----
-69225

skipif mysql # not compatible
query I rowsort label-4229
SELECT - 65 * MIN ( ALL 71 * + col0 ) AS col1 FROM tab0
----
-69225

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 68 ) IS NULL
----

query I rowsort
SELECT + col0 * + 41 AS col2 FROM tab2
----
1886
2624
3075

query I rowsort
SELECT ALL + 81 * + col2 AS col0 FROM tab1
----
4779
5508
7776

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT + 65 + MIN( 10 + 82 ) FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-4233
SELECT + 65 + MIN ( 10 + 82 ) FROM tab1
----
157

query I rowsort
SELECT DISTINCT - col2 * 5 FROM tab1
----
-295
-340
-480

query I rowsort
SELECT ALL 55 + 74 AS col1 FROM tab0
----
129
129
129

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND - 57 * 54
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col0 + col1 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + col0 * - 76 AS col1 FROM tab0
----
-1093
-6602
-7273

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN - ( 97 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4241
SELECT DISTINCT + CAST( + SUM( DISTINCT + 54 ) AS SIGNED ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + CAST ( + SUM ( DISTINCT + 54 ) AS INTEGER ) FROM tab2
----
54

query I rowsort
SELECT ALL - col2 * - 79 AS col2 FROM tab0 WHERE NOT - col1 + - 86 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT DISTINCT col2 DIV - 60 col1 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4243
SELECT DISTINCT col2 / - 60 col1 FROM tab1
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 42 - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT ( + col1 / 77 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 * col0 + 10 * - ( col0 ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - SUM( DISTINCT + col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4247
SELECT - SUM ( DISTINCT + col1 ) AS col1 FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT + 14 DIV 38 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4248
SELECT + 14 / 38 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( - col0 ) * + col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - COUNT( col2 ) - + 81 AS col1 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-4250
SELECT - COUNT ( col2 ) - + 81 AS col1 FROM tab1
----
-84

query I rowsort
SELECT DISTINCT 60 FROM tab2 WHERE + col0 * - col1 IN ( - 43 - + 46 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT - col1 DIV 46 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4252
SELECT - col1 / 46 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT - col2 DIV - 66 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4253
SELECT - col2 / - 66 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT ( + col0 ) - col2 AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4255
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4255
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 57 * + 64 FROM tab0 AS cor0
----
3648

query I rowsort
SELECT - col1 - - 24 FROM tab1 AS cor0 WHERE NOT col1 > ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + 74 NOT BETWEEN 7 * + 14 AND 13
----

query I rowsort
SELECT ALL 24 * - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 15 FROM tab1 AS cor0 WHERE ( NULL ) <> ( 9 )
----

query I rowsort
SELECT + col0 * + 33 AS col0 FROM tab2 cor0
----
1518
2112
2475

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + 63 NOT BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * + 43 col1 FROM tab2 AS cor0
----
1247
1247
1247

query I rowsort
SELECT 50 FROM tab1 cor0 WHERE NOT col2 * - ( col0 ) <= - col0 + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT + - 39 DIV + COUNT( * ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4265
SELECT + - 39 / + COUNT ( * ) FROM tab1 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4266
SELECT ALL + + col2 * CAST( - col1 DIV col0 AS SIGNED ) FROM tab2 cor0
----
-23
-40
0

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + + col2 * CAST ( - col1 / col0 AS INTEGER ) FROM tab2 cor0
----
-23
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT - col2 * + ( CAST( + col2 AS SIGNED ) * + col1 ) AS col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

skipif mysql # not compatible
query I rowsort label-4267
SELECT - col2 * + ( CAST ( + col2 AS INTEGER ) * + col1 ) AS col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

query I rowsort
SELECT DISTINCT col1 * 21 AS col1 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT ALL + col1 DIV + col0 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-4269
SELECT ALL + col1 / + col0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4270
SELECT DISTINCT + + COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT + + COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT 4 IS NOT NULL
----

query I rowsort
SELECT + 26 AS col2 FROM tab1 WHERE NOT NULL IN ( col0 + - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col2 + 81 )
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4275
SELECT - CAST( + + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT - CAST ( + + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + ( + - 83 ) * - COUNT( * ) AS col0 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-4276
SELECT + ( + - 83 ) * - COUNT ( * ) AS col0 FROM tab0
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-4277
SELECT + col1 DIV - 31 + 52 AS col1 FROM tab0
----
50
52
52

skipif mysql # not compatible
query I rowsort label-4277
SELECT + col1 / - 31 + 52 AS col1 FROM tab0
----
50
52
52

query I rowsort
SELECT DISTINCT + 29 FROM tab0 WHERE - col1 + + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4279
SELECT DISTINCT COUNT( * ) + - MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT + 72 + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT COUNT ( * ) + - MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT + 72 + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - ( + 53 ) + 47 AS col0 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - - 40 col2 FROM tab2 AS cor0
----
63
80
98

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 15 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col1 * - + 55 col0 FROM tab0
----
-24255
-360855
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT 38 DIV + 71 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT 38 / + 71 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - col0 * ( 64 ) > ( - col1 )
----

query I rowsort
SELECT ALL - + 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 - + 96 col2 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT + col1 + + col2 + + - 72 AS col2 FROM tab2 AS cor0
----
2
45
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 45 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col1 * + col1 col1 FROM tab0 AS cor0
----
2
462
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4294
SELECT * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) * 29 ) NOT BETWEEN NULL AND 13
----

skipif mysql # not compatible
query III rowsort label-4294
SELECT * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) * 29 ) NOT BETWEEN NULL AND 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT ( - + col1 ) - + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4295
SELECT ( - + col1 ) - + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 86 + + + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-131
-60
-63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) <= 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 25 AS col0 FROM tab1 AS cor0
----
-25

query I rowsort
SELECT - col1 * - 97 * - + col1 + + 99 - col0 AS col0 FROM tab1
----
-18964
-214265
-2411

query II rowsort
SELECT + col0 * + col1, + col1 AS col1 FROM tab0
----
1215
81
1827
21
97
1

query I rowsort
SELECT + 66 AS col0 FROM tab2 WHERE NOT NULL <> - - 95
----

query I rowsort
SELECT - 81 * + col1 FROM tab0
----
-1701
-6561
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL SUM( - ( + col1 ) ) FROM tab0 WHERE - col1 / - - col0 * col0 - col1 * - 4 NOT IN ( col0 )
----
-103

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL SUM ( - ( + col1 ) ) FROM tab0 WHERE - col1 / - - col0 * col0 - col1 * - 4 NOT IN ( col0 )
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT CAST( NULL AS SIGNED ) * ( - col2 ) * + 42 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT CAST ( NULL AS INTEGER ) * ( - col2 ) * + 42 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT - 48 * + + COUNT( * ) AS col0 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-4305
SELECT - 48 * + + COUNT ( * ) AS col0 FROM tab1
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT ALL ( 62 ) FROM tab2 WHERE NOT + - CAST( + - col2 AS SIGNED ) * col0 >= - 82
----

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL ( 62 ) FROM tab2 WHERE NOT + - CAST ( + - col2 AS INTEGER ) * col0 >= - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT MIN( ALL + 19 ) * 68 * COUNT( * ) FROM tab0
----
3876

skipif mysql # not compatible
query I rowsort label-4307
SELECT MIN ( ALL + 19 ) * 68 * COUNT ( * ) FROM tab0
----
3876

query I rowsort
SELECT DISTINCT - col0 * + - col0 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT - + CAST( 90 AS SIGNED ) FROM tab1 AS cor0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-4309
SELECT - + CAST ( 90 AS INTEGER ) FROM tab1 AS cor0
----
-90
-90
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( - 26 )
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE ( + 62 * - 83 / + + 31 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT MIN( ALL 75 ) * - 47 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT MIN ( ALL 75 ) * - 47 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL + + COUNT( * ) + - 43 AS col2 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL + + COUNT ( * ) + - 43 AS col2 FROM tab2 AS cor0
----
-40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 3 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT 53 * - + SUM( - - 32 ) * - 51 FROM tab0 AS cor0
----
259488

skipif mysql # not compatible
query I rowsort label-4316
SELECT 53 * - + SUM ( - - 32 ) * - 51 FROM tab0 AS cor0
----
259488

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4317
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4317
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( + + col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT DISTINCT + - COUNT( * ) * - MAX( - col1 * col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - - col1 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT + - COUNT ( * ) * - MAX ( - col1 * col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - - col1 + + col0
----
NULL

query I rowsort
SELECT - col1 + ( - + 35 ) AS col0 FROM tab0 AS cor0
----
-116
-36
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT ALL - - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL - - col0 / + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - col1 + + col0 + + - col2 FROM tab2 AS cor0
----
-28
-50
-53

query I rowsort
SELECT 4 + - col0 * + 57 + - - 9 FROM tab1 AS cor0
----
-2894
-4832
-5174

query III rowsort
SELECT * FROM tab0 WHERE ( NULL NOT IN ( 90 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT ALL MAX( ALL 8 ) * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL MAX ( ALL 8 ) * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col0 * 61 AS col2 FROM tab0 WHERE + col0 IN ( ( - - col0 ) * 50 )
----

query I rowsort
SELECT ALL 58 + ( - col1 ) FROM tab0
----
-23
37
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT ALL + col2 + col0 - + col2 DIV 87 AS col0 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + col2 + col0 - + col2 / 87 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( - 50 ) IS NULL OR NOT - col1 IN ( 93 + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4329
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( - 50 ) IS NULL OR NOT - col1 IN ( 93 + col2 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4330
SELECT + MIN( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT + MIN ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT CAST( - - ( + 36 ) AS SIGNED ) FROM tab0 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-4331
SELECT CAST ( - - ( + 36 ) AS INTEGER ) FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT ALL col2 + ( + 89 ) AS col0 FROM tab1 AS cor0
----
148
157
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - COUNT( DISTINCT 20 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4333
SELECT - COUNT ( DISTINCT 20 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT - 97 AS col2 FROM tab1 AS cor0 WHERE ( + 61 ) IS NOT NULL
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4336
SELECT + SUM( DISTINCT - + col1 ), - 37 AS col0 FROM tab1 AS cor0
----
-66
-37

skipif mysql # not compatible
query II rowsort label-4336
SELECT + SUM ( DISTINCT - + col1 ), - 37 AS col0 FROM tab1 AS cor0
----
-66
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT COUNT( CAST( + + 0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4337
SELECT COUNT ( CAST ( + + 0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - 47 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT + + col0 - + 34 + + 40 * + - col2 + col0 AS col1 FROM tab0 AS cor0 WHERE - 80 IS NOT NULL
----
-1884
-260
-3800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col0 ) - col0 col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + + ( ( + col1 ) ) + + 84, ( col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4342
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 17 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 17 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col2 col0 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT 49 * + - 0 AS col0 FROM tab0
----
0

query I rowsort
SELECT - - 98 * + - ( - col2 ) FROM tab2 AS cor0
----
2254
3920
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT 31 * COUNT( * ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT 31 * COUNT ( * ) AS col2 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + MIN( DISTINCT + + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4347
SELECT + MIN ( DISTINCT + + col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT ( + - col1 ) + + + 29 * - + ( - + 66 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - - ( COUNT( * ) ) * - + ( - COUNT( * ) ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4349
SELECT - - ( COUNT ( * ) ) * - + ( - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 84 + - col2 AS col1 FROM tab2 AS cor0
----
26
44
61

query I rowsort
SELECT - 70 * + 81 AS col2 FROM tab2 cor0
----
-5670
-5670
-5670

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * - 50
----

query I rowsort
SELECT DISTINCT - ( - 33 ) AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - COUNT( * ) * - 39 FROM tab0 cor0
----
117

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - COUNT ( * ) * - 39 FROM tab0 cor0
----
117

query I rowsort
SELECT DISTINCT + + 85 AS col2 FROM tab0 cor0
----
85

query I rowsort
SELECT DISTINCT - col1 * + - col2 AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT COUNT( * ) * - 64 * + 89 FROM tab2
----
-17088

skipif mysql # not compatible
query I rowsort label-4357
SELECT COUNT ( * ) * - 64 * + 89 FROM tab2
----
-17088

query II rowsort
SELECT col0, + 73 FROM tab0
----
15
73
87
73
97
73

query I rowsort
SELECT + col0 + - - col0 FROM tab1
----
102
170
182

query I rowsort
SELECT 43 + 38 + + - 42 + - - col2 * col2 AS col2 FROM tab1
----
3520
4663
9255

query I rowsort
SELECT 7 + - col1 AS col1 FROM tab1
----
-40
-7
2

query I rowsort
SELECT DISTINCT col1 + 56 + + + ( col2 ) AS col0 FROM tab2 AS cor0
----
130
173
181

query I rowsort
SELECT DISTINCT + 81 * - 57 AS col1 FROM tab0 cor0
----
-4617

query II rowsort
SELECT ALL 65 AS col0, 35 AS col0 FROM tab2
----
65
35
65
35
65
35

query I rowsort
SELECT DISTINCT col2 * + - col2 + - col0 FROM tab1 cor0
----
-3566
-4715
-9267

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT COUNT( ALL 74 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT COUNT ( ALL 74 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT + MAX( ALL - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT + MAX ( ALL - col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT DISTINCT - CAST( col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4368
SELECT DISTINCT - CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT + 17 * - - col0 AS col1, + 85 * col2 AS col2 FROM tab2 AS cor0
----
1088
3400
1275
4930
782
1955

query I rowsort
SELECT - 39 * + col1 * 32 FROM tab0
----
-101088
-1248
-26208

query II rowsort
SELECT DISTINCT + ( - col1 ) AS col0, col1 * + + col1 FROM tab1
----
-14
196
-47
2209
-5
25

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT - 8 * + - col1 + + 72 + - + col2 * - + col0 AS col0 FROM tab1 AS cor0
----
5080
5127
6636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT DISTINCT - 52 * CAST( + col0 AS SIGNED ) + - 18 AS col0 FROM tab2
----
-2410
-3346
-3918

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT - 52 * CAST ( + col0 AS INTEGER ) + - 18 AS col0 FROM tab2
----
-2410
-3346
-3918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 + - col1 * + - col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + - 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4377
SELECT * FROM tab2 AS cor0 WHERE col1 + + - 5 * - CAST( NULL AS SIGNED ) + - 58 + - col2 * - col1 * + + col1 * + 13 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4377
SELECT * FROM tab2 AS cor0 WHERE col1 + + - 5 * - CAST ( NULL AS INTEGER ) + - 58 + - col2 * - col1 * + + col1 * + 13 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL + 67 + COUNT( - ( - col2 ) ) * + 19 AS col0 FROM tab1 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + 67 + COUNT ( - ( - col2 ) ) * + 19 AS col0 FROM tab1 AS cor0
----
124

query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT - + 78 + 32 * + 42 * SUM( ALL + col2 ) FROM tab0 AS cor0
----
209586

skipif mysql # not compatible
query I rowsort label-4380
SELECT - + 78 + 32 * + 42 * SUM ( ALL + col2 ) FROM tab0 AS cor0
----
209586

query I rowsort
SELECT col2 + + ( + ( + - ( + 95 ) ) ) FROM tab2 AS cor0
----
-37
-55
-72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 7 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 47 + 77 AS col1 FROM tab1 cor0
----
30
30
30

query I rowsort
SELECT + col1 + - 79 AS col0 FROM tab2 AS cor0
----
-12
-2
-28

query I rowsort
SELECT DISTINCT col0 * col2 * - col0 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + COUNT( * ) * COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4386
SELECT + COUNT ( * ) * COUNT ( * ) col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT COUNT( * ) * - 67 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-4387
SELECT COUNT ( * ) * - 67 FROM tab1
----
-201

query III rowsort
SELECT * FROM tab0 WHERE + 96 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE + col2 IN ( 57 )
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE + col2 IN ( 57 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + 79 NOT BETWEEN col2 AND NULL
----
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE + 1 IS NULL
----

query I rowsort
SELECT ALL col1 * col1 + - - ( + col1 ) + - + 10 + + col1 AS col2 FROM tab2
----
2693
4613
6073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT - CAST( NULL AS SIGNED ) - + col2 + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT - CAST ( NULL AS INTEGER ) - + col2 + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - + 34 - - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4394
SELECT - + 34 - - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT DISTINCT col0 + - - 31 FROM tab0 AS cor0
----
118
128
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT + - MAX( ALL - + col2 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4396
SELECT + - MAX ( ALL - + col2 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT ALL + col0 DIV 31 - - col0 FROM tab1 AS cor0
----
52
87
93

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL + col0 / 31 - - col0 FROM tab1 AS cor0
----
52
87
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT - MIN( ALL ( 45 ) ) AS col2, + 25 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-45
25

skipif mysql # not compatible
query II rowsort label-4398
SELECT - MIN ( ALL ( 45 ) ) AS col2, + 25 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-45
25

query I rowsort
SELECT 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4400
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT - ( - col1 ) * + 8 * 8 AS col0 FROM tab1 AS cor0
----
3008
320
896

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT - COUNT( DISTINCT + + 64 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4402
SELECT - COUNT ( DISTINCT + + 64 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4404
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 * - - col2 + - - 38 + + - CAST( NULL AS SIGNED ) NOT IN ( - 90 )
----

skipif mysql # not compatible
query III rowsort label-4404
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 * - - col2 + - - 38 + + - CAST ( NULL AS INTEGER ) NOT IN ( - 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT - - MAX( col0 ) col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4405
SELECT - - MAX ( col0 ) col1 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT MAX( DISTINCT + + 19 ) / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT MAX ( DISTINCT + + 19 ) / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + MIN( + col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4407
SELECT + MIN ( + col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT ALL ( 42 ) * - 68 FROM tab0 AS cor0
----
-2856
-2856
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT ALL AVG ( ALL - CAST( NULL AS SIGNED ) ) / - 24 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL AVG ( ALL - CAST ( NULL AS INTEGER ) ) / - 24 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4410
SELECT DISTINCT + COUNT( * ) col2, - 68 / - CAST( NULL AS SIGNED ) FROM tab1
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4410
SELECT DISTINCT + COUNT ( * ) col2, - 68 / - CAST ( NULL AS INTEGER ) FROM tab1
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT - col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4411
SELECT - col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 5 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4413
SELECT * FROM tab0 WHERE NOT + ( - + col2 ) * - CAST( NULL AS SIGNED ) * + col2 * - - 64 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4413
SELECT * FROM tab0 WHERE NOT + ( - + col2 ) * - CAST ( NULL AS INTEGER ) * + col2 * - - 64 IS NULL
----

query I rowsort
SELECT col2 * - - col1 * col0 AS col2 FROM tab1
----
25075
290836
68544

query II rowsort
SELECT DISTINCT - 94, 7 * + + col1 AS col1 FROM tab1 AS cor0
----
-94
329
-94
35
-94
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT COUNT( * ) * ( 2 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4417
SELECT COUNT ( * ) * ( 2 ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + COUNT( * ) + + + MIN( + + col1 ) AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4418
SELECT + COUNT ( * ) + + + MIN ( + + col1 ) AS col2 FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT - - col2 * + + 81 * - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-281961
-374544
-746496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT - - COUNT( * ) - - CAST( NULL AS SIGNED ) + + COUNT( * ) + MAX( + 87 ) * + COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT - - COUNT ( * ) - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + MAX ( + 87 ) * + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4421
SELECT ALL + ( COUNT( * ) ), COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4421
SELECT ALL + ( COUNT ( * ) ), COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT COUNT( DISTINCT - + 49 ) col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4422
SELECT COUNT ( DISTINCT - + 49 ) col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL - 95 + SUM( - col0 ) FROM tab2 AS cor0
----
-280

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - 95 + SUM ( - col0 ) FROM tab2 AS cor0
----
-280

query I rowsort
SELECT + col2 + + - col0 FROM tab0 AS cor0 WHERE ( NULL ) = + col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL + MIN( - + 95 ) + - MAX( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + MIN ( - + 95 ) + - MAX ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-186

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col1 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * - col1 > + - col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL - COUNT( + + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - COUNT ( + + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT DISTINCT - - col1 * 25 + col1 DIV - 13 AS col0 FROM tab2 AS cor0
----
1272
1670
1920

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT - - col1 * 25 + col1 / - 13 AS col0 FROM tab2 AS cor0
----
1272
1670
1920

query I rowsort
SELECT col2 + 23 * + 80 - - col2 - + - col2 AS col0 FROM tab0
----
1870
1981
2137

query I rowsort
SELECT - 29 + + + 10 + + col0 * - col0 * col0 AS col2 FROM tab2
----
-262163
-421894
-97355

query I rowsort
SELECT DISTINCT 64 * + AVG ( DISTINCT - col2 ) FROM tab0 WHERE NOT ( col0 * - col0 ) = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT ( - + col0 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT ( - + col0 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 77 * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT 58 + + ( - COUNT( * ) ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4435
SELECT 58 + + ( - COUNT ( * ) ) FROM tab1
----
55

query I rowsort
SELECT col0 * col0 + - col1 AS col0 FROM tab0
----
144
7548
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 29 * col0 + 6 AS col1, - col2 - + col1 col2 FROM tab2 WHERE NOT + 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT + CAST( 1 AS SIGNED ) + + col0 AS col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-4438
SELECT + CAST ( 1 AS INTEGER ) + + col0 AS col1 FROM tab1
----
52
86
92

query I rowsort
SELECT - + col2 AS col1 FROM tab2 WHERE NOT + col1 * - col2 * + 21 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - 61 * COUNT( * ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-4440
SELECT - 61 * COUNT ( * ) FROM tab1
----
-183

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL <> 5 * + 97 )
----

query II rowsort
SELECT ALL - 32 * col0 AS col1, col0 * col0 + + 63 + - col2 + + col1 + - col1 AS col2 FROM tab0 cor0
----
-2784
7622
-3104
9373
-480
241

query I rowsort
SELECT DISTINCT + - col0 * + + ( col2 ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 92 + + MIN( ALL + 62 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 92 + + MIN ( ALL + 62 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT - COUNT( DISTINCT col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT - COUNT ( DISTINCT col2 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT ALL CAST( NULL AS SIGNED ) * 40 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL CAST ( NULL AS INTEGER ) * 40 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1, + 13 * - 1 * col0 * - - col0 AS col0 FROM tab1
----
14
-33813
47
-107653
5
-93925

query III rowsort
SELECT * FROM tab2 WHERE NOT + 39 <> col1 / col2 + - col2
----

query I rowsort
SELECT ALL + ( 78 ) AS col2 FROM tab0 WHERE - 87 IS NULL
----

query I rowsort
SELECT ALL - col2 * - + col0 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
-197043
-291383
-53907

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + + SUM( ALL - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4451
SELECT + + SUM ( ALL - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + COUNT( * ) col2 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-4453
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col1 * + col1 + - - 56 FROM tab0
----
497
57
6617

query I rowsort
SELECT DISTINCT col1 * - col1 + 18 AS col2 FROM tab1
----
-178
-2191
-7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT - COUNT( ALL - col1 ) + + COUNT( * ) * - - 91 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-4457
SELECT - COUNT ( ALL - col1 ) + + COUNT ( * ) * - - 91 FROM tab2 AS cor0
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT DISTINCT - col2 - + col1 DIV - + 52 * 8 + - 2 col1 FROM tab1 AS cor0
----
-61
-70
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4458
SELECT DISTINCT - col2 - + col1 / - + 52 * 8 + - 2 col1 FROM tab1 AS cor0
----
-61
-70
-98

query I rowsort
SELECT - + 56 AS col0 FROM tab2 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL + - MIN( DISTINCT + 10 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL + - MIN ( DISTINCT + 10 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT col2 * - 56 * + col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT col2 * - 56 * + col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 18 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 78 * col1 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL MAX( DISTINCT + + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL MAX ( DISTINCT + + col1 ) AS col0 FROM tab2
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4466
SELECT * FROM tab1 WHERE NULL < col2 + + col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4466
SELECT * FROM tab1 WHERE NULL < col2 + + col1 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT COUNT( * ) FROM tab0 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-4467
SELECT COUNT ( * ) FROM tab0 WHERE NULL <= col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT - - col1 - + - col1 + col1 DIV + - col2 AS col1 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-4468
SELECT - - col1 - + - col1 + col1 / + - col2 AS col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 / + 92 * - - col0 IN ( 20 - - + 99, col2 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4470
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) + - - ( + ( + 63 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - - col1 AS col1 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - - col1 AS col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + - 39
----

query II rowsort
SELECT + 78 * + - col1 * col0, - col0 AS col1 FROM tab0
----
-142506
-87
-7566
-97
-94770
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT + COUNT( 72 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4476
SELECT + COUNT ( 72 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT - - CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT - - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 54 * + 92 FROM tab2 AS cor0
----
4968
4968
4968

query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab2 AS cor0 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL - + 21 * + - SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
4767

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - + 21 * + - SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
4767

query I rowsort
SELECT + - 64 * + col2 FROM tab2 AS cor0
----
-1472
-2560
-3712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 * - 63 - - ( + + col0 ) col0 FROM tab2 AS cor0
----
-6162
-6173
-6191

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT - ( - - ( - COUNT( * ) ) ) * + 72 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-4483
SELECT - ( - - ( - COUNT ( * ) ) ) * + 72 FROM tab1 AS cor0
----
216

query I rowsort
SELECT ALL + col1 * 23 FROM tab1 AS cor0
----
1081
115
322

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT SUM( + col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-4485
SELECT SUM ( + col2 ) FROM tab1 cor0
----
223

query II rowsort
SELECT DISTINCT col0 AS col1, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT ALL + 5 AS col1 FROM tab2 cor0
----
5
5
5

query I rowsort
SELECT ALL - + 41 * 6 AS col0 FROM tab1 AS cor0
----
-246
-246
-246

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + + col0 = ( - 42 - + 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL SUM( - - 74 ) FROM tab1, tab1 AS cor0
----
666

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL SUM ( - - 74 ) FROM tab1, tab1 AS cor0
----
666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4491
SELECT + 8 + COUNT( * ) * + + ( - - CAST( NULL AS SIGNED ) ) FROM tab2, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT + 8 + COUNT ( * ) * + + ( - - CAST ( NULL AS INTEGER ) ) FROM tab2, tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT 82 * + COUNT( * ) FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
246

skipif mysql # not compatible
query I rowsort label-4492
SELECT 82 * + COUNT ( * ) FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
246

query I rowsort
SELECT 87 + col1 AS col1 FROM tab1 AS cor0
----
101
134
92

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL 31 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1375
3227
326

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT DISTINCT + MAX( col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + MAX ( col0 ) FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT COUNT( col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4497
SELECT COUNT ( col2 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 67 * - col1 FROM tab2 cor0 WHERE + 26 IS NOT NULL
----
-3417
-4489
-5159

query I rowsort
SELECT ALL 48 * - - ( - 91 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-4368
-4368
-4368

query I rowsort
SELECT ALL col0 + - 25 FROM tab1 AS cor0 WHERE ( ( NOT col2 / col1 * + col2 - + 66 * + - col0 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT + - 46 * - SUM( - 11 ) * - + 36 * + CAST( NULL AS SIGNED ) - - 92 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT + - 46 * - SUM ( - 11 ) * - + 36 * + CAST ( NULL AS INTEGER ) - - 92 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + col0 * 38 + - col2 FROM tab0 AS cor0
----
3383
3684
538

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL + COUNT( DISTINCT + col2 ) - - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL + COUNT ( DISTINCT + col2 ) - - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 72 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 - + - 10 + + 47 FROM tab2 cor0
----
-18
-7
11

query II rowsort
SELECT col1 + col1 AS col0, - col0 + + col0 AS col2 FROM tab2
----
102
0
134
0
154
0

query I rowsort
SELECT col2 + - 71 AS col0 FROM tab2
----
-13
-31
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT col2 + 59 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-4508
SELECT col2 + 59 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
59
59
59

query II rowsort
SELECT DISTINCT col0 AS col2, col1 + - col2 + + - col0 FROM tab2
----
46
-18
64
-27
75
-66

query II rowsort
SELECT ALL 73 AS col1, col2 FROM tab2 cor0
----
73
23
73
40
73
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT MAX( + - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4511
SELECT MAX ( + - col2 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT DISTINCT MAX( ALL col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT MAX ( ALL col0 ) FROM tab0
----
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 + 53 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL + SUM( DISTINCT - + ( - 97 ) ) AS col1 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL + SUM ( DISTINCT - + ( - 97 ) ) AS col1 FROM tab1 AS cor0
----
97

query II rowsort
SELECT DISTINCT + ( col2 ) AS col1, col1 FROM tab1 cor0
----
59
5
68
47
96
14

query I rowsort
SELECT + 49 + - col1 FROM tab1 AS cor0
----
2
35
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT + MAX( + 0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + MAX ( + 0 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT + col0 + - - col2 DIV - - col0 AS col1 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-4519
SELECT + col0 + - - col2 / - - col0 AS col1 FROM tab1
----
52
85
91

query I rowsort
SELECT DISTINCT - 36 * col1 AS col1 FROM tab2
----
-1836
-2412
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL - COUNT( * ) * + 49 AS col0 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - COUNT ( * ) * + 49 AS col0 FROM tab1
----
-147

query I rowsort
SELECT ALL + col1 + + 80 * + + col1 - + 67 FROM tab2
----
4064
5360
6170

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4523
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4524
SELECT ALL - col0 DIV + - col2 + + 96 * - 69 FROM tab2 AS cor0
----
-6622
-6623
-6623

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - col0 / + - col2 + + 96 * - 69 FROM tab2 AS cor0
----
-6622
-6623
-6623

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4525
SELECT + col0, - col0 * - CAST( ( - col2 ) AS SIGNED ) + - - col1, + + col2 FROM tab1 cor0
----
9 values hashing to 4efe02d104f3b5bcc67fed92c5d17850

skipif mysql # not compatible
query III rowsort label-4525
SELECT + col0, - col0 * - CAST ( ( - col2 ) AS INTEGER ) + - - col1, + + col2 FROM tab1 cor0
----
9 values hashing to 4efe02d104f3b5bcc67fed92c5d17850

query I rowsort
SELECT DISTINCT col1 * col1 * - 20 * - - col0 FROM tab2
----
-2392920
-6733500
-7589120

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT DISTINCT - + COUNT( * ) - + COUNT( * ) + + 68 * MIN( DISTINCT 75 ) * - - MAX( DISTINCT 35 ) AS col1 FROM tab1 AS cor0
----
178494

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT - + COUNT ( * ) - + COUNT ( * ) + + 68 * MIN ( DISTINCT 75 ) * - - MAX ( DISTINCT 35 ) AS col1 FROM tab1 AS cor0
----
178494

query I rowsort
SELECT ALL + - 10 + col0 FROM tab2 AS cor0
----
36
54
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + + 0 * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT + + 0 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT ALL + col0 - - + 71 + 5 * - CAST( + col1 AS SIGNED ) * + col0 * - 59 AS col0 FROM tab0 AS cor0
----
28783
358511
539123

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL + col0 - - + 71 + 5 * - CAST ( + col1 AS INTEGER ) * + col0 * - 59 AS col0 FROM tab0 AS cor0
----
28783
358511
539123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL + CAST( AVG ( ALL col0 ) AS SIGNED ) - + COUNT( * ) + - MIN( - col0 ) FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + CAST ( AVG ( ALL col0 ) AS INTEGER ) - + COUNT ( * ) + - MIN ( - col0 ) FROM tab0 AS cor0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - COUNT( * ) * - COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4533
SELECT - COUNT ( * ) * - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT + 25 - + + 14 + - + col2 FROM tab1
----
-48
-57
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 - - ( - col1 ) - - col0 + 70 * - col0 * - 93 col1 FROM tab0
----
566466
631596
97614

query I rowsort
SELECT - - col2 + - 60 - + + col0 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - 4 AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) < 25 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT - col1 DIV - + col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4538
SELECT - col1 / - + col2 FROM tab0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 56 col0 FROM tab1 cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - SUM( - + 74 ) * COUNT( * ) col0 FROM tab2 cor0
----
666

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4540
SELECT - SUM ( - + 74 ) * COUNT ( * ) col0 FROM tab2 cor0
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT - MAX( DISTINCT - - 79 ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-4541
SELECT - MAX ( DISTINCT - - 79 ) FROM tab0 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT + COUNT( + 49 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4542
SELECT + COUNT ( + 49 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 57 * - 35 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-1995

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT + COUNT( * ) AS col2, + 30 * + 19 FROM tab0
----
3
570

skipif mysql # not compatible
query II rowsort label-4545
SELECT + COUNT ( * ) AS col2, + 30 * + 19 FROM tab0
----
3
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 78 col2 FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT + COUNT( * ) * + 37 FROM tab1 cor0
----
111

skipif mysql # not compatible
query I rowsort label-4547
SELECT + COUNT ( * ) * + 37 FROM tab1 cor0
----
111

query I rowsort
SELECT col0 * col2 - - - 78 FROM tab1 AS cor0
----
4818
4937
6110

query II rowsort
SELECT DISTINCT col1 + - + col2 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
-21
-91
-54
-85
-82
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT ALL + - 62 FROM tab2 AS cor0 WHERE NOT col2 IN ( col0, col2 / + 50 + - + CAST( + + col0 AS SIGNED ) )
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL + - 62 FROM tab2 AS cor0 WHERE NOT col2 IN ( col0, col2 / + 50 + - + CAST ( + + col0 AS INTEGER ) )
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT + - MAX( - - 74 ) AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4551
SELECT + - MAX ( - - 74 ) AS col0 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL + 42 AS col1 FROM tab1 cor0
----
42
42
42

query I rowsort
SELECT - - col1 * + - col2 AS col0 FROM tab0 AS cor0 WHERE - col2 <> NULL
----

query I rowsort
SELECT - 36 * + col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * - + 92 FROM tab2
----
-4232
-5888
-6900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4556
SELECT - CAST( NULL AS SIGNED ) * col1 + 59 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT - CAST ( NULL AS INTEGER ) * col1 + 59 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 48 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - 37 + + - 92 * + MAX( DISTINCT col1 ) * - COUNT( * ) col0 FROM tab2
----
21215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4558
SELECT - 37 + + - 92 * + MAX ( DISTINCT col1 ) * - COUNT ( * ) col0 FROM tab2
----
21215

query I rowsort
SELECT + col2 + + - 58 + - col1 * + 98 FROM tab0
----
-2106
-57
-7949

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT - COUNT( * ) + 15 * - + 7 AS col1 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-4560
SELECT - COUNT ( * ) + 15 * - + 7 AS col1 FROM tab1
----
-108

query I rowsort
SELECT ALL 20 + + col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL COUNT( * ) * - + 36 FROM tab0 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL COUNT ( * ) * - + 36 FROM tab0 cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT MAX( ALL 73 ) AS col1 FROM tab1 cor0
----
73

skipif mysql # not compatible
query I rowsort label-4563
SELECT MAX ( ALL 73 ) AS col1 FROM tab1 cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT MAX( - + col0 ) FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT MAX ( - + col0 ) FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT ( NOT ( NOT col1 IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * + col0 col2 FROM tab2
----
4002
5568
6525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, 39 * - - 35 + ( + + col0 ) FROM tab0
----
15
1380
87
1452
97
1462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4568
SELECT ALL + MAX( DISTINCT + col2 ) + + CAST( + 65 AS SIGNED ) DIV COUNT( * ) AS col2 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL + MAX ( DISTINCT + col2 ) + + CAST ( + 65 AS INTEGER ) / COUNT ( * ) AS col2 FROM tab2
----
79

query I rowsort
SELECT + 64 AS col2 FROM tab0 AS cor0 WHERE - 1 / - 38 <= + col0
----
64
64
64

query I rowsort
SELECT - 26 - col0 FROM tab1 AS cor0
----
-111
-117
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = col0 * + ( - 9 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT + col0 DIV 18 + + - col0 + 94 AS col0 FROM tab2 cor0
----
23
33
50

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + col0 / 18 + + - col0 + 94 AS col0 FROM tab2 cor0
----
23
33
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT ALL - col2 + - col0 DIV 50 AS col0 FROM tab2 AS cor0
----
-23
-41
-59

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL - col2 + - col0 / 50 AS col0 FROM tab2 AS cor0
----
-23
-41
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-4574
SELECT + col0, - 10 DIV + + col0 FROM tab0 cor0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-4574
SELECT + col0, - 10 / + + col0 FROM tab0 cor0
----
15
0
87
0
97
0

query I rowsort
SELECT DISTINCT - - col0 * + 39 AS col1 FROM tab1 AS cor0
----
1989
3315
3549

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE + + 81 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ( 8 ) AS col2 FROM tab2
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT - 43 * 23 / - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT - 43 * 23 / - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT - 41 * col2 * 39 * + + col0, - col0 - - col0 AS col1 FROM tab2
----
-1691742
0
-4093440
0
-6955650
0

query I rowsort
SELECT - ( + - col2 ) FROM tab0
----
10
47
99

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT ( NULL < NULL )
----

query I rowsort
SELECT ALL + + col1 - - 74 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( + + col1 + col1 * - ( col0 ) ) < - 98 )
----
125
141
151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4584
SELECT col2 DIV + + CAST( 6 AS SIGNED ) col0 FROM tab2
----
3
6
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4584
SELECT col2 / + + CAST ( 6 AS INTEGER ) col0 FROM tab2
----
3
6
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT DISTINCT + col1 DIV - - col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + col1 / - - col2 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT DISTINCT - 38 DIV + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - 38 / + col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL - 88 + ( - MAX( ALL - col1 ) ) AS col0 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - 88 + ( - MAX ( ALL - col1 ) ) AS col0 FROM tab2 AS cor0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( 28 ) col0 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT + - col0 + 44 AS col0 FROM tab1 AS cor0
----
-41
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT + + COUNT( * ) + + + COUNT( * ) * + 79 * + ( - COUNT( * ) ) FROM tab1 cor0
----
-708

skipif mysql # not compatible
query I rowsort label-4591
SELECT + + COUNT ( * ) + + + COUNT ( * ) * + 79 * + ( - COUNT ( * ) ) FROM tab1 cor0
----
-708

query I rowsort
SELECT DISTINCT - - 17 AS col2 FROM tab0 cor0
----
17

query I rowsort
SELECT + col1 + - - 43 AS col0 FROM tab1 AS cor0
----
48
57
90

query I rowsort
SELECT + col0 * 25 * col1 - - + col2 + - 32 * 43 + + 3 AS col0 FROM tab2 AS cor0
----
121867
124310
57300

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) / - + 38 * - + col0 <= + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4596
SELECT DISTINCT 61 * COUNT( * ) DIV + 36 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT 61 * COUNT ( * ) / + 36 FROM tab2
----
5

query I rowsort
SELECT ALL col2 * - - col0 AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT + col2 DIV ( - col1 ) FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4598
SELECT + col2 / ( - col1 ) FROM tab1
----
-1
-11
-6

query II rowsort
SELECT ALL + col1 AS col1, 9 FROM tab2
----
51
9
67
9
77
9

query I rowsort
SELECT DISTINCT + col2 + - + col0 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT - 83 - + col1 FROM tab0 AS cor0
----
-104
-164
-84

query I rowsort
SELECT - 99 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col2 + + col1
----

query I rowsort
SELECT col0 - + - 54 FROM tab1 AS cor0
----
105
139
145

query I rowsort
SELECT ALL col2 - - col0 AS col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4605
SELECT DISTINCT CAST( + + MIN( ALL + 10 ) AS SIGNED ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT CAST ( + + MIN ( ALL + 10 ) AS INTEGER ) FROM tab2
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col1 FROM tab0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT col2 DIV 29 col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4607
SELECT col2 / 29 col1 FROM tab2
----
0
1
2

query I rowsort
SELECT + ( + + 24 ) FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + col2 * + 72 IS NULL
----
51
85
91

query I rowsort
SELECT + - col2 * - col1 * + col2 FROM tab2 AS cor0
----
123200
225388
26979

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * - col0 - - col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT ALL 38 * + + col1 FROM tab1
----
1786
190
532

query II rowsort
SELECT DISTINCT - col2 AS col2, 23 + - col0 AS col2 FROM tab1
----
-59
-62
-68
-68
-96
-28

query I rowsort
SELECT + ( + 74 ) * + + 29 * - col1 FROM tab0
----
-173826
-2146
-45066

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT ALL - col0 DIV + col1 + - - 79 AS col0 FROM tab2 AS cor0
----
78
79
79

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL - col0 / + col1 + - - 79 AS col0 FROM tab2 AS cor0
----
78
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL + COUNT( * ) * - 1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + COUNT ( * ) * - 1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + + col0 col2 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT ALL COUNT( * ) DIV - 64 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL COUNT ( * ) / - 64 AS col0 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 16 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4620
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 16 col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT + COUNT( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4621
SELECT + COUNT ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 70 + - - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1274
-225
-3126

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT ALL + 91 DIV + ( + col1 ) FROM tab0 AS cor0
----
1
4
91

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + 91 / + ( + col1 ) FROM tab0 AS cor0
----
1
4
91

query I rowsort
SELECT + col1 * ( 55 ) + + 47 + + col1 - + 13 * + col0 + col2 - - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-294
5841
978

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + + ( + 67 ) col2 FROM tab1 AS cor0
----
126
135
163

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT + - 96 AS col1 FROM tab2 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT - col0 + + - ( col2 ) - + - CAST( 26 AS SIGNED ) * 86 * + + ( - col1 ) - + - 92 / + col1 * col1 AS col0 FROM tab2 AS cor0 WHERE + ( + - col0 ) IN ( - + col1 )
----

skipif mysql # not compatible
query I rowsort label-4628
SELECT - col0 + + - ( col2 ) - + - CAST ( 26 AS INTEGER ) * 86 * + + ( - col1 ) - + - 92 / + col1 * col1 AS col0 FROM tab2 AS cor0 WHERE + ( + - col0 ) IN ( - + col1 )
----

query I rowsort
SELECT ALL 88 + - col2 + + 42 + + - col0 * - col2 AS col0 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 56 ) col0 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + - col0 * + 37 AS col1 FROM tab2 AS cor0 WHERE NOT 9 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - 83 + - col0 FROM tab2 AS cor0
----
19
37
8

query I rowsort
SELECT ALL 44 AS col2 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT COUNT( * ) * COUNT( + 77 ) + + 20 AS col1 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-4634
SELECT COUNT ( * ) * COUNT ( + 77 ) + + 20 AS col1 FROM tab0
----
29

query I rowsort
SELECT + 62 * - 64 FROM tab0 WHERE NULL <> NULL AND NOT + ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + - ( - col2 ) col1 FROM tab0
----
198
220
3854

query I rowsort
SELECT col0 * - col2 + - - col2 FROM tab0
----
-658
-860
-9504

query II rowsort
SELECT - col2 * - col2 - - col2 AS col1, - col2 FROM tab0 AS cor0
----
110
-10
2256
-47
9900
-99

query I rowsort
SELECT ALL - 2 + col1 AS col0 FROM tab1 AS cor0
----
12
3
45

query I rowsort
SELECT ALL - 22 * - - col1 - - - 42 FROM tab2 AS cor0
----
-1164
-1516
-1736

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4642
SELECT ALL * FROM tab1 WHERE NOT - + CAST( + + col0 AS SIGNED ) >= - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4642
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( + + col0 AS INTEGER ) >= - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + + col0 AS col0 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT col2 * col0 - + - 10 + - col0 * col1 DIV - col2 FROM tab1
----
4913
5032
6260

skipif mysql # not compatible
query I rowsort label-4644
SELECT col2 * col0 - + - 10 + - col0 * col1 / - col2 FROM tab1
----
4913
5032
6260

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT - 77 DIV + + col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4645
SELECT - 77 / + + col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4646
SELECT + CAST( NULL AS DECIMAL ) / + + col0 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-4646
SELECT + CAST ( NULL AS REAL ) / + + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - col1 / - col1 * - col0
----

query II rowsort
SELECT + + 32 * + 71 AS col2, 97 FROM tab0 AS cor0
----
2272
97
2272
97
2272
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 - + ( - + 58 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * col1 * col1 FROM tab2 cor0
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL + MIN( ALL + col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + MIN ( ALL + col1 ) FROM tab0 cor0
----
1

query II rowsort
SELECT - - 50 AS col1, + 92 AS col0 FROM tab2 AS cor0
----
50
92
50
92
50
92

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4654
SELECT - - 51 col0, + MIN( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
51
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4654
SELECT - - 51 col0, + MIN ( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
51
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + SUM( + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4655
SELECT + SUM ( + col2 ) AS col0 FROM tab0
----
156

query II rowsort
SELECT DISTINCT col1 * col0 AS col0, - col1 AS col2 FROM tab0
----
1215
-81
1827
-21
97
-1

query I rowsort
SELECT DISTINCT col0 * - 93 AS col2 FROM tab0
----
-1395
-8091
-9021

query I rowsort
SELECT ALL 35 * col0 FROM tab2
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT DISTINCT + 5 + + COUNT( * ) + - COUNT( DISTINCT + + 72 ) AS col2 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + 5 + + COUNT ( * ) + - COUNT ( DISTINCT + + 72 ) AS col2 FROM tab1
----
7

query I rowsort
SELECT ALL - 5 * 14 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT DISTINCT - - SUM( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT - - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL col1 * + col0 * + col1, - col0 + - col2 * - - col2 AS col2 FROM tab2
----
119646
-575
336675
-3439
379456
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT - ( + - MAX( + col0 ) ) + - - COUNT( * ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4663
SELECT - ( + - MAX ( + col0 ) ) + - - COUNT ( * ) FROM tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT - - 93 + col0 FROM tab1 AS cor0
----
144
178
184

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 27 FROM tab1 AS cor0
----
-13
-22
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + 54 col1 FROM tab2 AS cor0
----
-4
14
31

query I rowsort
SELECT ALL + 61 + col1 FROM tab2 AS cor0
----
112
128
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL COUNT( * ) + + 78 * + 24 + + - MAX( DISTINCT 46 ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
1829

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL COUNT ( * ) + + 78 * + 24 + + - MAX ( DISTINCT 46 ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
1829

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT DISTINCT 58 - + COUNT( * ) + - MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT 58 - + COUNT ( * ) + - MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
130

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE ( NULL BETWEEN + + 97 * + col1 + + 17 AND col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT col0 DIV + ( col1 ) FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4672
SELECT col0 / + ( col1 ) FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL + ( + COUNT( * ) ) + + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND + col0 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND + col0 + + col0
----
0

query I rowsort
SELECT col0 * - + 59 * 84 AS col2 FROM tab0
----
-431172
-480732
-74340

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT COUNT( * ) - MIN( ( col2 ) ) + + 84 col1 FROM tab2 WHERE NULL <> + + col0 + - col0 * - + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4675
SELECT COUNT ( * ) - MIN ( ( col2 ) ) + + 84 col1 FROM tab2 WHERE NULL <> + + col0 + - col0 * - + col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + - col1 ) - + col1 AS col2 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT ALL + ( + col2 ) + - col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - + col0 * - + ( col2 ) AS col2, + col0 + + 98 col1 FROM tab0 AS cor0
----
690
113
783
185
9506
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4680
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4681
SELECT ALL + - CAST( - + COUNT( * ) AS SIGNED ) - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + - CAST ( - + COUNT ( * ) AS INTEGER ) - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - col0 * + + 43 + + 86 - + + 52 FROM tab2 AS cor0
----
-100844
-211870
-216041

query I rowsort
SELECT DISTINCT - + 4 AS col1 FROM tab2 AS cor0
----
-4

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT + + 12 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4685
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL 12 AS col1 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT - 47 AS col0 FROM tab0 cor0
----
-47
-47
-47

query I rowsort
SELECT col0 * 8 FROM tab2 AS cor0
----
368
512
600

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT - - MIN( ALL + + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4690
SELECT - - MIN ( ALL + + col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) NOT BETWEEN + col2 AND + - 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT - col2 AS col0, 10, + 83 AS col0 FROM tab0
----
9 values hashing to 085c7a4435b54393584791d66798bea5

query II rowsort
SELECT DISTINCT 91, col2 FROM tab0
----
91
10
91
47
91
99

query I rowsort
SELECT DISTINCT + col2 * 35 FROM tab2
----
1400
2030
805

query I rowsort
SELECT + 84 / - - col1 * - 4 + + 52 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1 + + - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL + ( - - COUNT( * ) ) * + + 13 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL + ( - - COUNT ( * ) ) * + + 13 FROM tab2
----
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col2 + 59 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 col1, - col2 FROM tab1
----
70
-59
70
-68
70
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT + COUNT( * ) col0 FROM tab0 AS cor0 WHERE + 22 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4700
SELECT + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE + 22 IS NULL
----
0

query I rowsort
SELECT DISTINCT - ( + 28 ) AS col1 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT DISTINCT - col2 + - - col2 + - + 62 + + col2 FROM tab0 AS cor0
----
-15
-52
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT col1 DIV + + 75 - 96 FROM tab2 AS cor0
----
-95
-96
-96

skipif mysql # not compatible
query I rowsort label-4704
SELECT col1 / + + 75 - 96 FROM tab2 AS cor0
----
-95
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT ALL ( - col0 ) DIV + col2 + + col2 * - col1 col0 FROM tab1 AS cor0
----
-1344
-296
-3197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4705
SELECT ALL ( - col0 ) / + col2 + + col2 * - col1 col0 FROM tab1 AS cor0
----
-1344
-296
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT - 34 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT - 34 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
102

query I rowsort
SELECT ALL col0 - 6 AS col0 FROM tab0
----
81
9
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + 38 + + col0 * + col1 * col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT ALL - 38 DIV + 54 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL - 38 / + 54 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + + + col1 + + - 37 col2 FROM tab2
----
30
46
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 < col1
----

query I rowsort
SELECT DISTINCT col1 * + 99 * - 35 AS col1 FROM tab0
----
-280665
-3465
-72765

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT col1 DIV ( - col0 ) AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4713
SELECT col1 / ( - col0 ) AS col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT - - ( + + 30 ) FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT + ( - 35 ) FROM tab0 AS cor0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab2 WHERE + 10 IN ( + 74 * 50 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4717
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) + CAST( - COUNT( * ) + + 20 AS DECIMAL ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + CAST ( - COUNT ( * ) + + 20 AS REAL ) * - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 * col2 AS col2 FROM tab2 WHERE ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL - col2 + CAST( NULL AS SIGNED ) * + 71 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) * + 71 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT col1 DIV 2 - 60 FROM tab0
----
-20
-50
-60

skipif mysql # not compatible
query I rowsort label-4720
SELECT col1 / 2 - 60 FROM tab0
----
-20
-50
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT - MAX( ALL + 16 ) AS col2 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4721
SELECT - MAX ( ALL + 16 ) AS col2 FROM tab1
----
-16

query I rowsort
SELECT ALL + 87 AS col2 FROM tab0 WHERE NOT ( - 38 ) = col0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 30 col0 FROM tab0 WHERE NOT NULL < + ( col0 )
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE + 8 * + col0 NOT BETWEEN ( NULL ) AND 1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col0 ) - col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT - col0 DIV + col2 - col1 FROM tab1
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-4727
SELECT - col0 / + col2 - col1 FROM tab1
----
-14
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL + MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4729
SELECT ALL + COUNT( * ) DIV COUNT( * ) - 84 AS col0 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + COUNT ( * ) / COUNT ( * ) - 84 AS col0 FROM tab0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 53 col2 FROM tab1 WHERE NULL = + col0 + - ( + 8 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) < 25
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 31 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE + col1 IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) <> ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + col0 <= col1 * + ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> ( col2 )
----

query I rowsort
SELECT ALL - 12 + + 72 AS col0 FROM tab1
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT COUNT( ALL col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4739
SELECT COUNT ( ALL col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT SUM( + 76 ) col1 FROM tab2
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4740
SELECT SUM ( + 76 ) col1 FROM tab2
----
228

query III rowsort
SELECT * FROM tab1 WHERE ( 79 * 35 ) NOT BETWEEN ( - 90 ) AND ( col2 * 7 - 18 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * 91 + + col2 ) IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 = ( col0 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT ALL 55 + 42 DIV - col0 col1 FROM tab0 AS cor0
----
53
55
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4744
SELECT ALL 55 + 42 / - col0 col1 FROM tab0 AS cor0
----
53
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT - MIN( DISTINCT 76 ) AS col0 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-4745
SELECT - MIN ( DISTINCT 76 ) AS col0 FROM tab0 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4747
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4747
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT COUNT( * ) * MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT COUNT ( * ) * MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
243

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= 4 * - 43
----

query I rowsort
SELECT col2 + 58 AS col1 FROM tab1
----
117
126
154

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL MIN( DISTINCT 73 ) + + 64 FROM tab1 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL MIN ( DISTINCT 73 ) + + 64 FROM tab1 AS cor0
----
137

query I rowsort
SELECT col2 + col2 * - 57 FROM tab1 AS cor0
----
-3304
-3808
-5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 + col0 col1 FROM tab0 AS cor0
----
-10
62
72

query I rowsort
SELECT DISTINCT AVG ( - col2 ) FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 17 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4757
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 17 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 - col1 * 85 FROM tab0 AS cor0
----
-1795
-184
-6932

query I rowsort
SELECT ALL 22 FROM tab2 AS cor0 WHERE col2 NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT ALL - + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 36 + 46 FROM tab2 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 47 + - 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4765
SELECT ALL + col0 DIV - 78 - col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL + col0 / - 78 - col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT + MAX( col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4766
SELECT + MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT - + COUNT( * ) - 91 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - + COUNT ( * ) - 91 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT ALL + col2 * col1 FROM tab0 WHERE NULL >= + col1
----

query I rowsort
SELECT ALL + col0 - - ( col1 ) FROM tab0
----
108
96
98

query III rowsort
SELECT * FROM tab1 WHERE ( - 52 * 92 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 AS col0 FROM tab0 WHERE col0 / col2 IS NOT NULL
----
5
5
5

query I rowsort
SELECT - col1 + - col0 FROM tab0 WHERE NULL IS NULL
----
-108
-96
-98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 87 / + 81 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 89 col2 FROM tab0
----
-1869
-7209
-89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT + col2 DIV - + 66 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT + col2 / - + 66 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT 93 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT - + 30 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT - + 30 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT + COUNT( col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4779
SELECT + COUNT ( col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN + col1 + - col0 AND + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT - COUNT( * ) + - 79 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-88

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - COUNT ( * ) + - 79 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - 65 * COUNT( * ) * + 67 AS col2 FROM tab0
----
-13065

skipif mysql # not compatible
query I rowsort label-4783
SELECT - 65 * COUNT ( * ) * + 67 AS col2 FROM tab0
----
-13065

query I rowsort
SELECT DISTINCT + 60 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
60

query I rowsort
SELECT DISTINCT ( 83 ) * + col2 - col0 * + col2 FROM tab0 AS cor0
----
-1386
-40
3196

query I rowsort
SELECT + 25 * col2 + + 99 AS col2 FROM tab1 AS cor0
----
1574
1799
2499

query I rowsort
SELECT ALL - 81 * - col0 AS col1 FROM tab2 AS cor0
----
3726
5184
6075

query I rowsort
SELECT ALL + 54 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
54
54
54

query I rowsort
SELECT DISTINCT + ( col1 ) * 30 AS col0 FROM tab2 AS cor0
----
1530
2010
2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4790
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) / + 74 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + 74 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4791
SELECT ALL - 51 DIV + col0 - + col1 - 38 AS col0 FROM tab1 AS cor0
----
-43
-53
-85

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - 51 / + col0 - + col1 - 38 AS col0 FROM tab1 AS cor0
----
-43
-53
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
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-4792
SELECT - ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT col1 + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4793
SELECT ALL COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT col1 + - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4794
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 72 * CAST( + col1 AS SIGNED ) + - col2 IN ( col0 * + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4794
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 72 * CAST ( + col1 AS INTEGER ) + - col2 IN ( col0 * + col2 )
----
3

query I rowsort
SELECT - col1 + - col2 AS col1 FROM tab0 WHERE NOT col1 / col2 * + col2 IS NULL
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + MAX( + 63 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-4796
SELECT + MAX ( + 63 ) FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT - COUNT( * ) + COUNT( - col1 ) + - + 82 + 80 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-4797
SELECT - COUNT ( * ) + COUNT ( - col1 ) + - + 82 + 80 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + COUNT( * ) * 87 + - MIN( col2 ) AS col2 FROM tab2
----
238

skipif mysql # not compatible
query I rowsort label-4798
SELECT + COUNT ( * ) * 87 + - MIN ( col2 ) AS col2 FROM tab2
----
238

query I rowsort
SELECT col2 * + - 91 + - ( + - ( 15 ) ) AS col2 FROM tab1
----
-5354
-6173
-8721

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT + 72 + + + ( + COUNT( * ) ) * - + COUNT( - col1 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-4800
SELECT + 72 + + + ( + COUNT ( * ) ) * - + COUNT ( - col1 ) FROM tab0
----
63

query I rowsort
SELECT - - col2 + + 34 * 79 + - 67 AS col0 FROM tab2 AS cor0
----
2642
2659
2677

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT ALL - COUNT( * ) + - 0 AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - COUNT ( * ) + - 0 AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4803
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - - col0 AS DECIMAL ) + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4803
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - - col0 AS REAL ) + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - 42 AS col1 FROM tab1 cor0
----
42

query I rowsort
SELECT ALL 37 + 30 FROM tab1
----
67
67
67

query I rowsort
SELECT col1 - ( + ( ( + col2 ) ) ) - 67 * 66 FROM tab2
----
-4385
-4394
-4413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT ALL - col0 * - - CAST( NULL AS SIGNED ) + + 33 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL - col0 * - - CAST ( NULL AS INTEGER ) + + 33 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4808
SELECT DISTINCT * FROM tab2 WHERE col1 + + + CAST( + + col2 AS SIGNED ) / col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-4808
SELECT DISTINCT * FROM tab2 WHERE col1 + + + CAST ( + + col2 AS INTEGER ) / col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT col2 - + col2 DIV + ( + 50 ) AS col0 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-4809
SELECT col2 - + col2 / + ( + 50 ) AS col0 FROM tab0 AS cor0
----
10
47
98

query I rowsort
SELECT ALL - + col0 + col2 * - 8 FROM tab0 AS cor0
----
-167
-391
-889

query I rowsort
SELECT ALL 73 - + col1 FROM tab0 AS cor0
----
-8
52
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL + - col0 + - col2 + + col1 + + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
-292
-80
19

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL + - col0 + - col2 + + col1 + + col0 / - col1 AS col2 FROM tab0 AS cor0
----
-292
-80
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4813
SELECT + - col2 + - col1 * + col2, 69 + + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
-1196
NULL
-3120
NULL
-3944
NULL

skipif mysql # not compatible
query II rowsort label-4813
SELECT + - col2 + - col1 * + col2, 69 + + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
-1196
NULL
-3120
NULL
-3944
NULL

query I rowsort
SELECT DISTINCT + ( 21 ) AS col2 FROM tab1 WHERE ( + 80 ) <> 48
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT - COUNT( ALL + + 38 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT - COUNT ( ALL + + 38 ) AS col1 FROM tab0
----
-3

query II rowsort
SELECT + 77 AS col2, ( - + col2 ) AS col1 FROM tab1
----
77
-59
77
-68
77
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 * - - 77 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT col1 * CAST( col0 AS SIGNED ) - col1 * - col2 + + col2 FROM tab1 WHERE NOT col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-4818
SELECT col1 * CAST ( col0 AS INTEGER ) - col1 * - col2 + + col2 FROM tab1 WHERE NOT col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 / col0 + - 48 ) <= + col1 + + 8
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col0 ) col0, + col1 col0 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL + 66 * - 27 AS col1 FROM tab1
----
-1782
-1782
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT DISTINCT ( MAX( - 52 ) ) * - + COUNT( * ) * - - 33 AS col2 FROM tab0
----
5148

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT ( MAX ( - 52 ) ) * - + COUNT ( * ) * - - 33 AS col2 FROM tab0
----
5148

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT DISTINCT col1 * + 77 + - col2 + + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
3904
5101
5889

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT col1 * + 77 + - col2 + + col2 / + col0 AS col1 FROM tab2 AS cor0
----
3904
5101
5889

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT DISTINCT + COUNT( * ) AS col1, + 27 FROM tab1 cor0
----
3
27

skipif mysql # not compatible
query II rowsort label-4824
SELECT DISTINCT + COUNT ( * ) AS col1, + 27 FROM tab1 cor0
----
3
27

query I rowsort
SELECT ALL + 94 AS col0 FROM tab1
----
94
94
94

query I rowsort
SELECT ALL + col1 * + - col0 * - col1 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT DISTINCT + 93 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 BETWEEN - - col2 AND NULL )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - 4 + + MAX( DISTINCT - ( col2 ) ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4828
SELECT - 4 + + MAX ( DISTINCT - ( col2 ) ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT DISTINCT - - 74 FROM tab0 cor0
----
74

query I rowsort
SELECT col1 * col0 + + - col2 * + col0 FROM tab0 AS cor0
----
-9506
510
957

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT + MAX( + + col2 ) + + 61 AS col2 FROM tab2 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-4831
SELECT + MAX ( + + col2 ) + + 61 AS col2 FROM tab2 AS cor0
----
119

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 68 IS NULL
----

query I rowsort
SELECT + + col1 * col1 + col1 AS col1 FROM tab2 AS cor0
----
2652
4556
6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * - ( SUM( - 40 ) ) FROM tab0
----
360

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * - ( SUM ( - 40 ) ) FROM tab0
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT col1 DIV - + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT col1 / - + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE col0 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL MIN( - 14 ) AS col2 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL MIN ( - 14 ) AS col2 FROM tab2
----
-14

query I rowsort
SELECT ALL + col0 + + 14 FROM tab1
----
105
65
99

query II rowsort
SELECT ALL + 99 * + col1 + + col1 AS col1, + 3 * col2 - col2 * - + 87 FROM tab1
----
1400
8640
4700
6120
500
5310

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT + COUNT( * ) + + + ( - - 76 ) * - - COUNT( * ) AS col1 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT + COUNT ( * ) + + + ( - - 76 ) * - - COUNT ( * ) AS col1 FROM tab0
----
231

query I rowsort
SELECT ALL - col0 + 85 FROM tab2
----
10
21
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4842
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( - 41 AS SIGNED ) BETWEEN - col1 * - col2 AND + col1 * - col0
----

skipif mysql # not compatible
query III rowsort label-4842
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( - 41 AS INTEGER ) BETWEEN - col1 * - col2 AND + col1 * - col0
----

query I rowsort
SELECT ALL + + col1 + 91 FROM tab0 AS cor0
----
112
172
92

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * - - 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + col0 + + col1 * 5 AS col2 FROM tab1 WHERE ( - col1 = - 90 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-4845
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + col0 + + col1 * 5 AS col2 FROM tab1 WHERE ( - col1 = - 90 * + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL NOT IN ( - col0 * - col0 ) )
----

query I rowsort
SELECT ALL - 54 + + - col1 FROM tab0
----
-135
-55
-75

query I rowsort
SELECT ALL col0 + - 93 AS col2 FROM tab0 cor0
----
-6
-78
4

query I rowsort
SELECT ALL col2 - ( + - col1 ) + + col0 FROM tab2 AS cor0
----
120
181
200

query I rowsort
SELECT ALL col2 * col1 + - col1 + + 66 + - - 28 * 22 FROM tab2 AS cor0
----
1804
3685
4501

query I rowsort
SELECT ALL 42 AS col0 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT + CAST( MIN( - + 41 ) AS SIGNED ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-4852
SELECT + CAST ( MIN ( - + 41 ) AS INTEGER ) FROM tab1
----
-41

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - + 29 ) <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col1 * - + col1 col2 FROM tab0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT - COUNT( * ) * + 38 FROM tab0 cor0 WHERE NOT - 88 + + - col0 + col1 + + - 9 IS NULL
----
-114

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT - COUNT ( * ) * + 38 FROM tab0 cor0 WHERE NOT - 88 + + - col0 + col1 + + - 9 IS NULL
----
-114

query II rowsort
SELECT DISTINCT + col1 AS col2, col2 * col2 - - + 62 FROM tab2 AS cor0
----
51
591
67
3426
77
1662

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT DISTINCT - ( - + col0 ) * - 53 * + col1 + + CAST( NULL AS SIGNED ) * + 62 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT - ( - + col0 ) * - 53 * + col1 + + CAST ( NULL AS INTEGER ) * + 62 FROM tab0
----
NULL

query I rowsort
SELECT + - 47 * - col2 FROM tab0 AS cor0
----
2209
4653
470

query I rowsort
SELECT 37 * + + col1 AS col1 FROM tab1 AS cor0
----
1739
185
518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4860
SELECT DISTINCT col2 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT col2 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4861
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 * - col2 * + - 38 * CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4861
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 * - col2 * + - 38 * CAST ( - col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * + col1 * col2 + + + col0 + + - col0 AS col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT - ( + - 49 ) FROM tab0 AS cor0
----
49

query II rowsort
SELECT ALL - - 56, col2 AS col2 FROM tab2 AS cor0
----
56
23
56
40
56
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4865
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NULL = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 99 * + + col0 * - col1 col0, - 45 FROM tab1
----
-42075
-45
-423423
-45
-70686
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT DISTINCT + CAST( + 12 AS SIGNED ) * 25 AS col1 FROM tab0
----
300

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT + CAST ( + 12 AS INTEGER ) * 25 AS col1 FROM tab0
----
300

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT ALL 14 DIV 5 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL 14 / 5 FROM tab0
----
2
2
2

query I rowsort
SELECT 91 + - + col1 - ( col0 ) FROM tab1
----
-47
1
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT DISTINCT + col1 + ( + CAST( NULL AS SIGNED ) ) * - col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT + col1 + ( + CAST ( NULL AS INTEGER ) ) * - col0 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - col2 + - + col2 AS col1 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT SUM( + + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT SUM ( + + col1 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4874
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT + col2 - - ( + CAST( NULL AS SIGNED ) ) * - 96 * + 52 * CAST( + col0 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT + col2 - - ( + CAST ( NULL AS INTEGER ) ) * - 96 * + 52 * CAST ( + col0 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT DISTINCT - - MAX( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - - MAX ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL < col1
----
NULL

query I rowsort
SELECT - - 81 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
81
81
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 9 * - - col1 BETWEEN ( - col2 ) AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4880
SELECT ALL + CAST( NULL AS SIGNED ), SUM( ALL - col0 ) / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4880
SELECT ALL + CAST ( NULL AS INTEGER ), SUM ( ALL - col0 ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4881
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN col0 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4881
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN col0 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4882
SELECT ALL - col0 AS col1, + CAST( NULL AS DECIMAL ) + - 87 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4882
SELECT ALL - col0 AS col1, + CAST ( NULL AS REAL ) + - 87 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT CAST( ( - col1 ) AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4883
SELECT CAST ( ( - col1 ) AS INTEGER ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT SUM( - 40 ) AS col1 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-4884
SELECT SUM ( - 40 ) AS col1 FROM tab2
----
-120

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( ( - col0 ), - col2, - - col0 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - - col2 AS col0, col1 col1 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

query I rowsort
SELECT ALL - 69 AS col1 FROM tab0 cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4888
SELECT SUM( - 46 ) AS col2, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-138
-3

skipif mysql # not compatible
query II rowsort label-4888
SELECT SUM ( - 46 ) AS col2, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-138
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT - 50 DIV + COUNT( * ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-4889
SELECT - 50 / + COUNT ( * ) FROM tab2
----
-16

query I rowsort
SELECT ( - - col1 ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - ( + + COUNT( * ) ) + - MIN( + - col0 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-4891
SELECT - ( + + COUNT ( * ) ) + - MIN ( + - col0 ) FROM tab0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 23 + + + ( + - col1 ), - col0 col2 FROM tab1
----
-24
-91
18
-85
9
-51

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4894
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 82 ) IS NULL
----

query I rowsort
SELECT ALL - 70 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN - 15 AND - col0
----

query I rowsort
SELECT ALL - + col2 + 73 FROM tab2 AS cor0
----
15
33
50

query I rowsort
SELECT ALL + - 20 AS col0 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT COUNT( * ) col2, COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4899
SELECT COUNT ( * ) col2, COUNT ( * ) AS col0 FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT 69 * col2 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT col0 * col1 * - + 55 FROM tab2
----
-129030
-271040
-276375

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL + MAX( ALL - + ( + col1 ) ) + + - 7 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL + MAX ( ALL - + ( + col1 ) ) + + - 7 FROM tab1
----
-12

query I rowsort
SELECT ALL - col2 * - - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 32 * + 5 + - - col1 FROM tab0
----
161
181
241

query I rowsort
SELECT DISTINCT col0 * + 80 AS col1 FROM tab1
----
4080
6800
7280

query I rowsort
SELECT DISTINCT 42 * - - col1 FROM tab0
----
3402
42
882

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col2 ) + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4908
SELECT ALL 99 DIV + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-11

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL 99 / + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT ALL + 54 DIV + col0 AS col1 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL + 54 / + col0 AS col1 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4910
SELECT DISTINCT SUM( ALL - 54 ) DIV - + 37 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT SUM ( ALL - 54 ) / - + 37 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT - ( + + COUNT( * ) ) + 94 * + 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7605

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT - ( + + COUNT ( * ) ) + 94 * + 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7605

query II rowsort
SELECT - col2 * + col2 AS col1, - col1 * col2 + + col2 * - + col2 FROM tab0 cor0
----
-100
-310
-2209
-6016
-9801
-9900

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - - COUNT( DISTINCT + 73 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4913
SELECT - - COUNT ( DISTINCT + 73 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL COUNT( DISTINCT + + col1 ) AS col1 FROM tab1 WHERE ( ( + ( col1 ) ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL COUNT ( DISTINCT + + col1 ) AS col1 FROM tab1 WHERE ( ( + ( col1 ) ) IS NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col2 AS col1 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT - 54 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4917
SELECT - COUNT( * ) AS col1, + 17 FROM tab2
----
-3
17

skipif mysql # not compatible
query II rowsort label-4917
SELECT - COUNT ( * ) AS col1, + 17 FROM tab2
----
-3
17

query I rowsort
SELECT + col2 * + 63 FROM tab0
----
2961
6237
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab1 WHERE + col0 - + 94 < + 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT ALL + 78 * - 34 AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-2652
-9

skipif mysql # not compatible
query II rowsort label-4921
SELECT ALL + 78 * - 34 AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-2652
-9

query I rowsort
SELECT DISTINCT 3 * 48 + 65 FROM tab2 AS cor0
----
209

query I rowsort
SELECT DISTINCT - + 9 + col2 + + - 10 FROM tab0 AS cor0
----
-9
28
80

query I rowsort
SELECT ALL 92 * col2 FROM tab1 AS cor0
----
5428
6256
8832

query I rowsort
SELECT + 25 * - + 34 + - 52 + - 56 FROM tab0 cor0
----
-958
-958
-958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4926
SELECT + CAST( NULL AS SIGNED ) + - - MIN( DISTINCT - + 45 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT + CAST ( NULL AS INTEGER ) + - - MIN ( DISTINCT - + 45 ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * 10 + 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 1 ) AS col1 FROM tab2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4929
SELECT ( col1 ) * col2 + - + 39 + col2 AS col1, CAST( NULL AS DECIMAL ) / - - col1 FROM tab2
----
1157
NULL
3081
NULL
3905
NULL

skipif mysql # not compatible
query II rowsort label-4929
SELECT ( col1 ) * col2 + - + 39 + col2 AS col1, CAST ( NULL AS REAL ) / - - col1 FROM tab2
----
1157
NULL
3081
NULL
3905
NULL

query I rowsort
SELECT ALL 33 + - col1 + 91 AS col2 FROM tab1
----
110
119
77

query I rowsort
SELECT ALL ( - 47 ) FROM tab1
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ALL + COUNT( * ) + + 90 col0 FROM tab0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4932
SELECT ALL + COUNT ( * ) + + 90 col0 FROM tab0
----
93

query I rowsort
SELECT DISTINCT - col2 + + - 45 AS col1 FROM tab0 AS cor0
----
-144
-55
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col0 AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT + 85 - - 59 FROM tab0 cor0
----
144

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND + col1
----

query I rowsort
SELECT ALL ( - 19 ) * - 82 FROM tab2
----
1558
1558
1558

query I rowsort
SELECT 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT - COUNT( + col2 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4939
SELECT - COUNT ( + col2 ) col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 45 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4941
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - col0 / col2 AND - - CAST( - + col0 AS SIGNED ) - col1
----

skipif mysql # not compatible
query III rowsort label-4941
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - col0 / col2 AND - - CAST ( - + col0 AS INTEGER ) - col1
----

query I rowsort
SELECT ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT DISTINCT + MIN( - 52 ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT + MIN ( - 52 ) FROM tab1 AS cor0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4944
SELECT - COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4944
SELECT - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT + COUNT( * ) AS col2, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4945
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL COUNT( * ) * COUNT( * ) * - MIN( - col1 ) col0 FROM tab0
----
729

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4946
SELECT ALL COUNT ( * ) * COUNT ( * ) * - MIN ( - col1 ) col0 FROM tab0
----
729

onlyif mysql # DIV for integer division: 
query I rowsort label-4947
SELECT ALL col1 DIV - 3 col0 FROM tab0
----
-27
-7
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4947
SELECT ALL col1 / - 3 col0 FROM tab0
----
-27
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT COUNT( col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT COUNT ( col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT 25 + + COUNT( * ) AS col2 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT 25 + + COUNT ( * ) AS col2 FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4951
SELECT + COUNT( + col0 ), 71 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4951
SELECT + COUNT ( + col0 ), 71 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
3
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - 50 * MAX( col1 ) FROM tab1 AS cor0
----
-2350

skipif mysql # not compatible
query I rowsort label-4953
SELECT - 50 * MAX ( col1 ) FROM tab1 AS cor0
----
-2350

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT + 30 + + MIN( ALL - col1 ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT + 30 + + MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 25 ) * - col1 BETWEEN NULL AND 9 * - 20
----

query I rowsort
SELECT + 53 * - col0 + 64 + - col0 AS col2 FROM tab2
----
-2420
-3392
-3986

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + 67
----

query I rowsort
SELECT col1 + - ( - 86 ) FROM tab0 AS cor0
----
107
167
87

query II rowsort
SELECT DISTINCT - col2 AS col0, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT + ( - + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + 87 + - ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 20 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + + col1 + 39 FROM tab1 AS cor0
----
44
53
86

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE - 2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + ( + - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT SUM( ALL + 17 ), + 49 AS col0 FROM tab1
----
51
49

skipif mysql # not compatible
query II rowsort label-4966
SELECT SUM ( ALL + 17 ), + 49 AS col0 FROM tab1
----
51
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col1 col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - ( 36 ) * - COUNT( col2 ) AS col0 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-4968
SELECT - ( 36 ) * - COUNT ( col2 ) AS col0 FROM tab0
----
108

query I rowsort
SELECT ALL - 50 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-50
-50
-50

query III rowsort
SELECT * FROM tab0 WHERE NOT 3 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + ( - COUNT( * ) ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4971
SELECT + ( - COUNT ( * ) ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4972
SELECT ALL - ( - col0 ) col2 FROM tab0 WHERE - - CAST( NULL AS DECIMAL ) - - col2 * - + col0 >= - 14 / - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4972
SELECT ALL - ( - col0 ) col2 FROM tab0 WHERE - - CAST ( NULL AS REAL ) - - col2 * - + col0 >= - 14 / - col0
----

query I rowsort
SELECT 62 * + + 77 AS col2 FROM tab2 AS cor0
----
4774
4774
4774

query I rowsort
SELECT DISTINCT - col2 * - col2 * + + ( + - ( + col2 ) ) FROM tab1 AS cor0
----
-205379
-314432
-884736

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4976
SELECT + - ( + 57 ) DIV + col1 FROM tab0 AS cor0
----
-2
-57
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT + - ( + 57 ) / + col1 FROM tab0 AS cor0
----
-2
-57
0

query I rowsort
SELECT ( 51 ) AS col0 FROM tab1 cor0
----
51
51
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + + 67
----

query I rowsort
SELECT DISTINCT col1 * + + 57 AS col1 FROM tab2
----
2907
3819
4389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL COUNT( * ) * 29 / + CAST( NULL AS SIGNED ) + + 66 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL COUNT ( * ) * 29 / + CAST ( NULL AS INTEGER ) + + 66 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT MIN( - 69 ) AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT MIN ( - 69 ) AS col2 FROM tab0
----
-69

query I rowsort
SELECT + 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + 50 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + + col1 - - 36 + ( - + col2 ) FROM tab0 AS cor0
----
-62
47
70

query I rowsort
SELECT DISTINCT - 88 - - + col2 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-30
-48
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT DISTINCT 72 + + + COUNT( * ) + + + 99 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT 72 + + + COUNT ( * ) + + + 99 FROM tab0 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT MAX( + + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT MAX ( + + col2 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + - col1 + + - col2 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL 55 * + SUM( col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * + + col1 AND + 59 - + + col0 * - 33 * + col2 * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL 55 * + SUM ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * + + col1 AND + 59 - + + col0 * - 33 * + col2 * 77
----
NULL

query I rowsort
SELECT DISTINCT col2 * + col1 + - - col2 + - - 69 + col1 - - col0 FROM tab0 AS cor0 WHERE NOT col1 / - - col2 IS NULL
----
365
397
4019

query I rowsort
SELECT ALL 71 * - col1 - 96 FROM tab0
----
-1587
-167
-5847

query III rowsort
SELECT ALL * FROM tab0 WHERE - 40 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + + col1 - + + col2 col2 FROM tab2
----
56
75
84

query II rowsort
SELECT ALL + 32 AS col1, + col0 AS col0 FROM tab1
----
32
51
32
85
32
91

query II rowsort
SELECT col0, 7 FROM tab0
----
15
7
87
7
97
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT DISTINCT SUM( ( - col2 ) ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT SUM ( ( - col2 ) ) FROM tab2 cor0
----
-121

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT - COUNT( * ) * - COUNT( * ) AS col0, 87 FROM tab1
----
9
87

skipif mysql # not compatible
query II rowsort label-4998
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0, 87 FROM tab1
----
9
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT MAX( + 36 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4999
SELECT MAX ( + 36 ) FROM tab2
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 <> - - ( - 41 )
----

query I rowsort
SELECT DISTINCT + 40 + - col0 FROM tab0 AS cor0
----
-47
-57
25

query I rowsort
SELECT DISTINCT 20 FROM tab1 cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL + + ( + COUNT( col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + + ( + COUNT ( col1 ) ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 42 + - col0, + col1 col0 FROM tab0 AS cor0
----
-45
21
-55
1
27
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT + - 29 + COUNT( * ) * + 99 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
-29

skipif mysql # not compatible
query I rowsort label-5005
SELECT + - 29 + COUNT ( * ) * + 99 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT SUM( + 72 ) col1 FROM tab1
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5006
SELECT SUM ( + 72 ) col1 FROM tab1
----
216

query I rowsort
SELECT ALL 74 AS col1 FROM tab1 WHERE NOT + 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + + col0 + + + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + + col0 + + + col1 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 WHERE + 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT + 10 + + COUNT( * ) + + MAX( DISTINCT 6 ) AS col1 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + 10 + + COUNT ( * ) + + MAX ( DISTINCT 6 ) AS col1 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL SUM( DISTINCT + col0 ) + - - 13 AS col1 FROM tab1 cor0
----
240

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL SUM ( DISTINCT + col0 ) + - - 13 AS col1 FROM tab1 cor0
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL - + 61 * - ( col2 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - + 61 * - ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + col2 AS col1 FROM tab0 cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT - 64 + - + 2 - col1 * + 1 + 22 FROM tab1
----
-49
-58
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5015
SELECT ALL + ( + col2 ) DIV 7 + - ( - col0 ) + + col0 - - ( + 57 ) AS col1 FROM tab0
----
232
265
93

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + ( + col2 ) / 7 + - ( - col0 ) + + col0 - - ( + 57 ) AS col1 FROM tab0
----
232
265
93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT - - MAX( col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5017
SELECT - - MAX ( col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5018
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - + SUM( - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5020
SELECT - + SUM ( - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5021
SELECT DISTINCT 45 + - - 72 AS col2, - CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
117
15
117
87
117
97

skipif mysql # not compatible
query II rowsort label-5021
SELECT DISTINCT 45 + - - 72 AS col2, - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
117
15
117
87
117
97

query I rowsort
SELECT - 25 - + 17 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5023
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + - 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT COUNT( * ) * + 66 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-5025
SELECT COUNT ( * ) * + 66 FROM tab0
----
198

query I rowsort
SELECT - + 69 AS col0 FROM tab1 AS cor0
----
-69
-69
-69

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query II rowsort
SELECT DISTINCT - col1, col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5029
SELECT DISTINCT + MIN( ( - + 39 ) ) DIV COUNT( * ) col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5029
SELECT DISTINCT + MIN ( ( - + 39 ) ) / COUNT ( * ) col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT COUNT( * ) * 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT COUNT ( * ) * 93 FROM tab0
----
279

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 < + 65 + + col0 + + ( - + 72 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - - ( + + SUM( DISTINCT - 79 ) ) AS col1 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - - ( + + SUM ( DISTINCT - 79 ) ) AS col1 FROM tab2 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT - - SUM( ALL - 62 ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-5033
SELECT - - SUM ( ALL - 62 ) FROM tab0 AS cor0
----
-186

query II rowsort
SELECT col1, col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL - + 16 AS col2 FROM tab1 AS cor0
----
-16
-16
-16

query II rowsort
SELECT DISTINCT - col2 AS col0, col1 AS col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query II rowsort
SELECT - + col0 * - - 40, 57 * - col0 FROM tab2 WHERE + - col0 * - col2 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT col1 + - + 31 * + - 75 FROM tab2
----
2376
2392
2402

query I rowsort
SELECT ALL col1 + - col1 + - + ( - - col2 ) * + col2 * - col1 FROM tab1
----
129024
17405
217328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5040
SELECT DISTINCT + col1 * col1 * - - col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT + col1 * col1 * - - col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT col0 * + col2 + + col2 * + col0, - col2 * - - ( - ( - + col1 ) ) AS col0 FROM tab2
----
2116
-1173
5120
-3080
8700
-3886

query III rowsort
SELECT * FROM tab0 WHERE 54 - + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5043
SELECT CAST( NULL AS SIGNED ) - + MAX( + + col0 ) * COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT CAST ( NULL AS INTEGER ) - + MAX ( + + col0 ) * COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL 76 * + MAX( + col0 ) * 48 * 94 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL 76 * + MAX ( + col0 ) * 48 * 94 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * + - col2 - col2 col0 FROM tab2
----
1403
2440
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL + MAX( - col1 ) col1 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5046
SELECT ALL + MAX ( - col1 ) col1 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT + 26 + + COUNT( * ) AS col1 FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-5047
SELECT + 26 + + COUNT ( * ) AS col1 FROM tab2 cor0
----
29

query I rowsort
SELECT ALL - col0 + 51 + - - col1 AS col2 FROM tab0 AS cor0
----
-15
-45
117

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col0 <> + 23
----

query I rowsort
SELECT DISTINCT - 6 * - col1 AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE + ( - col0 ) + - 48 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + + col2 > + col1
----
46
51
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5053
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL + 32 * - ( - ( COUNT( * ) ) ) AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + 32 * - ( - ( COUNT ( * ) ) ) AS col0 FROM tab2
----
96

query I rowsort
SELECT col0 * + 61 AS col2 FROM tab0
----
5307
5917
915

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT + MAX( DISTINCT col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT + MAX ( DISTINCT col0 ) AS col2 FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-5057
SELECT + ( + col0 ) * + + 81 * - + 52 * 0 DIV - col1 AS col0, - 46 AS col1 FROM tab2
----
0
-46
0
-46
0
-46

skipif mysql # not compatible
query II rowsort label-5057
SELECT + ( + col0 ) * + + 81 * - + 52 * 0 / - col1 AS col0, - 46 AS col1 FROM tab2
----
0
-46
0
-46
0
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT MAX( ALL + + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5058
SELECT MAX ( ALL + + col2 ) FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN NULL AND - + col1 * - 47
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5060
SELECT 96 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT 96 * - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 68 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 < 48
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT - COUNT( * ) * + MIN( + + 16 ) + - MAX( ALL col2 ) FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - COUNT ( * ) * + MIN ( + + 16 ) + - MAX ( ALL col2 ) FROM tab0 AS cor0
----
-147

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5064
SELECT + + col2 DIV - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5064
SELECT + + col2 / - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT ALL + 94 * + - col2 FROM tab0 WHERE NOT + + 52 IS NULL
----
-4418
-9306
-940

query I rowsort
SELECT 72 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT ALL + + 15 + 85 + col1 DIV - 7 FROM tab2 cor0
----
89
91
93

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + + 15 + 85 + col1 / - 7 FROM tab2 cor0
----
89
91
93

query I rowsort
SELECT col1 + col1 + + + col2 * 78 FROM tab2 AS cor0
----
1896
3274
4658

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col1 * - ( - 21 ) + 16 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT CAST( + col2 AS SIGNED ) + col0 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-5070
SELECT CAST ( + col2 AS INTEGER ) + col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - 15 + - col1 AS col2 FROM tab1 AS cor0
----
-20
-29
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ( + + 96 ) + - COUNT( * ) * + - 66 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-5072
SELECT ( + + 96 ) + - COUNT ( * ) * + - 66 FROM tab2 AS cor0
----
294

query I rowsort
SELECT + ( - 35 ) AS col1 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT ( col0 ) * col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - col1 * + + 79 * + col2 + - + col1 FROM tab0
----
-16611
-300834
-7822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col2 + col0 AS col1 FROM tab1
----
51
147
85
144
91
159

query I rowsort
SELECT ALL + 17 + + + 92 * - - col0 - - col2 * ( col2 ) FROM tab0
----
18742
3606
8121

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5078
SELECT + 35 AS col0, - CAST( NULL AS DECIMAL ) * + - col0 FROM tab0
----
35
NULL
35
NULL
35
NULL

skipif mysql # not compatible
query II rowsort label-5078
SELECT + 35 AS col0, - CAST ( NULL AS REAL ) * + - col0 FROM tab0
----
35
NULL
35
NULL
35
NULL

query I rowsort
SELECT DISTINCT - col0 + + + col0 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT COUNT( * ) + - 63 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT COUNT ( * ) + - 63 FROM tab0
----
-60

query I rowsort
SELECT DISTINCT - - col0 + - + ( + - 29 ) * - - col1 * - col1 AS col1 FROM tab0 AS cor0
----
-12702
-190254
68

query I rowsort
SELECT - 39 + col0 FROM tab0 AS cor0
----
-24
48
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT - CAST( NULL AS SIGNED ) + + - 46 - + col2 / 96 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT - CAST ( NULL AS INTEGER ) + + - 46 - + col2 / 96 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + + col1 + - col1 AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL - ( COUNT( * ) ) * COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL - ( COUNT ( * ) ) * COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL COUNT( * ) + + SUM( col1 ) AS col2 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL COUNT ( * ) + + SUM ( col1 ) AS col2 FROM tab0
----
106

query I rowsort
SELECT - col1 * + - 86 FROM tab2 cor0
----
4386
5762
6622

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT + col0 DIV + col2 col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5089
SELECT + col0 / + col2 col1 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT col0 * col1 * - - col0 AS col2 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT + ( + + 10 ) AS col2 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT ALL + + SUM( ALL + col2 ) AS col1, - 12 AS col2 FROM tab1 AS cor0
----
223
-12

skipif mysql # not compatible
query II rowsort label-5092
SELECT ALL + + SUM ( ALL + col2 ) AS col1, - 12 AS col2 FROM tab1 AS cor0
----
223
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT ALL 42 DIV + - col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL 42 / + - col0 FROM tab0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT COUNT( * ) FROM tab0 WHERE NOT 80 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5094
SELECT COUNT ( * ) FROM tab0 WHERE NOT 80 IS NOT NULL
----
0

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT col1 = + + col0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - - 90 AND NULL
----

query I rowsort
SELECT ALL col0 * + + col0 AS col1 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT - - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5098
SELECT - - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT ALL + + 43 DIV - col0 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL + + 43 / - col0 AS col0 FROM tab0 AS cor0
----
-2
0
0

query II rowsort
SELECT DISTINCT col1, 15 * + ( - + col2 ) * + 77 + + + 9 FROM tab1
----
14
-110871
47
-78531
5
-68136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT DISTINCT + 78 + - + CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
-21
31
68

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + 78 + - + CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
-21
31
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 12, 39 col0 FROM tab0 AS cor0
----
-12
39
-12
39
-12
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col1, col2 col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT + col0 * + + col0 FROM tab0 AS cor0
----
225
7569
9409

query II rowsort
SELECT ALL col0, - col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - 63 ) AS col2 FROM tab1 cor0
----
63

query II rowsort
SELECT DISTINCT + col0 + - col1, + 36 AS col0 FROM tab2 AS cor0
----
-13
36
-5
36
8
36

query I rowsort
SELECT + 81 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
4977
5096
6269

query I rowsort
SELECT col0 + + col1 + + 60 FROM tab2 AS cor0
----
157
201
202

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL COUNT( * ) + - - COUNT( * ) FROM tab1, tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL COUNT ( * ) + - - COUNT ( * ) FROM tab1, tab0 cor0
----
18

query I rowsort
SELECT + 68 + + col2 AS col0 FROM tab0
----
115
167
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 = - + 31 - - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NOT ( NOT NULL IS NOT NULL ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col2 / + col0 * - - 37 + 71 * - + col2 / - col0 + - col1 NOT BETWEEN NULL AND 70 )
----

query I rowsort
SELECT col1 + - - col2 AS col0 FROM tab0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - 19, + 20 col1 FROM tab0
----
-4
20
68
20
78
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT - SUM( - 69 ) col0 FROM tab2 cor0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5117
SELECT - SUM ( - 69 ) col0 FROM tab2 cor0
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT ALL - + CAST( + COUNT( * ) AS SIGNED ) + + 76 AS col1 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) + + 76 AS col1 FROM tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT - 10 + + 45 FROM tab0 AS cor0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT ALL - ( col1 ) + - 55 DIV + ( - + 11 ) AS col0 FROM tab2 AS cor0
----
-46
-62
-72

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL - ( col1 ) + - 55 / + ( - + 11 ) AS col0 FROM tab2 AS cor0
----
-46
-62
-72

query II rowsort
SELECT DISTINCT col2, - col1 - + 36 FROM tab0
----
10
-57
47
-117
99
-37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5122
SELECT DISTINCT col2 * CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT col2 * CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT col1 = - 63
----
51
85
91

query I rowsort
SELECT 76 * - 32 FROM tab2 AS cor0
----
-2432
-2432
-2432

query I rowsort
SELECT ALL col2 * - col0 * + col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT + - col0 * - + col2 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - col1 <> - 42 )
----

query I rowsort
SELECT ALL col1 * + col0 - - col2 AS col2 FROM tab0 cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----
0

query I rowsort
SELECT DISTINCT + + 58 AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL MAX( + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL MAX ( + col0 ) FROM tab2
----
75

query II rowsort
SELECT + ( + col2 ) AS col2, col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT - col2 * + - col1 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT + ( 39 ) AS col1 FROM tab0 WHERE - - 89 >= + + col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5137
SELECT DISTINCT SUM( DISTINCT + + col1 ) AS col0, CAST( NULL AS SIGNED ) / + 24 FROM tab1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-5137
SELECT DISTINCT SUM ( DISTINCT + + col1 ) AS col0, CAST ( NULL AS INTEGER ) / + 24 FROM tab1
----
66
NULL

query I rowsort
SELECT ALL col2 * col1 * - col0 AS col0 FROM tab2
----
-197120
-291450
-53958

query II rowsort
SELECT - ( 95 ), - col2 * + - 2 AS col0 FROM tab1
----
-95
118
-95
136
-95
192

query I rowsort
SELECT DISTINCT ( 36 ) FROM tab1 WHERE NOT - 14 <= ( - 81 )
----
36

query I rowsort
SELECT ALL + ( - 75 ) * - + col2 AS col2 FROM tab1 cor0
----
4425
5100
7200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5142
SELECT COUNT( * ) DIV - 69 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT COUNT ( * ) / - 69 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT + MAX( DISTINCT + + 9 ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT + MAX ( DISTINCT + + 9 ) FROM tab1 cor0
----
9

query I rowsort
SELECT - ( 12 ) AS col1 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT col2 * - - col1 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5146
SELECT ALL + + CAST( - + 98 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL + + CAST ( - + 98 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query II rowsort
SELECT ALL + 59 AS col1, col2 FROM tab2
----
59
23
59
40
59
58

query I rowsort
SELECT ALL 60 + + - col1 * - - 41 FROM tab1 AS cor0
----
-145
-1867
-514

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT - COUNT( * ) + - 8 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5149
SELECT - COUNT ( * ) + - 8 FROM tab0 AS cor0
----
-11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND - 98
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT + col2 DIV + + col0 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5151
SELECT + col2 / + + col0 + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL - col1 - 46 + - 46 AS col2 FROM tab2 AS cor0
----
-143
-159
-169

query I rowsort
SELECT ALL col2 * - - col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col2 + - + col2 * col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-200
-3760
0

query I rowsort
SELECT + col1 * 79 * 48 FROM tab1 AS cor0
----
178224
18960
53088

query II rowsort
SELECT ALL - col0 AS col2, + 5 FROM tab1
----
-51
5
-85
5
-91
5

query I rowsort
SELECT DISTINCT col1 + + + 2 * - col0 FROM tab0
----
-153
-193
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT + COUNT( * ) * 31 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + COUNT ( * ) * 31 FROM tab1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT DISTINCT 16 + col1 DIV + 50 FROM tab0
----
16
17

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT 16 + col1 / + 50 FROM tab0
----
16
17

query I rowsort
SELECT col2 * + col0 * - col1 + - - 68 FROM tab2 AS cor0
----
-197052
-291382
-53890

query I rowsort
SELECT DISTINCT - - ( col1 ) + + 68 AS col2 FROM tab1 AS cor0
----
115
73
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT + CAST( NULL AS SIGNED ) + - + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT + CAST ( NULL AS INTEGER ) + - + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - col1, 37 AS col2 FROM tab0 AS cor0
----
-1
37
-21
37
-81
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5166
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

query I rowsort
SELECT DISTINCT - 52 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-52

query I rowsort
SELECT ALL + 83 * col1 - 71 + + 98 FROM tab1 AS cor0
----
1189
3928
442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT - + CAST( NULL AS SIGNED ) * + AVG ( ALL + ( - 69 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT - + CAST ( NULL AS INTEGER ) * + AVG ( ALL + ( - 69 ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5170
SELECT + col1 * CAST( NULL AS DECIMAL ) * + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT + col1 * CAST ( NULL AS REAL ) * + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5173
SELECT * FROM tab2 WHERE NOT + col0 + + col1 < - + 51 * + - ( + - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5173
SELECT * FROM tab2 WHERE NOT + col0 + + col1 < - + 51 * + - ( + - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT 48 AS col2, COUNT( * ) AS col2 FROM tab1
----
48
3

skipif mysql # not compatible
query II rowsort label-5174
SELECT 48 AS col2, COUNT ( * ) AS col2 FROM tab1
----
48
3

query II rowsort
SELECT col0, - col2 * - col2 AS col2 FROM tab2
----
46
529
64
1600
75
3364

query I rowsort
SELECT DISTINCT col0 + - col1 + ( + - col1 ) - - ( - + col2 ) * + - col0 AS col1 FROM tab2
----
1002
2470
4291

query I rowsort
SELECT + 82 + 23 AS col2 FROM tab1 cor0
----
105
105
105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5178
SELECT ALL * FROM tab0 WHERE NOT col0 + 10 <> + 8 - - 8 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5178
SELECT ALL * FROM tab0 WHERE NOT col0 + 10 <> + 8 - - 8 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT + ( COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5179
SELECT DISTINCT + ( COUNT ( * ) ) col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 3 * 63 AS col2 FROM tab1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT COUNT( col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5181
SELECT COUNT ( col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT COUNT( * ) - MIN( col0 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-5182
SELECT COUNT ( * ) - MIN ( col0 ) FROM tab2
----
-43

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND ( 3 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 44 * col2 AS col2 FROM tab0
----
-2068
-4356
-440

query I rowsort
SELECT col2 + - 2 AS col2 FROM tab0 WHERE + 29 <= ( + 17 * - col2 )
----

query I rowsort
SELECT DISTINCT + col0 * + ( 89 ) AS col1 FROM tab0
----
1335
7743
8633

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) <= col1 * - 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT ALL 95 DIV + col2 col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5188
SELECT ALL 95 / + col2 col1 FROM tab2
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col1 FROM tab1
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 BETWEEN - 81 AND NULL
----

query I rowsort
SELECT ALL - 61 - 35 AS col0 FROM tab1
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT + col0 DIV ( 48 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5192
SELECT + col0 / ( 48 ) FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT DISTINCT + col1 * + ( - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + col1 * + ( - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE - 95 * + col2 + col2 NOT IN ( - col0 * + 13 )
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + ( - 26 ) AS col0 FROM tab2
----
-26

query I rowsort
SELECT col2 * - 62 AS col1 FROM tab1
----
-3658
-4216
-5952

query I rowsort
SELECT ( + 17 ) * + 65 AS col1 FROM tab0
----
1105
1105
1105

query I rowsort
SELECT col0 * + 94 FROM tab2
----
4324
6016
7050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5199
SELECT COUNT( CAST( - col1 AS SIGNED ) ) AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5199
SELECT COUNT ( CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + 25 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 30 ) col0 FROM tab0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT - COUNT( - 33 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5202
SELECT - COUNT ( - 33 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT + COUNT( ALL col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5203
SELECT + COUNT ( ALL col0 ) FROM tab0
----
3

query I rowsort
SELECT ALL 46 FROM tab1 WHERE NOT - col1 < ( 42 * - 74 )
----
46
46
46

query I rowsort
SELECT DISTINCT 74 FROM tab2 cor0
----
74

query I rowsort
SELECT DISTINCT - 1 * 62 + - col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-121
-130
-158

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 = + col0 * - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - AVG ( col1 ) col1 FROM tab2 WHERE NOT ( + 7 * 71 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col0 * + 40 <= 11
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT ALL + CAST( + 66 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL + CAST ( + 66 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5214
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > ( + CAST( NULL AS SIGNED ) + 7 )
----

skipif mysql # not compatible
query III rowsort label-5214
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > ( + CAST ( NULL AS INTEGER ) + 7 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 62 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ( ( - COUNT( - col0 ) ) ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5216
SELECT ( ( - COUNT ( - col0 ) ) ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - ( ( - col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - 24 * - 78 AS col1 FROM tab2 AS cor0
----
1872
1872
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT COUNT( - col1 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5219
SELECT COUNT ( - col1 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - + 33 * SUM( - col1 + col1 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5220
SELECT - + 33 * SUM ( - col1 + col1 ) FROM tab1 cor0
----
0

query I rowsort
SELECT ALL col1 + + col2 - - col1 * + col1 FROM tab2
----
2675
4614
6046

query I rowsort
SELECT ALL col2 + + + ( col2 ) FROM tab1
----
118
136
192

query I rowsort
SELECT ALL col1 + + - col2 + col0 FROM tab1
----
-31
31
70

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 39 * + col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT + + COUNT( DISTINCT - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5227
SELECT + + COUNT ( DISTINCT - col2 ) FROM tab2 cor0
----
3

query I rowsort
SELECT + 70 + + col2 FROM tab0 AS cor0
----
117
169
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL + 88 * + COUNT( * ) FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL + 88 * + COUNT ( * ) FROM tab2 AS cor0
----
264

query I rowsort
SELECT ( - col0 ) + - 53 * - 59 FROM tab0 AS cor0
----
3030
3040
3112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5231
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 63 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT - ( COUNT( * ) ) + - 23 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-5233
SELECT - ( COUNT ( * ) ) + - 23 FROM tab0
----
-26

query I rowsort
SELECT DISTINCT + col1 * + 41 AS col1 FROM tab1
----
1927
205
574

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT - SUM( ALL 57 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-513

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT - SUM ( ALL 57 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-513

query I rowsort
SELECT DISTINCT - + 57 + - + 9 AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5237
SELECT ALL - + 59 * - 86 * 70 + CAST( NULL AS SIGNED ) - - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL - + 59 * - 86 * 70 + CAST ( NULL AS INTEGER ) - - col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 88 ) FROM tab0 AS cor0 WHERE NULL < 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab2 AS cor0 WHERE ( 27 ) NOT IN ( - ( - 49 ) )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 2 ) < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT ALL - col2 DIV - - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL - col2 / - - col0 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT - col0 - + col2 * col2 FROM tab1 AS cor0
----
-3566
-4715
-9267

query I rowsort
SELECT + - 45 + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
19
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 22 < NULL
----

query I rowsort
SELECT ALL - col1 * col1 * - 27 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT - - COUNT( - + col2 ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT - - COUNT ( - + col2 ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
0

query I rowsort
SELECT DISTINCT 32 * + col1 * + col2 * + - 60 FROM tab0 AS cor0
----
-190080
-403200
-7309440

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE + 99 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT CAST( - CAST( 14 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-5249
SELECT CAST ( - CAST ( 14 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT ALL - 15 * col2 AS col0 FROM tab2 AS cor0
----
-345
-600
-870

query I rowsort
SELECT - ( - + ( + col0 ) ) FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT ( - 38 ) FROM tab1
----
-38

query I rowsort
SELECT ALL 72 * - col0 AS col2 FROM tab2
----
-3312
-4608
-5400

query I rowsort
SELECT ALL col1 + + ( - - ( + ( + + 10 ) ) ) + + ( col1 - ( col0 + col0 * ( col1 ) ) ) FROM tab0 AS cor0
----
-1058
-182
-1862

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT MAX( DISTINCT + - 27 ) AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5256
SELECT MAX ( DISTINCT + - 27 ) AS col1 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( col1 * col1 + + 71 + + col1 ) < - col1 * + 1
----
51
67
77

query I rowsort
SELECT + col2 * + col2 + + col0 * - - col1 * col2 FROM tab0 AS cor0
----
18370
19404
59314

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 - col0 ) AND NULL
----

query I rowsort
SELECT - 1 * + + col0 * col1 + - col2 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-1072
-1122
-1771

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - col0
----

query I rowsort
SELECT ALL + - col0 + 88 + - 53 * + col2 FROM tab2 AS cor0
----
-1177
-2096
-3061

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = + 57 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT + + 70 DIV + col2 AS col0 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-5264
SELECT + + 70 / + col2 AS col0 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT col2 * - - 78 AS col0 FROM tab0 AS cor0
----
3666
7722
780

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 90 col0 FROM tab1 AS cor0
----
4590
7650
8190

query I rowsort
SELECT ALL ( + 54 ) * + 99 FROM tab1 WHERE - - 3 * + col0 / + 23 NOT IN ( + col0 * ( + col1 + - col0 ) + + 58 * - col1 )
----
5346
5346
5346

query I rowsort
SELECT ALL + + ( + + col1 ) FROM tab2 WHERE NOT NULL < - + col1 * - col0
----

query II rowsort
SELECT DISTINCT + col1 AS col0, + col0 * + - col1 FROM tab1
----
14
-714
47
-4277
5
-425

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT col1 DIV - + ( + 88 ) * - col2 - - 98 + + col2 AS col1 FROM tab1
----
157
166
194

skipif mysql # not compatible
query I rowsort label-5271
SELECT col1 / - + ( + 88 ) * - col2 - - 98 + + col2 AS col1 FROM tab1
----
157
166
194

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5272
SELECT ALL * FROM tab2 WHERE + + CAST( + + 18 AS SIGNED ) BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5272
SELECT ALL * FROM tab2 WHERE + + CAST ( + + 18 AS INTEGER ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT + col0 * col0 + + + 80 AS col2 FROM tab2
----
2196
4176
5705

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5274
SELECT + col0 DIV + - 60 + + col2 + + + ( + CAST( - 59 AS SIGNED ) ) FROM tab1 AS cor0
----
-1
37
8

skipif mysql # not compatible
query I rowsort label-5274
SELECT + col0 / + - 60 + + col2 + + + ( + CAST ( - 59 AS INTEGER ) ) FROM tab1 AS cor0
----
-1
37
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT - - COUNT( * ) + + + COUNT( * ), - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6
-3

skipif mysql # not compatible
query II rowsort label-5275
SELECT - - COUNT ( * ) + + + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5276
SELECT ALL + 80 + + 87 + COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL + 80 + + 87 + COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT CAST( NULL AS SIGNED ) + + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5277
SELECT CAST ( NULL AS INTEGER ) + + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 + - col0 col0 FROM tab1 AS cor0
----
-52
-86
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - COUNT( * ) * - MAX( DISTINCT ( 25 ) ) * - 24 AS col0 FROM tab0 WHERE NOT NULL > + 22 AND NOT - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT - COUNT ( * ) * - MAX ( DISTINCT ( 25 ) ) * - 24 AS col0 FROM tab0 WHERE NOT NULL > + 22 AND NOT - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 83 BETWEEN - 12 AND ( + col2 )
----

query II rowsort
SELECT + col2 - 53 AS col1, + 83 FROM tab0 AS cor0
----
-43
83
-6
83
46
83

query I rowsort
SELECT - - col1 - - - col0 + 1 FROM tab1 cor0
----
-36
-43
-79

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE 0 * col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5286
SELECT * FROM tab0 AS cor0 WHERE + CAST( + col2 AS DECIMAL ) > - - 0 * + col2 - col1 + + - ( + 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5286
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + col2 AS REAL ) > - - 0 * + col2 - col1 + + - ( + 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE ( ( + col0 * + 48 - - col2 + - col0 * 72 ) < ( NULL ) )
----

query I rowsort
SELECT - 80 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, col1 - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 7 IS NULL
----

query I rowsort
SELECT 30 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 59 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + col0 * + 65 FROM tab1
----
3315
5525
5915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL + SUM( DISTINCT 76 ) * + AVG ( DISTINCT - col1 ) col2 FROM tab1 WHERE NOT - col0 * col0 + + - col2 NOT IN ( col2 + + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5294
SELECT ALL + SUM ( DISTINCT 76 ) * + AVG ( DISTINCT - col1 ) col2 FROM tab1 WHERE NOT - col0 * col0 + + - col2 NOT IN ( col2 + + col0 )
----
NULL

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL - 35 * + COUNT( * ) FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL - 35 * + COUNT ( * ) FROM tab1
----
-105

query II rowsort
SELECT ALL 81, + 36 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT + + 20 + - MAX( ALL 29 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5298
SELECT + + 20 + - MAX ( ALL 29 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT + - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5299
SELECT + - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 96 + + col2 AS col2 FROM tab2 AS cor0
----
119
136
154

query I rowsort
SELECT + col2 + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND col1 * - col1 * - col2 + + + 58 + + - col2 * col0 + - 34
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + col0 * col0 * 41 IS NOT NULL
----

query I rowsort
SELECT - col0 * - - 6 + - 52 FROM tab0 AS cor0
----
-142
-574
-634

query I rowsort
SELECT ALL col2 * - - col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT col1 + + 58 FROM tab0 AS cor0
----
139
59
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT - + 93 DIV - col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5306
SELECT - + 93 / - col0 FROM tab2 AS cor0
----
1
1
2

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + + col2 + - + 40 NOT IN ( + + 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * ( - col2 ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - ( - - col0 ) AS col2 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT DISTINCT - 80, col1 FROM tab0
----
-80
1
-80
21
-80
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL >= col1
----
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL >= col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5312
SELECT - 95 AS col1, + CAST( AVG ( DISTINCT - col2 ) AS SIGNED ) FROM tab0
----
-95
-52

skipif mysql # not compatible
query II rowsort label-5312
SELECT - 95 AS col1, + CAST ( AVG ( DISTINCT - col2 ) AS INTEGER ) FROM tab0
----
-95
-52

query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( - + col0 * + 26 + 29 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 8 col0 FROM tab0
----
-7
13
73

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 BETWEEN ( - 41 * - + col0 + + col2 + + col2 - 23 * col0 ) AND 1
----

query I rowsort
SELECT DISTINCT - - 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
97

query I rowsort
SELECT + ( + col2 ) * + ( - col0 ) * 15 FROM tab2 WHERE - col1 <= NULL
----

query I rowsort
SELECT ALL + col2 + - 51 FROM tab0
----
-4
-41
48

query I rowsort
SELECT col0 * + - col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - + 91 AS col1 FROM tab2 AS cor0
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT - - col1 DIV - 92 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5321
SELECT - - col1 / - 92 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( 69 ) AS col1 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT - - 56 AS col1 FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT - COUNT( + - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5324
SELECT - COUNT ( + - col2 ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col1 FROM tab2
----
94
94
94

query I rowsort
SELECT ALL - 75 * - - 43 FROM tab0
----
-3225
-3225
-3225

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT NULL < col1 + + ( - ( col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( - col0 * col1 >= - col0 ) )
----

query I rowsort
SELECT DISTINCT - 98 * - - 89 AS col0 FROM tab1 AS cor0
----
-8722

query I rowsort
SELECT DISTINCT + col0 * - + col1 * + + 30 FROM tab0 AS cor0
----
-2910
-36450
-54810

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 4 BETWEEN col2 AND - col1 * - 22
----
3

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 4 BETWEEN col2 AND - col1 * - 22
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 61 IS NULL
----

query II rowsort
SELECT 17 AS col2, - 24 FROM tab0
----
17
-24
17
-24
17
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT + - col0 * + + col1 - - CAST( + + 53 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2293
-4875
-4972

skipif mysql # not compatible
query I rowsort label-5334
SELECT + - col0 * + + col1 - - CAST ( + + 53 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2293
-4875
-4972

query I rowsort
SELECT ALL ( + col0 ) FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 54 + ( - + 90 ) BETWEEN - 53 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 + col2 col2 FROM tab1 AS cor0
----
101
64
73

query II rowsort
SELECT col1 AS col0, 20 AS col0 FROM tab2 AS cor0
----
51
20
67
20
77
20

query II rowsort
SELECT - + col0, - 48 AS col1 FROM tab0 AS cor0
----
-15
-48
-87
-48
-97
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT + 47 DIV col2 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5340
SELECT + 47 / col2 AS col1 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT ALL + ( + CAST( + 25 AS SIGNED ) ) FROM tab2 cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL + ( + CAST ( + 25 AS INTEGER ) ) FROM tab2 cor0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT DISTINCT - 97 * col0 DIV - 5 FROM tab1 AS cor0
----
1649
1765
989

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT - 97 * col0 / - 5 FROM tab1 AS cor0
----
1649
1765
989

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - ( 8 ) ) * 85 IS NOT NULL
----

query I rowsort
SELECT + col0 + - 36 FROM tab1
----
15
49
55

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 79
----

query II rowsort
SELECT DISTINCT + 50 + + - 18 AS col1, col0 AS col1 FROM tab1
----
32
51
32
85
32
91

query III rowsort
SELECT * FROM tab2 WHERE + 56 * 38 NOT BETWEEN NULL AND ( - col2 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + 21 AS col0 FROM tab2
----
67
85
96

query I rowsort
SELECT ALL col1 + 36 FROM tab2 AS cor0
----
103
113
87

query I rowsort
SELECT DISTINCT - 25 - - col1 AS col0 FROM tab2 AS cor0
----
26
42
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5351
SELECT DISTINCT + 56 - - COUNT( * ) AS col0, 99 FROM tab2 AS cor0
----
59
99

skipif mysql # not compatible
query II rowsort label-5351
SELECT DISTINCT + 56 - - COUNT ( * ) AS col0, 99 FROM tab2 AS cor0
----
59
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT - COUNT( * ) * + MAX( - col0 ) + - + MIN( DISTINCT + col2 ) + + + 3 + - MIN( + 6 ) AS col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT - COUNT ( * ) * + MAX ( - col0 ) + - + MIN ( DISTINCT + col2 ) + + + 3 + - MIN ( + 6 ) AS col0 FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5353
SELECT DISTINCT + 62 - - COUNT( * ) DIV + 27 FROM tab0 cor0
----
62

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT + 62 - - COUNT ( * ) / + 27 FROM tab0 cor0
----
62

query I rowsort
SELECT DISTINCT - 92 * + col0 AS col0 FROM tab2 WHERE NOT ( NOT - col1 IS NULL )
----

query II rowsort
SELECT 8, col1 FROM tab2
----
8
51
8
67
8
77

query I rowsort
SELECT - col0 * - - col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + + ( + 50 ) FROM tab0 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT + MAX( - 16 ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5358
SELECT + MAX ( - 16 ) FROM tab0 AS cor0
----
-16

query II rowsort
SELECT DISTINCT - + col0 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query II rowsort
SELECT DISTINCT + - col2, 93 AS col1 FROM tab2 cor0
----
-23
93
-40
93
-58
93

query II rowsort
SELECT ALL col1 AS col2, - 80 AS col0 FROM tab0 cor0
----
1
-80
21
-80
81
-80

query I rowsort
SELECT DISTINCT + + 15 AS col1 FROM tab2 AS cor0
----
15

query II rowsort
SELECT ALL - 40, col0 FROM tab0
----
-40
15
-40
87
-40
97

query II rowsort
SELECT 87, col0 FROM tab0
----
87
15
87
87
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-5365
SELECT DISTINCT + col2 DIV - - 63 AS col0, 62 FROM tab0 WHERE 81 * - 41 NOT BETWEEN + col2 AND + col0 * - - col2
----
0
62
1
62

skipif mysql # not compatible
query II rowsort label-5365
SELECT DISTINCT + col2 / - - 63 AS col0, 62 FROM tab0 WHERE 81 * - 41 NOT BETWEEN + col2 AND + col0 * - - col2
----
0
62
1
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col2 + - col0 col0 FROM tab2
----
23
-23
40
-24
58
-17

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + - + 90 - + 74 * + col2 IS NULL
----

query II rowsort
SELECT DISTINCT - 71 AS col2, col1 FROM tab1
----
-71
14
-71
47
-71
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL col2 AS col2, - 7 FROM tab1
----
59
-7
68
-7
96
-7

query I rowsort
SELECT ALL - col1 * + 25 AS col2 FROM tab1 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * + col1 * - 17 AS col1 FROM tab0
----
-1649
-20655
-31059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 83, + col2 * + col1 * + - col2 col2 FROM tab2 AS cor0
----
83
-123200
83
-225388
83
-26979

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5374
SELECT - col0 AS col1, + CAST( + col2 AS SIGNED ) * - 29 + + 15 + ( - - col2 ) * ( - col1 ) + + col0 + 86 * + 74 * + col0 - 22 AS col2 FROM tab1 AS cor0
----
-51
320480
-85
539012
-91
574040

skipif mysql # not compatible
query II rowsort label-5374
SELECT - col0 AS col1, + CAST ( + col2 AS INTEGER ) * - 29 + + 15 + ( - - col2 ) * ( - col1 ) + + col0 + 86 * + 74 * + col0 - 22 AS col2 FROM tab1 AS cor0
----
-51
320480
-85
539012
-91
574040

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT 68 + MAX( - col1 ) AS col0 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-5375
SELECT 68 + MAX ( - col1 ) AS col0 FROM tab0
----
67

query III rowsort
SELECT * FROM tab0 WHERE + 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 56 + + col2 AS col1 FROM tab2 AS cor0
----
114
79
96

query I rowsort
SELECT - + 21 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT col1 - col0 / - + col1 - - + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col0 FROM tab1 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - 14 * - 41 AS col0 FROM tab2
----
574

query I rowsort
SELECT 95 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT + 28 * - col2 FROM tab2
----
-1120
-1624
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT - AVG ( ALL col2 ) + - COUNT( * ) FROM tab0 WHERE ( ( col1 ) NOT BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - AVG ( ALL col2 ) + - COUNT ( * ) FROM tab0 WHERE ( ( col1 ) NOT BETWEEN NULL AND NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - 9 * - col1 * + col0 + - col2 + - + ( + col1 ) + - 89 NOT IN ( col2 * - - col2 + ( 42 ) * - 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 52 * - - col2 * - + col2 + col2 FROM tab2 cor0
----
-174870
-27485
-83160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 13 + + - 21 * - col2 col1 FROM tab2 AS cor0
----
1081
1672
2193

query I rowsort
SELECT + col0 - col0 AS col0 FROM tab0 AS cor0 WHERE - 57 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT ALL - 43 DIV col0 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - 43 / col0 AS col0 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5390
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + + CAST( + + 26 AS DECIMAL ) + - 5 >= - 84
----

skipif mysql # not compatible
query III rowsort label-5390
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + + CAST ( + + 26 AS REAL ) + - 5 >= - 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT + CAST( 35 AS SIGNED ) FROM tab0 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-5391
SELECT + CAST ( 35 AS INTEGER ) FROM tab0 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 54 * 19 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5392
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 54 * 19 IS NULL
----
-9

query I rowsort
SELECT - 46 AS col0 FROM tab0 cor0
----
-46
-46
-46

query I rowsort
SELECT + 10 * + - col1 * - 56 AS col1 FROM tab0 AS cor0
----
11760
45360
560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5395
SELECT - + COUNT( * ) DIV - - 14 + - 83 AS col0 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5395
SELECT - + COUNT ( * ) / - - 14 + - 83 AS col0 FROM tab0 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL - COUNT( * ) + + COUNT( + - 37 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL >= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - COUNT ( * ) + + COUNT ( + - 37 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL >= NULL )
----
0

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + - 23 IS NOT NULL
----

query I rowsort
SELECT - ( - 88 ) FROM tab2
----
88
88
88

query I rowsort
SELECT + + 25 FROM tab2 WHERE NOT col2 IS NULL
----
25
25
25

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - 86 * col0 FROM tab1
----
-4386
-7310
-7826

query I rowsort
SELECT - + 70 FROM tab0 AS cor0 WHERE NOT + col0 >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 + - ( - col2 ) col1 FROM tab2 AS cor0
----
-12
-29
6

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5405
SELECT - + 38, 20 * - + COUNT( - 27 ) AS col0 FROM tab0 AS cor0
----
-38
-60

skipif mysql # not compatible
query II rowsort label-5405
SELECT - + 38, 20 * - + COUNT ( - 27 ) AS col0 FROM tab0 AS cor0
----
-38
-60

query I rowsort
SELECT ALL 90 + + 75 * - - 64 AS col0 FROM tab1 AS cor0
----
4890
4890
4890

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT + ( + COUNT( ALL col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5407
SELECT + ( + COUNT ( ALL col0 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col0 * - + 78 AS col2 FROM tab0 AS cor0
----
-1170
-6786
-7566

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <= - 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT - MIN( col1 ) + + COUNT( * ) * + COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5410
SELECT - MIN ( col1 ) + + COUNT ( * ) * + COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + - 57 - - - col1 IS NOT NULL
----

query I rowsort
SELECT 65 + + 38 + - col1 AS col2 FROM tab0
----
102
22
82

query I rowsort
SELECT - 28 + col2 AS col2 FROM tab2
----
-5
12
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - ( + - 61 ) + - + MIN( + 48 ) AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5414
SELECT - ( + - 61 ) + - + MIN ( + 48 ) AS col2 FROM tab2
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col0 FROM tab1
----
-41
-41
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5416
SELECT - 43 DIV + + 94 + col0 AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 43 / + + 94 + col0 AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - 7 * 12 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT - 29 * + 49 * 4 AS col2 FROM tab0
----
-5684
-5684
-5684

query I rowsort
SELECT + 95 * + 42 AS col2 FROM tab0
----
3990
3990
3990

query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab1 cor0
----
-87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5423
SELECT ALL + - col2 AS col1, col1 * - CAST( 32 AS SIGNED ) + + - 34 AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-5423
SELECT ALL + - col2 AS col1, col1 * - CAST ( 32 AS INTEGER ) + + - 34 AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 63, col1 col1 FROM tab0 cor0
----
63
1
63
21
63
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT DISTINCT col1 DIV - 58 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT col1 / - 58 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT col1 DIV col2 * + col2 AS col2 FROM tab0
----
0
20
47

skipif mysql # not compatible
query I rowsort label-5426
SELECT col1 / col2 * + col2 AS col2 FROM tab0
----
0
20
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col2 FROM tab2
----
71
71
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT - MIN( DISTINCT - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5428
SELECT - MIN ( DISTINCT - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col1 FROM tab0
----
55
55
55

query I rowsort
SELECT ALL + 59 FROM tab1 AS cor0 WHERE - col0 * + + col0 IS NOT NULL
----
59
59
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT ALL - - MIN( 61 ) DIV - + SUM( ALL + + col2 ) * - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - - MIN ( 61 ) / - + SUM ( ALL + + col2 ) * - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( 74 ) AS col0 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT ( + + 50 ) AS col0 FROM tab2 AS cor0
----
50

query I rowsort
SELECT ALL + - 5 FROM tab0 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT + 7 DIV - col1 AS col1 FROM tab0 WHERE - + 57 IS NOT NULL
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT + 7 / - col1 AS col1 FROM tab0 WHERE - + 57 IS NOT NULL
----
-7
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 + - 18 col0 FROM tab2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT ALL + col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL + col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 71 - + - col2 AS col0 FROM tab1 AS cor0
----
130
139
167

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE + col2 * - + col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + + 62 - + col0 AS col0 FROM tab0 AS cor0
----
-25
-35
47

query I rowsort
SELECT col2 * + 9 AS col1 FROM tab1 AS cor0
----
531
612
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + 83 col2 FROM tab1
----
7885
7885
7885

query II rowsort
SELECT ALL + 29 AS col0, + col2 + + 8 AS col1 FROM tab0
----
29
107
29
18
29
55

query II rowsort
SELECT ALL col1, - 52 + col2 + - col1 FROM tab0
----
1
46
21
-63
81
-86

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - 37 / 81 + + col0 AND + col1
----

query II rowsort
SELECT ALL + 95 AS col0, - 99 FROM tab2
----
95
-99
95
-99
95
-99

query I rowsort
SELECT ALL + 49 FROM tab0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - col1 * + - 43 + col1
----

query I rowsort
SELECT ALL - + col1 * - ( + 89 ) FROM tab2 AS cor0
----
4539
5963
6853

query II rowsort
SELECT ALL + col0 AS col1, col2 + - col0 AS col2 FROM tab1 AS cor0
----
51
45
85
-26
91
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + 48 col0 FROM tab2 AS cor0
----
1104
1920
2784

query II rowsort
SELECT DISTINCT + col1, col2 + - 64 FROM tab0 AS cor0
----
1
35
21
-54
81
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5453
SELECT DISTINCT + col1 DIV ( col2 ) * col1 col2 FROM tab0
----
0
42
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5453
SELECT DISTINCT + col1 / ( col2 ) * col1 col2 FROM tab0
----
0
42
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT DISTINCT SUM( - - col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT SUM ( - - col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT - 29 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5456
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-5456
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col2 * - + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) * - - 12 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) * - - 12 FROM tab2 AS cor0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-5459
SELECT DISTINCT - + 60 DIV + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
1
27
82

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - + 60 / + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
1
27
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + ( - MAX( DISTINCT - 4 ) ) AS col2 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5460
SELECT + ( - MAX ( DISTINCT - 4 ) ) AS col2 FROM tab2 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT ALL + col2 DIV col1 * + 54 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-5461
SELECT ALL + col2 / col1 * + 54 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab2 WHERE 1 >= - + col0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT 32 * ( - - 71 ) + col2 + + ( + col2 ) FROM tab1
----
2390
2408
2464

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT col1 DIV col2 + + col0 DIV + ( - col0 ) col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5464
SELECT col1 / col2 + + col0 / + ( - col0 ) col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT COUNT( * ) + - + COUNT( * ) * - MAX( - + col0 ) + + 16 FROM tab2
----
-119

skipif mysql # not compatible
query I rowsort label-5465
SELECT COUNT ( * ) + - + COUNT ( * ) * - MAX ( - + col0 ) + + 16 FROM tab2
----
-119

query I rowsort
SELECT DISTINCT - 85 + - - col1 FROM tab2
----
-18
-34
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - - 75 + + COUNT( * ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5467
SELECT - - 75 + + COUNT ( * ) FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE + col2 BETWEEN + col0 AND + col1
----
1

skipif mysql # not compatible
query I rowsort label-5468
SELECT + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE + col2 BETWEEN + col0 AND + col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT DISTINCT + col2 DIV + + col0 + + - 50 FROM tab1 AS cor0
----
-49
-50

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT + col2 / + + col0 + + - 50 FROM tab1 AS cor0
----
-49
-50

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND + col2 / col2
----

query I rowsort
SELECT - ( + col1 ) * + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - ( + + col0 ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT COUNT( * ) + - + 71 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT COUNT ( * ) + - + 71 FROM tab1 AS cor0
----
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 28, col1, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col0 FROM tab0 cor0
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 95 AS col0, col2 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 50 + + 88 FROM tab0
----
38
38
38

query I rowsort
SELECT ALL - ( ( col0 ) ) - - - 57 FROM tab2
----
-103
-121
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-5479
SELECT ALL COUNT( * ), + COUNT( * ) + - SUM( col0 ) AS col0 FROM tab0
----
3
-196

skipif mysql # not compatible
query II rowsort label-5479
SELECT ALL COUNT ( * ), + COUNT ( * ) + - SUM ( col0 ) AS col0 FROM tab0
----
3
-196

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab1 WHERE NOT ( ( NOT + - col1 + - col0 >= - col1 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5481
SELECT - col1 DIV 87 * + 51 AS col2, + 57 AS col2 FROM tab2 AS cor0
----
0
57
0
57
0
57

skipif mysql # not compatible
query II rowsort label-5481
SELECT - col1 / 87 * + 51 AS col2, + 57 AS col2 FROM tab2 AS cor0
----
0
57
0
57
0
57

query II rowsort
SELECT DISTINCT + + 88 * 81 + + col1, col1 FROM tab0 AS cor0
----
7129
1
7149
21
7209
81

query II rowsort
SELECT DISTINCT col1, col0 AS col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT + ( SUM( DISTINCT + 92 ) ) AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-5484
SELECT + ( SUM ( DISTINCT + 92 ) ) AS col1 FROM tab1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT ALL + col2 DIV - 48 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL + col2 / - 48 AS col2 FROM tab0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT ALL ( col1 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL ( col1 ) / + col1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5488
SELECT DISTINCT - 96, - COUNT( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
-96
-3

skipif mysql # not compatible
query II rowsort label-5488
SELECT DISTINCT - 96, - COUNT ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
-96
-3

query II rowsort
SELECT DISTINCT - + col1 AS col0, - col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5490
SELECT + 14, + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
14
46
14
64
14
75

skipif mysql # not compatible
query II rowsort label-5490
SELECT + 14, + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
14
46
14
64
14
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 13 = + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 89 * - - 87 AS col1 FROM tab0 AS cor0
----
7743
7743
7743

query I rowsort
SELECT DISTINCT - col1 * - + col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT DISTINCT 3 DIV - 36 + + + 16 AS col2 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT 3 / - 36 + + + 16 AS col2 FROM tab1
----
16

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IS NOT NULL OR NOT ( ( NOT + + 55 IS NULL ) )
----

query II rowsort
SELECT DISTINCT 68 * + col0, + col1 FROM tab1
----
3468
14
5780
5
6188
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT SUM( DISTINCT col1 ) col0, COUNT( * ) AS col2 FROM tab1
----
66
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5497
SELECT SUM ( DISTINCT col1 ) col0, COUNT ( * ) AS col2 FROM tab1
----
66
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT - MAX( + col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-5499
SELECT - MAX ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT + 54 DIV - 60 + col1 * + col0 + + col2 DIV col2 FROM tab2 AS cor0
----
2347
4929
5026

skipif mysql # not compatible
query I rowsort label-5500
SELECT + 54 / - 60 + col1 * + col0 + + col2 / col2 FROM tab2 AS cor0
----
2347
4929
5026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT CAST( NULL AS SIGNED ) + - + 92 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT CAST ( NULL AS INTEGER ) + - + 92 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT col2 DIV 47 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5502
SELECT col2 / 47 AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - 54 - col1 FROM tab1 AS cor0
----
-101
-59
-68

query I rowsort
SELECT - 18 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 94 * 49 - - 50 / + col2 IS NULL
----

query I rowsort
SELECT + col2 - - + col1 - col2 AS col2 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5510
SELECT + MIN( DISTINCT + CAST( ( - col0 ) AS SIGNED ) ) col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5510
SELECT + MIN ( DISTINCT + CAST ( ( - col0 ) AS INTEGER ) ) col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL BETWEEN col2 + + 18 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL BETWEEN col2 + + 18 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - + 11 * + - SUM( ALL - + 90 ) AS col0 FROM tab1 AS cor0
----
-2970

skipif mysql # not compatible
query I rowsort label-5512
SELECT - + 11 * + - SUM ( ALL - + 90 ) AS col0 FROM tab1 AS cor0
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT COUNT( * ) * + + 21 AS col2 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5513
SELECT COUNT ( * ) * + + 21 AS col2 FROM tab0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5514
SELECT ALL - 18 DIV - - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL - 18 / - - COUNT ( * ) FROM tab2
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT 23 FROM tab1 WHERE NOT + col1 / 70 + col2 IS NULL
----
23
23
23

query II rowsort
SELECT col2 * col0 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
1058
-46
2560
-64
4350
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( + ( - 74 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT MIN( ALL col2 ) * - ( - - 29 ) AS col2 FROM tab0
----
-290

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT MIN ( ALL col2 ) * - ( - - 29 ) AS col2 FROM tab0
----
-290

onlyif mysql # aggregate syntax: 
query II rowsort label-5520
SELECT ALL COUNT( * ) AS col1, COUNT( * ) * - + 33 AS col0 FROM tab0 AS cor0
----
3
-99

skipif mysql # not compatible
query II rowsort label-5520
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) * - + 33 AS col0 FROM tab0 AS cor0
----
3
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5521
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * CAST( - 77 AS SIGNED ) NOT IN ( - - col1, CAST( NULL AS SIGNED ) + - col2, + 56 )
----

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * CAST ( - 77 AS INTEGER ) NOT IN ( - - col1, CAST ( NULL AS INTEGER ) + - col2, + 56 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * + + col2 col1 FROM tab1 AS cor0
----
236
272
384

query I rowsort
SELECT DISTINCT + + 14 AS col1 FROM tab2 cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5524
SELECT + + col0 AS col0, + ( + - 20 ), CAST( NULL AS SIGNED ) + + + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 8e21d9ff02af443664e4474a79229b3a

skipif mysql # not compatible
query III rowsort label-5524
SELECT + + col0 AS col0, + ( + - 20 ), CAST ( NULL AS INTEGER ) + + + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 8e21d9ff02af443664e4474a79229b3a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5525
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 55 * 82 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 55 * 82 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5526
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 99, - 91 col2 FROM tab0
----
99
-91

query II rowsort
SELECT ALL 97 AS col0, - 41 FROM tab2
----
97
-41
97
-41
97
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + MAX( DISTINCT - col2 ) + + 94 AS col1 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-5529
SELECT + MAX ( DISTINCT - col2 ) + + 94 AS col1 FROM tab2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT ALL col2 + + - ( + + col2 ) DIV + - ( + + col1 ) FROM tab0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL col2 + + - ( + + col2 ) / + - ( + + col1 ) FROM tab0
----
10
198
47

query I rowsort
SELECT DISTINCT - ( - col2 ) + col2 AS col1 FROM tab0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 + - 91 col2 FROM tab2
----
-100
-119
-128

query III rowsort
SELECT * FROM tab2 WHERE + 72 / - col2 * - 35 * - + col1 / - col0 / col0 + + + col2 - + 18 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL ( col0 ) + - - CAST( col2 AS SIGNED ) - col2 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL ( col0 ) + - - CAST ( col2 AS INTEGER ) - col2 AS col1 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( + col0 * + col0, + col1 )
----

query II rowsort
SELECT - 52 - - + 27, col1 FROM tab0
----
-25
1
-25
21
-25
81

query II rowsort
SELECT ALL + col0 + - - 44 AS col0, - col2 AS col0 FROM tab0
----
131
-10
141
-99
59
-47

query I rowsort
SELECT ALL 37 * - - col1 + + - 3 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT + col2 * - ( - col0 ) + + + col1 FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT ( col0 ) * CAST( + col2 AS SIGNED ) + + + col2 + col2 AS col2 FROM tab2 AS cor0
----
1104
2640
4466

skipif mysql # not compatible
query I rowsort label-5540
SELECT ( col0 ) * CAST ( + col2 AS INTEGER ) + + + col2 + col2 AS col2 FROM tab2 AS cor0
----
1104
2640
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL - - SUM( - - ( 79 ) ) AS col0 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - - SUM ( - - ( 79 ) ) AS col0 FROM tab0 AS cor0
----
237

query I rowsort
SELECT DISTINCT + - 23 * 8 FROM tab1 AS cor0
----
-184

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col2 * + 90 FROM tab2 AS cor0
----
2070
3600
5220

onlyif mysql # DIV for integer division: 
query II rowsort label-5545
SELECT DISTINCT col1 DIV + - ( + 12 ) AS col0, col2 AS col2 FROM tab1
----
-1
96
-3
68
0
59

skipif mysql # not compatible
query II rowsort label-5545
SELECT DISTINCT col1 / + - ( + 12 ) AS col0, col2 AS col2 FROM tab1
----
-1
96
-3
68
0
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - + COUNT( * ) FROM tab2 WHERE NOT + col2 + - + 71 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5546
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT + col2 + - + 71 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT MAX( 6 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5547
SELECT MAX ( 6 ) FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 - + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL - MIN( DISTINCT + + col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - MIN ( DISTINCT + + col0 ) AS col0 FROM tab0
----
-15

query II rowsort
SELECT col0 AS col1, col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT - col1 * - + col1 AS col2 FROM tab0
----
1
441
6561

query II rowsort
SELECT - col1, col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5553
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5553
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT + MIN( DISTINCT + col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + MIN ( DISTINCT + col2 ) FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query III rowsort label-5555
SELECT ALL - 3, MIN( - ( + - col2 ) ) AS col2, + SUM( 38 ) col2 FROM tab1 AS cor0
----
-3
59
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5555
SELECT ALL - 3, MIN ( - ( + - col2 ) ) AS col2, + SUM ( 38 ) col2 FROM tab1 AS cor0
----
-3
59
114

query I rowsort
SELECT ALL - - col1 + - + 18 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN + + col2 AND NULL
----
-13
-4
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT - col0 + + col2 + col0 DIV - - col1 AS col1 FROM tab0 cor0
----
-73
32
99

skipif mysql # not compatible
query I rowsort label-5557
SELECT - col0 + + col2 + col0 / - - col1 AS col1 FROM tab0 cor0
----
-73
32
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5558
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + - 82 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT - CAST ( NULL AS REAL ) + + - 82 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT + MAX( - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5560
SELECT + MAX ( - col2 ) FROM tab2
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5561
SELECT ALL * FROM tab1 WHERE NOT - col0 + + col1 NOT IN ( + col2 + - - col1 + col1 + + CAST( + col2 AS DECIMAL ) + + 7 * - col2, col0 + + - col2 )
----

skipif mysql # not compatible
query III rowsort label-5561
SELECT ALL * FROM tab1 WHERE NOT - col0 + + col1 NOT IN ( + col2 + - - col1 + col1 + + CAST ( + col2 AS REAL ) + + 7 * - col2, col0 + + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 51 * col2 / + 13 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 51 * col2 / + 13 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT 96 * - COUNT( * ) AS col1 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-5563
SELECT 96 * - COUNT ( * ) AS col1 FROM tab1
----
-288

query I rowsort
SELECT + col1 - col1 * + col0 - - 99 FROM tab2 AS cor0
----
-2196
-4752
-4859

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5565
SELECT CAST( 59 AS SIGNED ) + 2 AS col0, col1 * + - col1 col1 FROM tab0 AS cor0
----
61
-1
61
-441
61
-6561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5565
SELECT CAST ( 59 AS INTEGER ) + 2 AS col0, col1 * + - col1 col1 FROM tab0 AS cor0
----
61
-1
61
-441
61
-6561

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN + 47 AND col1
----

query I rowsort
SELECT + 35 + 92 * - + 36 * - 65 FROM tab2 AS cor0
----
215315
215315
215315

query I rowsort
SELECT - 2 + - - col0 FROM tab0 AS cor0
----
13
85
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT + 6 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5569
SELECT + 6 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col0 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5571
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL SUM( ALL col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL SUM ( ALL col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT + 67 * + 75 AS col0 FROM tab2 AS cor0
----
5025
5025
5025

query I rowsort
SELECT ALL + col2 * + 9 FROM tab1 AS cor0
----
531
612
864

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT MIN( + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5575
SELECT MIN ( + col2 ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - - col1 * + 59 FROM tab1 AS cor0
----
2773
295
826

onlyif mysql # DIV for integer division: 
query I rowsort label-5577
SELECT ALL 57 DIV ( + ( + + col0 ) ) col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5577
SELECT ALL 57 / ( + ( + + col0 ) ) col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT ALL - 57 * col2 * - 74 AS col0 FROM tab1 AS cor0
----
248862
286824
404928

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT ALL col1 DIV col1 * - col1 * 72 col1 FROM tab0
----
-1512
-5832
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5579
SELECT ALL col1 / col1 * - col1 * 72 col1 FROM tab0
----
-1512
-5832
-72

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT ( NOT + col2 * 71 IS NOT NULL )
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 * + - 89 * 27 col2 FROM tab2
----
-11841984
-12075075
-5637438

query I rowsort
SELECT DISTINCT 13 + - - ( - col0 ) FROM tab2 AS cor0
----
-33
-51
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5583
SELECT - CAST( MIN( DISTINCT - col2 ) AS SIGNED ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5583
SELECT - CAST ( MIN ( DISTINCT - col2 ) AS INTEGER ) AS col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + col2 + - - ( + - col0 ) + + + col1 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT ALL col2 + - 86 AS col1 FROM tab0 AS cor0
----
-39
-76
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - col0 col2 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query II rowsort
SELECT + col2 + - col2 + + + col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 61 + + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL + - MIN( ALL + 67 ) * + SUM( - - col2 ) + COUNT( - - ( + 74 ) ) FROM tab1 AS cor0
----
-14938

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL + - MIN ( ALL + 67 ) * + SUM ( - - col2 ) + COUNT ( - - ( + 74 ) ) FROM tab1 AS cor0
----
-14938

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + 43 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ( + MAX( 96 ) ) + - 15 col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5591
SELECT ( + MAX ( 96 ) ) + - 15 col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT + MAX( ALL - - 85 ) + + COUNT( * ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-5592
SELECT + MAX ( ALL - - 85 ) + + COUNT ( * ) FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT MAX( - - ( - + col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5593
SELECT MAX ( - - ( - + col1 ) ) FROM tab0
----
-1

query I rowsort
SELECT ALL - ( col2 ) + + + 11 FROM tab2
----
-12
-29
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT + 33 + - col1 * - + col0 FROM tab2 cor0
----
2379
4961
5058

query I rowsort
SELECT col0 * + + 9 AS col0 FROM tab0
----
135
783
873

query I rowsort
SELECT col0 * 3 FROM tab0 AS cor0
----
261
291
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 35 <> NULL
----

query I rowsort
SELECT DISTINCT ( + 73 ) AS col2 FROM tab2 cor0
----
73

query I rowsort
SELECT 3 * - col2 AS col2 FROM tab0 AS cor0
----
-141
-297
-30

query I rowsort
SELECT DISTINCT - ( + 6 ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT DISTINCT col1 DIV - 10 + + ( - - col2 ) AS col1 FROM tab2 AS cor0
----
18
33
52

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT col1 / - 10 + + ( - - col2 ) AS col1 FROM tab2 AS cor0
----
18
33
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5604
SELECT + COUNT( * ) AS col1, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5604
SELECT + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5605
SELECT DISTINCT - 98 AS col2, + col2 + + - col1 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
-98
-31
-98
-70
-98
31

skipif mysql # not compatible
query II rowsort label-5605
SELECT DISTINCT - 98 AS col2, + col2 + + - col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
-98
-31
-98
-70
-98
31

query II rowsort
SELECT - 76, + 11 AS col2 FROM tab2
----
-76
11
-76
11
-76
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL MIN( + - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL MIN ( + - col0 ) FROM tab0
----
-97

query II rowsort
SELECT + 99 AS col0, col0 * + 86 FROM tab2
----
99
3956
99
5504
99
6450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT + col2 * + CAST( 52 AS SIGNED ) AS col2 FROM tab1
----
3068
3536
4992

skipif mysql # not compatible
query I rowsort label-5609
SELECT + col2 * + CAST ( 52 AS INTEGER ) AS col2 FROM tab1
----
3068
3536
4992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab0
----
99
99
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5611
SELECT ALL + col0 AS col1, col2 DIV col0 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-5611
SELECT ALL + col0 AS col1, col2 / col0 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT + - col2 * CAST( NULL AS SIGNED ) + + col0 * - 54 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query I rowsort label-5612
SELECT + - col2 * CAST ( NULL AS INTEGER ) + + col0 * - 54 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE col1 IN ( - + CAST( NULL AS SIGNED ), col0 + CAST( + col0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE col1 IN ( - + CAST ( NULL AS INTEGER ), col0 + CAST ( + col0 AS INTEGER ) )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * - 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT + MIN( - 70 ) AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5616
SELECT + MIN ( - 70 ) AS col1 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT DISTINCT - col2 + 80 FROM tab2
----
22
40
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5618
SELECT ALL + - col2 + CAST( NULL AS SIGNED ) AS col2, 40 * col1 * 94 AS col1 FROM tab1 cor0
----
NULL
176720
NULL
18800
NULL
52640

skipif mysql # not compatible
query II rowsort label-5618
SELECT ALL + - col2 + CAST ( NULL AS INTEGER ) AS col2, 40 * col1 * 94 AS col1 FROM tab1 cor0
----
NULL
176720
NULL
18800
NULL
52640

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 45 - - - col0 * 94 AS col0 FROM tab2 AS cor0
----
-4279
-5971
-7005

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 61 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + col2 + + col1 AS col1 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT + col1 * + 11 + col0 FROM tab1 cor0
----
140
205
608

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT - 89 + - + 37 * 38 * - col2 * + 38 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT - 89 + - + 37 * 38 * - col2 * + 38 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT col2 DIV + 99 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5625
SELECT col2 / + 99 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE - 16 * col1 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( 37 ) AS col0 FROM tab0 AS cor0
----
37

query I rowsort
SELECT + + col2 + + - 13 AS col0 FROM tab2 AS cor0
----
10
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT + + COUNT( 36 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5629
SELECT + + COUNT ( 36 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT + - MAX( + - ( - - col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5630
SELECT + - MAX ( + - ( - - col2 ) ) FROM tab2 AS cor0
----
23

query II rowsort
SELECT ALL - col1, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT - SUM( ALL col0 ) FROM tab2 WHERE NOT - 23 NOT BETWEEN - ( col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT - SUM ( ALL col0 ) FROM tab2 WHERE NOT - 23 NOT BETWEEN - ( col1 ) AND NULL
----
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT 55 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 + - 0 ) IN ( col1 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT COUNT( - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT COUNT ( - col1 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( 64 ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT ALL MAX( 23 ) + COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL MAX ( 23 ) + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
32

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT DISTINCT - 88 * col0 + col0 DIV col0 FROM tab1
----
-4487
-7479
-8007

skipif mysql # not compatible
query I rowsort label-5640
SELECT DISTINCT - 88 * col0 + col0 / col0 FROM tab1
----
-4487
-7479
-8007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5641
SELECT DISTINCT COUNT( * ) DIV 71 + - 89 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT COUNT ( * ) / 71 + - 89 FROM tab0
----
-89

query I rowsort
SELECT ALL col0 FROM tab2 WHERE - col1 NOT IN ( + col2 )
----
46
64
75

query I rowsort
SELECT DISTINCT ( 1 ) + col1 AS col2 FROM tab1
----
15
48
6

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 62 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT col2 - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-5645
SELECT col2 - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT col0 + + 38 * 91 FROM tab0
----
3473
3545
3555

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL MAX( ALL 88 ) AS col1 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL MAX ( ALL 88 ) AS col1 FROM tab2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT MAX( ALL ( - col0 ) ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5648
SELECT MAX ( ALL ( - col0 ) ) AS col1 FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( 20 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT + COUNT( * ) * 60 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-5650
SELECT + COUNT ( * ) * 60 FROM tab0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT SUM( DISTINCT + ( ( - 42 ) ) ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT SUM ( DISTINCT + ( ( - 42 ) ) ) AS col2 FROM tab0
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5652
SELECT ALL + 17 AS col1 FROM tab0 WHERE ( 32 / col2 + + CAST( NULL AS DECIMAL ) / + 38 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL + 17 AS col1 FROM tab0 WHERE ( 32 / col2 + + CAST ( NULL AS REAL ) / + 38 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * 99 + - ( col1 ) * - 32 FROM tab2
----
-3417
-4489
-5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + - col0 * col0 col2 FROM tab1 AS cor0
----
-2652
-7310
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5655
SELECT - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + 88 * - col1 + - col2 FROM tab1 AS cor0
----
-1328
-4204
-499

query I rowsort
SELECT ALL 99 + - 10 AS col1 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IN ( - col1 )
----
59
68
96

query I rowsort
SELECT DISTINCT col1 * 16 AS col2 FROM tab0 AS cor0
----
1296
16
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT DISTINCT - col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 82 <> - ( col2 ) + + col2
----

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - col2 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 82 <> - ( col2 ) + + col2
----

query I rowsort
SELECT 77 FROM tab2 WHERE col1 NOT BETWEEN col1 AND - 74
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT - SUM( DISTINCT - col0 ) - ( 93 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-5662
SELECT - SUM ( DISTINCT - col0 ) - ( 93 ) FROM tab2
----
92

query I rowsort
SELECT - 23 - + col1 FROM tab1 AS cor0
----
-28
-37
-70

query I rowsort
SELECT DISTINCT - + 4 + col0 FROM tab2 AS cor0
----
42
60
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5665
SELECT + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-5665
SELECT + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT - + col1 - ( 98 ) AS col1 FROM tab2 AS cor0
----
-149
-165
-175

query I rowsort
SELECT ALL + col2 * - col1 + - ( col1 + col1 ) AS col2 FROM tab1 AS cor0
----
-1372
-305
-3290

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT DISTINCT 10 DIV + 59 + + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT 10 / + 59 + + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - 28 + col2 AS col0 FROM tab1 cor0
----
31
40
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT + 32 DIV + 18 FROM tab2 AS cor0 WHERE col2 - 41 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5670
SELECT + 32 / + 18 FROM tab2 AS cor0 WHERE col2 - 41 IS NOT NULL
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5671
SELECT CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 6 - 99 AS col1 FROM tab1 WHERE NULL < ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5674
SELECT ALL * FROM tab1 WHERE CAST( + col1 AS SIGNED ) + - col2 * col0 BETWEEN + 81 AND + 49
----

skipif mysql # not compatible
query III rowsort label-5674
SELECT ALL * FROM tab1 WHERE CAST ( + col1 AS INTEGER ) + - col2 * col0 BETWEEN + 81 AND + 49
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + 77 BETWEEN ( 2 ) AND ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL COUNT( * ) * + + 34 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL COUNT ( * ) * + + 34 FROM tab1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + MIN( ALL - + 32 ) + COUNT( * ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-5677
SELECT + MIN ( ALL - + 32 ) + COUNT ( * ) FROM tab1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5678
SELECT DISTINCT MAX( - col2 ) DIV COUNT( * ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT MAX ( - col2 ) / COUNT ( * ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT - col0 * + col2 * col1 AS col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT - COUNT( DISTINCT + 37 ) * COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5680
SELECT - COUNT ( DISTINCT + 37 ) * COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT ALL - 65 * - col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2990
4160
4875

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 31 + col1 NOT IN ( col2 * - col1 + 81 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col0 FROM tab0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + COUNT( * ) * + + 98 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-5684
SELECT + COUNT ( * ) * + + 98 FROM tab0
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT + 0 * + + 76 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5685
SELECT + 0 * + + 76 / - col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= 20 / + ( col2 )
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( 96 / 89 )
----

query I rowsort
SELECT - col1 * 9 FROM tab0
----
-189
-729
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + col2 * 46 NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT - + CAST( NULL AS SIGNED ) * col1 * col1 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-5690
SELECT - + CAST ( NULL AS INTEGER ) * col1 * col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5691
SELECT + col1 - col2 FROM tab1 AS cor0 WHERE NOT ( + 61 ) = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5691
SELECT + col1 - col2 FROM tab1 AS cor0 WHERE NOT ( + 61 ) = CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL - MAX( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL - MAX ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL 3 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5694
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - ( - 56 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT - + ( + 15 ) AS col0 FROM tab1 AS cor0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 35 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 > ( col1 * + col2 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT DISTINCT - + MIN( ALL + - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT - + MIN ( ALL + - col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5700
SELECT + col0 DIV - + 8 + + 70 + - 19 * 18 * - 8 FROM tab2 AS cor0
----
2797
2798
2801

skipif mysql # not compatible
query I rowsort label-5700
SELECT + col0 / - + 8 + + 70 + - 19 * 18 * - 8 FROM tab2 AS cor0
----
2797
2798
2801

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT ALL - 81, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-81
3

skipif mysql # not compatible
query II rowsort label-5701
SELECT ALL - 81, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-81
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( - 30 ) + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col2, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col1 + col1 AS col1 FROM tab2 cor0
----
-51
102
-67
134
-77
154

query II rowsort
SELECT ALL - col0 AS col0, col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT - ( MIN( DISTINCT - + col1 ) ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-5706
SELECT - ( MIN ( DISTINCT - + col1 ) ) AS col0 FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT - + MIN( + + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT - + MIN ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT + 56 DIV - col2 FROM tab2 WHERE NOT + 28 BETWEEN + 36 AND + col2 DIV 17 + - col2 DIV col0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5708
SELECT + 56 / - col2 FROM tab2 WHERE NOT + 28 BETWEEN + 36 AND + col2 / 17 + - col2 / col0
----
-1
-2
0

query I rowsort
SELECT + 18 FROM tab2 WHERE NOT - + col0 <= ( - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT + CAST( - + col1 AS SIGNED ) NOT BETWEEN - col0 * + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT + CAST ( - + col1 AS INTEGER ) NOT BETWEEN - col0 * + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5711
SELECT CAST( 74 AS SIGNED ) AS col2, - col1 FROM tab0
----
74
-1
74
-21
74
-81

skipif mysql # not compatible
query II rowsort label-5711
SELECT CAST ( 74 AS INTEGER ) AS col2, - col1 FROM tab0
----
74
-1
74
-21
74
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT + CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 43 + - + col1 + - col2 FROM tab0
----
-143
-171
-74

query III rowsort
SELECT * FROM tab1 WHERE - col1 + + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT ALL - 90 + - 52 AS col1, col2 + + - 75 FROM tab1 AS cor0
----
-142
-16
-142
-7
-142
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5718
SELECT DISTINCT 31 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT 31 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5719
SELECT - - 96 + - + col2 + - CAST( + - col0 AS SIGNED ) DIV + 6 FROM tab1 AS cor0
----
43
51
8

skipif mysql # not compatible
query I rowsort label-5719
SELECT - - 96 + - + col2 + - CAST ( + - col0 AS INTEGER ) / + 6 FROM tab1 AS cor0
----
43
51
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5720
SELECT ALL * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) NOT BETWEEN - - col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5720
SELECT ALL * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) NOT BETWEEN - - col1 AND ( NULL )
----

query I rowsort
SELECT ( + col0 ) + - - col2 AS col2 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) <> + col2
----

skipif mysql # not compatible
query I rowsort label-5722
SELECT + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) <> + col2
----

query I rowsort
SELECT + 2 * - 5 FROM tab1 AS cor0
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5724
SELECT DISTINCT col1 DIV + col0 + - + col0 DIV + col2 + + + 8 * ( - 89 ) AS col2 FROM tab2 AS cor0
----
-712
-713

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT col1 / + col0 + - + col0 / + col2 + + + 8 * ( - 89 ) AS col2 FROM tab2 AS cor0
----
-712
-713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT CAST( - col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5725
SELECT CAST ( - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col2 * col0 * col2 + + + col2 ) <= + col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - col1 ) + + 18 AS col0 FROM tab1 AS cor0
----
-29
13
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + 58 - - SUM( + 22 ) AS col1 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-5728
SELECT + 58 - - SUM ( + 22 ) AS col1 FROM tab2 AS cor0
----
124

query I rowsort
SELECT DISTINCT 63 - - - 46 AS col0 FROM tab0 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT DISTINCT CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) - - 76 * - - col2 * col1 / - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) - - 76 * - - col2 * col1 / - col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + col0 - + - 0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT DISTINCT - col1 DIV - + col1 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT - col1 / - + col1 AS col0 FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - 11 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL <> ( + col0 + - ( + col1 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5736
SELECT + col2 DIV - + ( + - col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5736
SELECT + col2 / - + ( + - col0 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT - COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT ( + 25 + 73 ) = ( 11 * + + 24 + + + col2 * - col0 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5737
SELECT - COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT ( + 25 + 73 ) = ( 11 * + + 24 + + + col2 * - col0 )
----
9

query I rowsort
SELECT ALL - 96 * - + col0 + - 5 FROM tab0 AS cor0
----
1435
8347
9307

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT DISTINCT - COUNT( - + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - COUNT ( - + col0 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT ( 77 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT + + 32 * + + ( + COUNT( * ) ) AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-5742
SELECT + + 32 * + + ( + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT - 58 * - + SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
10730

skipif mysql # not compatible
query I rowsort label-5743
SELECT - 58 * - + SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
10730

query III rowsort
SELECT * FROM tab2 WHERE + - ( - + 78 ) * + col0 * col2 + + + 75 * + - col0 IN ( 55 )
----

query I rowsort
SELECT + 3 FROM tab1 WHERE NULL IS NULL
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5746
SELECT * FROM tab0 WHERE + + 18 + - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5746
SELECT * FROM tab0 WHERE + + 18 + - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL MIN( 31 ) * COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL MIN ( 31 ) * COUNT ( * ) FROM tab0
----
93

query I rowsort
SELECT ALL 21 + col1 AS col0 FROM tab2
----
72
88
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5749
SELECT DISTINCT - 59 AS col1, + CAST( NULL AS SIGNED ) FROM tab0
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-5749
SELECT DISTINCT - 59 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0
----
-59
NULL

query I rowsort
SELECT col1 + - - col0 FROM tab1
----
138
65
90

query I rowsort
SELECT - ( 49 ) AS col1 FROM tab0 WHERE NULL >= ( - - 98 )
----

query I rowsort
SELECT DISTINCT + col2 + ( - col1 ) * + - col1 + col0 + + col1 AS col1 FROM tab1
----
174
2415
357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT - + col1 * + - col1 + - col0 * + col0 + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT - + col1 * + - col1 + - col0 * + col0 + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - col2 + - col1 - - col1 AS col0 FROM tab2 AS cor0
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col1 FROM tab2 AS cor0
----
40
40
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col0, col0 * - - col1 )
----

query I rowsort
SELECT ALL - - col1 + - col2 * col0 AS col2 FROM tab1 cor0
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT DISTINCT - col2 - + ( - CAST( 87 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-9
19
28

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT - col2 - + ( - CAST ( 87 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-9
19
28

query I rowsort
SELECT DISTINCT 13 * + - col0 FROM tab0 AS cor0
----
-1131
-1261
-195

query I rowsort
SELECT ALL + + 98 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL - col2 + - 41 * - - col0 AS col1 FROM tab2
----
-1909
-2664
-3133

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col2 * - 64, ( + - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col2 * - 64, ( + - col1 ) )
----
0

query I rowsort
SELECT ALL - 91 FROM tab2 AS cor0 WHERE col2 < col1
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - + ( 74 ) * col1 FROM tab2 cor0
----
-3774
-4958
-5698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5766
SELECT DISTINCT + COUNT( + ( CAST( - - ( col2 ) AS SIGNED ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT + COUNT ( + ( CAST ( - - ( col2 ) AS INTEGER ) ) ) FROM tab2
----
3

query I rowsort
SELECT 47 * 36 AS col1 FROM tab2
----
1692
1692
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT - MIN( 73 ) AS col0 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - MIN ( 73 ) AS col0 FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT DISTINCT MIN( - - 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT MIN ( - - 79 ) FROM tab0
----
79

query I rowsort
SELECT col0 * - - 95 AS col2 FROM tab0
----
1425
8265
9215

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT DISTINCT + - col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT + - col0 / - col0 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col2 * 52 * col1 + + col2 FROM tab1 AS cor0
----
15399
166260
69984

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query II rowsort
SELECT ALL - col1 AS col1, - col1 + - 72 - + + col0 FROM tab0 AS cor0
----
-1
-170
-21
-180
-81
-168

query I rowsort
SELECT ALL + - 89 - + + 67 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-156
-156
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT + col1 * - - col0 + col0 - - 17 DIV 63 * + col1 * col0 AS col2 FROM tab2 AS cor0
----
2392
4992
5100

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT + col1 * - - col0 + col0 - - 17 / 63 * + col1 * col0 AS col2 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + col0 IN ( col2 * + ( col1 ) * + col2 * - col0, + col1 / + CAST( - 93 AS SIGNED ) * + + col2 * - col2 - CAST( - ( CAST( NULL AS SIGNED ) ) - 14 AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query I rowsort label-5777
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + col0 IN ( col2 * + ( col1 ) * + col2 * - col0, + col1 / + CAST ( - 93 AS INTEGER ) * + + col2 * - col2 - CAST ( - ( CAST ( NULL AS INTEGER ) ) - 14 AS INTEGER ) + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + 64 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT MAX( ALL - 74 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5779
SELECT MAX ( ALL - 74 ) FROM tab1 AS cor0
----
-74

query II rowsort
SELECT DISTINCT + col1 AS col0, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 15, col0 * - + 53 * col0 / - col1 / - - 91, - col1 )
----

query II rowsort
SELECT ALL col0 AS col2, 48 AS col1 FROM tab1 AS cor0 WHERE NOT 52 * - col0 IS NULL
----
51
48
85
48
91
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5783
SELECT ALL COUNT( * ) col2, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5783
SELECT ALL COUNT ( * ) col2, COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT ( - MIN( DISTINCT - ( - + col1 ) ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT ( - MIN ( DISTINCT - ( - + col1 ) ) ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + 98 * COUNT( * ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-5785
SELECT + 98 * COUNT ( * ) FROM tab0
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - - 30 col1 FROM tab2
----
-10
-28
7

query I rowsort
SELECT ALL 12 + + col1 + + 53 * col0 * + col2 * 9 FROM tab2 cor0
----
1221209
2075029
504729

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col2 * - ( + - 0 ) + + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 + - - 38 * + 70 col2 FROM tab1 AS cor0
----
2660
2660
2660

query II rowsort
SELECT 82 + + + col0, col1 AS col0 FROM tab0 AS cor0
----
169
21
179
1
97
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT ALL - - CAST( - - ( - 86 ) AS SIGNED ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5791
SELECT ALL - - CAST ( - - ( - 86 ) AS INTEGER ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT - COUNT( * ) * + - 47 + COUNT( * ) FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-5792
SELECT - COUNT ( * ) * + - 47 + COUNT ( * ) FROM tab2
----
144

query III rowsort
SELECT * FROM tab2 WHERE - 80 + - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL SUM( DISTINCT + + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL SUM ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col0 FROM tab2 cor0
----
19
19
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 73 * - ( - col2 ) NOT IN ( 85 + - col2 + - ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT + 76 * 1 AS col0 FROM tab2 cor0 WHERE NOT NULL IN ( col1 + - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5797
SELECT + 76 * 1 AS col0 FROM tab2 cor0 WHERE NOT NULL IN ( col1 + - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + ( + 19 ) * col1 * + col2 FROM tab1 AS cor0
----
25536
5605
60724

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT + + COUNT( + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5800
SELECT + + COUNT ( + col1 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 26 * + col0 col1 FROM tab0 AS cor0
----
2522
31590
47502

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < ( + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5803
SELECT - col2, + ( + 86 ) DIV col2 col1 FROM tab0 AS cor0
----
-10
8
-47
1
-99
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5803
SELECT - col2, + ( + 86 ) / col2 col1 FROM tab0 AS cor0
----
-10
8
-47
1
-99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL MIN( ALL - ( 33 ) ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL MIN ( ALL - ( 33 ) ) FROM tab0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5806
SELECT col0 * 73 FROM tab2 WHERE NOT col1 >= - CAST( - - col1 AS SIGNED ) + - col1
----

skipif mysql # not compatible
query I rowsort label-5806
SELECT col0 * 73 FROM tab2 WHERE NOT col1 >= - CAST ( - - col1 AS INTEGER ) + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5807
SELECT CAST( - + col2 AS SIGNED ) * - + col2 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-5807
SELECT CAST ( - + col2 AS INTEGER ) * - + col2 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5808
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + + 34 ) + - col0 * - + CAST( CAST( 89 AS SIGNED ) AS DECIMAL ) <> - + ( - col1 ) + - col0
----

skipif mysql # not compatible
query III rowsort label-5808
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + + 34 ) + - col0 * - + CAST ( CAST ( 89 AS INTEGER ) AS REAL ) <> - + ( - col1 ) + - col0
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT - col1 / + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT ( 71 ) > - 46 / + - col1 + - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 37 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT 26 DIV - col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5812
SELECT 26 / - col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col0 * - 81 - + ( + 82 ) FROM tab2 AS cor0
----
-3808
-5266
-6157

query I rowsort
SELECT - + 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - - ( - 90 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL - + col2 + 50 AS col0 FROM tab2 AS cor0
----
-8
10
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5817
SELECT DISTINCT - COUNT( DISTINCT - 47 ) DIV - COUNT( col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT - COUNT ( DISTINCT - 47 ) / - COUNT ( col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5818
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) - + 3 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) - + 3 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT DISTINCT - 85 DIV 35 * col1 + + col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT - 85 / 35 * col1 + + col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 67 * col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT 9 * 44 + - COUNT( * ) + + - COUNT( * ) col1 FROM tab1 AS cor0
----
390

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5821
SELECT 9 * 44 + - COUNT ( * ) + + - COUNT ( * ) col1 FROM tab1 AS cor0
----
390

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 54 <> 91 * + + col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 89 + + - col1 AS col0 FROM tab2
----
12
22
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5824
SELECT ALL * FROM tab1 WHERE NULL IN ( - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5824
SELECT ALL * FROM tab1 WHERE NULL IN ( - CAST ( col1 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5825
SELECT ALL 40 + + col2 + + - 57 * + + col1, col1 * col1 DIV + col2 col2 FROM tab0
----
-1147
44
-4530
139
82
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5825
SELECT ALL 40 + + col2 + + - 57 * + + col1, col1 * col1 / + col2 col2 FROM tab0
----
-1147
44
-4530
139
82
0

query II rowsort
SELECT DISTINCT col2, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT + col0 + - + ( + 15 ) + 0 DIV - col1 + - - 59 - col1 col2 FROM tab2
----
31
39
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5827
SELECT + col0 + - + ( + 15 ) + 0 / - col1 + - - 59 - col1 col2 FROM tab2
----
31
39
52

query I rowsort
SELECT 38 + + - col1 + + - col0 * + 69 * - col2 * - 78 AS col1 FROM tab0
----
-3794353
-4682323
-51683309

query II rowsort
SELECT col2, + ( col1 ) AS col1 FROM tab1
----
59
5
68
47
96
14

query II rowsort
SELECT col0, col0 * col1 FROM tab2
----
46
2346
64
4928
75
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT - - ( MIN( DISTINCT 47 ) ) AS col2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5831
SELECT - - ( MIN ( DISTINCT 47 ) ) AS col2 FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL - 64 FROM tab2 cor0 WHERE 34 / - col2 * - 89 <> NULL
----

query II rowsort
SELECT - col2 AS col0, col0 * col1 * + + col0 AS col1 FROM tab0 AS cor0
----
-10
158949
-47
18225
-99
9409

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col0 / col2, 34, + col1, - - col1 )
----

query I rowsort
SELECT + col0 * - col1 * ( + col1 ) FROM tab2
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query II rowsort label-5836
SELECT ALL 38 + + - 58 * + COUNT( * ) AS col0, 21 FROM tab0 AS cor0 WHERE NOT NULL >= - col2
----
38
21

skipif mysql # not compatible
query II rowsort label-5836
SELECT ALL 38 + + - 58 * + COUNT ( * ) AS col0, 21 FROM tab0 AS cor0 WHERE NOT NULL >= - col2
----
38
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT + MAX( + + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5837
SELECT + MAX ( + + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * col0 < col0
----
3

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * col0 < col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT - - MAX( DISTINCT + + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT - - MAX ( DISTINCT + + col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5840
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2 / + CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5840
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2 / + CAST ( - + col2 AS INTEGER )
----

query II rowsort
SELECT + + ( + col2 ), col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT MAX( DISTINCT - col0 ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5842
SELECT MAX ( DISTINCT - col0 ) col0 FROM tab0
----
-15

query II rowsort
SELECT DISTINCT col0, 86 FROM tab2
----
46
86
64
86
75
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT 8, SUM( ALL col1 ) AS col1 FROM tab0
----
8
103

skipif mysql # not compatible
query II rowsort label-5844
SELECT 8, SUM ( ALL col1 ) AS col1 FROM tab0
----
8
103

query I rowsort
SELECT ALL + col2 * - + col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col2 ) + + ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 79 * + 87 + - col1 FROM tab0 AS cor0
----
6792
6852
6872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5848
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 38 * col2 AS col2 FROM tab2 AS cor0
----
-1520
-2204
-874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col0 col0, col0 AS col0 FROM tab0
----
-1215
15
-1827
87
-97
97

query I rowsort
SELECT - ( + col1 ) + + 40 + + + ( col1 ) * col1 * - col2 AS col2 FROM tab2
----
-237197
-260389
-59834

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL COUNT( * ) * 98 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL COUNT ( * ) * 98 FROM tab0
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 4 * col0 col1 FROM tab1
----
218
345
411

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT - ( COUNT( * ) ) + - 2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-5854
SELECT - ( COUNT ( * ) ) + - 2 FROM tab2
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 15 IS NULL
----

query I rowsort
SELECT DISTINCT ( - - 31 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 77 <= + + col0
----
31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 >= - - col0 * col1
----

query II rowsort
SELECT - 11 * 63 AS col1, 42 AS col2 FROM tab2 AS cor0
----
-693
42
-693
42
-693
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT DISTINCT - - COUNT( * ) + + - 50 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT - - COUNT ( * ) + + - 50 FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-5860
SELECT ( - col0 ) * 65 DIV - - col0, ( - + col2 ) AS col1 FROM tab1 cor0
----
-65
-59
-65
-68
-65
-96

skipif mysql # not compatible
query II rowsort label-5860
SELECT ( - col0 ) * 65 / - - col0, ( - + col2 ) AS col1 FROM tab1 cor0
----
-65
-59
-65
-68
-65
-96

query I rowsort
SELECT DISTINCT - + 33 - + 21 FROM tab0 cor0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT DISTINCT 50 * + - col1 AS col1 FROM tab1
----
-2350
-250
-700

query I rowsort
SELECT DISTINCT - col1 - - - 48 FROM tab2
----
-115
-125
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5865
SELECT 20 * + CAST( + + col0 AS SIGNED ) AS col0 FROM tab0
----
1740
1940
300

skipif mysql # not compatible
query I rowsort label-5865
SELECT 20 * + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0
----
1740
1940
300

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT DISTINCT COUNT( * ) * SUM( DISTINCT - col2 ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT COUNT ( * ) * SUM ( DISTINCT - col2 ) FROM tab1
----
-669

query I rowsort
SELECT + 18 - col1 AS col2 FROM tab2
----
-33
-49
-59

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NULL NOT IN ( + 63 )
----

query I rowsort
SELECT col0 - + - col0 FROM tab1
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT DISTINCT + 77 DIV - 36 AS col2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + 77 / - 36 AS col2 FROM tab0
----
-2

query I rowsort
SELECT - col2 - 81 AS col1 FROM tab0
----
-128
-180
-91

query II rowsort
SELECT ALL col1 AS col0, 7 * - - col0 AS col1 FROM tab2
----
51
322
67
525
77
448

query I rowsort
SELECT DISTINCT col1 + - ( + col0 ) AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL - col2 * col2 - + + col1 FROM tab0
----
-121
-2290
-9802

query I rowsort
SELECT - - col2 + - 55 * + col2 FROM tab2 AS cor0
----
-1242
-2160
-3132

query I rowsort
SELECT ALL 23 - + + col2 * - 62 * + + col1 AS col1 FROM tab2 AS cor0
----
190983
240955
72749

query I rowsort
SELECT - + col2 + + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT COUNT( * ) * 65 + - - 40 AS col0 FROM tab1 AS cor0
----
235

skipif mysql # not compatible
query I rowsort label-5878
SELECT COUNT ( * ) * 65 + - - 40 AS col0 FROM tab1 AS cor0
----
235

onlyif mysql # aggregate syntax: 
query II rowsort label-5879
SELECT - 66, - COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) <= 51 / + - 10
----
-66
0

skipif mysql # not compatible
query II rowsort label-5879
SELECT - 66, - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) <= 51 / + - 10
----
-66
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * - 12 col1 FROM tab0 AS cor0
----
-1056
-1056
-1056

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab2
----
-7

query II rowsort
SELECT + 13 AS col2, + 59 + + 8 AS col1 FROM tab1 AS cor0
----
13
67
13
67
13
67

query II rowsort
SELECT ALL 70 AS col2, 72 - - 27 FROM tab2 AS cor0
----
70
99
70
99
70
99

query I rowsort
SELECT 73 * + - col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5885
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / + col2 = NULL
----

skipif mysql # not compatible
query III rowsort label-5885
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / + col2 = NULL
----

query I rowsort
SELECT - col0 * 77 - col2 AS col1 FROM tab1 AS cor0
----
-4023
-6604
-7075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5887
SELECT DISTINCT + + COUNT( * ) * - 95 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT + + COUNT ( * ) * - 95 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query II rowsort
SELECT DISTINCT + + col2, 47 + + 88 AS col0 FROM tab2 cor0
----
23
135
40
135
58
135

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 53 >= col1
----
64
77
40
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NOT - - ( col1 ) NOT BETWEEN - col1 * + 24 * + - col2 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT 28 * COUNT( * ) col1 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5892
SELECT DISTINCT 28 * COUNT ( * ) col1 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ( - 53 ) + MIN( DISTINCT + 10 ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5893
SELECT ( - 53 ) + MIN ( DISTINCT + 10 ) FROM tab1 AS cor0
----
-43

query I rowsort
SELECT col2 FROM tab2 WHERE + 3 + - 30 + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 84 col1 FROM tab1
----
4956
5712
8064

query II rowsort
SELECT col2, 80 / - 70 * + + col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - + col2 FROM tab2
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT ALL col1 + + col2 + - col0 DIV 15 FROM tab1
----
107
109
59

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL col1 + + col2 + - col0 / 15 FROM tab1
----
107
109
59

query I rowsort
SELECT - ( + col2 ) - col1 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + 51 AS col1 FROM tab0 AS cor0
----
-48
4
41

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + 51 AS col1 FROM tab0 AS cor0
----
-48
4
41

query I rowsort
SELECT DISTINCT - + 44 * - col1 FROM tab2 AS cor0
----
2244
2948
3388

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 WHERE 3 * - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5902
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE 3 * - - col2 IS NULL
----
0

query II rowsort
SELECT DISTINCT + col0 * + col2 - + - 67 AS col0, + ( - col0 ) FROM tab2 AS cor0
----
1125
-46
2627
-64
4417
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT - - col1 - 67 + - CAST( NULL AS SIGNED ) + - - col0 + - col0 FROM tab1 AS cor0 WHERE col0 * 65 - - 8 * - + col1 * + - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-5904
SELECT - - col1 - 67 + - CAST ( NULL AS INTEGER ) + - - col0 + - col0 FROM tab1 AS cor0 WHERE col0 * 65 - - 8 * - + col1 * + - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + 8 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-5905
SELECT - ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + 8 AND col2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( + ( - 73 ) IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 26 col1 FROM tab2
----
1326
1742
2002

query I rowsort
SELECT ALL 35 + + 49 * - 59 AS col0 FROM tab1
----
-2856
-2856
-2856

query I rowsort
SELECT ALL + - col1 + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT - ( - - col1 ) * - col2 * CAST( NULL AS SIGNED ) / + - col0 - + 18 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-5910
SELECT - ( - - col1 ) * - col2 * CAST ( NULL AS INTEGER ) / + - col0 - + 18 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT MAX( - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5911
SELECT MAX ( - col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT ( + col0 ) DIV col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5912
SELECT ( + col0 ) / col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT ALL SUM( DISTINCT - + ( - col1 ) ) + - + SUM( + col0 ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL SUM ( DISTINCT - + ( - col1 ) ) + - + SUM ( + col0 ) FROM tab2
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT DISTINCT + COUNT( * ) DIV + 47 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT + COUNT ( * ) / + 47 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL MAX( ALL + - 78 ) AS col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL MAX ( ALL + - 78 ) AS col1 FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > + - col1
----
0

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > + - col1
----
0

query I rowsort
SELECT ( + + col1 ) FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT ALL + 6 DIV - 90 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL + 6 / - 90 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT CAST( + 68 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + 54 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5920
SELECT CAST ( + 68 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + 54 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5921
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) * - 37 / + + col2 * - col1 * - - 16 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5921
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) * - 37 / + + col2 * - col1 * - - 16 AND NULL
----

query I rowsort
SELECT ( 14 ) AS col1 FROM tab2
----
14
14
14

query I rowsort
SELECT - ( + 99 ) FROM tab0
----
-99
-99
-99

query II rowsort
SELECT col1, col0 * + + 60 AS col1 FROM tab1
----
14
3060
47
5460
5
5100

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT - ( + 45 ) AS col1 FROM tab0
----
-45
-45
-45

query I rowsort
SELECT 21 * + col1 * 92 AS col2 FROM tab2
----
129444
148764
98532

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( 78 ) * col2 + - + col2 * + col2 * + col1 - - - ( col0 ) AND - ( 73 ) + - - 82 * + - ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5929
SELECT ALL COUNT( * ), 17 * - COUNT( * ) FROM tab1 WHERE + + col1 + CAST( - 74 AS DECIMAL ) IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5929
SELECT ALL COUNT ( * ), 17 * - COUNT ( * ) FROM tab1 WHERE + + col1 + CAST ( - 74 AS REAL ) IS NULL
----
0
0

query I rowsort
SELECT - 77 + + col0 FROM tab2 AS cor0
----
-13
-2
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5931
SELECT CAST( + + COUNT( * ) AS SIGNED ) + - 15 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-5931
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) + - 15 FROM tab1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - 36 + + MIN( ALL col1 ) FROM tab0 WHERE - col0 / + - 25 * + col2 * col0 * + 82 + + + 66 BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT - 36 + + MIN ( ALL col1 ) FROM tab0 WHERE - col0 / + - 25 * + col2 * col0 * + 82 + + + 66 BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT - col2 + 43 - col2 FROM tab2
----
-3
-37
-73

query I rowsort
SELECT DISTINCT - - 50 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
50

query I rowsort
SELECT ALL + col0 + + - col0 * - col1 + 91 AS col0 FROM tab2 cor0
----
2483
5083
5191

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT DISTINCT + SUM( ALL - col0 ) + + 94 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT + SUM ( ALL - col0 ) + + 94 FROM tab2 AS cor0
----
-91

query I rowsort
SELECT ALL col2 + 29 AS col1 FROM tab1 cor0
----
125
88
97

query I rowsort
SELECT DISTINCT + + 34 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 + 23 = - col1 - - 31
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5939
SELECT CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5939
SELECT CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5940
SELECT ( COUNT( * ) ) col0, 16 col2 FROM tab0 cor0
----
3
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5940
SELECT ( COUNT ( * ) ) col0, 16 col2 FROM tab0 cor0
----
3
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT - MIN( DISTINCT + 17 ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5941
SELECT - MIN ( DISTINCT + 17 ) FROM tab2 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( 64 ) / - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( CAST( + col0 AS SIGNED ) ) * + col2 < col1 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( 64 ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( CAST ( + col0 AS INTEGER ) ) * + col2 < col1 * col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5944
SELECT - col1 - - + CAST( + - 33 AS SIGNED ) AS col1 FROM tab0
----
-114
-34
-54

skipif mysql # not compatible
query I rowsort label-5944
SELECT - col1 - - + CAST ( + - 33 AS INTEGER ) AS col1 FROM tab0
----
-114
-34
-54

query I rowsort
SELECT col1 - + col1 + col0 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT + col0 - col2 + col2 * + ( + col0 ) * - col1 * - col1 * - col2 AS col0 FROM tab0
----
-217398767
-3836623
-950699

query I rowsort
SELECT - 44 - - - 40 AS col1 FROM tab0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT - 78 + ( - COUNT( * ) ) AS col1 FROM tab1 WHERE + col0 + - + 64 * + col2 IS NULL
----
-78

skipif mysql # not compatible
query I rowsort label-5948
SELECT - 78 + ( - COUNT ( * ) ) AS col1 FROM tab1 WHERE + col0 + - + 64 * + col2 IS NULL
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT DISTINCT MIN( - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT MIN ( - col2 ) FROM tab0
----
-99

query II rowsort
SELECT ALL col2, - col0 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL + 42 * 80 FROM tab1 cor0
----
3360
3360
3360

query I rowsort
SELECT 53 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5953
SELECT DISTINCT - ( - - 25 ) * - - CAST( - col1 AS SIGNED ) DIV - col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - ( - - 25 ) * - - CAST ( - col1 AS INTEGER ) / - col1 FROM tab1
----
-25

query I rowsort
SELECT ALL - + 24 FROM tab1 cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5955
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT IN ( 35, col1, col0 * - CAST( NULL AS SIGNED ), col2 + + col0 + col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5955
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT IN ( 35, col1, col0 * - CAST ( NULL AS INTEGER ), col2 + + col0 + col2, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT - MIN( ALL + - ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5956
SELECT - MIN ( ALL + - ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5957
SELECT COUNT( * ) * + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + 74 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT COUNT ( * ) * + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 74 AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT - col2 DIV - 24 AS col2 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5958
SELECT - col2 / - 24 AS col2 FROM tab0 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT - - 85 * - col2 AS col1 FROM tab2 AS cor0
----
-1955
-3400
-4930

query I rowsort
SELECT + col0 * + + col2 AS col0 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 54 col1 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 + + - 7 BETWEEN NULL AND + 42
----

query II rowsort
SELECT ALL + 75, + col2 AS col2 FROM tab2
----
75
23
75
40
75
58

query I rowsort
SELECT col0 + - - col2 AS col1 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5965
SELECT - col1 col0 FROM tab1 WHERE NULL > - - col1 * 48 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5965
SELECT - col1 col0 FROM tab1 WHERE NULL > - - col1 * 48 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5966
SELECT + 16 / 90 + - CAST( MIN( col2 ) AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE col2 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5966
SELECT + 16 / 90 + - CAST ( MIN ( col2 ) AS REAL ) AS col2 FROM tab2 AS cor0 WHERE col2 > ( NULL )
----
NULL

query I rowsort
SELECT - col2 + - 43 FROM tab2 AS cor0
----
-101
-66
-83

query I rowsort
SELECT - 14 + + + 74 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE col0 * + col2 * + col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - - col1 - ( + col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
2397
5005
5092

query I rowsort
SELECT + - col1 + col2 * - 80 FROM tab0 AS cor0
----
-3841
-7921
-821

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 + + col2 * col1 IS NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5975
SELECT CAST( - - COUNT( * ) AS SIGNED ) col2 FROM tab2 WHERE NOT - + col2 <> - col1 * - col0 + - + col2 + + + col2 + 93
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5975
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) col2 FROM tab2 WHERE NOT - + col2 <> - col1 * - col0 + - + col2 + + + col2 + 93
----
0

query II rowsort
SELECT DISTINCT + ( + - 89 ), col2 FROM tab2
----
-89
23
-89
40
-89
58

query I rowsort
SELECT + col0 * + col0 * - + col2 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query II rowsort label-5978
SELECT - COUNT( 21 ) AS col0, ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5978
SELECT - COUNT ( 21 ) AS col0, ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL + COUNT( * ) * - 21 AS col1 FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + COUNT ( * ) * - 21 AS col1 FROM tab0 cor0
----
-63

query I rowsort
SELECT DISTINCT - col1 * - + 11 AS col0 FROM tab0 AS cor0
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT - - MIN( col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5981
SELECT - - MIN ( col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 61 * col1 * + - ( - - col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5983
SELECT - COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <= NULL
----
NULL

query I rowsort
SELECT ALL 46 * - - 75 FROM tab2
----
3450
3450
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT - - COUNT( * ) + - 14 AS col0 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT - - COUNT ( * ) + - 14 AS col0 FROM tab2 AS cor0
----
-11

query II rowsort
SELECT DISTINCT - 25 AS col2, col1 FROM tab1 cor0
----
-25
14
-25
47
-25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL - + COUNT( * ) * + - 29 + - 24 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - + COUNT ( * ) * + - 29 + - 24 FROM tab2 AS cor0
----
63

query I rowsort
SELECT - - 60 + - 60 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 15 AS col0 FROM tab2 AS cor0
----
15
15
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT MIN( ALL 83 ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT MIN ( ALL 83 ) FROM tab0 AS cor0
----
83

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
1
21
81

query II rowsort
SELECT - - col0 AS col1, 35 FROM tab2 AS cor0
----
46
35
64
35
75
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL + 26 + + - COUNT( * ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + 26 + + - COUNT ( * ) AS col1 FROM tab2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5995
SELECT ( + COUNT( * ) ) AS col1, CAST( NULL AS SIGNED ) * + - 36 AS col1 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5995
SELECT ( + COUNT ( * ) ) AS col1, CAST ( NULL AS INTEGER ) * + - 36 AS col1 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5996
SELECT 52 DIV + COUNT( ALL 35 ) AS col0 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-5996
SELECT 52 / + COUNT ( ALL 35 ) AS col0 FROM tab0
----
17

query I rowsort
SELECT ALL - ( 4 ) + + - 95 * - col2 AS col0 FROM tab2
----
2181
3796
5506

query I rowsort
SELECT ALL col2 - - + 23 - + 67 * col2 AS col2 FROM tab1 cor0
----
-3871
-4465
-6313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5999
SELECT + - COUNT( * ) + - CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5999
SELECT + - COUNT ( * ) + - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT - SUM( ALL + col0 ) - + - 92 AS col0 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT - SUM ( ALL + col0 ) - + - 92 AS col0 FROM tab1 AS cor0
----
-135

query III rowsort
SELECT * FROM tab1 WHERE ( + 88 + + + col0 < - 85 + 57 * 47 ) OR ( NOT NULL = + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 54 >= col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6004
SELECT + - CAST( NULL AS SIGNED ) col1, - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6004
SELECT + - CAST ( NULL AS INTEGER ) col1, - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6005
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6005
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6006
SELECT + + COUNT( * ) AS col0, 90 FROM tab2 AS cor0
----
3
90

skipif mysql # not compatible
query II rowsort label-6006
SELECT + + COUNT ( * ) AS col0, 90 FROM tab2 AS cor0
----
3
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 40 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL + - COUNT( - col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL + - COUNT ( - col2 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND col1 + - + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL 70 * COUNT( DISTINCT 42 ) AS col0 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL 70 * COUNT ( DISTINCT 42 ) AS col0 FROM tab0
----
70

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT DISTINCT + CAST( NULL AS SIGNED ) * MAX( DISTINCT - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * MAX ( DISTINCT - col1 ) FROM tab2
----
NULL

query II rowsort
SELECT ALL + + 48 AS col0, + col0 AS col1 FROM tab1 AS cor0
----
48
51
48
85
48
91

query II rowsort
SELECT DISTINCT col0 AS col0, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT ALL - 23 AS col1, COUNT( * ) FROM tab1 AS cor0
----
-23
3

skipif mysql # not compatible
query II rowsort label-6016
SELECT ALL - 23 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-23
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6017
SELECT + ( - ( - 99 ) ) DIV - 85, 84 * + col2 * + col1 AS col1 FROM tab0 AS cor0
----
-1
17640
-1
319788
-1
8316

skipif mysql # not compatible
query II rowsort label-6017
SELECT + ( - ( - 99 ) ) / - 85, 84 * + col2 * + col1 AS col1 FROM tab0 AS cor0
----
-1
17640
-1
319788
-1
8316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6018
SELECT + + ( + CAST( NULL AS SIGNED ) ) * + 39 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT + + ( + CAST ( NULL AS INTEGER ) ) * + 39 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT DISTINCT ( + COUNT( DISTINCT - 61 ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT ( + COUNT ( DISTINCT - 61 ) ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 92 * - - 1 + + col2 + - col1 * col0 * 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT + - MIN( ALL 35 ) AS col2 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-6021
SELECT + - MIN ( ALL 35 ) AS col2 FROM tab1 AS cor0
----
-35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1, 22, + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT - + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6023
SELECT - + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT + col0 DIV - - col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6024
SELECT + col0 / - - col0 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6025
SELECT CAST( NULL AS SIGNED ) + 51 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT CAST ( NULL AS INTEGER ) + 51 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab1 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6027
SELECT 49 + - ( + CAST( NULL AS DECIMAL ) ) + - - 82 / col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT 49 + - ( + CAST ( NULL AS REAL ) ) + - - 82 / col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * col0 + + + col0 IS NULL
----

query I rowsort
SELECT ALL - ( + col0 ) * col0 + - col1 FROM tab1 AS cor0
----
-2615
-7230
-8328

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT - - ( MAX( ALL 52 ) ) AS col0 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-6030
SELECT - - ( MAX ( ALL 52 ) ) AS col0 FROM tab0 AS cor0
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6031
SELECT ALL + 19 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - - 76 ) AND - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL + 19 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - - 76 ) AND - + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT + + MAX( ALL + 52 ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-6036
SELECT + + MAX ( ALL + 52 ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
52

query II rowsort
SELECT + col2 * - col2 AS col2, col2 FROM tab0 AS cor0
----
-100
10
-2209
47
-9801
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL - COUNT( * ) * + 68 AS col1 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - COUNT ( * ) * + 68 AS col1 FROM tab0 AS cor0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT DISTINCT SUM( DISTINCT - + col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT SUM ( DISTINCT - + col1 ) AS col1 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT MIN( DISTINCT - 67 ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-6040
SELECT MIN ( DISTINCT - 67 ) FROM tab2
----
-67

query I rowsort
SELECT 63 * + col2 AS col0 FROM tab0
----
2961
6237
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT CAST( - col0 AS SIGNED ) col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6042
SELECT CAST ( - col0 AS INTEGER ) col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6044
SELECT - CAST( + SUM( + col0 ) AS DECIMAL ) AS col0, 72 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 64 AND NULL
----
NULL
72

skipif mysql # not compatible
query II rowsort label-6044
SELECT - CAST ( + SUM ( + col0 ) AS REAL ) AS col0, 72 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 64 AND NULL
----
NULL
72

query I rowsort
SELECT + 26 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT - 57 + + 63 * 20 * col1 FROM tab2 AS cor0
----
64203
84363
96963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6049
SELECT ALL - 87 * - + 33 * + - col2 * - CAST( NULL AS SIGNED ) + + - 17 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - 87 * - + 33 * + - col2 * - CAST ( NULL AS INTEGER ) + + - 17 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * col2 * + + 77 AS col0 FROM tab0 AS cor0
----
16170
293139
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL - COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6052
SELECT + CAST( NULL AS DECIMAL ) * 87 AS col2, 48 FROM tab0
----
NULL
48
NULL
48
NULL
48

skipif mysql # not compatible
query II rowsort label-6052
SELECT + CAST ( NULL AS REAL ) * 87 AS col2, 48 FROM tab0
----
NULL
48
NULL
48
NULL
48

query II rowsort
SELECT DISTINCT col2 * + col1, col2 FROM tab0
----
210
10
3807
47
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6054
SELECT ALL + CAST( NULL AS SIGNED ) * + ( - COUNT( * ) ) AS col2, 62 AS col0 FROM tab2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-6054
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( - COUNT ( * ) ) AS col2, 62 AS col0 FROM tab2
----
NULL
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6055
SELECT COUNT( * ) DIV - 80 + - + 7 FROM tab0 WHERE - - col2 IS NULL
----
-7

skipif mysql # not compatible
query I rowsort label-6055
SELECT COUNT ( * ) / - 80 + - + 7 FROM tab0 WHERE - - col2 IS NULL
----
-7

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + AVG ( ALL - - col1 ) col1 FROM tab2 WHERE NOT ( - col0 <> col0 )
----
NULL

query I rowsort
SELECT + col2 * 54 - + col1 AS col1 FROM tab2
----
1191
2083
3065

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT NULL <> ( + 60 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + - ( - 77 ) AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT ALL CAST( NULL AS SIGNED ) - + 78 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL CAST ( NULL AS INTEGER ) - + 78 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 + - + col2 FROM tab1 AS cor0
----
-23
14
5

query I rowsort
SELECT + col2 * - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 4 IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 25 * - col0 AS col1 FROM tab0
----
-2175
-2425
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT + COUNT( * ) * + COUNT( * ) col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6067
SELECT + COUNT ( * ) * + COUNT ( * ) col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT DISTINCT + COUNT( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT SUM( ALL + + 21 ) FROM tab1 AS cor0 WHERE NOT 67 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT SUM ( ALL + + 21 ) FROM tab1 AS cor0 WHERE NOT 67 >= NULL
----
NULL

query I rowsort
SELECT ALL col0 * - col1 + + ( - - ( + 81 ) ) AS col1 FROM tab1 AS cor0
----
-344
-4196
-633

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6071
SELECT - CAST( + 71 AS SIGNED ) DIV - ( - 2 ) + + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-26
-7
2

skipif mysql # not compatible
query I rowsort label-6071
SELECT - CAST ( + 71 AS INTEGER ) / - ( - 2 ) + + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-26
-7
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6072
SELECT - COUNT( * ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6072
SELECT - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT ALL - + 81 DIV col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - + 81 / col0 FROM tab0 AS cor0
----
-5
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT + COUNT( ALL + + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6075
SELECT + COUNT ( ALL + + col2 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT + - SUM( ALL + col0 ) FROM tab2 WHERE NOT - 79 - + 69 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT + - SUM ( ALL + col0 ) FROM tab2 WHERE NOT - 79 - + 69 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - 70 / + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL COUNT( + ( - 43 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL COUNT ( + ( - 43 ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL col0 * 28 AS col1 FROM tab1
----
1428
2380
2548

query I rowsort
SELECT - + col0 + + 61 AS col2 FROM tab1 AS cor0
----
-24
-30
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT - - ( - - col1 ) DIV - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6081
SELECT - - ( - - col1 ) / - col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL + COUNT( * ) * ( COUNT( * ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + COUNT ( * ) * ( COUNT ( * ) ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT ALL col1 DIV col1 * - + 87 col1 FROM tab1 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6083
SELECT ALL col1 / col1 * - + 87 col1 FROM tab1 AS cor0
----
-87
-87
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT + - col1 DIV col0 * + 25 + + - 19 FROM tab0 AS cor0
----
-144
-19
-19

skipif mysql # not compatible
query I rowsort label-6084
SELECT + - col1 / col0 * + 25 + + - 19 FROM tab0 AS cor0
----
-144
-19
-19

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 = + 7
----

query I rowsort
SELECT ALL - col0 * + + 11 + - + ( col0 ) * - - col1 * - + 40 + + + col2 AS col2 FROM tab1
----
16124
170147
28095

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL + + 98 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
882

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL + + 98 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL - COUNT( * ) + - COUNT( - 73 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - COUNT ( * ) + - COUNT ( - 73 ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 32
----

query I rowsort
SELECT + 36 + + + 51 AS col0 FROM tab2 AS cor0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 53 + + - col2 * - col1 + 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6092
SELECT DISTINCT + col1 + CAST( col2 AS SIGNED ), col0 FROM tab1 AS cor0
----
110
51
115
91
64
85

skipif mysql # not compatible
query II rowsort label-6092
SELECT DISTINCT + col1 + CAST ( col2 AS INTEGER ), col0 FROM tab1 AS cor0
----
110
51
115
91
64
85

query I rowsort
SELECT DISTINCT - 25 - - + 3 + - - 70 FROM tab0 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT + col0 - - + ( + CAST( NULL AS SIGNED ) ) / + col0 FROM tab2 AS cor0 WHERE ( + 95 ) <> 76
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT + col0 - - + ( + CAST ( NULL AS INTEGER ) ) / + col0 FROM tab2 AS cor0 WHERE ( + 95 ) <> 76
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT + - CAST( NULL AS SIGNED ) + + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT + - CAST ( NULL AS INTEGER ) + + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 - + + col1 * col0 * + col2 FROM tab2 cor0
----
-197043
-291383
-53907

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT - COUNT( * ) + + + ( COUNT( * ) ) * + MAX( ALL + col1 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 < col2
----
225

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - COUNT ( * ) + + + ( COUNT ( * ) ) * + MAX ( ALL + col1 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 < col2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL - MAX( ALL - ( + 46 ) ) AS col2 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - MAX ( ALL - ( + 46 ) ) AS col2 FROM tab1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT col2 DIV + 55 + - 17 AS col1 FROM tab0
----
-16
-17
-17

skipif mysql # not compatible
query I rowsort label-6099
SELECT col2 / + 55 + - 17 AS col1 FROM tab0
----
-16
-17
-17

query I rowsort
SELECT col1 + - col1 + + + col1 + + col0 FROM tab0 WHERE NULL IS NULL
----
108
96
98

query I rowsort
SELECT ALL + col2 * + col2 + col2 + + col2 AS col1 FROM tab2
----
1680
3480
575

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6102
SELECT DISTINCT * FROM tab1 WHERE - CAST( - 74 AS SIGNED ) <= + + 48
----

skipif mysql # not compatible
query III rowsort label-6102
SELECT DISTINCT * FROM tab1 WHERE - CAST ( - 74 AS INTEGER ) <= + + 48
----

query II rowsort
SELECT - col0, 54 AS col2 FROM tab2
----
-46
54
-64
54
-75
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6104
SELECT + 70 DIV + - COUNT( * ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6104
SELECT + 70 / + - COUNT ( * ) AS col2 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT COUNT( DISTINCT ( - + col1 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6105
SELECT COUNT ( DISTINCT ( - + col1 ) ) AS col1 FROM tab1
----
3

query II rowsort
SELECT 13 * 90 AS col0, + col2 FROM tab2
----
1170
23
1170
40
1170
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT - 37 DIV + SUM( - - 39 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6107
SELECT - 37 / + SUM ( - - 39 ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT - - 34 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col2 - - - col1 * - col0 AS col2 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT ALL + col2 - - 95 * + - 78 AS col0 FROM tab1 AS cor0
----
-7314
-7342
-7351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6112
SELECT col0 DIV - - col2 AS col0, + col2 * + 12 col1 FROM tab0
----
0
1188
0
564
8
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6112
SELECT col0 / - - col2 AS col0, + col2 * + 12 col1 FROM tab0
----
0
1188
0
564
8
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6113
SELECT ALL - COUNT( ALL - - col2 ) * - COUNT( - + col0 ) DIV - COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - COUNT ( ALL - - col2 ) * - COUNT ( - + col0 ) / - COUNT ( * ) FROM tab0 cor0
----
-3

query I rowsort
SELECT - + col2 * - + 75 * + col1 FROM tab2 cor0
----
231000
291450
87975

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col0, col2 + - col2 * - col0 / + 31, - - col0 - + col0 )
----

query I rowsort
SELECT ALL - + col2 * + + col1 - + col2 FROM tab0 AS cor0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6117
SELECT DISTINCT - 12 DIV COUNT( DISTINCT - col2 ) - + + 84 + COUNT( * ) FROM tab2 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT - 12 / COUNT ( DISTINCT - col2 ) - + + 84 + COUNT ( * ) FROM tab2 cor0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6118
SELECT ALL + - 10 DIV - - MAX( + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL + - 10 / - - MAX ( + col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6119
SELECT + SUM( ALL col0 ) AS col2, COUNT( * ) * + + 81 + - 24 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
199
315

skipif mysql # not compatible
query II rowsort label-6119
SELECT + SUM ( ALL col0 ) AS col2, COUNT ( * ) * + + 81 + - 24 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
199
315

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT - - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6120
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT - SUM( DISTINCT col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6121
SELECT - SUM ( DISTINCT col2 ) AS col1 FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6122
SELECT ALL + CAST( + - COUNT( ALL - col1 ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL + CAST ( + - COUNT ( ALL - col1 ) AS INTEGER ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + col1 * + - col2, - 50 * col0, 14, + col0, ( - - 40 ), - - 37, - col1 )
----

query I rowsort
SELECT ALL 54 + col2 FROM tab0
----
101
153
64

query I rowsort
SELECT DISTINCT col0 + + + col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT + COUNT( * ) * + - 61 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-6126
SELECT + COUNT ( * ) * + - 61 FROM tab1 AS cor0
----
-183

query I rowsort
SELECT ALL - col2 * - - ( - + 46 ) AS col1 FROM tab1 AS cor0
----
2714
3128
4416

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT DISTINCT col0 DIV + 63 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT col0 / + 63 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT COUNT( * ) + - 12 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6129
SELECT COUNT ( * ) + - 12 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + col0 * + ( col1 * - col0 ) FROM tab2
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL - MAX( DISTINCT - ( col2 ) ) - 83 AS col2 FROM tab1 WHERE 26 * + 71 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL - MAX ( DISTINCT - ( col2 ) ) - 83 AS col2 FROM tab1 WHERE 26 * + 71 = NULL
----
NULL

query I rowsort
SELECT ALL - 92 FROM tab1 WHERE NULL = + col2 * - 85
----

query I rowsort
SELECT ALL + 31 FROM tab0 WHERE col2 <= ( 19 + col1 )
----
31
31

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT SUM( + 2 ) + ( + 45 ) FROM tab0 WHERE NOT ( 30 + 47 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT SUM ( + 2 ) + ( + 45 ) FROM tab0 WHERE NOT ( 30 + 47 ) <= NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT ( col0 ) - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6138
SELECT ( col0 ) - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 63 FROM tab0
----
2961
6237
630

query I rowsort
SELECT 22 * - 53 FROM tab1
----
-1166
-1166
-1166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6141
SELECT COUNT( * ) * + MIN( - CAST( NULL AS SIGNED ) / + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6141
SELECT COUNT ( * ) * + MIN ( - CAST ( NULL AS INTEGER ) / + col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT SUM( ALL - col0 ) col1 FROM tab2 WHERE - 81 NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6142
SELECT SUM ( ALL - col0 ) col1 FROM tab2 WHERE - 81 NOT BETWEEN ( NULL ) AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) NOT IN ( - 81 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6144
SELECT + COUNT( * ) DIV ( 47 ) AS col2 FROM tab1 WHERE NOT - col0 = - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6144
SELECT + COUNT ( * ) / ( 47 ) AS col2 FROM tab1 WHERE NOT - col0 = - CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN ( - 2 ) AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6146
SELECT DISTINCT - 65 * CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-5655
-6305
-975

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT - 65 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-5655
-6305
-975

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT BETWEEN + col0 AND + col2 * 23
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 * col1 col1 FROM tab2
----
561
737
847

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT COUNT( * ) * - 92 AS col0 FROM tab1 WHERE ( 18 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6149
SELECT COUNT ( * ) * - 92 AS col0 FROM tab1 WHERE ( 18 ) IS NULL
----
0

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT ( 78 * + col2 + col0 * col1 ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT ( 58 ) FROM tab0 WHERE NOT ( + 14 ) IS NULL
----
58
58
58

query I rowsort
SELECT col1 / col1 AS col1 FROM tab2 WHERE NOT ( - 74 * - 57 + - col0 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT + MIN( DISTINCT 20 ) AS col0 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-6153
SELECT + MIN ( DISTINCT 20 ) AS col0 FROM tab1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT DISTINCT 38 DIV 93 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT 38 / 93 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT + col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT + col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT + 27 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6156
SELECT + 27 / + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 83 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT + 61 DIV col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6158
SELECT + 61 / col0 FROM tab0
----
0
0
4

query I rowsort
SELECT DISTINCT + col2 + + 30 AS col2 FROM tab2
----
53
70
88

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE ( + col1 ) <= col2 + - ( col1 + - col2 * col2 )
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 col2 FROM tab1 WHERE NOT - col0 / - 79 IS NULL
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT DISTINCT ( - COUNT( * ) ) + + 53 AS col1 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT ( - COUNT ( * ) ) + + 53 AS col1 FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT DISTINCT + COUNT( * ) * - 32 AS col2 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT + COUNT ( * ) * - 32 AS col2 FROM tab2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT COUNT( ALL - col0 ) * - ( + 29 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-6164
SELECT COUNT ( ALL - col0 ) * - ( + 29 ) FROM tab2
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 + 78 col1 FROM tab0 AS cor0
----
160
160
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT MIN( DISTINCT 22 ) col2 FROM tab2 AS cor0 WHERE NOT 89 + - ( - col0 ) / col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6166
SELECT MIN ( DISTINCT 22 ) col2 FROM tab2 AS cor0 WHERE NOT 89 + - ( - col0 ) / col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL MAX( - col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL MAX ( - col0 ) FROM tab0 cor0
----
-15

query I rowsort
SELECT - 79 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 87 >= - col2
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT ( 20 / 16 ) IN ( + col0 + col1 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6172
SELECT - - 18 DIV - COUNT( - col1 ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6172
SELECT - - 18 / - COUNT ( - col1 ) AS col1 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 3 * col2 AS col2 FROM tab2 AS cor0
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT - - 16 * + SUM( 30 * + col2 ) FROM tab2 AS cor0
----
58080

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT - - 16 * + SUM ( 30 * + col2 ) FROM tab2 AS cor0
----
58080

query I rowsort
SELECT DISTINCT 83 FROM tab2 AS cor0 WHERE NOT col1 / col1 = col1
----
83

query I rowsort
SELECT ALL + 64 * 88 FROM tab2 AS cor0
----
5632
5632
5632

query I rowsort
SELECT ALL - 90 + col2 FROM tab1 AS cor0 WHERE 89 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - col1 * 71 FROM tab0 AS cor0
----
-1491
-5751
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL - MIN( DISTINCT 51 ) FROM tab2 cor0 WHERE ( - col2 * + col0 + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - MIN ( DISTINCT 51 ) FROM tab2 cor0 WHERE ( - col2 * + col0 + col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT - + SUM( ALL - 26 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT - + SUM ( ALL - 26 ) FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL > + CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query I rowsort label-6185
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL > + CAST ( NULL AS INTEGER ) * - col2
----

query I rowsort
SELECT ALL col2 * - + 73 FROM tab0
----
-3431
-7227
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT COUNT( 86 ) + + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6187
SELECT COUNT ( 86 ) + + COUNT ( * ) AS col2 FROM tab2
----
6

query I rowsort
SELECT 55 + - col0 + - col0 FROM tab2
----
-37
-73
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6189
SELECT ALL COUNT( * ) DIV 34 AS col2 FROM tab1 WHERE + col0 * ( - col0 ) + + ( 32 ) = - ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL COUNT ( * ) / 34 AS col2 FROM tab1 WHERE + col0 * ( - col0 ) + + ( 32 ) = - ( - col2 )
----
0

query I rowsort
SELECT 81 * + col2 + 16 FROM tab0
----
3823
8035
826

query I rowsort
SELECT - col0 * + ( + col1 ) + 13 FROM tab2
----
-2333
-4915
-5012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 + + col1 col2 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN NULL AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT + 49 + + col0 AS col2 FROM tab2 AS cor0
----
113
124
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT + SUM( DISTINCT - - col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-6195
SELECT + SUM ( DISTINCT - - col0 ) FROM tab0 cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + col1 NOT BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 88 * + ( + 40 ) * + col0 col0 FROM tab0 AS cor0
----
-306240
-341440
-52800

query II rowsort
SELECT ALL + col0 AS col2, 3 AS col1 FROM tab2
----
46
3
64
3
75
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6199
SELECT - 80 FROM tab2 WHERE + col2 * col2 >= ( - CAST( + col1 AS SIGNED ) * col0 )
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-6199
SELECT - 80 FROM tab2 WHERE + col2 * col2 >= ( - CAST ( + col1 AS INTEGER ) * col0 )
----
-80
-80
-80

query III rowsort
SELECT * FROM tab2 WHERE col0 * col1 + + col0 * - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + col0 + - col0 + - col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT + + MAX( ALL col0 ) - - COUNT( * ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT + + MAX ( ALL col0 ) - - COUNT ( * ) FROM tab1 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6203
SELECT ALL * FROM tab1 AS cor0 WHERE - 73 <> - CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-6203
SELECT ALL * FROM tab1 AS cor0 WHERE - 73 <> - CAST ( NULL AS INTEGER ) + col1
----

query I rowsort
SELECT + 75 + + col0 AS col0 FROM tab2 AS cor0
----
121
139
150

query I rowsort
SELECT - col1 + - col1 + - col2 FROM tab0 AS cor0
----
-101
-209
-52

query I rowsort
SELECT DISTINCT + - col0 * - - col1 + + 53 * + col2 FROM tab0 AS cor0
----
-1297
1276
5150

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 + col0 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6208
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT - + col0 / 5 * - 65 + + col2 * - col1 <> NULL
----

query I rowsort
SELECT + col1 FROM tab0 WHERE col2 < ( NULL )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - + col2 / + 21 * 34 NOT IN ( + ( + 79 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - 51 ) IS NOT NULL
----

query I rowsort
SELECT - ( col1 ) * 58 AS col2 FROM tab1 WHERE NOT NULL IN ( - col1 + - col0 + col0 )
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL BETWEEN ( - + 65 + - col2 * 69 ) AND ( 40 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 25 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT IN ( - col2 / - col1 ) ) )
----

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( col1 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL + - MIN( - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL + - MIN ( - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT DISTINCT + CAST( - 22 AS SIGNED ) + - 24 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-46

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT + CAST ( - 22 AS INTEGER ) + - 24 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT DISTINCT + COUNT( DISTINCT + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT DISTINCT COUNT( DISTINCT + 3 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT COUNT ( DISTINCT + 3 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT - + 86 - + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-133
-185
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * 2 col0 FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT + 91 DIV + + ( - - col1 ) FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-6225
SELECT + 91 / + + ( - - col1 ) FROM tab1 AS cor0
----
1
18
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * col2 NOT IN ( 15 )
----

query II rowsort
SELECT DISTINCT - col1, + col1 AS col2 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT ALL 55 AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 / - col2 ) < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + - col1 ) col0 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 54 ) < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6233
SELECT ( + 60 ) * + COUNT( DISTINCT - col0 ) * CAST( NULL AS SIGNED ) + - 42 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT ( + 60 ) * + COUNT ( DISTINCT - col0 ) * CAST ( NULL AS INTEGER ) + - 42 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 * - 76 AS col1 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT + COUNT( * ) * - 95 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-6235
SELECT + COUNT ( * ) * - 95 FROM tab2
----
-285

query I rowsort
SELECT DISTINCT + 7 * ( col2 ) AS col2 FROM tab1
----
413
476
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6237
SELECT ALL - col2 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL - col2 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT DISTINCT + COUNT( + 49 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT + COUNT ( + 49 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 * - col1 + + 43 * + 26 + + col0 AS col1 FROM tab2 AS cor0
----
-1182
-3746
-3832

query I rowsort
SELECT 21 + + - 6 * col1 * + + col2 - + + col2 FROM tab1
----
-1808
-19223
-8139

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT DISTINCT ( + - COUNT( * ) ) + 96 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT ( + - COUNT ( * ) ) + 96 FROM tab2
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 70 col0 FROM tab2
----
-3570
-4690
-5390

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT ALL 59 * + 10 + + + col1 + + - 87 DIV + 24 + - ( - + col0 ) + + 65 * col1 FROM tab0
----
2060
5948
750

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL 59 * + 10 + + + col1 + + - 87 / + 24 + - ( - + col0 ) + + 65 * col1 FROM tab0
----
2060
5948
750

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE ( - 68 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT DISTINCT + COUNT( * ) - + SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT + COUNT ( * ) - + SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6247
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( + + col2 ) * + col2 + 17 * + - col0 ) BETWEEN - CAST( NULL AS SIGNED ) + col1 * - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6247
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( + + col2 ) * + col2 + 17 * + - col0 ) BETWEEN - CAST ( NULL AS INTEGER ) + col1 * - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT - COUNT( * ) - + - 29 * + + 54 - MIN( CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
1512

skipif mysql # not compatible
query I rowsort label-6249
SELECT - COUNT ( * ) - + - 29 * + + 54 - MIN ( CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
1512

query I rowsort
SELECT + col1 - - col0 + + + col1 FROM tab2 cor0
----
148
209
218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6251
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ) - - AVG ( - - 47 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - - AVG ( - - 47 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT DISTINCT + SUM( + 44 ) * + COUNT( * ) FROM tab2 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT + SUM ( + 44 ) * + COUNT ( * ) FROM tab2 AS cor0
----
396

query I rowsort
SELECT + 59 - - col1 AS col0 FROM tab1 AS cor0
----
106
64
73

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL <= ( - 90 * - col0 ) )
----

query I rowsort
SELECT ALL + 14 * + ( 6 ) - - col0 + 71 AS col0 FROM tab0 AS cor0
----
170
242
252

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT DISTINCT + 0 * + MIN( - + col2 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + 0 * + MIN ( - + col2 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT 44 * + ( + ( COUNT( * ) ) ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-6258
SELECT 44 * + ( + ( COUNT ( * ) ) ) FROM tab1
----
132

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN 13 AND - - 4
----

query II rowsort
SELECT DISTINCT - ( + + ( - col0 ) ) AS col1, - 6 FROM tab2
----
46
-6
64
-6
75
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT COUNT( * ) FROM tab1 WHERE NOT 66 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6262
SELECT COUNT ( * ) FROM tab1 WHERE NOT 66 IS NULL
----
3

query I rowsort
SELECT DISTINCT + + 42 AS col1 FROM tab1 cor0
----
42

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT + col1 + - 86 + - + col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT - 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-6265
SELECT - COUNT ( - col1 ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col2 * + col0 + - col2 + col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL + 55 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6269
SELECT ALL + CAST( SUM( DISTINCT + 2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL + CAST ( SUM ( DISTINCT + 2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT + ( - 9 ) * COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6270
SELECT + ( - 9 ) * COUNT ( * ) FROM tab0 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6271
SELECT + 65 DIV - col1 + 74 AS col1 FROM tab1 AS cor0
----
61
70
73

skipif mysql # not compatible
query I rowsort label-6271
SELECT + 65 / - col1 + 74 AS col1 FROM tab1 AS cor0
----
61
70
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

query I rowsort
SELECT 66 * + col2 + col2 FROM tab0 AS cor0
----
3149
6633
670

query II rowsort
SELECT ALL - ( - - 15 ) AS col0, - 61 AS col1 FROM tab0 AS cor0
----
-15
-61
-15
-61
-15
-61

query I rowsort
SELECT + 44 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - col2 * 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL + 89 + + COUNT( ALL - - ( - + 82 ) ) FROM tab0 AS cor0 WHERE NOT - 89 <= NULL
----
89

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + 89 + + COUNT ( ALL - - ( - + 82 ) ) FROM tab0 AS cor0 WHERE NOT - 89 <= NULL
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL <= + col0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 98 - ( - 9 ) col1 FROM tab1
----
158
192
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 56 col1 FROM tab1
----
-2632
-280
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 WHERE NULL <> NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= NULL AND NOT col2 + - - 20 + col2 <> ( - + ( - 35 ) + + col2 )
----

query II rowsort
SELECT DISTINCT ( - col0 ) * col2 AS col0, - col1 * - 51 AS col2 FROM tab0
----
-705
4131
-870
1071
-9603
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT col0 + - - 53 * + CAST( + col2 AS SIGNED ) + 90 FROM tab1
----
3302
3785
5229

skipif mysql # not compatible
query I rowsort label-6284
SELECT col0 + - - 53 * + CAST ( + col2 AS INTEGER ) + 90 FROM tab1
----
3302
3785
5229

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 72 + ( + col2 ) AS col1 FROM tab1
----
131
140
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6287
SELECT + col1 * + 62 + col0 + col0 + + - ( CAST( NULL AS SIGNED ) ) - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT + col1 * + 62 + col0 + col0 + + - ( CAST ( NULL AS INTEGER ) ) - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 6, col0 AS col1 FROM tab0 AS cor0
----
-6
15
-6
87
-6
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6289
SELECT DISTINCT 79 * CAST( col2 AS SIGNED ) AS col2, + 44 DIV - col1 AS col0 FROM tab2 AS cor0
----
1817
0
3160
0
4582
0

skipif mysql # not compatible
query II rowsort label-6289
SELECT DISTINCT 79 * CAST ( col2 AS INTEGER ) AS col2, + 44 / - col1 AS col0 FROM tab2 AS cor0
----
1817
0
3160
0
4582
0

query I rowsort
SELECT + col2 * + + col1 * - col2 AS col1 FROM tab1 AS cor0 WHERE - ( + col0 ) BETWEEN NULL AND - col2
----

query I rowsort
SELECT 1 - col2 + + + col2 * - col2 AS col2 FROM tab1
----
-3539
-4691
-9311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * col1 - - - col0 + + 10 + ( + - 95 ) + - + 90 AS col0, - col0 col0 FROM tab2
----
-2567
-46
-5167
-64
-5275
-75

query I rowsort
SELECT + 82 - + - 45 AS col2 FROM tab0
----
127
127
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - - COUNT( * ) + + + MIN( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-6294
SELECT - - COUNT ( * ) + + + MIN ( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT COUNT( * ) + 85 AS col0 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6295
SELECT COUNT ( * ) + 85 AS col0 FROM tab2 AS cor0
----
88

query I rowsort
SELECT + + col2 * - col1 + + col2 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT DISTINCT + 81 * + + col0 FROM tab2 AS cor0
----
3726
5184
6075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT DISTINCT 40 AS col2 FROM tab2 AS cor0 WHERE ( col0 ) IN ( - - CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT 40 AS col2 FROM tab2 AS cor0 WHERE ( col0 ) IN ( - - CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL - COUNT( + col0 ) * + 89 FROM tab1 cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - COUNT ( + col0 ) * + 89 FROM tab1 cor0
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6300
SELECT DISTINCT - - col2 + 81 AS col1 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + col1 < + col0 * col1 + + 87
----

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT - - col2 + 81 AS col1 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + col1 < + col0 * col1 + + 87
----

query I rowsort
SELECT + col2 * + col1 * - 98 - - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-114903
-301763
-380761

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT + MIN( 74 ) * COUNT( * ) AS col0 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-6302
SELECT + MIN ( 74 ) * COUNT ( * ) AS col0 FROM tab2
----
222

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6303
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - col0 * + + CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-6303
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - col0 * + + CAST ( NULL AS INTEGER ) * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 * - ( - 19 ) * + - ( - col1 ) col0 FROM tab2
----
48450
63650
73150

onlyif mysql # DIV for integer division: 
query II rowsort label-6305
SELECT + 16 DIV + col1 col2, + col1 + + col1 DIV - + col2 FROM tab0
----
0
19
0
80
16
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6305
SELECT + 16 / + col1 col2, + col1 + + col1 / - + col2 FROM tab0
----
0
19
0
80
16
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT + COUNT( * ) * - - COUNT( * ) * - CAST( - - SUM( ALL + 14 ) AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
1134

skipif mysql # not compatible
query I rowsort label-6306
SELECT + COUNT ( * ) * - - COUNT ( * ) * - CAST ( - - SUM ( ALL + 14 ) AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1134

onlyif mysql # DIV for integer division: 
query I rowsort label-6307
SELECT 92 DIV + col1 AS col0 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-6307
SELECT 92 / + col1 AS col0 FROM tab1
----
1
18
6

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL COUNT( + - 55 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL COUNT ( + - 55 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT + 2 + 57 > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT + 2 + 57 > NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT col2 * + + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT 37 DIV col1 AS col2 FROM tab0
----
0
1
37

skipif mysql # not compatible
query I rowsort label-6312
SELECT 37 / col1 AS col2 FROM tab0
----
0
1
37

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 40 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - MAX( - 63 ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-6314
SELECT - MAX ( - 63 ) AS col2 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL SUM( - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL SUM ( - col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT - col1 FROM tab1 WHERE + + 85 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6317
SELECT + CAST( col2 AS SIGNED ) col1, 54 FROM tab1
----
59
54
68
54
96
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6317
SELECT + CAST ( col2 AS INTEGER ) col1, 54 FROM tab1
----
59
54
68
54
96
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT MAX( col2 ) * + COUNT( col1 ) AS col2 FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT MAX ( col2 ) * + COUNT ( col1 ) AS col2 FROM tab2 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL + COUNT( * ) + ( - 8 ) AS col0 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL + COUNT ( * ) + ( - 8 ) AS col0 FROM tab2
----
-5

query I rowsort
SELECT ALL - ( 41 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6321
SELECT DISTINCT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - - 28 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL - 9 AS col2 FROM tab2 cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6324
SELECT ALL 28 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
28
-3

skipif mysql # not compatible
query II rowsort label-6324
SELECT ALL 28 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
28
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col0 ) * col2 col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-6326
SELECT + 6 AS col1, COUNT( * ) FROM tab0 cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-6326
SELECT + 6 AS col1, COUNT ( * ) FROM tab0 cor0
----
6
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6327
SELECT + CAST( - + MIN( ALL col2 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6327
SELECT + CAST ( - + MIN ( ALL col2 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT SUM( DISTINCT - - 99 ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6328
SELECT SUM ( DISTINCT - - 99 ) FROM tab2 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6329
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + 84 * 35 + 38 NOT IN ( + col1, col0, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6329
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + 84 * 35 + 38 NOT IN ( + col1, col0, - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, 29 AS col1 FROM tab0
----
10
29
47
29
99
29

query I rowsort
SELECT DISTINCT - 89 * - - col0 FROM tab2
----
-4094
-5696
-6675

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE NOT - 27 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * + col1 col0 FROM tab1
----
-1330
-4465
-475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT DISTINCT + - col0 AS col0 FROM tab1 WHERE NOT col2 * + ( - - CAST( - col2 AS SIGNED ) ) NOT BETWEEN NULL AND - col1 * ( - 58 )
----

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT + - col0 AS col0 FROM tab1 WHERE NOT col2 * + ( - - CAST ( - col2 AS INTEGER ) ) NOT BETWEEN NULL AND - col1 * ( - 58 )
----

query I rowsort
SELECT + - col1 * + 26 AS col0 FROM tab2 cor0
----
-1326
-1742
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - - COUNT( * ) * 52 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - - COUNT ( * ) * 52 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - + 0 * - 8 * col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6338
SELECT ALL + CAST( NULL AS DECIMAL ) * + 36 AS col1, 48 FROM tab2 AS cor0
----
NULL
48
NULL
48
NULL
48

skipif mysql # not compatible
query II rowsort label-6338
SELECT ALL + CAST ( NULL AS REAL ) * + 36 AS col1, 48 FROM tab2 AS cor0
----
NULL
48
NULL
48
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT DISTINCT MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-6340
SELECT + - col1 AS col2, col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-6340
SELECT + - col1 AS col2, col1 / col0 AS col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 1 + 3 col2 FROM tab1
----
62
71
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT DISTINCT - 70 DIV - - ( col0 ) FROM tab0 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT - 70 / - - ( col0 ) FROM tab0 AS cor0
----
-4
0

query I rowsort
SELECT ALL col2 + + 50 AS col1 FROM tab1 AS cor0
----
109
118
146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6344
SELECT - CAST( NULL AS SIGNED ) + col0 AS col0, + col1 * + + ( + 72 ) FROM tab1 cor0
----
NULL
1008
NULL
3384
NULL
360

skipif mysql # not compatible
query II rowsort label-6344
SELECT - CAST ( NULL AS INTEGER ) + col0 AS col0, + col1 * + + ( + 72 ) FROM tab1 cor0
----
NULL
1008
NULL
3384
NULL
360

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT DISTINCT + - SUM( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT + - SUM ( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT col0 * - - col2 + + - 14 FROM tab2 AS cor0
----
1044
2546
4336

query I rowsort
SELECT + + 62 * 62 + + col1 AS col1 FROM tab0 AS cor0
----
3845
3865
3925

query I rowsort
SELECT DISTINCT + col1 * 37 AS col2 FROM tab0
----
2997
37
777

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * - col2 * + col1 NOT IN ( + ( + + col1 ) * - 81 + + 66 - - 57 + + col2 * - col1 * + col0 * - - ( - col1 ) + + 28 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6350
SELECT 65 DIV + + MAX( 61 ) + + 87 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-6350
SELECT 65 / + + MAX ( 61 ) + + 87 FROM tab0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT ALL + 16 * - col2 - - col0 DIV + - col0 FROM tab0 AS cor0
----
-1585
-161
-753

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + 16 * - col2 - - col0 / + - col0 FROM tab0 AS cor0
----
-1585
-161
-753

query I rowsort
SELECT DISTINCT - col2 - - 54 FROM tab2 AS cor0
----
-4
14
31

query I rowsort
SELECT ALL - ( + + 45 ) FROM tab1
----
-45
-45
-45

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6355
SELECT + MIN( DISTINCT + + col1 ) DIV + 87 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6355
SELECT + MIN ( DISTINCT + + col1 ) / + 87 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 97 col1 FROM tab0 AS cor0
----
-4559
-9603
-970

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT 97 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT - ( - SUM( DISTINCT + - 1 ) ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6358
SELECT - ( - SUM ( DISTINCT + - 1 ) ) col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT ALL MIN( DISTINCT col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL MIN ( DISTINCT col1 ) FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + ( - col0 ) + - col1 NOT IN ( - - 61 * col0 + + - col0, ( - - col0 ) * 10 * - - col2, 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT DISTINCT + MAX( DISTINCT - 25 ) AS col2 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT + MAX ( DISTINCT - 25 ) AS col2 FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT SUM( DISTINCT - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-6362
SELECT SUM ( DISTINCT - col0 ) AS col1 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 12 ) col2 FROM tab0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6364
SELECT DISTINCT CAST( - + col0 AS SIGNED ) * + col0 * - ( + - col2 ) * + col1 FROM tab0
----
-1589490
-856575
-931491

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) * + col0 * - ( + - col2 ) * + col1 FROM tab0
----
-1589490
-856575
-931491

query I rowsort
SELECT ALL + col1 * - 9 AS col0 FROM tab0 WHERE + - 3 NOT IN ( col1, col0 )
----
-189
-729
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT SUM( DISTINCT - ( - 72 ) ) AS col1, - MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
72
47

skipif mysql # not compatible
query II rowsort label-6366
SELECT SUM ( DISTINCT - ( - 72 ) ) AS col1, - MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
72
47

query I rowsort
SELECT DISTINCT col1 * - col2 * col1 AS col0 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT col2 * - - col2 AS col1 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab2 WHERE + col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 75 / - + col1 + - + col1 BETWEEN NULL AND ( + + col0 ) + + 4
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = - col2
----

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab2 cor0
----
91

query I rowsort
SELECT ALL + + 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
58

query I rowsort
SELECT col0 + + + 67 * + 4 * col2 - col0 AS col1 FROM tab0
----
12596
26532
2680

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT COUNT( * ) + + - 65 + + ( + COUNT( * ) ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-6377
SELECT COUNT ( * ) + + - 65 + + ( + COUNT ( * ) ) FROM tab2
----
-59

query I rowsort
SELECT ALL col1 + - + col0 - - col2 + + col0 * col0 AS col2 FROM tab1
----
2660
7204
8305

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL NOT IN ( 15 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT - - CAST( - 89 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
-4539
-7565
-8099

skipif mysql # not compatible
query I rowsort label-6381
SELECT - - CAST ( - 89 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
-4539
-7565
-8099

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6382
SELECT DISTINCT + + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT + + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 99 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 88 * + col2 - - 31 AS col0 FROM tab0 AS cor0
----
4167
8743
911

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT DISTINCT 58 * + + COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT 58 * + + COUNT ( * ) FROM tab2 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT DISTINCT + 64 * COUNT( * ) * - 57 - 47 col1 FROM tab0 AS cor0
----
-10991

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6386
SELECT DISTINCT + 64 * COUNT ( * ) * - 57 - 47 col1 FROM tab0 AS cor0
----
-10991

query II rowsort
SELECT - col1 AS col0, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT - col0 * + + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT - col1 * + - col2 AS col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL - 29 * + + 88 * + MAX( - + 95 ) * - COUNT( * ) + + - 16 * - - 2 FROM tab1
----
-727352

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL - 29 * + + 88 * + MAX ( - + 95 ) * - COUNT ( * ) + + - 16 * - - 2 FROM tab1
----
-727352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * 81 col0 FROM tab1
----
396576
406215
501228

query III rowsort
SELECT * FROM tab2 WHERE col1 - col1 IN ( 39, + 37 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT DISTINCT ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 19 + col1 AS col0 FROM tab0 AS cor0
----
100
20
40

query I rowsort
SELECT + col2 + - 71 FROM tab0 AS cor0
----
-24
-61
28

query II rowsort
SELECT + 12 * - col0 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
-552
51
-768
77
-900
67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / - 72 * - col2 >= NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, + 29 + + 96 * - col0 FROM tab1 cor0
----
51
-4867
85
-8131
91
-8707

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6399
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6399
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

query II rowsort
SELECT ALL col2 AS col0, col0 - + + ( col1 ) * col1 FROM tab2 AS cor0
----
23
-2555
40
-5865
58
-4414

onlyif mysql # aggregate syntax: 
query II rowsort label-6401
SELECT - - 52 AS col0, COUNT( * ) FROM tab1 AS cor0
----
52
3

skipif mysql # not compatible
query II rowsort label-6401
SELECT - - 52 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
52
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col1 - - 8 AS col2 FROM tab0 AS cor0
----
-10
29
-47
89
-99
9

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * + col2 - col1 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6404
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN - col1 * 57 * + col2 + + ( - - col1 ) + + CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6404
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN - col1 * 57 * + col2 + + ( - - col1 ) + + CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT ALL CAST( - + 43 AS SIGNED ) AS col1 FROM tab0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL CAST ( - + 43 AS INTEGER ) AS col1 FROM tab0
----
-43
-43
-43

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN + 16 AND + + 70
----

query I rowsort
SELECT ALL col0 * + ( + - 14 ) FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT 47 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT col0 + - 71 AS col0 FROM tab0
----
-56
16
26

query I rowsort
SELECT col2 * + - ( 67 ) AS col1 FROM tab0 cor0
----
-3149
-6633
-670

query II rowsort
SELECT DISTINCT - - 18 * + 14, ( - 66 ) AS col0 FROM tab2 AS cor0
----
252
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - 4 * SUM( + + 5 ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6412
SELECT - 4 * SUM ( + + 5 ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT 24 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - - ( - col2 ) AND 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT CAST( - - 41 AS SIGNED ) FROM tab0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-6415
SELECT CAST ( - - 41 AS INTEGER ) FROM tab0
----
41
41
41

query I rowsort
SELECT 18 * - + 36 - + 6 FROM tab2
----
-654
-654
-654

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT DISTINCT 64 + + 66 * COUNT( * ) FROM tab0 AS cor0
----
262

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT 64 + + 66 * COUNT ( * ) FROM tab0 AS cor0
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6418
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 71 * + col1 * - col0 - + col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col0 col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT + 40 + 95 AS col1 FROM tab2 AS cor0
----
135
135
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT - 45 + COUNT( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6422
SELECT - 45 + COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 96 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6424
SELECT + CAST( NULL AS SIGNED ) * col0 + + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT + CAST ( NULL AS INTEGER ) * col0 + + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= col2
----

query I rowsort
SELECT + col2 + - col1 + - col0 + 79 AS col2 FROM tab2 AS cor0
----
-22
-5
5

query I rowsort
SELECT ALL + 23 * + + col1 AS col2 FROM tab0 AS cor0
----
1863
23
483

onlyif mysql # DIV for integer division: 
query I rowsort label-6428
SELECT DISTINCT - 73 - + - col2 DIV + + 71 + + + col0 AS col2 FROM tab0 AS cor0
----
-58
14
25

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT - 73 - + - col2 / + + 71 + + + col0 AS col2 FROM tab0 AS cor0
----
-58
14
25

query I rowsort
SELECT DISTINCT + 31 * - col1 FROM tab2 WHERE NOT col0 IS NULL
----
-1581
-2077
-2387

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT col0 * + col1 DIV - + col1 col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6430
SELECT col0 * + col1 / - + col1 col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT - 41 + - + col2 = col0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= 5
----

query I rowsort
SELECT ALL col2 * 28 AS col1 FROM tab0
----
1316
2772
280

query I rowsort
SELECT + col0 * + 49 * - col1 + + 32 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT MAX( ALL + + 66 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT MAX ( ALL + + 66 ) FROM tab0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT + COUNT( * ) + - 19 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-6437
SELECT + COUNT ( * ) + - 19 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT ALL + MAX( ALL - - 16 ) AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL + MAX ( ALL - - 16 ) AS col0 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT + MAX( DISTINCT - + 23 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6439
SELECT + MAX ( DISTINCT - + 23 ) FROM tab2
----
-23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( 43 ) BETWEEN NULL AND - + col1
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT MAX( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6441
SELECT MAX ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6442
SELECT CAST( NULL AS SIGNED ) AS col2, - col1 - - - col1 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - - ( - + col2 ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-6442
SELECT CAST ( NULL AS INTEGER ) AS col2, - col1 - - - col1 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - - ( - + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT MIN( col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT MIN ( col2 ) FROM tab2 cor0
----
23

query I rowsort
SELECT + + col1 * + col1 * col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6445
SELECT ALL + 66 DIV + + COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + 66 / + + COUNT ( * ) FROM tab1
----
22

query I rowsort
SELECT DISTINCT - 82 FROM tab0 WHERE - + 80 / - col2 - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col1 FROM tab1
----
37
37
37

query II rowsort
SELECT + + col2 AS col1, col1 AS col1 FROM tab2 WHERE NOT - 56 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6449
SELECT ALL - col2 AS col2, CAST( NULL AS SIGNED ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-6449
SELECT ALL - col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query II rowsort
SELECT ALL + col0, ( + col0 ) AS col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT DISTINCT - col1 * col1 + + 99 AS col2, - col0 AS col2 FROM tab1
----
-2110
-91
-97
-51
74
-85

query II rowsort
SELECT ALL + 2, + col2 AS col0 FROM tab0
----
2
10
2
47
2
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT ALL + ( - + 27 ) + 67 - + + col2 DIV - col1 FROM tab1
----
41
46
51

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL + ( - + 27 ) + 67 - + + col2 / - col1 FROM tab1
----
41
46
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 22 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT + + MAX( - col1 ) + ( + - COUNT( * ) ) FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6455
SELECT + + MAX ( - col1 ) + ( + - COUNT ( * ) ) FROM tab0 cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6456
SELECT 11 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL >= 36
----

skipif mysql # not compatible
query I rowsort label-6456
SELECT 11 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= 36
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT - col1 + 26 + + 4 DIV + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-25
-41
-51

skipif mysql # not compatible
query I rowsort label-6457
SELECT - col1 + 26 + + 4 / + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-25
-41
-51

query I rowsort
SELECT ALL + ( - 86 ) AS col0 FROM tab1 AS cor0
----
-86
-86
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6459
SELECT + + CAST( NULL AS SIGNED ) + + COUNT( + - 21 ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT + + CAST ( NULL AS INTEGER ) + + COUNT ( + - 21 ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6460
SELECT COUNT( ALL + 66 ) * + COUNT( * ) * - ( + COUNT( * ) ) * + CAST( NULL AS SIGNED ) + - - 52 + + + SUM( DISTINCT - 39 ) FROM tab2 WHERE NULL BETWEEN + - col2 AND 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT COUNT ( ALL + 66 ) * + COUNT ( * ) * - ( + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + - - 52 + + + SUM ( DISTINCT - 39 ) FROM tab2 WHERE NULL BETWEEN + - col2 AND 96
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + + 17 col1, 64 FROM tab1 AS cor0
----
22
64
31
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT - ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6462
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6463
SELECT + AVG ( + 64 ), - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col2 >= NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6463
SELECT + AVG ( + 64 ), - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col2 >= NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT DISTINCT + + 98 + - SUM( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + + 98 + - SUM ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-58

query I rowsort
SELECT - col1 * - + 9 - - - col1 AS col0 FROM tab2 cor0
----
408
536
616

query I rowsort
SELECT + col0 - + + col1 AS col0 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT col2 - + 86 FROM tab2
----
-28
-46
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6468
SELECT + col0 + - 79 + + 54 DIV - 76 AS col1 FROM tab0
----
-64
18
8

skipif mysql # not compatible
query I rowsort label-6468
SELECT + col0 + - 79 + + 54 / - 76 AS col1 FROM tab0
----
-64
18
8

query I rowsort
SELECT DISTINCT - col1 * 46 * col1 + - 57 + - 66 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-101737
-1273
-9139

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL - ( - - COUNT( * ) ) * - MAX( - - 51 ) AS col1 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - ( - - COUNT ( * ) ) * - MAX ( - - 51 ) AS col1 FROM tab0 AS cor0
----
153

query I rowsort
SELECT DISTINCT - col0 * + col2 * + col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6472
SELECT DISTINCT MIN( + CAST( + - col2 AS SIGNED ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT MIN ( + CAST ( + - col2 AS INTEGER ) ) FROM tab0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 62 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT + ( COUNT( * ) ) * + 41 AS col2 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-6474
SELECT + ( COUNT ( * ) ) * + 41 AS col2 FROM tab1 AS cor0
----
123

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 96 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= + col0 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT - + ( + col0 ) DIV + + col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6477
SELECT - + ( + col0 ) / + + col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT DISTINCT + col0 DIV - 11 + - - ( + + 56 ) FROM tab1 AS cor0
----
48
49
52

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT + col0 / - 11 + - - ( + + 56 ) FROM tab1 AS cor0
----
48
49
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6479
SELECT col0 DIV + ( - col1 ) FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6479
SELECT col0 / + ( - col1 ) FROM tab1 AS cor0
----
-1
-17
-3

query II rowsort
SELECT - 71 AS col0, 12 FROM tab2 AS cor0
----
-71
12
-71
12
-71
12

query II rowsort
SELECT - col1 AS col1, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6482
SELECT + MAX( - ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT + MAX ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + - col1 * 2 + + - col2 AS col2 FROM tab0 cor0
----
-101
-209
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6484
SELECT ALL + COUNT( * ) DIV COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL + COUNT ( * ) / COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT - col1 + + col1 - + 21 + ( + col1 ) FROM tab0
----
-20
0
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL - - MAX( DISTINCT + col0 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - - MAX ( DISTINCT + col0 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT col1 + - + 57 DIV col1 AS col2 FROM tab2
----
50
67
77

skipif mysql # not compatible
query I rowsort label-6487
SELECT col1 + - + 57 / col1 AS col2 FROM tab2
----
50
67
77

query I rowsort
SELECT ALL - col2 + col1 - + col2 + - col1 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT - - 87 * COUNT( * ) * 6 AS col1 FROM tab2 cor0
----
1566

skipif mysql # not compatible
query I rowsort label-6489
SELECT - - 87 * COUNT ( * ) * 6 AS col1 FROM tab2 cor0
----
1566

query I rowsort
SELECT + + col0 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
-262144
-421875
-97336

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT DISTINCT 74 - - + COUNT( DISTINCT 24 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT 74 - - + COUNT ( DISTINCT 24 ) FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 WHERE + 29 <= NULL
----

query I rowsort
SELECT ALL + 95 + col2 + + col1 + col1 - 57 AS col1 FROM tab1
----
107
162
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col1, col0 col2 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT - + col1 + + col2 + - 68 AS col2 FROM tab2 AS cor0
----
-105
-77
-96

query I rowsort
SELECT DISTINCT + 96 + 96 FROM tab0 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT DISTINCT + - 8 - SUM( ALL col2 ) FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT + - 8 - SUM ( ALL col2 ) FROM tab2 AS cor0
----
-129

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL SUM( + - col1 ) + COUNT( * ) FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL SUM ( + - col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
-192

query I rowsort
SELECT ALL col0 * - col1 * + col2 + 58 - - col1 * 4 AS col1 FROM tab1 AS cor0
----
-24997
-290590
-68430

query I rowsort
SELECT + - col2 + + + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 97 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6503
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 93 - + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6503
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 93 - + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT ALL - + 30 DIV col1 + 63 FROM tab1 AS cor0
----
57
61
63

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - + 30 / col1 + 63 FROM tab1 AS cor0
----
57
61
63

query I rowsort
SELECT DISTINCT + 48 - + + col1 AS col2 FROM tab0 AS cor0
----
-33
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT DISTINCT + 33 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT + 33 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
36

query II rowsort
SELECT ALL - 75 AS col2, col1 + - 56 * + ( + col0 ) + + col0 AS col2 FROM tab2 cor0
----
-75
-2479
-75
-3443
-75
-4058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT col1 AS col0 FROM tab2 WHERE NOT + 56 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6508
SELECT col1 AS col0 FROM tab2 WHERE NOT + 56 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col1 AS col2, 80 * + 81 + + + col1 col2 FROM tab2
----
1173
6531
3080
6557
3886
6547

onlyif mysql # aggregate syntax: 
query II rowsort label-6510
SELECT DISTINCT COUNT( ALL - + col0 ) AS col2, - 82 * + 89 FROM tab1
----
3
-7298

skipif mysql # not compatible
query II rowsort label-6510
SELECT DISTINCT COUNT ( ALL - + col0 ) AS col2, - 82 * + 89 FROM tab1
----
3
-7298

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + - - 88 + 9 * + - col1 + 17 + + col2 * - col0 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 * col1 AS col1, - col2 * + col2 AS col2 FROM tab2
----
-1173
-529
-3080
-1600
-3886
-3364

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT SUM( ALL + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6513
SELECT SUM ( ALL + col1 ) AS col0 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6514
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6514
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 50 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - ( + - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6517
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( - 12 AS SIGNED ) - ( 48 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6517
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( - 12 AS INTEGER ) - ( 48 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 63 * - 69 AS col1 FROM tab2 AS cor0
----
4347

query I rowsort
SELECT ALL - - col2 * 44 AS col0 FROM tab2 AS cor0
----
1012
1760
2552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + ( + + col0 ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT ALL - COUNT( - col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - COUNT ( - col1 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6522
SELECT + CAST( NULL AS SIGNED ) AS col2, col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-6522
SELECT + CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 col0 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6524
SELECT ALL - col1 DIV + ( 6 ) AS col2 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL - col1 / + ( 6 ) AS col2 FROM tab1 AS cor0
----
-2
-7
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 44 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + CAST ( NULL AS INTEGER ) + + col1
----

query I rowsort
SELECT - col2 * - 29 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 97 * - + 25 FROM tab1 AS cor0
----
2425
2425
2425

query III rowsort
SELECT * FROM tab1 WHERE - 46 + 77 = NULL
----

query I rowsort
SELECT - 69 * + 7 * - + ( - col0 ) FROM tab2
----
-22218
-30912
-36225

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE - 58 = 42 * + col2 - ( + - 73 ) + - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + 32 * - COUNT( * ) FROM tab0, tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-6532
SELECT + 32 * - COUNT ( * ) FROM tab0, tab1 AS cor0
----
-288

query I rowsort
SELECT ALL + col0 + - 41 AS col2 FROM tab0
----
-26
46
56

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 35 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 9 - + + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 9 - + + col0 IS NOT NULL
----
-3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + ( + + col2 ) IS NULL
----

query I rowsort
SELECT ALL + 49 * col2 - - col2 FROM tab2 cor0
----
1150
2000
2900

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - 42 * ( - COUNT( - - 58 ) ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-6541
SELECT - 42 * ( - COUNT ( - - 58 ) ) FROM tab1
----
126

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab1 WHERE NOT - col0 <= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6543
SELECT + MIN( + - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT 59 * col2 <= - col1 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT + MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT 59 * col2 <= - col1 * + 40
----
NULL

query II rowsort
SELECT - - col1 AS col0, + col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 AS col1, 64 * - col0 - + col2 FROM tab0
----
10
-5578
47
-1007
99
-6307

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT ALL - COUNT( * ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6546
SELECT ALL - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT + - 2 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ALL + + ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL + + ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + col0 AS col1, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT + COUNT( - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6550
SELECT + COUNT ( - col1 ) FROM tab2 AS cor0
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 33 IS NULL
----

query I rowsort
SELECT DISTINCT + 2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + 59 ) + - - col1 col1 FROM tab1
----
106
64
73

query I rowsort
SELECT DISTINCT - col2 + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + ( 74 ) FROM tab2 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT 88 * - 35 * + COUNT( * ) col1 FROM tab1 AS cor0
----
-9240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6556
SELECT 88 * - 35 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
-9240

query I rowsort
SELECT ALL col0 + - + col2 * 31 FROM tab2 AS cor0
----
-1176
-1723
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT - 67 * - COUNT( * ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-6558
SELECT - 67 * - COUNT ( * ) FROM tab0 AS cor0
----
201

query I rowsort
SELECT + 69 * 48 * col2 AS col0 FROM tab1 AS cor0
----
195408
225216
317952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - 73 col1 FROM tab1 AS cor0
----
3723
6205
6643

query I rowsort
SELECT DISTINCT + + ( - - 74 ) + - 17 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT ALL + COUNT( - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + COUNT ( - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 51 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 51 IS NULL
----
3

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE - 46 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 84 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + 4 AS col1 FROM tab1
----
-47
-81
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT DISTINCT COUNT( DISTINCT - col2 ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT COUNT ( DISTINCT - col2 ) + COUNT ( * ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT DISTINCT + 82 * - - MIN( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
410

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT + 82 * - - MIN ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
410

query I rowsort
SELECT ALL - + 65 - + - col2 FROM tab2 AS cor0
----
-25
-42
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
12

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 NOT BETWEEN col0 AND + ( - + ( + 36 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - - col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + col0 * 66 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT col2 + - + ( + + col0 ) AS col1 FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL + ( + col1 ) * 25 AS col2 FROM tab1
----
1175
125
350

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6578
SELECT - 66 DIV COUNT( * ) * - 85 * + - 29 AS col2, 62 FROM tab2 AS cor0
----
-54230
62

skipif mysql # not compatible
query II rowsort label-6578
SELECT - 66 / COUNT ( * ) * - 85 * + - 29 AS col2, 62 FROM tab2 AS cor0
----
-54230
62

query II rowsort
SELECT + - 50 AS col2, - 1 * - 12 * ( - 3 ) FROM tab1 AS cor0
----
-50
-36
-50
-36
-50
-36

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 67 ) * + 38 * + col0 IS NULL
----

query II rowsort
SELECT ALL 46 * + 95 * - col1 * - 24 AS col1, 4 FROM tab0 AS cor0
----
104880
4
2202480
4
8495280
4

query II rowsort
SELECT ALL + col0 AS col2, + 22 + col0 AS col1 FROM tab1 AS cor0
----
51
73
85
107
91
113

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT ALL ( + - 59 ) DIV - col2 - - ( col2 ) AS col0 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL ( + - 59 ) / - col2 - - ( col2 ) AS col0 FROM tab2
----
25
41
59

query I rowsort
SELECT - col0 * - col2 * + 42 AS col1 FROM tab1
----
205632
210630
259896

onlyif mysql # DIV for integer division: 
query I rowsort label-6585
SELECT - 58 * col2 DIV - ( + col1 ) AS col0 FROM tab0
----
27
33
5742

skipif mysql # not compatible
query I rowsort label-6585
SELECT - 58 * col2 / - ( + col1 ) AS col0 FROM tab0
----
27
33
5742

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 55 >= col1 * - ( 23 )
----

query II rowsort
SELECT - - 57 + ( col1 ) * + 73 * - col1 AS col0, - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 * + col0 NOT BETWEEN NULL AND + col1 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6588
SELECT 42 DIV - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-6588
SELECT 42 / - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

query I rowsort
SELECT DISTINCT + + 62 AS col0 FROM tab0 cor0
----
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT + MAX( + - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6591
SELECT + MAX ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL - COUNT( * ) + + - 48 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL - COUNT ( * ) + + - 48 FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT ALL + - SUM( ALL + + col1 ) - - - 2 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + col1 + - + col0 + - col0 * - 46 AND + 91 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL + - SUM ( ALL + + col1 ) - - - 2 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + col1 + - + col0 + - col0 * - 46 AND + 91 * col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col1, col0 col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT - 30 * + + 88 FROM tab1 cor0
----
-2640
-2640
-2640

query I rowsort
SELECT 79 * + + 69 AS col0 FROM tab1
----
5451
5451
5451

query II rowsort
SELECT col1 * - col2 AS col0, - col0 + col2 + + 22 FROM tab1
----
-1344
67
-295
-4
-3196
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT ALL + CAST( NULL AS SIGNED ) * - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6599
SELECT col0 * - + col1 * 19 - 3 DIV col0 * - ( + 16 ) * col1 - - ( 36 ) FROM tab1
----
-13530
-8039
-81227

skipif mysql # not compatible
query I rowsort label-6599
SELECT col0 * - + col1 * 19 - 3 / col0 * - ( + 16 ) * col1 - - ( 36 ) FROM tab1
----
-13530
-8039
-81227

onlyif mysql # DIV for integer division: 
query II rowsort label-6600
SELECT col2 - + 53 + - - col1 DIV - 5, - col2 col1 FROM tab1
----
41
-96
5
-59
6
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6600
SELECT col2 - + 53 + - - col1 / - 5, - col2 col1 FROM tab1
----
41
-96
5
-59
6
-68

query I rowsort
SELECT ALL ( 51 ) + col2 FROM tab2
----
109
74
91

query I rowsort
SELECT DISTINCT + 96 + - col2 AS col0 FROM tab2
----
38
56
73

query I rowsort
SELECT DISTINCT ( - col0 ) - - - col1 AS col0 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT + 71 - - - col2 FROM tab2 AS cor0
----
13
31
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT ALL 63 DIV + + 9 AS col0 FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL 63 / + + 9 AS col0 FROM tab0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6606
SELECT - + CAST( - ( col0 ) AS SIGNED ) DIV - ( + 93 ) + - ( + 30 ) * col2 FROM tab0 AS cor0
----
-1410
-2971
-300

skipif mysql # not compatible
query I rowsort label-6606
SELECT - + CAST ( - ( col0 ) AS INTEGER ) / - ( + 93 ) + - ( + 30 ) * col2 FROM tab0 AS cor0
----
-1410
-2971
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT + - 80 DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6607
SELECT + - 80 / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab1 cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + 58 * col0 / - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6610
SELECT ALL + COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT + COUNT( - col0 ) DIV 25 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6611
SELECT + COUNT ( - col0 ) / 25 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT - SUM( col2 ) * + + 87 FROM tab2 AS cor0
----
-10527

skipif mysql # not compatible
query I rowsort label-6612
SELECT - SUM ( col2 ) * + + 87 FROM tab2 AS cor0
----
-10527

query I rowsort
SELECT ALL ( 3 ) AS col1 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT - + col0 / - col1 + + col1 FROM tab0 AS cor0 WHERE NOT NULL = 75
----

query II rowsort
SELECT col0 AS col1, 23 * + col2 FROM tab0
----
15
1081
87
230
97
2277

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + ( COUNT( * ) ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6616
SELECT + ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT ALL col1 / - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL col1 / - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL - COUNT( DISTINCT - 30 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL - COUNT ( DISTINCT - 30 ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT DISTINCT col1 DIV 29 col2 FROM tab0
----
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6619
SELECT DISTINCT col1 / 29 col2 FROM tab0
----
0
2

query I rowsort
SELECT col2 + col1 * - 78 FROM tab2
----
-3955
-5168
-5966

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6621
SELECT + + 79, + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
79
NULL
79
NULL
79
NULL

skipif mysql # not compatible
query II rowsort label-6621
SELECT + + 79, + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
79
NULL
79
NULL
79
NULL

query I rowsort
SELECT DISTINCT - - ( 86 ) * + col2 AS col0 FROM tab0 AS cor0
----
4042
8514
860

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT - COUNT( ALL - - col2 ) * - SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-6623
SELECT - COUNT ( ALL - - col2 ) * - SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6624
SELECT - COUNT( * ) DIV MAX( DISTINCT + col0 ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6624
SELECT - COUNT ( * ) / MAX ( DISTINCT + col0 ) col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6625
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 BETWEEN + CAST( NULL AS SIGNED ) AND + - 76 )
----

skipif mysql # not compatible
query III rowsort label-6625
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 BETWEEN + CAST ( NULL AS INTEGER ) AND + - 76 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6626
SELECT DISTINCT + + 28 AS col1, MIN( ALL - 15 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL = NULL )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-6626
SELECT DISTINCT + + 28 AS col1, MIN ( ALL - 15 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL = NULL )
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT - MIN( ALL - - 82 ) AS col2 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-6627
SELECT - MIN ( ALL - - 82 ) AS col2 FROM tab0
----
-82

query I rowsort
SELECT ALL + ( 9 ) + - col0 FROM tab2 AS cor0
----
-37
-55
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT COUNT( * ) + - - 53 AS col1 FROM tab1 cor0
----
56

skipif mysql # not compatible
query I rowsort label-6629
SELECT COUNT ( * ) + - - 53 AS col1 FROM tab1 cor0
----
56

query I rowsort
SELECT DISTINCT col2 + - col1 + + - col1 AS col2 FROM tab1 AS cor0
----
-26
49
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT ALL - 98 * 40 DIV + 71 FROM tab2 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - 98 * 40 / + 71 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT + ( ( - - 59 ) ) + + col0 AS col2 FROM tab0 AS cor0
----
146
156
74

query I rowsort
SELECT - col1 + col0 * col0 * - - 58 AS col0 FROM tab1 AS cor0
----
150844
419045
480251

query III rowsort
SELECT * FROM tab1 WHERE + 99 * + col1 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT DISTINCT SUM( DISTINCT - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT SUM ( DISTINCT - - col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT DISTINCT MAX( DISTINCT - 51 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT MAX ( DISTINCT - 51 ) FROM tab0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT col0 DIV 39 AS col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6637
SELECT col0 / 39 AS col2 FROM tab1
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6638
SELECT + + 52 + + CAST( col1 AS SIGNED ) FROM tab2 WHERE ( 47 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-6638
SELECT + + 52 + + CAST ( col1 AS INTEGER ) FROM tab2 WHERE ( 47 IS NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT col2 DIV - - col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6640
SELECT col2 / - - col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT DISTINCT - col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) + - + col1 IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT - col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + - + col1 IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6642
SELECT + col0 DIV col1 FROM tab0 WHERE 57 < + + 63
----
0
4
97

skipif mysql # not compatible
query I rowsort label-6642
SELECT + col0 / col1 FROM tab0 WHERE 57 < + + 63
----
0
4
97

query I rowsort
SELECT DISTINCT - col2 + - - 90 FROM tab0
----
-9
43
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT + COUNT( ALL + 84 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6644
SELECT + COUNT ( ALL + 84 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 43 ) * + - col1 + ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 36 * ( col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN + 66 + col2 AND col1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT col0 + - 90 DIV 55 AS col2 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-6648
SELECT col0 + - 90 / 55 AS col2 FROM tab0
----
14
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL SUM( ALL + 92 ) - COUNT( DISTINCT 12 ) AS col1 FROM tab1 WHERE 76 * + col0 NOT BETWEEN col0 AND ( + col1 )
----
275

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL SUM ( ALL + 92 ) - COUNT ( DISTINCT 12 ) AS col1 FROM tab1 WHERE 76 * + col0 NOT BETWEEN col0 AND ( + col1 )
----
275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT DISTINCT - COUNT( * ) + - 40 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT - COUNT ( * ) + - 40 FROM tab1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT - SUM( - col0 ) + COUNT( * ) AS col1 FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-6652
SELECT - SUM ( - col0 ) + COUNT ( * ) AS col1 FROM tab1
----
230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6653
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL BETWEEN + 19 AND ( + 55 )
----

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL BETWEEN + 19 AND ( + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT SUM( ALL + 90 ) AS col0 FROM tab2 WHERE NOT + 86 * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT SUM ( ALL + 90 ) AS col0 FROM tab2 WHERE NOT + 86 * col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT 89 * - MAX( DISTINCT col0 ) - 5 AS col1 FROM tab2 WHERE NOT - 57 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT 89 * - MAX ( DISTINCT col0 ) - 5 AS col1 FROM tab2 WHERE NOT - 57 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + ( - 2 ) AS col0 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT DISTINCT + SUM( col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT + SUM ( col1 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ALL + MIN( ALL col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL + MIN ( ALL col2 ) FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT ( col0 ) * 82 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT ( col0 ) * 82 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT SUM( ALL col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6660
SELECT SUM ( ALL col2 ) AS col1 FROM tab2
----
121

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 20 ) BETWEEN ( NULL ) AND col0 + col2
----

query I rowsort
SELECT ALL - 42 FROM tab0 WHERE + 64 * - 93 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 97 * + col0 FROM tab2
----
-4508
-6272
-7350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT CAST( - 80 AS SIGNED ) FROM tab1
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-6664
SELECT CAST ( - 80 AS INTEGER ) FROM tab1
----
-80
-80
-80

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( - 55 * ( - col1 ) + + 91 ) IN ( + col0 )
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT col2 / + 91 + + col2 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6668
SELECT ALL * FROM tab0 WHERE NOT ( - CAST( 8 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6668
SELECT ALL * FROM tab0 WHERE NOT ( - CAST ( 8 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT + SUM( DISTINCT - 56 ) AS col1 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT + SUM ( DISTINCT - 56 ) AS col1 FROM tab2
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6670
SELECT ALL - CAST( col2 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - CAST ( col2 AS INTEGER ) / col1 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6671
SELECT 21 + - 90 AS col0 FROM tab2 cor0 WHERE NULL IN ( - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-6671
SELECT 21 + - 90 AS col0 FROM tab2 cor0 WHERE NULL IN ( - ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6672
SELECT - CAST( NULL AS SIGNED ) + - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6672
SELECT - CAST ( NULL AS INTEGER ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ( - col2 ) * col2 + - col2 FROM tab0
----
-110
-2256
-9900

onlyif mysql # DIV for integer division: 
query I rowsort label-6674
SELECT col0 DIV col1 + + col0 AS col0 FROM tab1
----
102
54
92

skipif mysql # not compatible
query I rowsort label-6674
SELECT col0 / col1 + + col0 AS col0 FROM tab1
----
102
54
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT MIN( col2 ) + + 48 AS col1 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-6675
SELECT MIN ( col2 ) + + 48 AS col1 FROM tab0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL 52 + - COUNT( * ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL 52 + - COUNT ( * ) FROM tab1
----
49

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL <> 93
----

query I rowsort
SELECT DISTINCT 37 + 89 FROM tab0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6679
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / + col0 + - col0 IN ( col0 + col2 )
----

skipif mysql # not compatible
query III rowsort label-6679
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + col0 + - col0 IN ( col0 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6680
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * col2 + + 68 AS col0 FROM tab0 AS cor0
----
-142
-31
-3739

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT IN ( + 57 )
----

query I rowsort
SELECT DISTINCT + col1 + col0 / col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT + COUNT( col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6684
SELECT + COUNT ( col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + 46 - - col0 FROM tab0 AS cor0
----
-31
41
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6686
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) - MAX( ALL 30 ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) - MAX ( ALL 30 ) FROM tab0 AS cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT - col0 DIV + col1 - - col2 FROM tab1
----
42
67
93

skipif mysql # not compatible
query I rowsort label-6688
SELECT - col0 / + col1 - - col2 FROM tab1
----
42
67
93

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) > 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - col2 / + 50 NOT BETWEEN NULL AND 82
----

query III rowsort
SELECT * FROM tab1 WHERE col0 + col2 IN ( 54 * - 39 )
----

query I rowsort
SELECT col0 * + 57 AS col0 FROM tab1 WHERE NULL NOT IN ( 18 )
----

query I rowsort
SELECT 96 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT 66 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
66

query I rowsort
SELECT ALL + col0 * - ( - - col0 ) AS col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT DISTINCT - - CAST( + + col1 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT - - CAST ( + + col1 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT ALL - SUM( DISTINCT - 6 ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL - SUM ( DISTINCT - 6 ) AS col0 FROM tab1 AS cor0
----
6

query II rowsort
SELECT ALL + + col0, + 21 FROM tab1 AS cor0
----
51
21
85
21
91
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * + col2 col1 FROM tab2 AS cor0
----
-1955
-3400
-4930

query II rowsort
SELECT ALL - col0, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 10 ) IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT MAX( DISTINCT + col1 ) * + - COUNT( * ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-6702
SELECT MAX ( DISTINCT + col1 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-243

query I rowsort
SELECT - - 47 AS col1 FROM tab0 cor0
----
47
47
47

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE ( col2 * col2 + + ( col2 - + col1 ) ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <> - ( - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <> - ( - + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6706
SELECT ( + ( - col0 ) ) - - CAST( 29 AS SIGNED ) AS col0 FROM tab0 WHERE NOT + CAST( - col1 AS SIGNED ) <> + col1
----

skipif mysql # not compatible
query I rowsort label-6706
SELECT ( + ( - col0 ) ) - - CAST ( 29 AS INTEGER ) AS col0 FROM tab0 WHERE NOT + CAST ( - col1 AS INTEGER ) <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 96 col2 FROM tab0
----
117
177
97

query I rowsort
SELECT DISTINCT - col2 * + - col2 AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL COUNT( + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL COUNT ( + col1 ) FROM tab0
----
3

query I rowsort
SELECT - col0 + + + 69 AS col0 FROM tab1
----
-16
-22
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col0 AS col1, col2 col0 FROM tab0 AS cor0
----
225
47
7569
10
9409
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 9 + + 29 + col1 + col2 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT DISTINCT - 64 / - ( - SUM( ALL ( ( + col1 ) ) ) ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT - 64 / - ( - SUM ( ALL ( ( + col1 ) ) ) ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT 13 + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 69 / col1 ) IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT 13 + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 69 / col1 ) IS NOT NULL
----
13

query I rowsort
SELECT + 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 58 = NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 31 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6719
SELECT + COUNT( * ) DIV - + MIN( - - 92 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6719
SELECT + COUNT ( * ) / - + MIN ( - - 92 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT SUM( ALL + col0 ) - - + ( + COUNT( * ) ) AS col1 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-6720
SELECT SUM ( ALL + col0 ) - - + ( + COUNT ( * ) ) AS col1 FROM tab2
----
188

query I rowsort
SELECT DISTINCT + col0 + col1 * + col1 FROM tab2
----
2647
4564
5993

query I rowsort
SELECT ALL + col2 * + col2 * 10 + 15 AS col0 FROM tab1 AS cor0
----
34825
46255
92175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6723
SELECT - - CAST( ( + col1 ) AS SIGNED ) + 40 - - col1 * 16 FROM tab2 cor0
----
1179
1349
907

skipif mysql # not compatible
query I rowsort label-6723
SELECT - - CAST ( ( + col1 ) AS INTEGER ) + 40 - - col1 * 16 FROM tab2 cor0
----
1179
1349
907

query I rowsort
SELECT ALL col0 + - 82 AS col0 FROM tab1 AS cor0
----
-31
3
9

query I rowsort
SELECT DISTINCT + col0 * - - col1 + + col1 + col0 FROM tab0 AS cor0
----
1311
1935
195

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT ALL - col2 DIV ( + 62 ) - - col1 * col1 * - col2 - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-243089
-264851
-62424

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - col2 / ( + 62 ) - - col1 * col1 * - col2 - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-243089
-264851
-62424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6727
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - CAST( - 10 AS SIGNED ) * + col0 * + 59 )
----
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - CAST ( - 10 AS INTEGER ) * + col0 * + 59 )
----
0

query I rowsort
SELECT ALL + col2 - 2 + + 2 * - + col1 FROM tab2 AS cor0
----
-116
-78
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT ALL - + 13 - COUNT( * ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL - + 13 - COUNT ( * ) FROM tab1 AS cor0
----
-16

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6732
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) NOT BETWEEN ( - + col1 - col1 ) AND + col0 * - col1 + ( col0 )
----

skipif mysql # not compatible
query III rowsort label-6732
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) NOT BETWEEN ( - + col1 - col1 ) AND + col0 * - col1 + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL + MIN( col1 ) FROM tab2 WHERE NOT ( NOT + col0 IS NOT NULL )
----
51

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + MIN ( col1 ) FROM tab2 WHERE NOT ( NOT + col0 IS NOT NULL )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6734
SELECT COUNT( * ) FROM tab1 WHERE ( NULL ) > + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT COUNT ( * ) FROM tab1 WHERE ( NULL ) > + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL + 75 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT + ( col1 ) * + + 52 + - col1 + - 98 AS col2 FROM tab1
----
157
2299
616

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6737
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 20 * - + col1 FROM tab1
----
NULL
-100
NULL
-280
NULL
-940

skipif mysql # not compatible
query II rowsort label-6737
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 20 * - + col1 FROM tab1
----
NULL
-100
NULL
-280
NULL
-940

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( col2 ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6739
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) DIV + 93 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6739
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) / + 93 col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT + col2 DIV - + 27 AS col1 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-6740
SELECT + col2 / - + 27 AS col1 FROM tab1
----
-2
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----
0

query II rowsort
SELECT ALL - col2, col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

query II rowsort
SELECT ALL + col1, + col0 - + + col2 FROM tab0
----
1
-2
21
77
81
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT + COUNT( * ) + + - SUM( ALL - ( - - col2 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT + COUNT ( * ) + + - SUM ( ALL - ( - - col2 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + col0 AS col0, + 71 - 44 AS col1 FROM tab1
----
51
27
85
27
91
27

query II rowsort
SELECT ALL col0, + col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= ( + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 > ( + + col0 + + + col1 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 4 AS col2 FROM tab2 AS cor0
----
4
4
4

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + + col0 + + col2 * col1 + + 38 * 84 <> - col2 / col1
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 / col2 IS NULL )
----

query I rowsort
SELECT + 73 * - - 1 AS col2 FROM tab0
----
73
73
73

query III rowsort
SELECT * FROM tab0 WHERE NOT + 31 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL COUNT( * ) * 69 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL COUNT ( * ) * 69 FROM tab2
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT col0 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT col0 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT MIN( 52 ) AS col0 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-6758
SELECT MIN ( 52 ) AS col0 FROM tab1
----
52

query I rowsort
SELECT + 87 * + col1 FROM tab1 WHERE + 29 NOT BETWEEN - 27 AND - col2
----
1218
4089
435

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + 81 AND NULL
----

query II rowsort
SELECT ALL - col2 AS col2, col2 * 81 AS col0 FROM tab0 WHERE NULL IS NULL
----
-10
810
-47
3807
-99
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT COUNT( - 77 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6762
SELECT COUNT ( - 77 ) FROM tab0
----
3

query I rowsort
SELECT + col2 * + 35 AS col2 FROM tab2
----
1400
2030
805

query II rowsort
SELECT + + col2, 13 * - + col0 FROM tab2 WHERE - + 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT SUM( ALL ( 93 ) ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-6765
SELECT SUM ( ALL ( 93 ) ) FROM tab0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6766
SELECT ALL - col0 * - - col0 * + col1 + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL - col0 * - - col0 * + col1 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 87 FROM tab2 WHERE + col1 + + 49 + - col0 * + + col0 * + + col2 IS NULL
----

query I rowsort
SELECT 25 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6769
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6770
SELECT ALL + 87 * - + COUNT( 45 ) + - 11 - + - 48 AS col0, 79 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-746
79

skipif mysql # not compatible
query II rowsort label-6770
SELECT ALL + 87 * - + COUNT ( 45 ) + - 11 - + - 48 AS col0, 79 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-746
79

query I rowsort
SELECT ALL - col1 * + col1 + 57 AS col1 FROM tab2 AS cor0
----
-2544
-4432
-5872

query I rowsort
SELECT + + col0 * - col0 + + col0 * - col1 + 68 - - + col2 AS col1 FROM tab2 cor0
----
-10524
-4371
-8916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 AS cor0 WHERE 80 <= ( col1 )
----

query I rowsort
SELECT ALL - 61 + col2 AS col0 FROM tab1 AS cor0
----
-2
35
7

query I rowsort
SELECT + 30 * + 2 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT - - 29 * - col2 AS col0 FROM tab1 WHERE NOT - 24 = col0
----
-1711
-1972
-2784

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 88 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6779
SELECT ALL 77 DIV + COUNT( * ) AS col1 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL 77 / + COUNT ( * ) AS col1 FROM tab2
----
25

query I rowsort
SELECT - 95 AS col1 FROM tab0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6781
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > + col2
----
0

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > + col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6783
SELECT - - CAST( NULL AS DECIMAL ) * + col2 + + 70 + 68 / + 11 * + 78 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT - - CAST ( NULL AS REAL ) * + col2 + + 70 + 68 / + 11 * + 78 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 55 * - col0 - col0 BETWEEN - + 24 + col0 AND ( 60 + - 81 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT MIN( DISTINCT - - 64 ) col0 FROM tab2
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6785
SELECT MIN ( DISTINCT - - 64 ) col0 FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT - ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
3

query II rowsort
SELECT col2 AS col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT DISTINCT + 57 + AVG ( ALL col0 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT + 57 + AVG ( ALL col0 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT ALL + 89, col1 FROM tab2 AS cor0
----
89
51
89
67
89
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6790
SELECT * FROM tab1 AS cor0 WHERE NOT + 17 + 15 = - col1 * + col1 - + CAST( col2 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6790
SELECT * FROM tab1 AS cor0 WHERE NOT + 17 + 15 = - col1 * + col1 - + CAST ( col2 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - - col0, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT - col2 / + CAST( NULL AS SIGNED ) + + 32 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT - col2 / + CAST ( NULL AS INTEGER ) + + 32 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 98 + + col1 FROM tab0 AS cor0
----
119
179
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 97 ) col1 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT ALL - 59 * - col2 AS col1 FROM tab1 AS cor0
----
3481
4012
5664

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6797
SELECT ALL col2 / - 48 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL col2 / - 48 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col0 * + 46 * - 7 - col1 - - - col2 * + - col2 AS col2 FROM tab0
----
28083
40935
6911

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - 98 AND NULL
----

query I rowsort
SELECT ALL ( 39 ) + + - 75 AS col1 FROM tab0
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT 44 DIV + - 9 + + 1 AS col2 FROM tab0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-6801
SELECT 44 / + - 9 + + 1 AS col2 FROM tab0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT + ( MIN( - 82 ) ) AS col0 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-6802
SELECT + ( MIN ( - 82 ) ) AS col0 FROM tab0
----
-82

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - ( col1 ) - - - col2 + + - col2 FROM tab1 AS cor0
----
-123
-183
-206

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + - col0 ) - 41 + + 32 + col0 - - - 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6806
SELECT col0 * - + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0 WHERE - col1 BETWEEN ( + 78 + + col2 ) AND col1
----

skipif mysql # not compatible
query I rowsort label-6806
SELECT col0 * - + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0 WHERE - col1 BETWEEN ( + 78 + + col2 ) AND col1
----

query I rowsort
SELECT ALL 77 - - col0 + - col2 + col0 * + 52 + col1 FROM tab2 cor0
----
2543
3506
4061

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT 68 * + - 48 * + + col2 AS col1 FROM tab1
----
-192576
-221952
-313344

query I rowsort
SELECT ALL - - 1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT col2 * 26 DIV 50 + + - ( - col1 ) col0 FROM tab1
----
35
63
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6811
SELECT col2 * 26 / 50 + + - ( - col1 ) col0 FROM tab1
----
35
63
82

query I rowsort
SELECT ALL - 63 - col2 FROM tab0 AS cor0
----
-110
-162
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL - MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL - MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT 99 IN ( 14 + - + col0, col0 * + 76 * col0, col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 13 * - - col0 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6817
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6817
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT NULL >= + - 30
----

query I rowsort
SELECT ALL col0 * + 95 FROM tab2
----
4370
6080
7125

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT col2 DIV + 81 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6820
SELECT col2 / + 81 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6821
SELECT COUNT( * ) * + COUNT( * ) AS col0, COUNT( * ) FROM tab0
----
9
3

skipif mysql # not compatible
query II rowsort label-6821
SELECT COUNT ( * ) * + COUNT ( * ) AS col0, COUNT ( * ) FROM tab0
----
9
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - - 39 col1, - 14 AS col1 FROM tab2
----
-1794
-14
-2496
-14
-2925
-14

query I rowsort
SELECT 63 * - 50 FROM tab1
----
-3150
-3150
-3150

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NOT NULL OR NULL NOT IN ( 84 * + col2 )
----

query I rowsort
SELECT ALL - ( - - col1 ) FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6826
SELECT ALL + - COUNT( * ) DIV COUNT( * ) * - 90 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL + - COUNT ( * ) / COUNT ( * ) * - 90 FROM tab2 AS cor0
----
90

query II rowsort
SELECT DISTINCT - 90 * + col2, + col1 AS col0 FROM tab0 AS cor0
----
-4230
81
-8910
1
-900
21

query I rowsort
SELECT - + ( + + 15 ) FROM tab0 AS cor0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL <= ( NULL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 23 * - 94 * - col1 / - - 55 * col2 + - 40 ) IS NOT NULL
----

query I rowsort
SELECT col2 + - 64 AS col1 FROM tab2
----
-24
-41
-6

query I rowsort
SELECT DISTINCT + col2 * - col1 * - - col0 FROM tab0
----
-18270
-57105
-9603

query II rowsort
SELECT DISTINCT - + col2 AS col0, ( - - col0 ) FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 30 + - ( CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6835
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 30 + - ( CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col2 + - col0 - - ( + 58 ) AS col0 FROM tab1 cor0
----
103
32
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6837
SELECT ALL - - 14 AS col1, - ( - COUNT( * ) ) FROM tab1 AS cor0
----
14
3

skipif mysql # not compatible
query II rowsort label-6837
SELECT ALL - - 14 AS col1, - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
14
3

query I rowsort
SELECT DISTINCT - col0 * - 54 AS col1 FROM tab0 AS cor0
----
4698
5238
810

query II rowsort
SELECT 95 AS col0, - ( 14 ) + - col2 AS col1 FROM tab2
----
95
-37
95
-54
95
-72

query I rowsort
SELECT + 21 AS col0 FROM tab2
----
21
21
21

query I rowsort
SELECT ALL col1 + + col1 * 33 FROM tab2
----
1734
2278
2618

query II rowsort
SELECT col1 + - col0, + col0 FROM tab0
----
-66
87
-96
97
66
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6843
SELECT + col2 * 55 + - CAST( NULL AS SIGNED ) + - 32 + - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT + col2 * 55 + - CAST ( NULL AS INTEGER ) + - 32 + - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL - COUNT( * ) - + - 64 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - COUNT ( * ) - + - 64 FROM tab2 AS cor0
----
61

query I rowsort
SELECT + 60 + - col2 FROM tab0 AS cor0
----
-39
13
50

onlyif mysql # DIV for integer division: 
query II rowsort label-6846
SELECT + 32, col1 DIV + - 17 AS col1 FROM tab1 AS cor0
----
32
-2
32
0
32
0

skipif mysql # not compatible
query II rowsort label-6846
SELECT + 32, col1 / + - 17 AS col1 FROM tab1 AS cor0
----
32
-2
32
0
32
0

query I rowsort
SELECT ALL - + 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL + 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT DISTINCT SUM( + 41 ) AS col2 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT SUM ( + 41 ) AS col2 FROM tab0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT DISTINCT - CAST( + - AVG ( ALL col2 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
40

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT - CAST ( + - AVG ( ALL col2 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND + + 36 * - ( - 65 ) - - ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT DISTINCT - 36 * + - col0 + + CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
1932
3119
3344

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT - 36 * + - col0 + + CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
1932
3119
3344

onlyif mysql # aggregate syntax: 
query II rowsort label-6853
SELECT DISTINCT 5 AS col0, COUNT( * ) + - COUNT( * ) FROM tab0
----
5
0

skipif mysql # not compatible
query II rowsort label-6853
SELECT DISTINCT 5 AS col0, COUNT ( * ) + - COUNT ( * ) FROM tab0
----
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT - COUNT( * ) FROM tab0 WHERE NOT - col0 - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6854
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - col0 - + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL + COUNT( * ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + COUNT ( * ) FROM tab2, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6856
SELECT * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) > + - 46
----

skipif mysql # not compatible
query III rowsort label-6856
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) > + - 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT ALL col1 / + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL col1 / + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT ALL 51 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN + 1 AND col2 - - col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL 51 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN + 1 AND col2 - - col1 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 86 FROM tab1 cor0 WHERE NOT + 31 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT col0 DIV 17 FROM tab0 cor0
----
0
5
5

skipif mysql # not compatible
query I rowsort label-6861
SELECT col0 / 17 FROM tab0 cor0
----
0
5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6862
SELECT ALL COUNT( * ) DIV 87 DIV 72 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL COUNT ( * ) / 87 / 72 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - - SUM( DISTINCT 71 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
71

skipif mysql # not compatible
query I rowsort label-6863
SELECT - - SUM ( DISTINCT 71 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT MAX( col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6865
SELECT MAX ( col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT - col0 * + col0 + + col0 FROM tab0 AS cor0
----
-210
-7482
-9312

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 79 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 91 + + col0 col1 FROM tab2 AS cor0
----
2139
3704
5353

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL - + MAX( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL - + MAX ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab1 WHERE - col0 - - col1 + + + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT COUNT( * ) * + 18 AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6872
SELECT COUNT ( * ) * + 18 AS col1 FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL COUNT( + col2 ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL COUNT ( + col2 ) + - COUNT ( * ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - col0 col0 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT 23 - - COUNT( * ) * 8 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT 23 - - COUNT ( * ) * 8 FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL + COUNT( col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + COUNT ( col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT + 2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab0 WHERE NOT + + 78 IS NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <= col1 * + 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2, + col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT col1 * - + 92 FROM tab2 WHERE NOT + + col1 * - col2 + + col2 * - col2 IS NULL
----
-4692
-6164
-7084

query I rowsort
SELECT ALL - ( + + col0 ) * + ( + - 68 ) AS col1 FROM tab0
----
1020
5916
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT DISTINCT COUNT( - 60 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT COUNT ( - 60 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - col1 * - col2 * col0 AS col1 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( NOT - col0 IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6886
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NOT - col0 IS NOT NULL )
----
0

query I rowsort
SELECT ALL - + 23 AS col0 FROM tab0 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT DISTINCT - - SUM( ALL + + 41 ) FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT - - SUM ( ALL + + 41 ) FROM tab2 AS cor0
----
123

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NULL = + col0
----

query I rowsort
SELECT DISTINCT + - col0 + 45 FROM tab1 AS cor0
----
-40
-46
-6

query I rowsort
SELECT DISTINCT AVG ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * + col2 col0 FROM tab1 AS cor0
----
354
408
576

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT + col0 DIV + 22 - 75 FROM tab1
----
-71
-72
-73

skipif mysql # not compatible
query I rowsort label-6893
SELECT + col0 / + 22 - 75 FROM tab1
----
-71
-72
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6894
SELECT CAST( NULL AS SIGNED ) - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6894
SELECT CAST ( NULL AS INTEGER ) - - col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

query I rowsort
SELECT col0 - - 7 FROM tab0
----
104
22
94

query I rowsort
SELECT DISTINCT - 85 * + 97 AS col1 FROM tab2
----
-8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 + - col0 col0 FROM tab0
----
-4
6
78

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT ( col1 / + col0 < NULL )
----

query I rowsort
SELECT - col1 + + + col1 * + 41 AS col2 FROM tab2
----
2040
2680
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT ALL - 91 * - + COUNT( * ) AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL - 91 * - + COUNT ( * ) AS col0 FROM tab1
----
273

query I rowsort
SELECT ALL + col1 + - + 79 FROM tab0
----
-58
-78
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL - - 13 + - - col1 - + col2 + - ( col0 ) * + CAST( col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1017
-2510
-4328

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6903
SELECT ALL - - 13 + - - col1 - + col2 + - ( col0 ) * + CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1017
-2510
-4328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE 66 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / + col2 + 86 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6906
SELECT ALL + ( col1 ) - ( - ( + col2 ) ) col2, 66 DIV + 90 * - - 62 FROM tab1 cor0
----
110
0
115
0
64
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6906
SELECT ALL + ( col1 ) - ( - ( + col2 ) ) col2, 66 / + 90 * - - 62 FROM tab1 cor0
----
110
0
115
0
64
0

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE 50 IS NULL
----

query I rowsort
SELECT - 75 * + + 94 + + col2 AS col0 FROM tab2 AS cor0
----
-6992
-7010
-7027

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT + + COUNT( * ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6910
SELECT + + COUNT ( * ) col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6911
SELECT DISTINCT - 51 DIV + 59 * + COUNT( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT + 53 * + + col0 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT - 51 / + 59 * + COUNT ( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT + 53 * + + col0 + + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT + - 79 AS col0 FROM tab0 AS cor0 WHERE NOT 95 IS NULL
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6913
SELECT + 45 DIV - + col2 AS col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6913
SELECT + 45 / - + col2 AS col0 FROM tab0 AS cor0
----
-4
0
0

query II rowsort
SELECT - - 51, col2 AS col0 FROM tab1 AS cor0
----
51
59
51
68
51
96

query II rowsort
SELECT ALL - col0, + col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query II rowsort
SELECT - 94 AS col2, 67 + - + col1 AS col1 FROM tab1 cor0
----
-94
20
-94
53
-94
62

query I rowsort
SELECT ( ( 76 ) ) FROM tab0 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT MAX( ALL + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6918
SELECT MAX ( ALL + col2 ) FROM tab2
----
58

query I rowsort
SELECT ALL 45 * - + col1 AS col2 FROM tab2
----
-2295
-3015
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT COUNT( 46 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6920
SELECT COUNT ( 46 ) FROM tab1
----
3

query II rowsort
SELECT - 44, col0 FROM tab2
----
-44
46
-44
64
-44
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND - - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - + ( - 57 ) * + col2 + - 21 AS col0 FROM tab1 AS cor0
----
279051
285834
352695

query I rowsort
SELECT + + col1 * - - ( - col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, col0 * + col2 col1 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

query II rowsort
SELECT DISTINCT + col0, col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT + MIN( DISTINCT - - 70 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT + MIN ( DISTINCT - - 70 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT ALL - 9 * col0 DIV 44 * col0 * - ( + col1 ) + + - col0 * - 12 * col1 FROM tab2 AS cor0
----
123200
135675
49266

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - 9 * col0 / 44 * col0 * - ( + col1 ) + + - col0 * - 12 * col1 FROM tab2 AS cor0
----
123200
135675
49266

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL 62 + SUM( col2 ) AS col1 FROM tab0 AS cor0
----
218

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL 62 + SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
218

onlyif mysql # DIV for integer division: 
query II rowsort label-6931
SELECT DISTINCT + - col0 + + 78 AS col1, 50 DIV + col1 FROM tab0 AS cor0
----
-19
50
-9
2
63
0

skipif mysql # not compatible
query II rowsort label-6931
SELECT DISTINCT + - col0 + + 78 AS col1, 50 / + col1 FROM tab0 AS cor0
----
-19
50
-9
2
63
0

query I rowsort
SELECT ALL - - col1 * - ( + + col0 ) FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 > + 19 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 + + col2 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-4749
-4871
-6029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6935
SELECT ALL - CAST( NULL AS SIGNED ) * - AVG ( + col1 ) * - 15 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL - CAST ( NULL AS INTEGER ) * - AVG ( + col1 ) * - 15 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 5 <= ( - + col1 * + + col1 - - col2 )
----
97
1
99

onlyif mysql # DIV for integer division: 
query III rowsort label-6937
SELECT DISTINCT - 95 DIV - 55, + 28 AS col1, col1 AS col2 FROM tab2 cor0
----
9 values hashing to 0aa80e21792f9a75b76b24089c5a1440

skipif mysql # not compatible
query III rowsort label-6937
SELECT DISTINCT - 95 / - 55, + 28 AS col1, col1 AS col2 FROM tab2 cor0
----
9 values hashing to 0aa80e21792f9a75b76b24089c5a1440

query I rowsort
SELECT ALL - 46 * - 18 FROM tab2 cor0
----
828
828
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6939
SELECT COUNT( + col2 ) AS col0 FROM tab2 WHERE - + CAST( - 55 AS SIGNED ) * col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6939
SELECT COUNT ( + col2 ) AS col0 FROM tab2 WHERE - + CAST ( - 55 AS INTEGER ) * col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - col2 col0 FROM tab0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL - MIN( 99 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL - MIN ( 99 ) FROM tab1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6942
SELECT ALL + + COUNT( * ) col2 FROM tab0 cor0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ), - col2 * - 29 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6942
SELECT ALL + + COUNT ( * ) col2 FROM tab0 cor0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ), - col2 * - 29 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT 67 * ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT 67 * ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
201

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 14 - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT ALL COUNT( + - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL COUNT ( + - col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6946
SELECT DISTINCT MAX( - col0 ) AS col1, 57 DIV - 7 - + + 44 FROM tab2 AS cor0
----
-46
-52

skipif mysql # not compatible
query II rowsort label-6946
SELECT DISTINCT MAX ( - col0 ) AS col1, 57 / - 7 - + + 44 FROM tab2 AS cor0
----
-46
-52

query I rowsort
SELECT ( + 7 ) AS col1 FROM tab0 cor0
----
7
7
7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + col0 = + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 IS NULL AND - col1 * + col1 * col2 < - 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 62 AS col0 FROM tab0 cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= - col2 + col0 * + + col0 + + + col0
----
0

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= - col2 + col0 * + + col0 + + + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT ALL MIN( ALL + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL MIN ( ALL + col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT + COUNT( ALL - 59 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6953
SELECT + COUNT ( ALL - 59 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT - SUM( col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6954
SELECT - SUM ( col1 ) AS col2 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab0 WHERE NOT + 24 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT - MAX( + - col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - MAX ( + - col0 ) AS col1 FROM tab0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6957
SELECT DISTINCT + SUM( DISTINCT - 46 ) + - + SUM( + + 91 ) + MAX( ALL + col2 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT + SUM ( DISTINCT - 46 ) + - + SUM ( + + 91 ) + MAX ( ALL + col2 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT col1 + + ( - col0 ) + + - 49 * + col1, 57 AS col1 FROM tab2 AS cor0
----
-2494
57
-3291
57
-3760
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT COUNT( ALL - + col1 ) FROM tab2 AS cor0 WHERE col2 = 31
----
0

skipif mysql # not compatible
query I rowsort label-6959
SELECT COUNT ( ALL - + col1 ) FROM tab2 AS cor0 WHERE col2 = 31
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT - col2 + + + col2 DIV col0 FROM tab0
----
-10
-44
-98

skipif mysql # not compatible
query I rowsort label-6960
SELECT - col2 + + + col2 / col0 FROM tab0
----
-10
-44
-98

query I rowsort
SELECT 22 + - 13 AS col1 FROM tab0
----
9
9
9

query I rowsort
SELECT ( 29 ) + - + ( + col2 ) * - col0 * + col0 + - col0 AS col1 FROM tab0
----
10589
75632
931423

query I rowsort
SELECT ALL + 19 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT DISTINCT SUM( - 91 ) FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT SUM ( - 91 ) FROM tab0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT + + SUM( col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-6965
SELECT + + SUM ( col2 ) FROM tab0 cor0
----
156

query I rowsort
SELECT DISTINCT 81 + + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
140
149
177

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT ALL 34 + + + 54 - + COUNT( * ) AS col2 FROM tab1 cor0
----
85

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL 34 + + + 54 - + COUNT ( * ) AS col2 FROM tab1 cor0
----
85

query I rowsort
SELECT DISTINCT + 37 + 67 + + col2 AS col1 FROM tab0 AS cor0
----
114
151
203

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT DISTINCT COUNT( * ) - 71 * 31 AS col1 FROM tab2 AS cor0
----
-2198

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT COUNT ( * ) - 71 * 31 AS col1 FROM tab2 AS cor0
----
-2198

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT + SUM( ALL 27 ) FROM tab1 AS cor0 WHERE - col2 >= 19 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT + SUM ( ALL 27 ) FROM tab1 AS cor0 WHERE - col2 >= 19 + + col0
----
NULL

query I rowsort
SELECT - 35 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT - SUM( ALL 89 ) * + ( - + COUNT( * ) ) - - COUNT( * ) * 72 FROM tab0
----
1017

skipif mysql # not compatible
query I rowsort label-6972
SELECT - SUM ( ALL 89 ) * + ( - + COUNT ( * ) ) - - COUNT ( * ) * 72 FROM tab0
----
1017

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT DISTINCT - COUNT( * ) * - 32 - 59 AS col0 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT - COUNT ( * ) * - 32 - 59 AS col0 FROM tab0
----
37

query III rowsort
SELECT * FROM tab2 WHERE col1 * + 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT COUNT( * ) + COUNT( DISTINCT - + col2 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6975
SELECT COUNT ( * ) + COUNT ( DISTINCT - + col2 ) AS col2 FROM tab1
----
6

query I rowsort
SELECT col2 + - + col0 + - col2 - - ( - col2 ) AS col0 FROM tab1
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col0 FROM tab1
----
-85

query I rowsort
SELECT DISTINCT - 57 AS col2 FROM tab0
----
-57

query II rowsort
SELECT - col1 AS col1, + 72 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT CAST( - 13 AS SIGNED ) FROM tab0 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-6980
SELECT CAST ( - 13 AS INTEGER ) FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT + ( + ( + 47 ) ) FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - 2 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
-2
59
-2
68
-2
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6984
SELECT DISTINCT + 69 DIV + + ( + 70 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT + 69 / + + ( + 70 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 19 IS NOT NULL
----

query I rowsort
SELECT - ( + 29 ) + - - 19 AS col1 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT - 96 + - col2 FROM tab0 AS cor0
----
-106
-143
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL - MAX( - + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL - MAX ( - + col2 ) FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 <= + ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col2 FROM tab2
----
11
11
11

query III rowsort
SELECT * FROM tab2 WHERE NULL < NULL AND ( col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6992
SELECT DISTINCT - COUNT( * ) DIV + SUM( ALL + - 44 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - COUNT ( * ) / + SUM ( ALL + - 44 ) FROM tab1
----
0

query I rowsort
SELECT col2 * - + 15 FROM tab0
----
-1485
-150
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT - COUNT( * ) * 38 AS col2 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-6994
SELECT - COUNT ( * ) * 38 AS col2 FROM tab0 AS cor0
----
-114

query I rowsort
SELECT - 24 - 68 AS col2 FROM tab2
----
-92
-92
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6996
SELECT - MAX( DISTINCT - 63 ) + - CAST( NULL AS SIGNED ) + - 51 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT - MAX ( DISTINCT - 63 ) + - CAST ( NULL AS INTEGER ) + - 51 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 + - 77 FROM tab0
----
-62
10
20

query I rowsort
SELECT ALL - ( + - col2 ) + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT + - col2 + + col2 * col2 * - + 18 FROM tab2 AS cor0
----
-28840
-60610
-9545

query II rowsort
SELECT ALL - col1, - 37 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-37
-21
-37
-81
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / + + col0 IS NULL
----

query I rowsort
SELECT ALL + col0 - + 95 FROM tab2 AS cor0
----
-20
-31
-49

query I rowsort
SELECT ALL + col1 * - + col2 FROM tab2 cor0
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT col1, - col0 + + col0 AS col2 FROM tab1
----
14
0
47
0
5
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT - + 36 + ( + - COUNT( * ) ) FROM tab2 WHERE NOT col0 + col2 IS NOT NULL
----
-36

skipif mysql # not compatible
query I rowsort label-7006
SELECT - + 36 + ( + - COUNT ( * ) ) FROM tab2 WHERE NOT col0 + col2 IS NOT NULL
----
-36

query II rowsort
SELECT + 19, col1 * 76 + - ( + 56 ) * + 84 AS col0 FROM tab2
----
19
-828
19
1148
19
388

query I rowsort
SELECT - 44 * - - col0 FROM tab0
----
-3828
-4268
-660

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * - 62 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 10 * + col0 FROM tab1
----
-510
-850
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - col2 col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7012
SELECT * FROM tab0 AS cor0 WHERE + col1 IS NOT NULL OR NOT CAST( NULL AS SIGNED ) = NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7012
SELECT * FROM tab0 AS cor0 WHERE + col1 IS NOT NULL OR NOT CAST ( NULL AS INTEGER ) = NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7013
SELECT DISTINCT - 5 * CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - 5 * CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7014
SELECT ALL COUNT( * ) DIV MIN( col1 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL COUNT ( * ) / MIN ( col1 ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7015
SELECT ALL - 47 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL - 47 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
15

query II rowsort
SELECT + - col0 AS col2, col0 AS col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL + ( - 2 ) AS col2 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT ALL - col2 + + - col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL - ( COUNT( * ) ) * + + SUM( - 60 ) AS col0 FROM tab0 AS cor0
----
540

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL - ( COUNT ( * ) ) * + + SUM ( - 60 ) AS col0 FROM tab0 AS cor0
----
540

query I rowsort
SELECT ALL + 64 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7023
SELECT col2 / + + CAST( NULL AS SIGNED ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT col2 / + + CAST ( NULL AS INTEGER ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT + MAX( DISTINCT - 47 ) col2 FROM tab0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7024
SELECT + MAX ( DISTINCT - 47 ) col2 FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT - MIN( ALL col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7025
SELECT - MIN ( ALL col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT 65 AS col0 FROM tab0 WHERE + col0 + + col0 / + col1 IS NOT NULL
----
65
65
65

query I rowsort
SELECT 4 * - + 64 FROM tab0
----
-256
-256
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT + SUM( DISTINCT - + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7028
SELECT + SUM ( DISTINCT - + col0 ) FROM tab0
----
-199

query II rowsort
SELECT ALL - col1 AS col2, + 89 + + col0 AS col2 FROM tab2
----
-51
135
-67
164
-77
153

query I rowsort
SELECT - col2 + - + col1 + 69 FROM tab1
----
-41
-46
5

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - 49 - 34 + col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + - 33 + - + col2 FROM tab0 AS cor0
----
-132
-43
-80

query I rowsort
SELECT ALL col2 * + + 10 FROM tab1
----
590
680
960

query I rowsort
SELECT - 32 FROM tab1 WHERE NULL NOT BETWEEN 33 / + + col0 AND + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) - + 90 AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL - MIN ( - CAST ( NULL AS INTEGER ) ) - + 90 AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + 80 AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT - COUNT( 97 ) - + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7037
SELECT - COUNT ( 97 ) - + COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 90
----

query I rowsort
SELECT - col2 + + col1 - + + col2 + + 67 FROM tab1 AS cor0 WHERE NOT - col0 / + + 63 IS NULL
----
-111
-22
-46

query I rowsort
SELECT DISTINCT - col2 * + col2 + ( + col2 ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
-2162
-90
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT 94 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-7042
SELECT 94 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT + MIN( + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7043
SELECT + MIN ( + col1 ) FROM tab1
----
5

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT + - col1 - + col1 * + col1 NOT BETWEEN NULL AND + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

query I rowsort
SELECT ALL ( - + col1 ) * - ( - - col2 ) * - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT DISTINCT - + MIN( DISTINCT 71 ) AS col0 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT - + MIN ( DISTINCT 71 ) AS col0 FROM tab2 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL - MIN( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL - MIN ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7049
SELECT CAST( NULL AS SIGNED ) + - COUNT( ALL + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT 84 + - - COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7050
SELECT 84 + - - COUNT ( * ) FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT col0 + + col1 - col2 * + + ( + 0 ) / + CAST( NULL AS SIGNED ) + + + col1 * + col1 / + ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT col0 + + col1 - col2 * + + ( + 0 ) / + CAST ( NULL AS INTEGER ) + + + col1 * + col1 / + ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 91 - + col2 FROM tab2 WHERE + col0 = 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + col1 col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT + COUNT( * ) * - 68 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-7054
SELECT + COUNT ( * ) * - 68 FROM tab0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL + 36 * + - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + 36 * + - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
-111

query I rowsort
SELECT ALL + + 47 FROM tab2 AS cor0 WHERE col0 * + - ( - 73 ) IS NOT NULL
----
47
47
47

query II rowsort
SELECT ALL col2, + 59 AS col1 FROM tab1
----
59
59
68
59
96
59

query I rowsort
SELECT ALL + + 68 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < + col0 + col0 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - 71 col0 FROM tab1 AS cor0
----
14
-71
47
-71
5
-71

query I rowsort
SELECT col2 * + 32 AS col1 FROM tab0 AS cor0
----
1504
3168
320

query I rowsort
SELECT + col2 * + col0 + col1 + + 35 AS col1 FROM tab2 cor0
----
1144
2672
4452

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT DISTINCT + MIN( - + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT + MIN ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ALL + COUNT( * ) + + - 39 AS col0 FROM tab0 WHERE + - ( 30 ) IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL + COUNT ( * ) + + - 39 AS col0 FROM tab0 WHERE + - ( 30 ) IS NULL
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL MIN( + 88 ) * + COUNT( ALL col0 ) AS col1 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL MIN ( + 88 ) * + COUNT ( ALL col0 ) AS col1 FROM tab0
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7065
SELECT ALL CAST( NULL AS SIGNED ) / + MAX( + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL CAST ( NULL AS INTEGER ) / + MAX ( + col0 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7066
SELECT AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT MIN( ALL - - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7067
SELECT MIN ( ALL - - col2 ) FROM tab2
----
23

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT + MAX( col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7069
SELECT + MAX ( col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT DISTINCT - - 94 AS col2 FROM tab0 AS cor0
----
94

query I rowsort
SELECT ALL + 86 FROM tab2, tab0 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT - - SUM( - + 91 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-819

skipif mysql # not compatible
query I rowsort label-7072
SELECT - - SUM ( - + 91 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - 55 * col1 + - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - 55 * col1 + - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7074
SELECT + 69 + - + CAST( NULL AS SIGNED ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 69 + - + CAST ( NULL AS INTEGER ) + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7075
SELECT DISTINCT - col1 + CAST( NULL AS DECIMAL ) / - 97 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT - col1 + CAST ( NULL AS REAL ) / - 97 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + COUNT( * ) + ( - 88 ) AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
-85

skipif mysql # not compatible
query I rowsort label-7076
SELECT + COUNT ( * ) + ( - 88 ) AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7077
SELECT ALL + CAST( NULL AS SIGNED ) + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 cor0 WHERE NULL <> ( + + 27 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7079
SELECT DISTINCT - col1 + + ( - CAST( NULL AS SIGNED ) ), col2 * + col1 AS col2 FROM tab0 cor0
----
NULL
210
NULL
3807
NULL
99

skipif mysql # not compatible
query II rowsort label-7079
SELECT DISTINCT - col1 + + ( - CAST ( NULL AS INTEGER ) ), col2 * + col1 AS col2 FROM tab0 cor0
----
NULL
210
NULL
3807
NULL
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, + col0 col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL - 47 * + col1 AS col2 FROM tab1 cor0
----
-2209
-235
-658

query I rowsort
SELECT ALL - col2 * + - col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT - - 60 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT - - 60 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
180

query I rowsort
SELECT ALL + 38 * + col1 FROM tab0 AS cor0
----
3078
38
798

query I rowsort
SELECT ALL - 24 * - 97 AS col1 FROM tab2 AS cor0
----
2328
2328
2328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7086
SELECT + 87 DIV + + SUM( col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7086
SELECT + 87 / + + SUM ( col1 ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col1 - + 18 col0 FROM tab0
----
-117
-228
-3825

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT ALL + col0 + 14 DIV + - col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + col0 + 14 / + - col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7089
SELECT col2 * + 35 + col2 / + CAST( NULL AS SIGNED ) + + col2 + + 87, - 84 * - - col0 + col2 + col1 * col1 + - 68 + - + ( + + 24 ) AS col1 FROM tab0
----
NULL
-6949
NULL
-8140
NULL
5256

skipif mysql # not compatible
query II rowsort label-7089
SELECT col2 * + 35 + col2 / + CAST ( NULL AS INTEGER ) + + col2 + + 87, - 84 * - - col0 + col2 + col1 * col1 + - 68 + - + ( + + 24 ) AS col1 FROM tab0
----
NULL
-6949
NULL
-8140
NULL
5256

query I rowsort
SELECT DISTINCT 55 * - ( - 88 ) FROM tab1
----
4840

onlyif mysql # DIV for integer division: 
query I rowsort label-7091
SELECT ALL - col1 DIV + 38 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL - col1 / + 38 AS col0 FROM tab0
----
-2
0
0

query I rowsort
SELECT DISTINCT + 33 * + col0 + + 49 AS col2 FROM tab2
----
1567
2161
2524

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE + col0 + + col0 <> 18
----
-3

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 + + col0 <> 18
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL col2 + - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL col2 + - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2, + col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT + COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7096
SELECT + COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + col1 * + - 48 AS col0 FROM tab0 AS cor0
----
1008
3888
48

query I rowsort
SELECT 74 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col2 * + - col0 - 77 * - col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + - 89 * - - ( - 61 ) FROM tab0 AS cor0
----
5429
5429
5429

query I rowsort
SELECT - ( + + 31 ) FROM tab2 AS cor0
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-7102
SELECT DISTINCT + + col2 DIV - + 78 * col0 AS col2, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-7102
SELECT DISTINCT + + col2 / - + 78 * col0 AS col2, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 73 BETWEEN NULL AND - + col0 - - 96 / - 36
----
3

skipif mysql # not compatible
query I rowsort label-7103
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 73 BETWEEN NULL AND - + col0 - - 96 / - 36
----
3

query I rowsort
SELECT ALL - + 75 * - - col0 AS col2 FROM tab2 AS cor0
----
-3450
-4800
-5625

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + - col2 ) <= - col0
----
87
21
10

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL = 89
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 14 * + col2 / - - col0 IN ( col1, - ( - - col0 ) )
----

query II rowsort
SELECT DISTINCT + col2, - col2 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7109
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 + 68 + - col0 * - col1 col2 FROM tab1 cor0
----
-562
1149
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT ALL - 1 * + CAST( + CAST( + 13 AS SIGNED ) AS SIGNED ) + + - col1 FROM tab2 AS cor0
----
-64
-80
-90

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - 1 * + CAST ( + CAST ( + 13 AS INTEGER ) AS INTEGER ) + + - col1 FROM tab2 AS cor0
----
-64
-80
-90

query I rowsort
SELECT + col1 + ( 70 ) AS col0 FROM tab0
----
151
71
91

query I rowsort
SELECT - 28 + - col2 AS col0 FROM tab2
----
-51
-68
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL MIN( col0 ) AS col2 FROM tab1 WHERE NOT 1 * - col2 <= + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL MIN ( col0 ) AS col2 FROM tab1 WHERE NOT 1 * - col2 <= + 59
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - 27 FROM tab1
----
1269
135
378

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7116
SELECT DISTINCT CAST( + col1 AS DECIMAL ) FROM tab1 WHERE NOT ( 7 ) < col0
----

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT CAST ( + col1 AS REAL ) FROM tab1 WHERE NOT ( 7 ) < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL - ( + MAX( - col2 ) ) * + 16 FROM tab1
----
944

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL - ( + MAX ( - col2 ) ) * + 16 FROM tab1
----
944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 61 * - col2 AS col1 FROM tab0
----
2867
6039
610

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7120
SELECT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-7120
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 78 > ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * col2 col2 FROM tab1
----
3068
3536
4992

query I rowsort
SELECT DISTINCT + ( - ( + col1 ) ) * col0 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT 97 * - COUNT( * ) AS col1 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT 97 * - COUNT ( * ) AS col1 FROM tab2
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT + col1 + + 12 DIV 5 AS col1 FROM tab1
----
16
49
7

skipif mysql # not compatible
query I rowsort label-7125
SELECT + col1 + + 12 / 5 AS col1 FROM tab1
----
16
49
7

query I rowsort
SELECT ALL - 9 + 32 FROM tab1
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT + COUNT( DISTINCT + col0 ) * 50 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-7127
SELECT + COUNT ( DISTINCT + col0 ) * 50 FROM tab2
----
150

query I rowsort
SELECT + 95 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col1 + + 58 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7130
SELECT DISTINCT 45 * MIN( DISTINCT col1 ) + CAST( NULL AS DECIMAL ) * 55 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT 45 * MIN ( DISTINCT col1 ) + CAST ( NULL AS REAL ) * 55 FROM tab2
----
NULL

query I rowsort
SELECT ( col0 ) * - 40 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT 61 * COUNT( 10 ) FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-7132
SELECT 61 * COUNT ( 10 ) FROM tab2
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT DISTINCT col0 DIV + ( - 74 * col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT col0 / + ( - 74 * col2 ) FROM tab1
----
0

query I rowsort
SELECT - col0 - ( col0 - 88 ) AS col0 FROM tab0 WHERE ( + 2 ) IS NOT NULL
----
-106
-86
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7135
SELECT ALL COUNT( * ) DIV ( - 36 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL COUNT ( * ) / ( - 36 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ALL COUNT( * ) * ( 43 ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL COUNT ( * ) * ( 43 ) FROM tab2
----
129

query III rowsort
SELECT * FROM tab2 WHERE col1 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT - COUNT( * ) - - COUNT( * ) * + 34 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7138
SELECT - COUNT ( * ) - - COUNT ( * ) * + 34 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT - MAX( DISTINCT col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7139
SELECT - MAX ( DISTINCT col2 ) AS col1 FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = ( - col2 + - 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT + COUNT( * ) - MAX( ALL - col1 ) col0 FROM tab0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7141
SELECT + COUNT ( * ) - MAX ( ALL - col1 ) col0 FROM tab0
----
4

query I rowsort
SELECT ALL 16 AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2 * col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7143
SELECT SUM( col0 ) DIV - 96 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-7143
SELECT SUM ( col0 ) / - 96 FROM tab0
----
-2

query I rowsort
SELECT - col0 - 84 * + 74 AS col1 FROM tab1 AS cor0
----
-6267
-6301
-6307

query I rowsort
SELECT DISTINCT - col1 * + 50 + col0 FROM tab2 AS cor0
----
-2504
-3275
-3786

query I rowsort
SELECT ALL + col0 - 28 AS col0 FROM tab1 AS cor0
----
23
57
63

query I rowsort
SELECT DISTINCT 64 * + col1 FROM tab1 AS cor0
----
3008
320
896

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 67 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col0 ) * 96 FROM tab0 AS cor0
----
1440
8352
9312

query I rowsort
SELECT ( + 11 ) FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT - COUNT( + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7151
SELECT - COUNT ( + col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
81

skipif mysql # not compatible
query I rowsort label-7152
SELECT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT + col0 DIV - 81 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7153
SELECT + col0 / - 81 FROM tab0 cor0
----
-1
-1
0

query I rowsort
SELECT ALL - - col0 * ( - 1 + 81 ) FROM tab0 AS cor0
----
1200
6960
7760

onlyif mysql # DIV for integer division: 
query I rowsort label-7155
SELECT ALL - - col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL - - col0 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT - + 91 * + COUNT( * ) FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-7156
SELECT - + 91 * + COUNT ( * ) FROM tab2 AS cor0
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT ALL ( - col0 ) FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL ( - col0 ) FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - + col0 * + 41 AS col2 FROM tab0 AS cor0
----
-3567
-3977
-615

onlyif mysql # DIV for integer division: 
query I rowsort label-7159
SELECT DISTINCT col1 DIV + 13 AS col0 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT col1 / + 13 AS col0 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT ( 14 ) AS col0 FROM tab2 AS cor0
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) * 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT AVG ( ALL col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT DISTINCT ( - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT - col2 DIV + 62 FROM tab1 WHERE NOT + col0 IN ( - col0 * + col2 )
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7165
SELECT - col2 / + 62 FROM tab1 WHERE NOT + col0 IN ( - col0 * + col2 )
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / 17 + 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7167
SELECT DISTINCT 37 + - 73 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT 37 + - 73 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - SUM( - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7168
SELECT - SUM ( - col1 ) AS col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT + SUM( - col1 ) FROM tab1 WHERE - col2 + col1 IN ( + 25 - + col1 ) OR NOT ( NULL ) BETWEEN ( - 54 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT + SUM ( - col1 ) FROM tab1 WHERE - col2 + col1 IN ( + 25 - + col1 ) OR NOT ( NULL ) BETWEEN ( - 54 ) AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT + ( - col2 ) * + 52 AS col2 FROM tab0 WHERE NOT ( 64 * - 92 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 74 ) AS col0 FROM tab1
----
-74

query I rowsort
SELECT ALL - 83 + + col0 FROM tab0
----
-68
14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT DISTINCT SUM( ALL col2 ) * - COUNT( DISTINCT - col2 ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT SUM ( ALL col2 ) * - COUNT ( DISTINCT - col2 ) FROM tab2
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT - MAX( + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7174
SELECT - MAX ( + col1 ) FROM tab1
----
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col2 ) AND - ( + col2 ) / ( 94 + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 / 18 NOT BETWEEN NULL AND col2 * + 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) = NULL
----

query I rowsort
SELECT DISTINCT + 41 + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
126
132
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + 58 - - COUNT( * ) * 88 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN ( col0 + + col1 * - 14 ) AND ( NULL )
----
58

skipif mysql # not compatible
query I rowsort label-7179
SELECT + 58 - - COUNT ( * ) * 88 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN ( col0 + + col1 * - 14 ) AND ( NULL )
----
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( col2 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 - col0 NOT BETWEEN col1 * col1 + + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 23 + - - col1 + - + col0 * col0 AS col1 FROM tab1
----
-2564
-7197
-8211

query I rowsort
SELECT 23 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT DISTINCT SUM( ALL 6 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT SUM ( ALL 6 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54

query III rowsort
SELECT * FROM tab1 WHERE + 32 >= 64
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7186
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7186
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 88 BETWEEN col2 + col1 AND ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 49 IS NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE 92 BETWEEN ( NULL ) AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + 27 NOT BETWEEN ( col0 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 26 col2 FROM tab2 cor0
----
-14
-32
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + + 47 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + + col0, + col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL COUNT( DISTINCT - - col1 ) + + + ( 34 ) + + COUNT( * ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL COUNT ( DISTINCT - - col1 ) + + + ( 34 ) + + COUNT ( * ) FROM tab1 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7195
SELECT - col2 - col2 - col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT - col2 - col2 - col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT - - ( - - COUNT( * ) ) - - - 42 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7196
SELECT - - ( - - COUNT ( * ) ) - - - 42 FROM tab2 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT 57 DIV + - ( col2 ) - - 11 col1 FROM tab1
----
11
11
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7197
SELECT 57 / + - ( col2 ) - - 11 col1 FROM tab1
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL + 83 - - + 60 + - MIN( + 32 ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + 83 - - + 60 + - MIN ( + 32 ) FROM tab2
----
111

query I rowsort
SELECT ALL - ( + + 88 ) FROM tab1
----
-88
-88
-88

query I rowsort
SELECT - ( + 85 ) * - + col1 + - col0 AS col2 FROM tab0
----
-12
1698
6870

query I rowsort
SELECT 50 + 90 FROM tab2
----
140
140
140

query III rowsort
SELECT * FROM tab1 WHERE + 34 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT 40 + + COUNT( * ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-7203
SELECT 40 + + COUNT ( * ) FROM tab2
----
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 2 ) <= + ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL + COUNT( + col1 ) AS col1 FROM tab2 WHERE NOT NULL >= col0
----
0

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL + COUNT ( + col1 ) AS col1 FROM tab2 WHERE NOT NULL >= col0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 42 NOT IN ( - - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * - + col0 / + 17 + + col1 AND - col1 / - 57
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 IN ( col1 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7209
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - 18 AS col1 FROM tab0 AS cor0
----
18
18
18

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 90 >= ( - - 16 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT 56 <> ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 62 + + + col2 < + 4 * + CAST( ( + col2 ) AS SIGNED ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7213
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 62 + + + col2 < + 4 * + CAST ( ( + col2 ) AS INTEGER ) * CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7214
SELECT - - ( 6 ) DIV - col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT - - ( 6 ) / - col1 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + col0 + - 63 NOT BETWEEN ( col2 ) AND - 5 / 44
----

query I rowsort
SELECT + col0 * col2 * - + col1 FROM tab0 cor0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - + col0 * - col2 * col1 AS col0 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT DISTINCT - col1 * - col2 + col1 + col2 + + col0 AS col2 FROM tab1 AS cor0
----
1505
3402
444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col1, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL - + ( + + col1 ) - col0 FROM tab2 AS cor0 WHERE col0 * + + col2 IS NOT NULL
----
-141
-142
-97

query II rowsort
SELECT DISTINCT col2 AS col0, + 44 FROM tab1
----
59
44
68
44
96
44

query I rowsort
SELECT DISTINCT 31 FROM tab2, tab1 cor0
----
31

query III rowsort
SELECT ALL * FROM tab1 WHERE + 65 * - - 17 > col0 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, 11 FROM tab0
----
15
11
87
11
97
11

query II rowsort
SELECT + col2 AS col0, + col0 * + col1 FROM tab2 cor0
----
23
2346
40
4928
58
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 - - 52 - + col2 - + ( + col1 ) 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-7227
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 - - 52 - + col2 - + ( + col1 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col0 ) + + col0 AS col1 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT + + col2 * + - 20 AS col1 FROM tab2 AS cor0
----
-1160
-460
-800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - 23 col2 FROM tab1 cor0
----
-119
-82
-91

query I rowsort
SELECT DISTINCT - 21 + + - 56 * 91 + + - col1 FROM tab0
----
-5118
-5138
-5198

query I rowsort
SELECT ALL - 38 + + 90 FROM tab2
----
52
52
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7233
SELECT 43 + + COUNT( DISTINCT + 50 ) DIV + COUNT( * ) * COUNT( * ) col2 FROM tab1
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7233
SELECT 43 + + COUNT ( DISTINCT + 50 ) / + COUNT ( * ) * COUNT ( * ) col2 FROM tab1
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 0 - - col2 col2, col1 * + col0 + 13 + - + ( + col1 ) col0 FROM tab0 AS cor0
----
10
1819
47
1147
99
109

query I rowsort
SELECT ALL - - 66 - + col0 - col0 + col2 FROM tab0 AS cor0
----
-29
-98
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7236
SELECT - COUNT( * ), + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7236
SELECT - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT - COUNT( * ) + + + COUNT( * ) * 40 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-7237
SELECT - COUNT ( * ) + + + COUNT ( * ) * 40 FROM tab2 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + 0 + col1 ) NOT IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-7238
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + 0 + col1 ) NOT IN ( col2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7239
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) - - - 39 )
----

skipif mysql # not compatible
query III rowsort label-7239
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) - - - 39 )
----

query II rowsort
SELECT col1 * 65 * - col2 + - + 30 + - 73 AS col0, - col1 AS col0 FROM tab0 AS cor0
----
-13753
-21
-247558
-81
-6538
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7241
SELECT DISTINCT - col2 * col0 * col1 * - - col0 + col1 FROM tab2 cor0 WHERE - 14 + + CAST( NULL AS SIGNED ) IS NULL
----
-12615603
-21858683
-2482017

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT - col2 * col0 * col1 * - - col0 + col1 FROM tab2 cor0 WHERE - 14 + + CAST ( NULL AS INTEGER ) IS NULL
----
-12615603
-21858683
-2482017

query I rowsort
SELECT ALL - + col2 - + col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT ALL - ( + - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT - ( + COUNT( * ) ) * MIN( 54 ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-7245
SELECT - ( + COUNT ( * ) ) * MIN ( 54 ) FROM tab1
----
-162

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, col0 + - 0 AS col0 FROM tab0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NOT - col2 IN ( + 63 )
----
23
40
58

query II rowsort
SELECT col0, col0 * 33 FROM tab2
----
46
1518
64
2112
75
2475

query I rowsort
SELECT ( - + 92 ) AS col0 FROM tab0
----
-92
-92
-92

query II rowsort
SELECT ALL - 60, + ( + 80 ) * col0 + + - col0 AS col1 FROM tab1
----
-60
4029
-60
6715
-60
7189

query II rowsort
SELECT DISTINCT ( + ( + col1 ) ) AS col2, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT ALL COUNT( + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL COUNT ( + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col1 FROM tab0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT MIN( DISTINCT col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7255
SELECT MIN ( DISTINCT col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT DISTINCT col1 * - - 36 AS col2 FROM tab1
----
1692
180
504

query I rowsort
SELECT + 14 * - 34 FROM tab0 AS cor0 WHERE ( + - col0 ) < ( NULL ) OR + 83 IS NOT NULL
----
-476
-476
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL - MAX( col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL - MAX ( col1 ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + + 71 - + 29 * + 24 - + 44 = NULL
----

query I rowsort
SELECT ALL col1 + + + col2 FROM tab2 AS cor0 WHERE NOT ( + col0 - 96 ) IN ( + col2 )
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 38 )
----

query I rowsort
SELECT - col0 + - + 31 * - 28 * - + col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + + 8 AS col1 FROM tab1 AS cor0
----
112
376
40

query I rowsort
SELECT col1 FROM tab1 WHERE + col2 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 58 + col1 - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 24 = - + col1
----

query I rowsort
SELECT ALL 63 + ( - - 21 ) AS col0 FROM tab0
----
84
84
84

query I rowsort
SELECT ALL + - 46 FROM tab0 WHERE - 74 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - - col2 FROM tab2
----
116
46
80

query I rowsort
SELECT + col0 + + 25 AS col1 FROM tab2
----
100
71
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( - 92 )
----

query I rowsort
SELECT DISTINCT - - col1 * col1 + col1 AS col2 FROM tab1 cor0
----
210
2256
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT ALL + COUNT( ALL - col0 ) + 96 AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL + COUNT ( ALL - col0 ) + 96 AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - ( col1 ) - + + 17 - col2 + - + col1 AS col2 FROM tab2 AS cor0
----
-142
-209
-211

query I rowsort
SELECT col1 * - col1 + + - col0 AS col2 FROM tab0 AS cor0
----
-528
-6576
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT + MIN( - col1 ) * 62 FROM tab0
----
-5022

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + MIN ( - col1 ) * 62 FROM tab0
----
-5022

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT + COUNT( * ) * + + ( + ( - COUNT( * ) ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + COUNT ( * ) * + + ( + ( - COUNT ( * ) ) ) FROM tab2
----
-9

query II rowsort
SELECT ALL - col1 * + col0, + col2 + + col2 AS col2 FROM tab1
----
-425
118
-4277
136
-714
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT DISTINCT COUNT( DISTINCT - col2 ) DIV 76 + - + COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT COUNT ( DISTINCT - col2 ) / 76 + - + COUNT ( * ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT ALL - ( - ( - ( + 81 ) ) ) * col0 + + + col1 + 43 + + + col1 DIV 74 FROM tab1 cor0
----
-4074
-6837
-7281

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - ( - ( - ( + 81 ) ) ) * col0 + + + col1 + 43 + + + col1 / 74 FROM tab1 cor0
----
-4074
-6837
-7281

query I rowsort
SELECT ALL - + col2 - col2 + - col1 * - 42 AS col0 FROM tab0 AS cor0
----
-156
3308
862

query I rowsort
SELECT col0 - + col2 + col2 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL - 34 - - + col2 FROM tab0 AS cor0
----
-24
13
65

query II rowsort
SELECT - - 44, col0 AS col2 FROM tab2 AS cor0
----
44
46
44
64
44
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + col0 col1, ( + ( - - col2 ) ) col2 FROM tab1 AS cor0
----
-4896
96
-5015
59
-6188
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL MAX( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL MAX ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7288
SELECT ALL 37, - 58 + CAST( + col2 AS SIGNED ) * - col2 col1 FROM tab1 AS cor0
----
37
-3539
37
-4682
37
-9274

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7288
SELECT ALL 37, - 58 + CAST ( + col2 AS INTEGER ) * - col2 col1 FROM tab1 AS cor0
----
37
-3539
37
-4682
37
-9274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7289
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 76 * + 33 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 76 * + 33 IS NOT NULL
----

query I rowsort
SELECT ALL - 15 * - col1 FROM tab1
----
210
705
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL ( + + COUNT( * ) ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL ( + + COUNT ( * ) ) FROM tab1, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT - - COUNT( * ) * - + COUNT( * ) col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7292
SELECT - - COUNT ( * ) * - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT DISTINCT col1 * + 1 * + col0 AS col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) * + col2 + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT col1 * + 1 * + col0 AS col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * + col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT DISTINCT 55 * COUNT( ALL + + col0 ) + + + 2 AS col2 FROM tab0 WHERE + 55 NOT BETWEEN - col2 * col2 * + ( - CAST( NULL AS SIGNED ) ) AND NULL
----
2

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT 55 * COUNT ( ALL + + col0 ) + + + 2 AS col2 FROM tab0 WHERE + 55 NOT BETWEEN - col2 * col2 * + ( - CAST ( NULL AS INTEGER ) ) AND NULL
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-7296
SELECT DISTINCT + col0 + - col0 DIV - col0, col0 AS col1 FROM tab2
----
47
46
65
64
76
75

skipif mysql # not compatible
query II rowsort label-7296
SELECT DISTINCT + col0 + - col0 / - col0, col0 AS col1 FROM tab2
----
47
46
65
64
76
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT + 37 DIV - 81 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-7297
SELECT + 37 / - 81 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 40 * + - 50 AS col1 FROM tab0 AS cor0
----
2000
2000
2000

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT + col1 DIV - col0 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-7299
SELECT + col1 / - col0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 58 * - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-2726
-290
-812

query I rowsort
SELECT ALL - + 61 + - ( col0 ) FROM tab0 AS cor0
----
-148
-158
-76

query I rowsort
SELECT DISTINCT + + 13 AS col1 FROM tab2 AS cor0
----
13

query II rowsort
SELECT DISTINCT - - col1, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - 61 * - + col0 AS col1 FROM tab1 AS cor0
----
3111
5185
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT - + MAX( + - 23 ) + + 8 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7305
SELECT - + MAX ( + - 23 ) + + 8 FROM tab2 AS cor0
----
31

query I rowsort
SELECT ALL - ( - - 77 ) AS col0 FROM tab1 AS cor0
----
-77
-77
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 47 >= ( - + 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + 2 + - + COUNT( * ) col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7308
SELECT + 2 + - + COUNT ( * ) col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT DISTINCT - MAX( ALL col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - MAX ( ALL col1 ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT + 99 + + col0 FROM tab1
----
150
184
190

query I rowsort
SELECT DISTINCT + 72 + - col0 AS col0 FROM tab2
----
-3
26
8

query I rowsort
SELECT + ( + 41 ) AS col2 FROM tab0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT ALL col1 + - + 10 + - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL col1 + - + 10 + - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT + - MIN( DISTINCT + 53 ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-7314
SELECT + - MIN ( DISTINCT + 53 ) FROM tab0 AS cor0
----
-53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT - MIN( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7316
SELECT - MIN ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT ALL + col1 + + 63 AS col2, - col1 FROM tab1 AS cor0
----
110
-47
68
-5
77
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7318
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( - col0 AS SIGNED ) + + + col2 )
----

skipif mysql # not compatible
query III rowsort label-7318
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( - col0 AS INTEGER ) + + + col2 )
----

query I rowsort
SELECT - + 6 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7320
SELECT CAST( NULL AS DECIMAL ) * col1 + CAST( col1 AS SIGNED ) * - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT CAST ( NULL AS REAL ) * col1 + CAST ( col1 AS INTEGER ) * - + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7321
SELECT ( col2 ) + col0 AS col2, col2 DIV + - col0 AS col0 FROM tab1
----
144
0
147
-1
159
0

skipif mysql # not compatible
query II rowsort label-7321
SELECT ( col2 ) + col0 AS col2, col2 / + - col0 AS col0 FROM tab1
----
144
0
147
-1
159
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7322
SELECT DISTINCT col1 * col1 * - col0 * - CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
-24285184
-25250625
-5503716

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT col1 * col1 * - col0 * - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
-24285184
-25250625
-5503716

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT DISTINCT - 62 * + SUM( col0 ) FROM tab0 AS cor0
----
-12338

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT - 62 * + SUM ( col0 ) FROM tab0 AS cor0
----
-12338

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT - MAX( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7325
SELECT - MAX ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL ( COUNT( * ) ) * 93 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL ( COUNT ( * ) ) * 93 FROM tab0 AS cor0
----
279

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col2 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + col2 * - + col0 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - 7 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-7330
SELECT DISTINCT col2, - col1 DIV col1 - col2 AS col1 FROM tab2
----
23
-24
40
-41
58
-59

skipif mysql # not compatible
query II rowsort label-7330
SELECT DISTINCT col2, - col1 / col1 - col2 AS col1 FROM tab2
----
23
-24
40
-41
58
-59

query II rowsort
SELECT ALL - 60, col2 FROM tab0
----
-60
10
-60
47
-60
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT + MIN( ALL 62 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-7332
SELECT + MIN ( ALL 62 ) FROM tab2
----
62

query I rowsort
SELECT 11 * 75 FROM tab2
----
825
825
825

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT + COUNT( * ) * + 55 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-7334
SELECT + COUNT ( * ) * + 55 FROM tab0
----
165

query I rowsort
SELECT - + col0 * - col2 + - col2 + + col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NOT - col1 = NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 + + ( + - 0 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT - MIN( 79 ) FROM tab2 AS cor0 WHERE NOT col2 * + col2 NOT BETWEEN - - col2 AND col2 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT - MIN ( 79 ) FROM tab2 AS cor0 WHERE NOT col2 * + col2 NOT BETWEEN - - col2 AND col2 + + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE + - col2 - + CAST( NULL AS SIGNED ) + + - col1 + + 10 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE + - col2 - + CAST ( NULL AS INTEGER ) + + - col1 + + 10 IS NOT NULL
----

query I rowsort
SELECT + 10 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7342
SELECT 50, CAST( ( + col1 ) AS DECIMAL ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-7342
SELECT 50, CAST ( ( + col1 ) AS REAL ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + 23 FROM tab0 cor0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT 24 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7345
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT 24 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - MIN( ALL + - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7346
SELECT - MIN ( ALL + - col0 ) FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 27 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 51 + - - ( col0 ) + - + col1 FROM tab0
----
-15
117
147

query I rowsort
SELECT + col0 * + col0 - 32 * col0 * - col2 FROM tab2
----
144825
35972
86016

query I rowsort
SELECT ALL + 94 * - col1 FROM tab1
----
-1316
-4418
-470

query I rowsort
SELECT col0 * 15 - + + col0 AS col0 FROM tab1
----
1190
1274
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT DISTINCT COUNT( * ) - + ( 60 ) AS col2 FROM tab0 WHERE NOT - col1 > - col1 + 22
----
-57

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT COUNT ( * ) - + ( 60 ) AS col2 FROM tab0 WHERE NOT - col1 > - col1 + 22
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7353
SELECT + COUNT( ALL - col1 ) DIV COUNT( * ) + - + 8 AS col2 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-7353
SELECT + COUNT ( ALL - col1 ) / COUNT ( * ) + - + 8 AS col2 FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT DISTINCT - MAX( ALL - 37 ) AS col1, 18 AS col2 FROM tab2 WHERE NOT + + col0 > - - col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-7354
SELECT DISTINCT - MAX ( ALL - 37 ) AS col1, 18 AS col2 FROM tab2 WHERE NOT + + col0 > - - col2
----
NULL
18

query I rowsort
SELECT 2 + col0 FROM tab2
----
48
66
77

query I rowsort
SELECT - 91 FROM tab1, tab1 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT DISTINCT - ( + + 47 ) AS col1 FROM tab0 WHERE + 66 * col0 IS NOT NULL
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 + - + col1 + + col2 col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + 44 * + col2 AS col0 FROM tab2 AS cor0
----
1012
1760
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL MIN( col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL MIN ( col0 ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT DISTINCT - + 14 * - MAX( DISTINCT col1 ) * + 78 + ( + 81 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
84165

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - + 14 * - MAX ( DISTINCT col1 ) * + 78 + ( + 81 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
84165

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) <= ( col0 )
----
51
14
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 + + - col0 * 92 IS NOT NULL )
----

query I rowsort
SELECT ALL - + 94 AS col1 FROM tab1 AS cor0
----
-94
-94
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7365
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( + 33 + - ( - CAST( NULL AS SIGNED ) ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( + 33 + - ( - CAST ( NULL AS INTEGER ) ) ) IS NULL
----
3

query II rowsort
SELECT + col1, + col1 + - - ( + + col2 ) * - + col0 AS col2 FROM tab1
----
14
-4882
47
-6141
5
-5010

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL MAX( - + col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL MAX ( - + col2 ) AS col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7368
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT ALL col0 * - 53 AS col0 FROM tab1 WHERE NULL IN ( 25 )
----

query II rowsort
SELECT DISTINCT - col2, col2 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT DISTINCT MAX( col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT MAX ( col1 ) AS col0 FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL + COUNT( ALL - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + COUNT ( ALL - col0 ) FROM tab1
----
3

query I rowsort
SELECT col0 * 11 AS col2 FROM tab2
----
506
704
825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7375
SELECT DISTINCT + 85 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT + 85 / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL - 35 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL - 35 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-105

query I rowsort
SELECT + - col2 * + + col2 + + col1 * col2 FROM tab2 AS cor0
----
1480
522
644

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL - SUM( ALL + - 5 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - SUM ( ALL + - 5 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT col0 * + 18 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT col0 * + 18 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT COUNT( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7380
SELECT COUNT ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL + + MIN( DISTINCT - + 73 ) AS col1 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL + + MIN ( DISTINCT - + 73 ) AS col1 FROM tab1 AS cor0
----
-73

query II rowsort
SELECT DISTINCT + 11 AS col2, col2 AS col0 FROM tab0
----
11
10
11
47
11
99

query I rowsort
SELECT + 66 AS col0 FROM tab2, tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT ALL - col2 DIV - - col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL - col2 / - - col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT - - ( - COUNT( * ) ) + + COUNT( * ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7385
SELECT - - ( - COUNT ( * ) ) + + COUNT ( * ) col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7386
SELECT - 81 + + CAST( NULL AS SIGNED ) + - SUM( ALL - 86 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT - 81 + + CAST ( NULL AS INTEGER ) + - SUM ( ALL - 86 ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT + MIN( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + MIN ( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 1 / - 35 / + 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7389
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 49 FROM tab0 AS cor0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-7389
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 49 FROM tab0 AS cor0
----
NULL
49

query I rowsort
SELECT DISTINCT + - col2 + - 16 FROM tab2 AS cor0
----
-39
-56
-74

query I rowsort
SELECT DISTINCT col0 * + col0 + - col1 AS col0 FROM tab2
----
2065
4019
5558

query I rowsort
SELECT DISTINCT 34 + 21 FROM tab1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 86 col2 FROM tab1 AS cor0
----
137
171
177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7394
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7394
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 98 - + col2 * - col2 * - 69 FROM tab2 AS cor0
----
-110302
-232018
-36403

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT ALL SUM( DISTINCT col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7397
SELECT CAST( NULL AS DECIMAL ) * + MAX( - col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT CAST ( NULL AS REAL ) * + MAX ( - col2 ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - col2 AS col1, - col2 AS col2 FROM tab1
----
-59
-59
-68
-68
-96
-96

query II rowsort
SELECT - 64 AS col0, - col1 FROM tab2 AS cor0
----
-64
-51
-64
-67
-64
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab0 AS cor0 WHERE - col1 * - + 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7404
SELECT + + CAST( + col1 AS SIGNED ) DIV - 73 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7404
SELECT + + CAST ( + col1 AS INTEGER ) / - 73 FROM tab0 cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT + + 91 AS col0 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL - SUM( + - 55 ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - SUM ( + - 55 ) FROM tab1 AS cor0
----
165

query II rowsort
SELECT + col1 AS col1, + col2 * - col2 AS col1 FROM tab0 AS cor0
----
1
-9801
21
-100
81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL + MAX( DISTINCT - 76 ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL + MAX ( DISTINCT - 76 ) FROM tab0
----
-76

query I rowsort
SELECT DISTINCT + col1 * + 97 FROM tab1
----
1358
4559
485

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT - 14 * - COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7411
SELECT - 14 * - COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT CAST( - 51 AS SIGNED ) * 74 + + 70 * 71 FROM tab1 cor0
----
1196
1196
1196

skipif mysql # not compatible
query I rowsort label-7412
SELECT CAST ( - 51 AS INTEGER ) * 74 + + 70 * 71 FROM tab1 cor0
----
1196
1196
1196

query I rowsort
SELECT ALL - - 91 FROM tab2 cor0
----
91
91
91

query I rowsort
SELECT ALL 87 AS col2 FROM tab1 cor0
----
87
87
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT + 90 + col2 DIV col2 - - 88 FROM tab2
----
179
179
179

skipif mysql # not compatible
query I rowsort label-7415
SELECT + 90 + col2 / col2 - - 88 FROM tab2
----
179
179
179

query I rowsort
SELECT 54 + - - col0 + + col1 FROM tab0
----
150
152
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7417
SELECT ALL - 41 DIV + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 74 IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL - 41 / + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 74 IS NOT NULL
----
-4

query I rowsort
SELECT - ( - 35 ) FROM tab0
----
35
35
35

query I rowsort
SELECT + col2 * - 86 AS col2 FROM tab1 AS cor0 WHERE 23 IS NULL
----

query I rowsort
SELECT ALL 64 + + col2 FROM tab1 AS cor0
----
123
132
160

query I rowsort
SELECT + + col1 * - col1 AS col1 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT - 46 * - 53 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
2441

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 46 * - 53 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
2441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7423
SELECT ALL - 34 - + CAST( - 8 AS SIGNED ) AS col0, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-26
-3

skipif mysql # not compatible
query II rowsort label-7423
SELECT ALL - 34 - + CAST ( - 8 AS INTEGER ) AS col0, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-26
-3

query I rowsort
SELECT DISTINCT + col1 - col2 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
-3417
-4509
-9106

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT ALL col0 DIV - - 2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
43
48
7

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL col0 / - - 2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
43
48
7

query I rowsort
SELECT ALL 44 * + col2 FROM tab2
----
1012
1760
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT + ( - + COUNT( * ) ) * + - 49 + COUNT( * ) AS col0 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + ( - + COUNT ( * ) ) * + - 49 + COUNT ( * ) AS col0 FROM tab1
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT col0 + - + CAST( - col1 AS SIGNED ) FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-7428
SELECT col0 + - + CAST ( - col1 AS INTEGER ) FROM tab1
----
138
65
90

query I rowsort
SELECT ALL - 23 + 24 - 85 + - 97 * col2 FROM tab2 AS cor0
----
-2315
-3964
-5710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 + - 92 col0 FROM tab1 AS cor0
----
-70
-70
-70

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 0 <= - 19
----

query I rowsort
SELECT + 88 FROM tab2 AS cor0 WHERE NOT 44 IS NULL
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7433
SELECT + - CAST( 93 AS SIGNED ) FROM tab1 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-7433
SELECT + - CAST ( 93 AS INTEGER ) FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + col0 / - - col0 * + 25 IN ( + col1, col1, + 42 + + col2 * - col0 * + 72 + + col0 * ( + - ( - ( - ( + - col0 ) ) ) ) * 42 + ( - col2 ) + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <= col1
----
0

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <= col1
----
0

query I rowsort
SELECT - 22 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-22
-22
-22

query I rowsort
SELECT ALL - - 22 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT ALL - col0 * + + 93 * + - 40 + 75 AS col1 FROM tab2 AS cor0
----
171195
238155
279075

query II rowsort
SELECT DISTINCT - + col1 + + + 45 - col2 AS col1, - ( + - col0 ) FROM tab2 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < - col0 + - col0 * - col1 + col0 AND + 74 < 25
----

query II rowsort
SELECT ALL col1, 46 FROM tab2
----
51
46
67
46
77
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7442
SELECT CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - ( - 89 ) AS col0 FROM tab2
----
89
89
89

query II rowsort
SELECT DISTINCT col2, ( col1 ) AS col2 FROM tab1
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * - - col2 col1 FROM tab1 AS cor0
----
-5192
-5984
-8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col1, col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col1 + + col1 * + col0, - col1, 71 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + - 71 * col0
----

query I rowsort
SELECT 5 + - 63 AS col2 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + + ( - col2 ) + 30 FROM tab0 AS cor0
----
-17
-69
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT + 4 DIV - col0 + - col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7451
SELECT + 4 / - col0 + - col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT ALL - col0 DIV + col2 - + - ( - col2 ) + 73 DIV col2 * + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-192
-34
-46

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - col0 / + col2 - + - ( - col2 ) + 73 / col2 * + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-192
-34
-46

query I rowsort
SELECT DISTINCT + 17 + - - col1 FROM tab2 AS cor0
----
68
84
94

query I rowsort
SELECT DISTINCT - - 8 - + col1 * - - col1 AS col0 FROM tab1 AS cor0
----
-17
-188
-2201

query I rowsort
SELECT ALL + 27 * - col2 FROM tab0 cor0
----
-1269
-2673
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT - COUNT( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7456
SELECT - COUNT ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col0 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 29 / col1 * + + col0 ) >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT DISTINCT + MIN( + col1 ) DIV + 56 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT + MIN ( + col1 ) / + 56 AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 20 AND - 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7461
SELECT * FROM tab1 WHERE - + col2 * + col2 + CAST( + ( 17 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7461
SELECT * FROM tab1 WHERE - + col2 * + col2 + CAST ( + ( 17 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT DISTINCT 59 DIV 32 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT 59 / 32 AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT + 7 - COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7463
SELECT + 7 - COUNT ( * ) FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL - SUM( ALL + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - SUM ( ALL + col1 ) FROM tab2
----
-195

query II rowsort
SELECT DISTINCT col0, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT ( + 83 ) * - col0 FROM tab0
----
-1245
-7221
-8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col0, - col1 col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query II rowsort
SELECT ALL col1, + col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7469
SELECT + 12 * + - col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT + 12 * + - col0 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT + COUNT( DISTINCT - + col0 ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7471
SELECT + COUNT ( DISTINCT - + col0 ) * COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT 13 + 57 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query II rowsort
SELECT + - col2 * 69 - - 30 * col1 AS col2, - col1 * col1 AS col1 FROM tab1 AS cor0
----
-3282
-2209
-3921
-25
-6204
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7474
SELECT DISTINCT COUNT( * ) * + + CAST( + 7 AS SIGNED ) AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7474
SELECT DISTINCT COUNT ( * ) * + + CAST ( + 7 AS INTEGER ) AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0, - 45, - col1 col2 FROM tab0 AS cor0
----
9 values hashing to 068cedb113b9e778158ba9ab60e4a406

query I rowsort
SELECT ALL + ( - 35 ) FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT - MIN( ALL 44 ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7477
SELECT - MIN ( ALL 44 ) FROM tab2 AS cor0
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-7478
SELECT DISTINCT + col1, - col1 DIV - 92 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-7478
SELECT DISTINCT + col1, - col1 / - 92 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT DISTINCT + COUNT( ALL + + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT + COUNT ( ALL + + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT 67 * + col1, 28 FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7481
SELECT ALL + col0 AS col1, col0 DIV + 37 AS col2 FROM tab1 AS cor0
----
51
1
85
2
91
2

skipif mysql # not compatible
query II rowsort label-7481
SELECT ALL + col0 AS col1, col0 / + 37 AS col2 FROM tab1 AS cor0
----
51
1
85
2
91
2

query II rowsort
SELECT ALL + col1 + + - col2 AS col2, - col1 FROM tab0 AS cor0
----
-98
-1
11
-21
34
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT - MIN( DISTINCT + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7483
SELECT - MIN ( DISTINCT + col0 ) FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7484
SELECT ALL + col1 DIV - 26 + + - 27 FROM tab2
----
-28
-29
-29

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL + col1 / - 26 + + - 27 FROM tab2
----
-28
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT - COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7485
SELECT - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT ALL - col2 + - - col1 FROM tab0
----
-98
11
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col0 FROM tab1
----
42
42
42

query III rowsort
SELECT * FROM tab0 WHERE + col1 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT ALL + CAST( NULL AS SIGNED ) + 45 * 87 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL + CAST ( NULL AS INTEGER ) + 45 * 87 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 BETWEEN ( + 36 / - ( + 83 ) + col1 ) AND + 39 * - - col1
----

query I rowsort
SELECT ALL - 89 * col2 * - col2 * + 6 AS col2 FROM tab0 AS cor0
----
1179606
5233734
53400

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT 50 + COUNT( * ) - - + SUM( - col2 ) FROM tab1
----
-170

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT 50 + COUNT ( * ) - - + SUM ( - col2 ) FROM tab1
----
-170

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT MAX( ( + + ( + col1 ) ) ) - + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT MAX ( ( + + ( + col1 ) ) ) - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7498
SELECT - 95 - - CAST( NULL AS DECIMAL ) + + + ( - col1 ) * - col0 + + col1 * - 31 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT - 95 - - CAST ( NULL AS REAL ) + + + ( - col1 ) * - col0 + + col1 * - 31 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 17 + 13 FROM tab2
----
30
30
30

query II rowsort
SELECT 82 * col1 * - ( + - 55 ) * + 66 AS col0, - col2 * + col1 * - + 59 FROM tab1
----
13990020
188564
1488300
17405
4167240
79296

onlyif mysql # DIV for integer division: 
query I rowsort label-7502
SELECT DISTINCT col0 DIV - 76 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT col0 / - 76 AS col1 FROM tab2
----
0

query I rowsort
SELECT 51 * + col1 AS col2 FROM tab2
----
2601
3417
3927

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 22 >= NULL
----

query I rowsort
SELECT ALL ( + + col1 ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT DISTINCT ( + - COUNT( * ) ) * + 10 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT ( + - COUNT ( * ) ) * + 10 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 16 NOT BETWEEN NULL AND + - col0 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7508
SELECT DISTINCT - COUNT( * ) * + 37 + + COUNT( * ) + - - 89 * CAST( + 50 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
4342

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT - COUNT ( * ) * + 37 + + COUNT ( * ) + - - 89 * CAST ( + 50 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
4342

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - col0 OR NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7511
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - 7 AS col1, 84 FROM tab2
----
-7
84
-7
84
-7
84

query II rowsort
SELECT col1, col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 98 * + col1 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 71 * 75 col0 FROM tab2 cor0
----
-5325
-5325
-5325

query II rowsort
SELECT ALL - col0 * ( + + col2 ), col0 FROM tab1 AS cor0
----
-4896
51
-5015
85
-6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT + MAX( + 54 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT + MAX ( + 54 ) FROM tab1 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-7518
SELECT 53 * - + col2 + - - 34 DIV - col0 AS col0, col0 FROM tab0
----
-2493
15
-5247
97
-530
87

skipif mysql # not compatible
query II rowsort label-7518
SELECT 53 * - + col2 + - - 34 / - col0 AS col0, col0 FROM tab0
----
-2493
15
-5247
97
-530
87

query III rowsort
SELECT * FROM tab0 WHERE col1 / - - col0 + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT + ( - SUM( DISTINCT ( + 73 ) ) ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT + ( - SUM ( DISTINCT ( + 73 ) ) ) FROM tab1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7521
SELECT ALL COUNT( * ), CAST( + ( + COUNT( DISTINCT - col0 ) ) AS SIGNED ) col2 FROM tab0 WHERE NULL <> - 21 * + col2 * col2
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7521
SELECT ALL COUNT ( * ), CAST ( + ( + COUNT ( DISTINCT - col0 ) ) AS INTEGER ) col2 FROM tab0 WHERE NULL <> - 21 * + col2 * col2
----
0
0

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col0 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT MIN( - ( + + col2 ) ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7523
SELECT MIN ( - ( + + col2 ) ) col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7524
SELECT + + CAST( - ( + + 92 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7524
SELECT + + CAST ( - ( + + 92 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT 24 FROM tab1 AS cor0 WHERE NOT 91 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - + 69 ) AS col0 FROM tab1 AS cor0
----
-69
-69
-69

query II rowsort
SELECT - 98 + - + 90 AS col2, col2 AS col1 FROM tab2 AS cor0
----
-188
23
-188
40
-188
58

query II rowsort
SELECT DISTINCT 69 + 88, + 2 AS col0 FROM tab1 AS cor0
----
157
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7529
SELECT ALL - AVG ( DISTINCT + - col0 ) + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL - AVG ( DISTINCT + - col0 ) + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 * - 71 <= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL - SUM( + + 17 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL - SUM ( + + 17 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT DISTINCT COUNT( * ) * - - SUM( ALL + 17 ) AS col0 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT COUNT ( * ) * - - SUM ( ALL + 17 ) AS col0 FROM tab0 AS cor0
----
153

query I rowsort
SELECT DISTINCT - col1 * + 52 AS col1 FROM tab2 cor0
----
-2652
-3484
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - COUNT( + + col1 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7534
SELECT - COUNT ( + + col1 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT + col2 * + ( - col2 ) * - col0 FROM tab2
----
102400
24334
252300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7537
SELECT COUNT( * ) DIV 22 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT COUNT ( * ) / 22 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT - MAX( + 93 ) AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-7538
SELECT - MAX ( + 93 ) AS col0 FROM tab1
----
-93

query II rowsort
SELECT DISTINCT col0, + 45 AS col0 FROM tab1
----
51
45
85
45
91
45

query I rowsort
SELECT - 18 * + 15 * - ( ( + + col2 ) ) FROM tab0
----
12690
26730
2700

query I rowsort
SELECT ALL - ( 55 ) AS col2 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT ALL 66 * col2 AS col1 FROM tab2
----
1518
2640
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL + SUM( ALL - col1 ) col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7543
SELECT ALL + SUM ( ALL - col1 ) col2 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7544
SELECT COUNT( * ) + - ( + 37 ) - + 46 DIV 8 * - COUNT( * ) AS col1 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-7544
SELECT COUNT ( * ) + - ( + 37 ) - + 46 / 8 * - COUNT ( * ) AS col1 FROM tab1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7545
SELECT + 0 + - + MIN( ALL + + CAST( - col2 AS SIGNED ) ) + + 86 AS col1 FROM tab0
----
185

skipif mysql # not compatible
query I rowsort label-7545
SELECT + 0 + - + MIN ( ALL + + CAST ( - col2 AS INTEGER ) ) + + 86 AS col1 FROM tab0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-7546
SELECT 88 + + COUNT( * ), COUNT( * ) AS col1 FROM tab2
----
91
3

skipif mysql # not compatible
query II rowsort label-7546
SELECT 88 + + COUNT ( * ), COUNT ( * ) AS col1 FROM tab2
----
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7547
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL COUNT( * ) * - 39 AS col0 FROM tab0 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL COUNT ( * ) * - 39 AS col0 FROM tab0 cor0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7549
SELECT DISTINCT + 4 DIV + - COUNT( * ) AS col2, + COUNT( * ) * + COUNT( - ( - - 47 ) ) FROM tab2 AS cor0
----
-1
9

skipif mysql # not compatible
query II rowsort label-7549
SELECT DISTINCT + 4 / + - COUNT ( * ) AS col2, + COUNT ( * ) * + COUNT ( - ( - - 47 ) ) FROM tab2 AS cor0
----
-1
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 30, + 92 col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( - + 75 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT col1 * + + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE - 88 + + col0 IS NOT NULL
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-7551
SELECT col1 * + + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE - 88 + + col0 IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 75 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7552
SELECT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 75 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7553
SELECT + COUNT( * ) DIV + COUNT( * ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7553
SELECT + COUNT ( * ) / + COUNT ( * ) FROM tab2 cor0
----
1

query I rowsort
SELECT + 97 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * - + col1 + - - 94 FROM tab1 AS cor0
----
1438
3290
389

query I rowsort
SELECT - 71 * col1 * - 76 AS col0 FROM tab1
----
253612
26980
75544

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT DISTINCT 46 DIV col2 + - ( 95 ) AS col1 FROM tab0
----
-91
-95

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT 46 / col2 + - ( 95 ) AS col1 FROM tab0
----
-91
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + col0 col2 FROM tab0
----
157
167
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 81 * - + col0 col1 FROM tab2
----
-3675
-5107
-6008

query I rowsort
SELECT DISTINCT + col0 + + 3 + + 40 + col1 AS col1 FROM tab1 AS cor0
----
108
133
181

query I rowsort
SELECT DISTINCT + - col1 * + + 47 + - - 97 + - col1 AS col1 FROM tab1 cor0
----
-143
-2159
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT col2 col2 FROM tab2 cor0 WHERE CAST( - col0 AS SIGNED ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7562
SELECT col2 col2 FROM tab2 cor0 WHERE CAST ( - col0 AS INTEGER ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL col1 - - + 19 AS col1 FROM tab0 AS cor0
----
100
20
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + 55 * col2 * col2 - - - col2 * - 86 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT - col2 DIV + 54 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7565
SELECT - col2 / + 54 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 33 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT + - col1 DIV - + col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7567
SELECT + - col1 / - + col1 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT + + col0 * + 14 + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
1239
1359
291

skipif mysql # not compatible
query I rowsort label-7568
SELECT + + col0 * + 14 + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
1239
1359
291

query II rowsort
SELECT + 56 AS col1, - 80 AS col0 FROM tab2 cor0
----
56
-80
56
-80
56
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT DISTINCT - COUNT( - + 35 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT - COUNT ( - + 35 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT ALL + CAST( + 57 AS SIGNED ) col1 FROM tab1 AS cor0
----
57
57
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7571
SELECT ALL + CAST ( + 57 AS INTEGER ) col1 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT + col2 * + - 71 AS col0 FROM tab1
----
-4189
-4828
-6816

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL - ( - - COUNT( * ) ) * + MIN( ALL + 21 ) AS col2 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL - ( - - COUNT ( * ) ) * + MIN ( ALL + 21 ) AS col2 FROM tab1
----
-63

query I rowsort
SELECT - 92 * 8 FROM tab2 AS cor0
----
-736
-736
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT + col0 * + - CAST( + 33 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2871
-3201
-495

skipif mysql # not compatible
query I rowsort label-7576
SELECT + col0 * + - CAST ( + 33 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2871
-3201
-495

query I rowsort
SELECT DISTINCT - + 78 AS col0 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT + COUNT( col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7578
SELECT + COUNT ( col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT - + COUNT( * ) + + + 55 AS col1 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7579
SELECT - + COUNT ( * ) + + + 55 AS col1 FROM tab0 AS cor0
----
52

query I rowsort
SELECT 13 + col1 + + col0 * - col1 FROM tab1 cor0
----
-407
-4217
-687

query I rowsort
SELECT DISTINCT + col2 + + + col1 AS col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7582
SELECT + + col2 DIV + - 97 * 9 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7582
SELECT + + col2 / + - 97 * 9 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL + + ( + MAX( + + 94 ) ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + + ( + MAX ( + + 94 ) ) FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT ALL 24 * - - MIN( DISTINCT 75 ) AS col0 FROM tab1 AS cor0
----
1800

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL 24 * - - MIN ( DISTINCT 75 ) AS col0 FROM tab1 AS cor0
----
1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7585
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 * CAST( NULL AS SIGNED ) * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 * CAST ( NULL AS INTEGER ) * col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT + - col1 * + CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT + - col1 * + CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col2 IS NOT NULL )
----

query I rowsort
SELECT ALL - col2 + col1 + + 91 + col0 * - + col1 + - + 78 FROM tab2
----
-2305
-4878
-5003

query II rowsort
SELECT ALL 34 + + - 47 AS col1, - col1 FROM tab2
----
-13
-51
-13
-67
-13
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT - col0 DIV col2 DIV 30 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7590
SELECT - col0 / col2 / 30 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7591
SELECT DISTINCT SUM( - 62 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT SUM ( - 62 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT DISTINCT + col2 - - col2 DIV + 58 FROM tab0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT + col2 - - col2 / + 58 FROM tab0
----
10
100
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 - + - 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7594
SELECT ALL + - COUNT( * ) - 61 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-64
3

skipif mysql # not compatible
query II rowsort label-7594
SELECT ALL + - COUNT ( * ) - 61 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-64
3

query I rowsort
SELECT ALL + 64 * + 4 - - 74 FROM tab0 AS cor0
----
330
330
330

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + + ( - 60 ) * COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NOT 74 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7596
SELECT + + ( - 60 ) * COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NOT 74 IS NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7597
SELECT + MIN( 12 ) DIV + MAX( + - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7597
SELECT + MIN ( 12 ) / + MAX ( + - col2 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col2 FROM tab1
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 * + col0 * + col1 col1 FROM tab1 AS cor0
----
11900
119756
19992

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT - + col1 DIV 16 AS col1 FROM tab0 cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT - + col1 / 16 AS col1 FROM tab0 cor0
----
-1
-5
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col0, col1 )
----

query I rowsort
SELECT DISTINCT + - 15 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL - ( + col2 ) AS col1 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL COUNT( ALL col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL COUNT ( ALL col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - col1 * + - col2 AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT SUM( ALL - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7607
SELECT SUM ( ALL - col0 ) AS col0 FROM tab2
----
-185

query II rowsort
SELECT DISTINCT 75, col1 AS col0 FROM tab2
----
75
51
75
67
75
77

query I rowsort
SELECT DISTINCT ( - + 7 ) * + col0 AS col0 FROM tab0
----
-105
-609
-679

query II rowsort
SELECT + col2, col1 FROM tab0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * col2 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT ALL - col1 * + 10 col1 FROM tab0 WHERE + - col0 * - - col0 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7612
SELECT ALL - col1 * + 10 col1 FROM tab0 WHERE + - col0 * - - col0 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 * + + col1 * - 34 AS col2 FROM tab0
----
-14994
-223074
-34

query II rowsort
SELECT DISTINCT + + 54 AS col0, col2 FROM tab0 AS cor0
----
54
10
54
47
54
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + col2 col2 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT * FROM tab2 WHERE - col0 * + - 47 + 67 = NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 2 + + - col0 - - col0 FROM tab1
----
118
136
192

query II rowsort
SELECT DISTINCT - - col1 * - + 37 + - 31 - - + ( - - col2 ) AS col1, col0 AS col1 FROM tab0 cor0
----
-2981
15
-798
87
31
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7619
SELECT DISTINCT col2 * + + col2 + col1 DIV + col0 * - 35 - - col1 FROM tab1 AS cor0
----
3486
4671
9230

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT col2 * + + col2 + col1 / + col0 * - 35 - - col1 FROM tab1 AS cor0
----
3486
4671
9230

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * col2 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 FROM tab1 WHERE - 47 > NULL
----

query I rowsort
SELECT col1 + ( + col1 ) * - 65 FROM tab1
----
-3008
-320
-896

query II rowsort
SELECT ALL col1 * + + 82 * + + col0, 51 AS col0 FROM tab1
----
34850
51
350714
51
58548
51

query I rowsort
SELECT DISTINCT - 43 * + - col0 + + col1 AS col1 FROM tab0
----
3762
4172
726

query I rowsort
SELECT 57 + col2 FROM tab0
----
104
156
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT DISTINCT - col2 DIV + + col0 col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7627
SELECT DISTINCT - col2 / + + col0 col0 FROM tab0
----
-1
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7628
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - col2 + - - col0 * col2 FROM tab0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL + ( 98 ) + - + SUM( - + ( col0 ) ) AS col0 FROM tab2
----
283

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + ( 98 ) + - + SUM ( - + ( col0 ) ) AS col0 FROM tab2
----
283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7631
SELECT + SUM( - - CAST( + + col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7631
SELECT + SUM ( - - CAST ( + + col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT + ( 48 ) AS col1 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7633
SELECT CAST( NULL AS SIGNED ) + 0 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT CAST ( NULL AS INTEGER ) + 0 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 60 + col1 AS col2 FROM tab2
----
111
127
137

query I rowsort
SELECT DISTINCT col1 + 25 AS col0 FROM tab1
----
30
39
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7636
SELECT COUNT( * ) * + 23 AS col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT COUNT ( * ) * + 23 AS col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT ALL 94 + col0 AS col1 FROM tab2
----
140
158
169

query I rowsort
SELECT ALL col2 + 97 AS col0 FROM tab2
----
120
137
155

onlyif mysql # DIV for integer division: 
query I rowsort label-7639
SELECT DISTINCT - col1 + 71 DIV col2 FROM tab2
----
-48
-66
-76

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT - col1 + 71 / col2 FROM tab2
----
-48
-66
-76

query I rowsort
SELECT 69 * + col0 + 57 AS col0 FROM tab1
----
3576
5922
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT - COUNT( ALL ( col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7641
SELECT - COUNT ( ALL ( col1 ) ) FROM tab0
----
-3

query I rowsort
SELECT col1 * col2 AS col2 FROM tab1 WHERE + col1 >= col0 * ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 WHERE NOT NULL IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT - col2 + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col2 + + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT 85 - MIN( ALL + col1 ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7645
SELECT 85 - MIN ( ALL + col1 ) AS col0 FROM tab0
----
84

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + + ( - 70 ) * + 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN 36 AND ( - 32 )
----

query I rowsort
SELECT DISTINCT + 93 FROM tab1 WHERE NOT ( + 0 ) IS NOT NULL
----

query I rowsort
SELECT 51 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + 47 AS col2 FROM tab1
----
47
47
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7651
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN ( - CAST( NULL AS DECIMAL ) + col1 * + 23 ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-7651
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN ( - CAST ( NULL AS REAL ) + col1 * + 23 ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT COUNT( * ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7652
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 70 * - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - 97 ) * col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * ( + col2 ) + - col0 AS col0 FROM tab0
----
123
2
3792

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT ALL CAST( - col2 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL CAST ( - col2 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL + AVG ( DISTINCT + col0 ) FROM tab1 cor0 WHERE NOT NULL < + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7659
SELECT col0 DIV - col1 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-7659
SELECT col0 / - col1 FROM tab0 cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT 55 * COUNT( DISTINCT ( col2 ) * + 0 ) col0 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7660
SELECT DISTINCT 55 * COUNT ( DISTINCT ( col2 ) * + 0 ) col0 FROM tab2 AS cor0
----
55

query IIIIII rowsort
SELECT * FROM tab2 cor0 INNER JOIN tab2 ON NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 AS col1 FROM tab1 cor0
----
1395
3287
380

query I rowsort
SELECT DISTINCT + 92 + - 89 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE - 83 > + col0 + + col0
----

query I rowsort
SELECT ALL + col2 + 37 FROM tab1 AS cor0
----
105
133
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7667
SELECT + col2 DIV col0 + col0 FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-7667
SELECT + col2 / col0 + col0 FROM tab1 AS cor0
----
52
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT + col2 + 64 DIV - col1 AS col2 FROM tab0 AS cor0
----
35
47
7

skipif mysql # not compatible
query I rowsort label-7668
SELECT + col2 + 64 / - col1 AS col2 FROM tab0 AS cor0
----
35
47
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 87 )
----

query I rowsort
SELECT DISTINCT 88 + + col1 FROM tab2 AS cor0
----
139
155
165

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT ALL col2 DIV ( col2 ) FROM tab1 AS cor0 WHERE NOT ( - col1 * 41 - - ( - col2 ) ) IN ( ( 93 ) + col0 DIV + 61 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL col2 / ( col2 ) FROM tab1 AS cor0 WHERE NOT ( - col1 * 41 - - ( - col2 ) ) IN ( ( 93 ) + col0 / + 61 )
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + COUNT( * ) + - COUNT( - ( col1 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7672
SELECT + COUNT ( * ) + - COUNT ( - ( col1 ) ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7673
SELECT DISTINCT + - col2 * + CAST( NULL AS SIGNED ) - - 97 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT + - col2 * + CAST ( NULL AS INTEGER ) - - 97 FROM tab1 cor0
----
NULL

query I rowsort
SELECT 52 AS col1 FROM tab2 cor0 WHERE - col1 / col1 IS NOT NULL
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT + 1 * COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT + 1 * COUNT ( * ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 90 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL + ( col0 ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + 85 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7678
SELECT ALL + col0 DIV + - col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL + col0 / + - col2 AS col2 FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT col0 * col2 DIV + 69 AS col0 FROM tab1
----
70
72
89

skipif mysql # not compatible
query I rowsort label-7679
SELECT col0 * col2 / + 69 AS col0 FROM tab1
----
70
72
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT COUNT( DISTINCT - col0 ) - + COUNT( * ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7680
SELECT COUNT ( DISTINCT - col0 ) - + COUNT ( * ) col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 + - 9 FROM tab2
----
14
31
49

query I rowsort
SELECT - col1 - 56 AS col2 FROM tab0
----
-137
-57
-77

query I rowsort
SELECT + ( + col1 ) * col1 - col2 FROM tab0
----
-98
431
6514

query I rowsort
SELECT - 48 - - - 38 AS col1 FROM tab1 AS cor0
----
-86
-86
-86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - - 69 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IN ( - 48 * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7686
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IN ( - 48 * + col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7687
SELECT col2 * ( + 9 ) * CAST( 63 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
26649
56133
5670

skipif mysql # not compatible
query I rowsort label-7687
SELECT col2 * ( + 9 ) * CAST ( 63 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
26649
56133
5670

query I rowsort
SELECT DISTINCT + col0 * - - 96 FROM tab2 cor0
----
4416
6144
7200

query I rowsort
SELECT - 74 * + col0 AS col0 FROM tab1 AS cor0
----
-3774
-6290
-6734

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 + col0 NOT IN ( col1 * 73 + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) <> + 37 + ( col2 ) * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + ( + col1 ) col2 FROM tab2 WHERE + - 41 - 51 * + col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7694
SELECT DISTINCT 93 + - 32 AS col0, ( 50 ) * - CAST( NULL AS SIGNED ) + - COUNT( * ) col2 FROM tab0
----
61
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7694
SELECT DISTINCT 93 + - 32 AS col0, ( 50 ) * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2 FROM tab0
----
61
NULL

query I rowsort
SELECT col0 FROM tab1 WHERE - + col2 > col1
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE 38 + + 98 < NULL
----

query I rowsort
SELECT ALL 13 * - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-182
-611
-65

query I rowsort
SELECT ALL + 9 - 80 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 IS NULL ) )
----

query I rowsort
SELECT 71 FROM tab1 AS cor0 WHERE ( + - col2 ) + - col2 IS NOT NULL
----
71
71
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7700
SELECT DISTINCT - MIN( + CAST( NULL AS SIGNED ) ), - 39 AS col2 FROM tab0 AS cor0
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-7700
SELECT DISTINCT - MIN ( + CAST ( NULL AS INTEGER ) ), - 39 AS col2 FROM tab0 AS cor0
----
NULL
-39

query I rowsort
SELECT + 1 + + col2 FROM tab0
----
100
11
48

query II rowsort
SELECT ALL + 14 AS col0, + 40 FROM tab2
----
14
40
14
40
14
40

query II rowsort
SELECT - col2 * - - 50 * + + col2, col2 FROM tab1
----
-174050
59
-231200
68
-460800
96

query I rowsort
SELECT ALL 47 + col2 AS col1 FROM tab0
----
146
57
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - SUM( - 43 ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-7705
SELECT - SUM ( - 43 ) FROM tab1
----
129

query I rowsort
SELECT + - 71 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + ( - - 69 ) ) IS NULL
----

query I rowsort
SELECT col2 / + 55 AS col1 FROM tab1 cor0 WHERE NOT - - col0 IS NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7709
SELECT + CAST( NULL AS SIGNED ) * 66 + + col0 * col0 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN CAST( NULL AS DECIMAL ) * - col1 AND col1
----

skipif mysql # not compatible
query I rowsort label-7709
SELECT + CAST ( NULL AS INTEGER ) * 66 + + col0 * col0 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN CAST ( NULL AS REAL ) * - col1 AND col1
----

query I rowsort
SELECT col2 - ( + - 92 ) AS col1 FROM tab1 AS cor0
----
151
160
188

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 ) AND NOT ( + + 80 ) BETWEEN - 54 AND ( NULL )
----

query I rowsort
SELECT 9 - + col0 AS col2 FROM tab1 AS cor0
----
-42
-76
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT ALL + col2 FROM tab1 WHERE NOT + col1 * + col0 - 18 <= + col1 - ( CAST( col2 AS SIGNED ) ) * col1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL + col2 FROM tab1 WHERE NOT + col1 * + col0 - 18 <= + col1 - ( CAST ( col2 AS INTEGER ) ) * col1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT DISTINCT + CAST( - ( + MAX( DISTINCT + col2 ) ) AS SIGNED ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT + CAST ( - ( + MAX ( DISTINCT + col2 ) ) AS INTEGER ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE col1 NOT BETWEEN NULL AND ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE col1 NOT BETWEEN NULL AND ( - col0 )
----
3

query I rowsort
SELECT ALL + col1 + + col0 * 72 + - col1 AS col2 FROM tab2
----
3312
4608
5400

query I rowsort
SELECT + col0 + - + ( col0 ) * + 92 AS col0 FROM tab1
----
-4641
-7735
-8281

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 IN ( 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * col1 FROM tab1 WHERE NOT ( col2 * - col0 * + 1 + - col2 + col0 ) NOT IN ( + col1 + col1 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 / 46 NOT BETWEEN ( + col2 + - 82 + - 46 ) AND ( + col1 * col1 )
----
51
67
77

query II rowsort
SELECT ALL - 2 AS col2, col2 AS col1 FROM tab0 cor0
----
-2
10
-2
47
-2
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7722
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 39 + - - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
103
114
85

query II rowsort
SELECT col2 AS col2, - ( - - col2 ) * + 58 - + ( - col2 ) FROM tab2 AS cor0
----
23
-1311
40
-2280
58
-3306

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 15 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT ALL col1 * + col1 AS col1 FROM tab1 AS cor0 WHERE ( col1 * - - col1 * + 9 * + - 71 ) <> col1 + CAST( - 12 + 61 AS SIGNED )
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL col1 * + col1 AS col1 FROM tab1 AS cor0 WHERE ( col1 * - - col1 * + 9 * + - 71 ) <> col1 + CAST ( - 12 + 61 AS INTEGER )
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL + + COUNT( - 72 ) * COUNT( + col0 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + + COUNT ( - 72 ) * COUNT ( + col0 ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7729
SELECT - 56 + COUNT( * ) DIV + COUNT( DISTINCT - + col2 ) col2 FROM tab1
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7729
SELECT - 56 + COUNT ( * ) / + COUNT ( DISTINCT - + col2 ) col2 FROM tab1
----
-55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - 58 IS NULL ) OR NOT NULL IS NULL
----

query I rowsort
SELECT 30 AS col0 FROM tab1 WHERE - ( + col1 ) BETWEEN ( - + 50 + - ( + + 25 ) * 39 ) AND ( col1 - 88 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7732
SELECT ALL 29 DIV SUM( DISTINCT + - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL 29 / SUM ( DISTINCT + - col2 ) FROM tab2
----
0

query II rowsort
SELECT - col0 - - col1 AS col0, - ( - col0 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT ALL + + col0, - col2 FROM tab0 cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT - 78 * + ( + - MAX( DISTINCT - col0 ) ) FROM tab2 cor0
----
-3588

skipif mysql # not compatible
query I rowsort label-7735
SELECT - 78 * + ( + - MAX ( DISTINCT - col0 ) ) FROM tab2 cor0
----
-3588

query I rowsort
SELECT ALL - + 11 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = + 16
----

query III rowsort
SELECT * FROM tab2 WHERE ( 7 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 8 * + + col1 + + col2 FROM tab1
----
-16
-308
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT DISTINCT COUNT( * ) + - - 22 AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT COUNT ( * ) + - - 22 AS col1 FROM tab1
----
25

query I rowsort
SELECT + col1 + 92 AS col2 FROM tab0 AS cor0
----
113
173
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL - 23 + + COUNT( * ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - 23 + + COUNT ( * ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT col1 + ( col1 ) * - col2 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT + COUNT( * ) + - 74 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7744
SELECT + COUNT ( * ) + - 74 FROM tab1 AS cor0
----
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 72 + - 76 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT + COUNT( ALL + 58 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7747
SELECT + COUNT ( ALL + 58 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT + ( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7751
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-7752
SELECT - 50 * MAX( - 94 ), + 84 AS col1 FROM tab2
----
4700
84

skipif mysql # not compatible
query II rowsort label-7752
SELECT - 50 * MAX ( - 94 ), + 84 AS col1 FROM tab2
----
4700
84

query I rowsort
SELECT DISTINCT col0 * + 77 * - 22 FROM tab2
----
-108416
-127050
-77924

onlyif mysql # DIV for integer division: 
query I rowsort label-7754
SELECT col0 DIV - + 13 FROM tab2
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-7754
SELECT col0 / - + 13 FROM tab2
----
-3
-4
-5

query I rowsort
SELECT + 80 * + 39 FROM tab1 AS cor0
----
3120
3120
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - SUM( - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7756
SELECT - SUM ( - col1 ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 57 col2 FROM tab1 cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7758
SELECT COUNT( * ) AS col0, - 96 FROM tab2
----
3
-96

skipif mysql # not compatible
query II rowsort label-7758
SELECT COUNT ( * ) AS col0, - 96 FROM tab2
----
3
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN ( col0 + col1 ) AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + col0
----

query II rowsort
SELECT ALL + + 48 * + + col0 AS col2, + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
2448
96
4080
59
4368
68

query I rowsort
SELECT - col1 * 26 AS col2 FROM tab2
----
-1326
-1742
-2002

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 < ( 15 ) * + 51
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7764
SELECT DISTINCT - + col0 AS col1, 97 DIV + 11 FROM tab1 AS cor0
----
-51
8
-85
8
-91
8

skipif mysql # not compatible
query II rowsort label-7764
SELECT DISTINCT - + col0 AS col1, 97 / + 11 FROM tab1 AS cor0
----
-51
8
-85
8
-91
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL col1 * - 16 * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-18768
-49280
-62176

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL col1 * - 16 * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-18768
-49280
-62176

query I rowsort
SELECT + - col1 * + col2 * - 68 AS col0 FROM tab0 AS cor0
----
14280
258876
6732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7768
SELECT - CAST( NULL AS SIGNED ) * - 80 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT - CAST ( NULL AS INTEGER ) * - 80 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT 21 * ( + + COUNT( * ) ) col2 FROM tab1
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7769
SELECT DISTINCT 21 * ( + + COUNT ( * ) ) col2 FROM tab1
----
63

query I rowsort
SELECT DISTINCT + 79 * + col0 AS col2 FROM tab0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT DISTINCT SUM( col0 ) + + COUNT( * ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT SUM ( col0 ) + + COUNT ( * ) FROM tab1
----
230

query II rowsort
SELECT + col0 + + col1 AS col0, + 81 FROM tab0
----
108
81
96
81
98
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7773
SELECT ALL CAST( NULL AS SIGNED ) + ( - col1 ) / + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL CAST ( NULL AS INTEGER ) + ( - col1 ) / + + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7775
SELECT ALL - - ( + - COUNT( * ) ) AS col0, + 18 AS col2 FROM tab1 AS cor0 WHERE NOT 99 * + col0 = NULL
----
0
18

skipif mysql # not compatible
query II rowsort label-7775
SELECT ALL - - ( + - COUNT ( * ) ) AS col0, + 18 AS col2 FROM tab1 AS cor0 WHERE NOT 99 * + col0 = NULL
----
0
18

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT ALL 58 AS col0, + SUM( + - col1 ) FROM tab1
----
58
-66

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL 58 AS col0, + SUM ( + - col1 ) FROM tab1
----
58
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT - SUM( DISTINCT + 50 ) + ( + + MIN( DISTINCT col0 ) ) AS col1 FROM tab0 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT - SUM ( DISTINCT + 50 ) + ( + + MIN ( DISTINCT col0 ) ) AS col1 FROM tab0 cor0
----
-35

query I rowsort
SELECT DISTINCT col0 + + + ( + 12 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col0, + col1 * - col1 * + - col2 AS col1 FROM tab2 AS cor0
----
-23
59823
-40
237160
-58
260362

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT + - COUNT( + + col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7781
SELECT + - COUNT ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 42 * col0 AS col2 FROM tab2 AS cor0
----
-1932
-2688
-3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7783
SELECT + - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT 37 >= col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT 37 >= col1
----
NULL
NULL
NULL

query II rowsort
SELECT - + col1, col1 AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT - SUM( DISTINCT + + 87 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT - SUM ( DISTINCT + + 87 ) FROM tab2
----
-87

query I rowsort
SELECT col0 * 18 AS col2 FROM tab1
----
1530
1638
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT DISTINCT CAST( + 90 AS SIGNED ) col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7787
SELECT DISTINCT CAST ( + 90 AS INTEGER ) col2 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT + COUNT( * ) * 67 FROM tab2 cor0
----
201

skipif mysql # not compatible
query I rowsort label-7788
SELECT + COUNT ( * ) * 67 FROM tab2 cor0
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT - - col0 DIV - + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-7789
SELECT - - col0 / - + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT + ( 51 ) * 84 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e645bcf3eaacb4981f40fbb4d570b108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT - CAST( NULL AS SIGNED ) + 82 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7791
SELECT - CAST ( NULL AS INTEGER ) + 82 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( + col2 ) AS col2 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + 18 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE + col0 * col1 / - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE + col0 * col1 / - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL COUNT( + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL COUNT ( + col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT + - MAX( col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT + - MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7797
SELECT + col0 * - + col0 + + col1 + - col2 + + - col0 * + + col1, + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-10641
58
-4434
23
-8987
40

skipif mysql # not compatible
query II rowsort label-7797
SELECT + col0 * - + col0 + + col1 + - col2 + + - col0 * + + col1, + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-10641
58
-4434
23
-8987
40

query I rowsort
SELECT + col1 / - col1 * col2 AS col1 FROM tab2 AS cor0 WHERE + 2 * + - col0 >= ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT - + MAX( + + col0 ) + - + 45 AS col2 FROM tab1 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-7799
SELECT - + MAX ( + + col0 ) + - + 45 AS col2 FROM tab1 AS cor0
----
-136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col2, - 80 FROM tab1 AS cor0
----
51
-80
85
-80
91
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7801
SELECT * FROM tab2 AS cor0 WHERE + col2 > - - CAST( + - CAST( - col1 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7801
SELECT * FROM tab2 AS cor0 WHERE + col2 > - - CAST ( + - CAST ( - col1 AS INTEGER ) AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7802
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7802
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT + col1 * + 73 FROM tab2 AS cor0
----
3723
4891
5621

query I rowsort
SELECT ALL - + col1 FROM tab2 cor0 WHERE 84 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col2 ) > col1 + col0 / + - col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT DISTINCT CAST( - + 11 AS SIGNED ) * + col1 * ( - col2 ) AS col0 FROM tab2
----
12903
33880
42746

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT CAST ( - + 11 AS INTEGER ) * + col1 * ( - col2 ) AS col0 FROM tab2
----
12903
33880
42746

query I rowsort
SELECT ALL 36 * - col0 FROM tab1
----
-1836
-3060
-3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7808
SELECT ALL col1 / CAST( NULL AS SIGNED ) + col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7808
SELECT ALL col1 / CAST ( NULL AS INTEGER ) + col2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - 28 AS col1 FROM tab2
----
18
36
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT DISTINCT 4 + 70 DIV + ( - + col1 ) FROM tab2
----
3
4

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT 4 + 70 / + ( - + col1 ) FROM tab2
----
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 53 col1 FROM tab0 AS cor0
----
53
53
53

query II rowsort
SELECT + ( - col2 ) AS col1, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7813
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col0 * CAST( NULL AS SIGNED ) + + 70, + col2 )
----

skipif mysql # not compatible
query III rowsort label-7813
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col0 * CAST ( NULL AS INTEGER ) + + 70, + col2 )
----

query II rowsort
SELECT + 40 * + col2 - + - col0 + col2 AS col1, - col1 + - 59 FROM tab1 AS cor0
----
2504
-64
2879
-106
3987
-73

query I rowsort
SELECT ( col1 ) - + - ( + ( + - 41 ) ) FROM tab2 AS cor0
----
10
26
36

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + col2 * - col1 - col2 IS NULL
----

query I rowsort
SELECT ALL + col0 + 34 FROM tab1
----
119
125
85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query IIIIII rowsort label-7818
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) NOT BETWEEN + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7818
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) NOT BETWEEN + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT DISTINCT + COUNT( * ) + 79 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT + COUNT ( * ) + 79 FROM tab0
----
82

query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-46

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 - 6 * + col0 BETWEEN + + col2 AND - col0 * - 18 + - col1 + - - col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT + COUNT( DISTINCT + 37 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7822
SELECT + COUNT ( DISTINCT + 37 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7823
SELECT DISTINCT + CAST( - + MIN( DISTINCT col2 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7823
SELECT DISTINCT + CAST ( - + MIN ( DISTINCT col2 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ( - col1 ) FROM tab1 cor0 WHERE NOT - col0 * - col2 < - col1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - 72 * col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 28 AS col1, col2 * + - col0 FROM tab2
----
-28
-1058
-28
-2560
-28
-4350

query II rowsort
SELECT ALL - col2, col2 + - 21 AS col0 FROM tab1
----
-59
38
-68
47
-96
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + 99 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col2 AS col0, col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT - col1 * + 83 AS col0 FROM tab0
----
-1743
-6723
-83

query I rowsort
SELECT 77 * 31 FROM tab1
----
2387
2387
2387

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7832
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7832
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT - - 19 * - + COUNT( * ) * + SUM( + 60 ) + - 53 FROM tab1 AS cor0
----
-10313

skipif mysql # not compatible
query I rowsort label-7833
SELECT - - 19 * - + COUNT ( * ) * + SUM ( + 60 ) + - 53 FROM tab1 AS cor0
----
-10313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7834
SELECT DISTINCT MAX( + - 62 ) + - - ( 80 ) + + + CAST( - CAST( MAX( - 56 ) AS SIGNED ) AS SIGNED ) + + COUNT( * ), 81 col0 FROM tab2
----
77
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7834
SELECT DISTINCT MAX ( + - 62 ) + - - ( 80 ) + + + CAST ( - CAST ( MAX ( - 56 ) AS INTEGER ) AS INTEGER ) + + COUNT ( * ), 81 col0 FROM tab2
----
77
81

query I rowsort
SELECT ALL col1 + 66 + 27 FROM tab1
----
107
140
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT 71 + + - MAX( - col2 ) AS col1 FROM tab1
----
130

skipif mysql # not compatible
query I rowsort label-7836
SELECT 71 + + - MAX ( - col2 ) AS col1 FROM tab1
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7837
SELECT + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7837
SELECT + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT + + 44 + - 27 * + - COUNT( * ) FROM tab2 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + + 44 + - 27 * + - COUNT ( * ) FROM tab2 AS cor0
----
125

query II rowsort
SELECT DISTINCT 76 + - col1 AS col0, col1 AS col2 FROM tab1 AS cor0
----
29
47
62
14
71
5

query II rowsort
SELECT 1 * - col0, + col0 FROM tab0 cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT DISTINCT COUNT( - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT COUNT ( - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 * - 48 AS col2 FROM tab0
----
-2256
-4752
-480

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 - + col2 <> + col0
----

query I rowsort
SELECT + col0 * - + 31 - + col1 * + 2 FROM tab0
----
-2739
-3009
-627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7845
SELECT ALL - 95 + col0 + - ( - - ( + - CAST( NULL AS SIGNED ) ) ) * + ( col0 ) + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL - 95 + col0 + - ( - - ( + - CAST ( NULL AS INTEGER ) ) ) * + ( col0 ) + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 / - 72 - + + col1, + col0 FROM tab0 WHERE - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - - 66 * col0 + - 73 + - 0 NOT IN ( + ( + 59 ), col1, + col0, - 79 )
----

query I rowsort
SELECT ALL - 12 * - 60 + col1 AS col0 FROM tab0 WHERE + col1 / + 66 + + col0 IS NOT NULL
----
721
741
801

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL OR NOT + col0 / + col2 - + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 * - col1 * + col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col2 - + 27 FROM tab0 AS cor0
----
-126
-37
-74

query I rowsort
SELECT DISTINCT - col2 * - - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT 60 * + 27 * - col0 / - 5 * - 71 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 91 AS col2, col2 AS col0 FROM tab0
----
91
10
91
47
91
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7858
SELECT DISTINCT + + COUNT( * ) AS col2, + COUNT( - - 22 ) * 96 AS col1 FROM tab1 AS cor0
----
3
288

skipif mysql # not compatible
query II rowsort label-7858
SELECT DISTINCT + + COUNT ( * ) AS col2, + COUNT ( - - 22 ) * 96 AS col1 FROM tab1 AS cor0
----
3
288

query I rowsort
SELECT ALL + col0 * + 68 AS col1 FROM tab2 AS cor0
----
3128
4352
5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7860
SELECT ( + - CAST( - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7860
SELECT ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT col1, - 69 AS col2 FROM tab0 AS cor0
----
1
-69
21
-69
81
-69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT DISTINCT - 48 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT - 48 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 22 + - 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - ( - 74 ) ) FROM tab2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT DISTINCT CAST( col1 AS SIGNED ) * + 75 + - + col0 * + 49 FROM tab2
----
1350
1571
2639

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + 75 + - + col0 * + 49 FROM tab2
----
1350
1571
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - ( + - MAX( ALL - 14 ) ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-7867
SELECT - ( + - MAX ( ALL - 14 ) ) FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL MIN( DISTINCT + ( + col0 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL MIN ( DISTINCT + ( + col0 ) ) AS col1 FROM tab2
----
46

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT - 97 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-7870
SELECT - 97 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 12 NOT BETWEEN 90 AND - col1 / - - col1 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 72 + 18 + + - ( + col1 ) AS col2 FROM tab1
----
43
76
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7873
SELECT DISTINCT col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + COUNT( * ) + - MAX( ALL - 84 ) AS col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7874
SELECT + COUNT ( * ) + - MAX ( ALL - 84 ) AS col2 FROM tab0 AS cor0
----
87

query II rowsort
SELECT ALL + col0 + + 28 + - col1, + col1 AS col0 FROM tab2 AS cor0
----
15
77
23
51
36
67

query I rowsort
SELECT ALL - col1 * - col1 + + 44 AS col1 FROM tab2 AS cor0
----
2645
4533
5973

query I rowsort
SELECT - 73 + + col0 AS col1 FROM tab1 AS cor0
----
-22
12
18

query I rowsort
SELECT - 40 + - + ( - + 29 ) FROM tab2 cor0
----
-11
-11
-11

query I rowsort
SELECT - col2 + - - 11 FROM tab0 AS cor0
----
-36
-88
1

query I rowsort
SELECT 93 AS col1 FROM tab0 cor0 WHERE - col0 NOT BETWEEN NULL AND + ( + - col1 )
----
93

query I rowsort
SELECT - 29 + - + col1 AS col0 FROM tab2 cor0
----
-106
-80
-96

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 <= 97
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 36 * + - col2 col0 FROM tab2 WHERE col1 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT DISTINCT SUM( ALL - 66 ) FROM tab0, tab0 AS cor0
----
-594

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT SUM ( ALL - 66 ) FROM tab0, tab0 AS cor0
----
-594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) + - + col2 col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT 96 - - COUNT( * ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7887
SELECT 96 - - COUNT ( * ) AS col0 FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = 65 * + col0
----

query I rowsort
SELECT ALL + col0 + + + col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT - - col2 - + - 36 FROM tab1 AS cor0
----
104
132
95

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 cor0 WHERE - col0 * - + col2 BETWEEN 78 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT - ( - MIN( + col0 ) ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT - ( - MIN ( + col0 ) ) AS col2 FROM tab2 cor0
----
46

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 80 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + + col2 * - col2 AS col0, col2 * + col0 col0 FROM tab2
----
-102400
2560
-24334
1058
-252300
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT + col0 DIV col0 * + + ( 74 ) * col2 col0 FROM tab2
----
1702
2960
4292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7896
SELECT + col0 / col0 * + + ( 74 ) * col2 col0 FROM tab2
----
1702
2960
4292

query I rowsort
SELECT 50 * col0 - + col0 AS col0 FROM tab0 AS cor0
----
4263
4753
735

query I rowsort
SELECT + 9 AS col1 FROM tab1 cor0
----
9
9
9

query II rowsort
SELECT ALL - col2 * + ( col0 ) AS col2, col0 FROM tab0 AS cor0
----
-705
15
-870
87
-9603
97

query I rowsort
SELECT DISTINCT + 92 * - col0 * + - ( - col2 ) + + + col0 AS col1 FROM tab2
----
-235456
-400125
-97290

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT COUNT( * ) * + - COUNT( DISTINCT col1 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT COUNT ( * ) * + - COUNT ( DISTINCT col1 ) FROM tab2
----
-9

query II rowsort
SELECT col1 AS col0, 68 AS col0 FROM tab0
----
1
68
21
68
81
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7903
SELECT - ( - - 93 ) DIV col0 + - ( - col2 ) FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-7903
SELECT - ( - - 93 ) / col0 + - ( - col2 ) FROM tab1
----
58
67
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT ALL + col2 DIV - 18 FROM tab0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL + col2 / - 18 FROM tab0
----
-2
-5
0

query I rowsort
SELECT - + 1 + + col0 FROM tab0 WHERE - col1 + ( + - col0 ) + - col1 = + 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT ALL col2 + - 64 AS col2 FROM tab0 AS cor0
----
-17
-54
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT 23 * COUNT( * ) * - - 56 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7909
SELECT 23 * COUNT ( * ) * - - 56 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL 25 - col2 AS col1 FROM tab1 AS cor0
----
-34
-43
-71

query I rowsort
SELECT DISTINCT col1 * + - 34 * - + 2 AS col1 FROM tab2
----
3468
4556
5236

query I rowsort
SELECT ALL + ( col0 ) - + col2 * col0 AS col1 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT 91 + - col2 AS col1 FROM tab0
----
-8
44
81

query I rowsort
SELECT - col1 + - - col1 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 + 72 + + col0 AS col1 FROM tab2
----
164
200
222

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7917
SELECT DISTINCT - col0 + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT - col0 + + - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + 0 + + 95 FROM tab0
----
95
95
95

query I rowsort
SELECT ALL - ( + 71 ) FROM tab1
----
-71
-71
-71

query III rowsort
SELECT * FROM tab1 WHERE + + ( + col0 ) IN ( - 18 - - + col1, + 42 - - col2, + + col1 + ( - + col2 ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT DISTINCT COUNT( DISTINCT - 66 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT COUNT ( DISTINCT - 66 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7922
SELECT DISTINCT + col2 + CAST( - 64 AS SIGNED ) AS col0, col0 + - col1 FROM tab0 AS cor0 WHERE 81 = + + col1
----
-17
-66

skipif mysql # not compatible
query II rowsort label-7922
SELECT DISTINCT + col2 + CAST ( - 64 AS INTEGER ) AS col0, col0 + - col1 FROM tab0 AS cor0 WHERE 81 = + + col1
----
-17
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + + col0 / col2 - - 10 + - ( + col2 ) BETWEEN 28 + - - 32 + - 59 * + + 31 AND - ( 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + COUNT( * ) * + 51 AS col1 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7924
SELECT + COUNT ( * ) * + 51 AS col1 FROM tab1 AS cor0
----
153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - - col0 * col2 + col2 * col0 IS NOT NULL
----

query I rowsort
SELECT + + ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + 9 AS col0 FROM tab2 cor0
----
-9
-9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7928
SELECT - - col2 DIV + 83 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7928
SELECT - - col2 / + 83 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT DISTINCT COUNT( ALL + + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT COUNT ( ALL + + col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL col0 + col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT - ( + COUNT( * ) ) * - 37 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT - ( + COUNT ( * ) ) * - 37 FROM tab0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT ( + + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-7932
SELECT ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7933
SELECT ALL + col1 DIV col0 + + col0 AS col0, + col0 + 65 col1 FROM tab0
----
20
80
87
152
97
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7933
SELECT ALL + col1 / col0 + + col0 AS col0, + col0 + 65 col1 FROM tab0
----
20
80
87
152
97
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 8 col1 FROM tab2 WHERE - - col1 + - - 93 * + - ( + col1 ) IS NOT NULL
----
8
8
8

query I rowsort
SELECT DISTINCT col0 + 69 FROM tab1
----
120
154
160

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + 78
----

query I rowsort
SELECT ALL 45 + + 34 FROM tab1
----
79
79
79

query I rowsort
SELECT + 94 AS col2 FROM tab2 cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + 61 * - col2 col1 FROM tab1 AS cor0
----
212341
282064
562176

query I rowsort
SELECT + col2 * - - 13 + - col2 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 < col2 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - + col0, - col1 - + + 57 + - 13 + col0 AS col1 FROM tab1 AS cor0
----
-51
-33
-85
10
-91
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + - + col0 col1 FROM tab1
----
-23
-29
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT ALL + col1 - + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT - SUM( ALL - - 20 ) + - 72 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-7947
SELECT - SUM ( ALL - - 20 ) + - 72 FROM tab1 AS cor0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7948
SELECT col2 + - - 7 + + CAST( NULL AS SIGNED ) + - ( col2 ) * + 2 AS col1, + 47 AS col1 FROM tab2 AS cor0
----
NULL
47
NULL
47
NULL
47

skipif mysql # not compatible
query II rowsort label-7948
SELECT col2 + - - 7 + + CAST ( NULL AS INTEGER ) + - ( col2 ) * + 2 AS col1, + 47 AS col1 FROM tab2 AS cor0
----
NULL
47
NULL
47
NULL
47

query I rowsort
SELECT ALL + 89 + ( - col2 ) FROM tab1 AS cor0
----
-7
21
30

query I rowsort
SELECT col2 + + - 10 * + col0 AS col1 FROM tab2 AS cor0
----
-437
-600
-692

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7951
SELECT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 5 col1 FROM tab1 AS cor0
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL + 35 * COUNT( * ) col0 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7953
SELECT ALL + 35 * COUNT ( * ) col0 FROM tab2 AS cor0
----
105

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + 32 >= + 38 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col1 * - col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col0
----

query II rowsort
SELECT - col0 * col2 AS col2, ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-4896
-14
-5015
-5
-6188
-47

query I rowsort
SELECT + ( - 31 ) FROM tab2 AS cor0
----
-31
-31
-31

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 60 >= + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7960
SELECT ALL - COUNT( * ) DIV 32 AS col2, ( 22 ) AS col0 FROM tab0
----
0
22

skipif mysql # not compatible
query II rowsort label-7960
SELECT ALL - COUNT ( * ) / 32 AS col2, ( 22 ) AS col0 FROM tab0
----
0
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col0 FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7962
SELECT ALL - col1 DIV 35 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL - col1 / 35 FROM tab1
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT col0 DIV 1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7964
SELECT col0 / 1 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-7965
SELECT DISTINCT - + col0 DIV + col0 AS col1, - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-100
-1
-2209
-1
-9801

skipif mysql # not compatible
query II rowsort label-7965
SELECT DISTINCT - + col0 / + col0 AS col1, - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-100
-1
-2209
-1
-9801

query II rowsort
SELECT ALL col0, 86 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
86
87
86
97
86

query I rowsort
SELECT DISTINCT 16 + + col2 FROM tab0 AS cor0 WHERE ( NULL ) <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT DISTINCT - + 98 + COUNT( * ) AS col1 FROM tab2 WHERE NOT col2 IS NULL
----
-95

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT - + 98 + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col2 IS NULL
----
-95

query II rowsort
SELECT col0 AS col0, + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT ALL - + col0, ( - 84 ) AS col1 FROM tab2 AS cor0
----
-46
-84
-64
-84
-75
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7971
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col1 + col1 * + col2 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7971
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col1 + col1 * + col2 / - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7972
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) <= ( + + 52 )
----

skipif mysql # not compatible
query III rowsort label-7972
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) <= ( + + 52 )
----

query II rowsort
SELECT 56, col2 AS col2 FROM tab1 AS cor0
----
56
59
56
68
56
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT - col1 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7974
SELECT - col1 / + - col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - + 33 - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7976
SELECT DISTINCT CAST( + ( + col2 ) AS SIGNED ) * col0 AS col2, - ( - col1 ) FROM tab2
----
1058
51
2560
77
4350
67

skipif mysql # not compatible
query II rowsort label-7976
SELECT DISTINCT CAST ( + ( + col2 ) AS INTEGER ) * col0 AS col2, - ( - col1 ) FROM tab2
----
1058
51
2560
77
4350
67

query I rowsort
SELECT DISTINCT + col1 + 16 + + ( - col1 ) AS col2 FROM tab0
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7978
SELECT - + 31 * CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT - + 31 * CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + 6 col1, col1 col0 FROM tab0 cor0
----
103
1
21
81
93
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7980
SELECT - 17 + + MIN( ALL + col2 ) + - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
39
NULL

skipif mysql # not compatible
query II rowsort label-7980
SELECT - 17 + + MIN ( ALL + col2 ) + - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
39
NULL

query I rowsort
SELECT DISTINCT col0 + - col1 + - - col1 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL + col1 + col2 * + 48 - + col1 AS col2 FROM tab2 AS cor0
----
1104
1920
2784

query I rowsort
SELECT ALL - col2 - - col0 + col0 AS col1 FROM tab1 AS cor0
----
111
114
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT - MIN( ALL col0 ) + + COUNT( ALL - col1 ) * + - COUNT( * ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7984
SELECT - MIN ( ALL col0 ) + + COUNT ( ALL - col1 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL - col2 * + 86 AS col2 FROM tab0 AS cor0
----
-4042
-8514
-860

query I rowsort
SELECT ALL + - ( - - col1 ) * - 96 - - + col0 FROM tab0 AS cor0
----
193
2103
7791

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7987
SELECT DISTINCT - - col2 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT - - col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 18 BETWEEN NULL AND + col1
----

query II rowsort
SELECT ALL col1, col2 AS col1 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7990
SELECT ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT ( CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7991
SELECT 85 AS col1, - SUM( ALL - + 42 ) AS col0 FROM tab2
----
85
126

skipif mysql # not compatible
query II rowsort label-7991
SELECT 85 AS col1, - SUM ( ALL - + 42 ) AS col0 FROM tab2
----
85
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL - SUM( col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - SUM ( col0 ) AS col0 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT 13 * - col0 FROM tab1
----
-1105
-1183
-663

onlyif mysql # aggregate syntax: 
query II rowsort label-7994
SELECT + 60 AS col2, 56 * + - COUNT( * ) + + + MAX( ALL + 60 ) AS col1 FROM tab2
----
60
-108

skipif mysql # not compatible
query II rowsort label-7994
SELECT + 60 AS col2, 56 * + - COUNT ( * ) + + + MAX ( ALL + 60 ) AS col1 FROM tab2
----
60
-108

query II rowsort
SELECT ALL - 58, - ( col1 ) AS col1 FROM tab0
----
-58
-1
-58
-21
-58
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT DISTINCT + - MIN( col2 ) * 40 FROM tab0 cor0
----
-400

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT + - MIN ( col2 ) * 40 FROM tab0 cor0
----
-400

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT col0 * - + 23 FROM tab1 AS cor0
----
-1173
-1955
-2093

query I rowsort
SELECT DISTINCT + - 70 FROM tab1 AS cor0 WHERE NULL <> col0 * - 45
----

query I rowsort
SELECT ALL col1 * - ( + 80 ) AS col1 FROM tab1 AS cor0
----
-1120
-3760
-400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col0 FROM tab2 cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT - COUNT( + col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8002
SELECT - COUNT ( + col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT DISTINCT CAST( 18 AS SIGNED ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT CAST ( 18 AS INTEGER ) AS col0 FROM tab0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 26 col1 FROM tab0
----
113
123
41

query I rowsort
SELECT DISTINCT 69 * 83 AS col0 FROM tab2 AS cor0
----
5727

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT + COUNT( * ) + + + 11 col2 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8006
SELECT + COUNT ( * ) + + + 11 col2 FROM tab2 AS cor0
----
14

query I rowsort
SELECT 99 + + + col0 FROM tab1 AS cor0
----
150
184
190

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT - + COUNT( * ) + 8 + 73 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8009
SELECT - + COUNT ( * ) + 8 + 73 FROM tab0 AS cor0
----
78

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE 78 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT MAX( DISTINCT + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT MAX ( DISTINCT + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8012
SELECT ALL 47 + - CAST( col1 AS SIGNED ) + col0 FROM tab0
----
-19
113
143

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL 47 + - CAST ( col1 AS INTEGER ) + col0 FROM tab0
----
-19
113
143

query I rowsort
SELECT ALL + col0 + + + col2 AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab2 WHERE NULL IS NULL
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col1 FROM tab1
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8016
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 * - 71 + - + col0 FROM tab1
----
-1045
-3428
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - MAX( ( - ( + 53 ) ) ) AS col0 FROM tab2 cor0
----
53

skipif mysql # not compatible
query I rowsort label-8018
SELECT - MAX ( ( - ( + 53 ) ) ) AS col0 FROM tab2 cor0
----
53

query II rowsort
SELECT DISTINCT ( + col0 ) + + - col2 + - + col2, col1 + - col0 AS col2 FROM tab0 AS cor0
----
-101
-96
-79
66
67
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-8020
SELECT ALL - - ( - 77 ) DIV - + 67 + col2, 18 AS col0 FROM tab2 AS cor0
----
24
18
41
18
59
18

skipif mysql # not compatible
query II rowsort label-8020
SELECT ALL - - ( - 77 ) / - + 67 + col2, 18 AS col0 FROM tab2 AS cor0
----
24
18
41
18
59
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT - - MAX( ALL col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT - - MAX ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
96

query II rowsort
SELECT ALL - col1, - col1 AS col0 FROM tab0 cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT DISTINCT COUNT( + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT COUNT ( + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8024
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT ( MIN( ALL 20 ) ) AS col1 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT ( MIN ( ALL 20 ) ) AS col1 FROM tab0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT ALL + col1 - - CAST( NULL AS SIGNED ) 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-8027
SELECT ALL + col1 - - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT 45 * - SUM( ALL + - col0 ) FROM tab2 AS cor0
----
8325

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT 45 * - SUM ( ALL + - col0 ) FROM tab2 AS cor0
----
8325

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + - col1 * - + col0 + - + col2 + 13 * + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT ALL + CAST( NULL AS SIGNED ) * + CAST( 79 AS SIGNED ) + - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL + CAST ( NULL AS INTEGER ) * + CAST ( 79 AS INTEGER ) + - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8031
SELECT ALL + 62 DIV - col0, col0 AS col1 FROM tab1 AS cor0
----
-1
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-8031
SELECT ALL + 62 / - col0, col0 AS col1 FROM tab1 AS cor0
----
-1
51
0
85
0
91

query I rowsort
SELECT ALL + col2 * + - ( - col1 ) FROM tab0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 2 col1 FROM tab1
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col1 * + - 77, col1 + - col0 * 77 col1 FROM tab1
----
15092
-3913
170093
-6960
1925
-6540

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL 58 * + + COUNT( * ) col0 FROM tab0
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8035
SELECT ALL 58 * + + COUNT ( * ) col0 FROM tab0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ALL + 90 * - COUNT( * ) FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL + 90 * - COUNT ( * ) FROM tab2 AS cor0
----
-270

query I rowsort
SELECT ALL col2 * - 14 FROM tab0 AS cor0
----
-1386
-140
-658

query I rowsort
SELECT ALL + - 77 AS col0 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT ALL col0 DIV + 28 AS col0 FROM tab2 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL col0 / + 28 AS col0 FROM tab2 cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT col1 IS NULL
----
51
67
77

query I rowsort
SELECT + 10 + - - 39 + - + 44 AS col1 FROM tab1
----
5
5
5

query I rowsort
SELECT + ( 91 ) * 72 FROM tab2
----
6552
6552
6552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8044
SELECT CAST( + 93 AS SIGNED ) FROM tab2
----
93
93
93

skipif mysql # not compatible
query I rowsort label-8044
SELECT CAST ( + 93 AS INTEGER ) FROM tab2
----
93
93
93

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL MAX( + 31 ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL MAX ( + 31 ) FROM tab2 AS cor0
----
31

query II rowsort
SELECT + 81 * + 32, + 48 AS col1 FROM tab2 cor0 WHERE - col2 IS NOT NULL
----
2592
48
2592
48
2592
48

query II rowsort
SELECT DISTINCT 95, col0 FROM tab1 cor0
----
95
51
95
85
95
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL SUM( ALL col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL SUM ( ALL col0 ) FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col0 ) col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT ALL + MIN( + 29 ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL + MIN ( + 29 ) FROM tab1
----
29

query I rowsort
SELECT - col2 + - ( col0 ) - + col2 * + col0 FROM tab2
----
-1127
-2664
-4483

query II rowsort
SELECT + col0 + 18 AS col1, col1 FROM tab1
----
103
5
109
47
69
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT ( - COUNT( * ) ) AS col0 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND ( + - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-8056
SELECT ( - COUNT ( * ) ) AS col0 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND ( + - col0 )
----
-3

query I rowsort
SELECT DISTINCT + ( 88 ) + col1 * + col1 FROM tab2
----
2689
4577
6017

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - + 59 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT ALL - col0 + - col2 DIV col2 - + col2 AS col0 FROM tab1 AS cor0
----
-145
-148
-160

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - col0 + - col2 / col2 - + col2 AS col0 FROM tab1 AS cor0
----
-145
-148
-160

query I rowsort
SELECT DISTINCT - + col2 - + - col1 AS col2 FROM tab0 cor0
----
-98
11
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT DISTINCT - COUNT( * ) + 40 - - 16 DIV + MIN( ALL - - ( + ( - + col0 ) ) ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT - COUNT ( * ) + 40 - - 16 / + MIN ( ALL - - ( + ( - + col0 ) ) ) FROM tab0 AS cor0
----
37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 80 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT col0 DIV ( - ( col1 ) ) - - 66 FROM tab1
----
49
63
65

skipif mysql # not compatible
query I rowsort label-8063
SELECT col0 / ( - ( col1 ) ) - - 66 FROM tab1
----
49
63
65

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT 10 + + col0 > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 33 * + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT DISTINCT + - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT + - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col0 FROM tab0 AS cor0
----
8
8
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 AS col1, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col0, + col1 AS col1 FROM tab1 cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT - col1 AS col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN - CAST( + - 92 AS SIGNED ) AND + col1 * + 32 / col2 * - + ( ( - col0 ) ) + + 59 / + col2 + + - 97
----

skipif mysql # not compatible
query I rowsort label-8074
SELECT - col1 AS col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN - CAST ( + - 92 AS INTEGER ) AND + col1 * + 32 / col2 * - + ( ( - col0 ) ) + + 59 / + col2 + + - 97
----

query I rowsort
SELECT DISTINCT - 36 * + col2 AS col1 FROM tab2
----
-1440
-2088
-828

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 36 <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 >= NULL
----

query II rowsort
SELECT ALL col2 * - - col1 AS col2, - col2 FROM tab1
----
1344
-96
295
-59
3196
-68

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 76 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8081
SELECT 89 * + COUNT( * ), 24 AS col0 FROM tab1 AS cor0
----
267
24

skipif mysql # not compatible
query II rowsort label-8081
SELECT 89 * + COUNT ( * ), 24 AS col0 FROM tab1 AS cor0
----
267
24

query I rowsort
SELECT col2 * + - col2 AS col2 FROM tab0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 29 IS NOT NULL
----

query I rowsort
SELECT ALL + + 80 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT 10 + + + col0 AS col0 FROM tab0 AS cor0
----
107
25
97

query I rowsort
SELECT DISTINCT - col0 * - col1 + col1 + - col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT - + MAX( DISTINCT - 96 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT - + MAX ( DISTINCT - 96 ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT - ( - + 3 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col1 * col0 FROM tab0 AS cor0 WHERE + 56 IS NULL
----

query I rowsort
SELECT - 89 + - 16 + col2 * + + col1 + + 45 - 99 + - + col2 FROM tab0 AS cor0
----
-159
3601
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 * - 29 IS NOT NULL
----

query I rowsort
SELECT - 86 * - col0 FROM tab1
----
4386
7310
7826

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + col0 + + col1 - - 10 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL - 12 * + + 19 + COUNT( * ) AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL - 12 * + + 19 + COUNT ( * ) AS col0 FROM tab2
----
-225

query I rowsort
SELECT DISTINCT ( 19 ) FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL MIN( - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL MIN ( - col0 ) AS col0 FROM tab1
----
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 / + ( - + col2 ) / + - ( - - col2 ) - - col0 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 41 >= NULL
----

query II rowsort
SELECT col2, + col2 * - col1 AS col2 FROM tab2
----
23
-1173
40
-3080
58
-3886

query III rowsort
SELECT * FROM tab0 WHERE - col0 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8103
SELECT ALL * FROM tab0 WHERE NOT ( - - CAST( + col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8103
SELECT ALL * FROM tab0 WHERE NOT ( - - CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + + 36 AS col0 FROM tab0
----
-51
-61
21

query I rowsort
SELECT DISTINCT - - 30 FROM tab0 AS cor0
----
30

query II rowsort
SELECT ALL - ( - 94 ) AS col1, 80 FROM tab2 AS cor0
----
94
80
94
80
94
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 86 col0 FROM tab1 AS cor0
----
-86
-86
-86

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 - col1 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 34 AS col1, - 65 FROM tab2
----
34
-65
34
-65
34
-65

query I rowsort
SELECT - 50 * col1 AS col2 FROM tab1
----
-2350
-250
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT CAST( + 77 AS SIGNED ) AS col2 FROM tab2
----
77
77
77

skipif mysql # not compatible
query I rowsort label-8111
SELECT CAST ( + 77 AS INTEGER ) AS col2 FROM tab2
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT + COUNT( - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT + COUNT ( - col1 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT + 39 AS col0 FROM tab1 cor0 WHERE NOT col2 * + 92 IS NULL
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col2 FROM tab2 AS cor0
----
43
43
43

query II rowsort
SELECT ALL + col0, - 74 + 5 AS col1 FROM tab1 cor0
----
51
-69
85
-69
91
-69

query I rowsort
SELECT ALL - 75 + - 2 + - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ( MIN( col1 ) ) * + COUNT( DISTINCT + col0 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8117
SELECT ( MIN ( col1 ) ) * + COUNT ( DISTINCT + col0 ) FROM tab1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8118
SELECT ( COUNT( * ) ) * MIN( 67 DIV col0 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8118
SELECT ( COUNT ( * ) ) * MIN ( 67 / col0 ) col1 FROM tab0
----
0

query I rowsort
SELECT 99 + 28 AS col0 FROM tab2
----
127
127
127

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab2 WHERE ( col1 * col0 + col0 ) = ( + 39 * - 20 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL + COUNT( * ) * MIN( ALL + col0 ) AS col2 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL + COUNT ( * ) * MIN ( ALL + col0 ) AS col2 FROM tab1
----
153

query I rowsort
SELECT ALL + 31 * 27 FROM tab1
----
837
837
837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8123
SELECT MIN( DISTINCT - 82 ) + CAST( 87 AS SIGNED ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8123
SELECT MIN ( DISTINCT - 82 ) + CAST ( 87 AS INTEGER ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT DISTINCT SUM( + 59 ) FROM tab2 WHERE NOT col2 <> 33 * + 50 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT SUM ( + 59 ) FROM tab2 WHERE NOT col2 <> 33 * + 50 + - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 42 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8126
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN ( NULL ) AND CAST( NULL AS DECIMAL ) * - 1 + - col1
----

skipif mysql # not compatible
query III rowsort label-8126
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN ( NULL ) AND CAST ( NULL AS REAL ) * - 1 + - col1
----

query I rowsort
SELECT + col0 * - col2 FROM tab1 WHERE ( - col0 ) NOT IN ( 20 )
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + 72 * - 26 FROM tab0
----
-1872
-1872
-1872

query III rowsort
SELECT * FROM tab1 WHERE NOT 92 <= NULL
----

query I rowsort
SELECT ( 4 ) AS col2 FROM tab2
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8132
SELECT ALL 61 DIV - col1 FROM tab1
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL 61 / - col1 FROM tab1
----
-1
-12
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8133
SELECT ALL - CAST( + col0 AS SIGNED ) - + 80 DIV - 3 AS col2 FROM tab2
----
-20
-38
-49

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL - CAST ( + col0 AS INTEGER ) - + 80 / - 3 AS col2 FROM tab2
----
-20
-38
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT + 25 - COUNT( * ) AS col2 FROM tab0 WHERE ( + 99 ) IS NOT NULL
----
22

skipif mysql # not compatible
query I rowsort label-8134
SELECT + 25 - COUNT ( * ) AS col2 FROM tab0 WHERE ( + 99 ) IS NOT NULL
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8135
SELECT MAX( ALL col1 ) DIV 41 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8135
SELECT MAX ( ALL col1 ) / 41 AS col2 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col2 * col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col0 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 - - col2 AS col1 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT ALL CAST( NULL AS SIGNED ) * + 57 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL CAST ( NULL AS INTEGER ) * + 57 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 1 * - col2 AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL - COUNT( 98 ) FROM tab2 WHERE + col0 + 37 <= ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL - COUNT ( 98 ) FROM tab2 WHERE + col0 + 37 <= ( col0 )
----
0

query I rowsort
SELECT 44 * 77 AS col2 FROM tab2
----
3388
3388
3388

query I rowsort
SELECT DISTINCT - col1 * 50 AS col2 FROM tab0
----
-1050
-4050
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8145
SELECT DISTINCT 38 DIV + 38 - col2 AS col0 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT 38 / + 38 - col2 AS col0 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT ALL - ( 95 ) * - col2 - + 49 * 55 FROM tab2 AS cor0
----
-510
1105
2815

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab0 AS cor0 WHERE ( col2 * 88 ) BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL MAX( - 86 ) AS col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL MAX ( - 86 ) AS col0 FROM tab1 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 * - 9 col2 FROM tab2 AS cor0 WHERE NOT + 4 * - col1 >= ( + col2 )
----
-639
-639
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT MAX( + 42 ) AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-8150
SELECT MAX ( + 42 ) AS col0 FROM tab2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8151
SELECT ALL CAST( 32 AS SIGNED ) col1 FROM tab0
----
32
32
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8151
SELECT ALL CAST ( 32 AS INTEGER ) col1 FROM tab0
----
32
32
32

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT + 91 DIV col2 FROM tab2 WHERE NOT col1 IS NULL
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8153
SELECT + 91 / col2 FROM tab2 WHERE NOT col1 IS NULL
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - + 59 * COUNT( * ) AS col0 FROM tab0 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-8154
SELECT - + 59 * COUNT ( * ) AS col0 FROM tab0 cor0
----
-177

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * - ( - col0 ) NOT BETWEEN NULL AND + 8
----

query I rowsort
SELECT DISTINCT ( 28 ) AS col1 FROM tab2 AS cor0
----
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / - col0 + + col0 FROM tab2 cor0 WHERE NOT col1 BETWEEN col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - col0 + + col0 FROM tab2 cor0 WHERE NOT col1 BETWEEN col0 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + MIN( DISTINCT + col2 ) FROM tab0 WHERE NOT - col0 + + col2 IN ( col1 )
----
10

skipif mysql # not compatible
query I rowsort label-8161
SELECT + MIN ( DISTINCT + col2 ) FROM tab0 WHERE NOT - col0 + + col2 IN ( col1 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT MAX( ALL - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8162
SELECT MAX ( ALL - col2 ) FROM tab0
----
-10

query III rowsort
SELECT ALL * FROM tab0 WHERE + 4 BETWEEN NULL AND ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 41 + + - 80 FROM tab1
----
-121
-121
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT ALL + 14 DIV + col0 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL + 14 / + col0 + col0 FROM tab1
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + - col0 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8168
SELECT col2 DIV - CAST( + 51 AS SIGNED ) + + col0 FROM tab2 cor0
----
46
64
74

skipif mysql # not compatible
query I rowsort label-8168
SELECT col2 / - CAST ( + 51 AS INTEGER ) + + col0 FROM tab2 cor0
----
46
64
74

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 > 31
----

query I rowsort
SELECT DISTINCT - 95 + 19 + + 38 FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT + COUNT( * ) * 74 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-8171
SELECT + COUNT ( * ) * 74 FROM tab1 AS cor0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL - - SUM( + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL - - SUM ( + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8173
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT - 61 AS col1 FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL >= - 89 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + 77 AS col1 FROM tab1 WHERE - col1 * - 71 BETWEEN + col0 - col0 AND col2 + + col0 * col1
----
77
77

query I rowsort
SELECT DISTINCT col0 * ( - + col1 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8177
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query IIIIII rowsort label-8177
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = ( NULL )
----

query I rowsort
SELECT ALL - - 44 + 67 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0085b5b605f50e9a12a763af4b7ec627

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * + col1 NOT BETWEEN ( + col2 ) AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * - ( + - 56 ) AS col2 FROM tab2
----
-2576
-3584
-4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT DISTINCT + - col1 + - col2 / - - ( col0 ) * + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8181
SELECT DISTINCT + - col1 + - col2 / - - ( col0 ) * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 BETWEEN - 69 AND 32 - - col0
----
3

skipif mysql # not compatible
query I rowsort label-8182
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 BETWEEN - 69 AND 32 - - col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT - COUNT( * ) + - + 42 col2 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8183
SELECT - COUNT ( * ) + - + 42 col2 FROM tab1 AS cor0
----
-45

query I rowsort
SELECT ALL col1 + + col0 FROM tab0 cor0 WHERE ( - 79 * - col0 - 25 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT - + COUNT( * ) DIV - COUNT( * ) + + 14 + + 77 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8185
SELECT - + COUNT ( * ) / - COUNT ( * ) + + 14 + + 77 FROM tab2 AS cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8186
SELECT DISTINCT - col0 * - col0 * 89 + - col1 DIV col2 FROM tab1 AS cor0
----
231489
643025
737009

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT - col0 * - col0 * 89 + - col1 / col2 FROM tab1 AS cor0
----
231489
643025
737009

query I rowsort
SELECT + 84 + + + col1 AS col2 FROM tab1 AS cor0
----
131
89
98

query I rowsort
SELECT DISTINCT + 81 * + col2 - col0 * + 56 FROM tab0 AS cor0
----
-4062
2587
2967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 69 col1 FROM tab1 cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8190
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST( + col0 AS SIGNED ) ) IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8190
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST ( + col0 AS INTEGER ) ) IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( - - 67 + - 86 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8193
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) - + 51 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + 51 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT DISTINCT COUNT( * ) * + 41, MIN( DISTINCT col0 ) AS col2 FROM tab1
----
123
51

skipif mysql # not compatible
query II rowsort label-8194
SELECT DISTINCT COUNT ( * ) * + 41, MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
123
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND col2 * 30 AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 - + 83 FROM tab1
----
-15
-24
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT DISTINCT MIN( + + 5 ) AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT MIN ( + + 5 ) AS col2 FROM tab0
----
5

query I rowsort
SELECT + 54 * + col1 - + col2 FROM tab1
----
211
2470
660

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 20 IS NOT NULL
----

query I rowsort
SELECT - col2 + - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT + MIN( ALL + col0 ) DIV COUNT( * ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-8202
SELECT + MIN ( ALL + col0 ) / COUNT ( * ) FROM tab0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT DISTINCT + - ( col1 ) DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT + - ( col1 ) / col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * + 74 AS col1 FROM tab2 AS cor0
----
-3774
-4958
-5698

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 18 NOT IN ( - col2, col1 * - - 16 * ( col1 ) )
----

query I rowsort
SELECT + ( + ( col0 ) ) FROM tab2 AS cor0 WHERE NOT 33 IS NOT NULL
----

query I rowsort
SELECT 51 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
51
51

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col2 ) IS NOT NULL
----

query II rowsort
SELECT col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= + col2
----

query I rowsort
SELECT DISTINCT - col0 + - col0 + - col2 * + + col2 FROM tab0
----
-2239
-274
-9995

query I rowsort
SELECT col2 * - col2 FROM tab2 WHERE - + col0 IS NOT NULL
----
-1600
-3364
-529

query I rowsort
SELECT - ( + 52 ) AS col2 FROM tab1
----
-52
-52
-52

query I rowsort
SELECT ALL col1 + 61 * + 61 AS col1 FROM tab1
----
3726
3735
3768

query I rowsort
SELECT ALL + ( - ( + 20 ) ) AS col2 FROM tab0 AS cor0
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 72 + + + 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 85 + 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT col2 DIV + col1 * - 89 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT col2 / + col1 * - 89 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NOT NULL < col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 >= + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IN ( CAST( - 9 AS SIGNED ), CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8223
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IN ( CAST ( - 9 AS INTEGER ), CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL - - MAX( ALL col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL - - MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + col2 + - + 8 + + + 25 FROM tab0 AS cor0
----
116
27
64

query I rowsort
SELECT - col2 + - col0 AS col0 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT col1 * + - col0 - + 13 * - 1 * + col1 FROM tab1
----
-360
-3666
-532

query I rowsort
SELECT 82 * 75 * - col1 * + ( col0 ) FROM tab0
----
-11236050
-596550
-7472250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8230
SELECT COUNT( * ) DIV 91 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT COUNT ( * ) / 91 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, - col1 AS col0 FROM tab2
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT col1 * - 42 AS col2 FROM tab1
----
-1974
-210
-588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT DISTINCT - col2 * + col2 AS col0 FROM tab0 WHERE NOT col1 + - CAST( - 20 AS SIGNED ) IS NULL
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT - col2 * + col2 AS col0 FROM tab0 WHERE NOT col1 + - CAST ( - 20 AS INTEGER ) IS NULL
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT + 71 * + col2 FROM tab0
----
3337
7029
710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL col1 * + ( + + CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL col1 * + ( + + CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query II rowsort
SELECT col1 AS col1, - 80 AS col1 FROM tab1 AS cor0
----
14
-80
47
-80
5
-80

query I rowsort
SELECT - ( + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT - + MIN( DISTINCT ( + + 1 ) ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8238
SELECT - + MIN ( DISTINCT ( + + 1 ) ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col2 * - 98 AS col0 FROM tab0
----
4606
9702
980

query I rowsort
SELECT - 96 + + 27 FROM tab2, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT DISTINCT 43 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
43

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT NULL > 4
----

query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT + col0 DIV + + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8244
SELECT + col0 / + + col1 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - - 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8246
SELECT + ( + - ( + 90 ) ), ( col0 ) * 27 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * - CAST( - col2 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-8246
SELECT + ( + - ( + 90 ) ), ( col0 ) * 27 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * - CAST ( - col2 AS REAL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8247
SELECT - col0 DIV - + ( - - col2 ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8247
SELECT - col0 / - + ( - - col2 ) FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8248
SELECT DISTINCT - + SUM( + col2 ) DIV - 66 col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8248
SELECT DISTINCT - + SUM ( + col2 ) / - 66 col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT MAX( + 22 ) + + 80 AS col2 FROM tab2 cor0
----
102

skipif mysql # not compatible
query I rowsort label-8249
SELECT MAX ( + 22 ) + + 80 AS col2 FROM tab2 cor0
----
102

query I rowsort
SELECT 46 * col1 * - + col0 + col1 * - - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2145
20586
96180

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8251
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT - MAX( + + col2 ) + - 37 AS col0 FROM tab0 cor0
----
-136

skipif mysql # not compatible
query I rowsort label-8252
SELECT - MAX ( + + col2 ) + - 37 AS col0 FROM tab0 cor0
----
-136

query I rowsort
SELECT 69 + + + col0 AS col2 FROM tab2 AS cor0
----
115
133
144

query III rowsort
SELECT * FROM tab2 WHERE - + col2 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8255
SELECT DISTINCT 21 + - COUNT( * ) DIV 30 + 98 AS col1 FROM tab2
----
119

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT 21 + - COUNT ( * ) / 30 + 98 AS col1 FROM tab2
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8256
SELECT DISTINCT + 38 + - CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT + 38 + - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 73 ) FROM tab0 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - 4 + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( + 71 * - col1 BETWEEN + col2 * - col1 AND NULL )
----
-4

skipif mysql # not compatible
query I rowsort label-8258
SELECT - 4 + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( + 71 * - col1 BETWEEN + col2 * - col1 AND NULL )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + - COUNT( * ) - + 74 col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8259
SELECT + - COUNT ( * ) - + 74 col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL + + col0 - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + ( + col1 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT + - 63 / + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT - COUNT( * ) FROM tab2 WHERE + col1 > + + col2
----
-3

skipif mysql # not compatible
query I rowsort label-8263
SELECT - COUNT ( * ) FROM tab2 WHERE + col1 > + + col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL - + 2 + + COUNT( * ) + 52 col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8264
SELECT ALL - + 2 + + COUNT ( * ) + 52 col1 FROM tab2 AS cor0
----
53

query I rowsort
SELECT + col1 + + + 21 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT ALL 39 + - ( + 98 ) FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 26 * - col2 * col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-18330
-22620
-249678

query I rowsort
SELECT DISTINCT + col1 + col2 - + + col0 FROM tab1 AS cor0
----
-21
24
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col2 col0 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + 93 AS col0, + 18 FROM tab2 AS cor0
----
93
18
93
18
93
18

query I rowsort
SELECT DISTINCT ( 91 ) AS col1 FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT DISTINCT + ( + + MAX( ALL + ( - - col2 ) ) ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8273
SELECT DISTINCT + ( + + MAX ( ALL + ( - - col2 ) ) ) col2 FROM tab1
----
96

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8275
SELECT ( + - COUNT( ALL - + col2 ) ) DIV + 83 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT ( + - COUNT ( ALL - + col2 ) ) / + 83 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT + MIN( DISTINCT + 54 ) * - 34 * - MAX( + + 72 ) AS col1 FROM tab1
----
132192

skipif mysql # not compatible
query I rowsort label-8276
SELECT + MIN ( DISTINCT + 54 ) * - 34 * - MAX ( + + 72 ) AS col1 FROM tab1
----
132192

query I rowsort
SELECT - 39 * - col2 FROM tab2
----
1560
2262
897

query II rowsort
SELECT - col1 * + 87, - col0 AS col0 FROM tab1
----
-1218
-51
-4089
-91
-435
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT + MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8279
SELECT + MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8280
SELECT ALL CAST( + + col2 AS SIGNED ), col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-8280
SELECT ALL CAST ( + + col2 AS INTEGER ), col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ALL + COUNT( * ) * - - 23 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + COUNT ( * ) * - - 23 FROM tab2 AS cor0
----
69

query I rowsort
SELECT DISTINCT col1 * - + col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT 23 * - - 74 AS col0 FROM tab2 AS cor0
----
1702
1702
1702

query II rowsort
SELECT ALL - col0, + col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL + COUNT( DISTINCT col0 ) - 55 AS col1 FROM tab0 AS cor0 WHERE NOT 98 NOT BETWEEN col0 AND - col0
----
-55

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL + COUNT ( DISTINCT col0 ) - 55 AS col1 FROM tab0 AS cor0 WHERE NOT 98 NOT BETWEEN col0 AND - col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL - - COUNT( + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL - - COUNT ( + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8288
SELECT + MIN( col0 ) * + - 65 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT + MIN ( col0 ) * + - 65 * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT - COUNT( ALL + 95 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8289
SELECT - COUNT ( ALL + 95 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 90 AS col2 FROM tab1 cor0 WHERE NULL = - 43
----

query I rowsort
SELECT - col1 * - 85 / - + 23 * ( + col0 ) * + + 40 + + - col0 * + + 10 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT + + MAX( + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT + + MAX ( + col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / + col1 * col1 / ( - col0 ) * + col2 + 29 IN ( col1, 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT + SUM( ALL - + col1 ) col0 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8294
SELECT + SUM ( ALL - + col1 ) col0 FROM tab0
----
-103

query I rowsort
SELECT 62 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT COUNT( ALL col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8296
SELECT COUNT ( ALL col0 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL + col0 * - 47 FROM tab0
----
-4089
-4559
-705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( - col1 ) col2 FROM tab0
----
-11
-34
98

query III rowsort
SELECT * FROM tab0 WHERE + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT - 5 * - ( - 21 ) + - COUNT( * ) FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT - 5 * - ( - 21 ) + - COUNT ( * ) FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT - ( SUM( ALL - col0 ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT - ( SUM ( ALL - col0 ) ) AS col1 FROM tab2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT DISTINCT - col1 + 50 DIV - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT - col1 + 50 / - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT - 44 + + SUM( ALL + - col2 ) AS col1 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-8303
SELECT - 44 + + SUM ( ALL + - col2 ) AS col1 FROM tab2
----
-165

query I rowsort
SELECT ALL + col0 + + + col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL + + col1 * - col2 + col2 AS col1 FROM tab0 cor0
----
-200
-3760
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8306
SELECT ALL + + CAST( NULL AS SIGNED ), - 35 + - + AVG ( DISTINCT + ( + 50 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 25 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8306
SELECT ALL + + CAST ( NULL AS INTEGER ), - 35 + - + AVG ( DISTINCT + ( + 50 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 25 IS NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 97 AS col2 FROM tab0
----
1455
8439
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - AVG ( + + col1 ) col0 FROM tab1 cor0 WHERE 30 IS NULL
----
NULL

query I rowsort
SELECT ALL - col1 - - + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT - SUM( - 26 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-8310
SELECT - SUM ( - 26 ) FROM tab2
----
78

query II rowsort
SELECT + col0 AS col0, + 14 FROM tab0
----
15
14
87
14
97
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + - 9
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * 46 >= NULL
----

query I rowsort
SELECT ALL + - 69 AS col2 FROM tab0 WHERE NOT - - col2 + + - col2 * - - col0 + + - col2 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8315
SELECT COUNT( * ) col2, ( - 56 ) FROM tab0
----
3
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8315
SELECT COUNT ( * ) col2, ( - 56 ) FROM tab0
----
3
-56

query I rowsort
SELECT col2 * 53 + - + 78 * - + col2 + col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT - + ( + + col0 ) * - + col1 * 55, col1 FROM tab0 AS cor0
----
100485
21
5335
1
66825
81

query I rowsort
SELECT DISTINCT + - col0 * 83 AS col1 FROM tab2 AS cor0
----
-3818
-5312
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8320
SELECT SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8321
SELECT + CAST( NULL AS SIGNED ) AS col0, ( - - col2 ) AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8321
SELECT + CAST ( NULL AS INTEGER ) AS col0, ( - - col2 ) AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8322
SELECT col0 DIV col1 AS col2, + col0 FROM tab1
----
1
91
17
85
3
51

skipif mysql # not compatible
query II rowsort label-8322
SELECT col0 / col1 AS col2, + col0 FROM tab1
----
1
91
17
85
3
51

query I rowsort
SELECT - + 77 + + 49 FROM tab2 AS cor0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + col1 * - + col0 * + - col1 * + 44 AS col1, - 83 * - col0 col0 FROM tab0 AS cor0
----
1688158
7221
4330307
1245
4367
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - + MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT ALL col2 * + - col1 AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8327
SELECT ALL + MIN( col2 ) * + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + MIN ( col2 ) * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8328
SELECT DISTINCT + col2 + col0 * 48 DIV col2 - + + col1 FROM tab0
----
-19
145
406

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT + col2 + col0 * 48 / col2 - + + col1 FROM tab0
----
-19
145
406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE - ( + 6 ) IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8330
SELECT ALL - 68 * - + 37 AS col1, + col2 + - col1 + - - 17 + - 12 * + CAST( - + col1 AS SIGNED ) * + col2 * + 96 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8330
SELECT ALL - 68 * - + 37 AS col1, + col2 + - col1 + - - 17 + - 12 * + CAST ( - + col1 AS INTEGER ) * + col2 * + 96 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - - col0 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL 41 - - 34 AS col0 FROM tab1
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT + COUNT( - 21 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8333
SELECT + COUNT ( - 21 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT DISTINCT col0 + + CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE NULL >= + col0
----

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT col0 + + CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - 56 + + col1 AS col0, - col2 * - - 63 * 14 col1 FROM tab2 cor0
----
18
-20286
61
-35280
69
-51156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + col1 * + col2
----

query I rowsort
SELECT ALL + + col0 - + + col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT 28 * col0 + ( - col0 ) FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT + ( - - 80 ) AS col1 FROM tab0 AS cor0
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT DISTINCT + col1 DIV 67 * - 82 col0 FROM tab2 AS cor0
----
-82
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8340
SELECT DISTINCT + col1 / 67 * - 82 col0 FROM tab2 AS cor0
----
-82
0

query I rowsort
SELECT + col2 - + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 52 col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8342
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 52 col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT + COUNT( * ) FROM tab1 WHERE NOT + col1 NOT IN ( - 9, col1 )
----
3

skipif mysql # not compatible
query I rowsort label-8343
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + col1 NOT IN ( - 9, col1 )
----
3

query I rowsort
SELECT + 81 * + + 68 AS col2 FROM tab0
----
5508
5508
5508

query I rowsort
SELECT + col2 * col1 * + 27 * - - ( - 49 ) FROM tab2
----
-1551879
-4074840
-5141178

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT - MIN( ALL 81 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-8346
SELECT - MIN ( ALL 81 ) FROM tab2
----
-81

query I rowsort
SELECT col0 * - 13 FROM tab2
----
-598
-832
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - - MAX( - ( col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8348
SELECT - - MAX ( - ( col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - + 83 FROM tab2 cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - MAX( DISTINCT 35 ) * + 31 FROM tab1
----
-1085

skipif mysql # not compatible
query I rowsort label-8350
SELECT - MAX ( DISTINCT 35 ) * + 31 FROM tab1
----
-1085

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col1, - 8 AS col0 FROM tab0 AS cor0
----
-15
-8
-87
-8
-97
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT ALL CAST( 23 AS SIGNED ) AS col2 FROM tab0 cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL CAST ( 23 AS INTEGER ) AS col2 FROM tab0 cor0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8353
SELECT DISTINCT - ( col0 ) * + - col2 * - - col2 + ( - CAST( 94 AS SIGNED ) ) FROM tab1 AS cor0
----
295791
420690
469922

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - ( col0 ) * + - col2 * - - col2 + ( - CAST ( 94 AS INTEGER ) ) FROM tab1 AS cor0
----
295791
420690
469922

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8354
SELECT ALL + 84, col1 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
84
0
84
1
84
2

skipif mysql # not compatible
query II rowsort label-8354
SELECT ALL + 84, col1 / CAST ( col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
84
0
84
1
84
2

query I rowsort
SELECT ALL + 67 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 15 >= ( 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8357
SELECT ALL CAST( + col0 AS SIGNED ) * + + 48 + col0 FROM tab2 AS cor0
----
2254
3136
3675

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL CAST ( + col0 AS INTEGER ) * + + 48 + col0 FROM tab2 AS cor0
----
2254
3136
3675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 67 col1, col2 * 45 FROM tab2 AS cor0
----
67
1035
67
1800
67
2610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * + col2 col0 FROM tab1 cor0
----
3599
4148
5856

query I rowsort
SELECT + col0 AS col1 FROM tab0 cor0 WHERE col2 NOT IN ( - col0, col2 / - - col0 * + ( col2 ) * + col2 / + 50, + + 83, col2, + + col1 * - col1 / - ( + + 62 ) )
----

query II rowsort
SELECT DISTINCT - col1 * - - 12, + 14 * - 10 * - 94 + - 8 AS col2 FROM tab1 cor0
----
-168
13152
-564
13152
-60
13152

query I rowsort
SELECT DISTINCT + ( + + 42 ) + - + col2 FROM tab0 AS cor0
----
-5
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT - - COUNT( * ) + + 8 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-8363
SELECT - - COUNT ( * ) + + 8 FROM tab0 AS cor0
----
11

query I rowsort
SELECT + 86 - - + col2 AS col0 FROM tab2 WHERE - + 39 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT col1 * col2 DIV + col0 + + + col0 - + + 81 FROM tab1
----
-4
45
7

skipif mysql # not compatible
query I rowsort label-8365
SELECT col1 * col2 / + col0 + + + col0 - + + 81 FROM tab1
----
-4
45
7

query I rowsort
SELECT 34 + + col2 FROM tab0
----
133
44
81

query I rowsort
SELECT ( - col2 ) + - col0 AS col2 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT DISTINCT + COUNT( * ) - + SUM( DISTINCT + col1 ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT + COUNT ( * ) - + SUM ( DISTINCT + col1 ) FROM tab2
----
-192

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND - ( - col1 ) * + - col1 * - ( + col2 ) + + col1
----

query I rowsort
SELECT DISTINCT col0 + col2 * - col0 + col1 + - col1 FROM tab2 cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT + + col1 - + col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 * 92 FROM tab0 AS cor0 WHERE - ( - 53 ) <= - col0 + col1 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT ALL + CAST( NULL AS SIGNED ) - + COUNT( * ) + ( 60 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + ( 60 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT DISTINCT + ( - col2 ) DIV - col1 col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8374
SELECT DISTINCT + ( - col2 ) / - col1 col2 FROM tab1
----
1
11
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 26 AND - 79 + - 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8376
SELECT - COUNT( * ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8376
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT ALL + 80 * col0 AS col1 FROM tab2 AS cor0
----
3680
5120
6000

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - - 0 IN ( + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8379
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT - 81 * MIN( DISTINCT - + 72 ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
5832

skipif mysql # not compatible
query I rowsort label-8380
SELECT - 81 * MIN ( DISTINCT - + 72 ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
5832

query I rowsort
SELECT - 63 + - 66 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE - 84 * col1 + + col1 / + - col0 * + 32 + - col1 / + 24 * - col2 = - - col2 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col0 FROM tab2 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8384
SELECT - CAST( - - SUM( DISTINCT + + 60 ) AS SIGNED ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-8384
SELECT - CAST ( - - SUM ( DISTINCT + + 60 ) AS INTEGER ) FROM tab1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 16 col0, - 1 AS col1 FROM tab0, tab2 AS cor0
----
18 values hashing to 7314d17c7733643d97df237a700b7349

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT - MAX( ALL - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT - MAX ( ALL - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL + CAST( + + 32 AS SIGNED ) FROM tab2
----
32
32
32

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + CAST ( + + 32 AS INTEGER ) FROM tab2
----
32
32
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8390
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT + + 2 * - 54 + - 21 + - CAST( + col0 AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT + + 2 * - 54 + - 21 + - CAST ( + col0 AS REAL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * - col1 NOT IN ( - ( - + 14 ), col2, + - col0 - 18 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT ALL col1 DIV 34 * - - col0 * + 75 - + 29 AS col0 FROM tab2 AS cor0
----
3421
5596
9571

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL col1 / 34 * - - col0 * + 75 - + 29 AS col0 FROM tab2 AS cor0
----
3421
5596
9571

query I rowsort
SELECT - col0 * + col0 + + col0 FROM tab2 AS cor0
----
-2070
-4032
-5550

query II rowsort
SELECT - col0 * 47 AS col2, col0 * + col2 AS col0 FROM tab1 AS cor0
----
-2397
4896
-3995
5015
-4277
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8395
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 + - col1 + - CAST( NULL AS SIGNED ) + - ( + + col2 ) IN ( 42, - 0, - 0 )
----

skipif mysql # not compatible
query III rowsort label-8395
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 + - col1 + - CAST ( NULL AS INTEGER ) + - ( + + col2 ) IN ( 42, - 0, - 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + - col2 AS col0 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + - col2 AS col0 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT + 87 AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT + 35 + - MAX( ALL - + col2 ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-8398
SELECT + 35 + - MAX ( ALL - + col2 ) FROM tab1 AS cor0
----
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + + col1 + + col2, col1 * - col1 ) )
----

query I rowsort
SELECT DISTINCT col0 * - col0 * - col0 AS col0 FROM tab0 AS cor0
----
3375
658503
912673

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT + - 37 + + + COUNT( ALL col0 ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8401
SELECT + - 37 + + + COUNT ( ALL col0 ) FROM tab0 AS cor0
----
-34

query I rowsort
SELECT + 29 * - 80 FROM tab1
----
-2320
-2320
-2320

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT 85 DIV col0 * - col2 * - ( - 90 ) FROM tab2
----
-2070
-3600
-5220

skipif mysql # not compatible
query I rowsort label-8403
SELECT 85 / col0 * - col2 * - ( - 90 ) FROM tab2
----
-2070
-3600
-5220

query I rowsort
SELECT ALL + ( col1 ) + + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT col1 - - 66 FROM tab0
----
147
67
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL 20 + + COUNT( * ) AS col2 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL 20 + + COUNT ( * ) AS col2 FROM tab0
----
23

query I rowsort
SELECT + + 29 AS col1 FROM tab2 WHERE - - col1 < - + 86
----

query I rowsort
SELECT 72 - col2 FROM tab1 AS cor0
----
-24
13
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT - + 27 * + 23 + - COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-627

skipif mysql # not compatible
query I rowsort label-8409
SELECT - + 27 * + 23 + - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-627

query I rowsort
SELECT DISTINCT - - 55 AS col1 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT - + COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8411
SELECT - + COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 * + 95 * + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8413
SELECT + ( - COUNT( * ) ) DIV COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8413
SELECT + ( - COUNT ( * ) ) / COUNT ( * ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col0 FROM tab1
----
-61
-61
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8418
SELECT ALL * FROM tab0 WHERE NULL > + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8418
SELECT ALL * FROM tab0 WHERE NULL > + CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8419
SELECT DISTINCT 23 col0, col2 DIV + col2 AS col1 FROM tab2
----
23
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8419
SELECT DISTINCT 23 col0, col2 / + col2 AS col1 FROM tab2
----
23
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 <= ( col0 + col0 )
----
87
21
10
97
1
99

query II rowsort
SELECT col2 AS col2, col1 - + + col2 + + col2 * - - col0 AS col2 FROM tab1
----
59
4961
68
6167
96
4814

query I rowsort
SELECT col2 * - - 91 AS col1 FROM tab0
----
4277
9009
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT COUNT( * ) * 90 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-8423
SELECT COUNT ( * ) * 90 FROM tab0
----
270

query I rowsort
SELECT DISTINCT + 44 * 15 + + + col0 FROM tab1
----
711
745
751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8425
SELECT COUNT( * ), AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8425
SELECT COUNT ( * ), AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8426
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8426
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + col1 * + + col0 AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col1 + ( + col0 ) AND NULL
----

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - col0 AND + col0
----
15
97

query I rowsort
SELECT DISTINCT - 93 + - - ( - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 82 BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL = + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 * + + col1 AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT col0 * + - 28 * + - 61 * + col0 + - 96 * CAST( - col1 AS SIGNED ) * + 77 + - 3 FROM tab1
----
12377257
14491369
4545993

skipif mysql # not compatible
query I rowsort label-8434
SELECT col0 * + - 28 * + - 61 * + col0 + - 96 * CAST ( - col1 AS INTEGER ) * + 77 + - 3 FROM tab1
----
12377257
14491369
4545993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT - CAST( NULL AS SIGNED ) + + - 8 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT - CAST ( NULL AS INTEGER ) + + - 8 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - + 2 / 49 / - - col0 * - col0 FROM tab2 WHERE NOT ( col1 ) * + + col2 <> ( - 48 ) / + col1
----

query I rowsort
SELECT col1 + - ( + + col2 ) AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT - ( - - 35 ) + - + col1 AS col2 FROM tab1
----
-40
-49
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT 23 + + COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-8439
SELECT 23 + + COUNT ( * ) FROM tab1
----
26

query II rowsort
SELECT 7, + col1 + + col0 AS col0 FROM tab1
----
7
138
7
65
7
90

query I rowsort
SELECT ALL ( + - col1 ) AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 <> col1
----

query I rowsort
SELECT + - 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 76 * + 68 col0 FROM tab0 cor0
----
5168
5168
5168

query I rowsort
SELECT ALL 9 AS col0 FROM tab1 AS cor0 WHERE NOT 35 IS NULL
----
9
9
9

query I rowsort
SELECT DISTINCT col1 * + 69 + - - col0 AS col2 FROM tab2 AS cor0
----
3565
4698
5377

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT - ( + ( - - COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8448
SELECT - ( + ( - - COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - ( - ( - 74 ) ) FROM tab1 AS cor0
----
-74
-74
-74

query II rowsort
SELECT ALL 14, + col1 AS col1 FROM tab0 AS cor0
----
14
1
14
21
14
81

query I rowsort
SELECT 89 + + col1 + + - ( - + 82 ) AS col1 FROM tab2
----
222
238
248

query I rowsort
SELECT col2 * + + col0 * - + col0 + 5 FROM tab0
----
-10570
-75685
-931486

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL IS NULL OR NOT ( col2 * col1 ) NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8454
SELECT MAX( - 57 ), COUNT( * ) AS col0 FROM tab1
----
-57
3

skipif mysql # not compatible
query II rowsort label-8454
SELECT MAX ( - 57 ), COUNT ( * ) AS col0 FROM tab1
----
-57
3

query I rowsort
SELECT ALL 63 * + col1 + - col0 FROM tab1
----
230
2870
831

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8457
SELECT * FROM tab0 AS cor0 WHERE 64 * 80 / - + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8457
SELECT * FROM tab0 AS cor0 WHERE 64 * 80 / - + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 54 AS col2 FROM tab2
----
100
118
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8459
SELECT COUNT( * ) DIV + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8459
SELECT COUNT ( * ) / + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT + 43 * + MIN( ALL - + 60 ) + - 71 FROM tab1 AS cor0
----
-2651

skipif mysql # not compatible
query I rowsort label-8460
SELECT + 43 * + MIN ( ALL - + 60 ) + - 71 FROM tab1 AS cor0
----
-2651

onlyif mysql # DIV for integer division: 
query I rowsort label-8461
SELECT DISTINCT - col2 - col0 DIV 55 * col1 col2 FROM tab0 AS cor0
----
-100
-31
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8461
SELECT DISTINCT - col2 - col0 / 55 * col1 col2 FROM tab0 AS cor0
----
-100
-31
-47

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE + col1 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 84, + ( - 0 ) col0 FROM tab1 cor0
----
-84
0
-84
0
-84
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8464
SELECT ALL - col0 + + - CAST( NULL AS SIGNED ) / - ( 74 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL - col0 + + - CAST ( NULL AS INTEGER ) / - ( 74 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 67 FROM tab1 cor0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + + + 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 42 - ( - col0 ) FROM tab1
----
127
133
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT DISTINCT ( + 28 ) DIV 21 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT ( + 28 ) / 21 FROM tab1
----
1

query I rowsort
SELECT ALL col1 * + 72 * - col0 * col1 AS col2 FROM tab1
----
-14473368
-153000
-719712

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT + 7 DIV + 74 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT + 7 / + 74 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT MIN( DISTINCT 13 ) AS col0 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8472
SELECT MIN ( DISTINCT 13 ) AS col0 FROM tab1
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 WHERE NOT - col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT + 54 * - col1 AS col2 FROM tab1 AS cor0
----
-2538
-270
-756

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 cor0 WHERE NOT NULL NOT IN ( col0, col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= - 14
----

query I rowsort
SELECT 97 + + col0 FROM tab0 cor0 WHERE NOT ( - col1 * - + col2 <= ( + + col2 ) )
----
112
184

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - 26 <= - col2 + + 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 19 + - + col2 AS col0 FROM tab1 WHERE ( - col0 ) IS NULL
----

query II rowsort
SELECT 12, col0 FROM tab0
----
12
15
12
87
12
97

query I rowsort
SELECT + - 93 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT ALL - col0 + - + col1 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL + + MIN( DISTINCT + - 64 ) AS col1 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + + MIN ( DISTINCT + - 64 ) AS col1 FROM tab0 AS cor0
----
-64

query II rowsort
SELECT DISTINCT - col2, 79 AS col1 FROM tab0 AS cor0
----
-10
79
-47
79
-99
79

query I rowsort
SELECT ALL + + 63 AS col0 FROM tab1 cor0
----
63
63
63

query I rowsort
SELECT ALL 10 AS col2 FROM tab0 cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL + SUM( - + col2 ) * - + 83 + + 17 AS col2 FROM tab2 cor0
----
10060

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + SUM ( - + col2 ) * - + 83 + + 17 AS col2 FROM tab2 cor0
----
10060

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT SUM( DISTINCT + + ( - + 49 ) ) AS col2 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-8488
SELECT SUM ( DISTINCT + + ( - + 49 ) ) AS col2 FROM tab0
----
-49

query I rowsort
SELECT - - col0 + 42 + - 24 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND - 50 * + + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT DISTINCT 92 + + MIN( - 93 ) + + - SUM( - col1 ) col1 FROM tab0
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8490
SELECT DISTINCT 92 + + MIN ( - 93 ) + + - SUM ( - col1 ) col1 FROM tab0
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-8491
SELECT DISTINCT col1 AS col1, 56 DIV - - col2 AS col2 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-8491
SELECT DISTINCT col1 AS col1, 56 / - - col2 AS col2 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT + col0 + - - col1 * - + ( - col1 ) + + - col2 - - - col2 DIV - - col1 FROM tab0
----
-100
518
6529

skipif mysql # not compatible
query I rowsort label-8492
SELECT + col0 + - - col1 * - + ( - col1 ) + + - col2 - - - col2 / - - col1 FROM tab0
----
-100
518
6529

query I rowsort
SELECT ALL col2 + col2 + col1 AS col2 FROM tab0
----
175
199
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT - 46 + + COUNT( * ) AS col1 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-8494
SELECT - 46 + + COUNT ( * ) AS col1 FROM tab2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 69 AS col2 FROM tab1 AS cor0 WHERE - 3 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 = + 65
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL + + 38 AS col1 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT 38 * + + 51 FROM tab1
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL - MIN( ALL + - ( col0 ) ) * COUNT( * ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL - MIN ( ALL + - ( col0 ) ) * COUNT ( * ) AS col0 FROM tab2
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, - ( col1 ) - col2 - - 91 * - 20 * + - col1 + + + col1 col1 FROM tab0
----
15
147373
87
38210
97
1721

query II rowsort
SELECT ALL + 72 AS col1, col2 FROM tab2
----
72
23
72
40
72
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 / + - 47 - - col1 AND - + ( - ( col1 ) ) * - - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + - - 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL - + 10 - + COUNT( * ) AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
-13

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - + 10 - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
-13

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 48 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 48 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT ALL + ( COUNT( * ) ) * - + 31 + + MAX( ALL - col0 ) + - + SUM( + CAST( 96 AS SIGNED ) ) + - 90 FROM tab2 AS cor0
----
-517

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + ( COUNT ( * ) ) * - + 31 + + MAX ( ALL - col0 ) + - + SUM ( + CAST ( 96 AS INTEGER ) ) + - 90 FROM tab2 AS cor0
----
-517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT + CAST( NULL AS SIGNED ) / - 40 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT + CAST ( NULL AS INTEGER ) / - 40 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 28 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
28

query I rowsort
SELECT ALL - 3 AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ( col0 ) * + ( + col0 ) FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + col2 * + 31 + + + col0 FROM tab1 AS cor0
----
1914
2199
3027

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 44 col2 FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL + COUNT( + col0 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + COUNT ( + col0 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT 76 + - - ( + + 5 ) AS col0 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT col0 + + 54 FROM tab2 AS cor0
----
100
118
129

query I rowsort
SELECT - col0 + + + col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 71 ) + + 73 col2 FROM tab2 AS cor0
----
144
144
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - SUM( + col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8521
SELECT - SUM ( + col0 ) AS col0 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8522
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE + + col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, 88 * + - col1 col0 FROM tab0
----
1
-88
21
-1848
81
-7128

query I rowsort
SELECT - + col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + col1 + + ( col2 ) * + col1 FROM tab1
----
1358
300
3243

query I rowsort
SELECT DISTINCT col0 + - 96 FROM tab1
----
-11
-45
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT + SUM( ALL - - col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8527
SELECT + SUM ( ALL - - col2 ) col0 FROM tab0
----
156

query I rowsort
SELECT ALL + col0 + + ( + 53 ) FROM tab2 AS cor0
----
117
128
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT ALL + CAST( - - col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT DISTINCT MIN( col2 ) + - ( - - 58 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT MIN ( col2 ) + - ( - - 58 ) FROM tab0 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, 72 FROM tab0 cor0
----
-10
72
-47
72
-99
72

query I rowsort
SELECT DISTINCT - 12 + - col2 FROM tab1 AS cor0
----
-108
-71
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT - MAX( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8533
SELECT - MAX ( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT + COUNT( * ) * 57 * + COUNT( DISTINCT + ( - col2 ) ) FROM tab1 AS cor0
----
513

skipif mysql # not compatible
query I rowsort label-8534
SELECT + COUNT ( * ) * 57 * + COUNT ( DISTINCT + ( - col2 ) ) FROM tab1 AS cor0
----
513

onlyif mysql # aggregate syntax: 
query II rowsort label-8535
SELECT + 57 AS col2, COUNT( * ) FROM tab0 AS cor0
----
57
3

skipif mysql # not compatible
query II rowsort label-8535
SELECT + 57 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
57
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT col0 DIV + col0 + + col0 AS col0 FROM tab0 cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-8536
SELECT col0 / + col0 + + col0 AS col0 FROM tab0 cor0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT DISTINCT 50 * COUNT( * ) col2 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8537
SELECT DISTINCT 50 * COUNT ( * ) col2 FROM tab2 AS cor0
----
150

query I rowsort
SELECT - ( + 34 ) FROM tab0
----
-34
-34
-34

query I rowsort
SELECT ALL 16 * - - col1 * + - 20 FROM tab0
----
-25920
-320
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT MIN( DISTINCT - 88 ) AS col1 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8540
SELECT MIN ( DISTINCT - 88 ) AS col1 FROM tab2 AS cor0
----
-88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + - col2 ) ) IS NOT NULL
----

query I rowsort
SELECT + 22 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * + col0 IS NULL
----
22
22
22

query II rowsort
SELECT + 68 + - + 71 * - 79, col0 + + - col1 AS col1 FROM tab2
----
5677
-13
5677
-5
5677
8

query I rowsort
SELECT + - 12 AS col2 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT - col0 * + col0 * - + 26 * - col2 AS col1 FROM tab1 AS cor0
----
-11083150
-14640808
-6492096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 48 / ( - col0 ) + + 64 - - - 95 col2 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 83 ) AS col1 FROM tab1 AS cor0
----
-83

query II rowsort
SELECT ALL col1 + - col1 + - col0 AS col1, + col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT + 94 DIV + - 80 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8550
SELECT + 94 / + - 80 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL COUNT( * ) * - COUNT( * ) + 38 FROM tab2 AS cor0 WHERE NOT 23 IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL COUNT ( * ) * - COUNT ( * ) + 38 FROM tab2 AS cor0 WHERE NOT 23 IS NULL
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8552
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - col2 * + col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT - CAST ( NULL AS REAL ) + - col2 * + col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 13 * - col1 + - - 93 FROM tab2
----
-570
-778
-908

query I rowsort
SELECT + 88 + + - 62 AS col1 FROM tab0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) + - - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) + - - col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT DISTINCT + 45 + - - MIN( DISTINCT + - col0 ) AS col0 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT + 45 + - - MIN ( DISTINCT + - col0 ) AS col0 FROM tab1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ( - COUNT( * ) ) + - + MIN( - - col2 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-8557
SELECT ( - COUNT ( * ) ) + - + MIN ( - - col2 ) FROM tab2
----
-26

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 48 col0 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT DISTINCT - AVG ( ALL + col0 ) col1 FROM tab0 AS cor0 WHERE ( NULL ) = + - CAST( ( col2 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8560
SELECT DISTINCT - AVG ( ALL + col0 ) col1 FROM tab0 AS cor0 WHERE ( NULL ) = + - CAST ( ( col2 ) AS INTEGER )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8562
SELECT + ( - col1 ) DIV - ( - + col0 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8562
SELECT + ( - col1 ) / - ( - + col0 ) AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 9 * - col0 * - col0 FROM tab1 AS cor0
----
23409
65025
74529

query I rowsort
SELECT + - col1 * + - col2 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + ( + 32 )
----

query I rowsort
SELECT ALL - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT DISTINCT - - COUNT( - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT - - COUNT ( - col1 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT + col1 AS col0, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8570
SELECT - COUNT( * ) AS col0, 59 DIV 80 AS col2 FROM tab0
----
-3
0

skipif mysql # not compatible
query II rowsort label-8570
SELECT - COUNT ( * ) AS col0, 59 / 80 AS col2 FROM tab0
----
-3
0

query I rowsort
SELECT col1 * - 12 AS col2 FROM tab2
----
-612
-804
-924

query II rowsort
SELECT DISTINCT col0 AS col0, + 26 AS col2 FROM tab0
----
15
26
87
26
97
26

query II rowsort
SELECT + 70 AS col2, - col2 FROM tab0
----
70
-10
70
-47
70
-99

query II rowsort
SELECT DISTINCT + col1 AS col1, 3 FROM tab1
----
14
3
47
3
5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT + MAX( DISTINCT col0 ) * - 52 AS col2 FROM tab0
----
-5044

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + MAX ( DISTINCT col0 ) * - 52 AS col2 FROM tab0
----
-5044

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-8576
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8577
SELECT DISTINCT + ( + 6 ), 22 * - CAST( - COUNT( * ) AS SIGNED ) * + - 34 col2 FROM tab0 AS cor0
----
6
-2244

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8577
SELECT DISTINCT + ( + 6 ), 22 * - CAST ( - COUNT ( * ) AS INTEGER ) * + - 34 col2 FROM tab0 AS cor0
----
6
-2244

query I rowsort
SELECT + 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL - + 38 - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL - + 38 - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( col2 ) <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 39 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # DIV for integer division: 
query I rowsort label-8582
SELECT + 50 + - + 34 DIV + ( + + 54 ) FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-8582
SELECT + 50 + - + 34 / + ( + + 54 ) FROM tab1
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL COUNT( * ) + 9 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL COUNT ( * ) + 9 FROM tab1
----
12

query I rowsort
SELECT - col0 * 75 FROM tab0 AS cor0 WHERE ( + col1 + + col2 ) IS NOT NULL
----
-1125
-6525
-7275

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8586
SELECT ALL col0 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8586
SELECT ALL col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT 85 * - 11 > NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - col1 AS col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT + col1 + - 34 AS col0 FROM tab2
----
17
33
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( - + col0 ) + - col2 col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8591
SELECT ALL * FROM tab2 WHERE ( NULL NOT BETWEEN NULL AND + col1 * - ( + CAST( - + col0 AS SIGNED ) ) + - col2 + 63 / + col1 )
----

skipif mysql # not compatible
query III rowsort label-8591
SELECT ALL * FROM tab2 WHERE ( NULL NOT BETWEEN NULL AND + col1 * - ( + CAST ( - + col0 AS INTEGER ) ) + - col2 + 63 / + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + + col1 col0 FROM tab1
----
37
44
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - ( - 63 ) ) + + col2 + - - 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 87 + + - col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT + col1 DIV + col1 + col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-8595
SELECT + col1 / + col1 + col2 FROM tab2 AS cor0
----
24
41
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8596
SELECT - COUNT( * ) * - + 70 + - 0, 76 AS col2 FROM tab1 AS cor0
----
210
76

skipif mysql # not compatible
query II rowsort label-8596
SELECT - COUNT ( * ) * - + 70 + - 0, 76 AS col2 FROM tab1 AS cor0
----
210
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT - - COUNT( + - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8597
SELECT - - COUNT ( + - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 AS col0, col2 col1 FROM tab1 cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL - 67 AS col0 FROM tab1
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT + col2 / 45 + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT + col2 / 45 + col2 < NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) IN ( + 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( col2 ) BETWEEN col0 * col0 + - col0 / ( + col0 ) AND + 91 * - ( + col1 ) - 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col0 ) * col0 - + col0 * + 4 FROM tab0
----
-285
-7917
-9797

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT DISTINCT MIN( DISTINCT ( + col0 ) ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT MIN ( DISTINCT ( + col0 ) ) AS col1 FROM tab1
----
51

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE 93 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT COUNT( + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8606
SELECT COUNT ( + col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL col1 + 81 FROM tab2
----
132
148
158

query III rowsort
SELECT ALL * FROM tab2 WHERE 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + 78 - - col1 FROM tab2
----
3639
5069
5917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT DISTINCT + COUNT( * ) - - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT + COUNT ( * ) - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 < ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8612
SELECT + 29 DIV MIN( ALL 46 ) + - COUNT( * ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8612
SELECT + 29 / MIN ( ALL 46 ) + - COUNT ( * ) col2 FROM tab2
----
-3

query I rowsort
SELECT col1 / - ( + col2 * col1 ) AS col1 FROM tab2 WHERE 62 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + 87 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 60 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT - COUNT( + col2 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT - COUNT ( + col2 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT IN ( + ( 71 ) / - col0 - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( - 30 ) NOT BETWEEN + col0 AND - 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col0 FROM tab2
----
88

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT ( col0 * col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 12 >= ( 17 )
----
110
115
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8622
SELECT ALL ( + 89 ) * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL ( + 89 ) * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + 45 AS col0 FROM tab2
----
-1
-19
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8624
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 3 AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8628
SELECT DISTINCT - + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + 61 * col1 AS col1 FROM tab2 AS cor0
----
3111
4087
4697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 AS cor0 WHERE NOT - 76 BETWEEN col0 / - col0 AND - 42
----
-59
-68
-96

query I rowsort
SELECT ALL + col0 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT COUNT( * ) + 85 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-8632
SELECT COUNT ( * ) + 85 FROM tab2
----
88

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT ( 82 ) IS NULL
----
51
85
91

query I rowsort
SELECT + col0 + - 37 FROM tab1
----
14
48
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 NOT BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 NOT BETWEEN col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8636
SELECT * FROM tab1 WHERE - 41 * - col0 BETWEEN col0 * - CAST( NULL AS SIGNED ) + - col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8636
SELECT * FROM tab1 WHERE - 41 * - col0 BETWEEN col0 * - CAST ( NULL AS INTEGER ) + - col1 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > col0 + + col2
----

query I rowsort
SELECT ALL + col1 + + - col2 * + 16 AS col0 FROM tab2
----
-317
-563
-861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT CAST( - ( + col1 ) AS SIGNED ) + + 90 col0 FROM tab1
----
43
76
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8639
SELECT CAST ( - ( + col1 ) AS INTEGER ) + + 90 col0 FROM tab1
----
43
76
85

query I rowsort
SELECT DISTINCT - 32 * - - 33 * col0 FROM tab2
----
-48576
-67584
-79200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT ALL CAST( NULL AS SIGNED ) / + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL CAST ( NULL AS INTEGER ) / + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 87 AS col0 FROM tab0 AS cor0 WHERE NOT col1 >= col2
----
87

query I rowsort
SELECT 3 * + ( + col2 ) FROM tab0
----
141
297
30

query I rowsort
SELECT + ( - - 47 ) FROM tab0
----
47
47
47

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE - 60 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IN ( 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT COUNT( - col0 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8647
SELECT DISTINCT COUNT ( - col0 ) col0 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - col0 col1 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT + MAX( - ( + col0 ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT + MAX ( - ( + col0 ) ) FROM tab1 cor0
----
-51

query II rowsort
SELECT 59, ( + - col0 ) * col2 AS col1 FROM tab2 AS cor0
----
59
-1058
59
-2560
59
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT MAX( DISTINCT - ( 94 ) ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT MAX ( DISTINCT - ( 94 ) ) FROM tab2 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT + + col2 DIV - col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8652
SELECT + + col2 / - col1 FROM tab1 AS cor0
----
-1
-11
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8654
SELECT ( + - CAST( NULL AS SIGNED ) ) * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT ( + - CAST ( NULL AS INTEGER ) ) * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - 2 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 94 * - col1 / col0 ) NOT IN ( + 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT ALL - col2 * CAST( + 85 AS SIGNED ) FROM tab0
----
-3995
-8415
-850

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - col2 * CAST ( + 85 AS INTEGER ) FROM tab0
----
-3995
-8415
-850

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8657
SELECT DISTINCT * FROM tab2 WHERE - - 79 + 63 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8657
SELECT DISTINCT * FROM tab2 WHERE - - 79 + 63 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE NOT ( + 54 + + + col0 + ( - 11 ) / - col0 ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8659
SELECT DISTINCT COUNT( + CAST( NULL AS DECIMAL ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT COUNT ( + CAST ( NULL AS REAL ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 BETWEEN + + ( - 91 ) * col2 - - col0 AND - col0 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT SUM( ALL 55 ) + - MAX( 58 ) FROM tab2 cor0 WHERE - 35 <> ( - col1 )
----
107

skipif mysql # not compatible
query I rowsort label-8662
SELECT SUM ( ALL 55 ) + - MAX ( 58 ) FROM tab2 cor0 WHERE - 35 <> ( - col1 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT + - MAX( DISTINCT - + ( - col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT + - MAX ( DISTINCT - + ( - col0 ) ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 48 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 48 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT - - COUNT( - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT - - COUNT ( - col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND 23 - - 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT DISTINCT - 89 + + 83 + 30 + + 83 DIV - + 94 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT - 89 + + 83 + 30 + + 83 / - + 94 FROM tab0
----
24

query I rowsort
SELECT DISTINCT col1 + + - col0 FROM tab0
----
-66
-96
66

query III rowsort
SELECT * FROM tab0 WHERE ( 56 / - 8 + - - 88 ) IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - col0 + - - col2 + col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - - 24 - + - 10 AS col0 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL - COUNT( * ) - - + COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 31, - 97 AS col0 FROM tab0 AS cor0
----
31
-97
31
-97
31
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL + CAST( + ( - col2 ) AS SIGNED ) + + col1 FROM tab1 AS cor0 WHERE + col2 * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + CAST ( + ( - col2 ) AS INTEGER ) + + col1 FROM tab1 AS cor0 WHERE + col2 * + col2 IS NULL
----

query I rowsort
SELECT - - ( - 40 ) AS col2 FROM tab0 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT - + ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8677
SELECT - + ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col0 * + 85 FROM tab2
----
3910
5440
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT COUNT( * ) * + - COUNT( * ) - + COUNT( * ) * + - 3 * - 61 AS col0 FROM tab2
----
-558

skipif mysql # not compatible
query I rowsort label-8679
SELECT COUNT ( * ) * + - COUNT ( * ) - + COUNT ( * ) * + - 3 * - 61 AS col0 FROM tab2
----
-558

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT col0 DIV - 91 - - + 62 AS col2 FROM tab0
----
61
62
62

skipif mysql # not compatible
query I rowsort label-8680
SELECT col0 / - 91 - - + 62 AS col2 FROM tab0
----
61
62
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8681
SELECT - COUNT( * ) * + CAST( + 81 AS SIGNED ) col1 FROM tab1
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8681
SELECT - COUNT ( * ) * + CAST ( + 81 AS INTEGER ) col1 FROM tab1
----
-243

query I rowsort
SELECT DISTINCT 43 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col0 + + col0 * + col0 ) AND ( - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - + 47 ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE NULL = - col2 + - - ( - + 16 ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL + COUNT( * ) * - 4 AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + COUNT ( * ) * - 4 AS col0 FROM tab1 AS cor0
----
-12

query II rowsort
SELECT ( - 67 ), col2 AS col2 FROM tab0
----
-67
10
-67
47
-67
99

query I rowsort
SELECT 13 * - col0 FROM tab2
----
-598
-832
-975

query I rowsort
SELECT DISTINCT col2 * col2 + 99 * col1 FROM tab2 AS cor0
----
5578
9223
9997

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8689
SELECT + + col1 * CAST( + + col0 AS SIGNED ) DIV col0 * - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-8689
SELECT + + col1 * CAST ( + + col0 AS INTEGER ) / col0 * - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= col1 * col2
----

query II rowsort
SELECT + 46 * col2, - col1 AS col0 FROM tab1 AS cor0
----
2714
-5
3128
-47
4416
-14

query I rowsort
SELECT ALL - - col1 * - 86 * + col1 * + - 79 * 13 AS col0 FROM tab2 AS cor0
----
229725522
396477458
523661138

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT ALL + col2 DIV + + 18 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL + col2 / + + 18 FROM tab2 AS cor0
----
1
2
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 NOT IN ( + ( col1 ) ) )
----

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT NULL NOT IN ( - - col2, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8696
SELECT - COUNT( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8696
SELECT - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab0 WHERE 15 * + - 5 + - 41 > ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT - COUNT( - col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8699
SELECT - COUNT ( - col0 ) FROM tab0
----
-3

query I rowsort
SELECT + ( 12 ) AS col0 FROM tab0
----
12
12
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + MAX( DISTINCT - - col1 ) + ( + 89 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT - - col1 ) + ( + 89 ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8702
SELECT ALL ( - 99 ) * + col2 * - + col1 + col2 DIV + + col2 FROM tab1
----
133057
29206
316405

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL ( - 99 ) * + col2 * - + col1 + col2 / + + col2 FROM tab1
----
133057
29206
316405

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8703
SELECT - 83 + - - CAST( - - 36 AS SIGNED ) + + - 96 DIV - - 51 FROM tab1 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-8703
SELECT - 83 + - - CAST ( - - 36 AS INTEGER ) + + - 96 / - - 51 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8704
SELECT + - 72 DIV + COUNT( * ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8704
SELECT + - 72 / + COUNT ( * ) FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT - SUM( + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8705
SELECT - SUM ( + col1 ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT 47 + + 20 AS col2 FROM tab2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8707
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 66 + + col1 AND + - CAST( + + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8707
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 66 + + col1 AND + - CAST ( + + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8708
SELECT COUNT( * ) + - 37 AS col0, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-34
-3

skipif mysql # not compatible
query II rowsort label-8708
SELECT COUNT ( * ) + - 37 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-34
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT ALL - 2 - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - 2 - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 41 NOT IN ( col1 - - - col1, 45 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - - col1 col0 FROM tab1
----
138
65
90

query I rowsort
SELECT 81 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - ( 30 ) ) col0, + col2 AS col2 FROM tab2
----
-30
23
-30
40
-30
58

query I rowsort
SELECT col0 * - 67 FROM tab2
----
-3082
-4288
-5025

query I rowsort
SELECT ALL col0 * - + col1 * - 50 FROM tab1
----
21250
213850
35700

query I rowsort
SELECT + 1 * + ( + 66 ) FROM tab1
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 36 ) col2 FROM tab1
----
-36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT + + 13 * 4 + - COUNT( * ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8719
SELECT + + 13 * 4 + - COUNT ( * ) FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT SUM( ALL + + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8720
SELECT SUM ( ALL + + col2 ) AS col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT DISTINCT - COUNT( * ), 8 AS col2 FROM tab2
----
-3
8

skipif mysql # not compatible
query II rowsort label-8721
SELECT DISTINCT - COUNT ( * ), 8 AS col2 FROM tab2
----
-3
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT DISTINCT - col1 * - CAST( + 19 AS SIGNED ) FROM tab1
----
266
893
95

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT - col1 * - CAST ( + 19 AS INTEGER ) FROM tab1
----
266
893
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT - + ( + + 19 ) * + - col2 FROM tab2 AS cor0
----
1102
437
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col0 * + 8 col1 FROM tab2 AS cor0 WHERE NOT - col0 = + + 86 * - ( - 82 )
----
-16928
-32768
-45000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8726
SELECT + 68 * - - CAST( NULL AS SIGNED ) + MIN( - + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT + 68 * - - CAST ( NULL AS INTEGER ) + MIN ( - + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 70 * + 33 AS col1 FROM tab2 AS cor0
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT DISTINCT + SUM( DISTINCT + + ( + 99 ) ) * + COUNT( * ) FROM tab1 cor0
----
297

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT + SUM ( DISTINCT + + ( + 99 ) ) * + COUNT ( * ) FROM tab1 cor0
----
297

query II rowsort
SELECT DISTINCT + + col1, col0 * - 19 AS col0 FROM tab0 AS cor0
----
1
-1843
21
-1653
81
-285

query I rowsort
SELECT - col2 * - + 17 + - + col2 AS col2 FROM tab1 AS cor0
----
1088
1536
944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + col1 * - + 68 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + col1 * - + 68 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 10 FROM tab0 cor0 WHERE NOT - 65 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 5 NOT BETWEEN - + 94 AND col1 - + col1 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8734
SELECT - - col1 DIV 95 + + ( + col2 ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8734
SELECT - - col1 / 95 + + ( + col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8735
SELECT - SUM( - col1 ), - 85 col1 FROM tab2
----
195
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8735
SELECT - SUM ( - col1 ), - 85 col1 FROM tab2
----
195
-85

query II rowsort
SELECT ALL + col2 + col1, - col0 + + - col0 AS col0 FROM tab0
----
100
-194
128
-30
31
-174

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - col0 * 87 - - 37 - + + col0 * - col1 - - 67 NOT BETWEEN ( 40 * - 83 ) AND ( col2 )
----
14
47
5

query I rowsort
SELECT DISTINCT - + 92 FROM tab1 WHERE NULL IS NULL
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT DISTINCT col0 DIV + - 25 FROM tab1
----
-2
-3

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT col0 / + - 25 FROM tab1
----
-2
-3

query I rowsort
SELECT + col2 * + col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

query I rowsort
SELECT DISTINCT col1 * - ( - col0 ) FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT - - col2 DIV + col1 * - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT - - col2 / + col1 * - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 40 * + - col1 AS col1 FROM tab0 AS cor0
----
-3240
-40
-840

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 33 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8745
SELECT DISTINCT - col0 DIV - col2 - 55, col0 FROM tab1 AS cor0
----
-54
85
-54
91
-55
51

skipif mysql # not compatible
query II rowsort label-8745
SELECT DISTINCT - col0 / - col2 - 55, col0 FROM tab1 AS cor0
----
-54
85
-54
91
-55
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8746
SELECT + col2, col0 + CAST( 53 AS SIGNED ) FROM tab2 AS cor0
----
23
99
40
117
58
128

skipif mysql # not compatible
query II rowsort label-8746
SELECT + col2, col0 + CAST ( 53 AS INTEGER ) FROM tab2 AS cor0
----
23
99
40
117
58
128

query II rowsort
SELECT + col0, col1 * + 3 FROM tab0 AS cor0
----
15
243
87
63
97
3

query I rowsort
SELECT ALL - col0 - + + 70 AS col2 FROM tab1 AS cor0
----
-121
-155
-161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - - - col1 + - 35 col1, - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-101
-96
31
-108
61
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - col2 col1 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT ALL CAST( CAST( col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT + + MAX( - 51 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8752
SELECT + + MAX ( - 51 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8753
SELECT COUNT( + - col0 ) * 1 * 37 * - CAST( + 39 AS SIGNED ) FROM tab2
----
-4329

skipif mysql # not compatible
query I rowsort label-8753
SELECT COUNT ( + - col0 ) * 1 * 37 * - CAST ( + 39 AS INTEGER ) FROM tab2
----
-4329

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT COUNT( * ) * ( - 1 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8754
SELECT COUNT ( * ) * ( - 1 ) col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT + col2 DIV - + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8755
SELECT + col2 / - + col0 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT - COUNT( ALL + + col0 ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8756
SELECT - COUNT ( ALL + + col0 ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 82 * - 61 col2 FROM tab2
----
-115046
-200080
-290116

onlyif mysql # DIV for integer division: 
query I rowsort label-8758
SELECT DISTINCT + + ( - col2 ) DIV col1 FROM tab1 cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + + ( - col2 ) / col1 FROM tab1 cor0
----
-1
-11
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 66 col0, - col1 * 88 AS col0 FROM tab1 AS cor0
----
66
-1232
66
-4136
66
-440

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + 20 + col1 )
----

query I rowsort
SELECT - + 80 * - - col2 FROM tab1 AS cor0
----
-4720
-5440
-7680

query I rowsort
SELECT - 33 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, - 63 AS col1 FROM tab2 AS cor0
----
-23
-63
-40
-63
-58
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT DISTINCT + 31 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT + 31 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL - - 69 AS col1 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT ( 0 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 + - col1 + + ( - 27 ) * - 78 col1 FROM tab1
----
2036
2075
2137

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8768
SELECT 33 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT 33 + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - col2 NOT BETWEEN col0 AND + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 41 + + col0 AS col1 FROM tab0
----
128
138
56

onlyif mysql # DIV for integer division: 
query II rowsort label-8771
SELECT col1 + ( - col0 ) + 50 AS col0, + ( - col2 ) * - 68 * - col2 DIV - col2 AS col2 FROM tab1
----
-30
4012
13
6528
6
4624

skipif mysql # not compatible
query II rowsort label-8771
SELECT col1 + ( - col0 ) + 50 AS col0, + ( - col2 ) * - 68 * - col2 / - col2 AS col2 FROM tab1
----
-30
4012
13
6528
6
4624

onlyif mysql # DIV for integer division: 
query II rowsort label-8772
SELECT ALL col1 + - col1 - - - col1 * - col2 DIV - col2 - + col1, col0 FROM tab0
----
-162
15
-2
97
-42
87

skipif mysql # not compatible
query II rowsort label-8772
SELECT ALL col1 + - col1 - - - col1 * - col2 / - col2 - + col1, col0 FROM tab0
----
-162
15
-2
97
-42
87

query I rowsort
SELECT 82 + col0 + 88 - col0 * - col2 AS col2 FROM tab0
----
1127
890
9870

query I rowsort
SELECT ( + col2 ) + + col1 + col0 + + col2 AS col0 FROM tab2
----
143
221
258

query I rowsort
SELECT + + ( + col1 ) AS col2 FROM tab0 cor0
----
1
21
81

query II rowsort
SELECT + - ( + col2 ), col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8777
SELECT ( + - 14 ) AS col2, - 19 * COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
-14
-57

skipif mysql # not compatible
query II rowsort label-8777
SELECT ( + - 14 ) AS col2, - 19 * COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-14
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * - col0 col2 FROM tab0 AS cor0
----
1020
5916
6596

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8780
SELECT CAST( + - COUNT( col0 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8780
SELECT CAST ( + - COUNT ( col0 ) AS INTEGER ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, 57 FROM tab2
----
23
57
40
57
58
57

query II rowsort
SELECT ALL + col0, - 84 AS col2 FROM tab1
----
51
-84
85
-84
91
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT DISTINCT - CAST( + col1 AS SIGNED ) FROM tab1 WHERE NOT 84 * col0 * 16 BETWEEN NULL AND + col0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) FROM tab1 WHERE NOT 84 * col0 * 16 BETWEEN NULL AND + col0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - SUM( 31 ) col1 FROM tab0, tab0 AS cor0
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8784
SELECT - SUM ( 31 ) col1 FROM tab0, tab0 AS cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL SUM( DISTINCT 71 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL SUM ( DISTINCT 71 ) FROM tab0
----
71

query II rowsort
SELECT DISTINCT col0 AS col1, - 47 + - col2 AS col1 FROM tab2
----
46
-70
64
-87
75
-105

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8788
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col2, + MAX( ALL + 36 ) AS col2 FROM tab2 WHERE NOT ( NOT NULL BETWEEN NULL AND + 47 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8788
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col2, + MAX ( ALL + 36 ) AS col2 FROM tab2 WHERE NOT ( NOT NULL BETWEEN NULL AND + 47 )
----
0
NULL

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8791
SELECT 25 * + 68 AS col2, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1700
9

skipif mysql # not compatible
query II rowsort label-8791
SELECT 25 * + 68 AS col2, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1700
9

query I rowsort
SELECT DISTINCT - 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL ( - + MAX( ALL - col0 ) ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8793
SELECT ALL ( - + MAX ( ALL - col0 ) ) col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL + MIN( ALL + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL + MIN ( ALL + col0 ) FROM tab1 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + - 37 col0 FROM tab1 AS cor0
----
-105
-133
-96

query I rowsort
SELECT ALL col2 * - + col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - COUNT( ALL col1 ) FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT - COUNT ( ALL col1 ) FROM tab0 WHERE NULL > NULL
----
0

query I rowsort
SELECT + col2 + + col0 AS col0 FROM tab1 WHERE + 0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + 13 AS col2 FROM tab0
----
1053
13
273

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN 11 AND + 83
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE 34 * - + 75 BETWEEN 5 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8802
SELECT CAST( NULL AS SIGNED ) * - ( - + col2 ) + + col1 - + col0 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-8802
SELECT CAST ( NULL AS INTEGER ) * - ( - + col2 ) + + col1 - + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL + - 60 * CAST( NULL AS SIGNED ) + - AVG ( + 54 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + - 60 * CAST ( NULL AS INTEGER ) + - AVG ( + 54 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 1 + - - col0 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT DISTINCT - ( - - 31 ) * + MIN( DISTINCT - col0 ) * + COUNT( * ) FROM tab0 AS cor0
----
9021

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT - ( - - 31 ) * + MIN ( DISTINCT - col0 ) * + COUNT ( * ) FROM tab0 AS cor0
----
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8806
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT + col1 * - col0 AS col0 FROM tab1 WHERE NOT + + col1 BETWEEN - - col0 AND + - col1
----
-425
-4277
-714

query I rowsort
SELECT - 47 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - ( + - 4 ) * - 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT + col1 DIV + 5 AS col1 FROM tab2 AS cor0
----
10
13
15

skipif mysql # not compatible
query I rowsort label-8810
SELECT + col1 / + 5 AS col1 FROM tab2 AS cor0
----
10
13
15

query II rowsort
SELECT - 41, + 71 + - ( - 82 ) + - 49 AS col1 FROM tab1 cor0
----
-41
104
-41
104
-41
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT + ( SUM( DISTINCT - 86 ) ) * 76 FROM tab2 AS cor0 WHERE NOT - 13 * col1 IS NULL
----
-6536

skipif mysql # not compatible
query I rowsort label-8812
SELECT + ( SUM ( DISTINCT - 86 ) ) * 76 FROM tab2 AS cor0 WHERE NOT - 13 * col1 IS NULL
----
-6536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 46 col0 FROM tab0 AS cor0
----
-46

query II rowsort
SELECT ALL col0 AS col2, + col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 cor0 WHERE NOT col0 * + - 39 <> ( - col1 - - ( col2 ) )
----

query II rowsort
SELECT - col1 AS col1, + 54 + - col1 AS col1 FROM tab0 AS cor0
----
-1
53
-21
33
-81
-27

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE - col0 + col0 > NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND 24
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8819
SELECT DISTINCT COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 0 * - + col1 * - 73 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8821
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + - col2 NOT IN ( - col0 + + col0, - ( 70 ) * - + CAST( 85 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8821
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + - col2 NOT IN ( - col0 + + col0, - ( 70 ) * - + CAST ( 85 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8822
SELECT DISTINCT * FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8822
SELECT DISTINCT * FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT + col1, col2 FROM tab0 WHERE NOT - col0 + + col1 IS NOT NULL
----

query II rowsort
SELECT ( + ( - col1 ) ), + col2 FROM tab0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT col1 * - 78 AS col1 FROM tab2
----
-3978
-5226
-6006

query I rowsort
SELECT - col1 * + - col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL col0 + - - col0 AS col2 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8828
SELECT DISTINCT 55 DIV - COUNT( - 1 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT 55 / - COUNT ( - 1 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

query II rowsort
SELECT + col1, col1 AS col1 FROM tab1
----
14
14
47
47
5
5

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 3 ) > NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE col2 + + 84 NOT IN ( + col2, + col1 + + 4 * col2 )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - + 81 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 15 <= NULL
----

query I rowsort
SELECT DISTINCT col1 * + - ( + + col1 ) * + ( - 65 ) FROM tab1 AS cor0
----
12740
143585
1625

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 - + + col1 * col1 - + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - + col1 col2, - 2 FROM tab2
----
-2346
-2
-4928
-2
-5025
-2

query II rowsort
SELECT DISTINCT col1 + + 90 AS col0, - col0 * col1 AS col1 FROM tab0
----
111
-1827
171
-1215
91
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT ALL - ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL - ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + ( 17 ) FROM tab0
----
-30
-82
7

query III rowsort
SELECT * FROM tab0 WHERE NULL = + col2
----

query I rowsort
SELECT ALL - col2 + - col1 + + col1 * - + col1 FROM tab1 AS cor0
----
-2324
-306
-89

query I rowsort
SELECT ( - 96 ) AS col1 FROM tab1 AS cor0
----
-96
-96
-96

query II rowsort
SELECT 83 * col0, col1 AS col2 FROM tab0 cor0
----
1245
81
7221
21
8051
1

query I rowsort
SELECT col1 * - - col2 * - + col1 AS col2 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT ALL + 53 AS col2 FROM tab2
----
53
53
53

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 46 AND - 44
----

query I rowsort
SELECT - 69 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> - 3
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8849
SELECT 53 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8849
SELECT 53 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT + col1 * + 87 AS col2 FROM tab2 AS cor0
----
4437
5829
6699

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8851
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - col2 + col0
----

query I rowsort
SELECT DISTINCT + + 69 * - col2 FROM tab0 AS cor0
----
-3243
-6831
-690

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8854
SELECT CAST( - 52 AS SIGNED ) DIV - col2 + - col2 * + + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-8854
SELECT CAST ( - 52 AS INTEGER ) / - col2 + - col2 * + + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT DISTINCT + ( + + col2 ) DIV + - 21 AS col1 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT + ( + + col2 ) / + - 21 AS col1 FROM tab1
----
-2
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8857
SELECT + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT - COUNT( * ) * 1 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + ( col1 ) - - col1 + - 12 )
----
0

skipif mysql # not compatible
query I rowsort label-8858
SELECT - COUNT ( * ) * 1 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + ( col1 ) - - col1 + - 12 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8859
SELECT DISTINCT col1 DIV + - col0 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8859
SELECT DISTINCT col1 / + - col0 col1 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8860
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL ( + 22 ) + + col1 AS col1 FROM tab1
----
27
36
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT + MIN( + 51 ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8863
SELECT + MIN ( + 51 ) FROM tab0 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT ALL CAST( - 60 AS SIGNED ) FROM tab1 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL CAST ( - 60 AS INTEGER ) FROM tab1 AS cor0
----
-60
-60
-60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - ( + 99 )
----

query I rowsort
SELECT col2 + - 47 AS col1 FROM tab2
----
-24
-7
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8867
SELECT 13 + - - COUNT( + - col2 ) AS col1, + 27 FROM tab2 AS cor0
----
16
27

skipif mysql # not compatible
query II rowsort label-8867
SELECT 13 + - - COUNT ( + - col2 ) AS col1, + 27 FROM tab2 AS cor0
----
16
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - + col2 + 32 * col1 + - + col2 col0 FROM tab2 cor0
----
1609
2086
2424

query I rowsort
SELECT 48 + + col1 AS col1 FROM tab2 AS cor0
----
115
125
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8870
SELECT ALL - 85 DIV col2 AS col0, col2 * + + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
705
-8
870
0
9603

skipif mysql # not compatible
query II rowsort label-8870
SELECT ALL - 85 / col2 AS col0, col2 * + + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
705
-8
870
0
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL SUM( - 59 ) FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL SUM ( - 59 ) FROM tab2 AS cor0
----
-177

query I rowsort
SELECT + - col0 * + + col1 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + ( + + col1 ) AS col0 FROM tab0 cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 36 col0 FROM tab1
----
-1692
-180
-504

query II rowsort
SELECT DISTINCT - col1 AS col1, col0 AS col2 FROM tab0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT - 26 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8877
SELECT ALL CAST( + - col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL CAST ( + - col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND - col2 AND NULL NOT BETWEEN NULL AND - col2 * - col0 * + col1 * - 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8879
SELECT DISTINCT CAST( - CAST( + col1 AS SIGNED ) AS SIGNED ) + - col2 * - col0 * + col1, col0 col1 FROM tab1
----
25070
85
290789
91
68530
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8879
SELECT DISTINCT CAST ( - CAST ( + col1 AS INTEGER ) AS INTEGER ) + - col2 * - col0 * + col1, col0 col1 FROM tab1
----
25070
85
290789
91
68530
51

query I rowsort
SELECT DISTINCT col1 - - + col1 AS col0 FROM tab2
----
102
134
154

query I rowsort
SELECT + - col1 - - col1 - - col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - 96 FROM tab1 AS cor0 WHERE - 6 * 46 BETWEEN NULL AND ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8884
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 + + col0 IS NULL
----
3

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE ( + + col1 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8886
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col0, 45 * 56 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
2520
-21
2520
-81
2520

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8886
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col0, 45 * 56 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
2520
-21
2520
-81
2520

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8887
SELECT ALL * FROM tab1 WHERE + 74 NOT BETWEEN + CAST( NULL AS SIGNED ) * - 46 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8887
SELECT ALL * FROM tab1 WHERE + 74 NOT BETWEEN + CAST ( NULL AS INTEGER ) * - 46 AND NULL
----

query I rowsort
SELECT col2 * - - col1 * col0 AS col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT DISTINCT COUNT( * ) * - 9 col0 FROM tab1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8889
SELECT DISTINCT COUNT ( * ) * - 9 col0 FROM tab1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + + col2 * col2 AS col1 FROM tab1
----
295885
420784
470016

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + + col2 * col2 AS col1 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT 92 * - ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8891
SELECT 92 * - ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-276

query I rowsort
SELECT DISTINCT col0 * + - col2 + - 43 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN + 85 AND + col1
----

query I rowsort
SELECT ( - + 80 ) FROM tab1
----
-80
-80
-80

query II rowsort
SELECT col0, - col0 AS col1 FROM tab0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN + + ( - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 31 * 51 * + col1 + + col0 AS col2 FROM tab0
----
128076
1678
33288

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 43 * - ( + + col2 )
----

query I rowsort
SELECT 34 + + - col0 FROM tab0
----
-53
-63
19

query I rowsort
SELECT + col2 + + + col2 * col2 * + col2 AS col2 FROM tab2 AS cor0
----
12190
195170
64040

query I rowsort
SELECT - col2 * - col1 + + - col1 + - + 64 + + + col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = - 96
----

query I rowsort
SELECT + - col0 - + + 44 * - col1 FROM tab2 AS cor0
----
2198
2873
3324

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - 18 ) FROM tab0 cor0
----
-18

query I rowsort
SELECT DISTINCT 93 - col2 FROM tab1 cor0
----
-3
25
34

query II rowsort
SELECT ALL col0 + + 44 AS col2, col0 FROM tab1 WHERE NOT NULL IN ( - col0, - col0 + col1, 0, col0, - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + ( col2 ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + 88 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 88 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT 68 * + COUNT( * ) AS col2 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-8909
SELECT 68 * + COUNT ( * ) AS col2 FROM tab0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8910
SELECT DISTINCT - COUNT( * ), + CAST( 32 AS SIGNED ) col1 FROM tab1
----
-3
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8910
SELECT DISTINCT - COUNT ( * ), + CAST ( 32 AS INTEGER ) col1 FROM tab1
----
-3
32

onlyif mysql # DIV for integer division: 
query II rowsort label-8911
SELECT col2 + + - col2 DIV + - col2, col2 FROM tab1 AS cor0
----
60
59
69
68
97
96

skipif mysql # not compatible
query II rowsort label-8911
SELECT col2 + + - col2 / + - col2, col2 FROM tab1 AS cor0
----
60
59
69
68
97
96

query I rowsort
SELECT col0 + + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1664
3439
575

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8913
SELECT CAST( NULL AS DECIMAL ) * col1 + - col1 + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT CAST ( NULL AS REAL ) * col1 + - col1 + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ( + col2 ) AS col2, - col0 * - col1 + + - 27 FROM tab2
----
23
2319
40
4901
58
4998

query I rowsort
SELECT ALL col0 + + 53 + - 78 * + col2 + - 6 FROM tab2
----
-1701
-3009
-4402

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8916
SELECT + - 68 + - + col1, + 5 AS col1 FROM tab1 WHERE - - 74 * - CAST( NULL AS SIGNED ) + + 9 >= - - col2 + + col2
----

skipif mysql # not compatible
query II rowsort label-8916
SELECT + - 68 + - + col1, + 5 AS col1 FROM tab1 WHERE - - 74 * - CAST ( NULL AS INTEGER ) + + 9 >= - - col2 + + col2
----

query I rowsort
SELECT DISTINCT col0 + - 63 AS col0 FROM tab2
----
-17
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT DISTINCT - MAX( DISTINCT + col1 ) + - 84 FROM tab1
----
-131

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT - MAX ( DISTINCT + col1 ) + - 84 FROM tab1
----
-131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - ( + col0 ) * 35 * - 34 col1 FROM tab2 AS cor0
----
1259020
3046400
5176500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 + - col2 col0 FROM tab0 AS cor0
----
-110
-162
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT - - col1 * - 30 DIV - - ( + 30 ) + - + col2 + + + col0 * - - col2 * + 53 - - col2 * + + 3 AS col2 FROM tab1 cor0
----
259666
265908
328053

skipif mysql # not compatible
query I rowsort label-8921
SELECT - - col1 * - 30 / - - ( + 30 ) + - + col2 + + + col0 * - - col2 * + 53 - - col2 * + + 3 AS col2 FROM tab1 cor0
----
259666
265908
328053

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 - - ( - col2 ) + - col2 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT - + COUNT( + - 47 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8923
SELECT - + COUNT ( + - 47 ) col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - col1, col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL - MAX( - + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - MAX ( - + col1 ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + ( - 73 ) * + col0 + - 56 AS col1 FROM tab2 AS cor0
----
-3414
-4728
-5531

query I rowsort
SELECT ALL - ( - col0 ) * - + ( + col1 ) FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 IS NOT NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT - 84 AS col2, - col1 AS col1 FROM tab2
----
-84
-51
-84
-67
-84
-77

query II rowsort
SELECT - col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT DISTINCT + + SUM( - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT + + SUM ( - + col1 ) FROM tab0 AS cor0
----
-103

query II rowsort
SELECT DISTINCT - 46, col1 FROM tab0 AS cor0
----
-46
1
-46
21
-46
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8934
SELECT CAST( - + COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8934
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + 46 - - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8938
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < - CAST( - 70 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8938
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < - CAST ( - 70 AS INTEGER )
----

query II rowsort
SELECT col0 AS col2, col2 * col0 AS col1 FROM tab2
----
46
1058
64
2560
75
4350

query I rowsort
SELECT ALL + col2 + - col0 * + col0 AS col1 FROM tab0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - ( - + COUNT( * ) ) + - + COUNT( * ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8941
SELECT - ( - + COUNT ( * ) ) + - + COUNT ( * ) col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 50 + + col1 FROM tab1
----
55
64
97

query I rowsort
SELECT col2 + - + col1 AS col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT + 17 + - + 27 AS col1 FROM tab0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT - SUM( ( - - 19 ) ) + 65 AS col2 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-8945
SELECT - SUM ( ( - - 19 ) ) + 65 AS col2 FROM tab0
----
8

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 * - col2 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT ALL 71 + col1 * col1 FROM tab1
----
2280
267
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + 30 * + MAX( - col1 ) + + 53 + - - 53 AS col2 FROM tab0 cor0
----
76

skipif mysql # not compatible
query I rowsort label-8948
SELECT + 30 * + MAX ( - col1 ) + + 53 + - - 53 AS col2 FROM tab0 cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT ALL - CAST( ( 86 ) AS SIGNED ) + + 4 FROM tab1 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL - CAST ( ( 86 ) AS INTEGER ) + + 4 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT + - col0 AS col2 FROM tab1 AS cor0 WHERE - 36 + + col0 + - + 94 >= + - col1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE col0 < 85 * - 4 * + - 45
----
10
47
99

query I rowsort
SELECT ALL - + 3 * - - col0 + 94 FROM tab0 AS cor0
----
-167
-197
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( + col0 ) * - col0 IN ( + col0, 54, + 63, - col1, + col2 * - 20 + - 57 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8954
SELECT - 56 DIV - COUNT( * ) DIV - COUNT( DISTINCT - 87 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-8954
SELECT - 56 / - COUNT ( * ) / - COUNT ( DISTINCT - 87 ) FROM tab2
----
-18

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----

query I rowsort
SELECT - col2 - - - 23 FROM tab0
----
-122
-33
-70

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT - col1 * col1 * col0 * + col0 - 49 * - + 47 AS col0 FROM tab1
----
-178322
-18290426
-507493

query I rowsort
SELECT DISTINCT - - ( - col2 ) + + - col0 AS col2 FROM tab2 AS cor0 WHERE 9 + - col2 IS NOT NULL
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - 32 + - col1 + + - col0 AS col0 FROM tab2 AS cor0
----
-129
-173
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT + + 60 col0 FROM tab0 AS cor0 WHERE + CAST( - col0 AS SIGNED ) / col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8961
SELECT + + 60 col0 FROM tab0 AS cor0 WHERE + CAST ( - col0 AS INTEGER ) / col1 IS NULL
----

query I rowsort
SELECT - AVG ( ALL + col2 ) FROM tab2 cor0 WHERE ( + col1 ) > col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8963
SELECT DISTINCT - ( - CAST( AVG ( - - col2 ) AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NULL = 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT - ( - CAST ( AVG ( - - col2 ) AS REAL ) ) FROM tab1 AS cor0 WHERE NULL = 41
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - 46 FROM tab0 AS cor0 WHERE ( NULL ) <> - 5 - - col1
----

query I rowsort
SELECT 61 + + 4 FROM tab2 AS cor0
----
65
65
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT DISTINCT + CAST( + ( + + 96 ) AS SIGNED ) * 51 FROM tab2 AS cor0
----
4896

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT + CAST ( + ( + + 96 ) AS INTEGER ) * 51 FROM tab2 AS cor0
----
4896

query I rowsort
SELECT ALL - - 30 FROM tab0 AS cor0
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT DISTINCT + col2 * - + col2 + + ( - col0 ) + 89 * CAST( NULL AS SIGNED ) / - - col1 + - + 75 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT + col2 * - + col2 + + ( - col0 ) + 89 * CAST ( NULL AS INTEGER ) / - - col1 + - + 75 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT DISTINCT + 29 * + + MAX( - + col1 ) * - COUNT( * ) * COUNT( - - col1 ) AS col0 FROM tab2 AS cor0
----
13311

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT + 29 * + + MAX ( - + col1 ) * - COUNT ( * ) * COUNT ( - - col1 ) AS col0 FROM tab2 AS cor0
----
13311

onlyif mysql # DIV for integer division: 
query II rowsort label-8972
SELECT ALL + col1 DIV - - col0 AS col1, - col2 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

skipif mysql # not compatible
query II rowsort label-8972
SELECT ALL + col1 / - - col0 AS col1, - col2 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8973
SELECT ALL * FROM tab0 WHERE NOT - CAST( - ( + - col1 ) AS SIGNED ) = - 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8973
SELECT ALL * FROM tab0 WHERE NOT - CAST ( - ( + - col1 ) AS INTEGER ) = - 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 27 > NULL
----

query I rowsort
SELECT 46 * col1 AS col1 FROM tab1
----
2162
230
644

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 79 BETWEEN + ( - + ( - - col0 ) ) / - + col1 AND + col1 + - col1 + - 78 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col0 + - 48 * col0 FROM tab2
----
51
-2162
67
-3525
77
-3008

query I rowsort
SELECT ALL - + 43 * + col1 FROM tab2 AS cor0
----
-2193
-2881
-3311

query III rowsort
SELECT + + 22 AS col1, - 8 AS col0, + + 46 * + col2 * - 31 FROM tab1 AS cor0 WHERE NOT ( NOT + + 47 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT - COUNT( * ) * - MAX( - 45 ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8980
SELECT - COUNT ( * ) * - MAX ( - 45 ) FROM tab1 AS cor0
----
-135

query I rowsort
SELECT - 4 * - 2 * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-376
-792
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT col0 / - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT col0 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL + MIN( DISTINCT + + col0 ) AS col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL + MIN ( DISTINCT + + col0 ) AS col0 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT - 12 + MAX( ALL + col2 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-8984
SELECT - 12 + MAX ( ALL + col2 ) AS col0 FROM tab2 cor0
----
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col2 <> + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 21 + + ( + + col1 ) FROM tab0 AS cor0
----
-20
0
60

query I rowsort
SELECT + 22 + - col2 * + + col2 AS col2 FROM tab1 AS cor0
----
-3459
-4602
-9194

query I rowsort
SELECT + 78 FROM tab2 AS cor0 WHERE + col1 - - ( ( - + 42 ) ) <= NULL
----

query I rowsort
SELECT 56 + + 64 FROM tab0 AS cor0
----
120
120
120

query I rowsort
SELECT - ( + ( - ( col0 ) ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NULL IN ( - + col1, - col2 * + 29 + + col1 - 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 * col2 + - ( - ( col0 ) ) col0 FROM tab0
----
1660
3562
437

query I rowsort
SELECT ( + + 50 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8994
SELECT DISTINCT ( + 73 ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-8994
SELECT DISTINCT ( + 73 ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT ALL COUNT( ALL CAST( + col1 AS SIGNED ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL COUNT ( ALL CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT + 63 - COUNT( * ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8996
SELECT + 63 - COUNT ( * ) FROM tab2 AS cor0
----
60

query I rowsort
SELECT ( - 94 ) FROM tab1 AS cor0 WHERE - col2 > + col2
----

query I rowsort
SELECT DISTINCT + col1 * 33 * 81 * 54 FROM tab2 AS cor0
----
11114334
7361442
9670914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8999
SELECT - - MAX( - col0 ) + 93 + + 49 * - 39 + - MIN( CAST( col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-1887

skipif mysql # not compatible
query I rowsort label-8999
SELECT - - MAX ( - col0 ) + 93 + + 49 * - 39 + - MIN ( CAST ( col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT + ( - COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9000
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL + 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL COUNT( * ) * - + COUNT( * ) col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9002
SELECT ALL COUNT ( * ) * - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT MIN( + 35 ) AS col2 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9003
SELECT MIN ( + 35 ) AS col2 FROM tab1 AS cor0
----
35

query I rowsort
SELECT DISTINCT - col1 * col1 * + + 46 * 96 AS col1 FROM tab2 AS cor0
----
-11486016
-19823424
-26182464

query I rowsort
SELECT ALL 17 * - 69 * + 25 + - - col0 AS col1 FROM tab1 AS cor0
----
-29234
-29240
-29274

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 50 * - 60 < col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 31 + + - 95 >= - 20
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - MIN( DISTINCT + - 31 ) AS col1 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-9009
SELECT - MIN ( DISTINCT + - 31 ) AS col1 FROM tab2
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + + 86 ) col1, 76 AS col0 FROM tab2
----
86
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9011
SELECT DISTINCT - col2 / - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT - col2 / - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT DISTINCT 83 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT 83 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-249

query I rowsort
SELECT ALL + - 72 * + col2 FROM tab0 AS cor0
----
-3384
-7128
-720

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 + - - col1 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col2 - - 63 + - col0 * col0 FROM tab2 AS cor0
----
-2559
-5593
-8868

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT - COUNT( + + 49 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9017
SELECT - COUNT ( + + 49 ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col2 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT - ( COUNT( * ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9019
SELECT DISTINCT - ( COUNT ( * ) ) col0 FROM tab1
----
-3

query I rowsort
SELECT ALL - col1 * + 99 FROM tab1
----
-1386
-4653
-495

query I rowsort
SELECT - ( + 56 ) + col0 AS col2 FROM tab1
----
-5
29
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT SUM( DISTINCT - col2 ) * ( - COUNT( * ) ) + COUNT( * ) + COUNT( * ) FROM tab0
----
474

skipif mysql # not compatible
query I rowsort label-9022
SELECT SUM ( DISTINCT - col2 ) * ( - COUNT ( * ) ) + COUNT ( * ) + COUNT ( * ) FROM tab0
----
474

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> col0
----

query I rowsort
SELECT ALL col1 + - + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9025
SELECT COUNT( - col1 ) DIV - MIN( col0 ) + - 78 col2 FROM tab2
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9025
SELECT COUNT ( - col1 ) / - MIN ( col0 ) + - 78 col2 FROM tab2
----
-78

query I rowsort
SELECT DISTINCT - ( + 16 ) + - 92 FROM tab1
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9027
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT + - col1 + - CAST( + col2 AS SIGNED ) + - - col0 FROM tab1 AS cor0
----
-24
-59
21

skipif mysql # not compatible
query I rowsort label-9028
SELECT + - col1 + - CAST ( + col2 AS INTEGER ) + - - col0 FROM tab1 AS cor0
----
-24
-59
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - - 15 - col0 col0 FROM tab2 AS cor0
----
1050
644
896

query I rowsort
SELECT - 17 - - - 60 FROM tab2
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT ALL + col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 36 ) col1 FROM tab1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9033
SELECT - ( - col0 ) col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9033
SELECT - ( - col0 ) col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT ( col0 ) DIV + 57 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9034
SELECT ( col0 ) / + 57 AS col2 FROM tab2
----
0
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 21 * + 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9036
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + col0 + + - 22 / CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9036
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + col0 + + - 22 / CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - + col0 * + col1 + - col2 FROM tab0 AS cor0
----
-1262
-1837
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT - COUNT( 58 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9038
SELECT - COUNT ( 58 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 99 col2 FROM tab0
----
1485
8613
9603

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - col2 AND NULL
----

query I rowsort
SELECT ALL - ( + + 14 ) AS col0 FROM tab1
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL + - COUNT( * ) FROM tab1 WHERE + 45 * + - 34 * col2 + - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE + 45 * + - 34 * col2 + - col0 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - ( + + 95 ) * + col0 + - - 93 FROM tab0
----
-1332
-8172
-9122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 40 + + - col2 * - col0 * - 74 * + + 26 + - 3 col0, + 40 * col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL - 9 * col2 FROM tab0
----
-423
-891
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9046
SELECT * FROM tab2 WHERE NOT - col1 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9046
SELECT * FROM tab2 WHERE NOT - col1 <> CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT DISTINCT + col1 / - ( 65 ) + CAST( NULL AS SIGNED ) * 61 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT + col1 / - ( 65 ) + CAST ( NULL AS INTEGER ) * 61 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 65 * + 56 AS col0 FROM tab1
----
3640
3640
3640

query I rowsort
SELECT DISTINCT - col2 * 48 FROM tab2
----
-1104
-1920
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE 8 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE 8 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 8 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + 90 * COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-9052
SELECT + 90 * COUNT ( * ) FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9053
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT DISTINCT MAX( ALL + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT MAX ( ALL + col0 ) FROM tab2
----
75

query I rowsort
SELECT 38 * + col2 AS col0 FROM tab2
----
1520
2204
874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9056
SELECT ALL SUM( ALL 13 ) DIV - 79 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL SUM ( ALL 13 ) / - 79 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN ( col1 / - col0 ) AND ( col0 / + ( 63 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT - col0 DIV col1 - col2 AS col2 FROM tab0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-9058
SELECT - col0 / col1 - col2 AS col2 FROM tab0
----
-14
-196
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL COUNT( - 56 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL COUNT ( - 56 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col1 + col1 FROM tab1 WHERE NOT NULL BETWEEN col1 AND 73
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) + 95 * + col2 > + col2 - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT 73 DIV 79 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9062
SELECT 73 / 79 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL 83 + - COUNT( * ) AS col2 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL 83 + - COUNT ( * ) AS col2 FROM tab0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9064
SELECT + 73 DIV + col2 AS col1 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-9064
SELECT + 73 / + col2 AS col1 FROM tab0
----
0
1
7

query I rowsort
SELECT ALL + 62 + - col2 AS col0 FROM tab2 WHERE ( col2 ) < + ( + ( 9 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT 16 DIV 44 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9066
SELECT 16 / 44 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9067
SELECT col2 DIV 86 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9067
SELECT col2 / 86 FROM tab1
----
0
0
1

query I rowsort
SELECT ( - ( - col0 ) ) AS col1 FROM tab1 cor0 WHERE NULL IN ( col2 * 97 + col1 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE + col1 NOT IN ( 15 )
----
59
68
96

query I rowsort
SELECT ALL 38 FROM tab1 AS cor0 WHERE ( 80 * - col1 + ( col1 ) ) <> 86 - 76
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT col2 DIV + col0 + + ( + col1 ) FROM tab0 AS cor0
----
2
21
84

skipif mysql # not compatible
query I rowsort label-9071
SELECT col2 / + col0 + + ( + col1 ) FROM tab0 AS cor0
----
2
21
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * col0 AND - col0 / + 13 - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-9074
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT ( 79 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT - 68 DIV + 8 AS col2 FROM tab1 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-9077
SELECT - 68 / + 8 AS col2 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT + - 39 AS col0 FROM tab2 AS cor0
----
-39
-39
-39

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 >= ( col2 )
----

query I rowsort
SELECT - + 47 * 1 FROM tab0 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col2
----
0

skipif mysql # not compatible
query I rowsort label-9081
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL SUM( DISTINCT - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL SUM ( DISTINCT - + col2 ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT SUM( DISTINCT + + col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9083
SELECT SUM ( DISTINCT + + col2 ) col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT ALL COUNT( - col1 ) AS col1 FROM tab1 WHERE NOT NULL IN ( ( + 30 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL COUNT ( - col1 ) AS col1 FROM tab1 WHERE NOT NULL IN ( ( + 30 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NULL = + col2
----

query I rowsort
SELECT DISTINCT 56 + + 17 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 * col0 AND col1
----

query I rowsort
SELECT + col2 + - - col0 - ( 90 + + col2 ) * + col0 FROM tab1 AS cor0
----
-12521
-14219
-9339

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 / - 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - - ( - col0 ) * + 89 FROM tab2 AS cor0
----
-4094
-5696
-6675

query I rowsort
SELECT col0 * - - 71 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-300
1150
448

query III rowsort
SELECT * FROM tab1 WHERE + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL COUNT( * ) + COUNT( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9094
SELECT ALL COUNT ( * ) + COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT MIN( ALL - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9095
SELECT MIN ( ALL - col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT DISTINCT + MIN( ALL - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT + MIN ( ALL - col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-9097
SELECT - col0 AS col2, + col1 DIV col2 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-9097
SELECT - col0 AS col2, + col1 / col2 FROM tab1
----
-51
0
-85
0
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT + MAX( col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9098
SELECT + MAX ( col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT DISTINCT ( col0 ) + - - 6 FROM tab1 AS cor0
----
57
91
97

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE col1 * + col2 + col1 * + col2 IN ( + col0 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT ALL col2 * + col1 DIV + col1 - 45 AS col0 FROM tab0 AS cor0
----
-35
2
54

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL col2 * + col1 / + col1 - 45 AS col0 FROM tab0 AS cor0
----
-35
2
54

query I rowsort
SELECT DISTINCT + + 77 + 29 FROM tab1 AS cor0
----
106

query I rowsort
SELECT ALL col0 * + - col1 + - 22 FROM tab2 AS cor0
----
-2368
-4950
-5047

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 25 > - 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + ( col0 ) - + 2 * + col1 AS col2 FROM tab0 cor0
----
-100
194
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT col1 + - CAST( CAST( col0 AS SIGNED ) AS SIGNED ) + + col0 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9106
SELECT col1 + - CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) + + col0 AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT + col2 + - - col0 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT + col2 + - 97 FROM tab2
----
-39
-57
-74

query I rowsort
SELECT DISTINCT col1 * + + 87 FROM tab2
----
4437
5829
6699

query I rowsort
SELECT col0 + + col2 + + + 81 FROM tab0
----
143
178
277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT + 4 + - + 41 + CAST( + + 93 AS SIGNED ) * 89 AS col2 FROM tab1
----
8240
8240
8240

skipif mysql # not compatible
query I rowsort label-9111
SELECT + 4 + - + 41 + CAST ( + + 93 AS INTEGER ) * 89 AS col2 FROM tab1
----
8240
8240
8240

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL > col0 - - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT - MIN( + col0 ) * 68 AS col1 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
-3468

skipif mysql # not compatible
query I rowsort label-9113
SELECT - MIN ( + col0 ) * 68 AS col1 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
-3468

query I rowsort
SELECT DISTINCT - col0 + 73 * + 48 AS col1 FROM tab1
----
3413
3419
3453

query I rowsort
SELECT col2 * + - col0 AS col1 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab0 WHERE ( - 57 ) NOT IN ( 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( col0 - + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 18 / + col2 >= - col1 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9119
SELECT - col0 DIV + col1 AS col0 FROM tab2 WHERE col0 * - 48 * + + ( + 43 ) NOT BETWEEN col0 AND ( 89 ) OR - ( - col1 ) + CAST( col2 + - 57 DIV - 19 AS DECIMAL ) > NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9119
SELECT - col0 / + col1 AS col0 FROM tab2 WHERE col0 * - 48 * + + ( + 43 ) NOT BETWEEN col0 AND ( 89 ) OR - ( - col1 ) + CAST ( col2 + - 57 / - 19 AS REAL ) > NULL
----
-1
0
0

query I rowsort
SELECT + 42 - + + 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9121
SELECT ALL - CAST( ( + - ( col0 ) ) AS SIGNED ) DIV - ( + col0 ) AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL - CAST ( ( + - ( col0 ) ) AS INTEGER ) / - ( + col0 ) AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT MIN( + 60 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9122
SELECT MIN ( + 60 ) FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT - MAX( col2 ) AS col0 FROM tab1 cor0 WHERE NOT ( 80 + - col2 + - col0 * - + col0 + + col2 ) = ( col2 * - col2 )
----
-96

skipif mysql # not compatible
query I rowsort label-9123
SELECT - MAX ( col2 ) AS col0 FROM tab1 cor0 WHERE NOT ( 80 + - col2 + - col0 * - + col0 + + col2 ) = ( col2 * - col2 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL + - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + - 27, - col2 AS col1 FROM tab0 AS cor0
----
-27
-10
-27
-47
-27
-99

query I rowsort
SELECT DISTINCT - + 30 FROM tab0 cor0
----
-30

query I rowsort
SELECT ALL - col1 * col1 AS col0 FROM tab1 cor0 WHERE NOT 67 * ( + col2 ) = ( + + 7 )
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT - - ( SUM( + col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9128
SELECT - - ( SUM ( + col0 ) ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + ( - col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9130
SELECT DISTINCT col0 AS col2, - 83 / - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9130
SELECT DISTINCT col0 AS col2, - 83 / - - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT col1 AS col1, 10 * + col2 AS col1 FROM tab0
----
1
990
21
100
81
470

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL COUNT( * ) + - - 56 AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL COUNT ( * ) + - - 56 AS col0 FROM tab1
----
59

query I rowsort
SELECT DISTINCT + 53 + col1 FROM tab0
----
134
54
74

query II rowsort
SELECT ALL 94, - 21 AS col2 FROM tab2
----
94
-21
94
-21
94
-21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 8 * - 56 NOT BETWEEN + col2 AND - col1 + col1
----

query I rowsort
SELECT ALL 95 FROM tab0 cor0
----
95
95
95

query I rowsort
SELECT + - col1 * + 71 FROM tab0 AS cor0
----
-1491
-5751
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9139
SELECT * FROM tab0 AS cor0 WHERE CAST( col2 AS SIGNED ) + + col2 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9139
SELECT * FROM tab0 AS cor0 WHERE CAST ( col2 AS INTEGER ) + + col2 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT 70 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT 70 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT - SUM( ALL - + col2 ) * 94 - MIN( ALL col0 ) FROM tab0 AS cor0
----
14649

skipif mysql # not compatible
query I rowsort label-9141
SELECT - SUM ( ALL - + col2 ) * 94 - MIN ( ALL col0 ) FROM tab0 AS cor0
----
14649

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT DISTINCT + MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT + MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT 21 + COUNT( + col1 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9143
SELECT 21 + COUNT ( + col1 ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT + + 57 + 56 AS col2 FROM tab2 AS cor0
----
113
113
113

query I rowsort
SELECT DISTINCT + 70 * + col0 AS col2 FROM tab0
----
1050
6090
6790

query I rowsort
SELECT ALL 63 + + 77 + col0 FROM tab2
----
186
204
215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 29 + + col1, col1 col1 FROM tab2
----
106
77
80
51
96
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT COUNT( * ) * 85 + COUNT( * ) + - 74 FROM tab2
----
184

skipif mysql # not compatible
query I rowsort label-9148
SELECT COUNT ( * ) * 85 + COUNT ( * ) + - 74 FROM tab2
----
184

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9149
SELECT ALL * FROM tab1 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9149
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT - 48 + + - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-9150
SELECT - 48 + + - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT DISTINCT col2 + + 50 DIV col1 FROM tab0 AS cor0
----
12
149
47

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT col2 + + 50 / col1 FROM tab0 AS cor0
----
12
149
47

query I rowsort
SELECT DISTINCT col2 - - - 43 - + 17 * + col1 AS col2 FROM tab2 AS cor0
----
-1124
-1312
-887

query I rowsort
SELECT DISTINCT - col2 * + + 80 FROM tab1 cor0 WHERE - col1 <> - col0
----
-4720
-5440
-7680

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL + + COUNT( * ) - + ( MIN( DISTINCT - + 88 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + + COUNT ( * ) - + ( MIN ( DISTINCT - + 88 ) ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT DISTINCT - 16 * - CAST( NULL AS SIGNED ) + + 98 * + + AVG ( DISTINCT + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT - 16 * - CAST ( NULL AS INTEGER ) + + 98 * + + AVG ( DISTINCT + col1 ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + 29 AS col1, col2 col0 FROM tab0 AS cor0
----
2349
47
29
99
609
10

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 cor0 WHERE NOT + 33 * 11 * + - 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL + COUNT( * ) - + ( + - 83 ) AS col1 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL + COUNT ( * ) - + ( + - 83 ) AS col1 FROM tab0 AS cor0
----
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - - ( col1 ) ) + - col0 < 3
----
87
21
10
97
1
99

query I rowsort
SELECT + ( - 60 ) * col2 FROM tab1 WHERE ( col1 + - col0 + + col2 ) NOT BETWEEN NULL AND col1
----
-5760

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 - - col2 <> ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 29 col2 FROM tab0 WHERE NOT ( - col1 - 4 ) NOT BETWEEN col1 / col0 + - col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - + col1, - 59 * - + 66 * - 95 * 81 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR NOT + ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1, col1 + - 49 AS col0 FROM tab0
----
-1
-48
-21
-28
-81
32

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 14 AS col2 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT - ( - col2 ) * + col2 + col0 FROM tab1 AS cor0
----
3566
4715
9267

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT - COUNT( 38 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9171
SELECT - COUNT ( 38 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT DISTINCT + col2 DIV - - col0 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT + col2 / - - col0 AS col0 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * + + col1 IN ( + 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL SUM( - col1 ) - + 60 FROM tab0 cor0 WHERE NULL IS NULL
----
-163

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL SUM ( - col1 ) - + 60 FROM tab0 cor0 WHERE NULL IS NULL
----
-163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 81 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query III rowsort
SELECT * FROM tab1 WHERE NOT 97 < 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL + ( + 1 ) * + COUNT( * ) - + COUNT( * ) + 39 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + ( + 1 ) * + COUNT ( * ) - + COUNT ( * ) + 39 FROM tab0 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT col2 * - 43 * - CAST( NULL AS SIGNED ) * + col1 - - - col2 / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT col2 * - 43 * - CAST ( NULL AS INTEGER ) * + col1 - - - col2 / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 <> 19 + + col1 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT + MAX( + + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT + MAX ( + + col2 ) AS col2 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 NOT BETWEEN col0 + - + 0 + - - 14 AND - 53
----

query I rowsort
SELECT ALL - col0 + + + col1 AS col2 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT DISTINCT + 9 + - - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE + + 44 * + 74 / - ( + - col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT + 9 + - - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE + + 44 * + 74 / - ( + - col2 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT + + COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 WHERE - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT + + COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 WHERE - + col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 + + col0 col1 FROM tab1
----
126
132
92

query I rowsort
SELECT - col2 * - 57 + - col2 FROM tab0
----
2632
5544
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9187
SELECT DISTINCT - COUNT( * ) + - CAST( MAX( - col0 ) AS SIGNED ) * - 54 AS col0 FROM tab2
----
-2487

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT - COUNT ( * ) + - CAST ( MAX ( - col0 ) AS INTEGER ) * - 54 AS col0 FROM tab2
----
-2487

query I rowsort
SELECT DISTINCT + col1 + - ( + - col0 ) * + col2 AS col1 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT ( col0 ) + + 3 * + col2 FROM tab1
----
262
295
339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9190
SELECT + COUNT( * ) + - CAST( - 41 AS SIGNED ) AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-9190
SELECT + COUNT ( * ) + - CAST ( - 41 AS INTEGER ) AS col2 FROM tab2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL - - COUNT( * ) + + 6 AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL - - COUNT ( * ) + + 6 AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9192
SELECT DISTINCT + CAST( col1 AS SIGNED ) col2 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9192
SELECT DISTINCT + CAST ( col1 AS INTEGER ) col2 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= - col2
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( 40 * col0 ) = 81 * - col0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( col1, col1, 84 )
----

query I rowsort
SELECT - col0 * - 54 FROM tab1
----
2754
4590
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL - ( COUNT( * ) ) AS col2 FROM tab0 cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab0 cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1 OR NULL = NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 + + + 4 + 57 FROM tab1 AS cor0
----
1405
3257
356

query I rowsort
SELECT ALL - col1 * + + col2 - + - col0 FROM tab0 AS cor0
----
-123
-2
-3792

query I rowsort
SELECT col0 - - col2 * - ( + 75 ) * + - 79 AS col1 FROM tab0 AS cor0
----
278490
586672
59337

query I rowsort
SELECT ALL + col0 + ( + - col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT - COUNT( col2 ) / + + ( - - SUM( ALL + col2 ) ) + MAX( + ( col2 ) ) FROM tab0 AS cor0 WHERE NULL > 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT - COUNT ( col2 ) / + + ( - - SUM ( ALL + col2 ) ) + MAX ( + ( col2 ) ) FROM tab0 AS cor0 WHERE NULL > 76
----
NULL

query I rowsort
SELECT ALL - 44 * - col1 + + + col0 AS col0 FROM tab1 AS cor0
----
2159
305
667

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9205
SELECT * FROM tab0 AS cor0 WHERE ( 23 + + - col1 + - CAST( - + col0 AS SIGNED ) ) NOT IN ( col1 * - col0 - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9205
SELECT * FROM tab0 AS cor0 WHERE ( 23 + + - col1 + - CAST ( - + col0 AS INTEGER ) ) NOT IN ( col1 * - col0 - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT DISTINCT + col2 - + col2 DIV - col2 AS col1 FROM tab1 cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + col2 - + col2 / - col2 AS col1 FROM tab1 cor0
----
60
69
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + 97 NOT IN ( + - col2, + 80, 37 )
----

query I rowsort
SELECT + col0 * - col0 * + col0 FROM tab2
----
-262144
-421875
-97336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - + 95 * + 79, - 36 col2 FROM tab0
----
-112575
-36
-652935
-36
-727985
-36

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9210
SELECT ALL * FROM tab0 WHERE - CAST( + + col0 AS SIGNED ) * + 64 <= - 25 * CAST( ( - ( + CAST( NULL AS DECIMAL ) ) ) AS SIGNED ) + col2 + + col2
----

skipif mysql # not compatible
query III rowsort label-9210
SELECT ALL * FROM tab0 WHERE - CAST ( + + col0 AS INTEGER ) * + 64 <= - 25 * CAST ( ( - ( + CAST ( NULL AS REAL ) ) ) AS INTEGER ) + col2 + + col2
----

query I rowsort
SELECT - ( col2 ) * - - 84 * + 54 + - col0 FROM tab2 WHERE NOT col2 * + col1 * - col0 * + 88 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * - col0 col0 FROM tab2
----
-2622
-3648
-4275

query I rowsort
SELECT 75 * - col1 * - col2 + - col0 FROM tab0 WHERE NOT ( NULL = col0 )
----

query I rowsort
SELECT DISTINCT - col2 * + + col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + 95 * + 13 AS col1 FROM tab0 AS cor0
----
1235
1235
1235

onlyif mysql # DIV for integer division: 
query I rowsort label-9216
SELECT + 46 DIV + - col1 AS col2 FROM tab0 AS cor0
----
-2
-46
0

skipif mysql # not compatible
query I rowsort label-9216
SELECT + 46 / + - col1 AS col2 FROM tab0 AS cor0
----
-2
-46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT MAX( + col0 ) + - - COUNT( * ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9217
SELECT MAX ( + col0 ) + - - COUNT ( * ) FROM tab2 AS cor0
----
78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * - - 45 + 28 - + col2 * - 9 FROM tab2 AS cor0
----
2530
3565
3853

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT DISTINCT col0 DIV col2 * col1 * + - col2 FROM tab1 AS cor0
----
-295
-3196
0

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT col0 / col2 * col1 * + - col2 FROM tab1 AS cor0
----
-295
-3196
0

query I rowsort
SELECT ALL 60 / + 41 + col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query III rowsort
SELECT - ( + col2 ) + - col1, + col2 AS col2, col0 FROM tab0 cor0
----
9 values hashing to fc9e0678be25e76b6cd67cead56f9a32

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT + + 51 + - SUM( ALL - 43 ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-9224
SELECT + + 51 + - SUM ( ALL - 43 ) FROM tab0 AS cor0
----
180

query I rowsort
SELECT ALL + ( + - 52 ) FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT + + col0 * + ( - col2 ) - + col0 - - + 95 DIV - 99 * + col1 FROM tab1 AS cor0
----
-4947
-5100
-6279

skipif mysql # not compatible
query I rowsort label-9226
SELECT + + col0 * + ( - col2 ) - + col0 - - + 95 / - 99 * + col1 FROM tab1 AS cor0
----
-4947
-5100
-6279

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + + - 28 BETWEEN + col1 AND + col1 * + + 55
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 30 + - + 12, + col2 + + col2, + col1 + + - ( + ( + - col2 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 + - + 74 + + col0 col0 FROM tab0 AS cor0
----
-46
26
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9230
SELECT - ( 25 ) * + + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-225
NULL

skipif mysql # not compatible
query II rowsort label-9230
SELECT - ( 25 ) * + + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-225
NULL

query I rowsort
SELECT DISTINCT + + col2 - col0 AS col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL - ( - col0 ) - - col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT SUM( ALL - 97 ) AS col1 FROM tab1 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-9233
SELECT SUM ( ALL - 97 ) AS col1 FROM tab1 cor0
----
-291

query II rowsort
SELECT col1 AS col0, 8 FROM tab0 AS cor0
----
1
8
21
8
81
8

query II rowsort
SELECT + 77, + col2 AS col1 FROM tab1 cor0
----
77
59
77
68
77
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + ( - - ( + MAX( ALL 27 ) ) ) * COUNT( * ) * + + MAX( - col2 ) + + 15 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 * - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT + ( - - ( + MAX ( ALL 27 ) ) ) * COUNT ( * ) * + + MAX ( - col2 ) + + 15 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 * - col1 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 33 FROM tab2 cor0 WHERE + ( + col2 ) - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT + COUNT( ALL + ( - col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9238
SELECT + COUNT ( ALL + ( - col0 ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + col0 AS col0 FROM tab1 cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9240
SELECT ALL COUNT( * ) AS col0, + MIN( ALL - + col2 ) AS col0 FROM tab0
----
3
-99

skipif mysql # not compatible
query II rowsort label-9240
SELECT ALL COUNT ( * ) AS col0, + MIN ( ALL - + col2 ) AS col0 FROM tab0
----
3
-99

query I rowsort
SELECT - col1 * + - 64 FROM tab1
----
3008
320
896

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9242
SELECT - - 67 * col1 DIV + col1 - - 60 + CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
104
69
87

skipif mysql # not compatible
query I rowsort label-9242
SELECT - - 67 * col1 / + col1 - - 60 + CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
104
69
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT ALL - CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 57, col1 AS col1 FROM tab1 AS cor0
----
-57
14
-57
47
-57
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT - 23 * - - 74 AS col2 FROM tab1 AS cor0
----
-1702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, - col2 col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT - SUM( - 15 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9249
SELECT - SUM ( - 15 ) FROM tab1 AS cor0
----
45

query I rowsort
SELECT + col0 * + + col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT ALL - col1 DIV - - 64 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - col1 / - - 64 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL - - MAX( ALL + col1 ) * + 69 FROM tab1 AS cor0
----
3243

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - - MAX ( ALL + col1 ) * + 69 FROM tab1 AS cor0
----
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9253
SELECT ALL + ( ( + 71 ) ) * + - AVG ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 * + CAST( NULL AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + ( ( + 71 ) ) * + - AVG ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 * + CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9254
SELECT ALL + COUNT( * ) AS col0, + 45 AS col0 FROM tab2
----
3
45

skipif mysql # not compatible
query II rowsort label-9254
SELECT ALL + COUNT ( * ) AS col0, + 45 AS col0 FROM tab2
----
3
45

query I rowsort
SELECT DISTINCT - col0 * + col0 * 88 AS col0 FROM tab2
----
-186208
-360448
-495000

query I rowsort
SELECT DISTINCT - 69 + + 21 FROM tab1
----
-48

query I rowsort
SELECT + col0 + - + 20 AS col0 FROM tab1
----
31
65
71

query I rowsort
SELECT DISTINCT 60 + + + col0 FROM tab2
----
106
124
135

query II rowsort
SELECT - ( + - col0 ) + - col2 AS col0, col0 * - - 99 FROM tab2
----
17
7425
23
4554
24
6336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 33 + - col2 + 73 * + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 33 + - col2 + 73 * + col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT col1 * - 50 AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9261
SELECT col1 * - 50 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + ( col2 ) * + 2 FROM tab0 AS cor0
----
198
20
94

query II rowsort
SELECT DISTINCT ( - + 21 ) AS col2, - 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-21
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT DISTINCT + 46 DIV 3 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT + 46 / 3 FROM tab1
----
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 16 + + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 80 AS col2 FROM tab2 AS cor0
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 36 col2 FROM tab0 AS cor0
----
36
36
36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 67 col2, + col1 AS col2 FROM tab2
----
67
51
67
67
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL - SUM( - 10 ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL - SUM ( - 10 ) AS col0 FROM tab2
----
30

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + 32 * + ( - + col2 ) AS col2 FROM tab2
----
-1280
-1856
-736

query I rowsort
SELECT + col2 * + + col0 FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN - col2 AND ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab2 WHERE NOT - - col0 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT + COUNT( * ) * + 43 AS col0 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-9276
SELECT + COUNT ( * ) * + 43 AS col0 FROM tab2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + SUM( 30 ) FROM tab1 WHERE NOT - + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT + SUM ( 30 ) FROM tab1 WHERE NOT - + col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9278
SELECT DISTINCT + col1 col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9278
SELECT DISTINCT + col1 col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT + SUM( 0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT + SUM ( 0 ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col2, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9281
SELECT ALL - COUNT( * ), 62 * 21 * COUNT( * ) col0 FROM tab1 AS cor0
----
-3
3906

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9281
SELECT ALL - COUNT ( * ), 62 * 21 * COUNT ( * ) col0 FROM tab1 AS cor0
----
-3
3906

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9282
SELECT + + COUNT( ALL + ( CAST( ( ( + 91 ) ) AS DECIMAL ) ) ) * + + 47 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9282
SELECT + + COUNT ( ALL + ( CAST ( ( ( + 91 ) ) AS REAL ) ) ) * + + 47 FROM tab1 AS cor0
----
141

query I rowsort
SELECT ALL 70 + - 52 - - 9 AS col1 FROM tab1
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9284
SELECT ALL COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT - 26 + - + MAX( ALL + col0 ) FROM tab0 AS cor0 WHERE 62 / - + CAST( + ( - - col2 ) AS SIGNED ) IS NOT NULL
----
-123

skipif mysql # not compatible
query I rowsort label-9285
SELECT - 26 + - + MAX ( ALL + col0 ) FROM tab0 AS cor0 WHERE 62 / - + CAST ( + ( - - col2 ) AS INTEGER ) IS NOT NULL
----
-123

query I rowsort
SELECT ALL - - 82 + col1 FROM tab2 AS cor0
----
133
149
159

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9289
SELECT - col2 + + ( - col2 ) * - CAST( NULL AS SIGNED ) * - col2 * col0 * col1 + + CAST( CAST( - col0 AS DECIMAL ) AS SIGNED ) * + col2 + + col1 - - 48 + - + 24 * 83 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT - col2 + + ( - col2 ) * - CAST ( NULL AS INTEGER ) * - col2 * col0 * col1 + + CAST ( CAST ( - col0 AS REAL ) AS INTEGER ) * + col2 + + col1 - - 48 + - + 24 * 83 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT - COUNT( DISTINCT - + col2 ) + + COUNT( * ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9290
SELECT DISTINCT - COUNT ( DISTINCT - + col2 ) + + COUNT ( * ) col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT DISTINCT CAST( + COUNT( col1 ) AS SIGNED ) * 5 AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT CAST ( + COUNT ( col1 ) AS INTEGER ) * 5 AS col0 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL - - MIN( 64 ) AS col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL - - MIN ( 64 ) AS col1 FROM tab0 AS cor0
----
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col2 col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT ALL col0 * + CAST( + 61 AS SIGNED ) col2 FROM tab1 AS cor0
----
3111
5185
5551

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9295
SELECT ALL col0 * + CAST ( + 61 AS INTEGER ) col2 FROM tab1 AS cor0
----
3111
5185
5551

query I rowsort
SELECT DISTINCT - 75 FROM tab1 WHERE NOT + 17 NOT IN ( 0 )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE 31 IS NULL
----

query I rowsort
SELECT ALL + col2 + col0 * 83 AS col0 FROM tab0
----
1292
7231
8150

query I rowsort
SELECT DISTINCT 57 + - - 8 AS col2 FROM tab1
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9300
SELECT ALL - col1 + - 18 AS col0, ( - col1 ) - - col2 + + - 62 + + CAST( col1 AS SIGNED ) * - col1 DIV col1 col0 FROM tab0 cor0
----
-19
35
-39
-94
-99
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9300
SELECT ALL - col1 + - 18 AS col0, ( - col1 ) - - col2 + + - 62 + + CAST ( col1 AS INTEGER ) * - col1 / col1 col0 FROM tab0 cor0
----
-19
35
-39
-94
-99
-177

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - 94 ) + - 43 / + 99 + + 96 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT + col1 - + 25 + 59 DIV - col1 AS col2 FROM tab1 AS cor0
----
-15
-31
21

skipif mysql # not compatible
query I rowsort label-9302
SELECT + col1 - + 25 + 59 / - col1 AS col2 FROM tab1 AS cor0
----
-15
-31
21

query I rowsort
SELECT - col1 + + 66 FROM tab0 AS cor0
----
-15
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT + MIN( ALL + 16 ) + - COUNT( * ) + - 36 AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT + MIN ( ALL + 16 ) + - COUNT ( * ) + - 36 AS col1 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - 33 + + 46 col2 FROM tab1 AS cor0
----
-119
-1505
-416

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + - col1 / - - ( - col2 ) IN ( - col1, + col2, - - 61 / - - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col2 ) <= + + 63
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + 79 * + 19 FROM tab1
----
1501

query I rowsort
SELECT 73 * 28 AS col0 FROM tab1
----
2044
2044
2044

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 47 <> + 98
----

query II rowsort
SELECT DISTINCT 50, - col2 AS col1 FROM tab2
----
50
-23
50
-40
50
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9312
SELECT - CAST( col1 AS SIGNED ) DIV + col0 + + col2 * 39 * + col2 AS col2 FROM tab0
----
382239
3900
86146

skipif mysql # not compatible
query I rowsort label-9312
SELECT - CAST ( col1 AS INTEGER ) / + col0 + + col2 * 39 * + col2 AS col2 FROM tab0
----
382239
3900
86146

query I rowsort
SELECT 21 * + col0 FROM tab2
----
1344
1575
966

query I rowsort
SELECT - ( - + 30 ) * + col0 AS col2 FROM tab2 AS cor0
----
1380
1920
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 WHERE NULL BETWEEN + - 87 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 WHERE NULL BETWEEN + - 87 AND NULL
----
0

query I rowsort
SELECT 90 * + 61 * col0 FROM tab1
----
279990
466650
499590

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ( - COUNT( * ) ) * + 47 + - SUM( DISTINCT + + col0 ) FROM tab1
----
-368

skipif mysql # not compatible
query I rowsort label-9317
SELECT ( - COUNT ( * ) ) * + 47 + - SUM ( DISTINCT + + col0 ) FROM tab1
----
-368

query I rowsort
SELECT 28 FROM tab2 WHERE NOT - - ( col0 ) IS NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT - 69 + + MAX( - - ( ( + - 85 ) ) ) FROM tab2 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-9319
SELECT - 69 + + MAX ( - - ( ( + - 85 ) ) ) FROM tab2 AS cor0
----
-154

query I rowsort
SELECT DISTINCT + - 19 * + - col2 * + 86 FROM tab2 AS cor0
----
37582
65360
94772

query I rowsort
SELECT - + 52 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= + col1
----

query I rowsort
SELECT + - 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT DISTINCT 10 + col0 AS col0 FROM tab2 AS cor0
----
56
74
85

query I rowsort
SELECT ALL - ( - 20 ) FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT + 1 + 82 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT - - col0 + - 19 FROM tab1 AS cor0
----
32
66
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col0 col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9329
SELECT + col2 * + + CAST( NULL AS SIGNED ), col2 * + col0 + - col2 / + + 3 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9329
SELECT + col2 * + + CAST ( NULL AS INTEGER ), col2 * + col0 + - col2 / + + 3 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + + 70 FROM tab2
----
110
128
93

query I rowsort
SELECT DISTINCT 67 * + 3 AS col2 FROM tab2
----
201

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9332
SELECT ALL - col0 * + col2 + + 52 + + + CAST( NULL AS DECIMAL ) + + - 71 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - col0 * + col2 + + 52 + + + CAST ( NULL AS REAL ) + + - 71 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT ALL - CAST( + - col2 AS SIGNED ) * 3 * col0 AS col0 FROM tab1
----
14688
15045
18564

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - CAST ( + - col2 AS INTEGER ) * 3 * col0 AS col0 FROM tab1
----
14688
15045
18564

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT COUNT( * ) + + COUNT( 25 ) + - COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9334
SELECT COUNT ( * ) + + COUNT ( 25 ) + - COUNT ( * ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT ALL + col1 DIV + + col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL + col1 / + + col0 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT 88 DIV + 47 + - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-9336
SELECT 88 / + 47 + - COUNT ( * ) FROM tab1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT ALL + CAST( - + 79 AS SIGNED ) - + col0 FROM tab0 AS cor0
----
-166
-176
-94

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL + CAST ( - + 79 AS INTEGER ) - + col0 FROM tab0 AS cor0
----
-166
-176
-94

query I rowsort
SELECT DISTINCT col1 - - col0 * col1 FROM tab2 AS cor0
----
2397
5005
5092

query I rowsort
SELECT ALL + - 80 * + - col2 + + + col2 AS col2 FROM tab1 AS cor0
----
4779
5508
7776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT ALL 67 * - + col1 col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + 35 IS NOT NULL
----
-1407
-5427
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9340
SELECT ALL 67 * - + col1 col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + 35 IS NOT NULL
----
-1407
-5427
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT ALL + col1 * - - col0 / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + col1 * - - col0 / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9342
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - + 28 FROM tab0
----
1316
2772
280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9344
SELECT + CAST( NULL AS SIGNED ) * - + 4, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9344
SELECT + CAST ( NULL AS INTEGER ) * - + 4, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 77 + + + col1 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9347
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) * 23 - + - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + ( + CAST ( NULL AS REAL ) ) * 23 - + - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9348
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) / - + col2, + col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9348
SELECT DISTINCT - - CAST ( NULL AS REAL ) / - + col2, + col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 81 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT ALL - 31 * - 87 * col0 DIV col0 FROM tab2 AS cor0
----
2697
2697
2697

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL - 31 * - 87 * col0 / col0 FROM tab2 AS cor0
----
2697
2697
2697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9351
SELECT DISTINCT ( - + 43 ) DIV - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT ( - + 43 ) / - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT + MAX( DISTINCT + - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9352
SELECT + MAX ( DISTINCT + - col2 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT ( + + col1 ) FROM tab0
----
1
21
81

query II rowsort
SELECT - col1, - col1 * - col2 AS col2 FROM tab2
----
-51
1173
-67
3886
-77
3080

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE NOT - - 2 BETWEEN + col0 AND col2 * col0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT - MAX( + - 49 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-9356
SELECT - MAX ( + - 49 ) FROM tab1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL SUM( ALL - + 93 ) AS col1 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL SUM ( ALL - + 93 ) AS col1 FROM tab0
----
-279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * + - col2 + - col1 col2 FROM tab2
----
-1677
-3431
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL 44 * + COUNT( * ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL 44 * + COUNT ( * ) FROM tab1
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-9360
SELECT ALL - + COUNT( * ) AS col0, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9360
SELECT ALL - + COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9361
SELECT - + col1, CAST( NULL AS SIGNED ) col1 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-9361
SELECT - + col1, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query II rowsort
SELECT DISTINCT - col1 + - col1, col1 + + - col2 AS col0 FROM tab1
----
-10
-54
-28
-82
-94
-21

query I rowsort
SELECT + 44 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9364
SELECT + col0 + - 16 - col1 * CAST( NULL AS SIGNED ) * col0, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9364
SELECT + col0 + - 16 - col1 * CAST ( NULL AS INTEGER ) * col0, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 93 col0 FROM tab2 cor0
----
-93
-93
-93

query I rowsort
SELECT - + 72 * 64 FROM tab2 AS cor0
----
-4608
-4608
-4608

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 27 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT ALL - col1 DIV col2 - - ( + 98 ) FROM tab1 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL - col1 / col2 - - ( + 98 ) FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT - col2 * - + col0 * + col0 AS col2 FROM tab1 AS cor0
----
249696
426275
563108

query II rowsort
SELECT + 92, col0 FROM tab1 WHERE - + col0 + col1 IS NOT NULL
----
92
51
92
85
92
91

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 * - ( col2 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - ( COUNT( + + 35 ) ) - - 26 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-9372
SELECT - ( COUNT ( + + 35 ) ) - - 26 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT COUNT( * ) + - 85 col2 FROM tab2
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9373
SELECT COUNT ( * ) + - 85 col2 FROM tab2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT ALL + - MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL + - MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, + ( col0 ) + + col0 AS col0 FROM tab0
----
-1
194
-21
174
-81
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT DISTINCT + col0 * - col0 / + - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT + col0 * - col0 / + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT + COUNT( + + col2 ) * 85 AS col2 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-9377
SELECT + COUNT ( + + col2 ) * 85 AS col2 FROM tab1
----
255

query II rowsort
SELECT + + 82 * col0 AS col1, 21 AS col1 FROM tab0 AS cor0
----
1230
21
7134
21
7954
21

query I rowsort
SELECT + ( - 43 ) AS col1 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL SUM( ALL + col2 ) * - SUM( ALL - + 47 ) FROM tab1 AS cor0
----
31443

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL SUM ( ALL + col2 ) * - SUM ( ALL - + 47 ) FROM tab1 AS cor0
----
31443

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9381
SELECT ALL - MIN( ALL - - col1 ) DIV MIN( DISTINCT + - col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL - MIN ( ALL - - col1 ) / MIN ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 22 AS col1 FROM tab0 cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9383
SELECT DISTINCT - ( - COUNT( * ) ) DIV - COUNT( * ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9383
SELECT DISTINCT - ( - COUNT ( * ) ) / - COUNT ( * ) col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9384
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ), 6 AS col2 FROM tab0
----
-3
6

skipif mysql # not compatible
query II rowsort label-9384
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ), 6 AS col2 FROM tab0
----
-3
6

query I rowsort
SELECT col1 + - + 97 AS col1 FROM tab0
----
-16
-76
-96

query I rowsort
SELECT ALL col2 * - + 0 * col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9387
SELECT - MIN( - - col1 ) + 35 DIV - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9387
SELECT - MIN ( - - col1 ) + 35 / - - COUNT ( * ) FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT ALL - col0 DIV - - col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - col0 / - - col1 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT ALL 41 + + col0 AS col0 FROM tab2
----
105
116
87

query I rowsort
SELECT ALL + col0 * - ( + col2 ) / + col1 FROM tab1 WHERE NOT col2 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT CAST( col1 AS SIGNED ) + + + col1 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-9391
SELECT CAST ( col1 AS INTEGER ) + + + col1 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT + 2 * + ( - + CAST( col2 AS SIGNED ) ) + 5 AS col2 FROM tab1 AS cor0
----
-113
-131
-187

skipif mysql # not compatible
query I rowsort label-9392
SELECT + 2 * + ( - + CAST ( col2 AS INTEGER ) ) + 5 AS col2 FROM tab1 AS cor0
----
-113
-131
-187

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 1 col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) * + 53 * + col1 - 1 * - 27 < - col1
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col2 IS NULL
----

query I rowsort
SELECT col1 * - col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-1215
-1827
-97

query II rowsort
SELECT + 28 AS col2, col1 AS col2 FROM tab0
----
28
1
28
21
28
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT - col2 + + - col2 AS col1 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT col1 - + 52 FROM tab0
----
-31
-51
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 > + + ( + 55 )
----
64
77
40
75
67
58

query I rowsort
SELECT ALL - col0 * + col2 + col1 FROM tab2 cor0
----
-1007
-2483
-4283

query II rowsort
SELECT ALL ( - - ( - col1 ) ), + col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - + + 57 * - col0 - - col0 col0 FROM tab2 AS cor0
----
2622
3648
4275

query I rowsort
SELECT col2 + + - col2 * + 38 FROM tab1
----
-2183
-2516
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT COUNT( * ) * + 3 AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9406
SELECT COUNT ( * ) * + 3 AS col0 FROM tab2
----
9

query I rowsort
SELECT DISTINCT - + 42 AS col2 FROM tab2 WHERE NOT col2 >= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT - col1 DIV - - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9408
SELECT - col1 / - - col2 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT COUNT( DISTINCT + + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9410
SELECT COUNT ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) * - col0 IN ( + col1, col0 + 62 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 93 * - ( - ( 1 ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL SUM( - col0 ) * - MIN( - col0 ) FROM tab0
----
-19303

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL SUM ( - col0 ) * - MIN ( - col0 ) FROM tab0
----
-19303

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT ALL + + COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL + + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 11 = - - col1 + + 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query II rowsort
SELECT ALL - + col0, + col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT - 52 + + 28 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT - 52 + + 28 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + + col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9420
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query II rowsort
SELECT + col1, - col0 * + col1 FROM tab0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT DISTINCT - col1 + - col2 * + col2 * - ( - col1 ) AS col1 FROM tab2
----
-123277
-225455
-27030

query I rowsort
SELECT DISTINCT + col1 * - col1 + - + col1 * 57 AS col2 FROM tab1
----
-310
-4888
-994

query I rowsort
SELECT ALL + col2 + - + ( + - col2 ) FROM tab1
----
118
136
192

query I rowsort
SELECT col1 + + + 12 AS col1 FROM tab0 WHERE - 81 + - col0 IS NULL
----

query I rowsort
SELECT ALL + ( - + col0 ) * + col0 AS col2 FROM tab1 WHERE ( NOT ( NULL ) NOT BETWEEN ( + col0 * - + col0 + - ( + col0 ) ) AND + col0 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9427
SELECT ALL + + CAST( NULL AS SIGNED ), col1 * + + col2 AS col1 FROM tab0 WHERE ( CAST( - + col2 AS SIGNED ) BETWEEN + + ( + + 66 ) + col1 * ( - + col1 ) AND + + col1 )
----
NULL
210
NULL
3807

skipif mysql # not compatible
query II rowsort label-9427
SELECT ALL + + CAST ( NULL AS INTEGER ), col1 * + + col2 AS col1 FROM tab0 WHERE ( CAST ( - + col2 AS INTEGER ) BETWEEN + + ( + + 66 ) + col1 * ( - + col1 ) AND + + col1 )
----
NULL
210
NULL
3807

query I rowsort
SELECT - col0 * + + 61 AS col0 FROM tab1
----
-3111
-5185
-5551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - + 39 AS col2 FROM tab2 AS cor0
----
-1794
-2496
-2925

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + ( + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 40 col0 FROM tab2 AS cor0
----
2040
2680
3080

query I rowsort
SELECT - 87 + 75 + - + 10 AS col1 FROM tab2 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9434
SELECT ALL + CAST( NULL AS SIGNED ) * + col0, + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9434
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0, + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab2 WHERE 91 NOT BETWEEN NULL AND + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 4 ) + - 91 + ( 13 ) AS col1 FROM tab0
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT ALL col1 + col0 DIV + 94 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL col1 + col0 / + 94 AS col0 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * + + 81 col2 FROM tab1 AS cor0
----
2754
2754
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT + COUNT( DISTINCT 62 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9439
SELECT + COUNT ( DISTINCT 62 ) AS col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 32 col1 FROM tab0 AS cor0
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT DISTINCT + 78 - - col2 DIV + + col0 FROM tab1 AS cor0
----
78
79

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT + 78 - - col2 / + + col0 FROM tab1 AS cor0
----
78
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT ALL - col1 DIV + 86 - col2 * + - col0 * + col0 + + col0 + col0 FROM tab0 AS cor0
----
10605
75864
931685

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL - col1 / + 86 - col2 * + - col0 * + col0 + + col0 + col0 FROM tab0 AS cor0
----
10605
75864
931685

query I rowsort
SELECT ( - 98 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1470
-8526
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL + MAX( ALL + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + MAX ( ALL + col1 ) AS col1 FROM tab0
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN + col0 AND ( - col2 + + - ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 29, - col0 AS col1 FROM tab1
----
29
-51
29
-85
29
-91

query II rowsort
SELECT DISTINCT + col1, col0 + - col1 AS col0 FROM tab2
----
51
-5
67
8
77
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT SUM( DISTINCT 34 ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-9448
SELECT SUM ( DISTINCT 34 ) AS col1 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT 42 * + COUNT( * ) col0 FROM tab1
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9449
SELECT 42 * + COUNT ( * ) col0 FROM tab1
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9450
SELECT - CAST( NULL AS SIGNED ) / - CAST( ( + SUM( DISTINCT - col0 ) ) AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT - CAST ( NULL AS INTEGER ) / - CAST ( ( + SUM ( DISTINCT - col0 ) ) AS REAL ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT + CAST( NULL AS SIGNED ) * + 54 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT + CAST ( NULL AS INTEGER ) * + 54 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 73 AS col2 FROM tab0 cor0
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT + + 4 DIV - ( 23 ) * col1 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9453
SELECT + + 4 / - ( 23 ) * col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9454
SELECT ( MIN( CAST( + col2 AS SIGNED ) ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9454
SELECT ( MIN ( CAST ( + col2 AS INTEGER ) ) ) FROM tab2 AS cor0
----
23

query II rowsort
SELECT ALL + 94 AS col2, col0 FROM tab1 AS cor0
----
94
51
94
85
94
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL MIN( + + col1 ) + 81 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL MIN ( + + col1 ) + 81 FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL + SUM( DISTINCT + 19 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL + SUM ( DISTINCT + 19 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
19

query I rowsort
SELECT 62 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( + 77 ) * 3 * + col1 + + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( + 77 ) * 3 * + col1 + + col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9460
SELECT - CAST( - 54 AS SIGNED ) DIV 34 + + - 29 * + - col2 + ( + 26 ) AS col1 FROM tab0 AS cor0
----
1390
2898
317

skipif mysql # not compatible
query I rowsort label-9460
SELECT - CAST ( - 54 AS INTEGER ) / 34 + + - 29 * + - col2 + ( + 26 ) AS col1 FROM tab0 AS cor0
----
1390
2898
317

query I rowsort
SELECT col2 * + col2 - - + col2 * col1 * - - 3 AS col1 FROM tab1 AS cor0
----
13248
14212
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT DISTINCT + COUNT( + col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT + COUNT ( + col0 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + 99 + - 33 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT - CAST( NULL AS SIGNED ) * - ( AVG ( - col1 ) ) + - COUNT( DISTINCT col0 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT - CAST ( NULL AS INTEGER ) * - ( AVG ( - col1 ) ) + - COUNT ( DISTINCT col0 ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT + col2 + + - 71 + + - col2 * col0 * + col0, col1 AS col2 FROM tab0
----
-10599
81
-75751
21
-931463
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT - 48 + COUNT( * ) AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-9466
SELECT - 48 + COUNT ( * ) AS col2 FROM tab1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 7 * ( - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 7 * ( - col2 ) FROM tab2
----
NULL

query II rowsort
SELECT ALL 14 + - - col0 * - col0 AS col1, col0 * - - col2 AS col1 FROM tab1
----
-2587
4896
-7211
5015
-8267
6188

query I rowsort
SELECT col2 * + 23 + 30 FROM tab0
----
1111
2307
260

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 32
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE 28 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + col0 + col2 AS col0 FROM tab0 AS cor0
----
107
109
295

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL - COUNT( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL - COUNT ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 43 col2 FROM tab1 AS cor0
----
2193
3655
3913

query I rowsort
SELECT - + col2 * 94 FROM tab0 cor0
----
-4418
-9306
-940

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT IN ( + - col0 / + 30, col2 * + + ( + col1 ) + - 81, + col2, - 73, - - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9480
SELECT DISTINCT 33 DIV + col0, + col0 FROM tab0
----
0
87
0
97
2
15

skipif mysql # not compatible
query II rowsort label-9480
SELECT DISTINCT 33 / + col0, + col0 FROM tab0
----
0
87
0
97
2
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9481
SELECT CAST( + col1 AS SIGNED ) AS col2, 39 AS col1 FROM tab0
----
1
39
21
39
81
39

skipif mysql # not compatible
query II rowsort label-9481
SELECT CAST ( + col1 AS INTEGER ) AS col2, 39 AS col1 FROM tab0
----
1
39
21
39
81
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9482
SELECT ALL MIN( - ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL MIN ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT SUM( - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT SUM ( - col2 ) FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT DISTINCT - col0 DIV - + 46 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT - col0 / - + 46 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT 77 DIV + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9485
SELECT 77 / + col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT 78 * - + 90 AS col2 FROM tab1 AS cor0
----
-7020
-7020
-7020

query I rowsort
SELECT ALL + 28 * - 84 * + 26 AS col1 FROM tab0 AS cor0
----
-61152
-61152
-61152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT DISTINCT col2 * CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT col2 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT + COUNT( * ) + - - ( 88 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT + COUNT ( * ) + - - ( 88 ) FROM tab0 AS cor0
----
91

query I rowsort
SELECT + col2 + - col0 + + - col0 * - 85 FROM tab1 AS cor0
----
4380
7199
7712

query II rowsort
SELECT col0, 54 FROM tab0 AS cor0
----
15
54
87
54
97
54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + 39 + - col0 * col0 IN ( col0, col0 / 12 * - 30, - col0, + 77 * 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9493
SELECT ALL + - MIN( DISTINCT + CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL + - MIN ( DISTINCT + CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL 73 * + 18 FROM tab0
----
1314
1314
1314

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - + 89, + col2 )
----

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col2 AS col2 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT col2 * + col2 * + col1 AS col2 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT COUNT( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL 58 + - COUNT( * ) AS col1 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL 58 + - COUNT ( * ) AS col1 FROM tab0
----
55

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = col2 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT + 9 FROM tab2 WHERE + - 63 + CAST( NULL AS SIGNED ) + - - 26 - 89 - 92 * - - col1 / - 88 * col2 * + col2 IS NULL
----
9
9
9

skipif mysql # not compatible
query I rowsort label-9501
SELECT + 9 FROM tab2 WHERE + - 63 + CAST ( NULL AS INTEGER ) + - - 26 - 89 - 92 * - - col1 / - 88 * col2 * + col2 IS NULL
----
9
9
9

query I rowsort
SELECT ALL 25 + col0 + - - col1 FROM tab2
----
122
166
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) - - 44 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) - - 44 FROM tab2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT 93 + + ( COUNT( * ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9504
SELECT 93 + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9505
SELECT ALL + CAST( - - col0 AS SIGNED ) - - + 65 FROM tab2 AS cor0
----
111
129
140

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + CAST ( - - col0 AS INTEGER ) - - + 65 FROM tab2 AS cor0
----
111
129
140

query I rowsort
SELECT 7 + + col0 + + - 83 * - col2 FROM tab2
----
1962
3391
4896

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL - 17 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col2
----

query II rowsort
SELECT ALL 32 AS col1, 50 FROM tab2 AS cor0
----
32
50
32
50
32
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT + MIN( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9511
SELECT + MIN ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col1 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9513
SELECT DISTINCT - 24 DIV + COUNT( * ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT - 24 / + COUNT ( * ) FROM tab0 AS cor0
----
-8

query I rowsort
SELECT ALL + col2 * + 8 FROM tab0 AS cor0
----
376
792
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9515
SELECT DISTINCT + 55 DIV - MIN( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT + 55 / - MIN ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 4 - - 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT DISTINCT 75 DIV - 96 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT 75 / - 96 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - + 58 * + - col0 + + - col2 IS NULL
----
-51
-67
-77

query II rowsort
SELECT + col0 AS col1, col0 AS col1 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + - col2 * - 9 * col2 + col0 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT 91 DIV - 18 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-9521
SELECT 91 / - 18 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT 16 * 54 * + + col2 FROM tab1
----
50976
58752
82944

query I rowsort
SELECT + col2 * - 13 AS col1 FROM tab1
----
-1248
-767
-884

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9524
SELECT + col1, 30 / - ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9524
SELECT + col1, 30 / - ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - col2 IS NOT NULL )
----

query I rowsort
SELECT - + 67 AS col2 FROM tab1 cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT ( + COUNT( + - col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT ( + COUNT ( + - col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT - COUNT( * ) * - COUNT( * ) + COUNT( + ( - + 3 ) ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9528
SELECT - COUNT ( * ) * - COUNT ( * ) + COUNT ( + ( - + 3 ) ) FROM tab0 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - - col2 - + + 89 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + 36 * 93 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + + 96 ) AS col2 FROM tab1
----
96
96
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9533
SELECT ALL + - COUNT( * ) * + + ( + - COUNT( * ) ) * + + CAST( - 28 AS SIGNED ) col2 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9533
SELECT ALL + - COUNT ( * ) * + + ( + - COUNT ( * ) ) * + + CAST ( - 28 AS INTEGER ) col2 FROM tab1 AS cor0
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col1, + col1 AS col2 FROM tab0 WHERE + - col2 * - col1 = - - 4
----

query I rowsort
SELECT + 56 + - 99 FROM tab2
----
-43
-43
-43

query I rowsort
SELECT col2 + - ( + col0 ) * - col2 * + col1 AS col1 FROM tab1
----
25134
290904
68640

onlyif mysql # DIV for integer division: 
query II rowsort label-9537
SELECT - 66 * + col2 + + col1 * - col2 AS col1, + col1 DIV - col0 + - 97 + + + col0 * - - 52 FROM tab1
----
-4189
4323
-7680
2555
-7684
4635

skipif mysql # not compatible
query II rowsort label-9537
SELECT - 66 * + col2 + + col1 * - col2 AS col1, + col1 / - col0 + - 97 + + + col0 * - - 52 FROM tab1
----
-4189
4323
-7680
2555
-7684
4635

query I rowsort
SELECT 82 + + col0 AS col2 FROM tab0
----
169
179
97

query I rowsort
SELECT - col1 * + + col1 + - col0 FROM tab1
----
-110
-2300
-247

query I rowsort
SELECT ALL 55 + col1 FROM tab1
----
102
60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT SUM( DISTINCT col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9541
SELECT SUM ( DISTINCT col2 ) FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL ( - 74 ) + - SUM( - + col2 ) FROM tab2 AS cor0 WHERE - 93 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL ( - 74 ) + - SUM ( - + col2 ) FROM tab2 AS cor0 WHERE - 93 IS NOT NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT - - 28 + - MIN( ALL + col2 ) FROM tab1 AS cor0 WHERE + 94 / + col2 + col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9543
SELECT - - 28 + - MIN ( ALL + col2 ) FROM tab1 AS cor0 WHERE + 94 / + col2 + col2 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL COUNT( * ) - + 70 AS col0 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL COUNT ( * ) - + 70 AS col0 FROM tab1 AS cor0
----
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 19 * + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT DISTINCT + + 70 - - + SUM( ALL 92 ) AS col0 FROM tab0 AS cor0
----
346

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT + + 70 - - + SUM ( ALL 92 ) AS col0 FROM tab0 AS cor0
----
346

query I rowsort
SELECT - 54 * + 96 + col1 FROM tab1
----
-5137
-5170
-5179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT DISTINCT - 17 * + 14 AS col1 FROM tab1 WHERE + ( col2 ) IN ( + CAST( col2 AS SIGNED ) )
----
-238

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT - 17 * + 14 AS col1 FROM tab1 WHERE + ( col2 ) IN ( + CAST ( col2 AS INTEGER ) )
----
-238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT - col0 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT - col0 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab0 WHERE ( - col2 ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL + SUM( - col0 ) + 44 FROM tab0
----
-155

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL + SUM ( - col0 ) + 44 FROM tab0
----
-155

query I rowsort
SELECT ALL 97 + - col0 AS col1 FROM tab0
----
0
10
82

query I rowsort
SELECT + 52 - + 40 * col0 FROM tab1
----
-1988
-3348
-3588

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL MIN( - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL MIN ( - col2 ) AS col2 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab0 WHERE col1 / + 94 >= 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT COUNT( * ) * MAX( col1 ) + + COUNT( * ) FROM tab1 WHERE NOT col1 * + col1 + col0 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT COUNT ( * ) * MAX ( col1 ) + + COUNT ( * ) FROM tab1 WHERE NOT col1 * + col1 + col0 >= ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 = + col1 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT MIN( ALL 63 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-9559
SELECT MIN ( ALL 63 ) FROM tab2
----
63

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) <= - 85 + - col0 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT CAST( + CAST( 38 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-9561
SELECT CAST ( + CAST ( 38 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
38
38
38

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / col0 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT MIN( ALL 35 ) AS col2 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-9563
SELECT MIN ( ALL 35 ) AS col2 FROM tab0
----
35

query I rowsort
SELECT DISTINCT col0 * - 48 + - 50 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 * col1 - 57 ) BETWEEN NULL AND - col2 + + col0
----

query I rowsort
SELECT 8 AS col2 FROM tab0 WHERE NOT NULL IN ( - col0 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT col0 DIV - 27 AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-9567
SELECT col0 / - 27 AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-1
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT ALL col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 14 * - col0 FROM tab1 AS cor0
----
1190
1274
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col0 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL MIN( col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL MIN ( col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT ALL CAST( - 22 AS SIGNED ) col0 FROM tab1 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9572
SELECT ALL CAST ( - 22 AS INTEGER ) col0 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - col2 * + 92 AS col1 FROM tab1 AS cor0
----
-5428
-6256
-8832

query I rowsort
SELECT ALL - col2 + + 90 AS col1 FROM tab2
----
32
50
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 93 IN ( + col2 * 68 )
----

query III rowsort
SELECT * FROM tab0 WHERE 11 * + col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9577
SELECT ALL - + col0 DIV 93 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - + col0 / 93 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT COUNT( * ) + 38 col2 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9579
SELECT DISTINCT COUNT ( * ) + 38 col2 FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - COUNT( * ) * + COUNT( - col1 ) FROM tab2 AS cor0 WHERE ( col2 ) * - col1 < col0
----
-9

skipif mysql # not compatible
query I rowsort label-9580
SELECT - COUNT ( * ) * + COUNT ( - col1 ) FROM tab2 AS cor0 WHERE ( col2 ) * - col1 < col0
----
-9

query I rowsort
SELECT + 78 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1678
3442
607

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT + SUM( col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9582
SELECT + SUM ( col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT ( - 96 ) AS col0 FROM tab2 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT + + ( COUNT( - 53 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9584
SELECT + + ( COUNT ( - 53 ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9585
SELECT 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-9585
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9586
SELECT - 38 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT - 38 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 31 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT 26 BETWEEN col0 AND - col1
----
46
64
75

query I rowsort
SELECT col1 - - col1 * col0 FROM tab0
----
1296
1848
98

query I rowsort
SELECT DISTINCT 78 FROM tab2 WHERE 21 * - col2 + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT - MIN( ALL - col1 ) AS col1 FROM tab1 WHERE col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT - MIN ( ALL - col1 ) AS col1 FROM tab1 WHERE col0 <> NULL
----
NULL

query I rowsort
SELECT col0 - - + col2 AS col1 FROM tab0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 col1 FROM tab2
----
104
133
69

query I rowsort
SELECT col2 - col2 + 71 * col1 FROM tab0
----
1491
5751
71

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE col0 <> NULL
----

query I rowsort
SELECT col2 + 53 AS col2 FROM tab0 cor0
----
100
152
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9597
SELECT - 98 + + + CAST( col0 AS SIGNED ) - col0 AS col2 FROM tab1 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-9597
SELECT - 98 + + + CAST ( col0 AS INTEGER ) - col0 AS col2 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) AS col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT - 4 + col2 * 40 FROM tab1 AS cor0
----
2356
2716
3836

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + 39 * col0 AND ( + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL + SUM( + + ( - 72 ) ) AS col1 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL + SUM ( + + ( - 72 ) ) AS col1 FROM tab1 AS cor0
----
-216

query I rowsort
SELECT ALL - - 34 * 17 FROM tab2 WHERE NOT NULL IS NOT NULL
----
578
578
578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9603
SELECT + CAST( - + col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9603
SELECT + CAST ( - + col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col2 col0 FROM tab0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
-198
-20
-94

query I rowsort
SELECT DISTINCT - 98 FROM tab2 WHERE NOT ( + 68 + - col0 ) IN ( + col1 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT + col2 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT + col2 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 - + ( ( - col0 ) ) ) NOT IN ( + col0 / col2 + col1 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT - 74 DIV - col1 + + col0 FROM tab2 AS cor0
----
47
64
76

skipif mysql # not compatible
query I rowsort label-9608
SELECT - 74 / - col1 + + col0 FROM tab2 AS cor0
----
47
64
76

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 >= - + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT DISTINCT MAX( + ( - 88 ) ) AS col0 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT MAX ( + ( - 88 ) ) AS col0 FROM tab2 AS cor0
----
-88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 52 IS NOT NULL
----

query II rowsort
SELECT - - 19 AS col1, - col2 * - col0 FROM tab2 AS cor0
----
19
1058
19
2560
19
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL + MIN( - 26 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 * col0 ) > col2 / - 80 - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + MIN ( - 26 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 * col0 ) > col2 / - 80 - col2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 BETWEEN col2 * - 53 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9615
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + CAST( col2 AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-9615
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + CAST ( col2 AS INTEGER ) AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * + col0 * - 37 * - 62 col2 FROM tab2
----
-111644392
-375848960
-748417500

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col0 * + - 45 + col1 * - 40 ) = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT COUNT( + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9619
SELECT COUNT ( + col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL 38 * COUNT( * ) col0 FROM tab1
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9620
SELECT ALL 38 * COUNT ( * ) col0 FROM tab1
----
114

query I rowsort
SELECT ALL col1 * - col0 + + - col1 + - col2 FROM tab1
----
-4392
-489
-824

query I rowsort
SELECT ( col0 ) + + - col0 + + 95 + + col2 * - col1 AS col0 FROM tab0
----
-115
-3712
-4

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT + + col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 5 + - 29 BETWEEN ( col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + - - col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + + ( + 22 ) FROM tab2 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL - - MIN( - col1 ) * - 28 AS col0 FROM tab2 AS cor0
----
2156

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL - - MIN ( - col1 ) * - 28 AS col0 FROM tab2 AS cor0
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT - MIN( - 95 ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-9628
SELECT - MIN ( - 95 ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
95

query III rowsort
SELECT * FROM tab0 WHERE ( + + col1 ) NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + col2 FROM tab2 WHERE + col2 - - col2 NOT IN ( - - 2 )
----
116
46
80

query I rowsort
SELECT + 36 - 60 FROM tab0 cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT - col1 + + + col1 FROM tab1 cor0
----
0

query I rowsort
SELECT - 40 - col0 AS col2 FROM tab2 cor0
----
-104
-115
-86

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 74 * col1 + - col2 + - col0 + - - col0 FROM tab1 AS cor0
----
-1132
-3546
-429

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9636
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST( + 1 AS DECIMAL ) AND NOT NULL NOT IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-9636
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST ( + 1 AS REAL ) AND NOT NULL NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL MAX( - - col0 ) col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9637
SELECT ALL MAX ( - - col0 ) col1 FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - - 57 + + 11 * - 31 - - - col0 * - 32 col1 FROM tab2 AS cor0
----
-1247
-180
-573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9639
SELECT ( CAST( NULL AS SIGNED ) ) + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT ( CAST ( NULL AS INTEGER ) ) + - col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL >= ( - col1 ) )
----

query I rowsort
SELECT - ( col1 ) + col1 FROM tab1 WHERE ( NOT + 24 < NULL )
----

query I rowsort
SELECT DISTINCT 75 * + col1 * col0 AS col0 FROM tab2
----
175950
369600
376875

query I rowsort
SELECT 74 + + - 99 * - col2 AS col1 FROM tab0
----
1064
4727
9875

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND - 14
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9645
SELECT DISTINCT + COUNT( * ), 97 AS col2 FROM tab2
----
3
97

skipif mysql # not compatible
query II rowsort label-9645
SELECT DISTINCT + COUNT ( * ), 97 AS col2 FROM tab2
----
3
97

query I rowsort
SELECT 82 * + col0 AS col2 FROM tab1
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL + COUNT( col2 ) + + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + COUNT ( col2 ) + + COUNT ( * ) AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT + COUNT( - 89 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9648
SELECT + COUNT ( - 89 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT + COUNT( * ) + - + 80 AS col1 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + COUNT ( * ) + - + 80 AS col1 FROM tab0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9650
SELECT DISTINCT 48 * - - CAST( NULL AS SIGNED ) * SUM( + col0 ) * + 9 + + 85 / - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT 48 * - - CAST ( NULL AS INTEGER ) * SUM ( + col0 ) * + 9 + + 85 / - COUNT ( * ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * col0 + - col1 * 90 * + col1 NOT IN ( col2 / - col0 + + ( - col1 ) / - 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col2 ) + + col2 - + + 38 IN ( + - 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL - SUM( + - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - SUM ( + - col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT IN ( + ( + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - col0 + - + 9 * col2 * + col2 <= - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 63 AS col0 FROM tab0 AS cor0 WHERE NULL > col0
----

query I rowsort
SELECT - col0 * + + 55 * 69 + - + col1 * - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = - 84
----

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 72 col2 FROM tab1 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT - MIN( - CAST( + + 3 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9661
SELECT - MIN ( - CAST ( + + 3 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9662
SELECT ALL CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9662
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab2
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL SUM( DISTINCT + col0 ) + - 11 + + ( 93 ) + + MAX( + - 0 ) FROM tab1
----
309

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL SUM ( DISTINCT + col0 ) + - 11 + + ( 93 ) + + MAX ( + - 0 ) FROM tab1
----
309

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 14 BETWEEN 88 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9665
SELECT ALL COUNT( * ) * + COUNT( * ) * + CAST( NULL AS SIGNED ) * + 51 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 51 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + ( 79 ) FROM tab0 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + - - 43 * + col0 col1 FROM tab1 cor0 WHERE NOT - 0 < NULL
----

query I rowsort
SELECT 50 * - 52 FROM tab2 AS cor0
----
-2600
-2600
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT COUNT( * ) + + 65 AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-9669
SELECT COUNT ( * ) + + 65 AS col0 FROM tab0
----
68

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT - - ( col2 ) <> NULL
----

query I rowsort
SELECT - 30 FROM tab1 WHERE col2 / - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT ALL + CAST( 41 AS SIGNED ) FROM tab0 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + CAST ( 41 AS INTEGER ) FROM tab0 AS cor0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT ALL + + ( - + col2 ) + + CAST( - 11 AS SIGNED ) * + 40 * col1 AS col2 FROM tab1 AS cor0
----
-20748
-2259
-6256

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + + ( - + col2 ) + + CAST ( - 11 AS INTEGER ) * + 40 * col1 AS col2 FROM tab1 AS cor0
----
-20748
-2259
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + 23 * - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9674
SELECT + 23 * - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9675
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col0 AS col1, 47 + - col1 FROM tab0 AS cor0
----
NULL
-34
NULL
26
NULL
46

skipif mysql # not compatible
query II rowsort label-9675
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col0 AS col1, 47 + - col1 FROM tab0 AS cor0
----
NULL
-34
NULL
26
NULL
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, + ( + + 8 ) col2 FROM tab2 AS cor0 WHERE NOT - 73 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT MIN( DISTINCT 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9677
SELECT MIN ( DISTINCT 0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 75 * - - 3 - - - 87 FROM tab2 AS cor0
----
138

query I rowsort
SELECT DISTINCT col2 - - - col0 + + - ( - 68 ) + + 37 AS col1 FROM tab1
----
150
79
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, ( + col2 ) * + 95 * - 16 AS col2 FROM tab0
----
15
-71440
87
-15200
97
-150480

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9682
SELECT - col0 * - CAST( NULL AS DECIMAL ) * + 13 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT - col0 * - CAST ( NULL AS REAL ) * + 13 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 29 AS col2 FROM tab0 AS cor0 WHERE 74 = + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT - - COUNT( col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9684
SELECT - - COUNT ( col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT DISTINCT + col0 DIV + - col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT + col0 / + - col0 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT ALL 12 DIV - 11 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL 12 / - 11 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9687
SELECT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - 58 * COUNT( * ) AS col2 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-9688
SELECT - 58 * COUNT ( * ) AS col2 FROM tab0
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-9689
SELECT ALL 84 AS col1, COUNT( * ) FROM tab2
----
84
3

skipif mysql # not compatible
query II rowsort label-9689
SELECT ALL 84 AS col1, COUNT ( * ) FROM tab2
----
84
3

query II rowsort
SELECT - 95 AS col0, + 7 FROM tab1
----
-95
7
-95
7
-95
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9691
SELECT SUM( + - col1 ) DIV + COUNT( * ) FROM tab2 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9691
SELECT SUM ( + - col1 ) / + COUNT ( * ) FROM tab2 cor0
----
-65

query I rowsort
SELECT ALL - - 80 * - col2 FROM tab1 AS cor0
----
-4720
-5440
-7680

query I rowsort
SELECT - col0 * - 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9694
SELECT + + COUNT( DISTINCT 18 ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ), + col0, + 11, - ( + - col0 ) + - col2 + 66 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT + + COUNT ( DISTINCT 18 ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ), + col0, + 11, - ( + - col0 ) + - col2 + 66 + + col0 )
----
0

query II rowsort
SELECT DISTINCT - col0, 94 AS col1 FROM tab1 AS cor0
----
-51
94
-85
94
-91
94

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE ( - ( + + 33 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT ALL col2 FROM tab0 WHERE + 0 NOT IN ( - - ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL col2 FROM tab0 WHERE + 0 NOT IN ( - - ( - CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT + col1 AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) - - - col2 * col1 IN ( - col1 * col0 * - + 21 )
----

skipif mysql # not compatible
query I rowsort label-9698
SELECT + col1 AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) - - - col2 * col1 IN ( - col1 * col0 * - + 21 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 * - col2 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT ALL MAX( DISTINCT + col2 ) DIV COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL MAX ( DISTINCT + col2 ) / COUNT ( * ) FROM tab2
----
19

query II rowsort
SELECT + 64 + + col0 AS col2, col0 * + + col1 + + - col1 * + col1 AS col0 FROM tab0
----
151
1386
161
96
79
-5346

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT COUNT( * ) FROM tab0 WHERE NULL NOT IN ( - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9702
SELECT COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( - - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9703
SELECT * FROM tab0 WHERE CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9703
SELECT * FROM tab0 WHERE CAST ( - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT col0 * + 48 + - col1 AS col2 FROM tab0
----
4155
4655
639

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT + 77 + MAX( DISTINCT + + 22 ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9705
SELECT DISTINCT + 77 + MAX ( DISTINCT + + 22 ) col1 FROM tab0
----
99

query I rowsort
SELECT + col2 + - - col0 * + 53 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-135717
-230559
-56102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 30 col1 FROM tab1 AS cor0
----
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT 17 * MAX( 63 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT 17 * MAX ( 63 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 ) >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( 84, 27 + + - ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT + MIN( col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9711
SELECT + MIN ( col2 ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9713
SELECT ALL - 33 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) + ( ( col0 ) ) / - - 33 IS NULL
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL - 33 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) + ( ( col0 ) ) / - - 33 IS NULL
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT + COUNT( + - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9714
SELECT + COUNT ( + - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 19 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9715
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 19 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) * + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) * + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - + ( col2 ) ) AS col1 FROM tab0 AS cor0 WHERE col1 <> - col2
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9718
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT 97 * + ( - - col2 ) FROM tab1
----
5723
6596
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT + 2 DIV - + 24 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9720
SELECT + 2 / - + 24 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 * + 5 * - - col0 AS col2 FROM tab1
----
-2125
-21385
-3570

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL COUNT( col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL COUNT ( col0 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT + 0 * - 28 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 69 IS NOT NULL
----

query I rowsort
SELECT 46 * 69 FROM tab2
----
3174
3174
3174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9727
SELECT - col2 * 17 * + CAST( col0 AS SIGNED ) AS col0, col2 AS col2 FROM tab2
----
-17986
23
-43520
40
-73950
58

skipif mysql # not compatible
query II rowsort label-9727
SELECT - col2 * 17 * + CAST ( col0 AS INTEGER ) AS col0, col2 AS col2 FROM tab2
----
-17986
23
-43520
40
-73950
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT ALL 37 * - - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1480
2146
851

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL 37 * - - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1480
2146
851

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9730
SELECT DISTINCT - - COUNT( * ) DIV + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT - - COUNT ( * ) / + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
4

query II rowsort
SELECT ALL col2 AS col1, + ( + 6 ) * + col0 AS col2 FROM tab0 WHERE col2 - col0 <> ( NULL )
----

query I rowsort
SELECT + col1 + + 72 FROM tab1 AS cor0
----
119
77
86

query I rowsort
SELECT - + 62 + - 84 AS col0 FROM tab0 AS cor0
----
-146
-146
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT DISTINCT - - col0 * + col2 - CAST( NULL AS SIGNED ) + col0 / + + col1 / col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT - - col0 * + col2 - CAST ( NULL AS INTEGER ) + col0 / + + col1 / col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9735
SELECT ALL + CAST( NULL AS DECIMAL ), - col0 * + - col2 AS col1 FROM tab1 AS cor0
----
NULL
4896
NULL
5015
NULL
6188

skipif mysql # not compatible
query II rowsort label-9735
SELECT ALL + CAST ( NULL AS REAL ), - col0 * + - col2 AS col1 FROM tab1 AS cor0
----
NULL
4896
NULL
5015
NULL
6188

query II rowsort
SELECT 96 AS col2, 4 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT + MIN( + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9737
SELECT + MIN ( + - col2 ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT DISTINCT 70 AS col0, col2 - col0 FROM tab0
----
70
-77
70
2
70
32

query I rowsort
SELECT DISTINCT - col2 + + col2 * + col1 + + col0 FROM tab2
----
1196
3104
3903

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT 27 + - - COUNT( * ) AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT 27 + - - COUNT ( * ) AS col1 FROM tab2
----
30

query I rowsort
SELECT ALL 54 + col1 FROM tab1
----
101
59
68

query I rowsort
SELECT + col0 - + ( col2 ) + + col1 AS col0 FROM tab2 AS cor0
----
101
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT SUM( ALL col2 ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9743
SELECT SUM ( ALL col2 ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT + MIN( DISTINCT + col2 ) + + 28 AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9744
SELECT + MIN ( DISTINCT + col2 ) + + 28 AS col2 FROM tab1 AS cor0
----
87

query I rowsort
SELECT + col2 * - + 62 + - col0 + 31 AS col0 FROM tab0 AS cor0
----
-2898
-6204
-676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9746
SELECT CAST( 31 AS SIGNED ) + + + COUNT( * ) - - + 1 col0 FROM tab2
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9746
SELECT CAST ( 31 AS INTEGER ) + + + COUNT ( * ) - - + 1 col0 FROM tab2
----
35

query I rowsort
SELECT ALL - ( 6 ) AS col2 FROM tab2
----
-6
-6
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 > ( + col0 )
----
46
51
23
64
77
40

query I rowsort
SELECT ALL col1 + + ( + + 55 ) + - col1 FROM tab2
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL COUNT( DISTINCT 36 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL COUNT ( DISTINCT 36 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * - - col1 )
----

query I rowsort
SELECT + 59 FROM tab0 AS cor0 WHERE NOT - 20 / col0 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9753
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-9753
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT ALL - - col0 * col0 / - col1 + + - col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - col1 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 AS col0, + 30 FROM tab2
----
51
30
67
30
77
30

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - 36 ) / - + 89 / + col1 + col2 + - + col0 NOT BETWEEN + 11 AND - 48
----

query I rowsort
SELECT DISTINCT col2 * - - col2 AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9759
SELECT + 85 DIV - - COUNT( ALL col0 ) AS col2 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-9759
SELECT + 85 / - - COUNT ( ALL col0 ) AS col2 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT + 20 * + COUNT( * ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9760
SELECT + 20 * + COUNT ( * ) FROM tab2 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT ALL CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - - col1 * col1 * + ( - col0 ) FROM tab1 AS cor0 WHERE col2 * - col1 IS NULL
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - col1 * - 35 * + col0 - - - ( - - 7 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL + COUNT( * ) + - 57 AS col0 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + COUNT ( * ) + - 57 AS col0 FROM tab2
----
-54

query I rowsort
SELECT 12 * + 63 * + 48 AS col2 FROM tab0
----
36288
36288
36288

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL BETWEEN - - col2 AND + - col0 )
----

query I rowsort
SELECT - - col2 * ( - - 31 ) AS col0 FROM tab2 AS cor0
----
1240
1798
713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * + col2 col2 FROM tab1 AS cor0
----
2950
3400
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT + COUNT( * ) * + 36 * + - 63 FROM tab1 cor0
----
-6804

skipif mysql # not compatible
query I rowsort label-9769
SELECT + COUNT ( * ) * + 36 * + - 63 FROM tab1 cor0
----
-6804

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9771
SELECT COUNT( * ) DIV - + 82 + - 76 col1 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9771
SELECT COUNT ( * ) / - + 82 + - 76 col1 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT - ( - MIN( ALL + 37 ) ) AS col2 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT - ( - MIN ( ALL + 37 ) ) AS col2 FROM tab2
----
37

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 BETWEEN ( + col2 ) AND + col0 - + col1 + col1 * + - 22 - + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - col1 + col2 * + col2 AS col2 FROM tab2
----
1600
3364
529

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 29 + + 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT COUNT( * ) + 7 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-9777
SELECT COUNT ( * ) + 7 FROM tab2
----
10

query I rowsort
SELECT ALL + ( + 20 ) AS col1 FROM tab1
----
20
20
20

query III rowsort
SELECT * FROM tab1 WHERE col0 < - col1 + + 34
----

query I rowsort
SELECT + 17 + col0 FROM tab1
----
102
108
68

query I rowsort
SELECT 88 + + 93 AS col0 FROM tab2
----
181
181
181

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL BETWEEN + - 4 AND + - col2
----

query I rowsort
SELECT - col1 + - 68 FROM tab1
----
-115
-73
-82

query I rowsort
SELECT col2 + - + col1 AS col1 FROM tab0
----
-11
-34
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( + + col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL + + MIN( ALL + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL + + MIN ( ALL + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - col0 - + + col2 FROM tab1
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT ( + + col2 ) DIV col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-9789
SELECT ( + + col2 ) / col1 FROM tab0 AS cor0
----
0
0
99

query I rowsort
SELECT DISTINCT ( 99 ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( - 89 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( - 89 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 75 col0, col2 AS col2 FROM tab1 AS cor0
----
75
59
75
68
75
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT + - 94 * 41 * - COUNT( * ) FROM tab1 AS cor0
----
11562

skipif mysql # not compatible
query I rowsort label-9793
SELECT + - 94 * 41 * - COUNT ( * ) FROM tab1 AS cor0
----
11562

onlyif mysql # DIV for integer division: 
query II rowsort label-9794
SELECT col2, col1 DIV + col0 FROM tab1 cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-9794
SELECT col2, col1 / + col0 FROM tab1 cor0
----
59
0
68
0
96
0

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT ALL + ( - SUM( - ( + 7 ) ) ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9796
SELECT ALL + ( - SUM ( - ( + 7 ) ) ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
21

query I rowsort
SELECT - 16 FROM tab2 WHERE NOT + col2 + 94 <> + 41
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9798
SELECT 94 * SUM( ALL - CAST( - 71 AS SIGNED ) ) AS col1 FROM tab1
----
20022

skipif mysql # not compatible
query I rowsort label-9798
SELECT 94 * SUM ( ALL - CAST ( - 71 AS INTEGER ) ) AS col1 FROM tab1
----
20022

query I rowsort
SELECT DISTINCT - col2 * + col0 * - - 98 AS col2 FROM tab2
----
-103684
-250880
-426300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT DISTINCT - 79 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-79

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - 79 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-79

query I rowsort
SELECT ALL col1 * 7 AS col0 FROM tab2
----
357
469
539

query II rowsort
SELECT DISTINCT ( 72 ) AS col2, col0 + - + 35 FROM tab2
----
72
11
72
29
72
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9803
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9803
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT - ( - MAX( col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9804
SELECT - ( - MAX ( col0 ) ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT - - CAST( col0 AS SIGNED ) * 12 AS col0 FROM tab2 AS cor0
----
552
768
900

skipif mysql # not compatible
query I rowsort label-9805
SELECT - - CAST ( col0 AS INTEGER ) * 12 AS col0 FROM tab2 AS cor0
----
552
768
900

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9806
SELECT DISTINCT * FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) + col1 + - 27 NOT IN ( - col2 * 80, + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9806
SELECT DISTINCT * FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) + col1 + - 27 NOT IN ( - col2 * 80, + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT ALL - 38 + - - CAST( - col1 AS SIGNED ) FROM tab0
----
-119
-39
-59

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL - 38 + - - CAST ( - col1 AS INTEGER ) FROM tab0
----
-119
-39
-59

query I rowsort
SELECT 8 * + + 76 + - col2 FROM tab0 AS cor0
----
509
561
598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT - col2 + - CAST( NULL AS SIGNED ) + - col0 + - 53 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT - col2 + - CAST ( NULL AS INTEGER ) + - col0 + - 53 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + 44 * + col1 AS col2 FROM tab1 AS cor0
----
2115
225
630

query I rowsort
SELECT ALL + - 15 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL SUM( ALL 3 ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL SUM ( ALL 3 ) AS col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 6 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * 59 AS col1 FROM tab1
----
3481
4012
5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT ALL + CAST( 3 AS SIGNED ) + + col1 AS col1 FROM tab1
----
17
50
8

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + CAST ( 3 AS INTEGER ) + + col1 AS col1 FROM tab1
----
17
50
8

query I rowsort
SELECT - col2 * col2 - + col0 FROM tab1
----
-3566
-4715
-9267

query I rowsort
SELECT DISTINCT col2 + + - col0 * - 94 AS col0 FROM tab0
----
1457
8188
9217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col1 * - col2 col2 FROM tab2
----
1122
3003
3819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + - 21 - 91 + + col2 col0, - col0 * + - 85 * 81 FROM tab2
----
1003
316710
1374
516375
1566
440640

query I rowsort
SELECT + 47 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL OR col2 + 70 <= NULL
----
47
47
47

query I rowsort
SELECT + ( + col2 ) + - + col1 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT + ( - + COUNT( * ) ) + + - 44 FROM tab2 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9823
SELECT + ( - + COUNT ( * ) ) + + - 44 FROM tab2 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT DISTINCT MAX( + - 84 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT MAX ( + - 84 ) FROM tab2 AS cor0
----
-84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - 62 ) IS NOT NULL
----

query I rowsort
SELECT col1 * + - col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT - CAST( NULL AS SIGNED ) / + + 50 * - AVG ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT - CAST ( NULL AS INTEGER ) / + + 50 * - AVG ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col2 * + + col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT DISTINCT - - 23 AS col1 FROM tab1 AS cor0
----
23

query II rowsort
SELECT ALL + col0 AS col1, - 92 AS col2 FROM tab2 cor0
----
46
-92
64
-92
75
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9832
SELECT ALL * FROM tab0 WHERE NOT ( 48 IN ( col0, 94 + - - CAST( - col0 AS SIGNED ) ) ) OR NOT + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9832
SELECT ALL * FROM tab0 WHERE NOT ( 48 IN ( col0, 94 + - - CAST ( - col0 AS INTEGER ) ) ) OR NOT + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN - - col0 + - - 26 + 29 AND 3
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 28 IS NOT NULL
----

query II rowsort
SELECT + col0, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT MIN( ALL - - col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT MIN ( ALL - - col1 ) AS col1 FROM tab2
----
51

query II rowsort
SELECT DISTINCT + - 89, 69 AS col1 FROM tab1 AS cor0
----
-89
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 98 IS NOT NULL
----

query I rowsort
SELECT - 64 + + 87 FROM tab2 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL - ( - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT CAST( NULL AS SIGNED ) / + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT CAST ( NULL AS INTEGER ) / + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE col0 * - col1 IS NULL
----

query II rowsort
SELECT + 21 * col2 + - col0 + - - col0 * - col1, + col2 FROM tab0 AS cor0 WHERE NULL >= 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + + 85 col0 FROM tab2 cor0
----
131
149
160

query II rowsort
SELECT DISTINCT + - col2 AS col1, col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * col0 / ( + + ( + col2 ) ) - + col0 / + col1 - + 74 < NULL
----

query I rowsort
SELECT - col0 + + + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * - - col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL col1 + - 74 + col0 * + 41 AS col2 FROM tab0
----
3514
3904
622

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT 92 * 9 DIV - col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-16
-9
-9

skipif mysql # not compatible
query I rowsort label-9850
SELECT 92 * 9 / - col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-16
-9
-9

query I rowsort
SELECT DISTINCT 45 + + col1 AS col0 FROM tab2
----
112
122
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab0 WHERE + - col0 IS NOT NULL
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT + COUNT( - - 43 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9853
SELECT + COUNT ( - - 43 ) col0 FROM tab1
----
3

query II rowsort
SELECT - 19, col2 FROM tab0
----
-19
10
-19
47
-19
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT DISTINCT - 93 FROM tab1 WHERE + - ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT - 93 FROM tab1 WHERE + - ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + col2 * - + 49
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9858
SELECT + 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-9858
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT + col2 AS col2 FROM tab2 WHERE NOT 67 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9859
SELECT + col2 AS col2 FROM tab2 WHERE NOT 67 IN ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> + 3 * - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT - - col2 DIV + 99 + col1 FROM tab0 AS cor0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-9861
SELECT - - col2 / + 99 + col1 FROM tab0 AS cor0
----
2
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT - CAST( - - COUNT( DISTINCT + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9862
SELECT - CAST ( - - COUNT ( DISTINCT + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * - + col0 + col2 + + col2 FROM tab2
----
-2070
-4016
-5509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9864
SELECT ALL COUNT( * ) DIV + - SUM( ALL - + 84 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL COUNT ( * ) / + - SUM ( ALL - + 84 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9865
SELECT DISTINCT col1 DIV ( - - 79 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT col1 / ( - - 79 ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9866
SELECT + MAX( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT + MAX ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 65 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + col0 + - + col1 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT + + SUM( DISTINCT - col0 ) + - 59 col0 FROM tab2 AS cor0
----
-244

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9870
SELECT + + SUM ( DISTINCT - col0 ) + - 59 col0 FROM tab2 AS cor0
----
-244

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT - 78 DIV + 80 AS col1 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9871
SELECT - 78 / + 80 AS col1 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT DISTINCT SUM( + col1 ) + - - 83 FROM tab2
----
278

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT SUM ( + col1 ) + - - 83 FROM tab2
----
278

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE ( + 92 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL - + 51 + COUNT( * ) col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9874
SELECT ALL - + 51 + COUNT ( * ) col1 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - 79 * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-9875
SELECT - 79 * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
237

query II rowsort
SELECT 16, col1 AS col2 FROM tab2 AS cor0
----
16
51
16
67
16
77

query II rowsort
SELECT + col2 * - col1, - col1 AS col0 FROM tab0 AS cor0
----
-210
-21
-3807
-81
-99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + + - col2 + - col0 + 26 FROM tab2 AS cor0
----
-1
-40
8

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + + - col2 + - col0 + 26 FROM tab2 AS cor0
----
-1
-40
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT DISTINCT - SUM( + col0 ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT - SUM ( + col0 ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-681

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 80 * + + col2 FROM tab2 cor0
----
-1840
-3200
-4640

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT - COUNT( * ) * + - 79 AS col0 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-9882
SELECT - COUNT ( * ) * + - 79 AS col0 FROM tab2 AS cor0
----
237

query I rowsort
SELECT ALL ( + col0 ) * - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT - SUM( + 88 ) - + COUNT( * ) FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-9885
SELECT - SUM ( + 88 ) - + COUNT ( * ) FROM tab1
----
-267

query I rowsort
SELECT DISTINCT + ( + 84 ) + + col0 AS col2 FROM tab1
----
135
169
175

query III rowsort
SELECT * FROM tab1 WHERE - col2 < + - col0
----
51
14
96

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT NULL > - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
3

query I rowsort
SELECT ALL - 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query II rowsort
SELECT ALL + col0, + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
23
64
40
75
58

query I rowsort
SELECT ALL col0 + + 99 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
114
186
196

query I rowsort
SELECT - 71 * + 41 FROM tab2 AS cor0
----
-2911
-2911
-2911

query I rowsort
SELECT - col2 * - 12 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT + + col2 DIV 20 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-9895
SELECT + + col2 / 20 FROM tab2 AS cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT COUNT( - - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT COUNT ( - - col1 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2, col0 col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT - - col2 * + ( + col0 ) AS col0 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT DISTINCT - MAX( ALL + 2 ) + + 91 col2 FROM tab0 WHERE + col2 >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9899
SELECT DISTINCT - MAX ( ALL + 2 ) + + 91 col2 FROM tab0 WHERE + col2 >= NULL
----
NULL

query I rowsort
SELECT col2 + - 49 + + + col2 AS col1 FROM tab0
----
-29
149
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9901
SELECT DISTINCT col1 + + - CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9901
SELECT DISTINCT col1 + + - CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT + 99 + - 68 FROM tab0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT COUNT( + + 23 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT COUNT ( + + 23 ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN NULL AND col1 * - + 46 + + - 89 OR + col2 > NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT col0 DIV + + 35 - - col2 - + col0 * - ( + - col1 ) * + 78 - - col1 FROM tab0
----
-142473
-7464
-94642

skipif mysql # not compatible
query I rowsort label-9907
SELECT col0 / + + 35 - - col2 - + col0 * - ( + - col1 ) * + 78 - - col1 FROM tab0
----
-142473
-7464
-94642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT ( + - col1 ) - - col2 - CAST( NULL AS SIGNED ) + - col1 - - + 10 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT ( + - col1 ) - - col2 - CAST ( NULL AS INTEGER ) + - col1 - - + 10 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE col1 + - 63 + - col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL + - 75 - - + 14 * + - col1 FROM tab1 cor0
----
-145
-271
-733

query I rowsort
SELECT + - 2 + + 30 AS col2 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9912
SELECT ALL col2 / - 91 - CAST( NULL AS SIGNED ) * ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL col2 / - 91 - CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 4 FROM tab2 AS cor0
----
42
60
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9914
SELECT + col1 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9914
SELECT + col1 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT - col0 * - col1, - 24 AS col1 FROM tab0
----
1215
-24
1827
-24
97
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL SUM( ALL - + col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL SUM ( ALL - + col0 ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE NOT - 68 - - 86 * ( col2 ) IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + 80 FROM tab2
----
-51
80
-67
80
-77
80

query II rowsort
SELECT + col2, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 82 * - col2 AND - col2
----

query II rowsort
SELECT DISTINCT - 85, col1 * col1 * + + col1 * - 93 - + col2 AS col2 FROM tab0
----
-85
-192
-85
-49424060
-85
-861283

query II rowsort
SELECT - - col2 AS col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - COUNT( * ) + 68 - + - 15 AS col2 FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
80

skipif mysql # not compatible
query I rowsort label-9923
SELECT - COUNT ( * ) + 68 - + - 15 AS col2 FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT DISTINCT COUNT( * ) * + MIN( ALL + 58 ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT COUNT ( * ) * + MIN ( ALL + 58 ) FROM tab1 AS cor0
----
174

query I rowsort
SELECT + + ( + + 87 ) AS col2 FROM tab0 cor0
----
87
87
87

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9927
SELECT + ( - - CAST( 41 AS SIGNED ) ) * + col2 - + col2 FROM tab2 AS cor0 WHERE NOT col1 * + col1 IS NULL
----
1600
2320
920

skipif mysql # not compatible
query I rowsort label-9927
SELECT + ( - - CAST ( 41 AS INTEGER ) ) * + col2 - + col2 FROM tab2 AS cor0 WHERE NOT col1 * + col1 IS NULL
----
1600
2320
920

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT - ( - MAX( - + 83 ) ) AS col0 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-9928
SELECT - ( - MAX ( - + 83 ) ) AS col0 FROM tab1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT MAX( + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9930
SELECT MAX ( + col2 ) FROM tab2
----
58

query I rowsort
SELECT ALL + 72 * + ( + + col0 ) AS col1 FROM tab1 AS cor0 WHERE - col1 / - - 29 + + col2 * - + col2 - + col2 IS NOT NULL
----
3672
6120
6552

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT ALL col0 * col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL col0 * col1 / - col0 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT - MAX( 77 ) AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9933
SELECT - MAX ( 77 ) AS col2 FROM tab0 AS cor0
----
-77

query II rowsort
SELECT DISTINCT + col0 + 90 * + - 10 AS col0, - 4 FROM tab2
----
-825
-4
-836
-4
-854
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-9935
SELECT ALL col0 col1, 58 DIV - col2 AS col0 FROM tab0
----
15
-1
87
-5
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9935
SELECT ALL col0 col1, 58 / - col2 AS col0 FROM tab0
----
15
-1
87
-5
97
0

query I rowsort
SELECT + col2 FROM tab0 WHERE col1 > col1 * + - col0
----
10
47
99

query II rowsort
SELECT - col1, + 75 + - col2 AS col2 FROM tab0
----
-1
-24
-21
65
-81
28

query III rowsort
SELECT ALL * FROM tab1 WHERE - 16 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - 61 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col0 + - + 47 AS col2 FROM tab0 AS cor0
----
-32
40
50

query I rowsort
SELECT 8 + - + 28 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9942
SELECT - 9 DIV + COUNT( * ) + - 94 * + COUNT( - col1 ) + 53 col2 FROM tab0 AS cor0
----
-232

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9942
SELECT - 9 / + COUNT ( * ) + - 94 * + COUNT ( - col1 ) + 53 col2 FROM tab0 AS cor0
----
-232

query I rowsort
SELECT DISTINCT - - 12 - 78 * - - 39 + - col2 - col1 FROM tab0 AS cor0
----
-3061
-3130
-3158

query I rowsort
SELECT DISTINCT col1 * + ( + col0 ) FROM tab2 AS cor0 WHERE NOT - - 31 < NULL AND ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + col0 * - - 69 * - ( + ( col2 ) ) AS col1, col0 FROM tab0
----
-48645
15
-60030
87
-662607
97

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 54 > - - col2 )
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9947
SELECT DISTINCT 61 * + CAST( - + ( 25 ) AS SIGNED ), - col0 AS col0 FROM tab2
----
-1525
-46
-1525
-64
-1525
-75

skipif mysql # not compatible
query II rowsort label-9947
SELECT DISTINCT 61 * + CAST ( - + ( 25 ) AS INTEGER ), - col0 AS col0 FROM tab2
----
-1525
-46
-1525
-64
-1525
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT - - COUNT( * ) * - - ( - COUNT( * ) ) + + 90 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9948
SELECT - - COUNT ( * ) * - - ( - COUNT ( * ) ) + + 90 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - 9 AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + ( + 18 ), col1 AS col1 FROM tab1 AS cor0
----
18
14
18
47
18
5

query I rowsort
SELECT 30 - - col0 FROM tab1 AS cor0
----
115
121
81

query I rowsort
SELECT 39 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL + SUM( + ( + col1 ) ) - - COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL + SUM ( + ( + col1 ) ) - - COUNT ( * ) FROM tab1 AS cor0
----
69

query I rowsort
SELECT + 41 * 0 + 7 + - col2 FROM tab0 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - ( 97 ) * + col2 + col1 - - 1 FROM tab1 cor0
----
-5717
-6548
-9297

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 33 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col2 + + col1
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ALL + MIN( - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL + MIN ( - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - ( + + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

query II rowsort
SELECT ( - col0 ) AS col1, col1 AS col1 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT + col2 * + + 17 * - + 30 FROM tab2
----
-11730
-20400
-29580

query I rowsort
SELECT + ( - - col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL - ( + - col1 ) AS col0 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL + COUNT( ALL - - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + COUNT ( ALL - - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT col2 DIV - col2 + - 98 FROM tab2 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-9968
SELECT col2 / - col2 + - 98 FROM tab2 AS cor0
----
-99
-99
-99

query III rowsort
SELECT DISTINCT - col0 AS col0, col2, + col2 FROM tab0 cor0
----
9 values hashing to 709140e88e3ccd5e710aedd1ff38690d

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 12 BETWEEN - col2 AND - 27 / - ( ( - - 88 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE - col1 * + 85 + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT ALL CAST( 14 AS SIGNED ) FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL CAST ( 14 AS INTEGER ) FROM tab1
----
14
14
14

query I rowsort
SELECT col2 + col0 + col1 AS col2 FROM tab2
----
120
181
200

query I rowsort
SELECT col1 + - col1 * + 15 AS col1 FROM tab0
----
-1134
-14
-294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9975
SELECT DISTINCT 87 * - + MAX( DISTINCT - col1 ) + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT 87 * - + MAX ( DISTINCT - col1 ) + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 + + + col1 AS col0 FROM tab1
----
-21
-54
-82

query II rowsort
SELECT ALL 52 + 31 AS col0, col2 + - col0 * col0 * + col1 + 66 FROM tab1
----
83
-36000
83
-36252
83
-389073

query I rowsort
SELECT + 56 * - 26 AS col0 FROM tab0 AS cor0
----
-1456
-1456
-1456

query I rowsort
SELECT ALL + col1 - - col2 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT DISTINCT MIN( - col2 ) AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT MIN ( - col2 ) AS col0 FROM tab2 cor0
----
-58

query I rowsort
SELECT - - col1 * - col1 + - + col1 FROM tab0 AS cor0
----
-2
-462
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ALL - COUNT( * ) - - 11 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL - COUNT ( * ) - - 11 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL + col1 - - col1 AS col2 FROM tab0 cor0
----
162
2
42

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN 97 * col0 + col2 - + col2 AND + 77 * - + 98
----

query I rowsort
SELECT 86 - - col2 FROM tab1
----
145
154
182

query I rowsort
SELECT 78 * + 13 - + col1 AS col0 FROM tab2
----
937
947
963

query I rowsort
SELECT - col1 - - 58 AS col0 FROM tab2
----
-19
-9
7

query I rowsort
SELECT col1 - - + col1 AS col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT - COUNT( col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9989
SELECT - COUNT ( col1 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - + col0, - col1 AS col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9991
SELECT - 94 * + - COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9991
SELECT - 94 * + - COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 - + col2 >= + 44
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT DISTINCT + COUNT( * ), COUNT( * ) AS col2 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9993
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 73 col0, - 14 * + col2 FROM tab0 AS cor0
----
-73
-1386
-73
-140
-73
-658

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT 79 IS NULL
----
-51
-67
-77

query I rowsort
SELECT - 71 * 77 AS col2 FROM tab0
----
-5467
-5467
-5467

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT DISTINCT - col1 DIV + - col2 * - - 3 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT - col1 / + - col2 * - - 3 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT - SUM( + ( - + col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9998
SELECT - SUM ( + ( - + col2 ) ) FROM tab1
----
223

query I rowsort
SELECT ALL + 35 AS col1 FROM tab2 cor0
----
35
35
35

