sqllogictest
Artifact Content
Not logged in

Artifact 73dddb7902663c1c4ab0a5741baa14a57a31a8a0:


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
----