sqllogictest
Artifact Content
Not logged in

Artifact de48ee5f9482dc203835e5f62acd12a88208538f:


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 III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 36 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + + 37 + + col1 - + col2 AS col0 FROM tab0 AS cor0
----
-61
48
71

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN col2 + - 51 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN col2 + - 51 AND NULL
----

query I rowsort
SELECT - ( - - col1 ) + + col2 FROM tab0 AS cor0
----
-11
-34
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT - MIN( - - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7
SELECT - MIN ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8
SELECT + ( + MIN ( DISTINCT + - col1 ) ) col2 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col0, + COUNT( * ) col0 FROM tab2
----
-46
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col0, + COUNT ( * ) col0 FROM tab2
----
-46
3

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT - 28 DIV - col1 FROM tab1
----
0
2
5

skipif mysql # not compatible
query I rowsort label-10
SELECT - 28 / - col1 FROM tab1
----
0
2
5

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT - col1 DIV - 60 col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-11
SELECT - col1 / - 60 col0 FROM tab0
----
0
0
1

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

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

query I rowsort
SELECT - col0 * + 57 FROM tab0 WHERE NOT col2 <> ( - 55 )
----

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 35 IN ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 72, col1 col1 FROM tab2
----
-72
51
-72
67
-72
77

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

query I rowsort
SELECT DISTINCT - col1 * + - col0 FROM tab1
----
425
4277
714

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

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

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

query I rowsort
SELECT DISTINCT - - 50 AS col0 FROM tab0 cor0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-24
SELECT DISTINCT + - COUNT( * ), 63 + - + COUNT( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-3
60

skipif mysql # not compatible
query II rowsort label-24
SELECT DISTINCT + - COUNT ( * ), 63 + - + COUNT ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-3
60

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT + 55 - - 34 * - COUNT( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----
55

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT + 55 - - 34 * - COUNT ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----
55

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-27
SELECT + MAX( DISTINCT - 40 ) DIV - COUNT( * ) AS col2 FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-27
SELECT + MAX ( DISTINCT - 40 ) / - COUNT ( * ) AS col2 FROM tab1 cor0
----
13

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

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

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

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

query I rowsort
SELECT - - 36 * - col2 FROM tab0 AS cor0
----
-1692
-3564
-360

query I rowsort
SELECT ALL + col1 * 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE col2 * col2 * + 88 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-33
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NULL < 45 / + col0 * col1
----

query II rowsort
SELECT col2 AS col1, + 55 FROM tab2
----
23
55
40
55
58
55

query I rowsort
SELECT ALL col0 + + + col1 AS col1 FROM tab1
----
138
65
90

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

query II rowsort
SELECT ALL - - 1 AS col1, col1 AS col2 FROM tab2 AS cor0
----
1
51
1
67
1
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 10 * col1 < ( + col1 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 39 / 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - 74 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT + COUNT( * ) * - 11 AS col2 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-44
SELECT + COUNT ( * ) * - 11 AS col2 FROM tab1
----
-33

query I rowsort
SELECT ALL - + ( - col1 ) - + col2 - + col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
3422
4556
9120

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT + col2 DIV - + col0 * col1 + - col1 FROM tab2 cor0 WHERE col0 * + ( col0 ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-46
SELECT + col2 / - + col0 * col1 + - col1 FROM tab2 cor0 WHERE col0 * + ( col0 ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT DISTINCT col1 * - CAST( + - col2 AS SIGNED ) + 80 FROM tab1 AS cor0
----
1424
3276
375

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT col1 * - CAST ( + - col2 AS INTEGER ) + 80 FROM tab1 AS cor0
----
1424
3276
375

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

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT + MAX( ALL col1 ) * - + 22 - - COUNT( * ) FROM tab2 AS cor0
----
-1691

skipif mysql # not compatible
query I rowsort label-49
SELECT + MAX ( ALL col1 ) * - + 22 - - COUNT ( * ) FROM tab2 AS cor0
----
-1691

query I rowsort
SELECT DISTINCT - 92 - ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-192
-2301
-9893

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( + col1 / - - 43 + - + col2 * ( - col1 ) ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT - - 79 DIV + col0 - col0 + - 22 FROM tab1 AS cor0
----
-107
-113
-72

skipif mysql # not compatible
query I rowsort label-52
SELECT - - 79 / + col0 - col0 + - 22 FROM tab1 AS cor0
----
-107
-113
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL - COUNT( 6 ) - + - 76 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + col0 + 87, + col1 )
----
76

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL - COUNT ( 6 ) - + - 76 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + col0 + 87, + col1 )
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col1 FROM tab0 AS cor0 WHERE NOT - col0 = + + col2 + col0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT DISTINCT + col2 DIV 64 + + - 40 FROM tab1 WHERE + 57 + + col0 IS NOT NULL
----
-39
-40

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT + col2 / 64 + + - 40 FROM tab1 WHERE + 57 + + col0 IS NOT NULL
----
-39
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT - 45 * + + 51 * - + 89 + + - 70 + - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
204182

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT - 45 * + + 51 * - + 89 + + - 70 + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
204182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-58
SELECT ALL 37 FROM tab0 WHERE NOT - col1 BETWEEN CAST( NULL AS SIGNED ) * + col2 - - - col2 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL 37 FROM tab0 WHERE NOT - col1 BETWEEN CAST ( NULL AS INTEGER ) * + col2 - - - col2 AND ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-59
SELECT CAST ( + + 3 AS INTEGER ) FROM tab1
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT ALL + col2 AS col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IN ( + ( + ( - + 49 ) ) ) OR ( col2 + + col1 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL + col2 AS col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IN ( + ( + ( - + 49 ) ) ) OR ( col2 + + col1 ) = NULL
----

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

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

query II rowsort
SELECT 50, - 91 AS col0 FROM tab1
----
50
-91
50
-91
50
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( + col1 + + + 24 ) IS NULL
----
-51
-85
-91

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-67
SELECT ALL + MAX( ALL + - 83 ) + + CAST( 13 AS SIGNED ) AS col0, - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 > NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-67
SELECT ALL + MAX ( ALL + - 83 ) + + CAST ( 13 AS INTEGER ) AS col0, - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 > NULL
----
NULL
0

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-71
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-71
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 30 * + ( - 40 ) FROM tab2
----
-1200
-1200
-1200

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

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

query I rowsort
SELECT col0 * + - ( - - col0 ) * col1 FROM tab0
----
-158949
-18225
-9409

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

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

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

skipif mysql # not compatible
query I rowsort label-77
SELECT - - MIN ( 28 ) AS col1 FROM tab0 AS cor0
----
28

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT + - 29 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT + - 29 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - ( - 78 ) col1, - col1 * - col1 FROM tab1 AS cor0
----
-78
196
-78
2209
-78
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 9 >= ( - col2 + + 56 * + 49 )
----

query I rowsort
SELECT - 19 + + - col0 AS col0 FROM tab0 AS cor0
----
-106
-116
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT + COUNT( * ) * - COUNT( * ) + MIN( + + 68 ) * - MAX( DISTINCT - col0 ) AS col1 FROM tab1
----
3459

skipif mysql # not compatible
query I rowsort label-83
SELECT + COUNT ( * ) * - COUNT ( * ) + MIN ( + + 68 ) * - MAX ( DISTINCT - col0 ) AS col1 FROM tab1
----
3459

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

query I rowsort
SELECT col2 + - 73 AS col2 FROM tab0
----
-26
-63
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT ALL 94 * - - 35 + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2
----
3299

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL 94 * - - 35 + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2
----
3299

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

query I rowsort
SELECT ALL - ( - - ( + 85 ) ) * - col0 FROM tab1 AS cor0 WHERE 65 IS NOT NULL
----
4335
7225
7735

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( + + col2 + + + col1 - col2 - col1 / + + col1 * + + ( - + 46 ) ) IS NULL )
----

query I rowsort
SELECT DISTINCT col0 + + - 32 FROM tab0
----
-17
55
65

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT ALL + 16 * + col1 * - col2 + - + 92 - - col1 + - col0 DIV - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-18860
-49372
-62267

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL + 16 * + col1 * - col2 + - + 92 - - col1 + - col0 / - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-18860
-49372
-62267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-93
SELECT DISTINCT - CAST( 28 AS SIGNED ) + - col1 col1 FROM tab0 cor0
----
-109
-29
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-93
SELECT DISTINCT - CAST ( 28 AS INTEGER ) + - col1 col1 FROM tab0 cor0
----
-109
-29
-49

query I rowsort
SELECT - col0 * col2 - - col2 FROM tab0 cor0
----
-658
-860
-9504

query I rowsort
SELECT ALL + col0 * - + 79 * - + 52 + - col0 FROM tab0 cor0
----
357309
398379
61605

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT - + SUM( DISTINCT - 9 ) col1 FROM tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-96
SELECT - + SUM ( DISTINCT - 9 ) col1 FROM tab1 cor0
----
9

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

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

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

query II rowsort
SELECT DISTINCT col0, - col0 * + col2 FROM tab1 AS cor0
----
51
-4896
85
-5015
91
-6188

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

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT - MAX( ALL 33 ) AS col2 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-101
SELECT - MAX ( ALL 33 ) AS col2 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT ALL + col2 * - + col1 AS col2 FROM tab1
----
-1344
-295
-3196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT DISTINCT + ( - COUNT( ALL - - 26 ) ) * + 18 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT + ( - COUNT ( ALL - - 26 ) ) * + 18 FROM tab0
----
-54

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - - col0 + - 8, col0, + 73 )
----

query I rowsort
SELECT DISTINCT 93 * - col1 FROM tab2
----
-4743
-6231
-7161

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

query I rowsort
SELECT + ( + - 47 ) * col0 * + 17 AS col1 FROM tab1 AS cor0
----
-40749
-67915
-72709

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

query I rowsort
SELECT ALL 27 AS col1 FROM tab0 cor0
----
27
27
27

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

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

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

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

query I rowsort
SELECT 53 AS col0 FROM tab1 WHERE NOT + 10 IS NULL
----
53
53
53

query I rowsort
SELECT 66 * + ( + - 52 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb909d6aba0cd435362d916b6e94ff5c

query I rowsort
SELECT ( + - 43 ) * - + col2 + 5 + + col1 FROM tab2 AS cor0
----
1045
1802
2566

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT ALL + 64 + - + COUNT( * ) * - 85 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----
64

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + 64 + - + COUNT ( * ) * - 85 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----
64

query II rowsort
SELECT 74 AS col0, col2 AS col0 FROM tab2 AS cor0
----
74
23
74
40
74
58

onlyif mysql # DIV for integer division: 
query I rowsort label-120
SELECT + + 96 DIV 77 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-120
SELECT + + 96 / 77 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 * - 85 FROM tab0 AS cor0
----
1275
7395
8245

query I rowsort
SELECT - 72 * 59 FROM tab2 AS cor0
----
-4248
-4248
-4248

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT + col1 DIV - 29 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-123
SELECT + col1 / - 29 FROM tab1 AS cor0
----
-1
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT ALL SUM( - 8 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL SUM ( - 8 ) FROM tab2 AS cor0
----
-24

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

query I rowsort
SELECT - - col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query II rowsort
SELECT DISTINCT - col2 + - 70 AS col0, col0 * - col1 FROM tab2
----
-110
-4928
-128
-5025
-93
-2346

query I rowsort
SELECT DISTINCT - 67 + + 27 AS col2 FROM tab1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL + 65 + - COUNT( * ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL + 65 + - COUNT ( * ) FROM tab0
----
62

query I rowsort
SELECT - 64 * col1 + + col1 AS col0 FROM tab0
----
-1323
-5103
-63

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

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

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

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

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

query I rowsort
SELECT ALL col2 * - 5 + - 75 FROM tab1 AS cor0 WHERE NOT col0 + + col0 * col0 IS NULL
----
-370
-415
-555

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

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

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

query I rowsort
SELECT DISTINCT + 66 * - col0 FROM tab2
----
-3036
-4224
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-142
SELECT - col0 * + CAST( - - 19 AS SIGNED ) FROM tab0
----
-1653
-1843
-285

skipif mysql # not compatible
query I rowsort label-142
SELECT - col0 * + CAST ( - - 19 AS INTEGER ) FROM tab0
----
-1653
-1843
-285

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 <= + 38
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT - COUNT( * ) * + 97 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-145
SELECT - COUNT ( * ) * + 97 FROM tab1
----
-291

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-148
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * + CAST( - 42 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2478
2856
4032

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * + CAST ( - 42 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2478
2856
4032

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

query I rowsort
SELECT col2 * + - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + SUM( + ( + + 73 ) ) FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-155
SELECT + SUM ( + ( + + 73 ) ) FROM tab1
----
219

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 91 IN ( + col0, 47, 28 )
----

query I rowsort
SELECT 75 + + + ( + col1 ) + - col1 FROM tab1
----
75
75
75

query I rowsort
SELECT col1 * + col2 + + 94 - col2 FROM tab1
----
1342
3222
330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-162
SELECT + col2 / col1 / - + CAST( NULL AS SIGNED ) + - col0 / - CAST( + + col2 AS SIGNED ) AS col0, col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-162
SELECT + col2 / col1 / - + CAST ( NULL AS INTEGER ) + - col0 / - CAST ( + + col2 AS INTEGER ) AS col0, col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT 16 * + col1 FROM tab1
----
224
752
80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-165
SELECT DISTINCT - COUNT( ALL + + col0 ) DIV - + 39 - - COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT - COUNT ( ALL + + col0 ) / - + 39 - - COUNT ( * ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( 87 ) + - col1, col0 * col0 col1 FROM tab1 AS cor0
----
40
8281
73
2601
82
7225

query I rowsort
SELECT DISTINCT - 80 + - col0 + - 38 + - 25 FROM tab0 AS cor0
----
-158
-230
-240

query I rowsort
SELECT ALL ( + + col0 ) FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - - 47 col1 FROM tab2 AS cor0
----
111
122
93

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

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

query I rowsort
SELECT 52 * + col1 * col0 AS col0 FROM tab2
----
121992
256256
261300

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

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

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

skipif mysql # not compatible
query I rowsort label-173
SELECT - col0 / - + CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
1
1
2

query I rowsort
SELECT 83 / 40 + + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT DISTINCT - 46 * + 17 + + - COUNT( * ) col2 FROM tab2 AS cor0
----
-785

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

query I rowsort
SELECT ALL + + 2 * + 46 * + 19 AS col1 FROM tab2 AS cor0
----
1748
1748
1748

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 41 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 * + col1 + - 93 col1 FROM tab1
----
-1199
-3806
-488

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

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + - 25 * + - 61 FROM tab2 AS cor0
----
1525
1525
1525

query I rowsort
SELECT ALL + col1 * + - 45 FROM tab0 AS cor0
----
-3645
-45
-945

query I rowsort
SELECT - + 56 * + col2 AS col2 FROM tab2 AS cor0
----
-1288
-2240
-3248

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT DISTINCT - col0 DIV + 43 AS col1 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT - col0 / + 43 AS col1 FROM tab1 AS cor0
----
-1
-2

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

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

query I rowsort
SELECT 71 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT + 51 + - - col0 AS col2 FROM tab1 AS cor0
----
102
136
142

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT MAX( - ( col2 ) ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-192
SELECT MAX ( - ( col2 ) ) AS col1 FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-193
SELECT DISTINCT - - 52 AS col0, MIN( col1 ) FROM tab0 AS cor0
----
52
1

skipif mysql # not compatible
query II rowsort label-193
SELECT DISTINCT - - 52 AS col0, MIN ( col1 ) FROM tab0 AS cor0
----
52
1

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 cor0 WHERE NULL < NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-199
SELECT - CAST( - col1 AS SIGNED ) * - 25 * - col2 FROM tab0 AS cor0
----
2475
5250
95175

skipif mysql # not compatible
query I rowsort label-199
SELECT - CAST ( - col1 AS INTEGER ) * - 25 * - col2 FROM tab0 AS cor0
----
2475
5250
95175

query I rowsort
SELECT - 32 * 91 FROM tab1 AS cor0
----
-2912
-2912
-2912

query I rowsort
SELECT - - 92 * - 73 FROM tab2 AS cor0
----
-6716
-6716
-6716

query I rowsort
SELECT ALL + col0 - - col0 * + + 71 AS col2 FROM tab2 AS cor0
----
3312
4608
5400

onlyif mysql # DIV for integer division: 
query II rowsort label-203
SELECT ALL 42 DIV col1 + - 21 - col0 col1, - col0 AS col0 FROM tab1 AS cor0
----
-112
-91
-69
-51
-98
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-203
SELECT ALL 42 / col1 + - 21 - col0 col1, - col0 AS col0 FROM tab1 AS cor0
----
-112
-91
-69
-51
-98
-85

query I rowsort
SELECT ALL - col0 * - - col1 * + 12 AS col0 FROM tab0 AS cor0
----
-1164
-14580
-21924

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

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

query I rowsort
SELECT DISTINCT 62 * - col2 + col1 AS col2 FROM tab1
----
-3653
-4169
-5938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-207
SELECT - COUNT( * ) DIV + ( + + 85 ) + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-207
SELECT - COUNT ( * ) / + ( + + 85 ) + - COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - ( - col1 ) + 59 * - ( ( 28 ) ) AS col1 FROM tab0
----
-1571
-1631
-1651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-209
SELECT ALL MAX( - col2 ) - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) / + 40 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL MAX ( - col2 ) - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) / + 40 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 + + + 62 AS col0 FROM tab1 AS cor0
----
121
130
158

query I rowsort
SELECT col1 + - + 21 FROM tab1 AS cor0
----
-16
-7
26

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

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

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT COUNT( * ) * + + 7 * 92 FROM tab0
----
1932

skipif mysql # not compatible
query I rowsort label-214
SELECT COUNT ( * ) * + + 7 * 92 FROM tab0
----
1932

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

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

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

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

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

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

query II rowsort
SELECT ALL - col2 AS col0, col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

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

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

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

query I rowsort
SELECT 76 + 49 FROM tab0
----
125
125
125

query II rowsort
SELECT ALL - 44 + - - col0, col1 AS col1 FROM tab0
----
-29
81
43
21
53
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT DISTINCT 69 + 38 + - SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT 69 + 38 + - SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-120

query I rowsort
SELECT DISTINCT + - 82 AS col0 FROM tab2 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT - - MAX( DISTINCT 22 ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-230
SELECT - - MAX ( DISTINCT 22 ) FROM tab0 AS cor0
----
22

query II rowsort
SELECT - - col2, col0 * ( + + col0 ) FROM tab0 WHERE + 91 < 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT SUM( DISTINCT + + 95 ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-232
SELECT SUM ( DISTINCT + + 95 ) FROM tab0
----
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL - 94 + - 21 * + COUNT( * ) + COUNT( * ) - + 86 FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - 94 + - 21 * + COUNT ( * ) + COUNT ( * ) - + 86 FROM tab2 AS cor0
----
-240

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

query I rowsort
SELECT DISTINCT - - col2 - - + 75 FROM tab0 AS cor0
----
122
174
85

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

query II rowsort
SELECT DISTINCT 19, + col0 AS col2 FROM tab2 AS cor0
----
19
46
19
64
19
75

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT DISTINCT - - SUM( - 22 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - - SUM ( - 22 ) FROM tab1 AS cor0
----
-66

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

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

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

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

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

query II rowsort
SELECT col1 AS col1, ( - 13 ) FROM tab0
----
1
-13
21
-13
81
-13

query I rowsort
SELECT - 28 - - + col1 + + col1 AS col1 FROM tab0
----
-26
134
14

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

skipif mysql # not compatible
query II rowsort label-245
SELECT - col0 AS col1, col2 AS col1 FROM tab2 WHERE - + CAST ( - + ( - col1 ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT DISTINCT - 65 col0, + 90 * MIN( + - 79 ) FROM tab0
----
-65
-7110

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-246
SELECT DISTINCT - 65 col0, + 90 * MIN ( + - 79 ) FROM tab0
----
-65
-7110

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-248
SELECT DISTINCT + col1 AS col2, CAST( + + col2 AS SIGNED ) * + col2 DIV - - ( 1 ) - + col1 + + col1 FROM tab1 AS cor0
----
14
9216
47
4624
5
3481

skipif mysql # not compatible
query II rowsort label-248
SELECT DISTINCT + col1 AS col2, CAST ( + + col2 AS INTEGER ) * + col2 / - - ( 1 ) - + col1 + + col1 FROM tab1 AS cor0
----
14
9216
47
4624
5
3481

query I rowsort
SELECT - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - ( - col1 ) <> - - col1
----
10
47
99

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

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

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

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

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

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

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

query I rowsort
SELECT + - 24 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-255
SELECT - - MIN( ALL - 10 ) AS col1, + 9 FROM tab1 AS cor0
----
-10
9

skipif mysql # not compatible
query II rowsort label-255
SELECT - - MIN ( ALL - 10 ) AS col1, + 9 FROM tab1 AS cor0
----
-10
9

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----

query II rowsort
SELECT ALL - 88 * - 70 + - col2, col1 FROM tab2
----
6102
67
6120
77
6137
51

query I rowsort
SELECT ALL - 79 AS col2 FROM tab0
----
-79
-79
-79

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT ALL - COUNT( * ) + 91 + - 87 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL - COUNT ( * ) + 91 + - 87 AS col1 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, - col1 * - col1 - + + col0 col2 FROM tab0 AS cor0
----
-15
6546
-87
354
-97
-96

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

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

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

query I rowsort
SELECT + col2 + col2 + - - col1 AS col0 FROM tab2 AS cor0
----
157
183
97

query II rowsort
SELECT ALL + + col1 AS col2, col2 FROM tab2 cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + 74 + - col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

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

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

query I rowsort
SELECT - 96 AS col2 FROM tab0 cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT - col0 + - 31 * + col1 FROM tab2 AS cor0
----
-1627
-2152
-2451

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT DISTINCT - - MAX( + + 38 ) * + - COUNT( * ) * + + SUM( col1 ) AS col0 FROM tab1 AS cor0
----
-7524

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT - - MAX ( + + 38 ) * + - COUNT ( * ) * + + SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
-7524

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-274
SELECT + - 53 - 76, + col2 + - - CAST( ( - col1 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-129
-11
-129
-34
-129
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-274
SELECT + - 53 - 76, + col2 + - - CAST ( ( - col1 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-129
-11
-129
-34
-129
98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - + 85 col2 FROM tab1 AS cor0
----
-6
0
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT ALL + - CAST( col0 AS SIGNED ) - + + 48 * + col2 - - 0 AS col2 FROM tab1 AS cor0
----
-2917
-3355
-4659

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL + - CAST ( col0 AS INTEGER ) - + + 48 * + col2 - - 0 AS col2 FROM tab1 AS cor0
----
-2917
-3355
-4659

query I rowsort
SELECT ALL col0 * - 71 * 60 FROM tab2
----
-195960
-272640
-319500

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col2 >= - 43 )
----

query I rowsort
SELECT - col2 * + + 16 FROM tab2
----
-368
-640
-928

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-281
SELECT DISTINCT * FROM tab1 WHERE NOT 47 * - + col1 * + 61 * 69 <= - - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-281
SELECT DISTINCT * FROM tab1 WHERE NOT 47 * - + col1 * + 61 * 69 <= - - CAST ( + col1 AS INTEGER )
----

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

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

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

query I rowsort
SELECT - ( 19 ) FROM tab2
----
-19
-19
-19

query I rowsort
SELECT col1 * + 62 AS col1 FROM tab0
----
1302
5022
62

query I rowsort
SELECT - col0 * - - 51 FROM tab0 AS cor0
----
-4437
-4947
-765

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-290
SELECT DISTINCT + - col1 DIV - 4 FROM tab1 AS cor0
----
1
11
3

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT + - col1 / - 4 FROM tab1 AS cor0
----
1
11
3

query I rowsort
SELECT DISTINCT + 45 * + col0 * - col2 * 86 FROM tab1 AS cor0
----
-18947520
-19408050
-23947560

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-297
SELECT ALL + 94 DIV - + 4, CAST( NULL AS SIGNED ) col2 FROM tab1
----
-23
NULL
-23
NULL
-23
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-297
SELECT ALL + 94 / - + 4, CAST ( NULL AS INTEGER ) col2 FROM tab1
----
-23
NULL
-23
NULL
-23
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 11 < + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 68 + 60 AS col0 FROM tab0
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 col2 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT ( - + 73 ) + 42 FROM tab2
----
-31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( col2 ) = + + 34
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + 14 ) AND + + 85
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 + + col1 col2 FROM tab1 cor0
----
126
84
93

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

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

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

query I rowsort
SELECT - col2 - + col1 - - 63 FROM tab0 AS cor0 WHERE ( + + col0 ) NOT BETWEEN NULL AND + 19
----
-37
32

query I rowsort
SELECT DISTINCT - AVG ( ALL - - col0 ) AS col2 FROM tab1 AS cor0 WHERE col1 / - 1 BETWEEN NULL AND - 39 * - 83 * - col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - COUNT( * ) * - + COUNT( * ) + + 87 AS col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-314
SELECT - COUNT ( * ) * - + COUNT ( * ) + + 87 AS col0 FROM tab0 AS cor0
----
96

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

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

query II rowsort
SELECT col1, - col0 + + 77 * + ( 53 ) FROM tab1 AS cor0
----
14
4030
47
3990
5
3996

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

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL 22 * 58 * + COUNT( * ) AS col1 FROM tab0
----
3828

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL 22 * 58 * + COUNT ( * ) AS col1 FROM tab0
----
3828

query I rowsort
SELECT + 87 + + 70 * col2 * + 50 - col1 / - 90 AS col2 FROM tab2 WHERE NOT + col2 + + 26 * + 44 NOT BETWEEN + col0 AND + + col1
----

query I rowsort
SELECT 49 * + 11 FROM tab1
----
539
539
539

onlyif mysql # aggregate syntax: 
query II rowsort label-321
SELECT DISTINCT + MIN( DISTINCT - + col0 ) AS col2, - COUNT( * ) FROM tab2
----
-75
-3

skipif mysql # not compatible
query II rowsort label-321
SELECT DISTINCT + MIN ( DISTINCT - + col0 ) AS col2, - COUNT ( * ) FROM tab2
----
-75
-3

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab1 WHERE NOT NULL <= + 90
----

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

skipif mysql # not compatible
query I rowsort label-323
SELECT - MAX ( ALL - + ( + 58 ) ) AS col2 FROM tab0
----
58

query I rowsort
SELECT DISTINCT - 84 FROM tab2 WHERE NOT 75 + + - col0 * - col1 + + col2 * - 49 IS NULL
----
-84

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT ALL 95 * + MIN( + col1 ) DIV SUM( ALL + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL 95 * + MIN ( + col1 ) / SUM ( ALL + col1 ) FROM tab0
----
0

query II rowsort
SELECT - - 42 AS col2, 49 AS col2 FROM tab2 AS cor0
----
42
49
42
49
42
49

query I rowsort
SELECT DISTINCT - - 26 + col1 FROM tab1 AS cor0
----
31
40
73

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-333
SELECT ALL col1 + - 0 + + CAST( NULL AS SIGNED ) AS col0, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-333
SELECT ALL col1 + - 0 + + CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT + + ( 10 ) * COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-334
SELECT + + ( 10 ) * COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
90

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

query I rowsort
SELECT DISTINCT - col1 * col2 * - - col1 + + ( 30 ) FROM tab2 AS cor0
----
-237130
-260332
-59793

query I rowsort
SELECT - col2 * - 34 FROM tab1 AS cor0
----
2006
2312
3264

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

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

query I rowsort
SELECT - - col1 * 61 FROM tab1 AS cor0
----
2867
305
854

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-341
SELECT ALL * FROM tab0 AS cor0 WHERE - 96 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) + - 67
----

skipif mysql # not compatible
query III rowsort label-341
SELECT ALL * FROM tab0 AS cor0 WHERE - 96 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) + - 67
----

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT 29 DIV - col1 FROM tab1 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-342
SELECT 29 / - col1 FROM tab1 AS cor0
----
-2
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT DISTINCT + col1 DIV - 27 AS col0 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT + col1 / - 27 AS col0 FROM tab0 AS cor0
----
-3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-344
SELECT ALL - 71 AS col2, + SUM( ALL 58 ) FROM tab1
----
-71
174

skipif mysql # not compatible
query II rowsort label-344
SELECT ALL - 71 AS col2, + SUM ( ALL 58 ) FROM tab1
----
-71
174

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

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL CAST ( NULL AS INTEGER ) + - + MIN ( ALL 35 ) AS col0 FROM tab0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-346
SELECT - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 33 + col2 * col0 FROM tab2
----
1025
2527
4317

query I rowsort
SELECT - col2 + - 29 FROM tab0
----
-128
-39
-76

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

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

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

query I rowsort
SELECT ALL - ( + 66 ) - - col1 FROM tab2 AS cor0
----
-15
1
11

onlyif mysql # aggregate syntax: 
query II rowsort label-352
SELECT + 29 AS col2, COUNT( * ) AS col0 FROM tab1 WHERE + col1 - 73 IS NOT NULL
----
29
3

skipif mysql # not compatible
query II rowsort label-352
SELECT + 29 AS col2, COUNT ( * ) AS col0 FROM tab1 WHERE + col1 - 73 IS NOT NULL
----
29
3

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT DISTINCT col1 DIV - + 10 AS col0 FROM tab2
----
-5
-6
-7

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT col1 / - + 10 AS col0 FROM tab2
----
-5
-6
-7

query I rowsort
SELECT col1 * + col2 * 69 FROM tab1
----
20355
220524
92736

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-359
SELECT col2 AS col1, col0 + + + col0 + col0 - - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-359
SELECT col2 AS col1, col0 + + + col0 + col0 - - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

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

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

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

query I rowsort
SELECT ALL + col0 * 1 AS col0 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT + ( 53 ), col0 AS col0 FROM tab0
----
53
15
53
87
53
97

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

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

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

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

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

query I rowsort
SELECT + 77 + + - col0 * + col2 FROM tab1 cor0 WHERE col1 BETWEEN - - 34 AND + col1
----
-6111

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-370
SELECT + 20 + - - SUM( ALL + CAST( CAST( - 9 AS SIGNED ) AS SIGNED ) ) * 97 AS col1 FROM tab2 cor0
----
-2599

skipif mysql # not compatible
query I rowsort label-370
SELECT + 20 + - - SUM ( ALL + CAST ( CAST ( - 9 AS INTEGER ) AS INTEGER ) ) * 97 AS col1 FROM tab2 cor0
----
-2599

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

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL MAX ( DISTINCT - 53 ) AS col1 FROM tab0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT CAST( - + col1 AS SIGNED ) + CAST( 88 AS SIGNED ) AS col0 FROM tab0
----
67
7
87

skipif mysql # not compatible
query I rowsort label-372
SELECT CAST ( - + col1 AS INTEGER ) + CAST ( 88 AS INTEGER ) AS col0 FROM tab0
----
67
7
87

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

query I rowsort
SELECT + 20 * + + col0 + - - col1 FROM tab1
----
1034
1705
1867

query I rowsort
SELECT 17 + col2 AS col0 FROM tab0
----
116
27
64

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

query I rowsort
SELECT DISTINCT 78 * + 75 + ( + ( + 3 ) ) * + 47 AS col0 FROM tab0
----
5991

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

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

query I rowsort
SELECT ( 76 ) AS col2 FROM tab2
----
76
76
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT DISTINCT COUNT( * ) * + 41 AS col2 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT COUNT ( * ) * + 41 AS col2 FROM tab1 AS cor0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT - col0 DIV + - 96 * - + 65 * ( - col2 ) - - + 51 + 87 DIV col0 FROM tab2 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-382
SELECT - col0 / + - 96 * - + 65 * ( - col2 ) - - + 51 + 87 / col0 FROM tab2 AS cor0
----
52
52
52

query III rowsort
SELECT * FROM tab1 WHERE + col1 - - col2 >= + col0
----
51
14
96
91
47
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-385
SELECT ALL 57 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL 57 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-386
SELECT ALL + 30 DIV COUNT( * ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL + 30 / COUNT ( * ) FROM tab1 AS cor0
----
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-388
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-388
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-389
SELECT - 64 col0, CAST ( NULL AS REAL ) * - + col1 AS col0 FROM tab2 AS cor0
----
-64
NULL
-64
NULL
-64
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-391
SELECT COUNT( * ) AS col1, 77 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----
0
77

skipif mysql # not compatible
query II rowsort label-391
SELECT COUNT ( * ) AS col1, 77 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----
0
77

query I rowsort
SELECT ALL - col1 * - - ( + 95 ) FROM tab2
----
-4845
-6365
-7315

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - col1 * - + 9 BETWEEN 59 AND NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-397
SELECT - - col2 DIV - 15 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-397
SELECT - - col2 / - 15 FROM tab2 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - col1 * - - col2 + + col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN - col0 + 69 + + - col0 * col0 + 79 AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT MAX( + 23 ) * - - COUNT( * ) * 79 FROM tab1 cor0
----
5451

skipif mysql # not compatible
query I rowsort label-403
SELECT MAX ( + 23 ) * - - COUNT ( * ) * 79 FROM tab1 cor0
----
5451

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - + SUM( ALL + - 94 ) FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-404
SELECT - + SUM ( ALL + - 94 ) FROM tab0 AS cor0
----
282

query I rowsort
SELECT ALL + + 13 FROM tab2 cor0
----
13
13
13

query II rowsort
SELECT DISTINCT - col0 AS col1, + col0 + - + 44 FROM tab0 cor0
----
-15
-29
-87
43
-97
53

query I rowsort
SELECT DISTINCT col2 * + + 66 FROM tab1 AS cor0 WHERE NOT ( col1 IS NULL )
----
3894
4488
6336

query I rowsort
SELECT - + ( col1 ) + - 70 * - col0 AS col0 FROM tab2 WHERE + - col1 = NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE + col2 * - col0 + + - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT DISTINCT - 62 * - COUNT( * ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT - 62 * - COUNT ( * ) FROM tab0
----
186

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

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL ( - 62 ) + + + col1 * + 68 + + 77 * + CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT DISTINCT 35 + + col0 - - + 25 DIV + col1 * col1 FROM tab2
----
110
81
99

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT 35 + + col0 - - + 25 / + col1 * col1 FROM tab2
----
110
81
99

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

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

query I rowsort
SELECT col0 + + - ( - - 76 ) AS col2 FROM tab0
----
-61
11
21

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT - 31 * + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-415
SELECT - 31 * + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT - COUNT( * ) - - 46 AS col1 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - COUNT ( * ) - - 46 AS col1 FROM tab0 AS cor0
----
43

query I rowsort
SELECT DISTINCT - 14 / - + AVG ( - ( + col0 ) ) FROM tab1 cor0 WHERE ( NULL ) <> col1 * col0 - + + col0 + + - col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT DISTINCT + COUNT( * ) - + 89 AS col2 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT + COUNT ( * ) - + 89 AS col2 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT ALL + 45 - + col1 * + col0 FROM tab0 AS cor0
----
-1170
-1782
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT - COUNT( DISTINCT + 2 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-422
SELECT - COUNT ( DISTINCT + 2 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT + - 46 * - COUNT( * ) + - + 83 - 30 * + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-423
SELECT + - 46 * - COUNT ( * ) + - + 83 - 30 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
61

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-426
SELECT DISTINCT ( col1 ) DIV - col2 + ( + 47 ), 90 col2 FROM tab2 AS cor0
----
45
90
46
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-426
SELECT DISTINCT ( col1 ) / - col2 + ( + 47 ), 90 col2 FROM tab2 AS cor0
----
45
90
46
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * + 83 / - 81 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-428
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * + 83 / - 81 IS NULL
----
-3

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

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col0 = col2
----
59
68
96

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

query I rowsort
SELECT ALL - - col1 * - col0 / + 92 FROM tab1 AS cor0 WHERE + 3 = + + col2 * + col2
----

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

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

query I rowsort
SELECT + 45 * 54 AS col2 FROM tab0
----
2430
2430
2430

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - col2 BETWEEN NULL AND + 83
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT + COUNT( * ) + - 92 col0 FROM tab2
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-438
SELECT + COUNT ( * ) + - 92 col0 FROM tab2
----
-89

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

query I rowsort
SELECT 11 + + col2 * + - col2 AS col1 FROM tab1
----
-3470
-4613
-9205

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT 10 * + ( - - 93 ) + + - COUNT( * ) FROM tab1
----
927

skipif mysql # not compatible
query I rowsort label-441
SELECT 10 * + ( - - 93 ) + + - COUNT ( * ) FROM tab1
----
927

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-442
SELECT ALL 22, col2 + + + 54 / ( - + 56 ) col2 FROM tab0 WHERE NOT + CAST( col1 AS SIGNED ) + col2 - - - col0 + - col0 * - 21 * + col1 NOT BETWEEN NULL AND + 77
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-442
SELECT ALL 22, col2 + + + 54 / ( - + 56 ) col2 FROM tab0 WHERE NOT + CAST ( col1 AS INTEGER ) + col2 - - - col0 + - col0 * - 21 * + col1 NOT BETWEEN NULL AND + 77
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col2 FROM tab2 AS cor0 WHERE NOT - col1 * 54 <> NULL
----

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

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

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE - 27 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT ALL SUM( 50 ) AS col1, + 2 AS col0 FROM tab2 cor0
----
150
2

skipif mysql # not compatible
query II rowsort label-448
SELECT ALL SUM ( 50 ) AS col1, + 2 AS col0 FROM tab2 cor0
----
150
2

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-450
SELECT - col2 * CAST( col1 AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL < 21 * - col1
----

skipif mysql # not compatible
query I rowsort label-450
SELECT - col2 * CAST ( col1 AS REAL ) FROM tab1 AS cor0 WHERE NULL < 21 * - col1
----

query I rowsort
SELECT DISTINCT + ( 86 ) - + col1 FROM tab2 AS cor0
----
19
35
9

query I rowsort
SELECT col0 * - - col1 AS col1 FROM tab0
----
1215
1827
97

query II rowsort
SELECT ALL - col0, - col1 * - col0 AS col2 FROM tab0
----
-15
1215
-87
1827
-97
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT SUM( - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-455
SELECT SUM ( - col1 ) FROM tab2
----
-195

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

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

query I rowsort
SELECT ALL col1 + + 83 AS col0 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
130
88
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT - SUM( col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT - SUM ( col2 ) FROM tab2
----
-121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT - MAX( ALL - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-464
SELECT - MAX ( ALL - col2 ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-465
SELECT DISTINCT 72 AS col1 FROM tab1 WHERE NOT - col1 + + col0 * col0 NOT BETWEEN ( 95 + - 3 ) AND 21 + CAST( + 37 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT 72 AS col1 FROM tab1 WHERE NOT - col1 + + col0 * col0 NOT BETWEEN ( 95 + - 3 ) AND 21 + CAST ( + 37 AS INTEGER )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-467
SELECT 29 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE ( - 43 * col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-467
SELECT 29 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE ( - 43 * col0 ) IS NULL
----

query I rowsort
SELECT 54 + - 3 FROM tab1
----
51
51
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - ( + 62 ) ) <= NULL
----

query I rowsort
SELECT ALL - col1 + + 82 FROM tab1
----
35
68
77

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 50 * + col2 + 17 * 98 BETWEEN + col0 * + col0 AND - col2 * ( 88 )
----

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

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

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL 87 + + COUNT ( * ) FROM tab0
----
90

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-478
SELECT CAST( + col2 AS SIGNED ) - 38 FROM tab0
----
-28
61
9

skipif mysql # not compatible
query I rowsort label-478
SELECT CAST ( + col2 AS INTEGER ) - 38 FROM tab0
----
-28
61
9

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT MAX( ALL - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-479
SELECT MAX ( ALL - col2 ) FROM tab2
----
-23

query I rowsort
SELECT 27 + + 3 FROM tab0
----
30
30
30

query I rowsort
SELECT 64 + + 70 FROM tab1
----
134
134
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-482
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 WHERE NOT col1 * + col2 + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT col1 * + col2 + col2 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT MIN( - col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-483
SELECT MIN ( - col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

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

query I rowsort
SELECT DISTINCT col1 + 20 AS col2 FROM tab0 WHERE NOT col2 * + col0 + 55 IS NULL
----
101
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT COUNT( * ) - + MAX( ALL + col1 ) AS col1 FROM tab0 WHERE NOT ( col0 ) NOT IN ( ( 47 ) * - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-486
SELECT COUNT ( * ) - + MAX ( ALL + col1 ) AS col1 FROM tab0 WHERE NOT ( col0 ) NOT IN ( ( 47 ) * - 56 )
----
NULL

query I rowsort
SELECT DISTINCT 1 * col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT - 62 * - COUNT( * ) col1 FROM tab2
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-488
SELECT DISTINCT - 62 * - COUNT ( * ) col1 FROM tab2
----
186

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

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

query I rowsort
SELECT - 29 - 6 * + col1 FROM tab1
----
-113
-311
-59

query I rowsort
SELECT - 23 + col1 / 73 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT + 1 + CAST( - 85 AS SIGNED ) col2 FROM tab2 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-492
SELECT + 1 + CAST ( - 85 AS INTEGER ) col2 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT col0 + 97 FROM tab1 AS cor0
----
148
182
188

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT DISTINCT ( COUNT( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT + 70 IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-494
SELECT DISTINCT ( COUNT ( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT + 70 IS NULL
----
9

query I rowsort
SELECT DISTINCT - ( 36 ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab0 cor0 WHERE ( - 78 ) IS NOT NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT + 67 - - col1 FROM tab2 AS cor0
----
118
134
144

query I rowsort
SELECT 21 + 27 FROM tab2 AS cor0 WHERE 91 BETWEEN + 6 / - col0 AND 66 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT - CAST( 65 AS SIGNED ) - + col2 col2 FROM tab0 AS cor0
----
-112
-164
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-502
SELECT - CAST ( 65 AS INTEGER ) - + col2 col2 FROM tab0 AS cor0
----
-112
-164
-75

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-505
SELECT ALL 7 DIV - + col2 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL 7 / - + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 55 + col1 AS col2 FROM tab2
----
-4
12
22

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT MIN( + + col2 ) + MIN( - 76 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-507
SELECT MIN ( + + col2 ) + MIN ( - 76 ) FROM tab0
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT DISTINCT COUNT( * ) + - ( + 78 ) * - 77 AS col2 FROM tab2 WHERE NOT + ( + 35 ) - + 75 <= - 90
----
6009

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT COUNT ( * ) + - ( + 78 ) * - 77 AS col2 FROM tab2 WHERE NOT + ( + 35 ) - + 75 <= - 90
----
6009

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

skipif mysql # not compatible
query I rowsort label-510
SELECT MAX ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
75

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( 32 ) NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 + col2 col0 FROM tab1 AS cor0
----
3540
4692
9312

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT + + SUM( 26 ) + 19 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT + + SUM ( 26 ) + 19 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-521
SELECT + - COUNT( - col0 ) DIV + 99 + COUNT( * ) * 45 AS col2 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-521
SELECT + - COUNT ( - col0 ) / + 99 + COUNT ( * ) * 45 AS col2 FROM tab1 AS cor0
----
135

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

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

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

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

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

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

query I rowsort
SELECT ALL + 60 * + - col1 FROM tab0
----
-1260
-4860
-60

query I rowsort
SELECT - col2 + 85 * - + col1 FROM tab0
----
-1795
-184
-6932

query I rowsort
SELECT col2 * - col2 + 1 AS col2 FROM tab1
----
-3480
-4623
-9215

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE + 65 <= ( col2 )
----
-14
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL - COUNT( ALL ( + col1 ) ) * + 61 AS col2 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL - COUNT ( ALL ( + col1 ) ) * + 61 AS col2 FROM tab2
----
-183

query I rowsort
SELECT ALL 46 + - - col1 FROM tab2
----
113
123
97

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT DISTINCT - 95 * ( - + COUNT( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT - 95 * ( - + COUNT ( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
285

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

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

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

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + + COUNT ( * ) / + COUNT ( * ) FROM tab1 cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT ALL + - ( - 37 ) * + COUNT( * ) FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL + - ( - 37 ) * + COUNT ( * ) FROM tab0 AS cor0
----
111

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-540
SELECT DISTINCT + - col0 - + - CAST( - + col0 AS SIGNED ) AS col0, col1 FROM tab2 cor0
----
-128
77
-150
67
-92
51

skipif mysql # not compatible
query II rowsort label-540
SELECT DISTINCT + - col0 - + - CAST ( - + col0 AS INTEGER ) AS col0, col1 FROM tab2 cor0
----
-128
77
-150
67
-92
51

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL IN ( + 23, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL 81 * MAX( DISTINCT - + col1 ) FROM tab1 AS cor0 WHERE NOT 6 IS NULL
----
-405

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL 81 * MAX ( DISTINCT - + col1 ) FROM tab1 AS cor0 WHERE NOT 6 IS NULL
----
-405

query I rowsort
SELECT - 27 + - 19 FROM tab2 AS cor0
----
-46
-46
-46

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

query I rowsort
SELECT ALL + col0 - - + 40 + - + ( - - 53 ) * col2 AS col1 FROM tab1 AS cor0
----
-3002
-3473
-4997

query I rowsort
SELECT + - 89 FROM tab1 cor0
----
-89
-89
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT + COUNT( * ) * + 23 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-549
SELECT + COUNT ( * ) * + 23 FROM tab2
----
69

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-553
SELECT ALL + MAX( - - ( - + CAST( NULL AS SIGNED ) ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-553
SELECT ALL + MAX ( - - ( - + CAST ( NULL AS INTEGER ) ) ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-554
SELECT ALL 77, 43 - col0 * - col0 + - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0
----
77
NULL
77
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-554
SELECT ALL 77, 43 - col0 * - col0 + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0
----
77
NULL
77
NULL
77
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-558
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - CAST( NULL AS SIGNED ) ) BETWEEN + - 34 AND - CAST( ( + ( 94 ) ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-558
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - CAST ( NULL AS INTEGER ) ) BETWEEN + - 34 AND - CAST ( ( + ( 94 ) ) AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT - - MAX( + ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-560
SELECT - - MAX ( + ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-561
SELECT + MAX( DISTINCT + 80 ) AS col0, + COUNT( * ) col1 FROM tab1 AS cor0
----
80
3

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - 16 > ( NULL )
----

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

query II rowsort
SELECT col1 * - col1, + col1 AS col1 FROM tab1 AS cor0
----
-196
14
-2209
47
-25
5

query II rowsort
SELECT ALL 23 * 68, + col2 FROM tab1 AS cor0
----
1564
59
1564
68
1564
96

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-568
SELECT + - SUM ( DISTINCT - col1 ) col2 FROM tab0 cor0
----
103

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-571
SELECT + - COUNT( * ), - 36 * + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - 75 IS NOT NULL )
----
-3
-108

skipif mysql # not compatible
query II rowsort label-571
SELECT + - COUNT ( * ), - 36 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - 75 IS NOT NULL )
----
-3
-108

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

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

query I rowsort
SELECT ALL - ( + - col0 ) + ( - - ( + col0 ) ) FROM tab2
----
128
150
92

query I rowsort
SELECT - col2 + - 2 FROM tab0
----
-101
-12
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL + ( + 43 ) + + + ( COUNT( * ) ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + ( + 43 ) + + + ( COUNT ( * ) ) FROM tab1
----
46

query I rowsort
SELECT col2 + + - 12 FROM tab0
----
-2
35
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-577
SELECT - + 22 + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
29
63
69

skipif mysql # not compatible
query I rowsort label-577
SELECT - + 22 + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
29
63
69

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT - - MAX( - col0 ) + - COUNT( * ) * + 8 + - 35 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-578
SELECT - - MAX ( - col0 ) + - COUNT ( * ) * + 8 + - 35 FROM tab2 AS cor0
----
-105

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

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

query I rowsort
SELECT ALL - - 28 - 61 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

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

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

skipif mysql # not compatible
query I rowsort label-582
SELECT - col0 + + + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 39 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE - col1 < - - col2
----
-51
-67
-77

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND - - 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT + col1 - + CAST( + col2 AS SIGNED ) + + 39 FROM tab1 cor0
----
-15
-43
18

skipif mysql # not compatible
query I rowsort label-587
SELECT + col1 - + CAST ( + col2 AS INTEGER ) + + 39 FROM tab1 cor0
----
-15
-43
18

query I rowsort
SELECT DISTINCT + 94 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
4890
8049
8622

query I rowsort
SELECT + col1 - + 62 FROM tab2 AS cor0
----
-11
15
5

query I rowsort
SELECT + col0 * - + col2 + col1 - + col0 FROM tab0 AS cor0
----
-639
-936
-9699

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * - + col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 22 - col2 + col1 / - col1 + - 27 + + + col1 * - - 74 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-597
SELECT * FROM tab1 WHERE NOT NULL = + + CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-597
SELECT * FROM tab1 WHERE NOT NULL = + + CAST ( + - col2 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 / + + col1 + 37 NOT IN ( - + col2, col1, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-599
SELECT - 86 DIV col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-599
SELECT - 86 / col2 FROM tab0
----
-1
-8
0

query I rowsort
SELECT ALL - ( - col2 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

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

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

query I rowsort
SELECT ALL - 59 * + col1 AS col1 FROM tab0 AS cor0
----
-1239
-4779
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT ALL ( - - col1 ) DIV col0 * col0 DIV + col1 col0 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-605
SELECT ALL + 81 AS col0 FROM tab0 AS cor0 WHERE ( - ( - ( - col1 ) ) * - col1 - + CAST( NULL AS SIGNED ) * - col1 ) = ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + 81 AS col0 FROM tab0 AS cor0 WHERE ( - ( - ( - col1 ) ) * - col1 - + CAST ( NULL AS INTEGER ) * - col1 ) = ( - col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ( + MIN( DISTINCT - 60 ) ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-607
SELECT ( + MIN ( DISTINCT - 60 ) ) FROM tab1
----
-60

query I rowsort
SELECT ALL col0 * - + 97 AS col0 FROM tab0
----
-1455
-8439
-9409

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

onlyif mysql # DIV for integer division: 
query I rowsort label-610
SELECT - col0 DIV - col2 - + - 30 AS col1 FROM tab1 AS cor0
----
30
31
31

skipif mysql # not compatible
query I rowsort label-610
SELECT - col0 / - col2 - + - 30 AS col1 FROM tab1 AS cor0
----
30
31
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-611
SELECT SUM( + 3 ) * CAST( 46 AS SIGNED ) * + 44 FROM tab2 AS cor0
----
18216

skipif mysql # not compatible
query I rowsort label-611
SELECT SUM ( + 3 ) * CAST ( 46 AS INTEGER ) * + 44 FROM tab2 AS cor0
----
18216

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

query I rowsort
SELECT ALL ( 33 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / - - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-615
SELECT DISTINCT - 2, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-615
SELECT DISTINCT - 2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2
NULL

query I rowsort
SELECT col2 + - - 53 - + ( col0 ) AS col2 FROM tab2
----
29
30
36

query I rowsort
SELECT - col0 + - ( col2 ) FROM tab0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - col2 + + col1 - - col1 AS col0 FROM tab1
----
-49
-68
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT ALL MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT - - COUNT( * ) - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-620
SELECT - - COUNT ( * ) - COUNT ( * ) FROM tab0 cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-621
SELECT CAST ( COUNT ( * ) AS INTEGER ) - + + COUNT ( * ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT - + col1 - 27 FROM tab1 AS cor0
----
-32
-41
-74

query I rowsort
SELECT 69 - - col1 * + col2 FROM tab2
----
1242
3149
3955

query I rowsort
SELECT ALL - ( - ( + + ( + + 44 ) ) ) AS col2 FROM tab0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT 17 + COUNT( * ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-625
SELECT 17 + COUNT ( * ) FROM tab1
----
20

query I rowsort
SELECT ALL + col0 + + + 13 AS col1 FROM tab0
----
100
110
28

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-628
SELECT DISTINCT + MIN ( - + col0 ) col0 FROM tab1 AS cor0
----
-91

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

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

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

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

query II rowsort
SELECT - - col2 AS col1, - col0 + + 51 + col2 * + 27 AS col1 FROM tab0 AS cor0
----
10
234
47
1305
99
2627

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

skipif mysql # not compatible
query II rowsort label-633
SELECT COUNT ( * ), SUM ( DISTINCT - 36 ) AS col1 FROM tab2 AS cor0
----
3
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-634
SELECT * FROM tab1 WHERE NOT col0 * - + col1 + CAST( + 61 AS SIGNED ) + - 58 - - col0 + - CAST( col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-634
SELECT * FROM tab1 WHERE NOT col0 * - + col1 + CAST ( + 61 AS INTEGER ) + - 58 - - col0 + - CAST ( col0 AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-635
SELECT * FROM tab2 WHERE NOT + - col2 * - 50 - + CAST( NULL AS DECIMAL ) NOT BETWEEN 63 + + col0 AND 69
----

skipif mysql # not compatible
query III rowsort label-635
SELECT * FROM tab2 WHERE NOT + - col2 * - 50 - + CAST ( NULL AS REAL ) NOT BETWEEN 63 + + col0 AND 69
----

query I rowsort
SELECT DISTINCT - ( 92 ) * - col2 + + col2 FROM tab1
----
5487
6324
8928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-637
SELECT CAST( - col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-637
SELECT CAST ( - col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT - COUNT( * ) * + + 98 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT - COUNT ( * ) * + + 98 FROM tab0
----
-294

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

query II rowsort
SELECT DISTINCT 35, col1 AS col1 FROM tab1 WHERE NOT ( col2 * - col2 ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT ( NOT 88 IS NULL ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT + 92 DIV - col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-646
SELECT + 92 / - col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT - + 59 * - MAX( + col2 ) AS col2 FROM tab0 cor0
----
5841

skipif mysql # not compatible
query I rowsort label-647
SELECT - + 59 * - MAX ( + col2 ) AS col2 FROM tab0 cor0
----
5841

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

skipif mysql # not compatible
query I rowsort label-648
SELECT col2 / + 85 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT ALL MAX( ALL + + CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL MAX ( ALL + + CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 = - - col1
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-654
SELECT + col1 * 20 + + CAST( 74 AS SIGNED ) FROM tab2
----
1094
1414
1614

skipif mysql # not compatible
query I rowsort label-654
SELECT + col1 * 20 + + CAST ( 74 AS INTEGER ) FROM tab2
----
1094
1414
1614

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

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL COUNT( * ) + 84 AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL COUNT ( * ) + 84 AS col1 FROM tab0
----
87

query I rowsort
SELECT DISTINCT - ( + 23 ) + - col2 AS col0 FROM tab0
----
-122
-33
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-658
SELECT ALL + - 67 + - COUNT( 97 ) DIV + 52 AS col0 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL + - 67 + - COUNT ( 97 ) / + 52 AS col0 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT 94 + + - col1 * - col1 * + 27 FROM tab1 cor0
----
5386
59737
769

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

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

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

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

query I rowsort
SELECT ALL + col1 * - - 28 + + col0 - col0 * + 61 AS col1 FROM tab2 AS cor0
----
-1332
-1684
-2624

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

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 WHERE col1 > + 55
----
0

skipif mysql # not compatible
query I rowsort label-664
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE col1 > + 55
----
0

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

query I rowsort
SELECT ALL + col0 + + ( + col0 ) + + ( col2 ) * col2 * - - col0 FROM tab0
----
33165
8874
950891

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT COUNT( * ) * 28 * - - COUNT( * ) AS col0 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-668
SELECT COUNT ( * ) * 28 * - - COUNT ( * ) AS col0 FROM tab0
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-669
SELECT 7 * - COUNT( * ), - ( - + 82 ) AS col0 FROM tab1
----
-21
82

skipif mysql # not compatible
query II rowsort label-669
SELECT 7 * - COUNT ( * ), - ( - + 82 ) AS col0 FROM tab1
----
-21
82

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-671
SELECT + - ( - 38 ) DIV + SUM( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-671
SELECT + - ( - 38 ) / + SUM ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT DISTINCT + SUM( + col2 ) AS col1, 13 FROM tab2 AS cor0
----
121
13

skipif mysql # not compatible
query II rowsort label-672
SELECT DISTINCT + SUM ( + col2 ) AS col1, 13 FROM tab2 AS cor0
----
121
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 AS cor0 WHERE 12 IN ( + col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT DISTINCT - + COUNT( * ) * SUM( col1 ) AS col2 FROM tab0 cor0
----
-309

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT - + COUNT ( * ) * SUM ( col1 ) AS col2 FROM tab0 cor0
----
-309

query I rowsort
SELECT - 90 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + 68 + + + col0 AND + 65
----

query II rowsort
SELECT ALL + - col1 * col0 AS col1, + ( - col0 ) AS col2 FROM tab0 cor0
----
-1215
-15
-1827
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT DISTINCT 8 * + - SUM( DISTINCT col2 ) FROM tab2
----
-968

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT 8 * + - SUM ( DISTINCT col2 ) FROM tab2
----
-968

query II rowsort
SELECT + + 85 AS col2, ( - col0 ) AS col0 FROM tab1 WHERE NOT - 61 IS NULL
----
85
-51
85
-85
85
-91

query II rowsort
SELECT ALL - col1 AS col0, + ( + ( col1 ) ) + col0 AS col0 FROM tab0
----
-1
98
-21
108
-81
96

onlyif mysql # aggregate syntax: 
query II rowsort label-681
SELECT ALL - MAX( ALL + + ( - 12 ) ) AS col2, ( - + 97 ) col1 FROM tab0 WHERE NOT NULL >= col0
----
NULL
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-681
SELECT ALL - MAX ( ALL + + ( - 12 ) ) AS col2, ( - + 97 ) col1 FROM tab0 WHERE NOT NULL >= col0
----
NULL
-97

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

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

query I rowsort
SELECT 1 * - 20 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT 24 * 16 FROM tab1
----
384
384
384

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

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

query I rowsort
SELECT + col2 * col2 * + col2 AS col2 FROM tab2 WHERE col0 + - + 19 IS NULL
----

query I rowsort
SELECT DISTINCT - 95 * - col1 * + + 84 * + col2 + col1 + 98 + + col2 FROM tab2
----
24578615
31010503
9360712

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 < - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT + - 31 / + 62 + - MAX( 56 ) FROM tab2 AS cor0 WHERE NOT NULL < - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT + - 31 / + 62 + - MAX ( 56 ) FROM tab2 AS cor0 WHERE NOT NULL < - 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT col0 DIV + + 14 AS col0 FROM tab1
----
3
6

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT col0 / + + 14 AS col0 FROM tab1
----
3
6

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

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

query I rowsort
SELECT + - ( col2 ) FROM tab2 WHERE col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-699
SELECT MAX( DISTINCT col0 ) DIV + COUNT( ALL + CAST( + col1 AS SIGNED ) ) AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-699
SELECT MAX ( DISTINCT col0 ) / + COUNT ( ALL + CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT DISTINCT SUM( - col2 ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN + col0 + + col2 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT SUM ( - col2 ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN + col0 + + col2 AND + col2
----
NULL

query II rowsort
SELECT ALL - col2 AS col1, - col0 FROM tab0 cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-702
SELECT + col2 AS col1, + 31 DIV - col2 FROM tab0
----
10
-3
47
0
99
0

skipif mysql # not compatible
query II rowsort label-702
SELECT + col2 AS col1, + 31 / - col2 FROM tab0
----
10
-3
47
0
99
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ALL - + MIN( ALL - 80 ) AS col1 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL - + MIN ( ALL - 80 ) AS col1 FROM tab1 AS cor0
----
80

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col1 / col1 - col0 * + col0 + + col2 / - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ALL - - 65 * + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL - - 65 * + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-711
SELECT * FROM tab2 AS cor0 WHERE NOT + 64 + - + CAST( - - col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-711
SELECT * FROM tab2 AS cor0 WHERE NOT + 64 + - + CAST ( - - col0 AS REAL ) IS NOT NULL
----

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

query II rowsort
SELECT + col0, - 58 * - 19 * - - 33 AS col1 FROM tab2 AS cor0
----
46
36366
64
36366
75
36366

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 51 NOT BETWEEN NULL AND col0
----
46
51
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 < col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT + COUNT( col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT + COUNT ( col0 ) FROM tab2
----
3

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

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT + 88 * + COUNT ( * ) AS col2 FROM tab2 cor0
----
264

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT 61 * 91 DIV 36 FROM tab2 AS cor0
----
154
154
154

skipif mysql # not compatible
query I rowsort label-721
SELECT 61 * 91 / 36 FROM tab2 AS cor0
----
154
154
154

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

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

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

query I rowsort
SELECT ALL + col0 * 70 - 47 FROM tab0 AS cor0
----
1003
6043
6743

query I rowsort
SELECT 43 + 53 * + col2 AS col1 FROM tab1 cor0
----
3170
3647
5131

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT COUNT( * ) + - 93 + - 84 * - - 71 AS col2 FROM tab0 AS cor0
----
-6054

skipif mysql # not compatible
query I rowsort label-726
SELECT COUNT ( * ) + - 93 + - 84 * - - 71 AS col2 FROM tab0 AS cor0
----
-6054

onlyif mysql # aggregate syntax: 
query II rowsort label-727
SELECT + MIN( - + col0 ) AS col1, ( - 95 ) FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND + 33
----
NULL
-95

skipif mysql # not compatible
query II rowsort label-727
SELECT + MIN ( - + col0 ) AS col1, ( - 95 ) FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND + 33
----
NULL
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-728
SELECT + SUM( + 51 ) DIV - COUNT( * ) + 37 + MIN( + + 78 ) + - 31 - + - 82 DIV - - CAST( MAX( ALL + col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-728
SELECT + SUM ( + 51 ) / - COUNT ( * ) + 37 + MIN ( + + 78 ) + - 31 - + - 82 / - - CAST ( MAX ( ALL + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-730
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 WHERE + 72 <= + 52
----
0

skipif mysql # not compatible
query I rowsort label-730
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 WHERE + 72 <= + 52
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-731
SELECT - col2 * - + col2 DIV - - col2, + 94 col0 FROM tab0 AS cor0
----
10
94
47
94
99
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-731
SELECT - col2 * - + col2 / - - col2, + 94 col0 FROM tab0 AS cor0
----
10
94
47
94
99
94

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT ALL - - col2 DIV + 11 - - col2 FROM tab0 AS cor0
----
10
108
51

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL - - col2 / + 11 - - col2 FROM tab0 AS cor0
----
10
108
51

query I rowsort
SELECT DISTINCT 60 + + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-734
SELECT DISTINCT - 84 DIV col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT - 84 / col0 FROM tab2 AS cor0
----
-1

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - col2 - + + col2 FROM tab2 AS cor0
----
1150
3040
3828

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - + col2 col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT col1 * + 84 - - col1 + + ( - col1 ) FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT ALL col1 * - col0 DIV col0 + + col0 AS col0 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL col1 * - col0 / col0 + + col0 AS col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - 64 / - + col1 FROM tab1 WHERE + 71 < - ( + - 13 )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE ( + col1 * + 79 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 60 + - col2 > NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-747
SELECT DISTINCT - col2 * - 12 + + + col0 - - CAST( NULL AS DECIMAL ) AS col0, + CAST( + 31 AS SIGNED ) AS col0 FROM tab2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-747
SELECT DISTINCT - col2 * - 12 + + + col0 - - CAST ( NULL AS REAL ) AS col0, + CAST ( + 31 AS INTEGER ) AS col0 FROM tab2
----
NULL
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( + col0 * + 71, col2, - col0 + 60 / col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-750
SELECT - col0 DIV + 90 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-750
SELECT - col0 / + 90 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT - 83 * - - MIN( ALL - col0 ) AS col0 FROM tab0
----
8051

skipif mysql # not compatible
query I rowsort label-751
SELECT - 83 * - - MIN ( ALL - col0 ) AS col0 FROM tab0
----
8051

query III rowsort
SELECT * FROM tab2 WHERE NOT + 82 * + col0 * 54 + + ( + col1 ) / - 76 * + - col1 + - col1 BETWEEN + col1 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT MAX( - 64 ) AS col2 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-754
SELECT MAX ( - 64 ) AS col2 FROM tab0 AS cor0
----
-64

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

query I rowsort
SELECT DISTINCT - - 14 AS col0 FROM tab0 cor0
----
14

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

query I rowsort
SELECT 35 + + col2 + col1 AS col1 FROM tab2
----
109
152
160

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT 41 DIV + col2 + + col2 * 89 + - + 24 FROM tab0
----
4159
870
8787

skipif mysql # not compatible
query I rowsort label-759
SELECT 41 / + col2 + + col2 * 89 + - + 24 FROM tab0
----
4159
870
8787

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 * + + 84 * - col0 <> + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ( - COUNT( * ) ) + + 5 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-761
SELECT ( - COUNT ( * ) ) + + 5 FROM tab2
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 10 * + col2 + + - 20 col2 FROM tab2
----
15980
33620
5270

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

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + COUNT( * ) + + + MIN( + col1 ) col0 FROM tab2
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-764
SELECT + COUNT ( * ) + + + MIN ( + col1 ) col0 FROM tab2
----
54

query II rowsort
SELECT ALL + col0 + + col0 + - 46 * + col2, 57 AS col0 FROM tab2
----
-1712
57
-2518
57
-966
57

query II rowsort
SELECT col2 AS col0, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT col1, 15 * col0 FROM tab0
----
1
1455
21
1305
81
225

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

query I rowsort
SELECT + 69 * + 39 FROM tab1 AS cor0
----
2691
2691
2691

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

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

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

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

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

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

query I rowsort
SELECT + 1 + - - col1 * - 20 FROM tab2
----
-1019
-1339
-1539

query I rowsort
SELECT ALL + 45 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

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

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

query I rowsort
SELECT col1 + - - col0 + - col2 + + col1 * + col2 FROM tab1 AS cor0
----
1313
326
3266

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT DISTINCT MIN( + col1 ) AS col2 FROM tab1 AS cor0 WHERE 80 NOT BETWEEN + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT MIN ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE 80 NOT BETWEEN + col1 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + + col1 * - col1 + 13 + col2 * col0 - + + col0 FROM tab0 cor0
----
-5858
355
9518

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

query II rowsort
SELECT ALL - col1 - col0, col2 FROM tab2 AS cor0
----
-141
40
-142
58
-97
23

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

query I rowsort
SELECT ( - 17 ) * - col2 * - - col2 FROM tab2 cor0
----
27200
57188
8993

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 55 + col0 > NULL
----

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

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

query I rowsort
SELECT ALL + 49 AS col2 FROM tab1
----
49
49
49

query I rowsort
SELECT 67 * + col2 FROM tab1
----
3953
4556
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT ALL COUNT( * ) * - 85 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL COUNT ( * ) * - 85 FROM tab0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT COUNT( ALL - + col0 ) * - 4 AS col1 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-788
SELECT COUNT ( ALL - + col0 ) * - 4 AS col1 FROM tab2
----
-12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - col1 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NULL >= + 51
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 76 * + col2 <= - + 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE 71 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT DISTINCT + 90 DIV - 73 col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-795
SELECT DISTINCT + 90 / - 73 col0 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + - col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91

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

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

query II rowsort
SELECT DISTINCT - col2 * - col0 AS col1, col1 FROM tab1 AS cor0
----
4896
14
5015
5
6188
47

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

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

query I rowsort
SELECT - 57 * col0 AS col1 FROM tab1
----
-2907
-4845
-5187

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-801
SELECT - COUNT ( ALL - CAST ( col0 AS INTEGER ) ) AS col1, + 83 col2 FROM tab1
----
-3
83

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

query II rowsort
SELECT DISTINCT - col0 + + - col0 * + col2 AS col2, col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-720
81
-957
21
-9700
1

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT + - col1 * - ( - - col0 ) BETWEEN NULL AND - col0
----
3

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT + - col1 * - ( - - col0 ) BETWEEN NULL AND - col0
----
3

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-807
SELECT + - 62 + - CAST( NULL AS DECIMAL ) + + + 10 AS col0 FROM tab1 WHERE col2 = + + col1
----

skipif mysql # not compatible
query I rowsort label-807
SELECT + - 62 + - CAST ( NULL AS REAL ) + + + 10 AS col0 FROM tab1 WHERE col2 = + + col1
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT ( ( NULL ) <= + + 47 * - - 78 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - + 49 ) - - col0 * - col0 * + col2 + col0 AS col0, + 31 col1 FROM tab1 AS cor0
----
-249596
31
-426141
31
-562968
31

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT col1 DIV col0 - - col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-810
SELECT col1 / col0 - - col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-811
SELECT ALL + col1 * CAST( + - col0 AS SIGNED ) - - col1, col0 FROM tab1 AS cor0
----
-420
85
-4230
91
-700
51

skipif mysql # not compatible
query II rowsort label-811
SELECT ALL + col1 * CAST ( + - col0 AS INTEGER ) - - col1, col0 FROM tab1 AS cor0
----
-420
85
-4230
91
-700
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-812
SELECT + + 23 DIV + - 97 - - - COUNT( * ) DIV + + 50 * 23 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-812
SELECT + + 23 / + - 97 - - - COUNT ( * ) / + + 50 * 23 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 >= + + 73
----
85
5
59
91
47
68

query I rowsort
SELECT + col2 - - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL - COUNT( * ) - + 57 + + - 71 FROM tab1 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - COUNT ( * ) - + 57 + + - 71 FROM tab1 AS cor0
----
-131

query I rowsort
SELECT - 78 - - col1 AS col2 FROM tab0 AS cor0
----
-57
-77
3

query I rowsort
SELECT ALL 49 * + ( col1 ) * - 62 FROM tab2
----
-154938
-203546
-233926

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) FROM tab0
----
15
87
97

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-823
SELECT ALL MIN( - col1 ) AS col0, - 50 AS col1 FROM tab1
----
-47
-50

skipif mysql # not compatible
query II rowsort label-823
SELECT ALL MIN ( - col1 ) AS col0, - 50 AS col1 FROM tab1
----
-47
-50

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 63 * - 43 * - 70 IS NULL
----

query I rowsort
SELECT - 38 * - col1 * + col0 FROM tab2 AS cor0
----
187264
190950
89148

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

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

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

query I rowsort
SELECT DISTINCT + 63 * - col2 * col1 AS col1 FROM tab0
----
-13230
-239841
-6237

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

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

skipif mysql # not compatible
query I rowsort label-830
SELECT + 7 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
16

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

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

query II rowsort
SELECT + col2, + 78 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + 36 AS col0, + col2 FROM tab2 cor0
----
36
23
36
40
36
58

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

query I rowsort
SELECT + col2 + 0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-837
SELECT + 42 + + 42 AS col0, COUNT( * ) FROM tab1
----
84
3

skipif mysql # not compatible
query II rowsort label-837
SELECT + 42 + + 42 AS col0, COUNT ( * ) FROM tab1
----
84
3

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

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

query II rowsort
SELECT ALL - 57 + + col2 AS col1, col0 FROM tab2
----
-17
64
-34
46
1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT + SUM( + 5 ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-840
SELECT + SUM ( + 5 ) AS col1 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT DISTINCT 70 * - COUNT( * ) + + + 84 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT 70 * - COUNT ( * ) + + + 84 FROM tab1
----
-126

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

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

query I rowsort
SELECT DISTINCT - col1 - 51 AS col0 FROM tab0 AS cor0
----
-132
-52
-72

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

query I rowsort
SELECT DISTINCT - - col2 * 0 - col0 FROM tab2 cor0
----
-46
-64
-75

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

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

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

query I rowsort
SELECT - - 70 * - 15 * - 8 FROM tab2 cor0
----
8400
8400
8400

query I rowsort
SELECT ALL + col0 * - 43 + col2 FROM tab0 AS cor0
----
-3731
-4072
-598

query II rowsort
SELECT + 80 * + + 31 AS col1, col2 + + - 84 AS col1 FROM tab1
----
2480
-16
2480
-25
2480
12

onlyif mysql # aggregate syntax: 
query II rowsort label-852
SELECT ALL + COUNT( * ), + 54 - 25 AS col2 FROM tab2
----
3
29

skipif mysql # not compatible
query II rowsort label-852
SELECT ALL + COUNT ( * ), + 54 - 25 AS col2 FROM tab2
----
3
29

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT ALL col0 AS col0, 74 * + 89 AS col2 FROM tab1 AS cor0
----
51
6586
85
6586
91
6586

query I rowsort
SELECT ALL 61 AS col0 FROM tab0 AS cor0
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-861
SELECT * FROM tab2 AS cor0 WHERE NOT 56 BETWEEN + col0 AND CAST( + ( - col2 ) AS SIGNED ) + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-861
SELECT * FROM tab2 AS cor0 WHERE NOT 56 BETWEEN + col0 AND CAST ( + ( - col2 ) AS INTEGER ) + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) >= + + col1 + + col2 * + col0 * - 56 / + + col2
----

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) >= + + col1 + + col2 * + col0 * - 56 / + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT - SUM( 82 ) FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - SUM ( 82 ) FROM tab2
----
-246

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-866
SELECT ALL - - COUNT( * ) + + SUM( ALL - col1 ) col0, - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT - col1 + + col1 < - CAST( NULL AS SIGNED )
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-866
SELECT ALL - - COUNT ( * ) + + SUM ( ALL - col1 ) col0, - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT - col1 + + col1 < - CAST ( NULL AS INTEGER )
----
NULL
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT - 23 * + SUM( - 29 ) AS col0 FROM tab2
----
2001

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT - 23 * + SUM ( - 29 ) AS col0 FROM tab2
----
2001

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-870
SELECT ALL ( - COUNT( * ) ) * + COUNT( DISTINCT + CAST( ( + col0 ) AS SIGNED ) ) col2 FROM tab1 WHERE - 87 * - - 28 < 71 / - col0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-870
SELECT ALL ( - COUNT ( * ) ) * + COUNT ( DISTINCT + CAST ( ( + col0 ) AS INTEGER ) ) col2 FROM tab1 WHERE - 87 * - - 28 < 71 / - col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT - MIN( col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-871
SELECT - MIN ( col1 ) FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT ALL - CAST( - col0 AS SIGNED ) * - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL - CAST ( - col0 AS INTEGER ) * - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

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

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

query I rowsort
SELECT ALL - col2 + 51 - + 3 * + col0 + - col1 AS col2 FROM tab2
----
-161
-258
-299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-876
SELECT - col0 + CAST( + + 44 AS SIGNED ) + + + ( + col0 ) AS col1 FROM tab1 cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-876
SELECT - col0 + CAST ( + + 44 AS INTEGER ) + + + ( + col0 ) AS col1 FROM tab1 cor0
----
44
44
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT + + COUNT( + 64 ) AS col2 FROM tab0 WHERE + - 81 * + col2 - col1 > col0
----
0

skipif mysql # not compatible
query I rowsort label-878
SELECT + + COUNT ( + 64 ) AS col2 FROM tab0 WHERE + - 81 * + col2 - col1 > col0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-882
SELECT - COUNT( * ) DIV + 27 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
0

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

query I rowsort
SELECT DISTINCT 40 * col0 FROM tab2 cor0
----
1840
2560
3000

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-887
SELECT - col2 * CAST( + col2 AS SIGNED ) col0, 79 * col2 AS col0 FROM tab0
----
-100
790
-2209
3713
-9801
7821

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-887
SELECT - col2 * CAST ( + col2 AS INTEGER ) col0, 79 * col2 AS col0 FROM tab0
----
-100
790
-2209
3713
-9801
7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - + 15 col1 FROM tab0 WHERE - - col0 * + - 16 IS NOT NULL
----
-1215
-15
-315

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ALL - COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( NOT + col1 + - col0 * + 96 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( NOT + col1 + - col0 * + 96 IS NULL )
----
-3

query I rowsort
SELECT ALL + 10 * 59 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
590
590
590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-892
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query III rowsort label-893
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 - - col2 < ( col2 DIV + col0 )
----

skipif mysql # not compatible
query III rowsort label-893
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 - - col2 < ( col2 / + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-894
SELECT ALL COUNT( * ), + 7 * - COUNT( * ) AS col1 FROM tab2
----
3
-21

skipif mysql # not compatible
query II rowsort label-894
SELECT ALL COUNT ( * ), + 7 * - COUNT ( * ) AS col1 FROM tab2
----
3
-21

query I rowsort
SELECT ALL col0 * + col1 + - 37 * - col2 * + col2 FROM tab0
----
362734
5527
82948

query I rowsort
SELECT - 15 + - + 10 + col0 AS col1 FROM tab2 cor0
----
21
39
50

query I rowsort
SELECT ALL + + col2 * + col1 + col2 + + - 5 FROM tab1 AS cor0
----
1435
3259
349

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + - MAX( DISTINCT - - col2 ) + 3 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-899
SELECT + - MAX ( DISTINCT - - col2 ) + 3 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT + ( + + 54 ) + + col1 FROM tab2 AS cor0
----
105
121
131

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

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

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

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL col1 / - - col1 AS col2 FROM tab0 cor0
----
1
1
1

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

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

query II rowsort
SELECT DISTINCT + 56 * + 45 AS col0, - col1 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + - col2 * 72 IS NULL
----
2520
21
2520
54
2520
82

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

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

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

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

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

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

query I rowsort
SELECT ALL 14 + 64 FROM tab0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-910
SELECT - + col0 + col0 * + + col0 + col1 AS col0 FROM tab0 WHERE - col0 * 56 * CAST( 98 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-910
SELECT - + col0 + col0 * + + col0 + col1 AS col0 FROM tab0 WHERE - col0 * 56 * CAST ( 98 AS INTEGER ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT ALL + col0 + + - col0 DIV + 54 AS col2 FROM tab0
----
15
86
96

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + col0 + + - col0 / + 54 AS col2 FROM tab0
----
15
86
96

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 3 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - + MIN ( + col1 ) + + - ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + - + col0 + - 0 col2 FROM tab0 WHERE NULL IS NULL
----
-55
-65
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-916
SELECT COUNT( * ) DIV + COUNT( * ) FROM tab1 WHERE + - col1 DIV + 32 * col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-916
SELECT COUNT ( * ) / + COUNT ( * ) FROM tab1 WHERE + - col1 / + 32 * col1 IS NOT NULL
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT DISTINCT + col2 + + - col2 + - 38 DIV + - 8 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + col2 + + - col2 + - 38 / + - 8 FROM tab2
----
4

query I rowsort
SELECT DISTINCT col1 - col0 + - col2 AS col2 FROM tab0
----
-195
-76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT + ( + COUNT( * ) ) FROM tab1 WHERE ( - - col2 ) <= 33
----
0

skipif mysql # not compatible
query I rowsort label-920
SELECT + ( + COUNT ( * ) ) FROM tab1 WHERE ( - - col2 ) <= 33
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT CAST( col0 AS SIGNED ) * - col2 AS col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-921
SELECT CAST ( col0 AS INTEGER ) * - col2 AS col2 FROM tab2
----
-1058
-2560
-4350

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

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

query I rowsort
SELECT - - 85 AS col1 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT 86 * - 47 AS col1 FROM tab2 AS cor0
----
-4042
-4042
-4042

query I rowsort
SELECT 57 - - col2 + + - 11 * 4 * col1 + col1 AS col1 FROM tab0 AS cor0
----
-3379
-836
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT DISTINCT 69 + - + CAST( + - 37 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT 69 + - + CAST ( + - 37 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-927
SELECT ALL + + col1 DIV + col1 + + col0 - + 61 * col1 FROM tab2 cor0
----
-3064
-4011
-4632

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + + col1 / + col1 + + col0 - + 61 * col1 FROM tab2 cor0
----
-3064
-4011
-4632

query I rowsort
SELECT - col2 + + + 14 * + 44 AS col0 FROM tab1
----
520
548
557

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

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT - COUNT( * ) * - 53 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-930
SELECT - COUNT ( * ) * - 53 FROM tab1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT DISTINCT 20 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT 20 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-932
SELECT DISTINCT + - 46 * - + 17 * - + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
16422
63342
782

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT + - 46 * - + 17 * - + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
16422
63342
782

query I rowsort
SELECT ALL - - 52 * 5 FROM tab2 AS cor0 WHERE ( col1 ) <= - ( + col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT ALL + CAST( + col1 AS SIGNED ) * + col0 - 79 FROM tab0 WHERE NOT - col2 IS NULL
----
1136
1748
18

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL + CAST ( + col1 AS INTEGER ) * + col0 - 79 FROM tab0 WHERE NOT - col2 IS NULL
----
1136
1748
18

query II rowsort
SELECT DISTINCT - 34, 40 AS col2 FROM tab2
----
-34
40

query I rowsort
SELECT + col0 * - 17 FROM tab2
----
-1088
-1275
-782

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE ( 45 NOT BETWEEN NULL AND - - col2 )
----
-23
-40

query I rowsort
SELECT DISTINCT - 86 / - col1 AS col1 FROM tab1 WHERE NOT + col2 BETWEEN - 77 AND - - col2
----

query II rowsort
SELECT + 53 AS col1, 37 FROM tab1
----
53
37
53
37
53
37

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

skipif mysql # not compatible
query I rowsort label-941
SELECT + col0 / 34 FROM tab2
----
1
1
2

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-943
SELECT * FROM tab2 WHERE NOT ( ( - CAST( NULL AS SIGNED ) ) / + col2 * - - col2 * col1 + - col0 ) = 89
----

skipif mysql # not compatible
query III rowsort label-943
SELECT * FROM tab2 WHERE NOT ( ( - CAST ( NULL AS INTEGER ) ) / + col2 * - - col2 * col1 + - col0 ) = 89
----

query II rowsort
SELECT DISTINCT - col0 AS col0, - col2 + - + col1 AS col1 FROM tab1
----
-51
-110
-85
-64
-91
-115

query II rowsort
SELECT col1, col1 + + col2 FROM tab1
----
14
110
47
115
5
64

query I rowsort
SELECT + + col2 + + - 32 * + - col0 AS col1 FROM tab1 AS cor0
----
1728
2779
2980

query I rowsort
SELECT + 66 * - + 81 * col2 + col0 FROM tab2 AS cor0
----
-122912
-213776
-309993

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-948
SELECT ALL COUNT( * ) + - + MAX( ALL - 77 ) DIV COUNT( * ) * + MAX( - 57 ) FROM tab0
----
-1422

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL COUNT ( * ) + - + MAX ( ALL - 77 ) / COUNT ( * ) * + MAX ( - 57 ) FROM tab0
----
-1422

onlyif mysql # DIV for integer division: 
query I rowsort label-949
SELECT 46 * - col1 * + + col1 DIV - col1 + - col1 FROM tab1
----
2115
225
630

skipif mysql # not compatible
query I rowsort label-949
SELECT 46 * - col1 * + + col1 / - col1 + - col1 FROM tab1
----
2115
225
630

onlyif mysql # DIV for integer division: 
query II rowsort label-950
SELECT DISTINCT + 82 DIV + + col0 + col1 AS col1, col1 AS col1 FROM tab1
----
15
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-950
SELECT DISTINCT + 82 / + + col0 + col1 AS col1, col1 AS col1 FROM tab1
----
15
14
47
47
5
5

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

query I rowsort
SELECT ALL 32 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) <> col0 * + 54 + - - col0
----
32
32
32

query I rowsort
SELECT - + 8 AS col1 FROM tab2 cor0
----
-8
-8
-8

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

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

query I rowsort
SELECT col0 + 90 AS col1 FROM tab1
----
141
175
181

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

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

query I rowsort
SELECT ALL 54 + + col0 FROM tab0
----
141
151
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT DISTINCT - col2 - - CAST( - 75 AS SIGNED ) + + + col0 FROM tab2
----
-51
-52
-58

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT - col2 - - CAST ( - 75 AS INTEGER ) + + + col0 FROM tab2
----
-51
-52
-58

query I rowsort
SELECT col0 FROM tab1 WHERE + col0 <> + - col2 + col2 / + - col2 * col1
----
51
85
91

query II rowsort
SELECT ALL - col2 AS col2, + col2 FROM tab0 AS cor0 WHERE NOT NULL < + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 * col0 col0 FROM tab0 AS cor0
----
-4089
-4559
-705

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) * col0 <= 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1, col2 AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT DISTINCT - 58 * - MIN( - 91 ) AS col2 FROM tab1 AS cor0
----
-5278

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT - 58 * - MIN ( - 91 ) AS col2 FROM tab1 AS cor0
----
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT - COUNT( * ) * + 49 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-965
SELECT - COUNT ( * ) * + 49 FROM tab1 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-966
SELECT DISTINCT - + 22 + - + COUNT( * ), MIN( ALL 33 ) col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
-22
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-966
SELECT DISTINCT - + 22 + - + COUNT ( * ), MIN ( ALL 33 ) col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
-22
NULL

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

query I rowsort
SELECT ALL - + col1 * - col2 * + col2 AS col1 FROM tab1 AS cor0
----
129024
17405
217328

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

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

query II rowsort
SELECT DISTINCT 29 AS col2, + col0 + 55 * + col2 FROM tab2
----
29
1311
29
2264
29
3265

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT col0 + - ( + - col0 ) DIV + 48 col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-971
SELECT col0 + - ( + - col0 ) / + 48 col1 FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ALL SUM( 88 ) * 47 AS col2 FROM tab1
----
12408

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL SUM ( 88 ) * 47 AS col2 FROM tab1
----
12408

query I rowsort
SELECT DISTINCT + 62 * + 1 FROM tab0 AS cor0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT ALL col2 DIV + 36 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL col2 / + 36 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-975
SELECT ALL - COUNT( * ), 39 AS col1 FROM tab2 AS cor0 WHERE NOT ( + + col0 + col1 + 22 + + - col1 IS NULL )
----
-3
39

skipif mysql # not compatible
query II rowsort label-975
SELECT ALL - COUNT ( * ), 39 AS col1 FROM tab2 AS cor0 WHERE NOT ( + + col0 + col1 + 22 + + - col1 IS NULL )
----
-3
39

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT - - 43 DIV + col0 * - col0 * 5 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-976
SELECT - - 43 / + col0 * - col0 * 5 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-977
SELECT DISTINCT - 3 + + CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NULL < - + col2 + col1
----
0

skipif mysql # not compatible
query I rowsort label-978
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NULL < - + col2 + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + - 33 col2 FROM tab1
----
26
35
63

query I rowsort
SELECT ALL - col0 + - col2 * 69 AS col0 FROM tab0
----
-3258
-6928
-777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 AS col0, col0 * - col1 + - 91 - - col2 col2 FROM tab0 AS cor0
----
-1
-89
-21
-1908
-81
-1259

query I rowsort
SELECT + col0 + - 55 FROM tab1 AS cor0
----
-4
30
36

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT - COUNT( * ) * 75 + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-983
SELECT - COUNT ( * ) * 75 + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-984
SELECT DISTINCT + + 68 col0, col0 + - col1 + - - 99 + - 59 / CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
68
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-984
SELECT DISTINCT + + 68 col0, col0 + - col1 + - - 99 + - 59 / CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
68
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-985
SELECT ALL 52 + + CAST( 3 AS SIGNED ) col1 FROM tab0
----
55
55
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-985
SELECT ALL 52 + + CAST ( 3 AS INTEGER ) col1 FROM tab0
----
55
55
55

query III rowsort
SELECT * FROM tab0 WHERE - 80 >= + col0 * + col0
----

query I rowsort
SELECT ALL + col2 + + - 67 AS col0 FROM tab2
----
-27
-44
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT 25 / - CAST( NULL AS SIGNED ) * - - 70 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-989
SELECT MAX( + CAST( 47 AS SIGNED ) ) AS col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-989
SELECT MAX ( + CAST ( 47 AS INTEGER ) ) AS col1 FROM tab0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-990
SELECT ALL * FROM tab1 WHERE NOT col0 + - col1 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-990
SELECT ALL * FROM tab1 WHERE NOT col0 + - col1 > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( + col2 ) - - col2 AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + - 4 + col2 - + col2 col0 FROM tab2
----
55
71
81

query I rowsort
SELECT DISTINCT 52 - 31 * + + col2 * + ( ( + col0 ) ) FROM tab0
----
-21803
-26918
-297641

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-994
SELECT DISTINCT + 52 AS col1, col2 * - col2 * 35 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
52
NULL

skipif mysql # not compatible
query II rowsort label-994
SELECT DISTINCT + 52 AS col1, col2 * - col2 * 35 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
52
NULL

query I rowsort
SELECT + ( + + 81 ) / col0 * + - 97 * - 30 * col1 FROM tab0 cor0 WHERE NOT NULL = - col1
----

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

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

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

query I rowsort
SELECT ( + 19 ) * - - col1 FROM tab0
----
1539
19
399

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

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

query I rowsort
SELECT 6 * + 24 AS col1 FROM tab2
----
144
144
144

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * - - col2 col2 FROM tab0
----
2538
5346
540

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT ALL 43 DIV col2 * + col0 AS col0 FROM tab2
----
0
46
64

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL 43 / col2 * + col0 AS col0 FROM tab2
----
0
46
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1004
SELECT DISTINCT 76 AS col2, - col1 * 32 * - col2 AS col2, + - col0 + + col0 col1 FROM tab1 WHERE NOT - - col1 * - CAST( NULL AS SIGNED ) + + col0 + + - col1 * + col2 + + 92 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1004
SELECT DISTINCT 76 AS col2, - col1 * 32 * - col2 AS col2, + - col0 + + col0 col1 FROM tab1 WHERE NOT - - col1 * - CAST ( NULL AS INTEGER ) + + col0 + + - col1 * + col2 + + 92 IS NULL
----

query I rowsort
SELECT col0 + - ( + 51 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-5
13
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1006
SELECT DISTINCT - MIN( ALL - - col1 ) DIV 17 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - MIN ( ALL - - col1 ) / 17 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT 4 + + col1 + 88 * col0 FROM tab1 cor0
----
4506
7489
8059

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1009
SELECT - col1 + - - col0 + + - CAST( - col0 AS SIGNED ) DIV + 22 AS col2 FROM tab1
----
39
48
83

skipif mysql # not compatible
query I rowsort label-1009
SELECT - col1 + - - col0 + + - CAST ( - col0 AS INTEGER ) / + 22 AS col2 FROM tab1
----
39
48
83

query I rowsort
SELECT + 42 + - col0 FROM tab1
----
-43
-49
-9

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 65
----

query I rowsort
SELECT ALL - 63 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT DISTINCT - + col0 - + 0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT + 22 DIV + col2 - ( - - 67 ) AS col2 FROM tab0 AS cor0
----
-65
-67
-67

skipif mysql # not compatible
query I rowsort label-1016
SELECT + 22 / + col2 - ( - - 67 ) AS col2 FROM tab0 AS cor0
----
-65
-67
-67

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

query I rowsort
SELECT col1 + + 90 AS col2 FROM tab1 AS cor0
----
104
137
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT - 74 + - SUM( 43 ) + + - 42 FROM tab1
----
-245

skipif mysql # not compatible
query I rowsort label-1019
SELECT - 74 + - SUM ( 43 ) + + - 42 FROM tab1
----
-245

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1020
SELECT col2 + + 3 AS col0, + CAST( col1 AS SIGNED ) + 2 DIV + col2 col1 FROM tab1
----
62
5
71
47
99
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1020
SELECT col2 + + 3 AS col0, + CAST ( col1 AS INTEGER ) + 2 / + col2 col1 FROM tab1
----
62
5
71
47
99
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL 62 * SUM( col1 ) AS col0 FROM tab0
----
6386

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL 62 * SUM ( col1 ) AS col0 FROM tab0
----
6386

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL MIN( 96 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL MIN ( 96 ) FROM tab1
----
96

query II rowsort
SELECT ALL col0, + col0 - - col0 + + col0 AS col0 FROM tab2
----
46
138
64
192
75
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1024
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE - col2 IS NOT NULL
----
-10
-47
-99

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

query II rowsort
SELECT - col2 * + col2 AS col2, + col2 FROM tab1 AS cor0 WHERE NOT col1 * - 84 + + 50 IS NOT NULL
----

query I rowsort
SELECT ALL 56 AS col0 FROM tab0 cor0
----
56
56
56

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

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

query I rowsort
SELECT - col1 * + - 76 * - col2 AS col2 FROM tab0 AS cor0
----
-15960
-289332
-7524

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 82 * 53 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT DISTINCT + MAX( 63 ) AS col1 FROM tab0 cor0 WHERE + col1 * + col1 IS NOT NULL
----
63

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT + MAX ( 63 ) AS col1 FROM tab0 cor0 WHERE + col1 * + col1 IS NOT NULL
----
63

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

skipif mysql # not compatible
query I rowsort label-1033
SELECT - + CAST ( + CAST ( - 57 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0
----
57
57
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT + COUNT( - col2 ) * 91 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT + COUNT ( - col2 ) * 91 FROM tab1 AS cor0
----
273

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

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

query I rowsort
SELECT col2 + + 99 AS col1 FROM tab1 AS cor0
----
158
167
195

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1039
SELECT ALL - CAST( SUM( ALL + + col1 ) AS SIGNED ) FROM tab0
----
-103

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

query I rowsort
SELECT 24 * + col1 AS col1 FROM tab1
----
1128
120
336

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT - SUM( - 13 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-1041
SELECT - SUM ( - 13 ) FROM tab2
----
39

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 36 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 63 * + ( + col2 ) * + - col1 * - - col0 + - + col0 + + 36 AS col0 FROM tab2 AS cor0
----
-12418588
-18361389
-3399364

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

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

query I rowsort
SELECT + col1 * col0 + + - 5 AS col0 FROM tab2
----
2341
4923
5020

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL - - 29 * COUNT( * ) + + 76 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL - - 29 * COUNT ( * ) + + 76 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
166

query I rowsort
SELECT ALL col0 * col1 - - + col0 * - col1 * + col1 * + 67 AS col1 FROM tab0 AS cor0
----
-2568762
-6402
-6592590

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 68 > + col0 - - + 52 * - 17 * + col1 * 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 * + col2 + + 50 AS col1 FROM tab0 AS cor0
----
150
2259
9851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT + CAST( + col2 AS SIGNED ) * + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-1053
SELECT + CAST ( + col2 AS INTEGER ) * + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT col1 + + col0 - + col2 * + col2 * col0 * + col0 * + + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT 43 IS NOT NULL
----

query II rowsort
SELECT ALL - 81 * - col0 AS col2, - col2 FROM tab1 cor0
----
4131
-96
6885
-59
7371
-68

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

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT - 14 - + col0 <= + + 11
----

query I rowsort
SELECT DISTINCT + col2 / + + col1 + col2 AS col2 FROM tab2 WHERE NOT - col0 + - col1 + col2 <= NULL
----

query I rowsort
SELECT ALL - 39 AS col1 FROM tab1 WHERE NOT 45 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1061
SELECT col0 AS col1, + col1 * - + col0 * 25 + 54 AS col1 FROM tab0 WHERE NOT 99 * - + 5 + - col2 / 1 + - + CAST( NULL AS SIGNED ) + 90 * 45 * - + col1 / + - col1 + + 24 IS NOT NULL
----
15
-30321
87
-45621
97
-2371

skipif mysql # not compatible
query II rowsort label-1061
SELECT col0 AS col1, + col1 * - + col0 * 25 + 54 AS col1 FROM tab0 WHERE NOT 99 * - + 5 + - col2 / 1 + - + CAST ( NULL AS INTEGER ) + 90 * 45 * - + col1 / + - col1 + + 24 IS NOT NULL
----
15
-30321
87
-45621
97
-2371

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1062
SELECT + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + CAST ( col2 AS INTEGER ) ) col2 FROM tab0
----
NULL

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

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

query I rowsort
SELECT ALL + - ( - + ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab1 AS cor0 WHERE NOT + 6 BETWEEN - col1 AND + 35
----

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

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

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + 23 * 49 + col2 + + 57 + col2 IS NULL
----
23
40
58

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 + - col0 * - - ( col0 ) AS col1 FROM tab1
----
59
-7220
68
-8234
96
-2587

onlyif mysql # DIV for integer division: 
query II rowsort label-1069
SELECT ALL + col0, + ( - 1 ) DIV - ( 56 ) col2 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1069
SELECT ALL + col0, + ( - 1 ) / - ( 56 ) col2 FROM tab0
----
15
0
87
0
97
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 99 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT DISTINCT col2 + col2 * col1 * + + col2 * col2 DIV + + col2 AS col1 FROM tab2 AS cor0
----
123240
225446
27002

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT col2 + col2 * col1 * + + col2 * col2 / + + col2 AS col1 FROM tab2 AS cor0
----
123240
225446
27002

query I rowsort
SELECT DISTINCT - - 63 + + col0 FROM tab1 cor0
----
114
148
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1073
SELECT ALL 48 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL 48 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT 68 * + 83 + - col2 + + - col0 FROM tab0
----
5448
5547
5582

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

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

query I rowsort
SELECT ALL - 95 * - 2 + + 70 AS col0 FROM tab2
----
260
260
260

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT + MIN( DISTINCT + ( ( + + 34 ) ) ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + MIN ( DISTINCT + ( ( + + 34 ) ) ) FROM tab1
----
34

query I rowsort
SELECT ALL + - 79 AS col1 FROM tab0 cor0
----
-79
-79
-79

query I rowsort
SELECT 2 + col2 AS col0 FROM tab2 AS cor0
----
25
42
60

query I rowsort
SELECT + col0 + ( + col1 ) FROM tab2 AS cor0 WHERE - col0 / - - col0 >= NULL
----

query I rowsort
SELECT + 60 + + 20 FROM tab0 AS cor0
----
80
80
80

query II rowsort
SELECT - col0 AS col0, col1 * + col2 + - + col0 + + col0 FROM tab0
----
-15
3807
-87
210
-97
99

query I rowsort
SELECT ALL + ( - col1 ) + - col2 * - col2 AS col0 FROM tab2
----
1523
3297
478

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT DISTINCT + col2 DIV + 1 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT + col2 / + 1 FROM tab0 cor0
----
10
47
99

query II rowsort
SELECT - - 17 * - col1 * + col0, - 75 AS col0 FROM tab0 cor0
----
-1649
-75
-20655
-75
-31059
-75

query II rowsort
SELECT + col1 AS col0, col2 * 35 AS col2 FROM tab1 AS cor0
----
14
3360
47
2380
5
2065

query I rowsort
SELECT + col0 * - + col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT + ( 27 ) * - col2 + + - 63 AS col0 FROM tab2 AS cor0
----
-1143
-1629
-684

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT COUNT( * ) * + COUNT( ALL 44 ) * - + 11 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1092
SELECT COUNT ( * ) * + COUNT ( ALL 44 ) * - + 11 FROM tab0 AS cor0
----
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT DISTINCT 16 * COUNT( * ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT 16 * COUNT ( * ) FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT + MAX( ALL - - 9 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1095
SELECT + MAX ( ALL - - 9 ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - col0 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1097
SELECT ALL - MAX( DISTINCT - col1 ) AS col1, + 84 FROM tab2
----
51
84

skipif mysql # not compatible
query II rowsort label-1097
SELECT ALL - MAX ( DISTINCT - col1 ) AS col1, + 84 FROM tab2
----
51
84

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 28 <> NULL )
----

query I rowsort
SELECT 21 AS col0 FROM tab1 cor0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 6 * + ( 56 ) col1, + 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 467aed4c23882131c56de84a6c9ed2b3

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL COUNT( * ) * + - ( - ( + COUNT( DISTINCT - - col0 ) ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL COUNT ( * ) * + - ( - ( + COUNT ( DISTINCT - - col0 ) ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND - + ( - col1 ) * - ( + col2 ) + + col2
----
174
194
30

query I rowsort
SELECT ( - 20 ) FROM tab0 WHERE NOT + + col1 >= col2
----
-20

query I rowsort
SELECT + ( - + 29 ) * - 76 * col2 FROM tab2 AS cor0
----
127832
50692
88160

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - + 3 <> NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1107
SELECT + - CAST ( NULL AS REAL ) + - COUNT ( * ) / - - ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT + MAX( DISTINCT - col2 ) + - 65 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1108
SELECT + MAX ( DISTINCT - col2 ) + - 65 FROM tab0 AS cor0
----
-75

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT + 2 + - - col1 + + col0 DIV col0 FROM tab1 AS cor0
----
17
50
8

skipif mysql # not compatible
query I rowsort label-1111
SELECT + 2 + - - col1 + + col0 / col0 FROM tab1 AS cor0
----
17
50
8

query I rowsort
SELECT DISTINCT - col0 * - 86 FROM tab2 AS cor0
----
3956
5504
6450

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL MIN( DISTINCT + col2 ) col2 FROM tab1 AS cor0
----
59

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

query I rowsort
SELECT + 7 * + 34 + - - 66 + + 47 AS col1 FROM tab2 WHERE + + 57 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1116
SELECT DISTINCT SUM ( + col1 ) col1 FROM tab0
----
103

query I rowsort
SELECT - col1 + - - col1 AS col1 FROM tab2
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1119
SELECT ALL + col0 + + - col2 DIV + - col1 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + col0 + + - col2 / + - col1 FROM tab1
----
57
92
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL SUM( DISTINCT - col2 ) + - - 51 AS col2 FROM tab1
----
-172

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL SUM ( DISTINCT - col2 ) + - - 51 AS col2 FROM tab1
----
-172

query II rowsort
SELECT + 92 AS col0, + 39 FROM tab0
----
92
39
92
39
92
39

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

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

query II rowsort
SELECT ( - 39 ), + col1 FROM tab0
----
-39
1
-39
21
-39
81

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

query I rowsort
SELECT col1 * - - ( - col1 ) + - 32 AS col1 FROM tab1
----
-2241
-228
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT DISTINCT SUM( DISTINCT + col1 ) * - COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0
----
-1755

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT SUM ( DISTINCT + col1 ) * - COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-1755

query I rowsort
SELECT DISTINCT + - 88 AS col1 FROM tab2 AS cor0
----
-88

query I rowsort
SELECT ( - 88 ) FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT + - 48 FROM tab1 cor0 WHERE NOT NULL < + col2 / - + col1
----

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

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

query I rowsort
SELECT ALL - - 88 AS col1 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT ALL + 26 * col2 * col1 * + col2 FROM tab1
----
3354624
452530
5650528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1135
SELECT ALL col2 * + CAST( col0 AS SIGNED ) AS col2 FROM tab1 WHERE NOT - + 17 < + col1 / col0 / col2 / col2 + + col2
----

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL col2 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 WHERE NOT - + 17 < + col1 / col0 / col2 / col2 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT 58 DIV + + 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1136
SELECT 58 / + + 96 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT ( - col1 ) DIV - + 87 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1137
SELECT ( - col1 ) / - + 87 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1138
SELECT col1 DIV + ( + col1 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1138
SELECT col1 / + ( + col1 ) AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + col0 - + + 50 AS col1 FROM tab2 WHERE NOT - col0 IS NULL
----
-4
14
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT + COUNT( * ) + CAST( + 10 AS SIGNED ) * + COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE NOT - 30 = - 96 * + - col2 * ( - 37 )
----
3

skipif mysql # not compatible
query I rowsort label-1140
SELECT + COUNT ( * ) + CAST ( + 10 AS INTEGER ) * + COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE NOT - 30 = - 96 * + - col2 * ( - 37 )
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 + + ( + 95 ), + 48 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT ALL + col2 DIV + col0 + + col0 AS col2 FROM tab0 cor0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + col2 / + col0 + + col0 AS col2 FROM tab0 cor0
----
18
87
98

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

query I rowsort
SELECT - col1 + 39 FROM tab2
----
-12
-28
-38

query I rowsort
SELECT - 65 + - col2 FROM tab1
----
-124
-133
-161

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1146
SELECT CAST( - - ( - 53 ) AS DECIMAL ) / + - col1 + + 2, col0 / - 32 AS col2 FROM tab1 WHERE col1 < - col0
----

skipif mysql # not compatible
query II rowsort label-1146
SELECT CAST ( - - ( - 53 ) AS REAL ) / + - col1 + + 2, col0 / - 32 AS col2 FROM tab1 WHERE col1 < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1148
SELECT - + 34 * + MAX( ALL CAST( + - col1 AS SIGNED ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
37

skipif mysql # not compatible
query I rowsort label-1148
SELECT - + 34 * + MAX ( ALL CAST ( + - col1 AS INTEGER ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
37

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

query I rowsort
SELECT DISTINCT + col1 * 75 + - 1 FROM tab0 AS cor0
----
1574
6074
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1151
SELECT - col2 DIV ( - ( - 8 ) ) - - col0 * + + col0 AS col1 FROM tab2
----
2114
4091
5618

skipif mysql # not compatible
query I rowsort label-1151
SELECT - col2 / ( - ( - 8 ) ) - - col0 * + + col0 AS col1 FROM tab2
----
2114
4091
5618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT + col0 + + col0 - + col1 FROM tab1
----
135
165
88

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * + 10 col1 FROM tab0 AS cor0
----
680
680
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1156
SELECT + MAX( - 65 ) AS col1 FROM tab0 AS cor0 WHERE 67 = + - CAST( CAST( + ( ( + 16 ) ) AS SIGNED ) AS SIGNED ) - - col0 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT + MAX ( - 65 ) AS col1 FROM tab0 AS cor0 WHERE 67 = + - CAST ( CAST ( + ( ( + 16 ) ) AS INTEGER ) AS INTEGER ) - - col0 + - col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1157
SELECT + 22 / col0 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( 44 ) col0, - 32 FROM tab1 AS cor0
----
44
-32
44
-32
44
-32

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

query II rowsort
SELECT ALL + + 67 AS col0, + col2 + col0 FROM tab2 AS cor0
----
67
104
67
133
67
69

query I rowsort
SELECT - + 74 * - 74 * + col0 FROM tab0 AS cor0
----
476412
531172
82140

query II rowsort
SELECT col0, ( - 94 ) AS col1 FROM tab1 AS cor0
----
51
-94
85
-94
91
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-1164
SELECT DISTINCT + - COUNT( * ) AS col1, - 43 + SUM( DISTINCT 73 ) FROM tab1 AS cor0
----
-3
30

skipif mysql # not compatible
query II rowsort label-1164
SELECT DISTINCT + - COUNT ( * ) AS col1, - 43 + SUM ( DISTINCT 73 ) FROM tab1 AS cor0
----
-3
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col1 + - col1 * - 60 * - col1 col0 FROM tab0 AS cor0
----
-24633
-392445
37

query II rowsort
SELECT DISTINCT + 2, col0 AS col1 FROM tab0 cor0
----
2
15
2
87
2
97

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

query I rowsort
SELECT ALL + 69 AS col1 FROM tab1 WHERE NOT NULL > + - col2 - + - col2 - - 17
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 + + col1 <= 14 / - col1 + + - 33
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT ALL col0 * + col2 DIV + col2 col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1170
SELECT ALL col0 * + col2 / + col2 col1 FROM tab0
----
15
87
97

query I rowsort
SELECT - col1 * + 0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT - COUNT( * ) * - - 80 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-240

skipif mysql # not compatible
query I rowsort label-1172
SELECT - COUNT ( * ) * - - 80 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-240

query I rowsort
SELECT DISTINCT - - col2 * + 59 + + 91 + + col2 AS col2 FROM tab2 AS cor0
----
1471
2491
3571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1174
SELECT + ( + + MAX( CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 WHERE NOT col1 * + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT + ( + + MAX ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE NOT col1 * + + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT + - 57 * - + SUM( ALL - + col2 ) + - MIN( - 62 ) AS col2 FROM tab2 AS cor0
----
-6835

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT + - 57 * - + SUM ( ALL - + col2 ) + - MIN ( - 62 ) AS col2 FROM tab2 AS cor0
----
-6835

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 79 >= 71
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 48 NOT BETWEEN NULL AND 84 - - 31
----

query II rowsort
SELECT DISTINCT 47 AS col0, ( col2 ) FROM tab2 AS cor0
----
47
23
47
40
47
58

query II rowsort
SELECT - + col2 * col0 + + col0 + + - 95 * + col0 * + 88, col2 FROM tab1 AS cor0
----
-431205
96
-715530
59
-766857
68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1181
SELECT col1 DIV + col0 + + - col0 + - - col2 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-1181
SELECT col1 / + col0 + + - col0 + - - col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1182
SELECT MAX( ALL + col2 ) + COUNT( * ) AS col1, + MIN( ALL 1 ) + - + ( + 16 ) AS col0 FROM tab2 AS cor0
----
61
-15

skipif mysql # not compatible
query II rowsort label-1182
SELECT MAX ( ALL + col2 ) + COUNT ( * ) AS col1, + MIN ( ALL 1 ) + - + ( + 16 ) AS col0 FROM tab2 AS cor0
----
61
-15

query I rowsort
SELECT - 51 + - + 25 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL + col0 + + 27 * + + col1 AS col2 FROM tab1
----
1360
220
429

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT DISTINCT 67 + + 87 DIV - - col1 FROM tab1
----
68
73
84

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT 67 + + 87 / - - col1 FROM tab1
----
68
73
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT - MAX( + + CAST( + + col0 AS SIGNED ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1186
SELECT - MAX ( + + CAST ( + + col0 AS INTEGER ) ) FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1187
SELECT DISTINCT + col0 + - - CAST( + - col1 AS SIGNED ) - + 93, - col1 * - col1 AS col0 FROM tab0
----
-159
6561
-27
441
3
1

skipif mysql # not compatible
query II rowsort label-1187
SELECT DISTINCT + col0 + - - CAST ( + - col1 AS INTEGER ) - + 93, - col1 * - col1 AS col0 FROM tab0
----
-159
6561
-27
441
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL 52 + + COUNT( * ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 52 + + COUNT ( * ) FROM tab0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT DISTINCT - 8 * - + 60 - + - 56 + - + COUNT( * ) AS col1 FROM tab2
----
533

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT - 8 * - + 60 - + - 56 + - + COUNT ( * ) AS col1 FROM tab2
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT COUNT( + 68 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1190
SELECT COUNT ( + 68 ) FROM tab1
----
3

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

skipif mysql # not compatible
query I rowsort label-1191
SELECT COUNT ( * ) FROM tab2 WHERE ( - + CAST ( - col2 AS INTEGER ) / + col2 * - - col0 ) IS NOT NULL
----
3

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

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

query I rowsort
SELECT ALL + 70 - - col2 FROM tab0 AS cor0
----
117
169
80

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1195
SELECT DISTINCT ( + - CAST( NULL AS DECIMAL ) ) / - + 35 * + col2 + 31 col0, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1195
SELECT DISTINCT ( + - CAST ( NULL AS REAL ) ) / - + 35 * + col2 + 31 col0, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query II rowsort
SELECT ALL - - 31, + col0 AS col0 FROM tab0 cor0
----
31
15
31
87
31
97

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 83 / - col0 + - 83 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 76 * col2 > + col2 + - col1 + + col1
----

query I rowsort
SELECT ALL - ( - + ( + 2 ) ) FROM tab1
----
2
2
2

query I rowsort
SELECT DISTINCT + col0 + - - 42 FROM tab0
----
129
139
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1203
SELECT + 5 DIV - col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1203
SELECT + 5 / - col1 FROM tab1
----
-1
0
0

query II rowsort
SELECT DISTINCT + col1 AS col1, 3 + - ( col2 ) AS col1 FROM tab1
----
14
-93
47
-65
5
-56

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1205
SELECT DISTINCT - - col2 col0 FROM tab1 AS cor0 WHERE NOT col0 - + CAST ( - col0 AS INTEGER ) IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT col0 + 43 DIV - col0 * - col1 + + col1 AS col2 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-1206
SELECT col0 + 43 / - col0 * - col1 + + col1 AS col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT DISTINCT - 31 + + MIN( col1 ) AS col2 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT - 31 + + MIN ( col1 ) AS col2 FROM tab0
----
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 4 >= NULL )
----

query II rowsort
SELECT ALL + col2 * 29 AS col2, col2 * - + col0 + + ( 28 ) AS col0 FROM tab0 AS cor0
----
1363
-677
2871
-9575
290
-842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1210
SELECT DISTINCT COUNT( * ) - CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) AS col2, + 84 FROM tab0 AS cor0
----
NULL
3
84

skipif mysql # not compatible
query III rowsort label-1210
SELECT DISTINCT COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col2, + 84 FROM tab0 AS cor0
----
NULL
3
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT 31 - - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1211
SELECT 31 - - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL + 74 * col0 + - - col1 + + + col1 FROM tab1 AS cor0
----
3802
6300
6828

query I rowsort
SELECT - + col2 - - + 33 FROM tab1 AS cor0
----
-26
-35
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT + COUNT( * ) + - 88 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT + COUNT ( * ) + - 88 FROM tab0 AS cor0
----
-85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + ( - 60 ) * - col2 < NULL )
----

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

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

query I rowsort
SELECT + 42 + + 93 AS col2 FROM tab2
----
135
135
135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT ALL + 54 + - COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL + 54 + - COUNT ( * ) FROM tab2
----
51

query II rowsort
SELECT - col0 AS col0, col0 FROM tab2 WHERE - - 48 IS NOT NULL
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + col0 + 38 - + + col2 - + 97 FROM tab2
----
-35
-36
-42

query I rowsort
SELECT DISTINCT 10 + + 6 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT ALL ( + MIN( DISTINCT col2 ) ) - - 6 AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL ( + MIN ( DISTINCT col2 ) ) - - 6 AS col2 FROM tab0
----
16

query I rowsort
SELECT DISTINCT - 27 + + col1 FROM tab0
----
-26
-6
54

query I rowsort
SELECT ALL - 94 + 69 * - + 96 * - + 75 AS col0 FROM tab0
----
496706
496706
496706

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1226
SELECT DISTINCT + MIN ( - + 87 ) col2 FROM tab2
----
-87

query I rowsort
SELECT ( - 46 ) AS col0 FROM tab0
----
-46
-46
-46

query I rowsort
SELECT 89 * - - col1 AS col1 FROM tab0 AS cor0
----
1869
7209
89

query I rowsort
SELECT 35 * + col2 FROM tab1 AS cor0
----
2065
2380
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL MIN( - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL MIN ( - col0 ) FROM tab1 AS cor0
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT ( COUNT( * ) ) col1 FROM tab0 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-1232
SELECT ( COUNT ( * ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1233
SELECT DISTINCT CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + col2 - col1 * col2 * col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT CAST ( - CAST ( NULL AS REAL ) AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + col2 - col1 * col2 * col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( - ( - 56 ) ) FROM tab2 AS cor0
----
56

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

skipif mysql # not compatible
query I rowsort label-1235
SELECT + - COUNT ( * ) / - 77 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT 46 * MAX( ALL + 7 ) FROM tab0 AS cor0
----
322

skipif mysql # not compatible
query I rowsort label-1236
SELECT 46 * MAX ( ALL + 7 ) FROM tab0 AS cor0
----
322

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

query I rowsort
SELECT ALL + + col1 * 78 FROM tab1 AS cor0
----
1092
3666
390

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1240
SELECT DISTINCT - col1 * - - col0 + 77 + + CAST( NULL AS SIGNED ) * + 60 - - 18 / CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT - col1 * - - col0 + 77 + + CAST ( NULL AS INTEGER ) * + 60 - - 18 / CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 - + col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-28
-37
-9

query I rowsort
SELECT - - col2 + 44 * - col1 AS col2 FROM tab1 WHERE 82 BETWEEN NULL AND NULL AND NOT col1 IS NULL
----

query I rowsort
SELECT ALL 1 + - - col1 FROM tab0
----
2
22
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1244
SELECT COUNT( * ) DIV + + SUM( col2 ) + - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1244
SELECT COUNT ( * ) / + + SUM ( col2 ) + - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT - col2 DIV 21 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1245
SELECT - col2 / 21 AS col0 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL - ( MAX( ALL + col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL - ( MAX ( ALL + col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - 74 * + 46 FROM tab0 AS cor0 WHERE ( NOT NULL < NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col1 ) + - - 86 col2 FROM tab1 AS cor0
----
39
72
81

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

query I rowsort
SELECT DISTINCT - 22 + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 11 * - col0 * + col1 AND 25
----

query I rowsort
SELECT ALL col1 - - - 32 AS col0 FROM tab1
----
-18
-27
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT COUNT( + - ( + col1 ) ) + + - 14 AS col2 FROM tab2 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1253
SELECT COUNT ( + - ( + col1 ) ) + + - 14 AS col2 FROM tab2 cor0
----
-11

query I rowsort
SELECT + 27 + col2 AS col1 FROM tab0 AS cor0
----
126
37
74

query I rowsort
SELECT DISTINCT - ( + 6 ) - - 79 AS col2 FROM tab1 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1256
SELECT + ( + col2 ) + col0 DIV col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-1256
SELECT + ( + col2 ) + col0 / col2 FROM tab2 AS cor0
----
25
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 * + - col0 + - 99 * - 17 AS col2, + 34 + + col0 + - col1 col2 FROM tab2 AS cor0
----
-2413
21
-3942
42
-433
29

query I rowsort
SELECT DISTINCT + 93 * ( 46 ) FROM tab1
----
4278

query I rowsort
SELECT ALL - 54 + 87 AS col1 FROM tab0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1260
SELECT ALL CAST( 22 AS SIGNED ) AS col0 FROM tab2
----
22
22
22

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL CAST ( 22 AS INTEGER ) AS col0 FROM tab2
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT col2 DIV + 39 AS col1 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1261
SELECT col2 / + 39 AS col1 FROM tab1
----
1
1
2

query II rowsort
SELECT - ( - 0 ) AS col1, 21 AS col0 FROM tab2
----
0
21
0
21
0
21

query II rowsort
SELECT DISTINCT - - col2, col2 - - col2 * 41 + - - col1 AS col1 FROM tab1 WHERE NOT + col0 * - col2 IS NULL
----
59
2483
68
2903
96
4046

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT - COUNT( * ) + - - 71 - 37 col0 FROM tab1, tab0 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1264
SELECT - COUNT ( * ) + - - 71 - 37 col0 FROM tab1, tab0 AS cor0
----
25

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1266
SELECT DISTINCT + ( - - COUNT( * ) ), 49 AS col1 FROM tab0 AS cor0
----
3
49

skipif mysql # not compatible
query II rowsort label-1266
SELECT DISTINCT + ( - - COUNT ( * ) ), 49 AS col1 FROM tab0 AS cor0
----
3
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT + CAST( + - col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1267
SELECT + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT DISTINCT - MIN( + 94 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-94

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT - MIN ( + 94 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT DISTINCT col0 * + col1 * + CAST( - - col2 AS SIGNED ) * - col1 FROM tab0
----
-383670
-4625505
-9603

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT col0 * + col1 * + CAST ( - - col2 AS INTEGER ) * - col1 FROM tab0
----
-383670
-4625505
-9603

query I rowsort
SELECT ALL - 82 * col2 AS col0 FROM tab2
----
-1886
-3280
-4756

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL + 22 * - + COUNT( * ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + 22 * - + COUNT ( * ) FROM tab0 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col0 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 98 * + + 20 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT ALL col0 DIV col2 + col0 AS col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL col0 / col2 + col0 AS col2 FROM tab2 AS cor0
----
48
65
76

query I rowsort
SELECT ALL 80 + col0 + 47 + - col2 * + col2 FROM tab1 cor0
----
-3269
-4406
-9038

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

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

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

query I rowsort
SELECT DISTINCT col1 + + - col1 AS col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 77 BETWEEN + + 17 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1280
SELECT CAST( - 45 AS SIGNED ) FROM tab0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-1280
SELECT CAST ( - 45 AS INTEGER ) FROM tab0
----
-45
-45
-45

query I rowsort
SELECT ALL + col1 * - 64 FROM tab0
----
-1344
-5184
-64

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

query I rowsort
SELECT ALL col2 * - + col2 AS col0 FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT col2 + - + col0 AS col1, - col0 FROM tab2
----
-17
-75
-23
-46
-24
-64

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

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

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

query I rowsort
SELECT ALL col0 - - - 31 * 47 AS col0 FROM tab0 AS cor0
----
-1360
-1370
-1442

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1289
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1289
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query II rowsort
SELECT ALL 76 - + - col2 - - 5 * + 44 * - 28 AS col2, 12 AS col1 FROM tab1 AS cor0
----
-5988
12
-6016
12
-6025
12

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

query II rowsort
SELECT col1 AS col0, - 33 * - 15 FROM tab2
----
51
495
67
495
77
495

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + + col1 + col0 * - + 30 * - + col2 > NULL
----

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

query I rowsort
SELECT DISTINCT + 26 * col2 * - col1 AS col1 FROM tab2
----
-101036
-30498
-80080

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT DISTINCT COUNT( ALL + - col1 ) * - 75 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT COUNT ( ALL + - col1 ) * - 75 FROM tab0
----
-225

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT DISTINCT SUM( col0 ) * - 80 FROM tab0 cor0 WHERE col1 / 21 IS NOT NULL
----
-15920

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT SUM ( col0 ) * - 80 FROM tab0 cor0 WHERE col1 / 21 IS NOT NULL
----
-15920

query II rowsort
SELECT - col0 + - - col0, + 98 AS col0 FROM tab0 AS cor0
----
0
98
0
98
0
98

query I rowsort
SELECT ALL + ( - 34 ) AS col0 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT ( - 35 ) + - + 87 AS col0 FROM tab2
----
-122

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

query I rowsort
SELECT DISTINCT col2 + - col1 - + 41 * + ( - 22 ) AS col2 FROM tab1
----
923
956
984

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

query I rowsort
SELECT DISTINCT + 92 + col1 FROM tab0
----
113
173
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col1 col1 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1317
SELECT DISTINCT CAST( + col1 AS SIGNED ) DIV + + col2 AS col0, col2, + 36 FROM tab1
----
9 values hashing to 918b883b0144da6d5cba59db161d49af

skipif mysql # not compatible
query III rowsort label-1317
SELECT DISTINCT CAST ( + col1 AS INTEGER ) / + + col2 AS col0, col2, + 36 FROM tab1
----
9 values hashing to 918b883b0144da6d5cba59db161d49af

query III rowsort
SELECT * FROM tab0 WHERE - + 93 * + 6 NOT BETWEEN NULL AND - + 47
----

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

query I rowsort
SELECT col0 * + + col0 * - + col0 * + 86 FROM tab0
----
-290250
-56631258
-78489878

query I rowsort
SELECT DISTINCT col0 + + col0 * - + 8 AS col2 FROM tab1
----
-357
-595
-637

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

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

query II rowsort
SELECT ALL + col1 AS col0, + col1 * - col2 FROM tab0
----
1
-99
21
-210
81
-3807

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT col1 DIV - + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT col1 / - + col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + 43 + + col2 FROM tab1 AS cor0
----
102
111
139

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT 64 DIV col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1328
SELECT 64 / col2 FROM tab2
----
1
1
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL - 44 * COUNT( * ) col1 FROM tab1
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1330
SELECT ALL - 44 * COUNT ( * ) col1 FROM tab1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT ALL COUNT( + 53 ) + + 37 AS col2 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL COUNT ( + 53 ) + + 37 AS col2 FROM tab1
----
40

query I rowsort
SELECT + 20 FROM tab0 WHERE NOT 65 BETWEEN NULL AND ( + 63 )
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT COUNT( * ) * - 75 AS col0 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-1333
SELECT COUNT ( * ) * - 75 AS col0 FROM tab0
----
-225

query I rowsort
SELECT + 9 * 50 FROM tab1
----
450
450
450

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

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 79 FROM tab2
----
NULL

query I rowsort
SELECT 68 * + col2 AS col1 FROM tab0
----
3196
6732
680

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

query I rowsort
SELECT 74 * col0 AS col0 FROM tab2
----
3404
4736
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ALL SUM( ALL 76 ) * + 53 AS col1 FROM tab2
----
12084

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL SUM ( ALL 76 ) * + 53 AS col1 FROM tab2
----
12084

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT DISTINCT MIN( DISTINCT - col1 ) - + 54 AS col1 FROM tab0 WHERE NOT NULL >= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT MIN ( DISTINCT - col1 ) - + 54 AS col1 FROM tab0 WHERE NOT NULL >= + col0
----
NULL

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( col1 * - 66 )
----

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

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

query I rowsort
SELECT - col1 / - col0 AS col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN ( - col1 ) / col0 + - ( 45 ) AND NULL
----

query I rowsort
SELECT ( 90 ) AS col0 FROM tab1
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT ALL COUNT( * ) + 2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL COUNT ( * ) + 2 FROM tab0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - 48 col2 FROM tab1
----
11
20
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT ALL + SUM( col1 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + SUM ( col1 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT SUM( 32 ) FROM tab1 WHERE ( col0 * - 5 ) >= 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT SUM ( 32 ) FROM tab1 WHERE ( col0 * - 5 ) >= 27
----
NULL

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + 39 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT MIN( + col0 ) + + 72 * 76 FROM tab0
----
5487

skipif mysql # not compatible
query I rowsort label-1357
SELECT MIN ( + col0 ) + + 72 * 76 FROM tab0
----
5487

query I rowsort
SELECT - col2 * + col1 + 14 FROM tab2
----
-1159
-3066
-3872

query I rowsort
SELECT ALL 98 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 IN ( 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 30 + col1 ) IS NULL
----

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

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

query I rowsort
SELECT ALL - col1 + + 60 * + col2 AS col0 FROM tab2 AS cor0
----
1329
2323
3413

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

skipif mysql # not compatible
query III rowsort label-1366
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 * - col2 + col2 * CAST ( CAST ( NULL AS INTEGER ) * + col1 + col1 AS INTEGER ) BETWEEN + 28 AND ( + 66 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE 37 / 17 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col0 * - - col0 + 46 FROM tab1
----
-2555
-7179
-8235

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT ALL col2 DIV 7 + 36 * col0 AS col1 FROM tab2
----
1659
2309
2708

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL col2 / 7 + 36 * col0 AS col1 FROM tab2
----
1659
2309
2708

query I rowsort
SELECT ALL col1 * - 25 - 16 * col0 AS col0 FROM tab1
----
-1166
-1485
-2631

query I rowsort
SELECT + col2 * 33 AS col0 FROM tab2 WHERE - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT MAX( ALL 55 ) + + 59 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-1372
SELECT MAX ( ALL 55 ) + + 59 FROM tab0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT + 6 + - 32 DIV + 42 AS col1 FROM tab2
----
6
6
6

skipif mysql # not compatible
query I rowsort label-1373
SELECT + 6 + - 32 / + 42 AS col1 FROM tab2
----
6
6
6

query I rowsort
SELECT ALL col2 + + + 12 AS col0 FROM tab0
----
111
22
59

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT - MAX ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT col1 * 89 AS col0 FROM tab2 cor0
----
4539
5963
6853

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1380
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN CAST( - 91 AS SIGNED ) / - 99 - ( 43 + col2 ) AND 89 * - 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1380
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN CAST ( - 91 AS INTEGER ) / - 99 - ( 43 + col2 ) AND 89 * - 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1383
SELECT col2 DIV + 86 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1383
SELECT col2 / + 86 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1384
SELECT - 70 DIV - col1 FROM tab0 AS cor0
----
0
3
70

skipif mysql # not compatible
query I rowsort label-1384
SELECT - 70 / - col1 FROM tab0 AS cor0
----
0
3
70

query I rowsort
SELECT + 71 * + 52 FROM tab0 AS cor0
----
3692
3692
3692

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

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

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

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

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

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

query I rowsort
SELECT - + 85 + 57 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1392
SELECT ALL + + col1 AS col1, col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
51
0
67
-1
77
0

skipif mysql # not compatible
query II rowsort label-1392
SELECT ALL + + col1 AS col1, col0 / - col1 AS col2 FROM tab2 AS cor0
----
51
0
67
-1
77
0

query I rowsort
SELECT col1 - col0 FROM tab2 AS cor0 WHERE NOT - 91 < col2
----

query II rowsort
SELECT DISTINCT 23, col0 FROM tab1 cor0
----
23
51
23
85
23
91

query I rowsort
SELECT col0 * - col2 * - col1 FROM tab2 AS cor0
----
197120
291450
53958

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

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT COUNT ( * ) * + + 69 AS col0 FROM tab0 AS cor0
----
207

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT - CAST( + 7 AS SIGNED ) * - 19 col1 FROM tab0 AS cor0
----
133
133
133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1398
SELECT - CAST ( + 7 AS INTEGER ) * - 19 col1 FROM tab0 AS cor0
----
133
133
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL + 61 * + - ( - 90 ) + - COUNT( ALL + col0 ) * 59 FROM tab0 AS cor0
----
5313

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL + 61 * + - ( - 90 ) + - COUNT ( ALL + col0 ) * 59 FROM tab0 AS cor0
----
5313

query I rowsort
SELECT 67 + - ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN + col1 + col2 AND + col2
----
-1
-29
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + - 34 + + col0 < - 72 / + col1 - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1402
SELECT DISTINCT + MIN( CAST( NULL AS SIGNED ) ) / + 47 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT + MIN ( CAST ( NULL AS INTEGER ) ) / + 47 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT - MAX( DISTINCT - 37 ) AS col1 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT - MAX ( DISTINCT - 37 ) AS col1 FROM tab1
----
37

query I rowsort
SELECT ( - - 75 ) * + 28 * col2 FROM tab1
----
123900
142800
201600

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL < + col0
----
0

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL < + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT ( SUM( - ( ( - 58 ) ) ) ) FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-1407
SELECT ( SUM ( - ( ( - 58 ) ) ) ) FROM tab0 AS cor0
----
174

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

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

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

query I rowsort
SELECT ALL + 26 + - + col0 * - - col1 FROM tab1
----
-399
-4251
-688

query I rowsort
SELECT + 8 + - col0 AS col2 FROM tab2 AS cor0
----
-38
-56
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT + + MAX( + 48 ) AS col1 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + + MAX ( + 48 ) AS col1 FROM tab2 cor0
----
48

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

query I rowsort
SELECT ALL + col1 + - 10 FROM tab1 AS cor0
----
-5
37
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1415
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col1 * - - 16 * ( - 1 ) * 21 FROM tab1
----
65856
742224
8400

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col1 * - - 16 * ( - 1 ) * 21 FROM tab1
----
65856
742224
8400

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab2 WHERE ( - col0 * col1 + + 47 * + 41 ) IS NOT NULL
----
-67

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

query I rowsort
SELECT ALL - + col0 + - + 63 + col2 * + col1 / - col2 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col0, - col2 )
----

query I rowsort
SELECT + 33 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL ( - 33 ) - + + 74 + - + 14 + - COUNT( * ) FROM tab1
----
-124

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL ( - 33 ) - + + 74 + - + 14 + - COUNT ( * ) FROM tab1
----
-124

query III rowsort
SELECT ALL * FROM tab1 WHERE - 81 * - col2 <> + - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1425
SELECT DISTINCT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-1425
SELECT DISTINCT * FROM tab0 WHERE - CAST ( NULL AS REAL ) = NULL
----

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

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT ( - 64 ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL 9 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 col2 FROM tab1
----
425
4277
714

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 93 ) AND + 86
----
0

skipif mysql # not compatible
query I rowsort label-1431
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 93 ) AND + 86
----
0

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

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT - + COUNT ( + 16 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 19 FROM tab2 AS cor0 WHERE NULL <= - col0 * - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + 57 * col0
----

query I rowsort
SELECT DISTINCT col1 * col0 * - - col2 AS col1 FROM tab2 cor0
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 * + col1 col0 FROM tab1 AS cor0
----
1162
3901
415

query I rowsort
SELECT - 66 * + - col2 * + 33 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 25 )
----

query I rowsort
SELECT - col0 * + col1 * 60 FROM tab1 cor0
----
-25500
-256620
-42840

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

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

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

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

query I rowsort
SELECT - col2 * 47 * + col2 AS col2 FROM tab2
----
-158108
-24863
-75200

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT ALL + MAX( - - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL + MAX ( - - col1 ) FROM tab0
----
81

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

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

query I rowsort
SELECT + 5 * col1 AS col0 FROM tab0
----
105
405
5

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

query I rowsort
SELECT + col2 * - - 54 + + col2 + + - col2 * - col2 AS col0 FROM tab0 cor0
----
15246
4794
650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT COUNT( * ) + + - ( - - 83 ) AS col2 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-1450
SELECT COUNT ( * ) + + - ( - - 83 ) AS col2 FROM tab2
----
-80

query I rowsort
SELECT - 78 + - - col2 AS col1 FROM tab2
----
-20
-38
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE ( 73 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( 73 ) < NULL
----
0

query I rowsort
SELECT - 19 * col0 - col1 + - - col0 FROM tab0 AS cor0 WHERE NULL BETWEEN 82 * + - 36 AND - 79
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1456
SELECT col0 * + col1 FROM tab1 AS cor0 WHERE + CAST( + - 98 AS SIGNED ) > ( + 32 * + col0 + 41 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-1456
SELECT col0 * + col1 FROM tab1 AS cor0 WHERE + CAST ( + - 98 AS INTEGER ) > ( + 32 * + col0 + 41 + + col1 )
----

query II rowsort
SELECT + col1 + - + ( - col2 ) AS col2, 60 FROM tab1 cor0 WHERE ( 50 ) * - col2 IS NOT NULL
----
110
60
115
60
64
60

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

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

query I rowsort
SELECT 21 - 34 AS col0 FROM tab0 AS cor0
----
-13
-13
-13

query II rowsort
SELECT ALL + + 44 + - - 81 * - col0 * col0 AS col1, + col1 AS col1 FROM tab1 AS cor0
----
-210637
14
-585181
5
-670717
47

query I rowsort
SELECT DISTINCT - col2 * + 59 FROM tab1
----
-3481
-4012
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1462
SELECT DISTINCT - CAST( + + 82 AS SIGNED ) + 14 AS col1, - 71 AS col1 FROM tab0
----
-68
-71

skipif mysql # not compatible
query II rowsort label-1462
SELECT DISTINCT - CAST ( + + 82 AS INTEGER ) + 14 AS col1, - 71 AS col1 FROM tab0
----
-68
-71

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab2 WHERE - 0 * + col1 <> + + col2 AND NOT - col2 IS NULL
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + col2 - 56 AS col2 FROM tab1
----
12
3
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 - - - 89 col2 FROM tab1
----
-143
-143
-143

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1466
SELECT DISTINCT COUNT ( * ) * 13 col2 FROM tab0
----
39

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

query I rowsort
SELECT - col1 * col2 * + 56 FROM tab2 AS cor0
----
-172480
-217616
-65688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - - col0 col1, + col1 + 3 AS col2, 13 FROM tab1 AS cor0
----
9 values hashing to 00b2cc2746734e7aab552415992a802d

query I rowsort
SELECT - ( - 69 ) * - col0 - + + 97 FROM tab1 AS cor0
----
-3616
-5962
-6376

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 96 + - + col1 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-1473
SELECT 60 / col1 FROM tab2 AS cor0
----
0
0
1

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

query II rowsort
SELECT + - col1, - col0 * - 15 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 32 ) * + col0 + + + col1 IS NULL
----
-51
690
-67
1125
-77
960

query I rowsort
SELECT - ( 95 ) FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1477
SELECT DISTINCT + col0 DIV + 7 AS col2 FROM tab2 AS cor0
----
10
6
9

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT + col0 / + 7 AS col2 FROM tab2 AS cor0
----
10
6
9

query II rowsort
SELECT col1, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT - + 57 * 73 FROM tab2 AS cor0
----
-4161
-4161
-4161

query II rowsort
SELECT DISTINCT - col2 + - + col0, + col2 FROM tab1 AS cor0
----
-144
59
-147
96
-159
68

query II rowsort
SELECT ALL 37 AS col0, col2 AS col0 FROM tab1 AS cor0
----
37
59
37
68
37
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 * - ( - col2 ) - - col2 col2, - ( - col1 ) AS col0 FROM tab0 WHERE - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col1 ) * + 45 col1, col0 * - - col1 AS col0 FROM tab1
----
-2115
4277
-225
425
-630
714

onlyif mysql # DIV for integer division: 
query II rowsort label-1485
SELECT DISTINCT - 21 DIV - col1 AS col2, + 68 - + + col2 DIV - col1 FROM tab0
----
0
68
1
68
21
167

skipif mysql # not compatible
query II rowsort label-1485
SELECT DISTINCT - 21 / - col1 AS col2, + 68 - + + col2 / - col1 FROM tab0
----
0
68
1
68
21
167

query II rowsort
SELECT ALL col2 * + - 5, - col1 * - col0 AS col1 FROM tab0
----
-235
1215
-495
97
-50
1827

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT DISTINCT - 35 DIV + col2 + - 71 AS col1 FROM tab2 AS cor0
----
-71
-72

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT - 35 / + col2 + - 71 AS col1 FROM tab2 AS cor0
----
-71
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + MAX( + 2 ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1489
SELECT + MAX ( + 2 ) AS col1 FROM tab0 AS cor0
----
2

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 13 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 71 + ( + col2 ) col0, + col2 + + - col2 FROM tab0
----
118
0
170
0
81
0

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

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

query I rowsort
SELECT col2 + - col2 * - 56 FROM tab0 cor0
----
2679
5643
570

onlyif mysql # aggregate syntax: 
query II rowsort label-1496
SELECT ALL 73 * + COUNT( * ) AS col0, 61 AS col2 FROM tab2 cor0 WHERE NOT NULL = NULL
----
0
61

skipif mysql # not compatible
query II rowsort label-1496
SELECT ALL 73 * + COUNT ( * ) AS col0, 61 AS col2 FROM tab2 cor0 WHERE NOT NULL = NULL
----
0
61

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 20 + - col1 FROM tab2
----
-71
-87
-97

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT 24 - 12 DIV col2 FROM tab2
----
24
24
24

skipif mysql # not compatible
query I rowsort label-1504
SELECT 24 - 12 / col2 FROM tab2
----
24
24
24

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

skipif mysql # not compatible
query I rowsort label-1505
SELECT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL 89 * + col0 FROM tab1
----
4539
7565
8099

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

query II rowsort
SELECT - col2 * - col0 + - ( + 77 ), + col2 FROM tab1 AS cor0
----
4819
96
4938
59
6111
68

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab0 cor0
----
-27

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

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

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

query II rowsort
SELECT ALL col1 + 87 * + col2, col0 AS col2 FROM tab0 WHERE NOT col1 >= NULL
----

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

query I rowsort
SELECT DISTINCT + + 10 * - col0 FROM tab2 AS cor0
----
-460
-640
-750

query I rowsort
SELECT - + 58 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND - col2 + - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1516
SELECT ALL + + col0 DIV + 19 FROM tab1 AS cor0
----
2
4
4

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL + + col0 / + 19 FROM tab1 AS cor0
----
2
4
4

query II rowsort
SELECT DISTINCT - + 15 AS col0, col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-15
51
-15
85
-15
91

query I rowsort
SELECT + ( - 81 ) FROM tab0 cor0
----
-81
-81
-81

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT ALL + col2 DIV col2 + - col1 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL + col2 / col2 + - col1 FROM tab1
----
-13
-4
-46

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col2 - - col0 * - 31 < NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 > ( + 61 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 14 * col2 FROM tab2
----
322
560
812

query I rowsort
SELECT ALL - col1 + + 5 FROM tab0
----
-16
-76
4

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

query I rowsort
SELECT ALL - col0 * - + 41 FROM tab2
----
1886
2624
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT MIN( - - col0 ) + 25 + 45 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-1531
SELECT MIN ( - - col0 ) + 25 + 45 FROM tab0
----
85

query I rowsort
SELECT DISTINCT - 94 * + col0 + + + 61 FROM tab0 cor0
----
-1349
-8117
-9057

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT + col0 + + 2 DIV + - col1 FROM tab0 AS cor0
----
15
87
95

skipif mysql # not compatible
query I rowsort label-1536
SELECT + col0 + + 2 / + - col1 FROM tab0 AS cor0
----
15
87
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1537
SELECT * FROM tab2 WHERE + + col0 / + - 84 + + col2 * - col0 NOT BETWEEN + CAST( NULL AS SIGNED ) - + col1 AND - col0 - + - 75 * col2
----

skipif mysql # not compatible
query III rowsort label-1537
SELECT * FROM tab2 WHERE + + col0 / + - 84 + + col2 * - col0 NOT BETWEEN + CAST ( NULL AS INTEGER ) - + col1 AND - col0 - + - 75 * col2
----

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT + 53 * + - COUNT( DISTINCT + 64 ) AS col0 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-1539
SELECT + 53 * + - COUNT ( DISTINCT + 64 ) AS col0 FROM tab1 AS cor0
----
-53

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

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

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

query I rowsort
SELECT - + ( + 49 ) - + 9 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + col1 * + col2 + + 2 AS col2 FROM tab2 AS cor0
----
1175
3082
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT - COUNT( * ) + - 32 + + 97 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1544
SELECT - COUNT ( * ) + - 32 + + 97 FROM tab2 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 7 col1 FROM tab1
----
329
35
98

query II rowsort
SELECT col1, + 69 + - col1 AS col2 FROM tab2
----
51
18
67
2
77
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL SUM( DISTINCT + - 27 ) col2 FROM tab0
----
-27

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

query II rowsort
SELECT ALL col2, - 64 * + col2 AS col2 FROM tab2
----
23
-1472
40
-2560
58
-3712

query I rowsort
SELECT DISTINCT + + 60 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND - - ( + - col0 ) * 29
----
60

query I rowsort
SELECT col1 + - col1 + + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 86 - + 73 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 > + + col0
----
87
21
10

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

query I rowsort
SELECT + + col2 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL + - MIN( 52 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL + - MIN ( 52 ) FROM tab0 AS cor0
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ( + + ( 5 ) ) + + - COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1556
SELECT ( + + ( 5 ) ) + + - COUNT ( * ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT ALL + col2 + - 41 FROM tab0 cor0
----
-31
58
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - col0 + - - col1 - + col0 + + 64 * - - 88 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - col0 + - - col1 - + col0 + + 64 * - - 88 > NULL
----
0

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

query I rowsort
SELECT - col2 FROM tab0 WHERE + - 37 IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT ALL ( - + col1 ) DIV - + 17 + + + col2 + - 19 AS col0 FROM tab2
----
25
42
7

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL ( - + col1 ) / - + 17 + + + col2 + - 19 AS col0 FROM tab2
----
25
42
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT - 2 DIV 49 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT - 2 / 49 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT col2 * ( + col1 ) - 80 - + CAST( 68 AS SIGNED ) * - - 13 FROM tab0 AS cor0
----
-754
-865
2843

skipif mysql # not compatible
query I rowsort label-1563
SELECT col2 * ( + col1 ) - 80 - + CAST ( 68 AS INTEGER ) * - - 13 FROM tab0 AS cor0
----
-754
-865
2843

query I rowsort
SELECT ALL 93 + - 6 AS col1 FROM tab2 cor0
----
87
87
87

query II rowsort
SELECT DISTINCT - col1 * - col1 + - col2, col0 FROM tab1 cor0
----
-34
85
100
51
2141
91

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col1 + - col0 * + col1 * 65 * - + col1 + + - col2 + 15, + col2 * + + col2 )
----

query I rowsort
SELECT 9 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

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

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( - 67 ) IS NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1573
SELECT + - CAST( - 94 AS SIGNED ) AS col2, 5 * - - col0 + - 38 FROM tab2 AS cor0
----
94
192
94
282
94
337

skipif mysql # not compatible
query II rowsort label-1573
SELECT + - CAST ( - 94 AS INTEGER ) AS col2, 5 * - - col0 + - 38 FROM tab2 AS cor0
----
94
192
94
282
94
337

query I rowsort
SELECT ALL + + col1 + - col2 - 59 FROM tab0 AS cor0
----
-157
-25
-48

query I rowsort
SELECT + 45 / - - col0 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - col2 + + + 40 * + + 78 * - col1 + - + ( - col1 ) AND + 81 + - + 43
----

query II rowsort
SELECT - col1 * 98 AS col0, - col2 AS col0 FROM tab1
----
-1372
-96
-4606
-68
-490
-59

query I rowsort
SELECT + col0 * + 83 FROM tab2
----
3818
5312
6225

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - col1 * - 45 AND - 44 / - - col0 + - + col1 + + 48
----

query I rowsort
SELECT ALL + col0 * - - col1 FROM tab0 AS cor0
----
1215
1827
97

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

query I rowsort
SELECT - col0 * + - col1 + + + col2 AS col2 FROM tab2
----
2369
4968
5083

query II rowsort
SELECT + col0, ( + - ( - + col0 ) ) + col1 FROM tab2
----
46
97
64
141
75
142

query III rowsort
SELECT * FROM tab2 WHERE NOT 30 / + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 75 FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1585
SELECT + SUM( + col2 ) DIV + 44 AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1585
SELECT + SUM ( + col2 ) / + 44 AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1586
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * + - 66 NOT IN ( + + 89 * + + col0 / - - col0, col1 )
----

skipif mysql # not compatible
query III rowsort label-1586
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * + - 66 NOT IN ( + + 89 * + + col0 / - - col0, col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT DISTINCT - + SUM( - + 50 ) col2 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1588
SELECT DISTINCT - + SUM ( - + 50 ) col2 FROM tab1 AS cor0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

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

query II rowsort
SELECT - 49 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-49
46
-49
64
-49
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 + - col2 - + + ( - col2 ) - + 82 col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT - MIN( 94 ) AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-1593
SELECT - MIN ( 94 ) AS col1 FROM tab1
----
-94

query I rowsort
SELECT DISTINCT 87 + + 33 FROM tab0
----
120

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - col1 * col1 * 99 col1, - col2 FROM tab2
----
-257476
-23
-444353
-58
-586931
-40

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

query II rowsort
SELECT ALL + 40 * col1 AS col0, 68 AS col1 FROM tab2 AS cor0
----
2040
68
2680
68
3080
68

query I rowsort
SELECT DISTINCT col1 + 41 FROM tab0 AS cor0 WHERE NULL IS NULL OR NULL IS NULL
----
122
42
62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1601
SELECT + CAST( NULL AS SIGNED ) AS col2, SUM( + col1 ) FROM tab0
----
NULL
103

skipif mysql # not compatible
query II rowsort label-1601
SELECT + CAST ( NULL AS INTEGER ) AS col2, SUM ( + col1 ) FROM tab0
----
NULL
103

query I rowsort
SELECT ALL + - 75 - - 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT DISTINCT col1 - + - col0 AS col0 FROM tab1
----
138
65
90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, ( + col1 ) * col1 FROM tab1 AS cor0
----
-14
196
-47
2209
-5
25

query I rowsort
SELECT DISTINCT col1 * + - col2 + - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT ALL - - col2 * + 34 + + 64 + 83 FROM tab1 AS cor0
----
2153
2459
3411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab1 AS cor0 WHERE NOT + col0 * + 19 + - col0 NOT BETWEEN NULL AND + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT - ( 12 ) * + COUNT( * ) FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1609
SELECT - ( 12 ) * + COUNT ( * ) FROM tab2 cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1610
SELECT DISTINCT 87 DIV + - col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT 87 / + - col2 FROM tab0 AS cor0
----
-1
-8
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1612
SELECT DISTINCT - 23 DIV - col1 FROM tab0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT - 23 / - col1 FROM tab0
----
0
1
23

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1616
SELECT - MAX( ALL + CAST( NULL AS DECIMAL ) ) col2 FROM tab0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col2 col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-1618
SELECT col0 DIV 10 FROM tab1
----
5
8
9

skipif mysql # not compatible
query I rowsort label-1618
SELECT col0 / 10 FROM tab1
----
5
8
9

query I rowsort
SELECT ALL - col0 * - ( - col2 ) AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

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

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

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT - 14 IS NULL
----
1
21
81

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

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

query I rowsort
SELECT + col0 + - 79 FROM tab2 AS cor0
----
-15
-33
-4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT 99 + + - MIN( 95 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1628
SELECT 99 + + - MIN ( 95 ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT - + col2 * - 4 + + 11 + col1 - 11 FROM tab1 AS cor0
----
241
319
398

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 98
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT - MIN( - + 34 ) col0 FROM tab1
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1632
SELECT - MIN ( - + 34 ) col0 FROM tab1
----
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT ALL - SUM( ALL - col0 ) + - 68 FROM tab0
----
131

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL - SUM ( ALL - col0 ) + - 68 FROM tab0
----
131

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 82 <= - col0 + - col2 * col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1636
SELECT * FROM tab1 WHERE + col1 + col0 <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1636
SELECT * FROM tab1 WHERE + col1 + col0 <= - CAST ( NULL AS REAL )
----

query II rowsort
SELECT ALL + col2 * + 37 + - 52 AS col1, col1 - - col1 AS col0 FROM tab2 AS cor0
----
1428
154
2094
134
799
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT - - 3 - + ( + - 71 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1638
SELECT - - 3 - + ( + - 71 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + - col1 - 68, 91 col1 FROM tab0 AS cor0
----
-1283
91
-165
91
-1895
91

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

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

query I rowsort
SELECT ALL + col2 * + - 31 + - col1 AS col2 FROM tab2
----
-1317
-1865
-764

query I rowsort
SELECT ALL + 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1643
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT - col1 DIV 54 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1645
SELECT - col1 / 54 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL + + 93 * col1, col1 * col2 AS col0 FROM tab2 AS cor0
----
4743
1173
6231
3886
7161
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL 93 * + 95 * COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
26508

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL 93 * + 95 * COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
26508

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT ALL col1 DIV - ( + 86 ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL col1 / - ( + 86 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col2 * + + col1 AS col1 FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * + col0 * - col0 col2 FROM tab1
----
228888
635800
728728

query I rowsort
SELECT DISTINCT ( + 9 ) * + ( - - col2 ) + + 83 FROM tab2
----
290
443
605

query I rowsort
SELECT 14 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL 76 * + - 33 AS col0 FROM tab1
----
-2508
-2508
-2508

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT + 35 DIV - - 86 * - + 9 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1656
SELECT + 35 / - - 86 * - + 9 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL 74 * COUNT( * ) AS col2 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL 74 * COUNT ( * ) AS col2 FROM tab2
----
222

query I rowsort
SELECT ALL + col2 * - - col1 * 59 FROM tab2
----
181720
229274
69207

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1661
SELECT ALL CAST( col0 AS SIGNED ) * + col0 + - - col1 + col2 + col0 AS col1 FROM tab0
----
368
7687
9606

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL CAST ( col0 AS INTEGER ) * + col0 + - - col1 + col2 + col0 AS col1 FROM tab0
----
368
7687
9606

query I rowsort
SELECT 38 + - - col0 FROM tab2
----
102
113
84

query I rowsort
SELECT DISTINCT - col0 + 24 + + col2 AS col0 FROM tab2
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT DISTINCT ( - + COUNT( * ) ) - 12 + ( + 17 ) + + MAX( DISTINCT - col2 ) * - + COUNT( * ) col1 FROM tab0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1664
SELECT DISTINCT ( - + COUNT ( * ) ) - 12 + ( + 17 ) + + MAX ( DISTINCT - col2 ) * - + COUNT ( * ) col1 FROM tab0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1665
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ) - + 49, - COUNT( * ) AS col2 FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1665
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + 49, - COUNT ( * ) AS col2 FROM tab0
----
NULL
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

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

query II rowsort
SELECT ALL 6 AS col0, col2 FROM tab2
----
6
23
6
40
6
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1670
SELECT + ( - - 67 ), - CAST( NULL AS SIGNED ) col2 FROM tab0, tab0 AS cor0
----
18 values hashing to 57565cf6bdaf725f7cba016acd6f0835

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1670
SELECT + ( - - 67 ), - CAST ( NULL AS INTEGER ) col2 FROM tab0, tab0 AS cor0
----
18 values hashing to 57565cf6bdaf725f7cba016acd6f0835

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT + MAX( ALL - 74 ) AS col2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT + MAX ( ALL - 74 ) AS col2 FROM tab0 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT + col0 * - - col2 / - col1 + + - 98 FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR col0 + - col1 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1674
SELECT + col0 * - - col2 / - col1 + + - 98 FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR col0 + - col1 >= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1675
SELECT DISTINCT - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT - CAST( - AVG ( - - col1 ) AS SIGNED ) FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-1677
SELECT - CAST ( - AVG ( - - col1 ) AS INTEGER ) FROM tab1 cor0
----
22

query I rowsort
SELECT col2 * 51 AS col2 FROM tab1 AS cor0
----
3009
3468
4896

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

query I rowsort
SELECT ALL - 72 * + col2 FROM tab0
----
-3384
-7128
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-1681
SELECT ALL SUM( - col2 ) + - MIN( DISTINCT col0 ), SUM( + col1 ) AS col0 FROM tab1
----
-274
66

skipif mysql # not compatible
query II rowsort label-1681
SELECT ALL SUM ( - col2 ) + - MIN ( DISTINCT col0 ), SUM ( + col1 ) AS col0 FROM tab1
----
-274
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1682
SELECT ALL - - col1 FROM tab0 WHERE NOT col0 / + - CAST( NULL AS SIGNED ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - - col1 FROM tab0 WHERE NOT col0 / + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - - col0 * + col0 * - 95
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1684
SELECT + ( - COUNT( + - 71 ) ) DIV 39 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1684
SELECT + ( - COUNT ( + - 71 ) ) / 39 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL col1 * + + col1 + - 16 - + 2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1686
SELECT ALL CAST( - 86 AS SIGNED ) AS col0, - 62 + + col0 AS col0 FROM tab2 AS cor0
----
-86
-16
-86
13
-86
2

skipif mysql # not compatible
query II rowsort label-1686
SELECT ALL CAST ( - 86 AS INTEGER ) AS col0, - 62 + + col0 AS col0 FROM tab2 AS cor0
----
-86
-16
-86
13
-86
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1687
SELECT DISTINCT col2 DIV - col1 + + + col0 AS col2 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT col2 / - col1 + + + col0 AS col2 FROM tab1 AS cor0
----
45
74
90

query II rowsort
SELECT DISTINCT + col2 * + + ( + 44 ) + + 84 AS col1, - ( 63 ) AS col1 FROM tab0 AS cor0
----
2152
-63
4440
-63
524
-63

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < 54
----

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

query I rowsort
SELECT + + 70 * - ( - col1 ) + col1 + col0 FROM tab0 AS cor0
----
1578
168
5766

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1692
SELECT - COUNT( * ) DIV - SUM( + col0 ) * + + 73 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT - COUNT ( * ) / - SUM ( + col0 ) * + + 73 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1693
SELECT col2, - 40 DIV - + ( - + 90 ) * col0 * col0 + 13 FROM tab2
----
23
13
40
13
58
13

skipif mysql # not compatible
query II rowsort label-1693
SELECT col2, - 40 / - + ( - + 90 ) * col0 * col0 + 13 FROM tab2
----
23
13
40
13
58
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - MIN( + - 86 ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-1694
SELECT - MIN ( + - 86 ) FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT - 76 - COUNT( * ) AS col2 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-1695
SELECT - 76 - COUNT ( * ) AS col2 FROM tab2
----
-79

query I rowsort
SELECT col0 - col2 * - col1 FROM tab1
----
1395
3287
380

query I rowsort
SELECT col2 * col1 - + + col0 * + - col0 AS col2 FROM tab2
----
3289
7176
9511

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + - col0 ) + + + 99 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT 12 DIV - col1 * 41 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT 12 / - col1 * 41 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT DISTINCT - MIN( ALL + 51 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT - MIN ( ALL + 51 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL NOT IN ( + 5 ) )
----

query I rowsort
SELECT + col0 + - - col0 AS col0 FROM tab0 WHERE NOT + col0 NOT BETWEEN + col1 AND NULL
----

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

query I rowsort
SELECT ALL - 18 + - - col2 FROM tab2
----
22
40
5

query I rowsort
SELECT DISTINCT + 85 * - - col1 AS col1 FROM tab1
----
1190
3995
425

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

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

query I rowsort
SELECT ALL + + col0 * 37 + - col0 AS col1 FROM tab0 cor0
----
3132
3492
540

query I rowsort
SELECT ALL 69 + + + col2 + + col1 AS col1 FROM tab0
----
100
169
197

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-1711
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NULL <= + CAST( - - 1 AS SIGNED ) * + + 89 - + - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1711
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NULL <= + CAST ( - - 1 AS INTEGER ) * + + 89 - + - col2
----

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

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

skipif mysql # not compatible
query I rowsort label-1713
SELECT col0 - + 99 / + ( - - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL - 97 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL - 97 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT DISTINCT - 79 + + 69 * - CAST( NULL AS SIGNED ) * - 0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT - 79 + + 69 * - CAST ( NULL AS INTEGER ) * - 0 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT 1 + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1716
SELECT DISTINCT 1 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1717
SELECT ( - + col0 ) + - 73 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT ( - + col0 ) + - 73 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 10 + - 95 * col0, - 28 AS col0 FROM tab0
----
-1415
-28
-8255
-28
-9205
-28

query I rowsort
SELECT DISTINCT col0 / 66 FROM tab2 WHERE - col2 < NULL
----

query I rowsort
SELECT ALL ( - - 4 ) FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT - - COUNT( * ) * COUNT( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1721
SELECT - - COUNT ( * ) * COUNT ( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT ALL + 73 * + CAST( ( col0 ) AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
3672
6120
6552

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL + 73 * + CAST ( ( col0 ) AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
3672
6120
6552

query I rowsort
SELECT ALL - - 38 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1724
SELECT CAST( + - col1 AS SIGNED ) AS col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

skipif mysql # not compatible
query II rowsort label-1724
SELECT CAST ( + - col1 AS INTEGER ) AS col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> col1
----
0

skipif mysql # not compatible
query I rowsort label-1725
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> col1
----
0

query II rowsort
SELECT 46 AS col1, - col0 AS col0 FROM tab0 cor0
----
46
-15
46
-87
46
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT + 83 + - - col0 DIV - ( - col2 ) col1 FROM tab0 AS cor0
----
83
83
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1727
SELECT + 83 + - - col0 / - ( - col2 ) col1 FROM tab0 AS cor0
----
83
83
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT col0 + + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT col0 + + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1729
SELECT DISTINCT + col2 AS col1, + 35 DIV + ( - - ( ( - 44 ) ) ) FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-1729
SELECT DISTINCT + col2 AS col1, + 35 / + ( - - ( ( - 44 ) ) ) FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT ALL col1 * - + 49 + + col1 + col0 AS col0 FROM tab1
----
-155
-2165
-621

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT col1 * + + col0 * + 16 FROM tab2
----
37536
78848
80400

query I rowsort
SELECT DISTINCT + ( col2 ) * + + 91 + + - col1 AS col2 FROM tab1 AS cor0
----
5364
6141
8722

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1734
SELECT 28 * + ( CAST( NULL AS SIGNED ) ), col1 * - + col0 AS col0 FROM tab0 AS cor0
----
NULL
-1215
NULL
-1827
NULL
-97

skipif mysql # not compatible
query II rowsort label-1734
SELECT 28 * + ( CAST ( NULL AS INTEGER ) ), col1 * - + col0 AS col0 FROM tab0 AS cor0
----
NULL
-1215
NULL
-1827
NULL
-97

query I rowsort
SELECT ALL + - 21 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col0 AND col2 * + col2 - - + 78
----

query III rowsort
SELECT * FROM tab0 WHERE 45 * 50 = - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL + COUNT( * ) + + 87 * - ( - 83 ) FROM tab2 AS cor0
----
7224

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL + COUNT ( * ) + + 87 * - ( - 83 ) FROM tab2 AS cor0
----
7224

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 76 * - 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 90 + - - 61 * + col2 * ( + 51 ) FROM tab1 cor0
----
183639
211638
298746

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1741
SELECT ALL ( - col0 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL ( - col0 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1742
SELECT col2 DIV - + 31 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1742
SELECT col2 / - + 31 FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT ALL - 91, col0 FROM tab0 AS cor0 WHERE NOT ( - 44 ) < NULL
----

query I rowsort
SELECT - ( + ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT CAST( + + 41 AS SIGNED ) FROM tab2 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-1745
SELECT CAST ( + + 41 AS INTEGER ) FROM tab2 AS cor0
----
41
41
41

query II rowsort
SELECT 13 AS col1, 81 FROM tab0 AS cor0
----
13
81
13
81
13
81

query I rowsort
SELECT DISTINCT + col1 * + - col0 * + + col0 + + col2 AS col2 FROM tab1 AS cor0
----
-36066
-36318
-389139

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1748
SELECT * FROM tab0 AS cor0 WHERE ( - 45 * - + CAST( NULL AS SIGNED ) - - col1 * + col0 BETWEEN 50 AND - + col1 + 39 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-1748
SELECT * FROM tab0 AS cor0 WHERE ( - 45 * - + CAST ( NULL AS INTEGER ) - - col1 * + col0 BETWEEN 50 AND - + col1 + 39 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ALL - + COUNT( * ) + + + MIN( ALL + + 57 ) AS col0 FROM tab0 cor0
----
54

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL - + COUNT ( * ) + + + MIN ( ALL + + 57 ) AS col0 FROM tab0 cor0
----
54

query I rowsort
SELECT DISTINCT + 94 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + 72, - 55, 72 )
----

query I rowsort
SELECT ALL - + col0 * col1 + + col0 * + 0 AS col1 FROM tab1 WHERE NULL IN ( - col1 + col1, col0 )
----

query II rowsort
SELECT DISTINCT + - 93 * 19, + 44 + - - col0 AS col2 FROM tab2 cor0
----
-1767
108
-1767
119
-1767
90

query I rowsort
SELECT 83 * + - 21 AS col0 FROM tab2
----
-1743
-1743
-1743

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT - COUNT( + - col2 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1756
SELECT - COUNT ( + - col2 ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + AVG ( + col1 ) FROM tab1 AS cor0 WHERE ( + col0 * 40 ) <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT DISTINCT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT - SUM( DISTINCT - + col0 ) + - + MAX( 2 ) AS col0 FROM tab0 AS cor0
----
197

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - SUM ( DISTINCT - + col0 ) + - + MAX ( 2 ) AS col0 FROM tab0 AS cor0
----
197

onlyif mysql # DIV for integer division: 
query I rowsort label-1760
SELECT ALL 88 * ( + col0 ) DIV 22 * + + 86 AS col2 FROM tab1
----
17544
29240
31304

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL 88 * ( + col0 ) / 22 * + + 86 AS col2 FROM tab1
----
17544
29240
31304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1761
SELECT ALL 54 + + col1 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL 54 + + col1 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 28 * + col1 + + 40 FROM tab1
----
1356
180
432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1763
SELECT - ( 60 ) DIV - COUNT( ALL - + col1 ) + - COUNT( * ) col1 FROM tab0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1763
SELECT - ( 60 ) / - COUNT ( ALL - + col1 ) + - COUNT ( * ) col1 FROM tab0
----
17

query I rowsort
SELECT DISTINCT + 90 + + + col2 AS col0 FROM tab0
----
100
137
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1765
SELECT DISTINCT + CAST( + SUM( + col2 ) AS SIGNED ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT + CAST ( + SUM ( + col2 ) AS INTEGER ) AS col1 FROM tab1
----
223

query II rowsort
SELECT ALL + col2 AS col2, + col1 + + - col1 AS col0 FROM tab2
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL + - SUM( + + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL + - SUM ( + + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-185

query II rowsort
SELECT - + 22, - 32 - - col1 AS col0 FROM tab2 cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1769
SELECT DISTINCT - - CAST( + - ( + 88 ) AS SIGNED ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT - - CAST ( + - ( + 88 ) AS INTEGER ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * - 62 IS NULL
----
14
47
5

query I rowsort
SELECT + col1 * - + 10 AS col1 FROM tab0
----
-10
-210
-810

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN - col1 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT ALL - + col0 FROM tab0 WHERE NOT + CAST( + 39 AS SIGNED ) - 19 IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - + col0 FROM tab0 WHERE NOT + CAST ( + 39 AS INTEGER ) - 19 IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - 4 BETWEEN + - 35 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( NULL IS NULL )
----
10
47
99

query I rowsort
SELECT - col1 * + 56 AS col2 FROM tab1 AS cor0
----
-2632
-280
-784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT ALL + + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL + + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT 87 - - ( + CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1778
SELECT 87 - - ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1779
SELECT DISTINCT * FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) NOT IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-1779
SELECT DISTINCT * FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT + SUM( DISTINCT 96 ) AS col1 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT + SUM ( DISTINCT 96 ) AS col1 FROM tab0
----
96

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + col2 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT ( COUNT( * ) ) - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1783
SELECT ( COUNT ( * ) ) - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT COUNT( ALL + 24 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1784
SELECT COUNT ( ALL + 24 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col2 * col0 + + 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT - COUNT( * ) + - 34 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-1786
SELECT - COUNT ( * ) + - 34 FROM tab1
----
-37

query I rowsort
SELECT - col2 * - 51 AS col2 FROM tab2
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT - 10 * + SUM( ALL + col2 ) FROM tab0
----
-1560

skipif mysql # not compatible
query I rowsort label-1788
SELECT - 10 * + SUM ( ALL + col2 ) FROM tab0
----
-1560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + col0 * + col1 + 26 AS col0 FROM tab1 WHERE NULL NOT IN ( - col1 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT DISTINCT COUNT( DISTINCT + col2 ) * + 2 AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT COUNT ( DISTINCT + col2 ) * + 2 AS col0 FROM tab0
----
6

query I rowsort
SELECT DISTINCT col0 + - 12 FROM tab2
----
34
52
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT - ( + 9 ) + + CAST( - MIN( col1 ) AS SIGNED ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1793
SELECT - ( + 9 ) + + CAST ( - MIN ( col1 ) AS INTEGER ) FROM tab0
----
-10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - 12 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT ALL + 31 DIV 77 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL + 31 / 77 FROM tab1
----
0
0
0

query I rowsort
SELECT + 88 * - col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1232
-4136
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT - COUNT( * ) * 12 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT - COUNT ( * ) * 12 FROM tab1
----
-36

query I rowsort
SELECT col1 * + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT 1 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col2 ) NOT BETWEEN 13 AND NULL
----

query I rowsort
SELECT - ( col0 ) * + ( col1 + ( 71 ) ) AS col2 FROM tab2 AS cor0
----
-10350
-5612
-9472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1802
SELECT ALL COUNT( * ) DIV 69 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL COUNT ( * ) / 69 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - 71 + col2 FROM tab1 AS cor0 WHERE NOT ( - 46 - - 35 ) NOT BETWEEN 99 AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT - MAX( DISTINCT + col1 ) - + CAST( 26 AS SIGNED ) FROM tab0 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-1804
SELECT - MAX ( DISTINCT + col1 ) - + CAST ( 26 AS INTEGER ) FROM tab0 AS cor0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT 26 + COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-1805
SELECT 26 + COUNT ( * ) FROM tab1
----
29

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab0 WHERE NULL = ( - col1 ) + - col0
----

query I rowsort
SELECT DISTINCT + 45 - - col0 FROM tab2
----
109
120
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT COUNT( * ) + 70 AS col1 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-1808
SELECT COUNT ( * ) + 70 AS col1 FROM tab1
----
73

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 4 ) >= + col1
----

query I rowsort
SELECT DISTINCT + col2 + - 92 FROM tab2
----
-34
-52
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1813
SELECT ALL - 36 + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NULL = NULL
----
-36

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL - 36 + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL = NULL
----
-36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) NOT IN ( - col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT - SUM( ALL + ( - 99 ) ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT - SUM ( ALL + ( - 99 ) ) FROM tab1 AS cor0
----
297

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL < + col1 * col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN - col2 AND + ( 63 )
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT - + MIN( ALL + 42 ) * - 44 AS col1 FROM tab0 AS cor0
----
1848

skipif mysql # not compatible
query I rowsort label-1818
SELECT - + MIN ( ALL + 42 ) * - 44 AS col1 FROM tab0 AS cor0
----
1848

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 90 < 74 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + MIN( DISTINCT + 25 ) + 37 FROM tab1 WHERE NOT 55 * 41 - + col0 = 15 * col0
----
62

skipif mysql # not compatible
query I rowsort label-1820
SELECT + MIN ( DISTINCT + 25 ) + 37 FROM tab1 WHERE NOT 55 * 41 - + col0 = 15 * col0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col0 FROM tab0
----
15
15
15

query I rowsort
SELECT - col1 * 69 FROM tab0
----
-1449
-5589
-69

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 * - 27 ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1824
SELECT DISTINCT - col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - col2 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + 91 * + col1 FROM tab1
----
1274
4277
455

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL MIN( ALL - 4 ) * - 63 AS col2 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL MIN ( ALL - 4 ) * - 63 AS col2 FROM tab1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT COUNT( + 14 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT COUNT ( + 14 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL = ( + 41 )
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL = ( + 41 )
----
0

query I rowsort
SELECT - 67 + + col0 - col1 FROM tab0 AS cor0
----
-1
-133
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col2 col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT 76 * - ( col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1832
SELECT DISTINCT CAST( - + ( 63 ) AS SIGNED ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT CAST ( - + ( 63 ) AS INTEGER ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + 17 + col2 FROM tab2 AS cor0
----
40
57
75

query I rowsort
SELECT ALL 49 + col1 + + + col1 * 23 * col2 AS col2 FROM tab2
----
27079
70966
89494

query I rowsort
SELECT ALL 76 + col2 AS col2 FROM tab1
----
135
144
172

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT - COUNT( * ) + - - 13 AS col2 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-1836
SELECT - COUNT ( * ) + - - 13 AS col2 FROM tab1
----
10

query III rowsort
SELECT * FROM tab1 WHERE - 45 IS NULL
----

query I rowsort
SELECT ALL + ( col1 ) * + ( + 30 ) FROM tab1 WHERE NOT + - col2 / ( + ( + 31 ) ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col1 FROM tab0 AS cor0 WHERE ( col0 - + 37 ) IS NOT NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * col1 / + col2 BETWEEN - 87 AND NULL
----

query I rowsort
SELECT - 38 + col1 * 23 FROM tab0 cor0 WHERE col1 + col0 = ( + 29 + - col0 * 53 )
----

query I rowsort
SELECT ALL + col1 * - - 63 FROM tab0
----
1323
5103
63

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - - 46 NOT IN ( - col2 / 39 + + 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - COUNT( * ) - 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-1844
SELECT - COUNT ( * ) - 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col1 col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL 3 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT DISTINCT - 42 * - COUNT( * ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT - 42 * - COUNT ( * ) FROM tab0 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-1848
SELECT - COUNT( * ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1848
SELECT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL - + MIN( col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - + MIN ( col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1850
SELECT MIN( CAST( - 39 AS SIGNED ) ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1850
SELECT MIN ( CAST ( - 39 AS INTEGER ) ) FROM tab0 AS cor0
----
-39

query I rowsort
SELECT - col2 * - + col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1853
SELECT DISTINCT CAST( NULL AS SIGNED ), col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1853
SELECT DISTINCT CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT SUM( + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT SUM ( + col1 ) AS col0 FROM tab2
----
195

query II rowsort
SELECT DISTINCT + 2, col1 FROM tab1
----
2
14
2
47
2
5

query II rowsort
SELECT DISTINCT + col1, - 60 AS col0 FROM tab0
----
1
-60
21
-60
81
-60

query II rowsort
SELECT ALL + ( + col1 ), - col2 FROM tab1
----
14
-96
47
-68
5
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT + 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-1859
SELECT - 78 DIV + col0, - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1
-2346
-1
-4928
-1
-5025

skipif mysql # not compatible
query II rowsort label-1859
SELECT - 78 / + col0, - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1
-2346
-1
-4928
-1
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 81 AND 55
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col1 FROM tab0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> NULL AND + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT + 20 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1863
SELECT + 20 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT - col1 + - col2 + - 80 - CAST( - CAST( - 74 AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
-228
-271
-279

skipif mysql # not compatible
query I rowsort label-1864
SELECT - col1 + - col2 + - 80 - CAST ( - CAST ( - 74 AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
-228
-271
-279

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + + SUM( - + col2 ) + - 76 AS col1 FROM tab0 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-1866
SELECT + + SUM ( - + col2 ) + - 76 AS col1 FROM tab0 AS cor0
----
-232

query I rowsort
SELECT + - ( + - col1 ) + - 47 FROM tab1 AS cor0
----
-33
-42
0

query I rowsort
SELECT - col0 + - 80 AS col1 FROM tab2 AS cor0
----
-126
-144
-155

query I rowsort
SELECT + col2 + 16 + - col2 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT - col2 + + 33 + - ( col2 ) * - col0 + + 33 FROM tab0 AS cor0
----
724
926
9570

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 BETWEEN NULL AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT MIN( col1 ) + 10 AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT MIN ( col1 ) + 10 AS col0 FROM tab2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT ALL + SUM( ALL - 70 ) AS col1 FROM tab2 WHERE + ( + 51 ) / - - 51 + CAST( - col0 AS SIGNED ) IN ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + SUM ( ALL - 70 ) AS col1 FROM tab2 WHERE + ( + 51 ) / - - 51 + CAST ( - col0 AS INTEGER ) IN ( 39 )
----
NULL

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE ( - + ( ( - + col2 ) ) + + 51 ) <> - 72 * - + 57 + col2 / - col1
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT - MIN( - 64 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-1875
SELECT - MIN ( - 64 ) FROM tab2
----
64

query II rowsort
SELECT ALL - col0 + + - col2 + - col2, 29 AS col1 FROM tab0
----
-107
29
-109
29
-295
29

query II rowsort
SELECT col2, col1 + - col2 FROM tab0
----
10
11
47
34
99
-98

query I rowsort
SELECT - col0 - + - 13 FROM tab2
----
-33
-51
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + ( + MIN( - 91 ) ) FROM tab0 WHERE NOT ( NOT - col0 - + col0 IS NOT NULL ) OR NOT NULL IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-1879
SELECT + ( + MIN ( - 91 ) ) FROM tab0 WHERE NOT ( NOT - col0 - + col0 IS NOT NULL ) OR NOT NULL IS NULL
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT DISTINCT - COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 - 9 * col0 AS col0 FROM tab1 AS cor0
----
-445
-760
-772

query I rowsort
SELECT - col2 * 9 * + 82 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * - col0 / + 63 * + 14 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * + + col1 * + 46 / 5 * + ( + col2 ) + + 78 <= ( NULL )
----

query I rowsort
SELECT ALL - 68 AS col0 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query II rowsort
SELECT ALL + ( 49 ), 8 AS col1 FROM tab0 cor0
----
49
8
49
8
49
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - ( 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT DISTINCT - MIN( ALL + col2 ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1888
SELECT DISTINCT - MIN ( ALL + col2 ) col0 FROM tab2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT ALL col1 DIV + 20 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL col1 / + 20 FROM tab2
----
2
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT DISTINCT - 78 DIV + - col0 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT - 78 / + - col0 AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1891
SELECT ALL * FROM tab0 WHERE NOT - CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1891
SELECT ALL * FROM tab0 WHERE NOT - CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT MIN( DISTINCT + ( + 75 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1892
SELECT MIN ( DISTINCT + ( + 75 ) ) FROM tab2
----
75

query I rowsort
SELECT - col1 * - 14 AS col1 FROM tab0
----
1134
14
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, col0 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 >= ( - col2 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL >= ( NULL ) )
----

query I rowsort
SELECT ALL 37 + - - 51 AS col2 FROM tab1 AS cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - col0 * + col0 col2 FROM tab0 AS cor0
----
-210
-7482
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT COUNT( * ) + + - 61 AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT COUNT ( * ) + + - 61 AS col0 FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1900
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 74 * - - col0 + col1 + - + 41 - col2 * - col1 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1900
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 74 * - - col0 + col1 + - + 41 - col2 * - col1 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AND NULL
----

query II rowsort
SELECT - col2 AS col0, - col0 FROM tab0 AS cor0 WHERE + col0 * + 64 NOT BETWEEN + col2 - + col0 AND + + 22
----
-10
-87
-47
-15
-99
-97

query I rowsort
SELECT DISTINCT - ( + ( - - 46 ) ) + + - col2 FROM tab2 AS cor0
----
-104
-69
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT - - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1903
SELECT - - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + 78 - 53 + COUNT( * ) AS col2 FROM tab2 cor0
----
28

skipif mysql # not compatible
query I rowsort label-1905
SELECT + 78 - 53 + COUNT ( * ) AS col2 FROM tab2 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT - COUNT( * ) * + 74 + - COUNT( * ) + + - MAX( - - 77 ) col0 FROM tab1 AS cor0
----
-302

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1906
SELECT - COUNT ( * ) * + 74 + - COUNT ( * ) + + - MAX ( - - 77 ) col0 FROM tab1 AS cor0
----
-302

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT ALL col0 DIV - 58 + col1 + + col1 AS col0 FROM tab1 AS cor0
----
28
9
93

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL col0 / - 58 + col1 + + col1 AS col0 FROM tab1 AS cor0
----
28
9
93

query I rowsort
SELECT DISTINCT - - col0 + - col2 * + + col2 AS col0 FROM tab1 AS cor0
----
-3396
-4533
-9165

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - ( - - ( + ( + 17 ) ) ) + + 70 * SUM( - col2 ) AS col2 FROM tab2
----
-8487

skipif mysql # not compatible
query I rowsort label-1909
SELECT - ( - - ( + ( + 17 ) ) ) + + 70 * SUM ( - col2 ) AS col2 FROM tab2
----
-8487

query I rowsort
SELECT ALL 69 + - + 58 AS col1 FROM tab0
----
11
11
11

query I rowsort
SELECT col0 + + ( + - 18 ) AS col0 FROM tab1
----
33
67
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT COUNT( * ) - + 55 + - - COUNT( * ) AS col0 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT COUNT ( * ) - + 55 + - - COUNT ( * ) AS col0 FROM tab0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL - - col1 FROM tab0 WHERE + ( + CAST( - col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - - col1 FROM tab0 WHERE + ( + CAST ( - col0 AS INTEGER ) ) IS NULL
----

query II rowsort
SELECT ALL + 42 * + 4, ( col1 ) AS col2 FROM tab2 AS cor0
----
168
51
168
67
168
77

query I rowsort
SELECT ( ( - ( + col1 ) ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT + 24 * - COUNT( * ) FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-1916
SELECT + 24 * - COUNT ( * ) FROM tab2 cor0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT DISTINCT - 39 DIV - - 93 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - 39 / - - 93 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL 4 AS col0, col0 + col2 FROM tab1
----
4
144
4
147
4
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT + MIN( ALL + 82 ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-1919
SELECT + MIN ( ALL + 82 ) FROM tab0
----
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * - + ( 83 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col1 FROM tab1 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL - SUM( - - 42 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-378

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL - SUM ( - - 42 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-378

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT ALL + - COUNT( * ) col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1923
SELECT ALL + - COUNT ( * ) col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1924
SELECT DISTINCT - - 63 DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - - 63 / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
21

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2, col1 / - ( + + col0 ) )
----

query I rowsort
SELECT - + 46 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT + MIN( + + 80 ) AS col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-1927
SELECT + MIN ( + + 80 ) AS col0 FROM tab1 AS cor0
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 25 col0, + 86 AS col0 FROM tab1 AS cor0
----
25
86
25
86
25
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT + CAST( NULL AS SIGNED ) * - + col2 + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT + CAST ( NULL AS INTEGER ) * - + col2 + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT 9 * 57 * + COUNT( * ) FROM tab2
----
1539

skipif mysql # not compatible
query I rowsort label-1930
SELECT 9 * 57 * + COUNT ( * ) FROM tab2
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT ALL MIN( ALL + ( + + col2 ) ) * + 24 * + MAX( + col1 ) AS col2 FROM tab1
----
66552

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL MIN ( ALL + ( + + col2 ) ) * + 24 * + MAX ( + col1 ) AS col2 FROM tab1
----
66552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT - 43 * - SUM( ALL col0 ) FROM tab1 AS cor0
----
9761

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT - 43 * - SUM ( ALL col0 ) FROM tab1 AS cor0
----
9761

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL - + COUNT( * ) + - 39 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL - + COUNT ( * ) + - 39 FROM tab0 AS cor0
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-1937
SELECT - col0 DIV - col0 AS col2, col1 FROM tab2 AS cor0
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-1937
SELECT - col0 / - col0 AS col2, col1 FROM tab2 AS cor0
----
1
51
1
67
1
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT col2 * - + col0 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT 33 + + + 50 * + 49 * + col1 FROM tab0
----
198483
2483
51483

query III rowsort
SELECT ALL col0, col2 + col2 AS col2, - 10 AS col2 FROM tab1
----
9 values hashing to 49bed8b098faa2c7ab5e31d076ade288

query I rowsort
SELECT + + col2 + - col2 * col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT + col1 + - + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT MAX( col1 ) * 87 + 39 col2 FROM tab0 AS cor0
----
7086

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1944
SELECT MAX ( col1 ) * 87 + 39 col2 FROM tab0 AS cor0
----
7086

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 24 ) NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query II rowsort
SELECT ALL + col1 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT ALL + 67 AS col2 FROM tab2
----
67
67
67

query I rowsort
SELECT DISTINCT col2 + - 77 AS col1 FROM tab1
----
-18
-9
19

query I rowsort
SELECT - 66 - + + col1 FROM tab0
----
-147
-67
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1951
SELECT DISTINCT ( - col0 ) + + + CAST( - col2 AS SIGNED ) * - col2 * - - col2 AS col1, col0 AS col1 FROM tab0
----
103808
15
913
87
970202
97

skipif mysql # not compatible
query II rowsort label-1951
SELECT DISTINCT ( - col0 ) + + + CAST ( - col2 AS INTEGER ) * - col2 * - - col2 AS col1, col0 AS col1 FROM tab0
----
103808
15
913
87
970202
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT ALL + COUNT( * ) * 59 AS col0 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + COUNT ( * ) * 59 AS col0 FROM tab2
----
177

query I rowsort
SELECT - col2 FROM tab2 WHERE col0 + 86 IS NULL AND NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 * + + ( + col1 ) * - col1 AS col0, - col0 AS col1 FROM tab2
----
-237160
-64
-260362
-75
-59823
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-1955
SELECT 15, SUM( DISTINCT - 59 ) AS col1 FROM tab2
----
15
-59

skipif mysql # not compatible
query II rowsort label-1955
SELECT 15, SUM ( DISTINCT - 59 ) AS col1 FROM tab2
----
15
-59

query II rowsort
SELECT col2 AS col0, 19 * + 54 FROM tab0
----
10
1026
47
1026
99
1026

query I rowsort
SELECT DISTINCT - col0 * 51 + + 89 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1958
SELECT + 5 * + - 62 AS col0, + CAST( NULL AS SIGNED ) + col2 FROM tab2
----
-310
NULL
-310
NULL
-310
NULL

skipif mysql # not compatible
query II rowsort label-1958
SELECT + 5 * + - 62 AS col0, + CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
-310
NULL
-310
NULL
-310
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT ( - col1 ) DIV - + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1959
SELECT ( - col1 ) / - + col1 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT ALL col2 + + + 95 + - col1 * + col1 * CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
10187
201182
2279

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL col2 + + + 95 + - col1 * + col1 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
10187
201182
2279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1961
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + 37 + + 60 - col2 FROM tab1
----
1
29
38

query I rowsort
SELECT - AVG ( 56 ) FROM tab1 WHERE NULL >= NULL
----
NULL

query II rowsort
SELECT - col2 + - 1 * - ( - ( 67 ) ) * col0, - col0 AS col1 FROM tab2
----
-3105
-46
-4328
-64
-5083
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT DISTINCT COUNT( * ) * - CAST( 95 AS SIGNED ) FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT COUNT ( * ) * - CAST ( 95 AS INTEGER ) FROM tab0
----
-285

query I rowsort
SELECT ALL col0 + 84 AS col0 FROM tab0 AS cor0
----
171
181
99

query I rowsort
SELECT + + col0 AS col2 FROM tab0 WHERE NOT - col0 < 93 AND NOT NULL IN ( + col0, + 49 + - col2 * + col2, col0 * + col1 + - col1 * + col2, + col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL - MIN( 15 ) col2 FROM tab1
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1968
SELECT ALL - MIN ( 15 ) col2 FROM tab1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1969
SELECT ALL - + CAST( + 65 AS SIGNED ) col0, col1 FROM tab0 AS cor0
----
-65
1
-65
21
-65
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1969
SELECT ALL - + CAST ( + 65 AS INTEGER ) col0, col1 FROM tab0 AS cor0
----
-65
1
-65
21
-65
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col2 - - - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1971
SELECT - 33 - - 24, - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-9
NULL
-9
NULL
-9
NULL

skipif mysql # not compatible
query II rowsort label-1971
SELECT - 33 - - 24, - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-9
NULL
-9
NULL
-9
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 6 + + - ( - 72 ) IS NOT NULL
----

query I rowsort
SELECT 23 * - col1 + - 62 FROM tab0 AS cor0
----
-1925
-545
-85

query I rowsort
SELECT + col2 + - 51 * + - col1 FROM tab0 AS cor0
----
1081
150
4178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 52, col1 col1 FROM tab1 AS cor0 WHERE NOT - col0 * col2 IS NOT NULL
----

query I rowsort
SELECT + + col1 + - 44 FROM tab1 AS cor0
----
-30
-39
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 47 * + col1 / + 88
----

query II rowsort
SELECT col1 AS col0, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT - col2 * + + 83 FROM tab2
----
-1909
-3320
-4814

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT - ( 2 ) DIV + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1980
SELECT - ( 2 ) / + col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1981
SELECT + + col0 AS col0, 37 * CAST( + - 28 AS SIGNED ) * + col2 * - col1 * 60 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
72913680
64
191452800
75
241553760

skipif mysql # not compatible
query II rowsort label-1981
SELECT + + col0 AS col0, 37 * CAST ( + - 28 AS INTEGER ) * + col2 * - col1 * 60 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
72913680
64
191452800
75
241553760

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE - 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT DISTINCT ( - SUM( - col1 ) ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT ( - SUM ( - col1 ) ) AS col1 FROM tab0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1984
SELECT COUNT( * ) AS col2, SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1984
SELECT COUNT ( * ) AS col2, SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT + - col2 DIV - col2 + + 13 AS col2 FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-1987
SELECT + - col2 / - col2 + + 13 AS col2 FROM tab0 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + - - 77 col1 FROM tab1 AS cor0
----
4354
502
791

query I rowsort
SELECT 49 + - col0 * - col1 FROM tab2 cor0
----
2395
4977
5074

query I rowsort
SELECT - ( + 95 ) + - 5 FROM tab2 AS cor0
----
-100
-100
-100

query I rowsort
SELECT - ( col0 ) + - + col0 + - 35 + + col1 * + col1 + 34 * - + 81 FROM tab0 AS cor0
----
-2522
-2982
3742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0 WHERE NULL <> - col2 - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1993
SELECT ALL * FROM tab0 WHERE - ( - 58 ) >= + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1993
SELECT ALL * FROM tab0 WHERE - ( - 58 ) >= + + CAST ( NULL AS REAL )
----

query II rowsort
SELECT ALL + + col0 + - - col2 / - col2 AS col1, - 75 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col1 - - col0 + - 2 FROM tab1 AS cor0
----
35
42
78

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 BETWEEN NULL AND + - col2
----

query I rowsort
SELECT 37 + - + col0 AS col0 FROM tab2
----
-27
-38
-9

query II rowsort
SELECT DISTINCT - col0 + - col1 * + 22, - col1 AS col2 FROM tab2
----
-1168
-51
-1549
-67
-1758
-77

query I rowsort
SELECT ALL col0 * - 98 * + 20 - + col0 + - 68 AS col2 FROM tab0
----
-170675
-190285
-29483

query I rowsort
SELECT + col1 + + + 13 + + 92 FROM tab2
----
156
172
182

query II rowsort
SELECT DISTINCT - col1 + - 48 + - col2 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
-148
97
-176
15
-79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 * - 64 col0 FROM tab1 cor0
----
-1664
-1664
-1664

query I rowsort
SELECT + 96 * - + col0 FROM tab2 AS cor0
----
-4416
-6144
-7200

query I rowsort
SELECT ALL - 56 * - col0 * col2 AS col0 FROM tab0 AS cor0
----
39480
48720
537768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 * + + 27 * - col1 col1 FROM tab0 cor0
----
119070
2673
8325909

query II rowsort
SELECT ALL + 90 AS col0, - 63 AS col0 FROM tab1 AS cor0 WHERE NOT - 12 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + - 82 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2008
SELECT 41 + COUNT( DISTINCT 68 ) AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT + + 2 - + 97 <> NULL
----
41
NULL

skipif mysql # not compatible
query II rowsort label-2008
SELECT 41 + COUNT ( DISTINCT 68 ) AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT + + 2 - + 97 <> NULL
----
41
NULL

query I rowsort
SELECT ALL col2 / - col2 FROM tab1 WHERE NOT - 76 NOT BETWEEN - col1 AND ( 49 * + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2010
SELECT + CAST( NULL AS DECIMAL ) / + MAX( - col0 ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2010
SELECT + CAST ( NULL AS REAL ) / + MAX ( - col0 ) col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT ALL - col2 DIV + - col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - col2 / + - col2 AS col1 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2012
SELECT - SUM( - - col0 ) DIV + COUNT( * ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2012
SELECT - SUM ( - - col0 ) / + COUNT ( * ) FROM tab1
----
-75

query I rowsort
SELECT DISTINCT - col0 + - col0 + + + 88 AS col0 FROM tab1 WHERE + col0 + + ( + col0 ) > ( col0 / col1 )
----
-14
-82
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT + 25 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT + 25 / col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 72 * - col1 FROM tab1
----
-1008
-3384
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ALL + MAX( - + col2 ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2016
SELECT ALL + MAX ( - + col2 ) col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 23 NOT BETWEEN - - 72 AND - 30
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL IN ( - + col2 / - 47, col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT - COUNT( + + 67 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2020
SELECT - COUNT ( + + 67 ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT DISTINCT 86 + + CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
137
171
177

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT 86 + + CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
137
171
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL + CAST( NULL AS SIGNED ) + - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + CAST ( NULL AS INTEGER ) + - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - col1 + col0 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2024
SELECT CAST( NULL AS SIGNED ) AS col1, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2024
SELECT CAST ( NULL AS INTEGER ) AS col1, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT + col0 + - + 35 - - - col0 + - - CAST( NULL AS SIGNED ) + - col2 * + ( - 76 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT + col0 + - + 35 - - - col0 + - - CAST ( NULL AS INTEGER ) + - col2 * + ( - 76 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL + SUM( DISTINCT col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL + SUM ( DISTINCT col2 ) AS col0 FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 * - col0 * + ( + col1 ) + 0 col2 FROM tab1
----
-29750
-299390
-49980

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 6 + - col2 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT + 45 + + ( 1 ) DIV 39 + 55 * - col2 AS col0 FROM tab0
----
-2540
-505
-5400

skipif mysql # not compatible
query I rowsort label-2029
SELECT + 45 + + ( 1 ) / 39 + 55 * - col2 AS col0 FROM tab0
----
-2540
-505
-5400

query I rowsort
SELECT ( - ( - col1 ) ) + + 51 FROM tab1
----
56
65
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 = - ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + col0 - - ( + 27 ) FROM tab0
----
201
221
57

query I rowsort
SELECT DISTINCT 31 + + - col2 FROM tab1 AS cor0 WHERE NOT NULL < 9 + + col0
----

query II rowsort
SELECT - col0, 54 * 32 AS col0 FROM tab1 AS cor0
----
-51
1728
-85
1728
-91
1728

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - 97 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-97
-97
-97

query III rowsort
SELECT * FROM tab2 WHERE + - col1 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 8 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE - col1 + + col1 >= NULL
----

query I rowsort
SELECT 79 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * - col1 <= NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 23 <> + col2 * + 73 + - 5
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - + col1 * + col0 AS col0 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT - + 98 * + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-882

skipif mysql # not compatible
query I rowsort label-2044
SELECT - + 98 * + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT MAX( + col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2045
SELECT MAX ( + col0 ) FROM tab1 cor0
----
91

query I rowsort
SELECT ALL ( + 8 ) * + + col2 FROM tab2
----
184
320
464

query II rowsort
SELECT DISTINCT 65, col0 FROM tab2
----
65
46
65
64
65
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT col0 DIV + - col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT col0 / + - col2 AS col2 FROM tab1
----
-1
-1
0

query II rowsort
SELECT col1 AS col0, col0 AS col1 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND col1 - + col1 + - - col2
----

query I rowsort
SELECT DISTINCT + 35 * - col1 FROM tab0 AS cor0
----
-2835
-35
-735

query II rowsort
SELECT ALL - col0, col1 + 64 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL + 76 + + COUNT( * ) FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + 76 + + COUNT ( * ) FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT - 88 + 53 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT + COUNT( * ) + ( - SUM( col0 ) ) AS col2 FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-2057
SELECT + COUNT ( * ) + ( - SUM ( col0 ) ) AS col2 FROM tab0
----
-196

query II rowsort
SELECT - col0 + + + col2 * - col0 * - col1, - col1 * + col2 * col0 AS col0 FROM tab2 AS cor0
----
197056
-197120
291375
-291450
53912
-53958

query I rowsort
SELECT + + 94 + + col2 - - col0 FROM tab0 AS cor0
----
156
191
290

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2061
SELECT DISTINCT + + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + - COUNT( * ) + + 8 AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2062
SELECT + - COUNT ( * ) + + 8 AS col1 FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT - ( 29 ) AS col2 FROM tab1 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + + col0 col1, + col2 FROM tab0 AS cor0
----
-66
47
66
10
96
99

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 80, - 45 + + ( - col0 ), 52, - col1, col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2066
SELECT ALL - COUNT( * ) AS col1, + ( - MIN( - - col2 ) ) FROM tab0 AS cor0 WHERE col1 + + + 26 IN ( + col0, 57, - col0 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2066
SELECT ALL - COUNT ( * ) AS col1, + ( - MIN ( - - col2 ) ) FROM tab0 AS cor0 WHERE col1 + + + 26 IN ( + col0, 57, - col0 )
----
0
NULL

query I rowsort
SELECT + col0 * - - 18 AS col1 FROM tab0 AS cor0
----
1566
1746
270

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT 74 + + + COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT 74 + + + COUNT ( * ) FROM tab1
----
77

query I rowsort
SELECT DISTINCT + col1 - + - col1 - + ( + - col0 ) AS col0 FROM tab0
----
129
177
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT ALL AVG ( ALL - - 49 ) + + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL AVG ( ALL - - 49 ) + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT 14 * col0 DIV + col0 FROM tab0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-2071
SELECT 14 * col0 / + col0 FROM tab0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col2 col0 FROM tab2
----
117
125
74

query I rowsort
SELECT col2 * + 20 * + col2 FROM tab1
----
184320
69620
92480

query I rowsort
SELECT ALL col1 + - col1 * 26 AS col2 FROM tab1
----
-1175
-125
-350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 - + col0 col2 FROM tab0 AS cor0
----
-38
-48
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2076
SELECT + 10 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT + 10 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - - 76 * + col2 FROM tab1 AS cor0
----
4489
5215
7310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT DISTINCT - + 75 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT - + 75 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 47, col0 AS col1 FROM tab0
----
47
15
47
87
47
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT + ( - COUNT( * ) ) col1 FROM tab2 WHERE + ( + 63 ) * + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2080
SELECT DISTINCT + ( - COUNT ( * ) ) col1 FROM tab2 WHERE + ( + 63 ) * + col1 IS NULL
----
0

query I rowsort
SELECT col1 * + + 91 AS col0 FROM tab2
----
4641
6097
7007

query II rowsort
SELECT ( col0 ) AS col2, col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL col2 * 86 * col0 FROM tab1
----
421056
431290
532168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2084
SELECT ALL MAX( ALL + CAST( NULL AS SIGNED ) ) * + COUNT( ALL - 77 ) - + CAST( NULL AS SIGNED ) AS col1, 15 AS col0 FROM tab1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-2084
SELECT ALL MAX ( ALL + CAST ( NULL AS INTEGER ) ) * + COUNT ( ALL - 77 ) - + CAST ( NULL AS INTEGER ) AS col1, 15 AS col0 FROM tab1
----
NULL
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT DISTINCT + 67 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + 67 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * 54 + col2 AS col1 FROM tab1 AS cor0
----
3245
3740
5280

query II rowsort
SELECT ALL 40 / ( + col1 ) + - 56 + - 21, + ( 46 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + 94 + - col2 FROM tab0 AS cor0
----
-5
47
84

query I rowsort
SELECT + 86 + + - col0 FROM tab2
----
11
22
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + 0 * - - COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2090
SELECT + 0 * - - COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 58 AS col0, - col1 + + col2 col2 FROM tab1
----
58
21
58
54
58
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 col0 FROM tab1
----
74
74
74

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 86 BETWEEN NULL AND - col0
----

query II rowsort
SELECT ALL col2, + 44 FROM tab1 cor0
----
59
44
68
44
96
44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2096
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( 36 AS SIGNED ) NOT BETWEEN + - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2096
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( 36 AS INTEGER ) NOT BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT - 38 * + 35 FROM tab0 AS cor0
----
-1330
-1330
-1330

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2098
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR ( - col2 + - col1 ) = - CAST( - 15 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2098
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR ( - col2 + - col1 ) = - CAST ( - 15 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 * + + 11 + + 90 - + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2100
SELECT DISTINCT + CAST( + 14 AS SIGNED ) + - 60 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + CAST ( + 14 AS INTEGER ) + - 60 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT DISTINCT col2 - - 73 FROM tab0
----
120
172
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * col2 + + col1 FROM tab0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT - COUNT( - 4 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2105
SELECT - COUNT ( - 4 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + ( ( - 42 ) ) AS col0 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL + MIN( DISTINCT + 78 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + MIN ( DISTINCT + 78 ) FROM tab2 AS cor0
----
78

query I rowsort
SELECT - + 89 * + + col2 FROM tab0 AS cor0
----
-4183
-8811
-890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2109
SELECT - CAST( - ( 75 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-2109
SELECT - CAST ( - ( 75 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT - col0 * - col2 * - - 14 FROM tab0
----
12180
134442
9870

query I rowsort
SELECT DISTINCT + 13 * + + 53 AS col2 FROM tab2 AS cor0
----
689

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND - + col2
----

query II rowsort
SELECT + col1 AS col1, col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 30 / col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT 13 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ALL + COUNT( DISTINCT + - 51 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL + COUNT ( DISTINCT + - 51 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT DISTINCT - 30 * - COUNT( * ) AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT - 30 * - COUNT ( * ) AS col1 FROM tab1
----
90

query I rowsort
SELECT ALL + 97 * + col0 AS col2 FROM tab0
----
1455
8439
9409

query I rowsort
SELECT DISTINCT 89 * - - 45 AS col1 FROM tab0
----
4005

onlyif mysql # DIV for integer division: 
query I rowsort label-2121
SELECT DISTINCT + 4 DIV - 93 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT + 4 / - 93 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2122
SELECT + col0 DIV + + col2, + col1 AS col0 FROM tab0
----
0
1
0
81
8
21

skipif mysql # not compatible
query II rowsort label-2122
SELECT + col0 / + + col2, + col1 AS col0 FROM tab0
----
0
1
0
81
8
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 13 col0 FROM tab1
----
182
611
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2124
SELECT ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT + CAST( + SUM( DISTINCT + col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2125
SELECT + CAST ( + SUM ( DISTINCT + col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
156

query II rowsort
SELECT ALL col0 AS col1, 82 FROM tab2 AS cor0
----
46
82
64
82
75
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2127
SELECT - 54 AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-54
NULL
-54
NULL
-54
NULL

skipif mysql # not compatible
query II rowsort label-2127
SELECT - 54 AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-54
NULL
-54
NULL
-54
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND - + col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT DISTINCT - MAX( 88 ) FROM tab1 AS cor0 WHERE NOT NULL >= col2 * - col0 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - MAX ( 88 ) FROM tab1 AS cor0 WHERE NOT NULL >= col2 * - col0 * - col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT + COUNT( * ) DIV + ( + MAX( DISTINCT + col1 ) ) DIV - 3 + + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT + COUNT ( * ) / + ( + MAX ( DISTINCT + col1 ) ) / - 3 + + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT + col2 DIV + 85 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2132
SELECT + col2 / + 85 AS col1 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - col1 * 99 - col1 >= col2 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * - - col1 + + + 77 + col0 AS col1 FROM tab2
----
2724
4641
6070

query I rowsort
SELECT ALL - 96 - col0 FROM tab1
----
-147
-181
-187

query I rowsort
SELECT + col1 - 88 + - col1 * + + col0 * + - 23 FROM tab2
----
113333
115554
53921

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT - MAX( 33 ) - + COUNT( * ) + + SUM( ALL + col0 ) AS col2 FROM tab2
----
149

skipif mysql # not compatible
query I rowsort label-2137
SELECT - MAX ( 33 ) - + COUNT ( * ) + + SUM ( ALL + col0 ) AS col2 FROM tab2
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-2138
SELECT - col2 - - 19 DIV - col2 * + col0 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2138
SELECT - col2 - - 19 / - col2 * + col0 AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL + - col0 + + col0 * - + col0 * col1 * + col2 + - - 15 + - 31 + - + ( 94 ) + col2 FROM tab0 AS cor0
----
-1589677
-856653
-931599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + - col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
110
115
64

query II rowsort
SELECT ( + + col1 ) AS col1, col2 AS col0 FROM tab0 WHERE NOT NULL >= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( NOT + col2 * + 76 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2142
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( NOT + col2 * + 76 IS NULL )
----
0

query I rowsort
SELECT 1 * - col2 * + - 68 FROM tab2
----
1564
2720
3944

query I rowsort
SELECT - 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ALL - col0 * + + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT + col1 - 91 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-2148
SELECT + col1 - 91 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2149
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN col0 AND 1
----

skipif mysql # not compatible
query III rowsort label-2149
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN col0 AND 1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 >= 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - 12 * + col1 FROM tab2
----
-14076
-36960
-46632

query I rowsort
SELECT DISTINCT 97 FROM tab2 WHERE 91 IS NOT NULL
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT DISTINCT COUNT( ALL + + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT COUNT ( ALL + + col1 ) FROM tab0
----
3

query II rowsort
SELECT 54 AS col0, 0 + + 93 AS col0 FROM tab1
----
54
93
54
93
54
93

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IS NOT NULL AND NOT + 67 - - col1 BETWEEN NULL AND + col1 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 45 IS NULL
----

query I rowsort
SELECT + col0 + + - col1 AS col1 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * col0 IS NULL
----

query I rowsort
SELECT - ( + 15 ) FROM tab1 WHERE - col0 IS NULL
----

query II rowsort
SELECT ALL - ( - + 93 ) AS col1, col0 FROM tab2 cor0
----
93
46
93
64
93
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL + COUNT( * ) - - 43 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + COUNT ( * ) - - 43 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL col0 * - + 5 FROM tab1 AS cor0
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - COUNT( * ) + - 10 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2163
SELECT - COUNT ( * ) + - 10 FROM tab2 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT col0 * - col0 + + col1 * - + 34 AS col2 FROM tab0
----
-2979
-8283
-9443

query I rowsort
SELECT 31 AS col1 FROM tab0 WHERE ( ( NOT NULL BETWEEN - 95 AND col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 NOT BETWEEN - - 97 AND + col2 / + - 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 62 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2169
SELECT DISTINCT col0 DIV + ( - + ( - col0 ) ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2169
SELECT DISTINCT col0 / + ( - + ( - col0 ) ) col0 FROM tab0
----
1

query I rowsort
SELECT + ( - 99 ) AS col0 FROM tab0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL + ( MIN( - - 62 ) ) AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + ( MIN ( - - 62 ) ) AS col1 FROM tab2
----
62

query I rowsort
SELECT - 97 AS col0 FROM tab0 WHERE NOT + col0 * - col1 >= col1
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + + ( - + 27 ) FROM tab0 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT ALL + col1 DIV - col1 col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2174
SELECT ALL + col1 / - col1 col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 31 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT + CAST( NULL AS SIGNED ) + - + 70 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT + CAST ( NULL AS INTEGER ) + - + 70 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT + - col0 + CAST( - 85 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-100
-172
-182

skipif mysql # not compatible
query I rowsort label-2178
SELECT + - col0 + CAST ( - 85 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-100
-172
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT - + MIN( + col2 ) + - 9 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2179
SELECT - + MIN ( + col2 ) + - 9 FROM tab1 AS cor0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT col1 * col2 + - - col0 * 4 DIV + col1 AS col2 FROM tab2 AS cor0
----
1176
3083
3890

skipif mysql # not compatible
query I rowsort label-2180
SELECT col1 * col2 + - - col0 * 4 / + col1 AS col2 FROM tab2 AS cor0
----
1176
3083
3890

query I rowsort
SELECT ALL ( - col1 ) AS col1 FROM tab2 WHERE NOT - - 66 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - 91 + col0 - - 33 + - 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2183
SELECT - col2 DIV col2 AS col0, 8 * - col2 AS col0 FROM tab2
----
-1
-184
-1
-320
-1
-464

skipif mysql # not compatible
query II rowsort label-2183
SELECT - col2 / col2 AS col0, 8 * - col2 AS col0 FROM tab2
----
-1
-184
-1
-320
-1
-464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2184
SELECT ALL CAST( - 53 AS SIGNED ) + + col1 AS col0 FROM tab1
----
-39
-48
-6

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL CAST ( - 53 AS INTEGER ) + + col1 AS col0 FROM tab1
----
-39
-48
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col1 FROM tab0 cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col0 * + - 49 col1 FROM tab2 cor0
----
114954
241472
246225

query I rowsort
SELECT - ( + col2 ) * + + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL MIN( - col2 ) FROM tab1 AS cor0 WHERE NOT - 50 / - 60 - + col1 < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL MIN ( - col2 ) FROM tab1 AS cor0 WHERE NOT - 50 / - 60 - + col1 < col1
----
NULL

query I rowsort
SELECT + 29 - - - col0 AS col0 FROM tab0 AS cor0
----
-58
-68
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT DISTINCT COUNT( DISTINCT - col2 ) + + 88 AS col0 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT COUNT ( DISTINCT - col2 ) + + 88 AS col0 FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT - COUNT( * ) + + - 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-2191
SELECT - COUNT ( * ) + + - 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL COUNT( * ) * + - 20 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL COUNT ( * ) * + - 20 FROM tab2
----
-60

query I rowsort
SELECT DISTINCT - col0 + 82 AS col1 FROM tab1
----
-3
-9
31

query I rowsort
SELECT ALL 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 35 + - col2 col0, 86 col1 FROM tab0 WHERE NOT ( - col1 + + col2 < - 13 )
----
-134
86
-45
86

query II rowsort
SELECT - col1, + col0 - + 43 AS col2 FROM tab1 AS cor0
----
-14
8
-47
48
-5
42

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL = + ( + - col1 ) + - - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL - - MAX( - 71 ) + - + 88 * - 60 AS col1 FROM tab1 AS cor0
----
5209

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - - MAX ( - 71 ) + - + 88 * - 60 AS col1 FROM tab1 AS cor0
----
5209

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2199
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 26 * col2 - - + 78 IN ( - 78, - col2, + col0, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2199
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 26 * col2 - - + 78 IN ( - 78, - col2, + col0, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT DISTINCT + ( + COUNT( * ) ) * - COUNT( * ) * - 73 * COUNT( * ) FROM tab2 cor0
----
1971

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT + ( + COUNT ( * ) ) * - COUNT ( * ) * - 73 * COUNT ( * ) FROM tab2 cor0
----
1971

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2201
SELECT ALL - + 17 + + CAST( + col1 AS SIGNED ) - + col0 + + col1 * 76, col1 * - + col0 FROM tab0 WHERE NOT - col1 NOT BETWEEN - - col1 AND - col1
----

skipif mysql # not compatible
query II rowsort label-2201
SELECT ALL - + 17 + + CAST ( + col1 AS INTEGER ) - + col0 + + col1 * 76, col1 * - + col0 FROM tab0 WHERE NOT - col1 NOT BETWEEN - - col1 AND - col1
----

query I rowsort
SELECT ALL - 7 * 6 AS col1 FROM tab0
----
-42
-42
-42

query I rowsort
SELECT + col2 * - - 86 * - + col1 FROM tab1
----
-115584
-25370
-274856

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2204
SELECT + CAST( NULL AS SIGNED ) col0, col0 + - 85 AS col0 FROM tab0
----
NULL
-70
NULL
12
NULL
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2204
SELECT + CAST ( NULL AS INTEGER ) col0, col0 + - 85 AS col0 FROM tab0
----
NULL
-70
NULL
12
NULL
2

query I rowsort
SELECT ALL + col0 * - - col1 AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT ALL + COUNT( ALL + + col2 ) * - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL + COUNT ( ALL + + col2 ) * - COUNT ( * ) AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL + + 18 * - ( - COUNT( * ) ) + + - 40 AS col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL + + 18 * - ( - COUNT ( * ) ) + + - 40 AS col1 FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2208
SELECT + COUNT( * ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2208
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT DISTINCT - 28 * + col2 AS col0 FROM tab0 cor0
----
-1316
-2772
-280

query II rowsort
SELECT DISTINCT + 67 AS col0, col1 AS col0 FROM tab1 AS cor0
----
67
14
67
47
67
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2211
SELECT 49 DIV - col1 AS col1, col1 AS col2 FROM tab1
----
-1
47
-3
14
-9
5

skipif mysql # not compatible
query II rowsort label-2211
SELECT 49 / - col1 AS col1, col1 AS col2 FROM tab1
----
-1
47
-3
14
-9
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL - 96 * + ( - + SUM( DISTINCT col0 ) ) FROM tab1
----
21792

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - 96 * + ( - + SUM ( DISTINCT col0 ) ) FROM tab1
----
21792

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT - 75 * + - MAX( + + col1 ) FROM tab1
----
3525

skipif mysql # not compatible
query I rowsort label-2213
SELECT - 75 * + - MAX ( + + col1 ) FROM tab1
----
3525

query I rowsort
SELECT - col0 / 82 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 26
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 98 AND NULL
----

query I rowsort
SELECT DISTINCT - 6 + + + 37 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + 73 * - - col2 IS NULL
----

query I rowsort
SELECT + col1 * + - col1 + - col0 AS col2 FROM tab0
----
-528
-6576
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2219
SELECT CAST( NULL AS SIGNED ) / + col0 * - col2 + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT CAST ( NULL AS INTEGER ) / + col0 * - col2 + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - - col2 * - 5 AS col2 FROM tab2
----
-160
-232
-92

query II rowsort
SELECT ALL - col1 AS col2, + 87 AS col0 FROM tab2
----
-51
87
-67
87
-77
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - col2 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * col1 * - 51 * - col2 * 99 + + col2 FROM tab2 AS cor0
----
1137984070
136216994
622036840

query I rowsort
SELECT - col2 + + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < col1 - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT COUNT( DISTINCT + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2226
SELECT COUNT ( DISTINCT + col1 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN 55 - col0 AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT ALL - 22 DIV + COUNT( * ) AS col1 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - 22 / + COUNT ( * ) AS col1 FROM tab1
----
-7

query I rowsort
SELECT ( - ( 83 ) ) FROM tab0
----
-83
-83
-83

query I rowsort
SELECT - ( col1 ) * + 46 AS col0 FROM tab1 WHERE + col2 - col0 BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT 10 + 79 FROM tab1
----
89

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL BETWEEN NULL AND - 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT 35 DIV col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2233
SELECT 35 / col2 FROM tab0
----
0
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT DISTINCT + 63 DIV + 48 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT + 63 / + 48 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2235
SELECT COUNT( * ) DIV + 57 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2235
SELECT COUNT ( * ) / + 57 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2236
SELECT ( col0 ) DIV col2 AS col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2236
SELECT ( col0 ) / col2 AS col2 FROM tab0
----
0
0
8

query I rowsort
SELECT ALL - 18 + - 17 AS col0 FROM tab1 WHERE - 60 * - ( col1 ) <= NULL
----

query I rowsort
SELECT col0 * + 60 AS col1 FROM tab1
----
3060
5100
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - COUNT( * ) FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT - COUNT ( * ) FROM tab0 WHERE - col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE + ( 73 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( 44 ) FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT + 18 * + ( - ( + COUNT( * ) ) ) + - 40 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-2242
SELECT + 18 * + ( - ( + COUNT ( * ) ) ) + - 40 FROM tab0
----
-94

query I rowsort
SELECT ALL col0 * + col0 AS col1 FROM tab0 WHERE NOT NULL = ( - col0 + - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 77 = ( - 22 * 56 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND col2
----

query I rowsort
SELECT DISTINCT + ( + col1 ) * + col1 - + col2 FROM tab1
----
-34
100
2141

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT ALL 67 + - 23 DIV 75 AS col0 FROM tab1
----
67
67
67

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL 67 + - 23 / 75 AS col0 FROM tab1
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 82 + - ( - 7 - - col0 ) * + col0 ) NOT IN ( 71 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + + 35 ) BETWEEN NULL AND col2 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 / + col0 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 / + col0 + - col0 )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 * + col0 + col2 ) >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 + - col0 < 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - 70 FROM tab0
----
-1050
-6090
-6790

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 80 NOT BETWEEN 78 + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT ALL col1 DIV - ( col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL col1 / - ( col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 89 IS NULL
----

query I rowsort
SELECT + 40 * ( - col1 + + col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + 43 * col1 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-9560
2778
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2262
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col2 BETWEEN + ( 4 ) / - 99 AND ( + ( - CAST( 99 AS SIGNED ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2262
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col2 BETWEEN + ( 4 ) / - 99 AND ( + ( - CAST ( 99 AS INTEGER ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2264
SELECT DISTINCT 6 DIV + col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT 6 / + col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + + 41 FROM tab1 AS cor0
----
100
109
137

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT DISTINCT - col1 * ( + col1 ) + + 32 DIV - 69 FROM tab1 cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT - col1 * ( + col1 ) + + 32 / - 69 FROM tab1 cor0
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NULL = 39
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2268
SELECT ( COUNT( * ) ) + COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT ( COUNT ( * ) ) + COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 19 FROM tab0 AS cor0 WHERE NULL < ( - col2 ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + COUNT( * ) FROM tab0 WHERE NULL = + col0
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT + COUNT ( * ) FROM tab0 WHERE NULL = + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col1 FROM tab2 WHERE + col1 > - col1
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 WHERE + col1 > - col1
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= 47
----

query I rowsort
SELECT ALL 85 * col2 FROM tab1 WHERE NOT 44 * + col2 NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL col2 + - + col0 AS col2 FROM tab1
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT ALL 62 DIV col1 * col1 FROM tab0
----
0
42
62

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL 62 / col1 * col1 FROM tab0
----
0
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT DISTINCT - MIN( ALL - col1 ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT - MIN ( ALL - col1 ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
81

query I rowsort
SELECT DISTINCT + col0 + - + 99 - ( + 14 ) AS col1 FROM tab1
----
-22
-28
-62

query I rowsort
SELECT 12 * + 44 FROM tab0
----
528
528
528

query I rowsort
SELECT + col1 FROM tab1 WHERE + col1 <= ( + col2 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2281
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2281
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT 65 + ( 44 ) AS col1 FROM tab2 AS cor0
----
109
109
109

query I rowsort
SELECT ALL - col2 + - 71 AS col2 FROM tab2 cor0
----
-111
-129
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT SUM( + + 66 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-2284
SELECT SUM ( + + 66 ) FROM tab1
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 35 col2 FROM tab0
----
-2835
-35
-735

query I rowsort
SELECT 34 FROM tab1 AS cor0 WHERE NOT ( col2 / + col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= ( - 44 )
----

query I rowsort
SELECT DISTINCT - - 89 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2289
SELECT - + 52, - 23 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-52
-69

skipif mysql # not compatible
query II rowsort label-2289
SELECT - + 52, - 23 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-52
-69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 23 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 22, col2 - col0 * col1 AS col1 FROM tab1 cor0
----
22
-366
22
-4209
22
-618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, 58 AS col0 FROM tab0 cor0
----
-15
58
-87
58
-97
58

query I rowsort
SELECT ALL 11 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
11
11
11

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) NOT IN ( 55 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT COUNT( * ) * + 57 * + + 31 AS col0 FROM tab1
----
5301

skipif mysql # not compatible
query I rowsort label-2295
SELECT COUNT ( * ) * + 57 * + + 31 AS col0 FROM tab1
----
5301

query II rowsort
SELECT ALL - col2 * - col0, - col0 AS col2 FROM tab0
----
705
-15
870
-87
9603
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2297
SELECT - 94 DIV - 98 * + + 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2297
SELECT - 94 / - 98 * + + 95 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT DISTINCT + ( - - COUNT( - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT + ( - - COUNT ( - col1 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - col1 AS col2 FROM tab1 AS cor0 WHERE 54 = col2 + - 71
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( ( + col0 ) + 40 * col1 )
----

query I rowsort
SELECT DISTINCT - 70 * + 6 AS col1 FROM tab1
----
-420

query I rowsort
SELECT col2 * - 57 FROM tab2
----
-1311
-2280
-3306

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2305
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( + CAST( - col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2305
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( + CAST ( - col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 4 BETWEEN col0 * - 5 * - - 51 AND NULL
----

query II rowsort
SELECT DISTINCT 78, col2 AS col0 FROM tab0 cor0
----
78
10
78
47
78
99

query I rowsort
SELECT 16 - col2 FROM tab1 AS cor0
----
-43
-52
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT - + COUNT( * ) * - ( + + COUNT( * ) ) + - - 65 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2309
SELECT - + COUNT ( * ) * - ( + + COUNT ( * ) ) + - - 65 FROM tab2 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ALL COUNT( * ) * - 49 AS col1 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL COUNT ( * ) * - 49 AS col1 FROM tab2
----
-147

query I rowsort
SELECT ALL col2 + - col1 + + 85 FROM tab1
----
106
139
167

query III rowsort
SELECT * FROM tab2 WHERE + 69 NOT BETWEEN - - 11 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - + col2 col1 FROM tab0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + - + 13 col0 FROM tab0
----
23
23
23

query I rowsort
SELECT DISTINCT col1 + col2 + - + col0 FROM tab2
----
28
50
53

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL COUNT( * ) * + + ( 73 ) - - ( 26 ) col1 FROM tab1
----
245

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2317
SELECT ALL COUNT ( * ) * + + ( 73 ) - - ( 26 ) col1 FROM tab1
----
245

query I rowsort
SELECT ALL + 90 + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL ( COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL ( COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL + MIN( ALL - 2 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL + MIN ( ALL - 2 ) FROM tab2 AS cor0
----
-2

query II rowsort
SELECT + col0, col2 * + col0 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

query I rowsort
SELECT ALL - 45 * - 77 FROM tab0 AS cor0
----
3465
3465
3465

query I rowsort
SELECT + col1 + - col2 AS col2 FROM tab0 WHERE NOT NULL > col0 + + col2 + + + 99 * - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2324
SELECT DISTINCT - + 66, COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-66
9

skipif mysql # not compatible
query II rowsort label-2324
SELECT DISTINCT - + 66, COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-66
9

query I rowsort
SELECT ALL + col0 - 78 FROM tab1 AS cor0 WHERE NULL IN ( - col0 + + + col1, 20 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / - - 65 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL - MAX( + + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL - MAX ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT ALL ( + - ( + + 66 ) ) AS col2 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - - col1 * 56 FROM tab1 AS cor0
----
2632
280
784

query I rowsort
SELECT - ( col2 ) * + + 15 * - col2 AS col1 FROM tab0 cor0
----
147015
1500
33135

query I rowsort
SELECT col1 * - - ( - - col0 ) AS col1 FROM tab1
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * - col0 col2 FROM tab1
----
-1734
-2890
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT + - COUNT( * ) FROM tab1 WHERE NOT + + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2334
SELECT + - COUNT ( * ) FROM tab1 WHERE NOT + + col1 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2335
SELECT * FROM tab1 WHERE NOT + col2 / - col2 + CAST( NULL AS SIGNED ) / - - col2 * + col2 * - 20 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2335
SELECT * FROM tab1 WHERE NOT + col2 / - col2 + CAST ( NULL AS INTEGER ) / - - col2 * + col2 * - 20 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL <= - col1 + + + 97
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + - col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * + ( + col2 ) AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT + COUNT( ALL - - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT + COUNT ( ALL - - col2 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 64 col0, - col2 FROM tab1 cor0
----
64
-59
64
-68
64
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE 32 BETWEEN NULL AND - + 2 * - + 69
----
0

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE 32 BETWEEN NULL AND - + 2 * - + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT - MAX( ALL - col0 ) - + 9 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
37

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - MAX ( ALL - col0 ) - + 9 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
37

query III rowsort
SELECT * FROM tab0 WHERE ( - + ( - 13 ) ) IN ( 61 * 45 - col2 - + col1 + - 39 )
----

query III rowsort
SELECT * FROM tab2 WHERE - 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL COUNT( DISTINCT 55 ) * + + 64 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
64

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL COUNT ( DISTINCT 55 ) * + + 64 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
64

query I rowsort
SELECT - col0 + + + col2 * - col2 FROM tab2 cor0
----
-1664
-3439
-575

query I rowsort
SELECT - col0 + - - 6 AS col0 FROM tab1 AS cor0
----
-45
-79
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + ( 14 ) + col2 col0, - col2 AS col1 FROM tab1 AS cor0
----
129
-59
292
-96
726
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - - - col1 BETWEEN NULL AND ( col1 + col2 * + - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + 5 ) BETWEEN col1 * 6 AND - - col1
----

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2352
SELECT ALL col0 * + col2 + - 93 * col1 DIV + col0 FROM tab0
----
203
848
9603

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL col0 * + col2 + - 93 * col1 / + col0 FROM tab0
----
203
848
9603

query II rowsort
SELECT col2 * + 34 * - col2 - + col1 * + + col2, - 96 AS col2 FROM tab0
----
-333333
-96
-3610
-96
-78913
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL 69 - - COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL 69 - - COUNT ( * ) FROM tab2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2355
SELECT ALL + CAST( NULL AS SIGNED ) * - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 13 + - col1 + - 84 * 32 * - 2 FROM tab2 AS cor0
----
5312
5322
5338

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) <> + 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IN ( + col0, col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT ALL - 59 DIV + col1 col0 FROM tab0 AS cor0
----
-2
-59
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2359
SELECT ALL - 59 / + col1 col0 FROM tab0 AS cor0
----
-2
-59
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 30 <= NULL
----

query I rowsort
SELECT ALL - - 67 AS col0 FROM tab1 cor0
----
67
67
67

query I rowsort
SELECT ALL - ( - 17 ) FROM tab1 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2363
SELECT DISTINCT 17 AS col0, COUNT( * ) + + - 40 AS col2 FROM tab0 AS cor0
----
17
-37

skipif mysql # not compatible
query II rowsort label-2363
SELECT DISTINCT 17 AS col0, COUNT ( * ) + + - 40 AS col2 FROM tab0 AS cor0
----
17
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2364
SELECT DISTINCT + CAST( + - 52 AS DECIMAL ), - col1 FROM tab1 AS cor0 WHERE col2 <> NULL
----

skipif mysql # not compatible
query II rowsort label-2364
SELECT DISTINCT + CAST ( + - 52 AS REAL ), - col1 FROM tab1 AS cor0 WHERE col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2365
SELECT DISTINCT + + COUNT( * ) AS col1, + COUNT( * ) AS col0 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2365
SELECT DISTINCT + + COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab0 cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT + + 24 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT + + 24 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( ( - col0 ) ) * - + ( - + 49 ) AS col2 FROM tab1 AS cor0
----
2499
4165
4459

query I rowsort
SELECT + col2 * + 58 FROM tab0
----
2726
5742
580

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT COUNT( * ) * + COUNT( * ) * - ( 24 ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-2369
SELECT COUNT ( * ) * + COUNT ( * ) * - ( 24 ) FROM tab0
----
-216

query III rowsort
SELECT * FROM tab1 WHERE NOT 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 22 * col0 AS col2 FROM tab2
----
1012
1408
1650

query I rowsort
SELECT DISTINCT + col1 * - col0 + ( + col2 ) FROM tab0
----
-1168
-1817
2

query I rowsort
SELECT - col2 * - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT - CAST( + 50 AS SIGNED ) AS col0 FROM tab0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-2374
SELECT - CAST ( + 50 AS INTEGER ) AS col0 FROM tab0
----
-50
-50
-50

query I rowsort
SELECT ALL + 76 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - 75 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col0 FROM tab1 cor0
----
-70
-70
-70

query I rowsort
SELECT + col0 + + 53 + - ( - col0 ) FROM tab1 AS cor0 WHERE + 90 * + - 35 = NULL
----

query I rowsort
SELECT ALL 73 * + col2 FROM tab2 AS cor0
----
1679
2920
4234

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT COUNT( * ) - COUNT( ALL col2 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - + 3 * + col0 AND ( - col0 * col0 + - 22 + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT COUNT ( * ) - COUNT ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - + 3 * + col0 AND ( - col0 * col0 + - 22 + col2 ) )
----
0

query I rowsort
SELECT - 49 + - col2 AS col0 FROM tab0 AS cor0
----
-148
-59
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE col1 * - + 24 * + CAST( NULL AS SIGNED ) NOT IN ( + - ( col1 ) / - - CAST( + col0 AS SIGNED ) - + - col0 )
----

skipif mysql # not compatible
query I rowsort label-2382
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE col1 * - + 24 * + CAST ( NULL AS INTEGER ) NOT IN ( + - ( col1 ) / - - CAST ( + col0 AS INTEGER ) - + - col0 )
----

query I rowsort
SELECT - 53 + - 70 FROM tab2 AS cor0
----
-123
-123
-123

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2384
SELECT + col2 + CAST( + col2 AS SIGNED ) DIV - col2 - 83 FROM tab0 AS cor0
----
-37
-74
15

skipif mysql # not compatible
query I rowsort label-2384
SELECT + col2 + CAST ( + col2 AS INTEGER ) / - col2 - 83 FROM tab0 AS cor0
----
-37
-74
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT - + col0 + + + col0 DIV - col0 FROM tab2 cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-2385
SELECT - + col0 + + + col0 / - col0 FROM tab2 cor0
----
-47
-65
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 61 + ( col2 ) * - + col0 AS col0, + col2 * - col1 col2 FROM tab0
----
-644
-3807
-809
-210
-9542
-99

query I rowsort
SELECT + col2 * col2 + + + 77 + + - col0 * - col0 AS col2 FROM tab1
----
10783
11894
12982

query I rowsort
SELECT ALL + ( - + ( 31 ) ) + col2 AS col0 FROM tab2
----
-8
27
9

query I rowsort
SELECT DISTINCT + col0 + + - 14 FROM tab1
----
37
71
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2390
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT ALL - col0 DIV 7 - - col1 FROM tab2
----
45
57
68

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - col0 / 7 - - col1 FROM tab2
----
45
57
68

query I rowsort
SELECT ALL - col0 * 46 * col0 + - col0 FROM tab2 AS cor0
----
-188480
-258825
-97382

query I rowsort
SELECT DISTINCT 88 FROM tab0 AS cor0 WHERE NOT - 39 NOT BETWEEN NULL AND + col0 / + col2
----

query I rowsort
SELECT - col0 * - 87 * col0 FROM tab2 AS cor0
----
184092
356352
489375

query I rowsort
SELECT ALL + - 78 * + + 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 181a3ae34e57072d6cefde6040a62f37

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT MAX( DISTINCT - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2396
SELECT MAX ( DISTINCT - - col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2397
SELECT ALL - 50 DIV COUNT( * ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL - 50 / COUNT ( * ) FROM tab0 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col2 FROM tab1 AS cor0
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2399
SELECT DISTINCT col2 * 7 DIV 60 AS col2 FROM tab2 AS cor0
----
2
4
6

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT col2 * 7 / 60 AS col2 FROM tab2 AS cor0
----
2
4
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col0 col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT ( ( + MIN( - 92 ) ) ) + SUM( DISTINCT + 37 ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2402
SELECT ( ( + MIN ( - 92 ) ) ) + SUM ( DISTINCT + 37 ) FROM tab0 AS cor0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2403
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) + 54 + + 20 * CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + 54 + + 20 * CAST ( NULL AS INTEGER ) IS NULL
----
0

query II rowsort
SELECT DISTINCT 10, col2 FROM tab1
----
10
59
10
68
10
96

query I rowsort
SELECT - + ( + 55 ) * 58 + 6 AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - ( 9 ) > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 WHERE - col0 + 13 < + + 39 * - + 26 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col1 col0, - col0 AS col0 FROM tab2
----
1173
-46
3080
-64
3886
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT ALL + - col2 DIV - - 16 FROM tab1 AS cor0
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL + - col2 / - - 16 FROM tab1 AS cor0
----
-3
-4
-6

query II rowsort
SELECT 70 AS col1, ( - 43 ) AS col0 FROM tab0 AS cor0
----
70
-43
70
-43
70
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-2411
SELECT DISTINCT + col1 AS col2, + 69 DIV - ( - + col1 ) - 66 AS col1 FROM tab0 AS cor0
----
1
3
21
-63
81
-66

skipif mysql # not compatible
query II rowsort label-2411
SELECT DISTINCT + col1 AS col2, + 69 / - ( - + col1 ) - 66 AS col1 FROM tab0 AS cor0
----
1
3
21
-63
81
-66

query I rowsort
SELECT ALL - - 92 + - col0 AS col1 FROM tab2 AS cor0
----
17
28
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT + - col1 * ( + 87 ) + + CAST( - col2 AS SIGNED ) + + ( - col0 ) * + - 2 - - col0 + - ( + - 16 ) + - col1 * col1 FROM tab1 AS cor0
----
-1341
-248
-6077

skipif mysql # not compatible
query I rowsort label-2413
SELECT + - col1 * ( + 87 ) + + CAST ( - col2 AS INTEGER ) + + ( - col0 ) * + - 2 - - col0 + - ( + - 16 ) + - col1 * col1 FROM tab1 AS cor0
----
-1341
-248
-6077

query I rowsort
SELECT DISTINCT + AVG ( ALL - col0 ) FROM tab0 cor0 WHERE + 9 NOT BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT DISTINCT + + col2 * + col1, + col2 + + - 72 * + col1 AS col0 FROM tab2 AS cor0
----
1173
-3649
3080
-5504
3886
-4766

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 89 * + + 53 * - 38 * - 21 + - 7 - + - 37 - - col1 col2, - 41 AS col0 FROM tab2 AS cor0
----
3764247
-41
3764263
-41
3764273
-41

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 cor0 WHERE NOT - col1 * + col1 >= - col1
----
51
85
91

query I rowsort
SELECT + col2 * + + col2 * - col1 AS col2 FROM tab1 cor0
----
-129024
-17405
-217328

query II rowsort
SELECT - ( + col1 ) AS col1, + col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT - + 46 AS col2 FROM tab0 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - - COUNT( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - - COUNT ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2422
SELECT DISTINCT + COUNT( * ) * 36 + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + COUNT ( * ) * 36 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 cor0
----
NULL

query I rowsort
SELECT ALL col0 + - - 62 FROM tab1
----
113
147
153

query III rowsort
SELECT ALL * FROM tab0 WHERE + 56 >= + col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2425
SELECT DISTINCT + COUNT( * ) DIV + 60 AS col1 FROM tab1, tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT + COUNT ( * ) / + 60 AS col1 FROM tab1, tab2 cor0
----
0

query I rowsort
SELECT DISTINCT ( col0 ) * - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL COUNT( + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL COUNT ( + col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT - MAX( - ( - + 22 ) ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT - MAX ( - ( - + 22 ) ) FROM tab2
----
-22

query II rowsort
SELECT col1 AS col0, col2 + - col0 FROM tab1
----
14
45
47
-23
5
-26

query II rowsort
SELECT 62, col0 + + 0 + + col1 * + - col0 AS col2 FROM tab0
----
62
-1200
62
-1740
62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT SUM( ALL ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2431
SELECT SUM ( ALL ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT MIN( 20 ) col1 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2432
SELECT MIN ( 20 ) col1 FROM tab1 AS cor0
----
20

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab1 cor0
----
-52

query I rowsort
SELECT DISTINCT + col1 * - ( + - 15 ) AS col1 FROM tab2
----
1005
1155
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL + MIN( ALL ( - 59 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + MIN ( ALL ( - 59 ) ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN + + col0 AND NULL
----

query II rowsort
SELECT col0 * - col1, col2 AS col0 FROM tab0 cor0
----
-1215
47
-1827
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col1 col1 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT + 60 * col2 FROM tab0
----
2820
5940
600

query I rowsort
SELECT ALL + 30 * - + col2 + - ( + col1 ) AS col1 FROM tab0
----
-1491
-2971
-321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 28 ) col2 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT 80 + + col1 * - col1 AS col0 FROM tab1
----
-116
-2129
55

query I rowsort
SELECT 70 + - ( + col1 ) + - col0 FROM tab2
----
-27
-71
-72

query I rowsort
SELECT DISTINCT + col1 * + 73 FROM tab0
----
1533
5913
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 + col2 col0 FROM tab1
----
154
163
191

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT - - ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2446
SELECT - - ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NOT + - 97 + - + col1 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 - col0 + col0 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL - - col1, - 35 + 23 AS col1 FROM tab0 cor0
----
1
-12
21
-12
81
-12

query I rowsort
SELECT ALL + col1 - ( + 84 ) + - - 63 * col1 AS col1 FROM tab2 AS cor0
----
3180
4204
4844

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 < NULL
----

query II rowsort
SELECT DISTINCT + + 10, - col2 * col2 AS col2 FROM tab2 AS cor0
----
10
-1600
10
-3364
10
-529

query I rowsort
SELECT DISTINCT - 53 FROM tab1 AS cor0 WHERE NOT 36 + + ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT + - col2 + - + 35 AS col1 FROM tab0 AS cor0
----
-134
-45
-82

query II rowsort
SELECT + + 48 AS col0, col1 FROM tab1 cor0
----
48
14
48
47
48
5

query I rowsort
SELECT DISTINCT - ( 67 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 34 + + 20 NOT BETWEEN NULL AND NULL OR col2 IS NOT NULL
----
-67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 NOT IN ( + + ( 81 ) * + col0 - - col1, - col1, + - 86, ( + - 81 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2458
SELECT DISTINCT - CAST( + + MAX( ALL col1 ) AS SIGNED ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT - CAST ( + + MAX ( ALL col1 ) AS INTEGER ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT COUNT( - ( - + col2 ) ) * + 71 AS col1 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-2459
SELECT COUNT ( - ( - + col2 ) ) * + 71 AS col1 FROM tab1
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT ALL - + 45, + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-45
3

skipif mysql # not compatible
query II rowsort label-2460
SELECT ALL - + 45, + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-45
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + col2 + - col1 FROM tab1 cor0
----
3476
4577
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - - 86 * - COUNT( ALL - col0 ) col0 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2463
SELECT - - 86 * - COUNT ( ALL - col0 ) col0 FROM tab0 AS cor0
----
-258

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col0 col2 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT ALL + col2 + + 92 FROM tab0 AS cor0
----
102
139
191

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT - - ( - + MAX( + col2 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT - - ( - + MAX ( + col2 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-102

query I rowsort
SELECT DISTINCT + col0 + 58 AS col2 FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT ALL - + 49 + + 88 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT COUNT( DISTINCT 3 ) * + 33 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-2470
SELECT COUNT ( DISTINCT 3 ) * + 33 FROM tab0
----
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= 48 * - - col2 * - col0 * + 73
----

query I rowsort
SELECT 57 * - - col1 * - col2 AS col0 FROM tab0
----
-11970
-216999
-5643

onlyif mysql # aggregate syntax: 
query II rowsort label-2473
SELECT COUNT( * ) * + 95 * - COUNT( col0 ) AS col2, 75 FROM tab0
----
-855
75

skipif mysql # not compatible
query II rowsort label-2473
SELECT COUNT ( * ) * + 95 * - COUNT ( col0 ) AS col2, 75 FROM tab0
----
-855
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2474
SELECT + - 82 DIV + col0 AS col2, 71 AS col0 FROM tab0 AS cor0
----
-5
71
0
71
0
71

skipif mysql # not compatible
query II rowsort label-2474
SELECT + - 82 / + col0 AS col2, 71 AS col0 FROM tab0 AS cor0
----
-5
71
0
71
0
71

query I rowsort
SELECT col0 - + - 38 FROM tab1 AS cor0
----
123
129
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2476
SELECT col0 DIV + col1 - - - 20 - + col0 FROM tab0 AS cor0
----
-103
-20
-35

skipif mysql # not compatible
query I rowsort label-2476
SELECT col0 / + col1 - - - 20 - + col0 FROM tab0 AS cor0
----
-103
-20
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT + CAST( - 9 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-2477
SELECT + CAST ( - 9 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 73 * + + col1 + + + 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 37 AS col0 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT + 68 * - 35 FROM tab0 AS cor0
----
-2380

query II rowsort
SELECT - - col2, - 44 AS col0 FROM tab0 cor0
----
10
-44
47
-44
99
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL - SUM( 52 ) FROM tab1 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL - SUM ( 52 ) FROM tab1 cor0
----
-156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT ( - - SUM( + 97 ) ) FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT ( - - SUM ( + 97 ) ) FROM tab2 AS cor0
----
291

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL - COUNT( ALL - + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - COUNT ( ALL - + col0 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 12 / col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT ALL col0 DIV + 57 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL col0 / + 57 FROM tab0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2489
SELECT - CAST( NULL AS SIGNED ) * - ( col1 ) * - 0 * - col1 AS col1 FROM tab1 WHERE NOT - col0 * - - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT - CAST ( NULL AS INTEGER ) * - ( col1 ) * - 0 * - col1 AS col1 FROM tab1 WHERE NOT - col0 * - - col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE NOT col0 <= - col2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - col2 ) col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2492
SELECT - COUNT( * ), + 26 DIV + 88 col2 FROM tab0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2492
SELECT - COUNT ( * ), + 26 / + 88 col2 FROM tab0
----
-3
0

onlyif mysql # DIV for integer division: 
query III rowsort label-2493
SELECT - 86 AS col2, ( col0 ) DIV + 5 AS col2, col2 AS col2 FROM tab0
----
9 values hashing to 882294b7981b0ff278b77853ea1baeeb

skipif mysql # not compatible
query III rowsort label-2493
SELECT - 86 AS col2, ( col0 ) / + 5 AS col2, col2 AS col2 FROM tab0
----
9 values hashing to 882294b7981b0ff278b77853ea1baeeb

query II rowsort
SELECT - col0 AS col2, col1 + 93 FROM tab0 AS cor0
----
-15
174
-87
114
-97
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT - + COUNT( DISTINCT - + ( + - 69 ) ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2495
SELECT - + COUNT ( DISTINCT - + ( + - 69 ) ) AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL 62 * col0 + 78 AS col1 FROM tab2 AS cor0
----
2930
4046
4728

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT - MIN( ALL - - 91 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-91

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT - MIN ( ALL - - 91 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-91

query I rowsort
SELECT ALL + - 82 AS col0 FROM tab2 cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT MIN( ALL col1 ) FROM tab2 AS cor0 WHERE col2 BETWEEN - col1 AND + col0
----
51

skipif mysql # not compatible
query I rowsort label-2499
SELECT MIN ( ALL col1 ) FROM tab2 AS cor0 WHERE col2 BETWEEN - col1 AND + col0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2500
SELECT CAST( NULL AS DECIMAL ) + + + 18 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT CAST ( NULL AS REAL ) + + + 18 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + - col0 <> NULL AND ( 68 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 68 + - ( col1 ) * 43 AS col0 FROM tab2
----
-2125
-2813
-3243

query I rowsort
SELECT 77 * 26 * - 63 + - + col1 FROM tab2
----
-126177
-126193
-126203

query I rowsort
SELECT + 37 FROM tab0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT + col1 + + col2 + + ( - col2 ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - col1 - 98 + + - ( - col1 ) - col2 FROM tab0
----
-108
-145
-197

query I rowsort
SELECT - 1 + col1 AS col0 FROM tab0
----
0
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT MAX( - 92 ) AS col0 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT MAX ( - 92 ) AS col0 FROM tab2
----
-92

query I rowsort
SELECT DISTINCT - + col1 - - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL - 21 * + 18 AS col2 FROM tab0 AS cor0
----
-378
-378
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT MIN( DISTINCT + 68 ) AS col2 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2511
SELECT MIN ( DISTINCT + 68 ) AS col2 FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2512
SELECT COUNT( col1 ) * 68 DIV COUNT( DISTINCT col1 ) * + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
204
3

skipif mysql # not compatible
query II rowsort label-2512
SELECT COUNT ( col1 ) * 68 / COUNT ( DISTINCT col1 ) * + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
204
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 53 ) + + + col1 NOT BETWEEN - + col0 AND + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2514
SELECT - 74 - - + MAX( - - 57 ) DIV + ( 95 ) * - SUM( col1 ) * + 87 AS col0 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-2514
SELECT - 74 - - + MAX ( - - 57 ) / + ( 95 ) * - SUM ( col1 ) * + 87 AS col0 FROM tab2
----
-74

query I rowsort
SELECT 15 - - + ( - ( - - col2 ) ) AS col0 FROM tab1
----
-44
-53
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - 61 ) AS col0, col1 col0 FROM tab1
----
61
14
61
47
61
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT COUNT( ALL + ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2517
SELECT COUNT ( ALL + ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT + COUNT( * ) * - 40 + COUNT( * ) AS col2 FROM tab2 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + COUNT ( * ) * - 40 + COUNT ( * ) AS col2 FROM tab2 cor0
----
-117

query I rowsort
SELECT ( + col0 ) * - 64 FROM tab2 AS cor0
----
-2944
-4096
-4800

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL + COUNT( * ) * - + MIN( - - col0 ) col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2522
SELECT ALL + COUNT ( * ) * - + MIN ( - - col0 ) col0 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT DISTINCT + - col2 * + + col0 + + 95 FROM tab0 AS cor0
----
-610
-775
-9508

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT + ( - 16 ) DIV - + col2 * col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT + ( - 16 ) / - + col2 * col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT DISTINCT 59 DIV + 57 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT 59 / + 57 AS col0 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT - col0 DIV + + 11 FROM tab2
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-2526
SELECT - col0 / + + 11 FROM tab2
----
-4
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col0 FROM tab2 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col1 * - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1 * + + col1 - + col2
----

query I rowsort
SELECT DISTINCT - col1 + ( 44 ) * + col1 + + - col2 + ( 63 ) - - col0 * + 41 + - col1 FROM tab0 AS cor0
----
3983
4033
4502

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2530
SELECT ALL 66 + 23 + col2 + - ( CAST( + - col2 AS SIGNED ) ) - CAST( NULL AS DECIMAL ) * - 10 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL 66 + 23 + col2 + - ( CAST ( + - col2 AS INTEGER ) ) - CAST ( NULL AS REAL ) * - 10 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL MIN( + - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL MIN ( + - col0 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT + ( - 69 ) + + + col2 * - + col2 AS col1 FROM tab2 AS cor0
----
-1669
-3433
-598

query II rowsort
SELECT DISTINCT - - col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL - COUNT( * ) + + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL - COUNT ( * ) + + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2537
SELECT * FROM tab2 cor0 WHERE + col2 * - + CAST( + + 34 AS SIGNED ) NOT BETWEEN - + 18 AND + col2 + + 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2537
SELECT * FROM tab2 cor0 WHERE + col2 * - + CAST ( + + 34 AS INTEGER ) NOT BETWEEN - + 18 AND + col2 + + 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2538
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----
0

query I rowsort
SELECT - col2 + + - 18 FROM tab2 cor0
----
-41
-58
-76

query I rowsort
SELECT + + ( - 46 ) AS col1 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL + 44 FROM tab2 AS cor0 WHERE ( + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT + + ( - COUNT( * ) ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2542
SELECT + + ( - COUNT ( * ) ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * col1 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab2 AS cor0 WHERE NOT - 2 <= - + col1
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NULL <= - col1
----

query II rowsort
SELECT ALL col2, col0 * + col2 FROM tab2 AS cor0
----
23
1058
40
2560
58
4350

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 IN ( - col2, - col2 - 13, + col2 )
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE 1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + 30 + + col0 AS col0 FROM tab1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2550
SELECT ALL col1 + - ( ( CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL col1 + - ( ( CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 22 * - + col0 * + col1 FROM tab0
----
2134
26730
40194

query I rowsort
SELECT ALL + + ( - col0 ) AS col2 FROM tab1 WHERE + + 29 / col0 * - 62 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + 33 - COUNT( - col2 ) col2 FROM tab1
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2553
SELECT + 33 - COUNT ( - col2 ) col2 FROM tab1
----
30

query I rowsort
SELECT + col0 - ( - - col2 ) + 63 AS col1 FROM tab0 AS cor0
----
140
31
61

query I rowsort
SELECT DISTINCT - col1 * + col1 + - ( + col0 ) FROM tab1 AS cor0
----
-110
-2300
-247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2556
SELECT DISTINCT - + 53 DIV + + COUNT( * ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT - + 53 / + + COUNT ( * ) FROM tab0 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL MAX( DISTINCT - 59 ) AS col2 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL MAX ( DISTINCT - 59 ) AS col2 FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2558
SELECT DISTINCT 46 AS col1, COUNT( * ) AS col0 FROM tab2
----
46
3

skipif mysql # not compatible
query II rowsort label-2558
SELECT DISTINCT 46 AS col1, COUNT ( * ) AS col0 FROM tab2
----
46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT MIN( ALL - - 19 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
19

skipif mysql # not compatible
query I rowsort label-2559
SELECT MIN ( ALL - - 19 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT SUM( 21 ) AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT SUM ( 21 ) AS col0 FROM tab2
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 cor0 WHERE - col1 NOT BETWEEN - - col0 AND 39
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2562
SELECT ALL + col1 * - col2 FROM tab0 AS cor0 WHERE 84 NOT BETWEEN ( - CAST( - - col2 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + col1 * - col2 FROM tab0 AS cor0 WHERE 84 NOT BETWEEN ( - CAST ( - - col2 AS INTEGER ) ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2563
SELECT + col1, ( col0 ) * - - col1 - + CAST( + ( - 28 ) AS SIGNED ) * - + col0 + + 28 AS col2 FROM tab1 AS cor0
----
14
-686
47
1757
5
-1927

skipif mysql # not compatible
query II rowsort label-2563
SELECT + col1, ( col0 ) * - - col1 - + CAST ( + ( - 28 ) AS INTEGER ) * - + col0 + + 28 AS col2 FROM tab1 AS cor0
----
14
-686
47
1757
5
-1927

query II rowsort
SELECT col1, - col0 FROM tab1 cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT DISTINCT 62 * - 15 + COUNT( * ) * + MAX( - col2 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1104

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT 62 * - 15 + COUNT ( * ) * + MAX ( - col2 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT + COUNT( - - col2 ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2566
SELECT DISTINCT + COUNT ( - - col2 ) col1 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> col0 * + col2
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT - col0 + + 97 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 61 * + + ( + + 55 ) FROM tab2
----
3355
3355
3355

onlyif mysql # aggregate syntax: 
query II rowsort label-2571
SELECT + MIN( - 39 ) col0, 19 FROM tab2
----
-39
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2571
SELECT + MIN ( - 39 ) col0, 19 FROM tab2
----
-39
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT col2 * - 56 * - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT col2 * - 56 * - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - ( + + col1 ) AS col2, col1 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT 70 AS col2 FROM tab2 WHERE NOT - 6 * + col1 < col0
----

query I rowsort
SELECT DISTINCT 3 * - - col1 FROM tab2
----
153
201
231

query I rowsort
SELECT - + 54 * + col1 FROM tab0 AS cor0 WHERE NOT col1 - + + 80 NOT IN ( - - 58 + - + 35 * + col2 + + col1 + 46, col0 )
----

query I rowsort
SELECT DISTINCT + col2 * + + col1 + + - 91 AS col1 FROM tab2 cor0
----
1082
2989
3795

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT COUNT( * ) + - COUNT( DISTINCT col1 ) * 95 * + - 85 AS col0 FROM tab0 AS cor0
----
24228

skipif mysql # not compatible
query I rowsort label-2578
SELECT COUNT ( * ) + - COUNT ( DISTINCT col1 ) * 95 * + - 85 AS col0 FROM tab0 AS cor0
----
24228

query I rowsort
SELECT DISTINCT + + col1 + + + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL + - COUNT( * ) + - - 92 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
83

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL + - COUNT ( * ) + - - 92 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
83

query II rowsort
SELECT ALL + - col1, col1 AS col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT + col1 * - col2 - + - col1, + col0 + - + col1 AS col0 FROM tab0 AS cor0
----
-189
66
-3726
-66
-98
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL + COUNT( - 14 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL + COUNT ( - 14 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 57 * - + ( + col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-2599
-3608
-4217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2585
SELECT ALL - + CAST( + 12 AS SIGNED ) + 82 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL - + CAST ( + 12 AS INTEGER ) + 82 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT + col0 + + - col1 + + col1 DIV 36 col1 FROM tab0
----
-64
66
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2586
SELECT + col0 + + - col1 + + col1 / 36 col1 FROM tab0
----
-64
66
96

query I rowsort
SELECT DISTINCT 8 + - col0 FROM tab1
----
-43
-77
-83

query I rowsort
SELECT + 99 * - + col0 * col1 + + col0 - - col2 FROM tab0
----
-120223
-180776
-9407

query I rowsort
SELECT ALL - col2 + + ( col0 ) * + col2 AS col2 FROM tab0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query II rowsort label-2590
SELECT ALL COUNT( * ) AS col2, 58 FROM tab2
----
3
58

skipif mysql # not compatible
query II rowsort label-2590
SELECT ALL COUNT ( * ) AS col2, 58 FROM tab2
----
3
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2592
SELECT DISTINCT - + COUNT( * ) col1, COUNT( * ) * - + CAST( ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2592
SELECT DISTINCT - + COUNT ( * ) col1, COUNT ( * ) * - + CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT - MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT - MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2595
SELECT + ( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT + ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 24 AS col0 FROM tab0 cor0
----
24
24
24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 85 <> + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 92 AS col2 FROM tab2 cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT - COUNT( ALL - col2 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2599
SELECT - COUNT ( ALL - col2 ) col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 87 * + col0 FROM tab2
----
4002
5568
6525

query II rowsort
SELECT DISTINCT - col1 AS col1, 44 * + + 43 FROM tab0
----
-1
1892
-21
1892
-81
1892

query I rowsort
SELECT DISTINCT col2 * - col1 * - - col0 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT - 60 * + col2 AS col1 FROM tab0
----
-2820
-5940
-600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT ALL CAST( - - col2 AS SIGNED ) * + col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL CAST ( - - col2 AS INTEGER ) * + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2605
SELECT - COUNT( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT - COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2606
SELECT * FROM tab0 WHERE - + CAST( 68 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2606
SELECT * FROM tab0 WHERE - + CAST ( 68 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT ALL - CAST( NULL AS SIGNED ) - + 67 + + 28 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - CAST ( NULL AS INTEGER ) - + 67 + + 28 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + ( - + col0 ), + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - 65 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 41 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
41
41
41

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 * 99 * - 23 + - 7 * + col1 = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 82 col1 FROM tab0
----
-1
-61
-81

query I rowsort
SELECT col0 - + col2 * + - col1 + - col2 AS col1 FROM tab0
----
287
3775
97

query I rowsort
SELECT + + col1 AS col2 FROM tab0 WHERE NOT + col0 IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 2 * - 53 * - col1 - 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT ALL + - COUNT( + + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL + - COUNT ( + + col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 32 AS col1 FROM tab2 cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT DISTINCT COUNT( * ) * + - 20 AS col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT COUNT ( * ) * + - 20 AS col1 FROM tab0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT - col1 + - col0 + col0 DIV + col2 + - col1 * - - 12 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-149
-233
-701

skipif mysql # not compatible
query I rowsort label-2620
SELECT - col1 + - col0 + col0 / + col2 + - col1 * - - 12 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-149
-233
-701

query I rowsort
SELECT - 45 * + + 84 FROM tab1
----
-3780
-3780
-3780

query II rowsort
SELECT + + col2, 76 FROM tab0 cor0
----
10
76
47
76
99
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 13, 91 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
13
91
13
91
13
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT MAX( ALL - ( ( + - col1 ) ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT MAX ( ALL - ( ( + - col1 ) ) ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 BETWEEN col1 AND NULL
----

query II rowsort
SELECT DISTINCT - col1, col1 AS col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 21 AS col1, col1 col0 FROM tab1 AS cor0
----
21
14
21
47
21
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + MIN( ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + MIN ( ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL col0 * + col0 AS col1 FROM tab0 AS cor0 WHERE + 57 + + - col2 * + col1 NOT BETWEEN - + col1 * col0 + + 33 * + col0 * + - col1 AND - col0
----
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 + col2 * col2 * col0 col2 FROM tab2
----
102459
24393
252359

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT 20 * + + SUM( DISTINCT - 18 ) FROM tab0
----
-360

skipif mysql # not compatible
query I rowsort label-2632
SELECT 20 * + + SUM ( DISTINCT - 18 ) FROM tab0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT - COUNT( * ) + + 13 FROM tab1 WHERE NOT col0 BETWEEN col1 * + col2 + - + 83 AND NULL
----
10

skipif mysql # not compatible
query I rowsort label-2633
SELECT - COUNT ( * ) + + 13 FROM tab1 WHERE NOT col0 BETWEEN col1 * + col2 + - + 83 AND NULL
----
10

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2634
SELECT col2 DIV - col1, CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
-99
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-2634
SELECT col2 / - col1, CAST ( NULL AS REAL ) AS col2 FROM tab0
----
-99
NULL
0
NULL
0
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 61 * col0 + - 56 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT ALL ( + COUNT( * ) ) * - + 23 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL ( + COUNT ( * ) ) * - + 23 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT - 32 + + COUNT( * ) * - COUNT( * ) FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT - 32 + + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-2638
SELECT ALL - 99 * 3 AS col1, - 20 + SUM( ALL + 5 ) FROM tab0
----
-297
-5

skipif mysql # not compatible
query II rowsort label-2638
SELECT ALL - 99 * 3 AS col1, - 20 + SUM ( ALL + 5 ) FROM tab0
----
-297
-5

query II rowsort
SELECT ALL - 12 + - - 92 AS col1, + col2 FROM tab1 AS cor0
----
80
59
80
68
80
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2640
SELECT + COUNT( * ) * - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT + COUNT ( * ) * - + CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT ALL + col2 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL + col2 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT 53 + - COUNT( * ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2643
SELECT 53 + - COUNT ( * ) FROM tab1 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 + 82 * col1, col0 * + - 13 col1 FROM tab2 AS cor0
----
4271
-598
5583
-975
6403
-832

query I rowsort
SELECT - 55 + + col0 * + 17 FROM tab1 AS cor0
----
1390
1492
812

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL IN ( - + col2, col1, - + 60 * - col1 + + col0 - + + 58, + col0 * col2, + + col2 * col0 * + 13 ) )
----

query I rowsort
SELECT - 81 + + + col0 FROM tab1
----
-30
10
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT MIN( ALL - 60 ) + 57 AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2648
SELECT MIN ( ALL - 60 ) + 57 AS col0 FROM tab0
----
-3

query II rowsort
SELECT col2 + ( - + col1 ) * + + 42 AS col2, + col1 * + - 44 FROM tab1
----
-151
-220
-1906
-2068
-492
-616

query I rowsort
SELECT 34 + + - col1 + + col1 AS col1 FROM tab2
----
34
34
34

query I rowsort
SELECT col1 * 41 AS col0 FROM tab0
----
3321
41
861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2652
SELECT ALL COUNT( * ) DIV + SUM( ALL col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL COUNT ( * ) / + SUM ( ALL col2 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT + + MAX( ALL col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT + + MAX ( ALL col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT + + COUNT( * ) * MAX( ALL - CAST( + + col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2654
SELECT + + COUNT ( * ) * MAX ( ALL - CAST ( + + col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT ALL - col2 DIV - - col1 AS col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - col2 / - - col1 AS col1 FROM tab1
----
-1
-11
-6

query II rowsort
SELECT DISTINCT + 8, col0 AS col1 FROM tab1 AS cor0
----
8
51
8
85
8
91

query III rowsort
SELECT - 76 AS col1, + 17 + col1, - - col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to d5f3bb1c1182554fa59e8e3dec7d051c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col2 + 0 col1, col2 FROM tab0 cor0
----
-100
10
-2209
47
-9801
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT col1 + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-2659
SELECT col1 + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-8
13
5

query II rowsort
SELECT - ( - - 80 ) + + - ( - + col2 ) * - + 14, - col0 AS col0 FROM tab0 AS cor0
----
-1466
-97
-220
-87
-738
-15

query I rowsort
SELECT DISTINCT - col0 + 19 + col2 FROM tab2 AS cor0
----
-4
-5
2

query I rowsort
SELECT + 51 + - 8 AS col2 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2663
SELECT + 55 + + CAST( NULL AS SIGNED ) * + 78 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT + 55 + + CAST ( NULL AS INTEGER ) * + 78 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT + COUNT( * ) + - MAX( 35 ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2664
SELECT + COUNT ( * ) + - MAX ( 35 ) FROM tab2 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT DISTINCT CAST( + + 49 AS SIGNED ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT CAST ( + + 49 AS INTEGER ) FROM tab1 AS cor0
----
49

query I rowsort
SELECT ALL + 24 + + col2 FROM tab0 AS cor0
----
123
34
71

query I rowsort
SELECT ALL - 65 + - + col1 FROM tab1
----
-112
-70
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2668
SELECT DISTINCT ( + CAST( col1 AS SIGNED ) ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT ( + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE + - col0 + - 99 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - 45 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT DISTINCT - MAX( - col2 ) + - 8 col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2671
SELECT DISTINCT - MAX ( - col2 ) + - 8 col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL + MAX( DISTINCT + 43 ) col1 FROM tab0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2672
SELECT ALL + MAX ( DISTINCT + 43 ) col1 FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL <> + ( - + col2 ) + col2 - - + col0 * - - 58
----
0

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL <> + ( - + col2 ) + col2 - - + col0 * - - 58
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT + col2 * CAST( NULL AS SIGNED ) * + 56 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT + col2 * CAST ( NULL AS INTEGER ) * + 56 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT + col1 DIV + ( - - col2 ) col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2675
SELECT + col1 / + ( - - col2 ) col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + col0 ) + 65 FROM tab1 cor0
----
116
150
156

query I rowsort
SELECT + col2 * 61 + - 46 + - ( + - 89 ) * ( + col1 ) FROM tab2 AS cor0
----
5896
9247
9455

query I rowsort
SELECT ALL 8 + + col0 AS col1 FROM tab0
----
105
23
95

query I rowsort
SELECT ALL col1 + 91 + + + col1 FROM tab0
----
133
253
93

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + - 80 AND NULL
----

query I rowsort
SELECT - col1 * - ( + col1 ) FROM tab2
----
2601
4489
5929

query II rowsort
SELECT ALL - col0 - - + 99 AS col0, - col0 + col1 AS col1 FROM tab1 AS cor0
----
14
-80
48
-37
8
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT DISTINCT COUNT( * ) - + 54 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT COUNT ( * ) - + 54 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT DISTINCT col2 * 51 * col1 AS col0 FROM tab2 AS cor0
----
157080
198186
59823

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT ALL + + col0 DIV - 38 AS col2 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + + col0 / - 38 AS col2 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT DISTINCT - - 30 * COUNT( * ) * + 62 * COUNT( - ( - col0 ) ) FROM tab2 AS cor0
----
16740

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT - - 30 * COUNT ( * ) * + 62 * COUNT ( - ( - col0 ) ) FROM tab2 AS cor0
----
16740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT ( - SUM( + col2 ) ) DIV + 21 AS col1 FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2687
SELECT ( - SUM ( + col2 ) ) / + 21 AS col1 FROM tab2 cor0
----
-5

query I rowsort
SELECT - col0 - 15 AS col0 FROM tab0 AS cor0
----
-102
-112
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL + + MIN( + col1 ) * - 1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL + + MIN ( + col1 ) * - 1 FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2690
SELECT ALL col1 DIV + + col2 col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2690
SELECT ALL col1 / + + col2 col2 FROM tab2
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT ALL - 39 DIV + + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL - 39 / + + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT ( ( NULL ) >= NULL )
----

query II rowsort
SELECT ALL - 3 AS col2, col0 FROM tab0
----
-3
15
-3
87
-3
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT MAX( - + 60 ) AS col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2694
SELECT MAX ( - + 60 ) AS col1 FROM tab0
----
-60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + + ( + + col1 ) AND NULL
----

query I rowsort
SELECT ALL + + col2 * + ( + + col2 ) FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL - + 26 AS col0 FROM tab2 AS cor0 WHERE NULL <> - 83 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT ALL + COUNT( * ) * + COUNT( * ) col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 33
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2698
SELECT ALL + COUNT ( * ) * + COUNT ( * ) col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT + MIN( ALL + ( 56 ) ) AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-2699
SELECT + MIN ( ALL + ( 56 ) ) AS col1 FROM tab1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT DISTINCT col0 + - 71 DIV - col2 AS col0 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT col0 + - 71 / - col2 AS col0 FROM tab1
----
51
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col0 FROM tab0 WHERE NOT col2 = + 15
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT SUM( ALL 19 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT SUM ( ALL 19 ) FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT + MAX( + 26 ) AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-2703
SELECT + MAX ( + 26 ) AS col0 FROM tab1
----
26

query I rowsort
SELECT 39 - 51 AS col1 FROM tab0
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 89 BETWEEN NULL AND + 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2706
SELECT * FROM tab1 WHERE NOT 34 NOT BETWEEN ( col1 ) AND CAST( + col0 AS SIGNED ) + + 44
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-2706
SELECT * FROM tab1 WHERE NOT 34 NOT BETWEEN ( col1 ) AND CAST ( + col0 AS INTEGER ) + + 44
----
51
14
96
85
5
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 IN ( + 17 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( 38 ) NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + SUM( col1 ) AS col2 FROM tab1 WHERE NOT + col0 > ( - col0 * col0 - - ( - 64 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT + SUM ( col1 ) AS col2 FROM tab1 WHERE NOT + col0 > ( - col0 * col0 - - ( - 64 ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > ( col0 * col2 + 20 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 NOT BETWEEN NULL AND 51
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT 37 NOT IN ( col1 + col2 )
----

query I rowsort
SELECT ALL 18 * col0 AS col2 FROM tab1
----
1530
1638
918

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL MIN( - col1 ) * 20 AS col2 FROM tab1
----
-940

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL MIN ( - col1 ) * 20 AS col2 FROM tab1
----
-940

query I rowsort
SELECT + col0 FROM tab2 WHERE ( + ( + col0 ) ) BETWEEN 4 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT + ( - ( + 70 ) ) * - COUNT( * ) AS col2 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-2716
SELECT + ( - ( + 70 ) ) * - COUNT ( * ) AS col2 FROM tab1
----
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 WHERE - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT MIN( - col2 ) * COUNT( * ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-2718
SELECT MIN ( - col2 ) * COUNT ( * ) FROM tab2
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT col1 DIV + 76 AS col1 FROM tab1 WHERE NOT col2 - - col0 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2719
SELECT col1 / + 76 AS col1 FROM tab1 WHERE NOT col2 - - col0 IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col0 FROM tab1 WHERE NULL IS NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2722
SELECT ALL + MAX( 59 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL + MAX ( 59 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2723
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 <> + CAST( NULL AS DECIMAL ) * 83
----

skipif mysql # not compatible
query III rowsort label-2723
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 <> + CAST ( NULL AS REAL ) * 83
----

query I rowsort
SELECT ALL col1 * ( 66 * ( col2 ) ) FROM tab2 AS cor0 WHERE NOT + ( + col1 ) NOT IN ( col1 )
----
203280
256476
77418

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + ( + COUNT( * ) ) * MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2725
SELECT + ( + COUNT ( * ) ) * MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 + col0 col1 FROM tab2 WHERE ( NULL ) <= ( + col1 )
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 WHERE NOT NULL NOT IN ( 62 - 50 * 22 )
----

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
59

query I rowsort
SELECT DISTINCT + ( - col0 ) - - col1 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL + COUNT( * ) + + 89 FROM tab2 AS cor0 CROSS JOIN tab2 WHERE + 10 IS NULL
----
89

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL + COUNT ( * ) + + 89 FROM tab2 AS cor0 CROSS JOIN tab2 WHERE + 10 IS NULL
----
89

query I rowsort
SELECT DISTINCT col1 - - col2 * 7 FROM tab2
----
212
357
473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT ALL CAST( 84 AS SIGNED ) - - 56 * + col0 FROM tab2 cor0
----
2660
3668
4284

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL CAST ( 84 AS INTEGER ) - - 56 * + col0 FROM tab2 cor0
----
2660
3668
4284

query I rowsort
SELECT ALL 64 * col0 AS col1 FROM tab1 AS cor0 WHERE + 13 IS NOT NULL
----
3264
5440
5824

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT + 86 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT + 86 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN - 47 / col0 AND NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 29 + - 7 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 40 * + col1 AS col1 FROM tab1 AS cor0
----
1880
200
560

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( col2 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT 58 * SUM( ALL + col0 * - ( - col2 * col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT 58 * SUM ( ALL + col0 * - ( - col2 * col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT + MAX( DISTINCT 59 ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2740
SELECT + MAX ( DISTINCT 59 ) FROM tab0 AS cor0
----
59

query I rowsort
SELECT - - 13 * col1 AS col1 FROM tab1 AS cor0
----
182
611
65

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 74 * - 34 AS col2 FROM tab0
----
2516
2516
2516

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - MIN( DISTINCT - - 16 ) * COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-2745
SELECT - MIN ( DISTINCT - - 16 ) * COUNT ( * ) FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL ( - 21 ) * + COUNT( * ) col1 FROM tab2
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2746
SELECT ALL ( - 21 ) * + COUNT ( * ) col1 FROM tab2
----
-63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / - 20 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - col2 AS col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - col2 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / + 74 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / + 74 AS col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + 43 + col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL + 94 * - SUM( - + col2 ) AS col2 FROM tab1
----
20962

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + 94 * - SUM ( - + col2 ) AS col2 FROM tab1
----
20962

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT - 55 + col1 FROM tab2 AS cor0 WHERE + col1 IN ( CAST( NULL AS SIGNED ) * - 12 )
----

skipif mysql # not compatible
query I rowsort label-2755
SELECT - 55 + col1 FROM tab2 AS cor0 WHERE + col1 IN ( CAST ( NULL AS INTEGER ) * - 12 )
----

query I rowsort
SELECT + 30 + + + col2 FROM tab2 AS cor0
----
53
70
88

query I rowsort
SELECT col1 + - col0 * + 38 AS col2 FROM tab0 AS cor0
----
-3285
-3685
-489

query I rowsort
SELECT col0 * col2 + - 85 AS col0 FROM tab2 AS cor0
----
2475
4265
973

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT + + SUM( col1 ) + - + MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2759
SELECT + + SUM ( col1 ) + - + MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
88

query I rowsort
SELECT + - col0 + - - col0 * + - col2 AS col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

query I rowsort
SELECT col1 * + col0 + 27 + - col1 * + col2 AS col0 FROM tab2 AS cor0
----
1166
1200
1875

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT DISTINCT - - col2 DIV + col2 col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2762
SELECT DISTINCT - - col2 / + col2 col1 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2763
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + COUNT( * ) + - - 68 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - - 68 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - + col0 * - - 58 FROM tab1 AS cor0
----
-2907
-4845
-5187

query I rowsort
SELECT ALL 6 + col2 FROM tab0 cor0 WHERE NULL IS NULL
----
105
16
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2767
SELECT DISTINCT + 23 DIV SUM( + - col1 ) DIV SUM( ALL col0 ) + + COUNT( DISTINCT + 82 + + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT + 23 / SUM ( + - col1 ) / SUM ( ALL col0 ) + + COUNT ( DISTINCT + 82 + + col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT ALL - col0 + CAST( + 97 AS SIGNED ) - - col1 * + 21 FROM tab2
----
1122
1429
1650

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL - col0 + CAST ( + 97 AS INTEGER ) - - col1 * + 21 FROM tab2
----
1122
1429
1650

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT DISTINCT + COUNT( * ) - - 8 * - 30 * - - ( + 69 ) FROM tab1
----
-16557

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT + COUNT ( * ) - - 8 * - 30 * - - ( + 69 ) FROM tab1
----
-16557

query III rowsort
SELECT * FROM tab2 WHERE NULL = col0 * - + ( col0 ) * + 58
----

query I rowsort
SELECT 2 * 1 AS col1 FROM tab1 WHERE + col0 > col2 + - col1 * col2
----
2
2
2

query I rowsort
SELECT ALL ( 78 ) + 30 * 38 - + col2 * 58 FROM tab0
----
-1508
-4524
638

query I rowsort
SELECT DISTINCT 14 - + + col1 + - + 42 FROM tab2
----
-105
-79
-95

query I rowsort
SELECT - + col1 * + col1 * 84 * + ( col0 ) - ( - col1 ) FROM tab2 cor0
----
-10050213
-28280633
-31874227

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT - COUNT( * ) + + 84 FROM tab0 AS cor0 WHERE 38 + + 22 IS NULL
----
84

skipif mysql # not compatible
query I rowsort label-2776
SELECT - COUNT ( * ) + + 84 FROM tab0 AS cor0 WHERE 38 + + 22 IS NULL
----
84

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT DISTINCT 97 * col1 + - + col1 AS col0 FROM tab0
----
2016
7776
96

query II rowsort
SELECT - + 81 AS col1, - col2 FROM tab2 AS cor0
----
-81
-23
-81
-40
-81
-58

query I rowsort
SELECT + - 51 AS col2 FROM tab1 cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT - 87 * - 63 AS col0 FROM tab1 AS cor0 WHERE col2 * + ( col1 ) IS NULL
----

query II rowsort
SELECT DISTINCT + - col1 AS col0, 50 AS col0 FROM tab0 AS cor0
----
-1
50
-21
50
-81
50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( 15 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2784
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2784
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 74 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 87 AS col1 FROM tab2 AS cor0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab2 WHERE NOT NULL IN ( + ( - + col1 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT - CAST( NULL AS SIGNED ) * + 37 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT - CAST ( NULL AS INTEGER ) * + 37 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT - 59 * - + COUNT( * ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-2790
SELECT - 59 * - + COUNT ( * ) FROM tab0
----
177

query I rowsort
SELECT ALL col2 * col2 * - 26 FROM tab2
----
-13754
-41600
-87464

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT MIN( ALL + 43 ) AS col1 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT MIN ( ALL + 43 ) AS col1 FROM tab1
----
43

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + 59 ) + 61 IS NOT NULL
----

query I rowsort
SELECT - + col0 * - ( + 71 ) + + - col0 + 3 AS col0 FROM tab1 AS cor0
----
3573
5953
6373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT DISTINCT + 46 * + col1 AS col2 FROM tab2 cor0 WHERE - ( CAST( NULL AS SIGNED ) ) NOT BETWEEN 5 AND col2 / + 10
----

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT + 46 * + col1 AS col2 FROM tab2 cor0 WHERE - ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN 5 AND col2 / + 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT DISTINCT + - CAST( - - col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT + - CAST ( - - col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT MIN( + - 46 ) AS col1 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT MIN ( + - 46 ) AS col1 FROM tab1 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL - ( - COUNT( ALL + 20 ) ) FROM tab2 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL - ( - COUNT ( ALL + 20 ) ) FROM tab2 WHERE NOT NULL = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2799
SELECT + MIN( col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT + MIN ( col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 91 col0 FROM tab1 cor0
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 92 = + col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT MAX( - + 41 ) + - - SUM( 91 ) FROM tab2
----
232

skipif mysql # not compatible
query I rowsort label-2802
SELECT MAX ( - + 41 ) + - - SUM ( 91 ) FROM tab2
----
232

query I rowsort
SELECT + 97 + + col0 FROM tab0
----
112
184
194

query II rowsort
SELECT ALL ( col0 ) - + col0 AS col2, - col0 AS col1 FROM tab2
----
0
-46
0
-64
0
-75

query I rowsort
SELECT col2 FROM tab2 WHERE 49 * + col2 * + col2 IN ( + + 69 )
----

query I rowsort
SELECT ALL + 57 FROM tab1 WHERE - col2 + + - col0 NOT IN ( + ( - col0 ) )
----
57
57
57

query I rowsort
SELECT 35 + - col1 FROM tab0
----
-46
14
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT ALL CAST( col2 AS SIGNED ) col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2808
SELECT ALL CAST ( col2 AS INTEGER ) col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2809
SELECT DISTINCT + COUNT( * ), + SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
3
-195

skipif mysql # not compatible
query II rowsort label-2809
SELECT DISTINCT + COUNT ( * ), + SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
3
-195

query I rowsort
SELECT ALL col1 - + 95 FROM tab1 AS cor0
----
-48
-81
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2811
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - 11 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2812
SELECT - 11 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 18 * col2 NOT BETWEEN - ( + - col0 ) AND NULL
----

query I rowsort
SELECT + 63 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT + MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2816
SELECT + MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL - MIN( DISTINCT - col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - MIN ( DISTINCT - col2 ) FROM tab2 cor0
----
58

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE + col2 <= - 56 + + 93 * + col2
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT SUM( 2 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2819
SELECT SUM ( 2 ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT - - 60 FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 WHERE NOT NULL = col1
----

skipif mysql # not compatible
query I rowsort label-2821
SELECT CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 WHERE NOT NULL = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT CAST( - col0 AS SIGNED ) * col1 AS col1 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-2822
SELECT CAST ( - col0 AS INTEGER ) * col1 AS col1 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT ALL + col2 AS col0, - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 60 * - 65 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT col1 * + CAST( col2 AS SIGNED ) * + + col2 + + 23 + + + col0 * + col0 AS col2 FROM tab0
----
179177
19233
9692

skipif mysql # not compatible
query I rowsort label-2825
SELECT col1 * + CAST ( col2 AS INTEGER ) * + + col2 + + 23 + + + col0 * + col0 AS col2 FROM tab0
----
179177
19233
9692

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col2 * - col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 + - + col2 <> NULL
----

query I rowsort
SELECT ALL - 5 + col0 FROM tab1 AS cor0
----
46
80
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 56 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2829
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 56 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT + COUNT( * ) - + + 22 FROM tab1 WHERE - + 58 IN ( - + 41 )
----
-22

skipif mysql # not compatible
query I rowsort label-2830
SELECT + COUNT ( * ) - + + 22 FROM tab1 WHERE - + 58 IN ( - + 41 )
----
-22

query I rowsort
SELECT - 92 + + 20 + 70 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT - + 54 + + + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2832
SELECT - + 54 + + + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2833
SELECT col0 * CAST( NULL AS SIGNED ) AS col0, - col2 + + - col2 col1 FROM tab2 AS cor0
----
NULL
-116
NULL
-46
NULL
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2833
SELECT col0 * CAST ( NULL AS INTEGER ) AS col0, - col2 + + - col2 col1 FROM tab2 AS cor0
----
NULL
-116
NULL
-46
NULL
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT DISTINCT - + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 / col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * + + col1 NOT BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2836
SELECT col1, col0 DIV + col1 col2 FROM tab1 AS cor0
----
14
3
47
1
5
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2836
SELECT col1, col0 / + col1 col2 FROM tab1 AS cor0
----
14
3
47
1
5
17

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 96 < NULL )
----

query I rowsort
SELECT - 25 + - 89 FROM tab2 WHERE col0 * col0 IS NOT NULL
----
-114
-114
-114

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * col1 BETWEEN + col1 + - col2 * + col1 AND 92 * col1
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT COUNT( - 85 ) AS col1 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2840
SELECT COUNT ( - 85 ) AS col1 FROM tab2, tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 47 col0 FROM tab0
----
-134
-144
-62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT DISTINCT - col2 DIV - col0 - + col1 * + col1 * - - col2 FROM tab1
----
-1475
-150212
-18815

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - col2 / - col0 - + col1 * + col1 * - - col2 FROM tab1
----
-1475
-150212
-18815

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL + COUNT( * ) * - 99 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL + COUNT ( * ) * - 99 FROM tab1 AS cor0
----
-297

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab0 WHERE NOT - col2 > + + col0
----
58

query I rowsort
SELECT + col0 + col1 + + col0 * col2 * + col1 + - col1 + + - col1 + + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
25240
290971
68632

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT col0 * col1 DIV - col2 col1 FROM tab1
----
-62
-7
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2848
SELECT col0 * col1 / - col2 col1 FROM tab1
----
-62
-7
-7

query II rowsort
SELECT ALL + - 63, + col1 AS col0 FROM tab1 AS cor0
----
-63
14
-63
47
-63
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab0 AS cor0
----
-24
-24
-24

query II rowsort
SELECT col0, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + 75 BETWEEN NULL AND - - col2
----

query I rowsort
SELECT ALL - col0 * + 41 AS col1 FROM tab2 AS cor0
----
-1886
-2624
-3075

query I rowsort
SELECT ALL - 67 + + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1277
228
3129

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT - COUNT( ALL + ( + + col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT - COUNT ( ALL + ( + + col2 ) ) FROM tab0
----
-3

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT 10 + - 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT COUNT( - 88 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT COUNT ( - 88 ) FROM tab2
----
3

query I rowsort
SELECT 87 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2860
SELECT + COUNT( * ) DIV - ( + ( 57 ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT + COUNT ( * ) / - ( + ( 57 ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT + col1 * + + ( col1 ) + col0 AS col1 FROM tab0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab0
----
-3

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2864
SELECT ALL CAST( NULL AS SIGNED ) + - col1 * CAST( col1 AS DECIMAL ) - + + 24 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 * CAST ( col1 AS REAL ) - + + 24 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT - COUNT( * ) AS col2, - SUM( ALL - - 45 ) col0 FROM tab2
----
-3
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2865
SELECT - COUNT ( * ) AS col2, - SUM ( ALL - - 45 ) col0 FROM tab2
----
-3
-135

query I rowsort
SELECT DISTINCT - + 32 * + + col2 AS col0 FROM tab1 cor0
----
-1888
-2176
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT col0 + - ( + - col0 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT col0 + - ( + - col0 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab1 AS cor0 WHERE NOT 64 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( 75 ) AND 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col2 FROM tab2 cor0
----
74

query I rowsort
SELECT col1 + - col2 + + col1 + col0 * col0 FROM tab0 AS cor0
----
340
7601
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col0 FROM tab0 AS cor0 WHERE + 40 + - col0 / - col2 * - + ( - ( + col0 ) ) * + 61 IS NULL
----

query I rowsort
SELECT - - col2 + + - 90 FROM tab1 cor0
----
-22
-31
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 / + col1 * - + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 / + col1 * - + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 7 * - col0 + - + col0 FROM tab1 AS cor0
----
-408
-680
-728

query I rowsort
SELECT DISTINCT - col1 + - - col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT + 2 FROM tab0 WHERE 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT DISTINCT COUNT( * ) - - + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab1
----
6

query III rowsort
SELECT * FROM tab0 WHERE 40 * + + col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT - 98, + SUM( + col1 ) AS col0 FROM tab0
----
-98
103

skipif mysql # not compatible
query II rowsort label-2880
SELECT - 98, + SUM ( + col1 ) AS col0 FROM tab0
----
-98
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT DISTINCT - 27 - COUNT( * ) + 71 AS col1 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT - 27 - COUNT ( * ) + 71 AS col1 FROM tab0
----
41

query II rowsort
SELECT ALL 88 AS col1, - col1 * + + 45 * + col2 * + col0 * + col0 + + 31 AS col1 FROM tab2
----
88
-111693029
88
-567705569
88
-983643719

onlyif mysql # aggregate syntax: 
query II rowsort label-2883
SELECT COUNT( * ) AS col2, COUNT( * ) col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2883
SELECT COUNT ( * ) AS col2, COUNT ( * ) col1 FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2884
SELECT - - CAST( NULL AS DECIMAL ) * - 90 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT - - CAST ( NULL AS REAL ) * - 90 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 64 * col0 col2 FROM tab1 AS cor0
----
3264
5440
5824

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT DISTINCT col0 * - + col0 DIV - col0 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-2886
SELECT DISTINCT col0 * - + col0 / - col0 col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT DISTINCT - + col1 * col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - + col1 * col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2888
SELECT ALL ( 83 ) * CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL ( 83 ) * CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2889
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( - 99 ) AS col0 FROM tab2
----
-99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 52 + + - 36 = + - col0 - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 30 * - 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL + 8 * MIN( DISTINCT - + 13 ) FROM tab1 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL + 8 * MIN ( DISTINCT - + 13 ) FROM tab1 AS cor0
----
-104

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2894
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 <= CAST( - - col0 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 <= CAST ( - - col0 AS REAL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + COUNT( * ) + - COUNT( * ) * + 98 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2895
SELECT + COUNT ( * ) + - COUNT ( * ) * + 98 FROM tab2 AS cor0
----
-291

query I rowsort
SELECT DISTINCT - + col2 * - 99 AS col2 FROM tab1 cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 19 + - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT col1 + - col2 + - col2 + - 1 DIV 12 FROM tab1 AS cor0
----
-113
-178
-89

skipif mysql # not compatible
query I rowsort label-2898
SELECT col1 + - col2 + - col2 + - 1 / 12 FROM tab1 AS cor0
----
-113
-178
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT - 19 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - 19 / - col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2900
SELECT ALL * FROM tab0 AS cor0 WHERE col0 <> + CAST( NULL AS SIGNED ) * + col1 + - col2 * + col1 + + + 31 + - ( 67 ) * - 55
----

skipif mysql # not compatible
query III rowsort label-2900
SELECT ALL * FROM tab0 AS cor0 WHERE col0 <> + CAST ( NULL AS INTEGER ) * + col1 + - col2 * + col1 + + + 31 + - ( 67 ) * - 55
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( + + 87 ) ) col0 FROM tab1 cor0
----
-87
-87
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-2902
SELECT DISTINCT - col1 DIV - + col1 AS col2, ( 93 ) + col0 * col1 col2 FROM tab0 AS cor0
----
1
1308
1
190
1
1920

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2902
SELECT DISTINCT - col1 / - + col1 AS col2, ( 93 ) + col0 * col1 col2 FROM tab0 AS cor0
----
1
1308
1
190
1
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT ALL - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - col1 * - + 37 + + 97 FROM tab1
----
1836
282
615

query III rowsort
SELECT * FROM tab1 WHERE ( NULL > col2 * - ( - 89 ) * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2906
SELECT ALL 62 * + - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL 62 * + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2907
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2908
SELECT col2 * + - col1 * + 47, + 12 DIV + col0 * + col2 - + ( 94 ) AS col2 FROM tab2
----
-144760
-94
-182642
-94
-55131
-94

skipif mysql # not compatible
query II rowsort label-2908
SELECT col2 * + - col1 * + 47, + 12 / + col0 * + col2 - + ( 94 ) AS col2 FROM tab2
----
-144760
-94
-182642
-94
-55131
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT + + 14 DIV + col2 - + col1 * col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2909
SELECT + + 14 / + col2 - + col1 * col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + col0 + + col0 * - col0 * + col2 + + col1 * + - 76 + - col1 / - col0 col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 18 - - + col2 + - - col2 )
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - 45 - - - col2 AS col0 FROM tab1 AS cor0
----
-104
-113
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ( - 64 ) - COUNT( * ) * - 82 + COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
191

skipif mysql # not compatible
query I rowsort label-2913
SELECT ( - 64 ) - COUNT ( * ) * - 82 + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT + MIN( ALL - + col2 ) AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + MIN ( ALL - + col2 ) AS col0 FROM tab2 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL - 51 + - + COUNT( DISTINCT + col1 ) * + 34 - - 49 FROM tab1
----
-104

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - 51 + - + COUNT ( DISTINCT + col1 ) * + 34 - - 49 FROM tab1
----
-104

query I rowsort
SELECT DISTINCT - + ( - col0 ) * col1 FROM tab0 WHERE NULL BETWEEN - 35 AND + - 79
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - 81
----

query I rowsort
SELECT DISTINCT - - col1 + - col1 AS col0 FROM tab2 WHERE col1 / + - col0 IS NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT ( + - 23 ) FROM tab2
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2921
SELECT DISTINCT + + COUNT( * ) AS col2, 48 + - - 28 FROM tab0 AS cor0
----
3
76

skipif mysql # not compatible
query II rowsort label-2921
SELECT DISTINCT + + COUNT ( * ) AS col2, 48 + - - 28 FROM tab0 AS cor0
----
3
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 68, col2 )
----

query I rowsort
SELECT DISTINCT col1 * - 30 AS col0 FROM tab0
----
-2430
-30
-630

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - - col1 AND 3
----

query I rowsort
SELECT - - 30 AS col2 FROM tab1 cor0 WHERE NOT + 70 + + col2 IS NULL
----
30
30
30

query I rowsort
SELECT DISTINCT col0 / - + 10 + - 32 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL + SUM( DISTINCT - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL + SUM ( DISTINCT - col2 ) FROM tab0 cor0
----
-156

query I rowsort
SELECT DISTINCT + - 74 * + 78 * + 87 FROM tab1 cor0
----
-502164

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 - - ( - 56 ) AS col1 FROM tab2 AS cor0
----
46
-33
64
-16
75
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2930
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + + ( - col2 ) + + CAST( col0 AS SIGNED ) + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 / col0 * + - col1 / - 27 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2930
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + + ( - col2 ) + + CAST ( col0 AS INTEGER ) + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 / col0 * + - col1 / - 27 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT ALL - col0 / - - 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-2931
SELECT ALL - col0 / - - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 - + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT DISTINCT - MIN( DISTINCT - 69 ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - MIN ( DISTINCT - 69 ) FROM tab1 AS cor0
----
69

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE - 34 <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT ALL + col2 * - - col2 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL + col2 * - - col2 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 * col0 col1 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT DISTINCT col2 + - ( + col0 ) AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2938
SELECT ALL + MIN( + col2 ) DIV - ( - - 71 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL + MIN ( + col2 ) / - ( - - 71 ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT - col1 + + - 3 DIV + col2 AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2939
SELECT - col1 + + - 3 / + col2 AS col0 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2941
SELECT - COUNT( * ) + COUNT( * ) AS col1, - 93 FROM tab2
----
0
-93

skipif mysql # not compatible
query II rowsort label-2941
SELECT - COUNT ( * ) + COUNT ( * ) AS col1, - 93 FROM tab2
----
0
-93

query I rowsort
SELECT col0 - + - col2 * - - 27 AS col1 FROM tab1
----
1678
1927
2643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT DISTINCT - + ( - + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2943
SELECT DISTINCT - + ( - + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 18 * - col1 * - 38 - - col1 FROM tab0 AS cor0
----
-14343
-55323
-683

query I rowsort
SELECT + 54 * 92 AS col2 FROM tab2 AS cor0 WHERE 92 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2946
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT DISTINCT + 31 + - col2 * CAST( - + col2 AS SIGNED ) FROM tab1 cor0 WHERE col0 + - col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + 31 + - col2 * CAST ( - + col2 AS INTEGER ) FROM tab1 cor0 WHERE col0 + - col1 < NULL
----

query I rowsort
SELECT DISTINCT 50 * ( - + col2 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-2350
-4950
-500

query II rowsort
SELECT - 52, col0 + - - col0 AS col0 FROM tab2 AS cor0
----
-52
128
-52
150
-52
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - + col1 col0, 13 FROM tab2
----
1173
13
3080
13
3886
13

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT 83 + + + col1 * - 6 + + col2 + - - col0 / + + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT + 58 DIV + + 31 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2952
SELECT + 58 / + + 31 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 - + col0 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL 77 * - 55 AS col0 FROM tab2
----
-4235
-4235
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT DISTINCT - MAX( + 94 ) * + - 82 FROM tab1 cor0
----
7708

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT - MAX ( + 94 ) * + - 82 FROM tab1 cor0
----
7708

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 cor0 WHERE 77 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT DISTINCT + COUNT( DISTINCT - + 72 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2957
SELECT DISTINCT + COUNT ( DISTINCT - + 72 ) col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2958
SELECT ALL SUM( + col2 ) AS col1, + COUNT( * ) FROM tab1 AS cor0
----
223
3

skipif mysql # not compatible
query II rowsort label-2958
SELECT ALL SUM ( + col2 ) AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
223
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) - + col1 >= ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT + - col0 + + - 62 + + - CAST( NULL AS SIGNED ) * - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT + - col0 + + - 62 + + - CAST ( NULL AS INTEGER ) * - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * col2 + - - col0 - col1 * - - 43 AS col1 FROM tab0 AS cor0
----
-2763
54
9657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT DISTINCT - col0 + + + CAST( + col1 AS SIGNED ) * - col1 FROM tab2 cor0
----
-2647
-4564
-5993

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT - col0 + + + CAST ( + col1 AS INTEGER ) * - col1 FROM tab2 cor0
----
-2647
-4564
-5993

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT ALL 84 DIV - - 46 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL 84 / - - 46 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ( + COUNT( - col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2965
SELECT ( + COUNT ( - col1 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT MAX( - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT MAX ( - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2968
SELECT col0 * - - col0 * + - col2 + - 53 - - CAST( NULL AS DECIMAL ) + + col1 + + col2 * - 2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT col0 * - - col0 * + - col2 + - 53 - - CAST ( NULL AS REAL ) + + col1 + + col2 * - 2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL COUNT( * ) * + 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IN ( 19 )
----
0

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL COUNT ( * ) * + 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IN ( 19 )
----
0

query I rowsort
SELECT DISTINCT col0 - + - col0 + + 53 AS col0 FROM tab2
----
145
181
203

query I rowsort
SELECT ALL col1 - - col2 * + - col0 + col1 * - 2 * 29 * + col1 - ( + col0 ) FROM tab2
----
-151911
-264720
-346429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 AS cor0 WHERE col0 <= - 69 OR NOT - - col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL COUNT( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL COUNT ( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT + 68 * - MAX( DISTINCT - 39 ) * - ( - + 83 ) FROM tab2 AS cor0
----
220116

skipif mysql # not compatible
query I rowsort label-2974
SELECT + 68 * - MAX ( DISTINCT - 39 ) * - ( - + 83 ) FROM tab2 AS cor0
----
220116

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 27 ) BETWEEN + + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2976
SELECT 78 DIV - ( + - COUNT( DISTINCT + CAST( - col2 AS SIGNED ) ) ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-2976
SELECT 78 / - ( + - COUNT ( DISTINCT + CAST ( - col2 AS INTEGER ) ) ) FROM tab2
----
26

query I rowsort
SELECT + 23 AS col0 FROM tab0 WHERE NOT ( + col0 + + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 NOT IN ( col2 + - col2, + ( + 95 ) / - - col1 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 34 col0 FROM tab1
----
-1598
-170
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT - + MIN( DISTINCT + ( + + col0 ) ) col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2980
SELECT - + MIN ( DISTINCT + ( + + col0 ) ) col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT + - COUNT( ALL + 87 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2981
SELECT + - COUNT ( ALL + 87 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 27 + col0 AS col0 FROM tab2 AS cor0
----
19
37
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 1 - + col0 * col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 1 - + col0 * col2 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 71 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + + ( col2 ) + - + 59 FROM tab0 AS cor0
----
-12
-49
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2986
SELECT ALL 59 + + CAST( NULL AS SIGNED ) AS col0, + 38 FROM tab0 cor0
----
NULL
38
NULL
38
NULL
38

skipif mysql # not compatible
query II rowsort label-2986
SELECT ALL 59 + + CAST ( NULL AS INTEGER ) AS col0, + 38 FROM tab0 cor0
----
NULL
38
NULL
38
NULL
38

query I rowsort
SELECT DISTINCT - col0 + + 24 FROM tab2
----
-22
-40
-51

query I rowsort
SELECT col0 + + ( + col0 ) AS col0 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT COUNT( * ) * + 43 + - 27 + + 20 FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-2989
SELECT COUNT ( * ) * + 43 + - 27 + + 20 FROM tab2
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT - col1 + - col1 * + CAST( + + col0 AS SIGNED ) * 79 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT - col1 + - col1 * + CAST ( + + col0 AS INTEGER ) * 79 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 32 - - 46 AS col0 FROM tab0
----
78

query I rowsort
SELECT col0 + 16 AS col2 FROM tab0
----
103
113
31

query I rowsort
SELECT DISTINCT col2 + + 54 AS col0 FROM tab0
----
101
153
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL + - SUM( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2994
SELECT ALL + - SUM ( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col2 = - col1
----

query II rowsort
SELECT - 94, col1 FROM tab2 AS cor0
----
-94
51
-94
67
-94
77

query III rowsort
SELECT * FROM tab2 WHERE + 99 NOT IN ( col1, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + - - 10 - - 23 AS col2 FROM tab2
----
56
73
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 WHERE NOT - 4 + - + 9 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2999
SELECT - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 WHERE NOT - 4 + - + 9 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3000
SELECT ALL - + 61, - SUM( + 51 ) AS col2 FROM tab2 cor0
----
-61
-153

skipif mysql # not compatible
query II rowsort label-3000
SELECT ALL - + 61, - SUM ( + 51 ) AS col2 FROM tab2 cor0
----
-61
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 0 col1, - 51 FROM tab2 cor0
----
0
-51

query II rowsort
SELECT + col0 AS col1, col0 * col2 FROM tab0 AS cor0
----
15
705
87
870
97
9603

query I rowsort
SELECT ALL + - col1 * - col1 + - 78 AS col1 FROM tab1 AS cor0
----
-53
118
2131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 40, - col1 col1 FROM tab2 AS cor0
----
-40
-51
-40
-67
-40
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT - + col1 * - + ( + col2 ) + - col2 DIV + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
0
210
3807

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT - + col1 * - + ( + col2 ) + - col2 / + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
0
210
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT - SUM( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3006
SELECT - SUM ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3007
SELECT - + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT - + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL - + 53 * - COUNT( * ) + - 31 FROM tab2 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL - + 53 * - COUNT ( * ) + - 31 FROM tab2 AS cor0
----
128

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 61 + 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3010
SELECT MIN( 18 ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3010
SELECT MIN ( 18 ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
18
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 IN ( - 61, 52 / - col2, col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT DISTINCT col0 + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT col0 + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 74 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( col0 ) + + 8
----

query I rowsort
SELECT DISTINCT + ( - 65 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT MAX( DISTINCT + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3016
SELECT MAX ( DISTINCT + col0 ) AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL + 23 + + ( - + COUNT( * ) ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL + 23 + + ( - + COUNT ( * ) ) AS col0 FROM tab2
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 * col2 col0 FROM tab1 AS cor0
----
-4661
-5372
-7584

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT col0 + 1 DIV - + 65 col2 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3019
SELECT col0 + 1 / - + 65 col2 FROM tab2 cor0
----
46
64
75

query II rowsort
SELECT DISTINCT - 15 AS col0, - col0 FROM tab1 AS cor0
----
-15
-51
-15
-85
-15
-91

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 BETWEEN - col0 - + - col1 * 58 AND + + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3022
SELECT + COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3022
SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT DISTINCT - + ( + + COUNT( * ) ) + + MIN( DISTINCT + CAST( + ( - + col0 ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT - + ( + + COUNT ( * ) ) + + MIN ( DISTINCT + CAST ( + ( - + col0 ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3024
SELECT ALL + - col0 col0, + CAST( NULL AS SIGNED ) * - col0 + + CAST( ( 57 ) AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3024
SELECT ALL + - col0 col0, + CAST ( NULL AS INTEGER ) * - col0 + + CAST ( ( 57 ) AS REAL ) FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3025
SELECT ALL - - 13 + + 21 DIV - col0 AS col2, + 79 + ( - + 82 ) + 63 + - col1 - + + col1 AS col0 FROM tab1 AS cor0
----
13
-34
13
32
13
50

skipif mysql # not compatible
query II rowsort label-3025
SELECT ALL - - 13 + + 21 / - col0 AS col2, + 79 + ( - + 82 ) + 63 + - col1 - + + col1 AS col0 FROM tab1 AS cor0
----
13
-34
13
32
13
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3026
SELECT COUNT( + - 39 ) * SUM( - col0 ) AS col2, SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
-681
-227

skipif mysql # not compatible
query II rowsort label-3026
SELECT COUNT ( + - 39 ) * SUM ( - col0 ) AS col2, SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-681
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT 16 * - - COUNT( * ) + COUNT( ALL - - 94 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT 16 * - - COUNT ( * ) + COUNT ( ALL - - 94 ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT + col0 + - 0 + + col2 * - col1, - col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * + col1 col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3030
SELECT DISTINCT + col2 + + 14 AS col1, + col0 * + - CAST( NULL AS SIGNED ) + ( - col1 ) AS col2 FROM tab0
----
113
NULL
24
NULL
61
NULL

skipif mysql # not compatible
query II rowsort label-3030
SELECT DISTINCT + col2 + + 14 AS col1, + col0 * + - CAST ( NULL AS INTEGER ) + ( - col1 ) AS col2 FROM tab0
----
113
NULL
24
NULL
61
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL + 35 + + MAX( DISTINCT + col2 ) FROM tab0
----
134

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL + 35 + + MAX ( DISTINCT + col2 ) FROM tab0
----
134

query II rowsort
SELECT ALL 76 - - col2 AS col1, - col2 FROM tab1
----
135
-59
144
-68
172
-96

query II rowsort
SELECT col2 - 48 * + - col1 * - 50 AS col1, col0 + - - col2 FROM tab1
----
-112732
159
-11941
144
-33504
147

query I rowsort
SELECT - col2 - - - 71 AS col0 FROM tab0
----
-118
-170
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - + col1 col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT - 74 + - col0 DIV + 7 AS col2 FROM tab2 AS cor0
----
-80
-83
-84

skipif mysql # not compatible
query I rowsort label-3037
SELECT - 74 + - col0 / + 7 AS col2 FROM tab2 AS cor0
----
-80
-83
-84

query I rowsort
SELECT DISTINCT - + col2 - + col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT 64 + - SUM( ALL - 34 ) FROM tab2 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT 64 + - SUM ( ALL - 34 ) FROM tab2 AS cor0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT - col0 <= + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3040
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT - col0 <= + col0 )
----
0

query I rowsort
SELECT ALL - 22 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT ALL + col2 DIV ( col1 ) AS col0 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL + col2 / ( col1 ) AS col0 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT + COUNT( * ) * - + 37 AS col1 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-3043
SELECT + COUNT ( * ) * - + 37 AS col1 FROM tab0
----
-111

query I rowsort
SELECT + 28 * + + 26 * - + col1 FROM tab1
----
-10192
-34216
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + MIN( ALL col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3045
SELECT + MIN ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT 12, 27 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
12
30

skipif mysql # not compatible
query II rowsort label-3046
SELECT 12, 27 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
12
30

query II rowsort
SELECT DISTINCT + 51 * + - col2 + col0 AS col2, 92 FROM tab2 AS cor0
----
-1127
92
-1976
92
-2883
92

query I rowsort
SELECT ALL - col0 * + + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT SUM( - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3049
SELECT SUM ( - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * - col0 + col1 AND - col2 + col2
----

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + - - 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1, + 45 FROM tab0 AS cor0 WHERE NOT NULL < col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3054
SELECT DISTINCT CAST( NULL AS DECIMAL ) / col1 * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT CAST ( NULL AS REAL ) / col1 * - col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * + + col0 - 78 col0 FROM tab2 WHERE NOT ( + + 81 ) IN ( col0, - col2 )
----
4246
5938
6972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0, tab2 AS cor0
----
NULL

query II rowsort
SELECT col2 AS col1, 37 FROM tab0
----
10
37
47
37
99
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3058
SELECT ALL - 88, + 20 + - 18 * - COUNT( * ) - + 3 AS col2 FROM tab1
----
-88
71

skipif mysql # not compatible
query II rowsort label-3058
SELECT ALL - 88, + 20 + - 18 * - COUNT ( * ) - + 3 AS col2 FROM tab1
----
-88
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3059
SELECT DISTINCT - COUNT( * ) AS col1, - ( COUNT( * ) ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3059
SELECT DISTINCT - COUNT ( * ) AS col1, - ( COUNT ( * ) ) FROM tab1
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT DISTINCT 67 * - - COUNT( * ) * + - 9 AS col2 FROM tab0
----
-1809

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT 67 * - - COUNT ( * ) * + - 9 AS col2 FROM tab0
----
-1809

query I rowsort
SELECT + 46 * 54 AS col1 FROM tab0
----
2484
2484
2484

onlyif mysql # DIV for integer division: 
query I rowsort label-3062
SELECT 85 DIV - + col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3062
SELECT 85 / - + col2 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT DISTINCT 34 * COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT 34 * COUNT ( * ) FROM tab0
----
102

query I rowsort
SELECT + col0 * - - 76 AS col1 FROM tab0
----
1140
6612
7372

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT ( + COUNT( * ) ) + - MIN( - - 57 ) + + 96 AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3065
SELECT ( + COUNT ( * ) ) + - MIN ( - - 57 ) + + 96 AS col1 FROM tab0
----
42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) < col2 / col2
----

query I rowsort
SELECT col0 * + + 57 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
4959
5529
855

query I rowsort
SELECT DISTINCT + col2 + - + 1 + + col2 FROM tab0 cor0
----
19
197
93

query II rowsort
SELECT + col0 + + col2, - col2 AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
144
-59
147
-96
159
-68

query I rowsort
SELECT - ( 68 ) AS col0 FROM tab0
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT DISTINCT + col0 FROM tab1 WHERE NOT CAST( 16 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT + col0 FROM tab1 WHERE NOT CAST ( 16 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - 32 * - 4 - + col0 FROM tab0 AS cor0
----
113
31
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL col1 * + col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 15 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL col1 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 15 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 0 - 4 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 19 + + - 2 AS col0 FROM tab1 AS cor0
----
-21
-21
-21

query II rowsort
SELECT col1 + + col2, 77 AS col0 FROM tab0 AS cor0
----
100
77
128
77
31
77

query I rowsort
SELECT DISTINCT 0 + - - 69 + - - col2 * + col1 FROM tab1
----
1413
3265
364

query I rowsort
SELECT col2 + + - col1 + col2 + - col2 AS col0 FROM tab2
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * + col0 - col2 col1 FROM tab0
----
5993
6594
988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT ALL CAST( - 58 AS SIGNED ) - - - 57 FROM tab2
----
-115
-115
-115

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL CAST ( - 58 AS INTEGER ) - - - 57 FROM tab2
----
-115
-115
-115

query I rowsort
SELECT DISTINCT col0 + + col0 * - col2 + 41 AS col1 FROM tab2
----
-2455
-4234
-971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + 10 FROM tab0
----
-1
10
-21
10
-81
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 * 82 + - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 18 - + col0 * col2 * - col0 * + - 51 FROM tab1
----
-12734478
-21740007
-28718490

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT ALL - col0 DIV - ( + col0 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - col0 / - ( + col0 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT DISTINCT + col2 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + col2 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3089
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( - + CAST( NULL AS SIGNED ) * + + col1, + 71 + + ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3089
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( - + CAST ( NULL AS INTEGER ) * + + col1, + 71 + + ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT ALL + - col0 - + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL + - col0 - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 85 < 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE - 57 < + 86
----
3

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE - 57 < + 86
----
3

query I rowsort
SELECT ALL 72 + + + 23 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT ALL - ( - col0 ) DIV - 82 - + col0 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL - ( - col0 ) / - 82 - + col0 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-51
-86
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 64 col0 FROM tab1 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT COUNT( * ) * + - COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3096
SELECT COUNT ( * ) * + - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col2 + - - col1 * 64
----

query II rowsort
SELECT + 37, + col2 FROM tab1
----
37
59
37
68
37
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT DISTINCT - 12 * + + COUNT( * ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT - 12 * + + COUNT ( * ) FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT - SUM( + col2 ) AS col1 FROM tab1 WHERE NOT - + 99 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT - SUM ( + col2 ) AS col1 FROM tab1 WHERE NOT - + 99 = NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3101
SELECT + CAST( NULL AS DECIMAL ) * ( + col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT + CAST ( NULL AS REAL ) * ( + col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE + 72 + 64 * + + col1 IS NOT NULL
----
1
21
81

query II rowsort
SELECT ALL + col2 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT ALL + 92 + - col0 AS col0 FROM tab2 AS cor0
----
17
28
46

query I rowsort
SELECT ALL + col0 * 82 - - col0 FROM tab2
----
3818
5312
6225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 74 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT 41 + + 61 AS col2 FROM tab0
----
102
102
102

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 97 >= col1 * - 6 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3109
SELECT ALL col0, 7 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
15
567
87
147
97
7

skipif mysql # not compatible
query II rowsort label-3109
SELECT ALL col0, 7 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
15
567
87
147
97
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT DISTINCT + - MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT + - MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3111
SELECT + col0, col1 * CAST( NULL AS SIGNED ) + - - ( - col1 ) * - + col0 + + + 5 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3111
SELECT + col0, col1 * CAST ( NULL AS INTEGER ) + - - ( - col1 ) * - + col0 + + + 5 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT + COUNT( * ) * - 53 AS col1 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-3112
SELECT + COUNT ( * ) * - 53 AS col1 FROM tab2 AS cor0
----
-159

query II rowsort
SELECT - - col0 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT - 82 * - - col0 FROM tab0 AS cor0
----
-1230
-7134
-7954

query I rowsort
SELECT 59 * + ( - 4 ) AS col1 FROM tab2 cor0
----
-236
-236
-236

query II rowsort
SELECT DISTINCT + - 59 AS col1, + ( 29 ) FROM tab1 AS cor0
----
-59
29

query II rowsort
SELECT DISTINCT - 17 + + col2 AS col2, col1 - + - col0 FROM tab0
----
-7
108
30
96
82
98

query I rowsort
SELECT + col0 - - col1 * col0 AS col2 FROM tab0
----
1230
1914
194

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NULL >= + ( - - col2 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT DISTINCT + 90 + - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT + 90 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT COUNT( * ), 89 AS col2 FROM tab2, tab2 AS cor0
----
9
89

skipif mysql # not compatible
query II rowsort label-3121
SELECT COUNT ( * ), 89 AS col2 FROM tab2, tab2 AS cor0
----
9
89

query I rowsort
SELECT ALL + col2 * 79 AS col1 FROM tab2
----
1817
3160
4582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT DISTINCT - ( + CAST( + + col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT - ( + CAST ( + + col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col2 - - 3 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND col2 + - col0
----
102
13
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 >= + col1 * + - col2 + col2 * + + 61 + col0 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3126
SELECT MIN( CAST( col0 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT MIN ( CAST ( col0 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL - + COUNT( * ) + + MAX( DISTINCT + 48 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3127
SELECT ALL - + COUNT ( * ) + + MAX ( DISTINCT + 48 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
39

query I rowsort
SELECT col0 * - col2 * + col2 AS col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3129
SELECT DISTINCT - SUM( + col0 ) AS col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + + col2 IS NULL
----
-185

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT - SUM ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + + col2 IS NULL
----
-185

query I rowsort
SELECT ALL ( 7 ) AS col2 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT + CAST( - 52 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-3131
SELECT + CAST ( - 52 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL + ( 35 ) FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab2 WHERE - - 56 + - col1 IS NOT NULL
----
74

query I rowsort
SELECT DISTINCT 1 + + - ( + col2 ) FROM tab2
----
-22
-39
-57

query I rowsort
SELECT ALL - col2 + 5 AS col2 FROM tab1
----
-54
-63
-91

query I rowsort
SELECT ( + col2 ) + + - col0 FROM tab0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 87, - col2 + + 46 col0 FROM tab2 WHERE NOT NULL IS NOT NULL OR col0 - + - col0 > - col2
----
-87
-12
-87
23
-87
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3138
SELECT CAST( NULL AS SIGNED ) * - 15 + + MIN( + 30 ) / + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT CAST ( NULL AS INTEGER ) * - 15 + + MIN ( + 30 ) / + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT CAST( NULL AS SIGNED ) + col1 + 70 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT CAST ( NULL AS INTEGER ) + col1 + 70 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + - 99 ) AS col2 FROM tab1
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - - col1, - col2 )
----

query I rowsort
SELECT ALL + 93 + + 78 * col0 AS col0 FROM tab1 AS cor0
----
4071
6723
7191

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - - MAX( ALL - ( - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT - - MAX ( ALL - ( - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 8
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 JOIN tab0 AS cor1 ON NOT NULL = - 44 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * - 80 * - 66 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3146
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + - col2 / + col1 < ( - CAST( NULL AS SIGNED ) ) + col1
----

skipif mysql # not compatible
query III rowsort label-3146
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + - col2 / + col1 < ( - CAST ( NULL AS INTEGER ) ) + col1
----

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + + col2 + - 87 FROM tab0 AS cor0
----
-40
-77
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - ( + col1 ) = ( + + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 35 IS NOT NULL
----

query I rowsort
SELECT + ( + col0 ) + + + col0 FROM tab1
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT ( col1 ) DIV + - 85 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT ( col1 ) / + - 85 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 92 * + 28 FROM tab1
----
2576
2576
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT - MIN( ALL - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3154
SELECT - MIN ( ALL - col0 ) FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 / - col1 = NULL
----

query II rowsort
SELECT + col0, 14 FROM tab1
----
51
14
85
14
91
14

query II rowsort
SELECT DISTINCT col1, 4 AS col0 FROM tab1
----
14
4
47
4
5
4

query III rowsort
SELECT * FROM tab2 WHERE NOT - 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3159
SELECT - + ( - ( 94 ) ) DIV COUNT( * ) AS col0 FROM tab0 WHERE NOT col0 + + col1 IS NULL
----
31

skipif mysql # not compatible
query I rowsort label-3159
SELECT - + ( - ( 94 ) ) / COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 + + col1 IS NULL
----
31

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( + + col1 )
----

query II rowsort
SELECT - col0, + col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

query II rowsort
SELECT ALL 81, 17 AS col2 FROM tab2 AS cor0
----
81
17
81
17
81
17

query I rowsort
SELECT ALL 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 87 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
87

query I rowsort
SELECT + 55 AS col1 FROM tab1 WHERE NOT ( + col0 ) * col0 IS NULL
----
55
55
55

query I rowsort
SELECT - + ( + + 13 ) + + + 98 AS col2 FROM tab0 cor0
----
85
85
85

query I rowsort
SELECT ALL - + 36 AS col0 FROM tab0 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 83 * col2 + col2 * - + col2 * 52 AS col1, 84 col1 FROM tab1 AS cor0
----
-185909
84
-246092
84
-487200
84

query II rowsort
SELECT col1 + - - col0 * + 52 AS col1, + col2 FROM tab2 AS cor0
----
2443
23
3405
40
3967
58

query I rowsort
SELECT ALL - 56 + col2 * + 57 * - - col2 FROM tab1 AS cor0
----
198361
263512
525256

query II rowsort
SELECT ( col0 ) AS col0, col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ( COUNT( * ) ) AS col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3172
SELECT ( COUNT ( * ) ) AS col0 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT col2 + + 57 FROM tab2
----
115
80
97

query II rowsort
SELECT DISTINCT 11 AS col1, + col1 AS col2 FROM tab0
----
11
1
11
21
11
81

query I rowsort
SELECT DISTINCT 84 + col0 * + 12 * - 14 + - col2 AS col2 FROM tab0
----
-14542
-16311
-2483

query II rowsort
SELECT DISTINCT + col0 AS col2, + col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - MIN( ALL 18 ) - SUM( DISTINCT 58 ) AS col0 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3177
SELECT - MIN ( ALL 18 ) - SUM ( DISTINCT 58 ) AS col0 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT - col0 + - + col1 AS col0 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ( COUNT( * ) ) * - 32 AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-3179
SELECT ( COUNT ( * ) ) * - 32 AS col1 FROM tab2
----
-96

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT + CAST( col2 AS SIGNED ) AS col0 FROM tab0 WHERE ( 55 ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3181
SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 WHERE ( 55 ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + col0 BETWEEN 31 AND + 97 * 47
----

query I rowsort
SELECT DISTINCT + 92 FROM tab0 WHERE NOT + col2 IS NULL
----
92

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 80 * col2 + col0 = ( 82 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + col2 + col0 >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT DISTINCT COUNT( ALL col1 ) + - 85 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT COUNT ( ALL col1 ) + - 85 FROM tab2
----
-82

query I rowsort
SELECT - col2 + col1 FROM tab2 WHERE NOT col0 < NULL
----

query I rowsort
SELECT DISTINCT col1 * ( + col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT DISTINCT - ( - 55 ) DIV + 67 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3190
SELECT DISTINCT - ( - 55 ) / + 67 col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE + col1 + 36 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 - + col0 ) BETWEEN NULL AND 4
----

query I rowsort
SELECT DISTINCT col0 * + 34 FROM tab1
----
1734
2890
3094

query I rowsort
SELECT + 29 * col1 FROM tab1 WHERE NOT ( NULL ) IN ( - col1 * 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL + MIN( ALL - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + MIN ( ALL - col2 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3196
SELECT COUNT( * ) DIV 20 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3196
SELECT COUNT ( * ) / 20 col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 31 - 41 AS col1 FROM tab2
----
-72

query I rowsort
SELECT DISTINCT col2 + + col2 AS col1 FROM tab1 WHERE 72 IS NOT NULL
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3199
SELECT ALL * FROM tab1 WHERE col1 / + col0 BETWEEN - CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-3199
SELECT ALL * FROM tab1 WHERE col1 / + col0 BETWEEN - CAST ( NULL AS INTEGER ) AND + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( - col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - ( + COUNT( * ) ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3201
SELECT - ( + COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT MIN( ALL ( col1 ) ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3202
SELECT MIN ( ALL ( col1 ) ) AS col0 FROM tab1
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE 59 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - 55 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN + 91 AND ( 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ( + ( + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3207
SELECT ( + ( + COUNT ( * ) ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 53 * col2 AS col1 FROM tab1 WHERE NOT 8 * + col1 IN ( 76 * - col2 )
----
3127
3604
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT MAX( 35 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3209
SELECT MAX ( 35 ) FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3210
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) > + col2
----

skipif mysql # not compatible
query III rowsort label-3210
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) > + col2
----

query I rowsort
SELECT ALL + col1 * 78 FROM tab0 AS cor0
----
1638
6318
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT - MAX( - 71 ) AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT - MAX ( - 71 ) AS col0 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT 7 NOT BETWEEN - col2 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT DISTINCT + 12 DIV col1 AS col2 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + 12 / col1 AS col2 FROM tab1 AS cor0
----
0
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 79
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * col0 col2 FROM tab2
----
-3496
-4864
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3217
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IN ( 19 * + 23 )
----

skipif mysql # not compatible
query III rowsort label-3217
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( 19 * + 23 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 * - col0 col0 FROM tab0
----
-3741
-4171
-645

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3219
SELECT AVG ( DISTINCT - col0 ) FROM tab1 WHERE NOT NULL >= CAST( + col0 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT AVG ( DISTINCT - col0 ) FROM tab1 WHERE NOT NULL >= CAST ( + col0 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL + + 2 * MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL + + 2 * MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
102

query I rowsort
SELECT DISTINCT - 78 * 66 FROM tab2 AS cor0
----
-5148

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT DISTINCT - col0 DIV 85 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - col0 / 85 AS col0 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 + col0 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + 13 AS col0 FROM tab0 AS cor0 WHERE ( col0 ) <> + col1 + + ( - 24 ) * 49
----
14
34
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 21 BETWEEN ( + 10 * col2 ) AND ( col0 ) + col0
----

query I rowsort
SELECT ALL - 11 AS col2 FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col0 + - 17 AS col2 FROM tab2 AS cor0
----
29
47
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 4 IN ( + 52 / col0 )
----

query I rowsort
SELECT 74 / col1 + ( 43 ) AS col2 FROM tab2 WHERE + 53 IS NULL
----

query I rowsort
SELECT + col2 + col2 * ( col1 * 75 ) FROM tab2
----
231040
291508
87998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT DISTINCT - col2 + - CAST( + 86 AS SIGNED ) FROM tab0
----
-133
-185
-96

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT - col2 + - CAST ( + 86 AS INTEGER ) FROM tab0
----
-133
-185
-96

query I rowsort
SELECT ALL + 62 + col2 FROM tab2
----
102
120
85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 93 + - 52 / col2 ) <= - col1 * - ( + col0 )
----

query I rowsort
SELECT DISTINCT 48 + + - col2 AS col1 FROM tab2
----
-10
25
8

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE ( col0 ) <= col2
----
51

query I rowsort
SELECT col2 + - - col0 AS col2 FROM tab2
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT col2 * + ( ( CAST( 6 AS SIGNED ) ) ) + col1 AS col0 FROM tab0
----
363
595
81

skipif mysql # not compatible
query I rowsort label-3238
SELECT col2 * + ( ( CAST ( 6 AS INTEGER ) ) ) + col1 AS col0 FROM tab0
----
363
595
81

query I rowsort
SELECT 59 + - col1 FROM tab2
----
-18
-8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL COUNT( * ) + 42 + + COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL COUNT ( * ) + 42 + + COUNT ( * ) FROM tab1
----
48

query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT - MAX( + - col1 ) col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3242
SELECT - MAX ( + - col1 ) col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 17 * + col0 - - - 58 + + 41 * 38 FROM tab2
----
2282
2588
2775

query I rowsort
SELECT 28 * 19 FROM tab1 WHERE - + col1 IS NOT NULL
----
532
532
532

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + COUNT( * ) - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3246
SELECT + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT + col1 * - 76 - + 98 - col0 * col0 FROM tab2
----
-10046
-10815
-6090

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT - 81 - - COUNT( col0 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-3248
SELECT - 81 - - COUNT ( col0 ) FROM tab0
----
-78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 19 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 46 BETWEEN col0 + - 18 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL - SUM( + + ( - - col2 ) ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - SUM ( + + ( - - col2 ) ) AS col1 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col0 + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 86 IS NOT NULL
----

query I rowsort
SELECT + - col1 * + col2 AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT 2 * - COUNT( * ) col1 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3256
SELECT 2 * - COUNT ( * ) col1 FROM tab1
----
-6

query I rowsort
SELECT - col0 + col2 FROM tab0 WHERE NOT - 66 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL AND ( col0 * - col1 ) <= NULL
----

query I rowsort
SELECT ALL ( + 75 ) * - 39 AS col1 FROM tab1
----
-2925
-2925
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT DISTINCT + MAX( + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT + MAX ( + + col1 ) FROM tab2
----
77

query I rowsort
SELECT col1 * + 60 AS col0 FROM tab2
----
3060
4020
4620

query I rowsort
SELECT DISTINCT + col2 * + + ( 55 ) FROM tab0
----
2585
5445
550

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - ( - 82 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3264
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT NULL = + ( - CAST( NULL AS DECIMAL ) ) * + + col0
----

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT NULL = + ( - CAST ( NULL AS REAL ) ) * + + col0
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + col2 - + ( 66 ) ) IS NOT NULL
----

query I rowsort
SELECT col1 + - col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT - col2 * + - 26 - col0 * 30 + - ( col0 ) FROM tab1 AS cor0
----
-1053
-1101
915

query I rowsort
SELECT DISTINCT - + col1 + - - 78 AS col2 FROM tab0 AS cor0
----
-3
57
77

query I rowsort
SELECT - + 50 FROM tab2 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3271
SELECT DISTINCT + COUNT( * ) AS col2, - COUNT( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3271
SELECT DISTINCT + COUNT ( * ) AS col2, - COUNT ( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + - 14 >= ( NULL )
----

query I rowsort
SELECT ALL - col2 * + + col1 + - col2 * col2 FROM tab0 AS cor0
----
-310
-6016
-9900

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ALL COUNT( * ) + + 31 + + 3 AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL COUNT ( * ) + + 31 + + 3 AS col2 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL COUNT( * ) AS col0 FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL COUNT ( * ) AS col0 FROM tab0, tab0 cor0
----
9

query I rowsort
SELECT DISTINCT col0 - - col0 + col1 FROM tab2
----
143
205
217

query I rowsort
SELECT col1 - col2 * - + 70 FROM tab2
----
1661
2877
4127

query I rowsort
SELECT ALL + col1 - - col0 * 61 AS col1 FROM tab2
----
2857
3981
4642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT CAST( - col2 AS SIGNED ) - + col2 AS col0 FROM tab0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-3279
SELECT CAST ( - col2 AS INTEGER ) - + col2 AS col0 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT ALL + col1 * - 75 * + + col2 * + col2 + + 53 AS col1 FROM tab0 AS cor0
----
-13419622
-157447
-735022

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT DISTINCT COUNT( DISTINCT 27 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT COUNT ( DISTINCT 27 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col2 + + col0 * - col2 FROM tab2 AS cor0 WHERE - 9 IS NULL
----

query I rowsort
SELECT + col0 * - col2 + + col1 AS col2 FROM tab0 cor0
----
-624
-849
-9602

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT - 65 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-56

skipif mysql # not compatible
query I rowsort label-3285
SELECT - 65 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-56

query I rowsort
SELECT DISTINCT - 92 FROM tab2 AS cor0 WHERE ( ( - + col2 * col0 + col2 + + col1 ) IS NOT NULL )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT - MIN( col2 ) col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3287
SELECT DISTINCT - MIN ( col2 ) col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT col1 + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3289
SELECT col0 * - CAST( NULL AS SIGNED ) * + col2 AS col0, col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3289
SELECT col0 * - CAST ( NULL AS INTEGER ) * + col2 AS col0, col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3290
SELECT + 56, + 4 - MAX( ALL col0 ) AS col0 FROM tab0
----
56
-93

skipif mysql # not compatible
query II rowsort label-3290
SELECT + 56, + 4 - MAX ( ALL col0 ) AS col0 FROM tab0
----
56
-93

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 55 > NULL
----

query I rowsort
SELECT DISTINCT + col0 * - ( - col0 ) FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL COUNT( * ) FROM tab1 WHERE + - col2 - CAST( - 61 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL COUNT ( * ) FROM tab1 WHERE + - col2 - CAST ( - 61 AS INTEGER ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 11 BETWEEN NULL AND col2
----
87
21
10

query I rowsort
SELECT ALL + 74 FROM tab1 WHERE NOT 54 + 90 + - col1 - + col1 * + 10 * + 0 + ( + 26 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 * + ( + 72 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 63 * - + 14 AS col2 FROM tab1
----
-882

query I rowsort
SELECT ALL + col2 * - 35 + + col1 FROM tab1 AS cor0
----
-2060
-2333
-3346

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + ( + - col2 ) ) BETWEEN ( NULL ) AND - + col0 / - col2 * col1 * col2 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 25 col1 FROM tab1 cor0
----
25

query I rowsort
SELECT ALL + col2 + + 41 * 44 AS col2 FROM tab0 AS cor0
----
1814
1851
1903

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + 39 col0 FROM tab0 AS cor0
----
-60
-8
29

onlyif mysql # DIV for integer division: 
query II rowsort label-3303
SELECT ALL col2 DIV - - col2, col2 FROM tab1
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-3303
SELECT ALL col2 / - - col2, col2 FROM tab1
----
1
59
1
68
1
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 51 col0 FROM tab2
----
102
118
128

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT ALL + 84 * 42 AS col2, COUNT( * ) FROM tab0
----
3528
3

skipif mysql # not compatible
query II rowsort label-3305
SELECT ALL + 84 * 42 AS col2, COUNT ( * ) FROM tab0
----
3528
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3306
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) / + - col1 + + col1 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3306
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) / + - col1 + + col1 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT DISTINCT 93 DIV COUNT( ALL + 78 ) col1 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3307
SELECT DISTINCT 93 / COUNT ( ALL + 78 ) col1 FROM tab1 AS cor0
----
31

query I rowsort
SELECT ALL 67 + - col0 * col2 FROM tab0
----
-638
-803
-9536

query III rowsort
SELECT * FROM tab0 WHERE - 31 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 * 83 + + - col1 - - col1 * 74 + + 28 * - 78 * - + col1 col2 FROM tab0
----
181406
45986
846

query I rowsort
SELECT col1 + 81 FROM tab2
----
132
148
158

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT ALL col2 DIV + + 30 + + col0 FROM tab0
----
100
16
87

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL col2 / + + 30 + + col0 FROM tab0
----
100
16
87

query I rowsort
SELECT DISTINCT - col0 * + + ( + col1 ) - - col0 AS col1 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT col0 + + - CAST( - col2 AS SIGNED ) FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-3314
SELECT col0 + + - CAST ( - col2 AS INTEGER ) FROM tab1
----
144
147
159

query I rowsort
SELECT - 82 + col0 * - ( col0 ) * + 25 - col2 AS col1 FROM tab2
----
-102522
-140765
-53005

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT COUNT( * ) + 88 + - 7 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-3316
SELECT COUNT ( * ) + 88 + - 7 FROM tab2
----
84

query I rowsort
SELECT DISTINCT col2 + + col2 * 40 * col1 AS col2 FROM tab1
----
11859
127908
53856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - - col1 col1 FROM tab1
----
37
44
80

query III rowsort
SELECT ALL * FROM tab0 WHERE 26 <= + col2
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 col2 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL 54 - MIN( ALL - col1 ) AS col0 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL 54 - MIN ( ALL - col1 ) AS col0 FROM tab0
----
135

query I rowsort
SELECT col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL + + MIN( - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL + + MIN ( - + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL - SUM( DISTINCT + col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - SUM ( DISTINCT + col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT CAST( NULL AS SIGNED ) / - + col2 * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT CAST ( NULL AS INTEGER ) / - + col2 * + col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 2, - col0 AS col2 FROM tab2
----
2
-46
2
-64
2
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT - MAX( ALL - 53 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3327
SELECT - MAX ( ALL - 53 ) FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - - MAX( ALL - 94 ) AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3328
SELECT - - MAX ( ALL - 94 ) AS col1 FROM tab1 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT DISTINCT + col0 DIV col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT + col0 / col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

query I rowsort
SELECT DISTINCT + ( - - 56 ) AS col1 FROM tab2 cor0
----
56

query I rowsort
SELECT - 52 * + col0 FROM tab0 cor0
----
-4524
-5044
-780

query II rowsort
SELECT col0, 64 FROM tab1 AS cor0
----
51
64
85
64
91
64

query I rowsort
SELECT ALL - 36 FROM tab2 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3334
SELECT - MAX( - col0 ) * - 59 AS col2, - COUNT( * ) col2 FROM tab1
----
-3009
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3334
SELECT - MAX ( - col0 ) * - 59 AS col2, - COUNT ( * ) col2 FROM tab1
----
-3009
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + + - col0 - + col0 > NULL
----

query I rowsort
SELECT DISTINCT col1 * + 21 * + 83 * 24 FROM tab0
----
3388392
41832
878472

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT + 40 * + COUNT( * ), - 43 AS col1 FROM tab1
----
120
-43

skipif mysql # not compatible
query II rowsort label-3337
SELECT + 40 * + COUNT ( * ), - 43 AS col1 FROM tab1
----
120
-43

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT - + col0 + 70 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3339
SELECT ALL + col1 + + 59 DIV col1 AS col1, col2 * ( - + col0 ) * - col0 FROM tab0
----
23
75690
60
931491
81
10575

skipif mysql # not compatible
query II rowsort label-3339
SELECT ALL + col1 + + 59 / col1 AS col1, col2 * ( - + col0 ) * - col0 FROM tab0
----
23
75690
60
931491
81
10575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3340
SELECT ALL ( + CAST( - 7 AS SIGNED ) ) col1, COUNT( DISTINCT col0 ) FROM tab1
----
-7
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3340
SELECT ALL ( + CAST ( - 7 AS INTEGER ) ) col1, COUNT ( DISTINCT col0 ) FROM tab1
----
-7
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT - - COUNT( + + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3341
SELECT - - COUNT ( + + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3342
SELECT * FROM tab2 AS cor0 WHERE ( ( + col1 + + - 87 - CAST( + - col2 AS SIGNED ) ) > ( + - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3342
SELECT * FROM tab2 AS cor0 WHERE ( ( + col1 + + - 87 - CAST ( + - col2 AS INTEGER ) ) > ( + - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + 37 * + - COUNT( * ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-3343
SELECT + 37 * + - COUNT ( * ) FROM tab1 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT + + MIN( col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3344
SELECT + + MIN ( col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3345
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 + CAST( NULL AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-3345
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 + CAST ( NULL AS INTEGER ) AND - col2
----

query I rowsort
SELECT DISTINCT + col1 + - col1 + + col0 * + + ( - 3 ) * - 95 AS col0 FROM tab1
----
14535
24225
25935

query I rowsort
SELECT ALL 64 * 76 FROM tab1
----
4864
4864
4864

query I rowsort
SELECT DISTINCT col2 + + 44 FROM tab1
----
103
112
140

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3349
SELECT * FROM tab0 WHERE - + ( + - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3349
SELECT * FROM tab0 WHERE - + ( + - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT ALL - col0 + + col1 + + - col2 DIV - 94 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - col0 + + col1 + + - col2 / - 94 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT DISTINCT + MAX( ALL + col2 ) - + + COUNT( * ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT + MAX ( ALL + col2 ) - + + COUNT ( * ) FROM tab2
----
55

query I rowsort
SELECT col1 * col0 * - col2 - - 83 FROM tab1
----
-24992
-290753
-68461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col2 FROM tab2 WHERE + - col0 <= + + col2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3354
SELECT DISTINCT COUNT( * ) DIV - ( - 90 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT COUNT ( * ) / - ( - 90 ) AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 + - col2 AND - ( + col1 )
----

query I rowsort
SELECT ALL - 38 * + - col2 AS col0 FROM tab0 AS cor0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query II rowsort label-3357
SELECT DISTINCT + COUNT( * ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3357
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL + 12 + - 33 FROM tab2 AS cor0 WHERE - col2 NOT IN ( + ( - ( col0 ) ) )
----
-21
-21
-21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + - col2 * + - 58 + + - col0 AS col0, col0 AS col2 FROM tab2 WHERE NOT - 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT CAST( - col0 AS SIGNED ) col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3361
SELECT CAST ( - col0 AS INTEGER ) col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT + + MAX( ALL - 13 ) AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
-13

skipif mysql # not compatible
query I rowsort label-3362
SELECT + + MAX ( ALL - 13 ) AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT - 57 * - - COUNT( * ) FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-3363
SELECT - 57 * - - COUNT ( * ) FROM tab1
----
-171

query I rowsort
SELECT - col1 * - 55 FROM tab2
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL + COUNT( * ) + + - 90 - COUNT( * ) * + + 33 AS col1 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + COUNT ( * ) + + - 90 - COUNT ( * ) * + + 33 AS col1 FROM tab2
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3366
SELECT DISTINCT 57 AS col2, + COUNT( * ) * + MAX( ALL - col0 ) + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-3366
SELECT DISTINCT 57 AS col2, + COUNT ( * ) * + MAX ( ALL - col0 ) + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0
----
57
NULL

query I rowsort
SELECT + 2 * 39 * - + col2 + + + col0 FROM tab2
----
-1748
-3056
-4449

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT col0 + + - col1 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT - 56 + 58 - + col2 * + col0 FROM tab0
----
-703
-868
-9601

query I rowsort
SELECT col0 + 21 FROM tab2 AS cor0
----
67
85
96

query I rowsort
SELECT + col2 + col1 * + 14 FROM tab2 AS cor0
----
1118
737
996

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * col2 BETWEEN - col2 AND + - col2
----
97
1
99

query I rowsort
SELECT DISTINCT - + 35 AS col0 FROM tab0 AS cor0
----
-35

query I rowsort
SELECT DISTINCT + col1 * - - 85 FROM tab1 AS cor0
----
1190
3995
425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3376
SELECT - 25 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 25 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3378
SELECT DISTINCT + col2 / - CAST( NULL AS SIGNED ) * + 77 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT + col2 / - CAST ( NULL AS INTEGER ) * + 77 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - + col1 * - 80 FROM tab2 WHERE NOT ( NOT col2 / + col2 IS NULL )
----

query I rowsort
SELECT DISTINCT - col0 + 68 FROM tab2
----
-7
22
4

query I rowsort
SELECT ALL + col2 - - + 34 FROM tab0
----
133
44
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 34 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3383
SELECT ALL - - col0 AS col2, - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3383
SELECT ALL - - col0 AS col2, - CAST ( NULL AS REAL ) FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + 11
----

query I rowsort
SELECT + 57 * + col1 AS col1 FROM tab0 AS cor0
----
1197
4617
57

onlyif mysql # DIV for integer division: 
query II rowsort label-3386
SELECT - 93 DIV - col1 AS col1, col1 * + col2 FROM tab0
----
1
3807
4
210
93
99

skipif mysql # not compatible
query II rowsort label-3386
SELECT - 93 / - col1 AS col1, col1 * + col2 FROM tab0
----
1
3807
4
210
93
99

query I rowsort
SELECT ALL 93 * - - 37 AS col2 FROM tab2 AS cor0
----
3441
3441
3441

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT - col1 DIV + 64 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT - col1 / + 64 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - col1 + + - col0 + col2 FROM tab2 cor0
----
-101
-74
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT DISTINCT - col0 DIV + 87 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT - col0 / + 87 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT DISTINCT - 81 * COUNT( * ) AS col2, ( COUNT( * ) ) FROM tab1 AS cor0
----
-243
3

skipif mysql # not compatible
query II rowsort label-3391
SELECT DISTINCT - 81 * COUNT ( * ) AS col2, ( COUNT ( * ) ) FROM tab1 AS cor0
----
-243
3

query I rowsort
SELECT ALL + col0 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
174
194
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 8 / + col0 * col2 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3394
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + + col1 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3394
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + + col1 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0 + col1 AS col0, - 53 * - 74 AS col0 FROM tab2 AS cor0
----
141
3922
142
3922
97
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT DISTINCT MAX( DISTINCT - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab2
----
-46

query I rowsort
SELECT 25 * col0 AS col2 FROM tab1
----
1275
2125
2275

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 52 * 94 * + 41 + - col2 + + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT + CAST( NULL AS SIGNED ) * + + col0 / 49 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT + CAST ( NULL AS INTEGER ) * + + col0 / 49 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - 78 FROM tab1
----
-137
-146
-174

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3401
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) + + 62 + - COUNT( DISTINCT + col0 ) - COUNT( * ) * + - 21 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) + + 62 + - COUNT ( DISTINCT + col0 ) - COUNT ( * ) * + - 21 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 88 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 44 + + 17 FROM tab2 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT DISTINCT + 98 + COUNT( * ) * - - COUNT( * ) + + 11 DIV + COUNT( * ) FROM tab0 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + 98 + COUNT ( * ) * - - COUNT ( * ) + + 11 / + COUNT ( * ) FROM tab0 AS cor0
----
110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3405
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + ( - 62 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT CAST( + col1 AS SIGNED ) col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3407
SELECT CAST ( + col1 AS INTEGER ) col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT + - CAST( col2 AS SIGNED ) * - - 27 * + 17 + + - col2 AS col1 FROM tab0 AS cor0
----
-21620
-45540
-4600

skipif mysql # not compatible
query I rowsort label-3408
SELECT + - CAST ( col2 AS INTEGER ) * - - 27 * + 17 + + - col2 AS col1 FROM tab0 AS cor0
----
-21620
-45540
-4600

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL + + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3409
SELECT ALL + + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

query I rowsort
SELECT DISTINCT + - ( col0 ) - - + col0 + ( - - 2 ) FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT DISTINCT - col2 * - CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT - col2 * - CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT 98 AS col0, - 63 FROM tab2 AS cor0
----
98
-63
98
-63
98
-63

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT DISTINCT - COUNT( DISTINCT + + col0 ) AS col2, + COUNT( * ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-3415
SELECT DISTINCT - COUNT ( DISTINCT + + col0 ) AS col2, + COUNT ( * ) AS col1 FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3416
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + ( + 26 ) * - + col2 AS col2 FROM tab0 WHERE NOT + col1 + + col2 >= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT 95 DIV col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-3418
SELECT 95 / col0 FROM tab0
----
0
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT col0 * - + col2 DIV - + col2 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3419
SELECT col0 * - + col2 / - + col2 AS col2 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 5 * + 12, col2 * 80 col1 FROM tab0
----
60
3760
60
7920
60
800

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL - COUNT( ALL - col1 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL - COUNT ( ALL - col1 ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + col0 * + - 6 AS col2 FROM tab0 AS cor0
----
-522
-582
-90

query II rowsort
SELECT ALL + 92 AS col1, 27 * col1 AS col0 FROM tab1
----
92
1269
92
135
92
378

query I rowsort
SELECT DISTINCT - 4 * - col2 AS col1 FROM tab0
----
188
396
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT ALL CAST( NULL AS SIGNED ) * - + AVG ( - + 50 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL CAST ( NULL AS INTEGER ) * - + AVG ( - + 50 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 * + col0 * + + 79 FROM tab1 AS cor0
----
-33575
-337883
-56406

query I rowsort
SELECT DISTINCT + - col1 * col2 - + - col2 FROM tab0 cor0
----
-200
-3760
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT ALL + col0 DIV + + col1 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + col0 / + + col1 AS col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT ALL + 78 * + col2 + + col0 FROM tab1 AS cor0 WHERE NULL IN ( - 45, col0, 69 + + 43 + - col1 / - + col0 + + + col2, + + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL + 78 * + col2 + + col0 FROM tab1 AS cor0 WHERE NULL IN ( - 45, col0, 69 + + 43 + - col1 / - + col0 + + + col2, + + CAST ( - col1 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - col0 * - col1 * 68
----

query I rowsort
SELECT ALL col0 + + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT ALL col0 + - ( - col0 ) + + col0 DIV 27 FROM tab0 AS cor0
----
177
197
30

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL col0 + - ( - col0 ) + + col0 / 27 FROM tab0 AS cor0
----
177
197
30

query II rowsort
SELECT DISTINCT + col1 * + 54 AS col0, - 75 FROM tab1
----
2538
-75
270
-75
756
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3435
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3436
SELECT - ( - 15 ) DIV - 64 + - ( + 20 ) + col1 + - col0 AS col1 FROM tab1
----
-100
-57
-64

skipif mysql # not compatible
query I rowsort label-3436
SELECT - ( - 15 ) / - 64 + - ( + 20 ) + col1 + - col0 AS col1 FROM tab1
----
-100
-57
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - COUNT( * ) FROM tab1 WHERE NULL = col0
----
0

skipif mysql # not compatible
query I rowsort label-3437
SELECT - COUNT ( * ) FROM tab1 WHERE NULL = col0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= + col1 * + col1
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT DISTINCT + 89 DIV + + col2 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + 89 / + + col2 AS col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3440
SELECT DISTINCT 24 + + SUM( - 80 ) FROM tab0 AS cor0 WHERE NOT NULL <= + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT 24 + + SUM ( - 80 ) FROM tab0 AS cor0 WHERE NOT NULL <= + CAST ( NULL AS INTEGER )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col0 - - 86 * + 21 * 81 col1 FROM tab1
----
146323
146330
146366

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL - MAX( DISTINCT + 10 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL - MAX ( DISTINCT + 10 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT ( 27 ) AS col1 FROM tab2
----
27

query I rowsort
SELECT + col0 * + 70 FROM tab0
----
1050
6090
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL - MAX( ALL 56 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - MAX ( ALL 56 ) FROM tab1
----
-56

query I rowsort
SELECT ALL + col1 * 11 * - + 63 AS col2 FROM tab2
----
-35343
-46431
-53361

query I rowsort
SELECT - 81 * + col2 FROM tab1
----
-4779
-5508
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 23 AS col2, + col0 + - + col1 col2 FROM tab0
----
-23
-66
-23
66
-23
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 15, 81 + + 72 col2 FROM tab1
----
15
153
15
153
15
153

query I rowsort
SELECT ALL col1 * + - col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3451
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + ( + CAST( NULL AS SIGNED ) ) AND col2
----

skipif mysql # not compatible
query III rowsort label-3451
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + ( + CAST ( NULL AS INTEGER ) ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT + COUNT( + + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3452
SELECT + COUNT ( + + col2 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 6 IS NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE + 37 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT - + col1 + + ( - col1 ) AS col0 FROM tab2 cor0
----
-102
-134
-154

query I rowsort
SELECT + - 52 AS col2 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT SUM( - col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3457
SELECT SUM ( - col0 ) FROM tab2 cor0
----
-185

query I rowsort
SELECT DISTINCT 6 + + col1 * col1 AS col0 FROM tab0
----
447
6567
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3459
SELECT ALL + 15 DIV + CAST( + 73 AS SIGNED ) col0, + col2 + + col0 AS col0 FROM tab2
----
0
104
0
133
0
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3459
SELECT ALL + 15 / + CAST ( + 73 AS INTEGER ) col0, + col2 + + col0 AS col0 FROM tab2
----
0
104
0
133
0
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT MIN( ALL 62 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-3460
SELECT MIN ( ALL 62 ) FROM tab0
----
62

query I rowsort
SELECT ALL + col0 - - + col2 FROM tab1
----
144
147
159

query I rowsort
SELECT - col0 * col1 - - + 82 - col2 AS col0 FROM tab0
----
-114
-1180
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + COUNT( * ) * + 63 + COUNT( * ) + + - 16 AS col0 FROM tab1 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-3463
SELECT + COUNT ( * ) * + 63 + COUNT ( * ) + + - 16 AS col0 FROM tab1 AS cor0
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT 63 DIV + 58 + + - col1 + + + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3464
SELECT 63 / + 58 + + - col1 + + + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3465
SELECT DISTINCT - 66 DIV col2 + - 17 AS col2, + col0 FROM tab2 AS cor0
----
-18
64
-18
75
-19
46

skipif mysql # not compatible
query II rowsort label-3465
SELECT DISTINCT - 66 / col2 + - 17 AS col2, + col0 FROM tab2 AS cor0
----
-18
64
-18
75
-19
46

query I rowsort
SELECT - 83 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT - - 31 AS col0 FROM tab0 WHERE - - 13 = + 0 * - - 50
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 * - 21 * - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 * - 21 * - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT DISTINCT - col1 * + - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT - col1 * + - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT 48 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3473
SELECT 62 DIV - 67 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3473
SELECT 62 / - 67 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 * - 82 FROM tab2
----
4182
5494
6314

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col0 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT - 36 * + col2 * - + col2 * + 13 AS col1 FROM tab2
----
1574352
247572
748800

query II rowsort
SELECT - col0 AS col1, + 81 FROM tab0
----
-15
81
-87
81
-97
81

query II rowsort
SELECT ALL - col1 AS col2, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT DISTINCT - - col1 + + - col1 DIV - col2 - + col2 FROM tab0 cor0
----
-98
13
35

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - - col1 + + - col1 / - col2 - + col2 FROM tab0 cor0
----
-98
13
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT ALL + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT + + COUNT( * ) AS col2 FROM tab0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3484
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE - col2 IS NOT NULL
----
3

query I rowsort
SELECT - col2 + 61 AS col1 FROM tab2
----
21
3
38

query I rowsort
SELECT 24 * + + col2 + - - col1 FROM tab0
----
1209
2377
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT 61 * COUNT( * ) + - COUNT( * ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT 61 * COUNT ( * ) + - COUNT ( * ) FROM tab0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT DISTINCT + col1 - + CAST( ( col1 ) AS SIGNED ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3488
SELECT DISTINCT + col1 - + CAST ( ( col1 ) AS INTEGER ) col2 FROM tab2
----
0

query II rowsort
SELECT + 72 - - 2, col1 FROM tab0 AS cor0
----
74
1
74
21
74
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT COUNT( * ) AS col0 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3490
SELECT COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3491
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST( NULL AS SIGNED ) * 85 >= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3491
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST ( NULL AS INTEGER ) * 85 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3492
SELECT ALL - col2 * - col1 col2 FROM tab0 WHERE - col1 + - CAST( NULL AS DECIMAL ) NOT IN ( - 58, + ( col0 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3492
SELECT ALL - col2 * - col1 col2 FROM tab0 WHERE - col1 + - CAST ( NULL AS REAL ) NOT IN ( - 58, + ( col0 ) )
----

query I rowsort
SELECT ALL + 31 * + 3 FROM tab1 AS cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * 42 col1 FROM tab0 AS cor0
----
3654
4074
630

query II rowsort
SELECT ALL 6 AS col0, + col2 FROM tab2 AS cor0
----
6
23
6
40
6
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3496
SELECT - 89 DIV + COUNT( * ) AS col0 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-3496
SELECT - 89 / + COUNT ( * ) AS col0 FROM tab0
----
-29

query I rowsort
SELECT ALL + col1 / - 46 + - col0 + col1 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT - col0 DIV + + col1 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3498
SELECT - col0 / + + col1 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT - - col0 - - ( col2 ) AS col1 FROM tab0 WHERE NOT + 88 * 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab1 WHERE NOT NULL <> + 28
----

query I rowsort
SELECT ALL + 67 + - col2 AS col0 FROM tab0 AS cor0
----
-32
20
57

query I rowsort
SELECT DISTINCT + - 70 * + 97 - - 83 AS col2 FROM tab1 AS cor0
----
-6707

query I rowsort
SELECT col1 + + 91 FROM tab1
----
105
138
96

query I rowsort
SELECT ( + - 77 ) AS col0 FROM tab0 cor0
----
-77
-77
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col2 * + 71 + + ( - col2 ) AS col0 FROM tab1 cor0
----
4130
4760
6720

query I rowsort
SELECT ALL - 93 + col2 FROM tab0
----
-46
-83
6

query I rowsort
SELECT ALL + col0 + - ( - 14 ) AS col0 FROM tab0
----
101
111
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3509
SELECT 2 + - + COUNT( * ) AS col0 FROM tab0, tab2 AS cor0 WHERE NOT - + CAST( - 39 AS SIGNED ) < NULL
----
2

skipif mysql # not compatible
query I rowsort label-3509
SELECT 2 + - + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0 WHERE NOT - + CAST ( - 39 AS INTEGER ) < NULL
----
2

query I rowsort
SELECT 57 * - 54 + + + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL SUM( col2 ) * COUNT( * ) * SUM( col2 ) AS col2 FROM tab2
----
43923

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL SUM ( col2 ) * COUNT ( * ) * SUM ( col2 ) AS col2 FROM tab2
----
43923

query I rowsort
SELECT ALL 49 - + col1 FROM tab2 AS cor0
----
-18
-2
-28

query I rowsort
SELECT - ( + col2 ) / + col2 * + 26 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - ( col0 ) ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 NOT BETWEEN - + col1 + + col2 AND NULL
----

query II rowsort
SELECT ( - col0 ), + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT ALL + + 36 DIV - 61 + - + col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL + + 36 / - 61 + - + col1 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 81 * 70 AS col2 FROM tab1 cor0
----
5670

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + 73 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3520
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * - - col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * - - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
94
94
94

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT ALL - COUNT( col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL - COUNT ( col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL - + COUNT( * ) AS col1 FROM tab1 WHERE NOT - col1 * - 0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col1 * - 0 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT CAST( NULL AS SIGNED ) * - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3525
SELECT CAST ( NULL AS INTEGER ) * - + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT - 18 + col0 * col2 DIV - + 5 FROM tab0
----
-159
-192
-1938

skipif mysql # not compatible
query I rowsort label-3526
SELECT - 18 + col0 * col2 / - + 5 FROM tab0
----
-159
-192
-1938

query I rowsort
SELECT + 92 + - col2 + col0 AS col2 FROM tab2
----
109
115
116

query II rowsort
SELECT DISTINCT col0, + 3 FROM tab2
----
46
3
64
3
75
3

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ALL + SUM( DISTINCT 81 ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL + SUM ( DISTINCT 81 ) FROM tab2 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + col0 * 60
----

query I rowsort
SELECT 96 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL - 85 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT 15 AS col2 FROM tab0 WHERE - 99 > - CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3534
SELECT 15 AS col2 FROM tab0 WHERE - 99 > - CAST ( + - col0 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 92 col0 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT col1 + - col1 + + col1 AS col0 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL 34 AS col1, col0 AS col1 FROM tab1
----
34
51
34
85
34
91

query I rowsort
SELECT DISTINCT + ( - + 86 ) * - - col2 + - col1 AS col2 FROM tab0
----
-4123
-8515
-881

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT - 64 DIV col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 64 / col1 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3540
SELECT ALL + 9 - + + CAST( - 7 AS SIGNED ) * col1 * + - 41 AS col2 FROM tab2
----
-14628
-19220
-22090

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL + 9 - + + CAST ( - 7 AS INTEGER ) * col1 * + - 41 AS col2 FROM tab2
----
-14628
-19220
-22090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT - CAST( 76 AS SIGNED ) AS col1 FROM tab0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-3541
SELECT - CAST ( 76 AS INTEGER ) AS col1 FROM tab0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT ( + - 2 ) + - 0 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT ( 18 ) * col1 AS col2 FROM tab0
----
1458
18
378

query I rowsort
SELECT DISTINCT - - col2 + - - 63 AS col1 FROM tab1 WHERE NULL IS NULL
----
122
131
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3545
SELECT + col1 DIV - 30 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3545
SELECT + col1 / - 30 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - 12 * + + col2 AS col0 FROM tab0 AS cor0
----
-1188
-120
-564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 86 col1, + col2 FROM tab1
----
-86
59
-86
68
-86
96

query I rowsort
SELECT + 35 + - col2 FROM tab0 WHERE NOT col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT - col1 AS col0 FROM tab1 WHERE NOT NULL <> - - 92 / - col0 + ( - - col0 ) + CAST( + col0 AS SIGNED ) + + - col2
----

skipif mysql # not compatible
query I rowsort label-3549
SELECT - col1 AS col0 FROM tab1 WHERE NOT NULL <> - - 92 / - col0 + ( - - col0 ) + CAST ( + col0 AS INTEGER ) + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT ALL MAX( ALL + - col2 ) AS col1 FROM tab2 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL MAX ( ALL + - col2 ) AS col1 FROM tab2 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL COUNT( * ) * 71 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL COUNT ( * ) * 71 FROM tab1
----
213

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT ALL + CAST( - 5 AS SIGNED ) * + + 14 + col0 AS col1 FROM tab1 AS cor0
----
-19
15
21

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + CAST ( - 5 AS INTEGER ) * + + 14 + col0 AS col1 FROM tab1 AS cor0
----
-19
15
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 IN ( 28, 28 + - 41 )
----

query II rowsort
SELECT DISTINCT - col1 AS col1, 60 FROM tab0 AS cor0
----
-1
60
-21
60
-81
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT + + MIN( DISTINCT + col2 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
59
3

skipif mysql # not compatible
query II rowsort label-3556
SELECT + + MIN ( DISTINCT + col2 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
59
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + - MIN( ALL + - col1 ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3557
SELECT + - MIN ( ALL + - col1 ) col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL + col2 + col1 + + 73 FROM tab1 AS cor0
----
137
183
188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3559
SELECT - + 79 col2, + 68 * col0 * - CAST( NULL AS SIGNED ) * - col0 * + 23 FROM tab2 AS cor0
----
-79
NULL
-79
NULL
-79
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3559
SELECT - + 79 col2, + 68 * col0 * - CAST ( NULL AS INTEGER ) * - col0 * + 23 FROM tab2 AS cor0
----
-79
NULL
-79
NULL
-79
NULL

query I rowsort
SELECT DISTINCT + 75 + + + col0 FROM tab0
----
162
172
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT DISTINCT - 43 DIV col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT - 43 / col0 AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN + col0 AND + 82 * 48 * - - 85 + col1 - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3563
SELECT 83 DIV - COUNT( * ) AS col1, 75 AS col0 FROM tab2 AS cor0
----
-27
75

skipif mysql # not compatible
query II rowsort label-3563
SELECT 83 / - COUNT ( * ) AS col1, 75 AS col0 FROM tab2 AS cor0
----
-27
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL COUNT( * ) + - SUM( - col0 ) FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL COUNT ( * ) + - SUM ( - col0 ) FROM tab2 AS cor0
----
188

query I rowsort
SELECT ALL 7 + + - col0 FROM tab1 AS cor0
----
-44
-78
-84

query I rowsort
SELECT - 9 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT DISTINCT - ( - - 99 ) AS col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT ALL + ( col2 ) * - CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL + ( col2 ) * - CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3569
SELECT DISTINCT col1 AS col0, - 46 DIV col2 * col0 AS col2 FROM tab0 AS cor0
----
1
0
21
-348
81
0

skipif mysql # not compatible
query II rowsort label-3569
SELECT DISTINCT col1 AS col0, - 46 / col2 * col0 AS col2 FROM tab0 AS cor0
----
1
0
21
-348
81
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3570
SELECT + col0, - 30 DIV - + col1 AS col1 FROM tab1 AS cor0
----
51
2
85
6
91
0

skipif mysql # not compatible
query II rowsort label-3570
SELECT + col0, - 30 / - + col1 AS col1 FROM tab1 AS cor0
----
51
2
85
6
91
0

query I rowsort
SELECT 53 * - 85 FROM tab1 AS cor0
----
-4505
-4505
-4505

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL - COUNT( * ) + - 57 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - COUNT ( * ) + - 57 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3573
SELECT + - SUM( 90 ) DIV - - SUM( ALL + 67 ) AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3573
SELECT + - SUM ( 90 ) / - - SUM ( ALL + 67 ) AS col1 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL - + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 + - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 + - col1 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT + CAST( NULL AS SIGNED ) * + - ( 80 ) - - 70 * + col1 / + col0 + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT + CAST ( NULL AS INTEGER ) * + - ( 80 ) - - 70 * + col1 / + col0 + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT ALL + ( - + COUNT( * ) ) * + + ( + 53 ) AS col2 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL + ( - + COUNT ( * ) ) * + + ( + 53 ) AS col2 FROM tab2
----
-159

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 > col1 + + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL MAX( ALL - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL MAX ( ALL - col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL SUM( + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL SUM ( + col2 ) AS col0 FROM tab1
----
223

query II rowsort
SELECT ALL + col0 * - 51 AS col1, col2 FROM tab0 AS cor0
----
-4437
10
-4947
99
-765
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 WHERE NOT ( NOT ( - - col0 = col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 WHERE NOT + - col0 + + 55 IS NOT NULL
----

query I rowsort
SELECT + 86 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT + MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3584
SELECT + MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3586
SELECT COUNT( * ) AS col2, + 11 FROM tab0 AS cor0 WHERE NOT + 82 + col1 = + 82
----
3
11

skipif mysql # not compatible
query II rowsort label-3586
SELECT COUNT ( * ) AS col2, + 11 FROM tab0 AS cor0 WHERE NOT + 82 + col1 = + 82
----
3
11

query I rowsort
SELECT ALL ( col2 ) * - 53 AS col1 FROM tab0
----
-2491
-5247
-530

query I rowsort
SELECT DISTINCT - 15 + ( + col2 ) FROM tab1
----
44
53
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT - SUM( - - 50 ) col1 FROM tab0 WHERE NULL NOT IN ( - col0, - col2 + + - col1 * - 85 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3589
SELECT - SUM ( - - 50 ) col1 FROM tab0 WHERE NULL NOT IN ( - col0, - col2 + + - col1 * - 85 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT DISTINCT 65 DIV col0 * + col0 AS col1 FROM tab2
----
0
46
64

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT 65 / col0 * + col0 AS col1 FROM tab2
----
0
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT + 44 + - COUNT( + col0 ) AS col0 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-3591
SELECT + 44 + - COUNT ( + col0 ) AS col0 FROM tab1
----
41

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 < - col0 * + + 96 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 93 AS col2 FROM tab1 WHERE NULL IS NULL
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL - + COUNT( * ) * + 1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - + COUNT ( * ) * + 1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT ALL + + MIN( col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL + + MIN ( col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT - col2 FROM tab2 WHERE + + col0 < - + CAST( NULL AS SIGNED ) + + 98 + + 47 * - - col2 + + + col0
----

skipif mysql # not compatible
query I rowsort label-3596
SELECT - col2 FROM tab2 WHERE + + col0 < - + CAST ( NULL AS INTEGER ) + + 98 + + 47 * - - col2 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL - COUNT( * ) + + 70 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL - COUNT ( * ) + + 70 FROM tab2
----
67

query I rowsort
SELECT DISTINCT - col2 + + + col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 25 AS col0 FROM tab0 cor0
----
-25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + col2 * col1 + ( + 19 ) * + - 55 + + 23 + - - col0 + - col2 - - 76
----

query I rowsort
SELECT - col2 * - ( - col2 ) + - col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT ALL - 23 * CAST( - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
1173
1541
1771

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL - 23 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
1173
1541
1771

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 3 * - + col0 - + col1
----

query II rowsort
SELECT col1, 75 AS col0 FROM tab0
----
1
75
21
75
81
75

query II rowsort
SELECT ALL col2, col2 AS col0 FROM tab0
----
10
10
47
47
99
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NULL ) <= - col0 * 32 / 40 * - ( - col0 ) )
----

query II rowsort
SELECT 23 AS col2, - col0 AS col1 FROM tab1
----
23
-51
23
-85
23
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3608
SELECT DISTINCT col1 AS col1, CAST( NULL AS SIGNED ) * + col0 * - col0 + - - 5 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3608
SELECT DISTINCT col1 AS col1, CAST ( NULL AS INTEGER ) * + col0 * - col0 + - - 5 FROM tab1
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT DISTINCT + col2 AS col2, - col0 AS col2 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3610
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3611
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = - col1 * - CAST( - col2 AS SIGNED ) + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3611
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = - col1 * - CAST ( - col2 AS INTEGER ) + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + - col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 90 NOT BETWEEN NULL AND ( + 2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL - SUM( - 12 ) AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - SUM ( - 12 ) AS col0 FROM tab0
----
36

query I rowsort
SELECT col1 + + ( col0 + - 1 ) * 54 FROM tab0 WHERE col0 * col0 IS NOT NULL
----
4665
5185
837

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - 26 * col0 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT - col1 DIV - 72 - - col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3617
SELECT - col1 / - 72 - - col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3618
SELECT ALL - CAST( NULL AS SIGNED ) / COUNT( * ) + 62 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3618
SELECT ALL - CAST ( NULL AS INTEGER ) / COUNT ( * ) + 62 col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3619
SELECT ALL - col1 * - col0 AS col0 FROM tab1 WHERE CAST( col2 AS SIGNED ) * 41 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - col1 * - col0 AS col0 FROM tab1 WHERE CAST ( col2 AS INTEGER ) * 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL + COUNT( * ) * - COUNT( ALL + col1 * ( - 52 ) ) - - 29 AS col2 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + COUNT ( * ) * - COUNT ( ALL + col1 * ( - 52 ) ) - - 29 AS col2 FROM tab2
----
20

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL COUNT( ALL - 13 ) AS col0 FROM tab1 WHERE + 96 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL COUNT ( ALL - 13 ) AS col0 FROM tab1 WHERE + 96 IS NULL
----
0

query I rowsort
SELECT ( + ( col0 ) ) FROM tab2 WHERE NOT 27 <= + col1
----

query I rowsort
SELECT col0 * - 12 AS col1 FROM tab2
----
-552
-768
-900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3625
SELECT DISTINCT * FROM tab1 WHERE ( 97 * col1 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3625
SELECT DISTINCT * FROM tab1 WHERE ( 97 * col1 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT - COUNT( DISTINCT + 22 ) AS col0 FROM tab2 WHERE + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT - COUNT ( DISTINCT + 22 ) AS col0 FROM tab2 WHERE + col2 <> NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col2 - - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3628
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT + col0 < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT + col0 < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 - + col1 <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 6 IS NULL
----

query I rowsort
SELECT ALL + 79 * 92 AS col1 FROM tab1
----
7268
7268
7268

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3633
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + 7 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 20 * - 4 AS col1 FROM tab0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NOT - 14 + col1 = 53
----
-4

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NOT - 14 + col1 = 53
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3637
SELECT + 72 DIV COUNT( * ) AS col1 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3637
SELECT + 72 / COUNT ( * ) AS col1 FROM tab2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3638
SELECT DISTINCT COUNT( * ) * ( 22 DIV + 56 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT COUNT ( * ) * ( 22 / + 56 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col1 * 65 + 89 FROM tab2 AS cor0
----
3404
4444
5094

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( 74 * col2 )
----

query I rowsort
SELECT + col1 + 51 * - col2 FROM tab1 AS cor0
----
-3004
-3421
-4882

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 cor0 WHERE ( col1 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT - 32 + 23 AS col2 FROM tab0 WHERE ( 79 - col1 ) NOT IN ( - col0 )
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ( - COUNT( * ) ) FROM tab2 WHERE 7 + + 49 IN ( + 28 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT ( - COUNT ( * ) ) FROM tab2 WHERE 7 + + 49 IN ( + 28 * col2 )
----
0

query I rowsort
SELECT DISTINCT + col1 - - ( col0 ) * + col0 AS col0 FROM tab1
----
2615
7230
8328

query I rowsort
SELECT + - ( - 55 ) FROM tab0 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3647
SELECT ALL + 72 * 93 - 88 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL + 72 * 93 - 88 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 16 >= ( col1 * ( 13 * - col2 ) + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT + + COUNT( * ) * 24 FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-3649
SELECT + + COUNT ( * ) * 24 FROM tab0 cor0
----
72

query I rowsort
SELECT DISTINCT + col2 * 42 AS col0 FROM tab1 AS cor0
----
2478
2856
4032

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - 20 ) + col0 * 91 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 + col2 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL + + COUNT( * ) * + 49 AS col0 FROM tab0 cor0
----
147

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + + COUNT ( * ) * + 49 AS col0 FROM tab0 cor0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3654
SELECT ALL CAST( NULL AS SIGNED ) / ( MIN( + CAST( 6 AS SIGNED ) ) * MAX( ALL + 17 ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3654
SELECT ALL CAST ( NULL AS INTEGER ) / ( MIN ( + CAST ( 6 AS INTEGER ) ) * MAX ( ALL + 17 ) ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT DISTINCT 23 DIV col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT 23 / col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 66 * col1 FROM tab0 AS cor0
----
1386
5346
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 IN ( - 48 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 65 AS col0 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT ALL - col0 + col2 * col1 AS col0 FROM tab1 AS cor0 WHERE + 16 + - 98 * - col0 IS NOT NULL
----
1293
210
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + COUNT( * ) - COUNT( * ) AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT - 34 * CAST( - col2 AS SIGNED ) * col0 AS col1 FROM tab0
----
23970
29580
326502

skipif mysql # not compatible
query I rowsort label-3661
SELECT - 34 * CAST ( - col2 AS INTEGER ) * col0 AS col1 FROM tab0
----
23970
29580
326502

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT COUNT( * ) col2 FROM tab1 WHERE NOT - 12 * + col1 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3662
SELECT COUNT ( * ) col2 FROM tab1 WHERE NOT - 12 * + col1 + col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT DISTINCT + 53 DIV - 68 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT + 53 / - 68 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL + 42 FROM tab2 WHERE NULL <> + 37
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 69
----

query I rowsort
SELECT DISTINCT + col2 * + 99 * - 97 FROM tab2
----
-220869
-384120
-556974

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT + 3 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT + MAX( - 65 ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-3668
SELECT + MAX ( - 65 ) FROM tab2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL - COUNT( DISTINCT - 26 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - COUNT ( DISTINCT - 26 ) FROM tab2
----
-1

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col2 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT - - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3671
SELECT - - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > col1
----
46
51
23
64
77
40

query I rowsort
SELECT ( 79 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query II rowsort
SELECT DISTINCT - col2 AS col2, col0 FROM tab1
----
-59
85
-68
91
-96
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = ( - 11 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 col2 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT + ( - 90 ) FROM tab1 AS cor0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE NULL = + col2
----

query II rowsort
SELECT col1, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL - - MIN( DISTINCT + 10 ) col0 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3680
SELECT ALL - - MIN ( DISTINCT + 10 ) col0 FROM tab1 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND col0 * col1 - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 79 + - + 41 * 82 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 33 BETWEEN - col2 + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 86 NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + 70 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 / + 62 * 93 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3687
SELECT DISTINCT + COUNT( * ), - MIN( DISTINCT + - ( col0 ) ) + COUNT( * ) AS col1 FROM tab0 cor0
----
3
100

skipif mysql # not compatible
query II rowsort label-3687
SELECT DISTINCT + COUNT ( * ), - MIN ( DISTINCT + - ( col0 ) ) + COUNT ( * ) AS col1 FROM tab0 cor0
----
3
100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3688
SELECT * FROM tab2 AS cor0 WHERE ( + CAST( - + 11 AS SIGNED ) ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-3688
SELECT * FROM tab2 AS cor0 WHERE ( + CAST ( - + 11 AS INTEGER ) ) IN ( col1 )
----

query I rowsort
SELECT col1 + 95 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
116
176
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 6 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3691
SELECT col2 DIV - col1 + + - CAST( + + col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3691
SELECT col2 / - col1 + + - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - ( - + 77 ) * + col0 + - + col0 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT + - col2 AS col0 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT + 19 + - 26 + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT + 19 + - 26 + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col0 AS col0 FROM tab1 WHERE + col0 IS NOT NULL
----
-2601
-7225
-8281

query I rowsort
SELECT ALL col2 - - + 93 * + - col2 AS col1 FROM tab1
----
-5428
-6256
-8832

query I rowsort
SELECT col0 FROM tab2 WHERE - col2 < - 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT ALL col0 + - CAST( + col1 AS SIGNED ) FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL col0 + - CAST ( + col1 AS INTEGER ) FROM tab1
----
37
44
80

query I rowsort
SELECT ALL - col1 * - ( col2 ) AS col0 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab1 WHERE col2 = + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + col2 NOT BETWEEN ( + ( 85 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT ( + 92 ) >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3702
SELECT ALL COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT ( + 92 ) >= NULL
----
0

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 * col1 )
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 - - col2 + + col0 ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 49 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + - 88 - - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-3706
SELECT + - 88 - - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-165

query I rowsort
SELECT DISTINCT + col0 + + + col1 + col2 FROM tab1
----
149
161
206

query I rowsort
SELECT DISTINCT + col0 * 74 * col1 FROM tab0
----
135198
7178
89910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3709
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + - 38 * - col0 AS col0 FROM tab0 AS cor0
----
3306
3686
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL 74 * 97 * col0 + - + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL 74 * 97 * col0 + - + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 26 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - 49, col0 / - col1 )
----

query I rowsort
SELECT + - col2 * - col1 + + + col2 FROM tab1 AS cor0
----
1440
3264
354

query I rowsort
SELECT + ( + col1 ) * + - 88 + - col1 FROM tab0 AS cor0
----
-1869
-7209
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3715
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3715
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - 88 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 / + 86 IS NULL
----
-88
-88
-88

query I rowsort
SELECT ALL col0 * - - col0 FROM tab0 AS cor0
----
225
7569
9409

query II rowsort
SELECT DISTINCT col1 AS col2, 43 AS col2 FROM tab2
----
51
43
67
43
77
43

query I rowsort
SELECT - 43 * - col1 FROM tab2
----
2193
2881
3311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3720
SELECT DISTINCT - CAST( NULL AS SIGNED ), + COUNT( * ) col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3720
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + COUNT ( * ) col2 FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3721
SELECT - CAST( - - COUNT( * ) AS SIGNED ) * - COUNT( * ) * - + 53 + ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * - + 53 + ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT ALL ( 29 ) AS col1, + col2 + col2 FROM tab1
----
29
118
29
136
29
192

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - col1 + 54 + - col2
----

query I rowsort
SELECT DISTINCT - col1 + + ( 98 - 22 ) AS col1 FROM tab0 WHERE + + 68 NOT BETWEEN + + col1 AND ( col2 * - col1 )
----
-5
55
75

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 77 * col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( + ( + + 7 ) + - col1 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( + ( + + 7 ) + - col1 ) >= NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col0 - - + 72 ) BETWEEN col2 AND - + 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - AVG ( + col0 ) ) FROM tab2 AS cor0 WHERE NOT + col1 > - - col1 - + col1 + + - col1 + - 58
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 9 col2 FROM tab1
----
126
423
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 68 )
----

query I rowsort
SELECT ALL 17 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col0 IS NULL )
----
17
17
17

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT + - MAX( - 94 ) col1 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3734
SELECT + - MAX ( - 94 ) col1 FROM tab2 AS cor0
----
94

query I rowsort
SELECT ALL col2 + 97 * 45 + 4 * 27 + - + ( + col0 ) AS col2 FROM tab1
----
4447
4450
4518

query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab1 WHERE ( - 73 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT - COUNT( DISTINCT 17 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3737
SELECT - COUNT ( DISTINCT 17 ) AS col2 FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + - 92 + + col0 * - col1 <> - col2 * - col2 OR NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + col1 + - - col2 FROM tab0
----
175
199
41

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) > - 47
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT COUNT( * ) - - 1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-3741
SELECT COUNT ( * ) - - 1 FROM tab1
----
4

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( + col0 ) < NULL ) OR - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT 82 + SUM( DISTINCT + col1 ) FROM tab2
----
277

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT 82 + SUM ( DISTINCT + col1 ) FROM tab2
----
277

query I rowsort
SELECT - - 1 + col2 * 94 AS col0 FROM tab0 WHERE col1 BETWEEN - 19 AND 51
----
9307
941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 col0 FROM tab1
----
0

query II rowsort
SELECT DISTINCT 23, + col1 FROM tab0
----
23
1
23
21
23
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT 69 + - ( + + COUNT( * ) ) AS col1, 60 FROM tab1
----
66
60

skipif mysql # not compatible
query II rowsort label-3747
SELECT 69 + - ( + + COUNT ( * ) ) AS col1, 60 FROM tab1
----
66
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) BETWEEN - col0 * - + 76 + + ( - col0 ) + + + 79 * - 85 AND ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + ( - col1 ), - col0 col1 FROM tab2 AS cor0
----
-28
-46
-37
-64
-9
-75

query II rowsort
SELECT ALL 47, col0 FROM tab2 AS cor0
----
47
46
47
64
47
75

query I rowsort
SELECT DISTINCT - 60 * - + 36 FROM tab2 AS cor0
----
2160

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE ( - col2 / - + ( - col2 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3753
SELECT - col2 DIV CAST( - - ( + + 2 ) AS SIGNED ) AS col0 FROM tab0
----
-23
-49
-5

skipif mysql # not compatible
query I rowsort label-3753
SELECT - col2 / CAST ( - - ( + + 2 ) AS INTEGER ) AS col0 FROM tab0
----
-23
-49
-5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 49 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col1 ) col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3756
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 NOT IN ( + CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-3756
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 NOT IN ( + CAST ( NULL AS INTEGER ), col1 )
----

query I rowsort
SELECT col0 * + col2 * - + col0 AS col0 FROM tab0
----
-10575
-75690
-931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col2 FROM tab0
----
86

query I rowsort
SELECT DISTINCT - col2 * - 29 AS col2 FROM tab2
----
1160
1682
667

query I rowsort
SELECT DISTINCT col2 * - 30 FROM tab2
----
-1200
-1740
-690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT 94 FROM tab2 WHERE NOT col2 * + + ( - 26 ) IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3761
SELECT 94 FROM tab2 WHERE NOT col2 * + + ( - 26 ) IN ( - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT MAX( - + 47 ) AS col1 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-3762
SELECT MAX ( - + 47 ) AS col1 FROM tab0
----
-47

query I rowsort
SELECT ALL - col2 * - 22 FROM tab1
----
1298
1496
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL 40, col1 FROM tab1
----
40
14
40
47
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT DISTINCT + COUNT( - - col2 ) * 81 * + - 96 AS col2 FROM tab0
----
-23328

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT + COUNT ( - - col2 ) * 81 * + - 96 AS col2 FROM tab0
----
-23328

query I rowsort
SELECT + 10 + + col1 AS col2 FROM tab1 AS cor0
----
15
24
57

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab1 AS cor0 WHERE ( + 7 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT + 95 DIV - - col0 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-3769
SELECT + 95 / - - col0 col1 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - + SUM( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3770
SELECT - + SUM ( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL 60 AS col0 FROM tab2 AS cor0 WHERE 32 + + col2 + - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL MIN( DISTINCT + 55 ) * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-495

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL MIN ( DISTINCT + 55 ) * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-495

query I rowsort
SELECT DISTINCT + col1 + + 8 FROM tab1
----
13
22
55

query I rowsort
SELECT - 74 * col0 * - 67 FROM tab1
----
252858
421430
451178

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT + col2 * col2 * ( col1 ) + + + col2 + - col2 DIV + + 42 + - col1 + + col2 * col2 FROM tab2 AS cor0
----
124763
228742
27480

skipif mysql # not compatible
query I rowsort label-3775
SELECT + col2 * col2 * ( col1 ) + + + col2 + - col2 / + + 42 + - col1 + + col2 * col2 FROM tab2 AS cor0
----
124763
228742
27480

query II rowsort
SELECT + + 96 + - 68, col0 FROM tab0 AS cor0
----
28
15
28
87
28
97

query I rowsort
SELECT - 48 + col1 * - 39 AS col0 FROM tab0 cor0
----
-3207
-867
-87

query II rowsort
SELECT DISTINCT col2 AS col2, + 86 * 77 * + 78 AS col2 FROM tab1 AS cor0
----
59
516516
68
516516
96
516516

query I rowsort
SELECT + ( - col2 ) * 47 + 84 + col1 + - 52 + - col2 * - - col0 * - + col0 AS col1 FROM tab1
----
245230
423539
559991

query I rowsort
SELECT DISTINCT + col2 + - - col2 * - + col1 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT ( ( col1 ) ) * + col2 * - col2 + - 43 - ( - 52 ) + 3 * - + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3781
SELECT DISTINCT ( ( col1 ) ) * + col2 * - col2 + - 43 - ( - 52 ) + 3 * - + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL + 68 * + COUNT( * ) - - + COUNT( * ) AS col0 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL + 68 * + COUNT ( * ) - - + COUNT ( * ) AS col0 FROM tab0
----
207

query I rowsort
SELECT ALL col2 - - 66 AS col2 FROM tab0
----
113
165
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * col1 col0 FROM tab1 AS cor0
----
1092
3666
390

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3786
SELECT * FROM tab1 WHERE NOT - CAST( - col1 AS SIGNED ) NOT BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3786
SELECT * FROM tab1 WHERE NOT - CAST ( - col1 AS INTEGER ) NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + + col0 <> + + 5 - - col2 - - col0 + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 20 * + col0 * + 26 IS NOT NULL
----

query II rowsort
SELECT ALL - 74, + 91 * - + ( 58 ) + + + col2 AS col1 FROM tab1 AS cor0
----
-74
-5182
-74
-5210
-74
-5219

onlyif mysql # DIV for integer division: 
query I rowsort label-3791
SELECT col1 * - + col2 DIV - - col2 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3791
SELECT col1 * - + col2 / - - col2 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT - + COUNT( * ) DIV + 47 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT - + COUNT ( * ) / + 47 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( + col1 ) * col0 - - + col0 * - 62 FROM tab2 AS cor0
----
-506
375
960

query I rowsort
SELECT 3 + - 55 AS col1 FROM tab0 WHERE NOT - - col0 + + - col0 NOT IN ( col0, - 33, - - col2 + - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * col0 col2 FROM tab0
----
4350
4850
750

query I rowsort
SELECT ALL ( - col1 ) * - col1 AS col1 FROM tab0
----
1
441
6561

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 48 + - col2 IN ( col1 * + - 61 * + col0 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * - 41 FROM tab2
----
1886
2624
3075

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( col2 ) * + + ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT ( - SUM( DISTINCT - col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT ( - SUM ( DISTINCT - col0 ) ) FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 94 col2 FROM tab2 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 + col0 * + col2 col0 FROM tab2 AS cor0
----
2491
4281
989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 19 ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT + COUNT( ALL + + col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3804
SELECT + COUNT ( ALL + + col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + 61 FROM tab1 cor0 WHERE NOT 75 <> + + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3806
SELECT - 7 * COUNT( * ) DIV COUNT( * ) FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3806
SELECT - 7 * COUNT ( * ) / COUNT ( * ) FROM tab2 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + + MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3807
SELECT + + MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT MIN( DISTINCT col1 ) - 98 + ( COUNT( * ) ) AS col2 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT MIN ( DISTINCT col1 ) - 98 + ( COUNT ( * ) ) AS col2 FROM tab1
----
-90

query I rowsort
SELECT DISTINCT - col2 - - col1 + col1 + + col2 + + + col1 AS col0 FROM tab1
----
141
15
42

query I rowsort
SELECT + col0 * - col2 + + + 2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3811
SELECT ALL + AVG ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + AVG ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL - - MAX( ALL col0 ) / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - - MAX ( ALL col0 ) / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT 14 DIV + - col1 FROM tab1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3813
SELECT 14 / + - col1 FROM tab1
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT + 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-3814
SELECT DISTINCT + COUNT ( - col2 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 29 FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( - col0 ), col0 * + 43, + col0, + + col1 + + col0 + - - col2 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL + COUNT( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + COUNT ( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT - 1 * - SUM( - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3817
SELECT - 1 * - SUM ( - + col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + col0 * - 16 * + col0 * + + 59 FROM tab2 AS cor0
----
-1997504
-3866624
-5310000

query I rowsort
SELECT + col0 * - col1 + + col0 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT 26 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT 26 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col1, + 88 AS col1 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * - ( 72 ) + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3822
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - ( 72 ) + - COUNT ( * ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + col2 col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3824
SELECT ALL - col2 * - col0 + - col1, + col1 DIV col2 AS col1 FROM tab2 AS cor0
----
1007
2
2483
1
4283
1

skipif mysql # not compatible
query II rowsort label-3824
SELECT ALL - col2 * - col0 + - col1, + col1 / col2 AS col1 FROM tab2 AS cor0
----
1007
2
2483
1
4283
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 81 BETWEEN col1 - 29 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT col1 DIV col2 DIV 2 - 28 + 38 * 38 AS col0 FROM tab1
----
1416
1416
1416

skipif mysql # not compatible
query I rowsort label-3826
SELECT col1 / col2 / 2 - 28 + 38 * 38 AS col0 FROM tab1
----
1416
1416
1416

query III rowsort
SELECT * FROM tab1 WHERE - + 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL + + COUNT( + + col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + + COUNT ( + + col1 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 24 = NULL
----

query I rowsort
SELECT DISTINCT 3 * - col1 * - + col0 AS col2 FROM tab2 cor0
----
14784
15075
7038

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col1 ) <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 cor0 WHERE ( NOT col2 * col1 IS NULL )
----
14
47
5

query II rowsort
SELECT 33 AS col0, + col1 FROM tab0
----
33
1
33
21
33
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT ALL - col1 + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - col1 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + ( - 7 ) AS col0 FROM tab2
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT + MAX( + 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT + MAX ( + 70 ) FROM tab0 AS cor0
----
70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( - col2 ) * + + col1 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT ALL CAST( + 51 AS SIGNED ) col2 FROM tab0
----
51
51
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3839
SELECT ALL CAST ( + 51 AS INTEGER ) col2 FROM tab0
----
51
51
51

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 = - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 39 BETWEEN + 81 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3844
SELECT CAST( NULL AS DECIMAL ) / col1 * - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT CAST ( NULL AS REAL ) / col1 * - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3845
SELECT + 40 col1, - MIN( DISTINCT + + col2 ) AS col1 FROM tab2 cor0
----
40
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3845
SELECT + 40 col1, - MIN ( DISTINCT + + col2 ) AS col1 FROM tab2 cor0
----
40
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT - + MIN( DISTINCT 14 ) AS col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3846
SELECT - + MIN ( DISTINCT 14 ) AS col1 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ALL - col2 * - col0 + 6 FROM tab2 AS cor0
----
1064
2566
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL 60 + + + COUNT( ALL - 64 ) + + 65 FROM tab2 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL 60 + + + COUNT ( ALL - 64 ) + + 65 FROM tab2 AS cor0
----
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * + 2 + col0 col2 FROM tab1 AS cor0
----
245
279
285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3850
SELECT ALL * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) < - 90
----

skipif mysql # not compatible
query III rowsort label-3850
SELECT ALL * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) < - 90
----

query I rowsort
SELECT DISTINCT - col0 + 48 * - - col2 FROM tab0
----
2241
393
4655

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - 0 + col2 AND ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL - COUNT( - + col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL - COUNT ( - + col0 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT - - 25 + 46 - - MAX( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-3854
SELECT - - 25 + 46 - - MAX ( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT + - CAST( - 2 AS SIGNED ) + 59 AS col2 FROM tab0 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-3855
SELECT + - CAST ( - 2 AS INTEGER ) + 59 AS col2 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT ALL 45 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE 96 IS NOT NULL
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT col1 + + + 27 * + col2 * - 4 AS col1 FROM tab1
----
-10354
-6367
-7297

query I rowsort
SELECT ALL col1 - - 96 AS col1 FROM tab1 AS cor0
----
101
110
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT + 20 * + - COUNT( * ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + 20 * + - COUNT ( * ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT DISTINCT - col1 - + col0 AS col2 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3861
SELECT DISTINCT COUNT( * ) col1, - COUNT( * ) FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3861
SELECT DISTINCT COUNT ( * ) col1, - COUNT ( * ) FROM tab2 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + COUNT( + col1 ) - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3862
SELECT + COUNT ( + col1 ) - - COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT + 88 - col0 FROM tab2 AS cor0
----
13
24
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT DISTINCT + col0 * - CAST( - + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + col0 * - CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT + col0 DIV ( col2 ) * - col0 FROM tab0
----
-696
0
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT + col0 / ( col2 ) * - col0 FROM tab0
----
-696
0
0

query I rowsort
SELECT DISTINCT 48 * 99 AS col0 FROM tab0
----
4752

query I rowsort
SELECT - 48 AS col2 FROM tab2 WHERE NOT + col2 > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 + + - col0 / - + 32 NOT BETWEEN NULL AND - - col0
----

query I rowsort
SELECT - - col2 * - col0 + + + 34 FROM tab0 AS cor0
----
-671
-836
-9569

query I rowsort
SELECT DISTINCT 28 / - + col2 + + col2 FROM tab0 WHERE NOT NULL <> + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT DISTINCT + col2 DIV 55 + - col1 AS col0 FROM tab0 AS cor0
----
-21
-81
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + col2 / 55 + - col1 AS col0 FROM tab0 AS cor0
----
-21
-81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT + CAST( + 9 AS SIGNED ) * - + COUNT( 46 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3872
SELECT + CAST ( + 9 AS INTEGER ) * - + COUNT ( 46 ) FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT COUNT( * ) + - SUM( DISTINCT 16 ) AS col1 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT COUNT ( * ) + - SUM ( DISTINCT 16 ) AS col1 FROM tab1 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT 76 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT 76 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-3875
SELECT - SUM( ALL col0 ) - + - COUNT( * ) AS col0, - 52 + + AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT + 47 + + 58 * + - col0 * + + col2 * + 94 + + col1 + - col0 IS NOT NULL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3875
SELECT - SUM ( ALL col0 ) - + - COUNT ( * ) AS col0, - 52 + + AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT + 47 + + 58 * + - col0 * + + col2 * + 94 + + col1 + - col0 IS NOT NULL )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3876
SELECT DISTINCT col0 + - - col0 DIV - + col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT col0 + - - col0 / - + col0 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT ALL + + col2 * - + col2 FROM tab2 cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT 67 + + 98 FROM tab2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT 11 + COUNT( * ) AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-3879
SELECT 11 + COUNT ( * ) AS col0 FROM tab2
----
14

query I rowsort
SELECT + ( ( + col1 ) ) + col2 + - 24 FROM tab2
----
101
50
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT 90 + + col1 DIV col0 FROM tab0
----
90
90
95

skipif mysql # not compatible
query I rowsort label-3881
SELECT 90 + + col1 / col0 FROM tab0
----
90
90
95

query II rowsort
SELECT - 84, col1 FROM tab0 AS cor0
----
-84
1
-84
21
-84
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT 67 DIV col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3883
SELECT 67 / col0 FROM tab0 AS cor0
----
0
0
4

query I rowsort
SELECT col1 - + + ( col2 ) FROM tab2
----
28
37
9

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - + col0 ) * + 52 IS NULL
----

query I rowsort
SELECT - + 23 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT - 0 * col0 * 76 * + - col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT DISTINCT 33 * + + COUNT( * ) + 26 * - SUM( DISTINCT + col2 ) * - 77 FROM tab2 AS cor0
----
242341

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT 33 * + + COUNT ( * ) + 26 * - SUM ( DISTINCT + col2 ) * - 77 FROM tab2 AS cor0
----
242341

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE + 70 IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-3891
SELECT - + col0 DIV - + col0 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-3891
SELECT - + col0 / - + col0 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
1
15
1
87
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + COUNT( * ) * 34 AS col0 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3892
SELECT + COUNT ( * ) * 34 AS col0 FROM tab1 AS cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT - col2 DIV + ( - col1 ) FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-3893
SELECT - col2 / + ( - col1 ) FROM tab0
----
0
0
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3894
SELECT + ( - 62 ) DIV + COUNT( * ) AS col0 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-3894
SELECT + ( - 62 ) / + COUNT ( * ) AS col0 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT 74 AS col2, SUM( - 3 ) FROM tab2
----
74
-9

skipif mysql # not compatible
query II rowsort label-3895
SELECT 74 AS col2, SUM ( - 3 ) FROM tab2
----
74
-9

query II rowsort
SELECT DISTINCT + - col0 AS col2, 30 * - 80 * - 65 FROM tab1 WHERE NOT + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3897
SELECT DISTINCT CAST( NULL AS SIGNED ), 84 AS col2 FROM tab1
----
NULL
84

skipif mysql # not compatible
query II rowsort label-3897
SELECT DISTINCT CAST ( NULL AS INTEGER ), 84 AS col2 FROM tab1
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT DISTINCT - 6 * - 41 * + 26 * + MIN( ALL - col2 ) AS col0 FROM tab0
----
-633204

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT - 6 * - 41 * + 26 * + MIN ( ALL - col2 ) AS col0 FROM tab0
----
-633204

query I rowsort
SELECT ALL - col2 * - 51 FROM tab2
----
1173
2040
2958

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3900
SELECT CAST( NULL AS SIGNED ) AS col1, col0 + + col2 AS col1 FROM tab2
----
NULL
104
NULL
133
NULL
69

skipif mysql # not compatible
query II rowsort label-3900
SELECT CAST ( NULL AS INTEGER ) AS col1, col0 + + col2 AS col1 FROM tab2
----
NULL
104
NULL
133
NULL
69

query I rowsort
SELECT col2 * 96 AS col0 FROM tab0
----
4512
9504
960

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - col1 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT col0 * col1 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL OR ( NOT 92 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT DISTINCT + MIN( - + ( - col2 ) ) FROM tab1 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + MIN ( - + ( - col2 ) ) FROM tab1 WHERE NULL IS NULL
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
3

query I rowsort
SELECT + 49 * - ( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL + - col2 + - col1 + col0 * 15 AS col0, col1 AS col0 FROM tab0 AS cor0
----
1274
21
1355
1
97
81

query I rowsort
SELECT + - 35 * - col1 AS col1 FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT - SUM( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3910
SELECT - SUM ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + - MAX( + 27 ) AS col0 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3911
SELECT + - MAX ( + 27 ) AS col0 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT ALL - ( ( + + col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3913
SELECT ALL - 76 + - + 50 AS col1, + ( 38 ) / + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
-126
NULL
-126
NULL
-126
NULL

skipif mysql # not compatible
query II rowsort label-3913
SELECT ALL - 76 + - + 50 AS col1, + ( 38 ) / + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
-126
NULL
-126
NULL
-126
NULL

query I rowsort
SELECT DISTINCT col0 * col0 + - 13 * 24 AS col2 FROM tab1
----
2289
6913
7969

query I rowsort
SELECT ALL - 78 + 49 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT 83 * ( + 85 ) AS col2 FROM tab1
----
7055

query I rowsort
SELECT 72 - col1 + + + 54 * + col0 FROM tab1
----
2812
4657
4939

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT COUNT( * ) + + 1 AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3918
SELECT COUNT ( * ) + + 1 AS col0 FROM tab0 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col0 FROM tab1 cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 88 ) + col1 * - ( + 57 ) col0 FROM tab0 AS cor0
----
-1285
-145
-4705

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3921
SELECT * FROM tab0 WHERE - - col2 * - col2 + + 85 BETWEEN - col2 AND 91 / col0 * - CAST( NULL AS SIGNED ) * + col2 + 38
----

skipif mysql # not compatible
query III rowsort label-3921
SELECT * FROM tab0 WHERE - - col2 * - col2 + + 85 BETWEEN - col2 AND 91 / col0 * - CAST ( NULL AS INTEGER ) * + col2 + 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT ALL + col0 + - 94 + - CAST( - col1 AS SIGNED ) * + col1 FROM tab0
----
4
434
6482

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + col0 + - 94 + - CAST ( - col1 AS INTEGER ) * + col1 FROM tab0
----
4
434
6482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT CAST( - + col0 AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3923
SELECT CAST ( - + col0 AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL ( + 74 ) FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT - - ( 34 ) AS col1 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT + 40 * - + 58 - + - 66 - + - 97 AS col0 FROM tab0 AS cor0
----
-2157
-2157
-2157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 16 col0 FROM tab1 AS cor0
----
16
16
16

query II rowsort
SELECT DISTINCT - 20 AS col2, 33 AS col2 FROM tab1 AS cor0
----
-20
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT ALL - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3931
SELECT - 61 col1, + col2 DIV 1 FROM tab1 AS cor0
----
-61
59
-61
68
-61
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3931
SELECT - 61 col1, + col2 / 1 FROM tab1 AS cor0
----
-61
59
-61
68
-61
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT DISTINCT - - COUNT( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT - - COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 12 * + col0 AS col1 FROM tab2
----
552
768
900

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT col0 DIV 24 FROM tab0 WHERE NOT col0 * + col2 + - 43 <= - col2 + + 80
----
0
3
4

skipif mysql # not compatible
query I rowsort label-3934
SELECT col0 / 24 FROM tab0 WHERE NOT col0 * + col2 + - 43 <= - col2 + + 80
----
0
3
4

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - + col0 + - 15 AND col2 * + col2
----

query I rowsort
SELECT DISTINCT - ( - 51 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT COUNT( * ) DIV MAX( + + 43 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3938
SELECT COUNT ( * ) / MAX ( + + 43 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL col2 + + 10 FROM tab0
----
109
20
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * col2 col2 FROM tab0
----
2585
5445
550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT DISTINCT - CAST( - - 56 AS SIGNED ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - CAST ( - - 56 AS INTEGER ) FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ALL ( COUNT( - 87 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL ( COUNT ( - 87 ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col0 / + col1 / - 49 FROM tab0 AS cor0 WHERE - 89 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3944
SELECT DISTINCT - SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + 69 + - 79 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT - SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + 69 + - 79 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 59 + - col2 FROM tab0 cor0
----
-106
-158
-69

query I rowsort
SELECT DISTINCT - col0 + - 14 FROM tab1 AS cor0
----
-105
-65
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT 1 + - - col2 DIV - - col1 FROM tab0
----
1
1
100

skipif mysql # not compatible
query I rowsort label-3947
SELECT 1 + - - col2 / - - col1 FROM tab0
----
1
1
100

query I rowsort
SELECT ALL + col1 + + ( - 10 ) AS col0 FROM tab0
----
-9
11
71

query III rowsort
SELECT * FROM tab2 WHERE 63 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + col0 FROM tab1 WHERE NOT + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT DISTINCT + col2 DIV - 65 + - + col1 AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT + col2 / - 65 + - + col1 AS col2 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT ALL - 17 - - 7 AS col1, - 32 AS col1 FROM tab1
----
-10
-32
-10
-32
-10
-32

query I rowsort
SELECT DISTINCT 57 * col0 FROM tab2 AS cor0
----
2622
3648
4275

query I rowsort
SELECT - + col0 - - col1 AS col0 FROM tab0 cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL - COUNT( ALL + col1 ) * - 48 * COUNT( * ) * + 32 AS col1 FROM tab0 AS cor0
----
13824

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - COUNT ( ALL + col1 ) * - 48 * COUNT ( * ) * + 32 AS col1 FROM tab0 AS cor0
----
13824

query I rowsort
SELECT ALL + 39 * - 15 FROM tab0
----
-585
-585
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT - COUNT( * ) * + 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-747

skipif mysql # not compatible
query I rowsort label-3957
SELECT - COUNT ( * ) * + 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-747

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col0 FROM tab1 cor0
----
-78
-78
-78

query II rowsort
SELECT + + 0 * 33 AS col1, + 23 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 <= + col1
----

query II rowsort
SELECT DISTINCT - 13 AS col2, col2 AS col0 FROM tab0 AS cor0
----
-13
10
-13
47
-13
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT - COUNT( + + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT - COUNT ( + + col1 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + - col0, col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT + + col1 * - + 3 FROM tab1 AS cor0
----
-141
-15
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT ALL col1 DIV + 97 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL col1 / + 97 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT + COUNT( * ) * - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + COUNT ( * ) * - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 41 FROM tab0 AS cor0 WHERE NOT ( col0 ) < NULL
----

query II rowsort
SELECT + col1 AS col1, + col0 * + - 34 FROM tab1 cor0
----
14
-1734
47
-3094
5
-2890

query II rowsort
SELECT 12 AS col0, - col2 + - col2 + col1 + col2 - - - col2 FROM tab0 AS cor0
----
12
-13
12
-197
12
1

query I rowsort
SELECT + 18 + 75 AS col0 FROM tab2
----
93
93
93

query I rowsort
SELECT ALL + col0 + - - 83 * + col2 + - col0 AS col1 FROM tab0
----
3901
8217
830

query I rowsort
SELECT 3 * - 9 * - col0 AS col1 FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT + col0 * ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL - + COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - + COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 48 * - col2 + - - col2 * - col2 col0 FROM tab1 AS cor0
----
-13824
-6313
-7888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 + - - 80 * + 97 col1, - col0 FROM tab1 cor0 WHERE NOT ( NOT + - 68 * - - 35 - - col1 >= - 59 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + 34 / + 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT + COUNT( * ) + 20 FROM tab2 WHERE col2 NOT BETWEEN - 13 * col2 AND 13
----
23

skipif mysql # not compatible
query I rowsort label-3978
SELECT + COUNT ( * ) + 20 FROM tab2 WHERE col2 NOT BETWEEN - 13 * col2 AND 13
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT ( + COUNT( * ) ) - + + 52 AS col2 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT ( + COUNT ( * ) ) - + + 52 AS col2 FROM tab1
----
-49

query I rowsort
SELECT ALL col2 - + col2 + - col0 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - + 39 * - ( 13 ) col1 FROM tab1
----
566
575
603

query I rowsort
SELECT DISTINCT + 68 * - - col1 AS col1 FROM tab1
----
3196
340
952

query I rowsort
SELECT DISTINCT - 9 FROM tab0 AS cor0 WHERE NOT col2 + + + col0 - 7 >= NULL
----

query II rowsort
SELECT DISTINCT + - 1 * - - 18 * - col1 AS col2, col1 * - col1 AS col1 FROM tab2 AS cor0
----
1206
-4489
1386
-5929
918
-2601

query II rowsort
SELECT + 30 AS col1, 34 AS col2 FROM tab2 AS cor0
----
30
34
30
34
30
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3986
SELECT + COUNT( * ) DIV - 94 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3986
SELECT + COUNT ( * ) / - 94 AS col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3987
SELECT * FROM tab2 WHERE NOT col2 IN ( - col1, - col2, CAST( NULL AS SIGNED ) + - col1 + - - 22 )
----

skipif mysql # not compatible
query III rowsort label-3987
SELECT * FROM tab2 WHERE NOT col2 IN ( - col1, - col2, CAST ( NULL AS INTEGER ) + - col1 + - - 22 )
----

query I rowsort
SELECT ALL 92 * 12 * 60 AS col1 FROM tab0 AS cor0
----
66240
66240
66240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT + col0 * + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-3990
SELECT + col0 * + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3991
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) * + + ( + + col2 ) + + col1 AS col2, + col2 * + 93 AS col1 FROM tab2 AS cor0
----
-1122
2139
-3003
3720
-3819
5394

skipif mysql # not compatible
query II rowsort label-3991
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) * + + ( + + col2 ) + + col1 AS col2, + col2 * + 93 AS col1 FROM tab2 AS cor0
----
-1122
2139
-3003
3720
-3819
5394

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3992
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN + + col2 AND + - 63 + + col2
----

skipif mysql # not compatible
query III rowsort label-3992
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN + + col2 AND + - 63 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT DISTINCT + MAX( + - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT + MAX ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT SUM( - - col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT SUM ( - - col1 ) FROM tab0 cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT ALL col0 + - - col1 FROM tab0 AS cor0 WHERE ( NULL ) >= - CAST( NULL AS SIGNED ) + - 42 * + - col0
----

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL col0 + - - col1 FROM tab0 AS cor0 WHERE ( NULL ) >= - CAST ( NULL AS INTEGER ) + - 42 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT + + SUM( DISTINCT 79 ) * - 39 col1 FROM tab0 AS cor0
----
-3081

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3996
SELECT DISTINCT + + SUM ( DISTINCT 79 ) * - 39 col1 FROM tab0 AS cor0
----
-3081

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE NOT + col0 + - + col2 + col2 * + + 47 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE NOT + col0 + - + col2 + col2 * + + 47 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 - + - col0 BETWEEN - - 37 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4000
SELECT - col1 + + CAST( - - col1 AS SIGNED ) AS col1, - col0 * + col1 AS col0 FROM tab2
----
0
-2346
0
-4928
0
-5025

skipif mysql # not compatible
query II rowsort label-4000
SELECT - col1 + + CAST ( - - col1 AS INTEGER ) AS col1, - col0 * + col1 AS col0 FROM tab2
----
0
-2346
0
-4928
0
-5025

onlyif mysql # DIV for integer division: 
query II rowsort label-4001
SELECT col1 + col0 DIV 73, + col0 FROM tab2
----
51
46
68
75
77
64

skipif mysql # not compatible
query II rowsort label-4001
SELECT col1 + col0 / 73, + col0 FROM tab2
----
51
46
68
75
77
64

query I rowsort
SELECT ALL - col1 * + + 61 * col0 FROM tab1
----
-25925
-260897
-43554

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT 60 * - COUNT( * ) + - 43 + + 30 AS col0 FROM tab0
----
-193

skipif mysql # not compatible
query I rowsort label-4003
SELECT 60 * - COUNT ( * ) + - 43 + + 30 AS col0 FROM tab0
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT - SUM( DISTINCT + col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT - SUM ( DISTINCT + col1 ) FROM tab1 cor0
----
-66

query I rowsort
SELECT ALL + 44 - col0 AS col0 FROM tab0
----
-43
-53
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 45 col2, - col0 FROM tab1
----
-45
-51
-45
-85
-45
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IS NULL AND NOT + col2 IS NULL
----

query I rowsort
SELECT - col0 + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4009
SELECT MIN( + col1 ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT MIN ( + col1 ) + + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col2, + 67 AS col1 FROM tab0 AS cor0
----
10
67
47
67
99
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + MAX( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + MAX ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
96

query II rowsort
SELECT DISTINCT - - 59 AS col2, 62 AS col1 FROM tab2 AS cor0
----
59
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + + col0 col2 FROM tab1 AS cor0
----
117
151
157

query I rowsort
SELECT DISTINCT + col0 * 91 * + 26 + 41 FROM tab2
----
108877
151465
177491

query II rowsort
SELECT DISTINCT - 66 - - + 77 AS col2, + col2 AS col1 FROM tab0
----
11
10
11
47
11
99

query I rowsort
SELECT ( - ( col1 ) ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT 4 FROM tab2 WHERE NOT - + 34 <> - + col0 + - col0 + col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL MAX( + 54 ) * + 80 col0 FROM tab1 cor0
----
4320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4018
SELECT ALL MAX ( + 54 ) * + 80 col0 FROM tab1 cor0
----
4320

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT - col2 * - + CAST( - - 17 AS SIGNED ) FROM tab1 AS cor0
----
1003
1156
1632

skipif mysql # not compatible
query I rowsort label-4020
SELECT - col2 * - + CAST ( - - 17 AS INTEGER ) FROM tab1 AS cor0
----
1003
1156
1632

onlyif mysql # aggregate syntax: 
query II rowsort label-4021
SELECT + - SUM( DISTINCT + col2 ) AS col2, + 20 AS col0 FROM tab1 AS cor0
----
-223
20

skipif mysql # not compatible
query II rowsort label-4021
SELECT + - SUM ( DISTINCT + col2 ) AS col2, + 20 AS col0 FROM tab1 AS cor0
----
-223
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col0 FROM tab1
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT + COUNT( ALL - + col1 ) * COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4023
SELECT DISTINCT + COUNT ( ALL - + col1 ) * COUNT ( * ) col2 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) * - COUNT( + col2 ) + - COUNT( * ) + - COUNT( * ) * + COUNT( * ) col1 FROM tab2
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4024
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) * - COUNT ( + col2 ) + - COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) col1 FROM tab2
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-4025
SELECT DISTINCT + - 20 DIV - 30 * - col0, - col0 col1 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4025
SELECT DISTINCT + - 20 / - 30 * - col0, - col0 col1 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

query I rowsort
SELECT ALL col2 * - col1 * - - col0 * - - 92 AS col2 FROM tab0 AS cor0
----
-1680840
-5253660
-883476

query I rowsort
SELECT col2 + - 77 + - + col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4028
SELECT ALL + col1 * + CAST( - 35 AS SIGNED ), + col1 * + col0 * + - col2 - + col1 col0 FROM tab2 AS cor0
----
-1785
-54009
-2345
-291517
-2695
-197197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4028
SELECT ALL + col1 * + CAST ( - 35 AS INTEGER ), + col1 * + col0 * + - col2 - + col1 col0 FROM tab2 AS cor0
----
-1785
-54009
-2345
-291517
-2695
-197197

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT ALL 89 DIV - 26 + - + col0 + - + col2 DIV + col0 FROM tab1 AS cor0
----
-55
-88
-94

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL 89 / - 26 + - + col0 + - + col2 / + col0 FROM tab1 AS cor0
----
-55
-88
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT COUNT( * ) * + + 52 AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4030
SELECT COUNT ( * ) * + + 52 AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT + 45 IS NOT NULL
----

query I rowsort
SELECT - 87 AS col2 FROM tab1 cor0
----
-87
-87
-87

query II rowsort
SELECT ALL + + col2, + col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query II rowsort
SELECT ALL - col1 * + 55, col1 FROM tab2
----
-2805
51
-3685
67
-4235
77

query I rowsort
SELECT DISTINCT + 1 * - + 24 FROM tab1
----
-24

query I rowsort
SELECT - 84 + + + 78 * + 20 * + col1 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab1
----
-74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT - MIN( ALL + 29 ) AS col0 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-4039
SELECT - MIN ( ALL + 29 ) AS col0 FROM tab1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4040
SELECT - - COUNT( * ) - + CAST( + 43 AS SIGNED ) * - - COUNT( * ) AS col2 FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4040
SELECT - - COUNT ( * ) - + CAST ( + 43 AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab1 WHERE NULL <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT DISTINCT - 99 DIV - col2 AS col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT - 99 / - col2 AS col1 FROM tab2
----
1
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT DISTINCT MAX( ALL col0 ) AS col1 FROM tab2 WHERE - col0 + - - 24 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT MAX ( ALL col0 ) AS col1 FROM tab2 WHERE - col0 + - - 24 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL SUM( ALL col1 ) * + + 41 FROM tab2
----
7995

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL SUM ( ALL col1 ) * + + 41 FROM tab2
----
7995

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT DISTINCT - - col2 DIV col2 * - col1 DIV + + 40 + + - 79 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT - - col2 / col2 * - col1 / + + 40 + + - 79 FROM tab2 AS cor0
----
-80

query I rowsort
SELECT ALL - ( + 16 ) AS col2 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL + + 57 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT - + col1 DIV - col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4047
SELECT - + col1 / - col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 65 - + ( - col1 ) FROM tab0 AS cor0
----
146
66
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL + MIN( 38 ) FROM tab2 AS cor0 WHERE - col1 NOT IN ( 95, + 64, - - 63 )
----
38

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + MIN ( 38 ) FROM tab2 AS cor0 WHERE - col1 NOT IN ( 95, + 64, - - 63 )
----
38

query I rowsort
SELECT + + col2 * - + 74 AS col2 FROM tab0 AS cor0
----
-3478
-7326
-740

query I rowsort
SELECT ALL - - col1 FROM tab0 cor0 WHERE NOT ( NULL ) <= + ( - col1 )
----

query I rowsort
SELECT DISTINCT ( + + 50 ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT - - col2 * - 4 - + 96 + + - col2 AS col2 FROM tab0 AS cor0
----
-146
-331
-591

query I rowsort
SELECT DISTINCT + ( + 93 ) FROM tab0 AS cor0
----
93

query I rowsort
SELECT DISTINCT - 13 + + 21 AS col0 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL - col0 + - 43 + - col0 AS col2 FROM tab2
----
-135
-171
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4057
SELECT - col1 * + - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4057
SELECT - col1 * + - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col0 FROM tab2 cor0 WHERE NOT - 2 + 71 NOT IN ( + 40, + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 <> + - 83 * + + 46 + - 88 * - 24 + + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ( + SUM( col2 ) ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4060
SELECT ( + SUM ( col2 ) ) AS col0 FROM tab1
----
223

query I rowsort
SELECT ALL + 47 * - - 4 - - + col0 FROM tab2 AS cor0 WHERE NOT NULL < + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL ( + COUNT( DISTINCT - col0 ) ) FROM tab0 AS cor0 WHERE + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL ( + COUNT ( DISTINCT - col0 ) ) FROM tab0 AS cor0 WHERE + col2 <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4063
SELECT DISTINCT + - SUM( - - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT + - SUM ( - - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT DISTINCT 57 DIV - col1 AS col2 FROM tab0
----
-2
-57
0

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT 57 / - col1 AS col2 FROM tab0
----
-2
-57
0

query I rowsort
SELECT col2 + - col1 - col1 AS col1 FROM tab0
----
-115
-32
97

query I rowsort
SELECT DISTINCT 55 * + 93 * - 1 * + col1 AS col1 FROM tab1
----
-240405
-25575
-71610

query I rowsort
SELECT 2 + - + 33 FROM tab1
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - col2 * - 67 FROM tab1
----
3953
4556
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + COUNT( * ) * + 68 * + ( - 13 ) AS col0 FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
-7956

skipif mysql # not compatible
query I rowsort label-4070
SELECT + COUNT ( * ) * + 68 * + ( - 13 ) AS col0 FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
-7956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4071
SELECT DISTINCT COUNT( * ) DIV + CAST( + 11 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT COUNT ( * ) / + CAST ( + 11 AS INTEGER ) FROM tab0
----
0

query I rowsort
SELECT ALL col0 + - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT CAST( MIN( 22 ) AS SIGNED ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-4073
SELECT CAST ( MIN ( 22 ) AS INTEGER ) FROM tab2
----
22

query I rowsort
SELECT 77 + col0 FROM tab0 WHERE NOT col2 + + col2 > NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE ( + 39 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + 24 * - 95 + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT - ( COUNT( * ) ) DIV - 97 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT - ( COUNT ( * ) ) / - 97 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col0 FROM tab0 WHERE + 58 * + 87 + + col0 * - col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT + 96 * COUNT( * ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-4079
SELECT + 96 * COUNT ( * ) FROM tab2
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT 92 * COUNT( * ) FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-4080
SELECT 92 * COUNT ( * ) FROM tab2
----
276

query I rowsort
SELECT ALL 5 FROM tab1 WHERE + col2 + - col2 NOT BETWEEN ( NULL ) AND ( col1 )
----

query I rowsort
SELECT 66 AS col1 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT ALL - 29 DIV - 2 AS col0 FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - 29 / - 2 AS col0 FROM tab1
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT DISTINCT 11 + + CAST( col2 AS SIGNED ) * + 26 AS col1 FROM tab0 WHERE NULL NOT IN ( col2 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT 11 + + CAST ( col2 AS INTEGER ) * + 26 AS col1 FROM tab0 WHERE NULL NOT IN ( col2 * - col1 )
----

query I rowsort
SELECT - 20 + - col1 AS col2 FROM tab1
----
-25
-34
-67

query I rowsort
SELECT DISTINCT 96 * - ( + 76 ) + 27 / col1 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT DISTINCT + 70 DIV col1 FROM tab0
----
0
3
70

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT + 70 / col1 FROM tab0
----
0
3
70

query I rowsort
SELECT - ( 14 ) * + col1 AS col1 FROM tab2
----
-1078
-714
-938

query I rowsort
SELECT DISTINCT col1 - 21 AS col1 FROM tab1 WHERE NOT - col2 <= ( NULL )
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT 78 + 61 * 22 = ( col0 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NOT 56 NOT BETWEEN - col2 AND ( + col1 * ( col0 ) )
----
3

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE NOT 56 NOT BETWEEN - col2 AND ( + col1 * ( col0 ) )
----
3

query I rowsort
SELECT ALL ( - 74 ) FROM tab1
----
-74
-74
-74

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN - col0 + 10 AND ( - 9 )
----

query I rowsort
SELECT DISTINCT + col2 - col0 AS col2 FROM tab1 WHERE NULL < + col1
----

query I rowsort
SELECT DISTINCT + 28 + col1 AS col2 FROM tab1 WHERE ( + ( ( - col2 ) ) * 21 ) IS NOT NULL
----
33
42
75

query I rowsort
SELECT 32 FROM tab1 WHERE NOT NULL <> + col0 * 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT + 90 - - MIN( 37 ) FROM tab1
----
127

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT + 90 - - MIN ( 37 ) FROM tab1
----
127

query III rowsort
SELECT * FROM tab2 WHERE 8 + col2 >= 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE - 89 * + 64 BETWEEN ( 73 ) AND ( + col1 )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE ( - col2 ) = ( col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4101
SELECT MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > 1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4104
SELECT + CAST( NULL AS DECIMAL ) * 94 col0 FROM tab2 WHERE NOT - col2 + col0 < + col0 * col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4104
SELECT + CAST ( NULL AS REAL ) * 94 col0 FROM tab2 WHERE NOT - col2 + col0 < + col0 * col2
----

query I rowsort
SELECT DISTINCT - 45 FROM tab1 AS cor0 CROSS JOIN tab1
----
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 56 ) IN ( - col2 - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4107
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 44 + + CAST( NULL AS SIGNED ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4107
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 44 + + CAST ( NULL AS INTEGER ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT DISTINCT AVG ( col1 ) FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN col1 * - CAST( ( + 91 ) AS SIGNED ) + 15 AND - col0 + - ( 9 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT AVG ( col1 ) FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN col1 * - CAST ( ( + 91 ) AS INTEGER ) + 15 AND - col0 + - ( 9 + col0 )
----
NULL

query I rowsort
SELECT + ( + 72 ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + + ( - col2 ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col1 + col2 * 53 AS col2 FROM tab0 AS cor0
----
2410
509
5246

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 70 NOT BETWEEN NULL AND ( - 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col1 ) + 36 AS col2 FROM tab2 AS cor0
----
-15
-31
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT ALL + + COUNT( * ) * ( COUNT( * ) / COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL + + COUNT ( * ) * ( COUNT ( * ) / COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( 3 * - col2 + col2 / + 20 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT SUM( ALL - 56 ) FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-4117
SELECT SUM ( ALL - 56 ) FROM tab1
----
-168

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + col0 NOT BETWEEN + col1 AND - col1 * + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT DISTINCT - ( - COUNT( ALL + 98 ) ) + COUNT( + ( 51 ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT - ( - COUNT ( ALL + 98 ) ) + COUNT ( + ( 51 ) ) FROM tab0
----
6

query I rowsort
SELECT ALL col2 + + 20 + ( col1 ) AS col1 FROM tab2
----
137
145
94

query I rowsort
SELECT DISTINCT 79 - - - 92 FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT DISTINCT + MIN( 97 ) AS col2 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT + MIN ( 97 ) AS col2 FROM tab1
----
97

query I rowsort
SELECT - col0 * + 5 + + col1 FROM tab1
----
-241
-408
-420

query I rowsort
SELECT ALL + 53 AS col0 FROM tab1 cor0
----
53
53
53

query I rowsort
SELECT + col0 + 95 + col2 AS col0 FROM tab0 AS cor0
----
157
192
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col2 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT ALL - col0 + - 80 * - col2 AS col1 FROM tab1 AS cor0
----
4635
5349
7629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT + CAST( + ( + col2 ) AS SIGNED ) + col0 col1 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4128
SELECT + CAST ( + ( + col2 ) AS INTEGER ) + col0 col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab1 AS cor0 WHERE NOT 16 + col0 * - ( + col0 ) = ( 85 )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT + - col1 * - + col2 + + col0 DIV + 4 AS col1 FROM tab1 cor0
----
1356
316
3218

skipif mysql # not compatible
query I rowsort label-4130
SELECT + - col1 * - + col2 + + col0 / + 4 AS col1 FROM tab1 cor0
----
1356
316
3218

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL ) OR ( NULL ) BETWEEN col0 AND col1 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * col1 + - + 25 FROM tab0 AS cor0
----
185
3782
74

query I rowsort
SELECT 6 * - col0 FROM tab0 AS cor0
----
-522
-582
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 * - col0 col0 FROM tab1 cor0
----
-1224
-2040
-2184

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4135
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + + 39 * + CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-4135
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + + 39 * + CAST ( NULL AS INTEGER ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT ALL ( - - col2 ) DIV ( + + col1 ) FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL ( - - col2 ) / ( + + col1 ) FROM tab0
----
0
0
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT BETWEEN col2 / + col2 AND ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 + + col1 - 93 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4139
SELECT DISTINCT 59 DIV COUNT( * ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT 59 / COUNT ( * ) FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4140
SELECT ALL COUNT( ALL + + 72 ) AS col0, 19 AS col1 FROM tab2
----
3
19

skipif mysql # not compatible
query II rowsort label-4140
SELECT ALL COUNT ( ALL + + 72 ) AS col0, 19 AS col1 FROM tab2
----
3
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 <> ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4141
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 <> ( - col0 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 85 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4143
SELECT DISTINCT - - 40 * CAST( NULL AS SIGNED ) AS col2, + col2 + - + col0 + col0 * + col2 FROM tab2 AS cor0
----
NULL
1035
NULL
2536
NULL
4333

skipif mysql # not compatible
query II rowsort label-4143
SELECT DISTINCT - - 40 * CAST ( NULL AS INTEGER ) AS col2, + col2 + - + col0 + col0 * + col2 FROM tab2 AS cor0
----
NULL
1035
NULL
2536
NULL
4333

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 52 + + + col2 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ( + ( - - COUNT( * ) ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4145
SELECT ( + ( - - COUNT ( * ) ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT ALL - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + col2 * 42 AS col2 FROM tab2
----
1680
2436
966

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < ( - - col0 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT SUM( - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT SUM ( - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT ALL - SUM( DISTINCT - - 18 ) AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - SUM ( DISTINCT - - 18 ) AS col1 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ALL 81 * 10 FROM tab2 AS cor0
----
810
810
810

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT - MAX( ALL - col1 ) AS col2 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT - MAX ( ALL - col1 ) AS col2 FROM tab2 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 / - 42 - col2 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + 7 FROM tab1 AS cor0
----
58
92
98

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + col2 + + ( col1 ) AS col0 FROM tab1
----
149
161
206

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT - COUNT( * ) FROM tab2 WHERE - - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4159
SELECT - COUNT ( * ) FROM tab2 WHERE - - col0 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4160
SELECT DISTINCT col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4160
SELECT DISTINCT col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT + 83 * 9 + - - col2 * col0 AS col1 FROM tab0
----
10350
1452
1617

query I rowsort
SELECT DISTINCT + col0 - - col2 * + 1 - 29 + - + col1 AS col2 FROM tab1
----
104
110
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ( - COUNT( * ) ) FROM tab2 WHERE ( NULL ) > 90
----
0

skipif mysql # not compatible
query I rowsort label-4163
SELECT ( - COUNT ( * ) ) FROM tab2 WHERE ( NULL ) > 90
----
0

query I rowsort
SELECT DISTINCT - - 66 AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
66

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT + + ( + 16 ) * + + col2 - + + col1 FROM tab0 cor0
----
139
1583
671

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > + col2
----

query I rowsort
SELECT + - 20 - + 61 + col1 AS col1 FROM tab0 AS cor0
----
-60
-80
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 45 NOT IN ( - 77 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4170
SELECT + CAST( NULL AS DECIMAL ) + - + col0 FROM tab1 AS cor0 WHERE col0 + + 84 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4170
SELECT + CAST ( NULL AS REAL ) + - + col0 FROM tab1 AS cor0 WHERE col0 + + 84 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * - - col2 - + col1 AS col2 FROM tab0
----
2128
79
9800

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL IN ( + col0 * + - 15, - 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT + 29 * - MAX( + col2 ) * - - COUNT( * ) + - COUNT( * ) - - 98 AS col0 FROM tab0 AS cor0
----
-8518

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT + 29 * - MAX ( + col2 ) * - - COUNT ( * ) + - COUNT ( * ) - - 98 AS col0 FROM tab0 AS cor0
----
-8518

query I rowsort
SELECT ALL - col0 * - col1 + col1 FROM tab2 cor0
----
2397
5005
5092

query I rowsort
SELECT + 75 * - col1 * + 77 FROM tab2 AS cor0
----
-294525
-386925
-444675

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col0 * - - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( 31 ) AND + - 16
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + + 48 BETWEEN 13 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * col1 + col1 col2 FROM tab1 AS cor0
----
210
705
75

query I rowsort
SELECT DISTINCT + col0 * + - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT 45 FROM tab0 AS cor0 WHERE NOT 25 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT DISTINCT col2 DIV + + col0 AS col2 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT col2 / + + col0 AS col2 FROM tab0 cor0
----
0
1
3

query I rowsort
SELECT - col0 + - 20 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT 67 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT 67 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col1, - col2 * - + col0 AS col0 FROM tab1
----
14
4896
47
6188
5
5015

query I rowsort
SELECT DISTINCT 68 * + col2 FROM tab0
----
3196
6732
680

onlyif mysql # aggregate syntax: 
query II rowsort label-4189
SELECT - 2 AS col0, + COUNT( * ) * - MAX( DISTINCT + col2 ) FROM tab2
----
-2
-174

skipif mysql # not compatible
query II rowsort label-4189
SELECT - 2 AS col0, + COUNT ( * ) * - MAX ( DISTINCT + col2 ) FROM tab2
----
-2
-174

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - 59 col1 FROM tab2 WHERE + - 15 - + - 63 + col0 * col2 - - col2 > NULL
----

query II rowsort
SELECT + col2, 37 * + + col2 FROM tab1 AS cor0
----
59
2183
68
2516
96
3552

query II rowsort
SELECT ALL col1, - ( + col1 ) / + + 26 * + 0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT DISTINCT + + 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT 97 + - COUNT( * ) + + - 34 * + 85 FROM tab2 WHERE col2 - - col1 * - 48 <= + 59
----
-2796

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT 97 + - COUNT ( * ) + + - 34 * + 85 FROM tab2 WHERE col2 - - col1 * - 48 <= + 59
----
-2796

query I rowsort
SELECT ( + - 43 ) FROM tab1 AS cor0
----
-43
-43
-43

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - - col2 BETWEEN 7 AND NULL
----

query I rowsort
SELECT DISTINCT col0 - col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + col1 + 54 AS col2 FROM tab0 cor0
----
-156
-3753
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 BETWEEN 34 AND - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT + COUNT( * ) * + MAX( ALL - col2 ) * + MAX( - 78 ) AS col1 FROM tab2 cor0
----
5382

skipif mysql # not compatible
query I rowsort label-4201
SELECT + COUNT ( * ) * + MAX ( ALL - col2 ) * + MAX ( - 78 ) AS col1 FROM tab2 cor0
----
5382

query II rowsort
SELECT DISTINCT + + col1 * 25 + - ( - - col0 ) AS col2, - ( 80 ) FROM tab2 AS cor0
----
1229
-80
1600
-80
1861
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT + - 68 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT + - 68 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 0 IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 + - col1 * - + col2 FROM tab0 WHERE + 27 NOT BETWEEN col1 AND col0 * - col2
----
0
200
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT MAX( DISTINCT + col2 ) + + COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT MAX ( DISTINCT + col2 ) + + COUNT ( * ) FROM tab1
----
99

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE + col0 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col2 + + 65 FROM tab2
----
105
123
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT MIN( ALL + col2 ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4209
SELECT DISTINCT MIN ( ALL + col2 ) col1 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT 53 + - 81 * COUNT( * ) * + + COUNT( * ) FROM tab2
----
-676

skipif mysql # not compatible
query I rowsort label-4210
SELECT 53 + - 81 * COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + col2 * - + 79 col2 FROM tab0
----
-3620
-697
-7728

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT ALL - - MAX( + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - - MAX ( + col2 ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT + - 32 * 94 FROM tab2 AS cor0
----
-3008

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT 62 + + 61 + - 11 DIV + col1 AS col1 FROM tab1 AS cor0
----
121
123
123

skipif mysql # not compatible
query I rowsort label-4214
SELECT 62 + + 61 + - 11 / + col1 AS col1 FROM tab1 AS cor0
----
121
123
123

query I rowsort
SELECT ALL col0 * - + 69 FROM tab1 AS cor0
----
-3519
-5865
-6279

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 20 > + col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( + 55 * - col1 * + col0 ) <= + 49
----
0

skipif mysql # not compatible
query I rowsort label-4217
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( + 55 * - col1 * + col0 ) <= + 49
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT DISTINCT CAST( - - 33 AS SIGNED ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT CAST ( - - 33 AS INTEGER ) FROM tab0
----
33

query I rowsort
SELECT col2 * - 45 FROM tab0
----
-2115
-4455
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 22 col0 FROM tab0
----
1
22
21
22
81
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4221
SELECT DISTINCT - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col1 AS col1, col0 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT + 38 AS col2, - col1 * - 34 * + 65 FROM tab0 cor0
----
38
179010
38
2210
38
46410

query I rowsort
SELECT DISTINCT + col1 * + + 80 AS col1 FROM tab0 AS cor0
----
1680
6480
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT COUNT( * ) * ( + COUNT( * ) ) + MIN( - - 40 ) AS col1 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4225
SELECT COUNT ( * ) * ( + COUNT ( * ) ) + MIN ( - - 40 ) AS col1 FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT - COUNT( ALL ( col0 ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4226
SELECT - COUNT ( ALL ( col0 ) ) col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 - + - 12 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + 12 FROM tab0 AS cor0
----
1044
1164
180

query II rowsort
SELECT ALL - col0 AS col1, 34 AS col0 FROM tab1 cor0
----
-51
34
-85
34
-91
34

query II rowsort
SELECT + - col0 * + - col0 + + - 23 AS col1, col2 + col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2578
147
7202
144
8258
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT CAST( + 45 AS SIGNED ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT CAST ( + 45 AS INTEGER ) AS col1 FROM tab1
----
45

query I rowsort
SELECT ALL - col2 / + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT ALL + ( - 17 ) DIV - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + ( - 17 ) / - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + 38 ) FROM tab1 cor0 WHERE NULL IS NULL
----
38

query II rowsort
SELECT ALL col2, col1 * col1 * + col2 AS col0 FROM tab2
----
23
59823
40
237160
58
260362

query I rowsort
SELECT ( - 44 ) FROM tab1
----
-44
-44
-44

query I rowsort
SELECT - col2 + - 28 AS col2 FROM tab1 AS cor0
----
-124
-87
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( + - 25 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * 28 IS NULL
----

query I rowsort
SELECT - 6 FROM tab1 AS cor0 WHERE NULL <= - col0 * - - 63
----

query I rowsort
SELECT DISTINCT - col1 + + col1 + - col0 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT + 3 DIV 45 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4242
SELECT + 3 / 45 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - + col2 * - col2 < - - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col2, - 9 / - col1 )
----

query I rowsort
SELECT DISTINCT + 7 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL - 88 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4247
SELECT ( - 15 ) DIV COUNT( * ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-4247
SELECT ( - 15 ) / COUNT ( * ) FROM tab0
----
-5

query I rowsort
SELECT DISTINCT - 3 * ( 99 ) FROM tab1
----
-297

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT COUNT( + - col2 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4250
SELECT DISTINCT COUNT ( + - col2 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + 10 * + + COUNT( * ) AS col1 FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-4251
SELECT + 10 * + + COUNT ( * ) AS col1 FROM tab2 cor0
----
30

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT col1 * - + col0 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT + + MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4253
SELECT + + MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col2 * - 46
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4256
SELECT + col1 AS col0, + 94 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4256
SELECT + col1 AS col0, + 94 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * - 70 FROM tab1 AS cor0
----
3570
5950
6370

query I rowsort
SELECT + - 32 * + 57 AS col2 FROM tab1 AS cor0
----
-1824
-1824
-1824

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4260
SELECT + 41 * - CAST( NULL AS SIGNED ), 51 AS col1 FROM tab0
----
NULL
51
NULL
51
NULL
51

skipif mysql # not compatible
query II rowsort label-4260
SELECT + 41 * - CAST ( NULL AS INTEGER ), 51 AS col1 FROM tab0
----
NULL
51
NULL
51
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT - MIN( DISTINCT - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT - MIN ( DISTINCT - col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL MAX( + + col0 ) * + 32 AS col2 FROM tab2
----
2400

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL MAX ( + + col0 ) * + 32 AS col2 FROM tab2
----
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT DISTINCT + col2 * - - CAST( + 22 AS SIGNED ) AS col1 FROM tab1
----
1298
1496
2112

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + col2 * - - CAST ( + 22 AS INTEGER ) AS col1 FROM tab1
----
1298
1496
2112

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 99 + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * - 44 + col0 + col0 col0 FROM tab1 cor0
----
-1094
-1106
-1174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4266
SELECT - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + 94 + + 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 94 + + 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL col2 + - col0 + - + 41 * col2 AS col0 FROM tab2
----
-1664
-2395
-966

query I rowsort
SELECT DISTINCT 93 + + col1 AS col0 FROM tab1
----
107
140
98

query I rowsort
SELECT - - 28 - + col1 * + 12 AS col1 FROM tab1 AS cor0
----
-140
-32
-536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT + - 74 - + CAST( + - col0 AS SIGNED ) * + 15 AS col0 FROM tab1 AS cor0
----
1201
1291
691

skipif mysql # not compatible
query I rowsort label-4270
SELECT + - 74 - + CAST ( + - col0 AS INTEGER ) * + 15 AS col0 FROM tab1 AS cor0
----
1201
1291
691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + 0 col0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - col2 + - - 67 + - ( + col2 ) FROM tab0
----
-131
-27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT DISTINCT MIN( ALL - col0 ) + + COUNT( * ) AS col2 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT MIN ( ALL - col0 ) + + COUNT ( * ) AS col2 FROM tab0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT DISTINCT + col0 DIV 97 - - ( col0 ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT + col0 / 97 - - ( col0 ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) + + - 67 + + 17 - + + col2 / + + 58 * + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) + + - 67 + + 17 - + + col2 / + + 58 * + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 11 AS col0, + 14 FROM tab2
----
-11
14
-11
14
-11
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT 84 * + CAST( - - ( + + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
4284
7140
7644

skipif mysql # not compatible
query I rowsort label-4278
SELECT 84 * + CAST ( - - ( + + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
4284
7140
7644

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * 5 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4280
SELECT + MAX( ALL + + col1 ) AS col1, - CAST( + 98 AS SIGNED ) + 75 AS col2 FROM tab2
----
77
-23

skipif mysql # not compatible
query II rowsort label-4280
SELECT + MAX ( ALL + + col1 ) AS col1, - CAST ( + 98 AS INTEGER ) + 75 AS col2 FROM tab2
----
77
-23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 / col2 - - col0 + 76 BETWEEN NULL AND - - col0 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - MAX( DISTINCT + + col1 ) * + 82 AS col0 FROM tab0
----
-6642

skipif mysql # not compatible
query I rowsort label-4282
SELECT - MAX ( DISTINCT + + col1 ) * + 82 AS col0 FROM tab0
----
-6642

query I rowsort
SELECT ALL col2 - col2 FROM tab2 cor0 WHERE - col1 + + col1 - - 91 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT DISTINCT col1 + col0 + - col0 - CAST( NULL AS SIGNED ) + + ( + col0 ) + + - col1 / + - col0 * + 37 + + + CAST( NULL AS SIGNED ) + + 61 + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT col1 + col0 + - col0 - CAST ( NULL AS INTEGER ) + + ( + col0 ) + + - col1 / + - col0 * + 37 + + + CAST ( NULL AS INTEGER ) + + 61 + - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT 59 + + SUM( + col1 ) AS col0 FROM tab2
----
254

skipif mysql # not compatible
query I rowsort label-4285
SELECT 59 + + SUM ( + col1 ) AS col0 FROM tab2
----
254

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT - 48 IS NOT NULL
----

query I rowsort
SELECT 85 * col2 * col1 * - 11 + + - col0 - col1 * + 97 AS col1 FROM tab0
----
-198474
-3567417
-92759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT ALL + CAST( NULL AS SIGNED ) * - + 83 + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 83 + - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4290
SELECT SUM( ALL + 80 ) + + 0, CAST( NULL AS SIGNED ) * ( - COUNT( + - col2 ) ) AS col0 FROM tab2
----
240
NULL

skipif mysql # not compatible
query II rowsort label-4290
SELECT SUM ( ALL + 80 ) + + 0, CAST ( NULL AS INTEGER ) * ( - COUNT ( + - col2 ) ) AS col0 FROM tab2
----
240
NULL

query I rowsort
SELECT ALL col0 * + col1 + - col2 - + col0 * - 24 * - + col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN 97 * + - col0 * - col1 - col1 AND + col1
----
-23069
-56552
-99433

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 79 * col0
----

query I rowsort
SELECT DISTINCT + - 9 + - col0 AS col2 FROM tab0 AS cor0
----
-106
-24
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - COUNT( * ) - - + ( + + 44 ) * + 1 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - COUNT ( * ) - - + ( + + 44 ) * + 1 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
44

query I rowsort
SELECT DISTINCT col2 - + 57 FROM tab2 cor0
----
-17
-34
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 = 69 + - 32 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - 40 AS col2 FROM tab1 cor0
----
-2360
-2720
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT ALL - col2 * CAST( NULL AS SIGNED ) / + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) / + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > col0 * + + ( + 40 ) - - + col2
----

query I rowsort
SELECT ALL - col0 * - col2 + + - col2 AS col1 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4301
SELECT ALL col1 * 7 + + ( + - col1 ) FROM tab1 AS cor0 WHERE col1 * - - ( + 57 ) BETWEEN + col2 * + - col0 + + CAST( + col0 AS DECIMAL ) AND - 1
----

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL col1 * 7 + + ( + - col1 ) FROM tab1 AS cor0 WHERE col1 * - - ( + 57 ) BETWEEN + col2 * + - col0 + + CAST ( + col0 AS REAL ) AND - 1
----

query I rowsort
SELECT DISTINCT - ( + 96 ) + + + col2 FROM tab1 WHERE - - 0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4303
SELECT COUNT( * ) DIV COUNT( + + 88 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4303
SELECT COUNT ( * ) / COUNT ( + + 88 ) col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT 41 FROM tab0 WHERE - - col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 - + + col0 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + + 11 ) >= - 14 * + col2
----

query I rowsort
SELECT + col2 * + col0 * - col0 * - + 67 FROM tab2 AS cor0
----
10977280
21858750
3260756

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT - MAX( - 56 ) * - - COUNT( DISTINCT 90 ) col2 FROM tab0 cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4308
SELECT - MAX ( - 56 ) * - - COUNT ( DISTINCT 90 ) col2 FROM tab0 cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT DISTINCT COUNT( ALL ( - 93 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT COUNT ( ALL ( - 93 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT - + MIN( DISTINCT ( - + 53 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
53

skipif mysql # not compatible
query I rowsort label-4310
SELECT - + MIN ( DISTINCT ( - + 53 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
53

query II rowsort
SELECT DISTINCT + - col0, + 33 + col0 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-51
98
-85
123
-91
171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4312
SELECT 38 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
38
NULL
38
NULL
38
NULL

skipif mysql # not compatible
query II rowsort label-4312
SELECT 38 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
38
NULL
38
NULL
38
NULL

query II rowsort
SELECT - col2, 19 AS col2 FROM tab1 cor0
----
-59
19
-68
19
-96
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT ALL - 13 + - CAST( NULL AS SIGNED ) - col1 + - - col0 + col0 - + col1 / - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL - 13 + - CAST ( NULL AS INTEGER ) - col1 + - - col0 + col0 - + col1 / - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT + col0 + - 67 * col2 - + - col2 - 6 AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4315
SELECT + col0 + - 67 * col2 - + - col2 - 6 AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 80 * + col1 * - - 65 FROM tab0
----
109200
421200
5200

query II rowsort
SELECT DISTINCT + 30 + - 88, + col0 AS col0 FROM tab2
----
-58
46
-58
64
-58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT ALL SUM( + col1 ) - + COUNT( * ) - + + CAST( NULL AS SIGNED ) - - - MAX( DISTINCT - 66 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL SUM ( + col1 ) - + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) - - - MAX ( DISTINCT - 66 ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + 88 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4320
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + 88 * col1 AS col2 FROM tab0
----
1848
7128
88

query II rowsort
SELECT - 78, col1 AS col1 FROM tab2 AS cor0
----
-78
51
-78
67
-78
77

query I rowsort
SELECT ALL - col0 * ( col0 ) FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT - + col1 - col0 + - col0 FROM tab1 AS cor0
----
-116
-175
-229

query I rowsort
SELECT + col0 - + - col0 AS col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4326
SELECT + + col2 - - - col2 DIV col0, - ( - col0 ) col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4326
SELECT + + col2 - - - col2 / col0, - ( - col0 ) col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4327
SELECT DISTINCT col2 * 3 * 20 AS col2, - col0 DIV 81 AS col2 FROM tab1 AS cor0
----
3540
-1
4080
-1
5760
0

skipif mysql # not compatible
query II rowsort label-4327
SELECT DISTINCT col2 * 3 * 20 AS col2, - col0 / 81 AS col2 FROM tab1 AS cor0
----
3540
-1
4080
-1
5760
0

query I rowsort
SELECT + col1 AS col2 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 cor0 WHERE NOT + 42 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - + ( + - 83 ) FROM tab1 AS cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + col2 col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ( 0 ) FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + 64 * + col2 FROM tab1
----
3776
4352
6144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 78 col2, + col2 AS col2 FROM tab1
----
-78
59
-78
68
-78
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4336
SELECT COUNT( * ) AS col1, 81 AS col0 FROM tab2
----
3
81

skipif mysql # not compatible
query II rowsort label-4336
SELECT COUNT ( * ) AS col1, 81 AS col0 FROM tab2
----
3
81

query II rowsort
SELECT col0 AS col0, col0 FROM tab1
----
51
51
85
85
91
91

query II rowsort
SELECT 86 AS col0, 14 AS col2 FROM tab1
----
86
14
86
14
86
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, 71 AS col2 FROM tab2
----
23
71
40
71
58
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT + + 78 * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT + + 78 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL + + 42 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + 33 * - 96 * col0 + ( 74 ) * - col2 AS col0 FROM tab0
----
-276335
-314621
-50917

query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT 20 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
29

skipif mysql # not compatible
query I rowsort label-4345
SELECT 20 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
29

query I rowsort
SELECT DISTINCT + 34 * + col0 AS col0 FROM tab0 AS cor0
----
2958
3298
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4347
SELECT + MAX( DISTINCT - CAST( - 21 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4347
SELECT + MAX ( DISTINCT - CAST ( - 21 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4348
SELECT ALL - - COUNT( * ) DIV + COUNT( * ) AS col2, - 65 FROM tab1 AS cor0
----
1
-65

skipif mysql # not compatible
query II rowsort label-4348
SELECT ALL - - COUNT ( * ) / + COUNT ( * ) AS col2, - 65 FROM tab1 AS cor0
----
1
-65

query I rowsort
SELECT col2 + 27 + col0 * + col2 FROM tab0
----
779
907
9729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 WHERE - + col2 * - 15 - + 38 - - col2 < + - 12 - - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT DISTINCT + 69 + - - 95 + - col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + 69 + - - 95 + - col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - COUNT( * ) - COUNT( * ) * - AVG ( + - col2 ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN - 8 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - COUNT ( * ) - COUNT ( * ) * - AVG ( + - col2 ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN - 8 AND NULL
----
NULL

query I rowsort
SELECT col1 + col0 + - 9 FROM tab1
----
129
56
81

query I rowsort
SELECT DISTINCT 69 * col1 + 97 AS col2 FROM tab0
----
1546
166
5686

query I rowsort
SELECT ALL + col1 * - - col2 - - + 43 + 65 AS col2 FROM tab2
----
1281
3188
3994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT col2 + - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 61 + - + col2 FROM tab1 AS cor0
----
-35
-7
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4359
SELECT - col1 DIV col2 + - col0 - - + col1 col1 FROM tab2 cor0
----
-9
12
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4359
SELECT - col1 / col2 + - col0 - - + col1 col1 FROM tab2 cor0
----
-9
12
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col2 FROM tab1 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT + + COUNT( - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4361
SELECT + + COUNT ( - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT - 83 DIV - 73 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4362
SELECT - 83 / - 73 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COUNT( + col0 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4363
SELECT COUNT ( + col0 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT + COUNT( * ) DIV 87 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4364
SELECT + COUNT ( * ) / 87 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4365
SELECT + - COUNT( * ) * - - COUNT( - col1 ) + 55 AS col2 FROM tab2 WHERE NOT NULL BETWEEN - CAST( col0 AS SIGNED ) AND - 51
----
55

skipif mysql # not compatible
query I rowsort label-4365
SELECT + - COUNT ( * ) * - - COUNT ( - col1 ) + 55 AS col2 FROM tab2 WHERE NOT NULL BETWEEN - CAST ( col0 AS INTEGER ) AND - 51
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-4366
SELECT DISTINCT - col2 AS col1, ( - col1 ) DIV - + col1 AS col2 FROM tab1
----
-59
1
-68
1
-96
1

skipif mysql # not compatible
query II rowsort label-4366
SELECT DISTINCT - col2 AS col1, ( - col1 ) / - + col1 AS col2 FROM tab1
----
-59
1
-68
1
-96
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4368
SELECT - 55 AS col1, - col2 DIV - + col0 AS col2 FROM tab1 AS cor0
----
-55
0
-55
0
-55
1

skipif mysql # not compatible
query II rowsort label-4368
SELECT - 55 AS col1, - col2 / - + col0 AS col2 FROM tab1 AS cor0
----
-55
0
-55
0
-55
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT ALL - - CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) * col0 / col1 - + col2 + + 53 FROM tab0 AS cor0 WHERE 46 - + col1 + + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL - - CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) * col0 / col1 - + col2 + + 53 FROM tab0 AS cor0 WHERE 46 - + col1 + + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT 63 + - - col0 FROM tab1 cor0 WHERE NOT - CAST( col1 AS SIGNED ) - - 12 IS NULL
----
114
148
154

skipif mysql # not compatible
query I rowsort label-4370
SELECT 63 + - - col0 FROM tab1 cor0 WHERE NOT - CAST ( col1 AS INTEGER ) - - 12 IS NULL
----
114
148
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT - ( + + COUNT( * ) ) AS col1 FROM tab2 cor0 WHERE + ( 69 ) / + col1 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col1 FROM tab2 cor0 WHERE + ( 69 ) / + col1 + + col0 IS NULL
----
0

query I rowsort
SELECT - ( col0 ) * - col1 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT DISTINCT 16 + col2 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT 16 + col2 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + + 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - col0 * 19 FROM tab0 cor0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT + ( - 19 ) * col0 AS col1 FROM tab1 AS cor0
----
-1615
-1729
-969

query II rowsort
SELECT + col0 AS col0, - 1 AS col2 FROM tab1 AS cor0
----
51
-1
85
-1
91
-1

query II rowsort
SELECT + - col2, - 11 AS col2 FROM tab0 cor0
----
-10
-11
-47
-11
-99
-11

query I rowsort
SELECT ALL - col0 + - - 61 * - 39 FROM tab1 AS cor0
----
-2430
-2464
-2470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4381
SELECT + + COUNT( * ) DIV - - 48 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4381
SELECT + + COUNT ( * ) / - - 48 col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT + MIN( ALL + - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4382
SELECT + MIN ( ALL + - col2 ) AS col0 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 - - 92 * + 13 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( - + col0 ) AS col2 FROM tab0 cor0
----
15
87
97

query II rowsort
SELECT ALL + col1 AS col1, 94 * + col2 AS col1 FROM tab1 AS cor0
----
14
9024
47
6392
5
5546

query I rowsort
SELECT ALL 73 * + + ( col0 ) * - 76 + - + col1 FROM tab0 AS cor0
----
-482697
-538157
-83301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col0 AS col1 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4388
SELECT DISTINCT CAST( - + 58 AS SIGNED ) + COUNT( * ) col0 FROM tab2
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4388
SELECT DISTINCT CAST ( - + 58 AS INTEGER ) + COUNT ( * ) col0 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL 75 * + + COUNT( * ) * - - 71 FROM tab1
----
15975

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL 75 * + + COUNT ( * ) * - - 71 FROM tab1
----
15975

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4390
SELECT DISTINCT - 35 + CAST( NULL AS SIGNED ) col2, col2 AS col2, - col0 + - - 95 * - - 94 - - + col2 AS col0 FROM tab1
----
9 values hashing to fedf14427dd5dbf2b177d6c5c2ef10ef

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4390
SELECT DISTINCT - 35 + CAST ( NULL AS INTEGER ) col2, col2 AS col2, - col0 + - - 95 * - - 94 - - + col2 AS col0 FROM tab1
----
9 values hashing to fedf14427dd5dbf2b177d6c5c2ef10ef

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT - CAST( NULL AS SIGNED ) + col1 + + col1 / col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT - CAST ( NULL AS INTEGER ) + col1 + + col1 / col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 8 - + - col2 + - col0 AS col0 FROM tab0
----
-69
10
40

query I rowsort
SELECT col2 + col2 * - col1 AS col0 FROM tab0
----
-200
-3760
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col0, col2 )
----

query I rowsort
SELECT col2 * + col2 + 50 FROM tab1 cor0
----
3531
4674
9266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4396
SELECT COUNT( * ) * COUNT( * ) * + 74 DIV + + ( 36 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4396
SELECT COUNT ( * ) * COUNT ( * ) * + 74 / + + ( 36 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4397
SELECT * FROM tab2 AS cor0 WHERE + 52 * 56 + - ( - col2 ) > - CAST( + + 12 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4397
SELECT * FROM tab2 AS cor0 WHERE + 52 * 56 + - ( - col2 ) > - CAST ( + + 12 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL - SUM( ALL 78 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-702

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - SUM ( ALL 78 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-702

query II rowsort
SELECT - col2 AS col0, - 77 AS col0 FROM tab0
----
-10
-77
-47
-77
-99
-77

query I rowsort
SELECT DISTINCT + - ( + 60 ) AS col0 FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - COUNT( + - 32 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4401
SELECT - COUNT ( + - 32 ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL - 38 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
-38
14
-38
47
-38
5

query I rowsort
SELECT + - ( - + col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT + + SUM( + + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + + SUM ( + + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT - SUM( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4405
SELECT - SUM ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT + - COUNT( * ) AS col1, COUNT( * ) FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4406
SELECT + - COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 cor0
----
-3
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col1 * - col0 ) >= + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 71 + ( col1 ) / - col0 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4409
SELECT * FROM tab1 WHERE NOT - col2 NOT IN ( + col0 + + - col1, - col1 - ( + col0 ), - + 27, 56, - - CAST( + 8 AS SIGNED ), + - 5, + col2, - col1 )
----

skipif mysql # not compatible
query III rowsort label-4409
SELECT * FROM tab1 WHERE NOT - col2 NOT IN ( + col0 + + - col1, - col1 - ( + col0 ), - + 27, 56, - - CAST ( + 8 AS INTEGER ), + - 5, + col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4410
SELECT DISTINCT MIN( 29 ), 98 AS col2 FROM tab0
----
29
98

skipif mysql # not compatible
query II rowsort label-4410
SELECT DISTINCT MIN ( 29 ), 98 AS col2 FROM tab0
----
29
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT + col0 AS col0 FROM tab1 WHERE NOT + col0 - CAST( NULL AS SIGNED ) / - col1 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4411
SELECT + col0 AS col0 FROM tab1 WHERE NOT + col0 - CAST ( NULL AS INTEGER ) / - col1 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT + col0 / - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT + col0 / - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT + 8 * CAST( - - col0 AS SIGNED ) FROM tab0
----
120
696
776

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT + 8 * CAST ( - - col0 AS INTEGER ) FROM tab0
----
120
696
776

query I rowsort
SELECT ALL + 75 * - - 66 FROM tab2
----
4950
4950
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT + COUNT( + 64 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4415
SELECT + COUNT ( + 64 ) FROM tab1 cor0
----
3

query I rowsort
SELECT + - ( - col1 ) AS col0 FROM tab2 cor0 WHERE NOT 8 * - 54 * - col0 IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 92 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 79 + - + 3 AS col2 FROM tab1
----
76
76
76

query I rowsort
SELECT DISTINCT - 30 * - - col2 AS col1 FROM tab2 AS cor0
----
-1200
-1740
-690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 75 col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT - ( + 28 ) + + col1 AS col2 FROM tab2 cor0
----
23
39
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT DISTINCT - + col0 * - CAST( col0 AS SIGNED ) + - ( col2 ) + col0 + 66 FROM tab1 AS cor0
----
2622
7317
8370

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - + col0 * - CAST ( col0 AS INTEGER ) + - ( col2 ) + col0 + 66 FROM tab1 AS cor0
----
2622
7317
8370

query I rowsort
SELECT 18 + - - ( + 31 ) AS col1 FROM tab2
----
49
49
49

query II rowsort
SELECT col2 + - 96, - col2 * - col1 AS col2 FROM tab2
----
-38
3886
-56
3080
-73
1173

query I rowsort
SELECT ALL col2 + ( - - col0 ) FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT - MIN( ALL + + col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT - MIN ( ALL + + col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4427
SELECT ALL col2 - - col2 + col1 * col0 AS col2, 91 + + CAST( NULL AS SIGNED ) / + + col1 FROM tab1
----
4413
NULL
543
NULL
906
NULL

skipif mysql # not compatible
query II rowsort label-4427
SELECT ALL col2 - - col2 + col1 * col0 AS col2, 91 + + CAST ( NULL AS INTEGER ) / + + col1 FROM tab1
----
4413
NULL
543
NULL
906
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col0 * col0, - col0 - col1, 7 * col1, col0 * - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4429
SELECT 39 AS col2, CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
39
3

skipif mysql # not compatible
query II rowsort label-4429
SELECT 39 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
39
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col0 FROM tab2
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL + MAX( DISTINCT + col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4431
SELECT ALL + MAX ( DISTINCT + col2 ) col2 FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col2 AS col1 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 63 * 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + 24 AS col2 FROM tab0 AS cor0
----
123
34
71

query I rowsort
SELECT col0 - + + col1 AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT + 37 * - + col2 * + 67 AS col0 FROM tab1
----
-146261
-168572
-237984

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT - MAX( DISTINCT + 66 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT - MAX ( DISTINCT + 66 ) FROM tab0
----
-66

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT - - col1 + ( + col2 ) * 87 IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 + col2 * + 21 * 6 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + ( col1 ) AS col1, col1 + + col0 FROM tab0 AS cor0
----
1
98
21
108
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT ALL SUM( col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL SUM ( col0 ) FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT - col1 + - 42 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-47
-56
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT DISTINCT - col2 DIV col2 * - col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT - col2 / col2 * - col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT 73 * col1 AS col0 FROM tab2 AS cor0
----
3723
4891
5621

query I rowsort
SELECT col2 * - 57 AS col0 FROM tab0
----
-2679
-5643
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT - MAX( col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT - MAX ( col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT 32 * - + col0 FROM tab0
----
-2784
-3104
-480

query I rowsort
SELECT - 29 + + - ( + col1 ) AS col1 FROM tab1 WHERE NOT + col1 * + 98 - - 13 IS NULL
----
-34
-43
-76

query I rowsort
SELECT col0 * + 92 FROM tab1
----
4692
7820
8372

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - 96 - + col2 IS NULL
----
59
68
96

query II rowsort
SELECT ALL col1 AS col1, 25 AS col1 FROM tab0
----
1
25
21
25
81
25

query I rowsort
SELECT ALL ( - 30 ) AS col1 FROM tab2
----
-30
-30
-30

query II rowsort
SELECT DISTINCT col0, - col2 * + col2 FROM tab0
----
15
-2209
87
-100
97
-9801

query II rowsort
SELECT - col1 AS col0, col1 + - col0 AS col1 FROM tab1 AS cor0
----
-14
-37
-47
-44
-5
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT 95 + + + COUNT( * ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-4456
SELECT 95 + + + COUNT ( * ) FROM tab2 AS cor0
----
98

query II rowsort
SELECT DISTINCT - col2 + + col0, col0 AS col2 FROM tab1
----
-45
51
23
91
26
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col2 - - - 44 col1 FROM tab0 WHERE NOT ( - col2 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL - 86 * COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
-774

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL - 86 * COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
-774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4460
SELECT 51 DIV + - COUNT( ALL - 10 ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4460
SELECT 51 / + - COUNT ( ALL - 10 ) FROM tab2 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + 97 * - 41 col1 FROM tab0 AS cor0
----
345999
385769
59655

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT + 8 + + - 22 + + COUNT( * ) * + 3 * - MAX( DISTINCT - col2 ) AS col2 FROM tab2
----
193

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT + 8 + + - 22 + + COUNT ( * ) * + 3 * - MAX ( DISTINCT - col2 ) AS col2 FROM tab2
----
193

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + + + 72 * - col0 AS col2 FROM tab0
----
-6243
-6983
-999

query I rowsort
SELECT - col2 + + + 12 AS col2 FROM tab2
----
-11
-28
-46

query I rowsort
SELECT ALL + col1 - - 17 AS col2 FROM tab1 cor0
----
22
31
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT + - 8 + + - COUNT( + + col1 ) AS col2 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4468
SELECT + - 8 + + - COUNT ( + + col1 ) AS col2 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT - - 79 * + col1 FROM tab1 AS cor0
----
1106
3713
395

query I rowsort
SELECT ALL + col0 * + + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE NOT ( NOT + + col0 IS NOT NULL )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT ALL + CAST( - - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT 54 * - MIN( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 51 IS NULL
----
4914

skipif mysql # not compatible
query I rowsort label-4473
SELECT 54 * - MIN ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 51 IS NULL
----
4914

query I rowsort
SELECT - 67 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 94 IS NULL
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query III rowsort
SELECT ALL * FROM tab0 WHERE - 90 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4476
SELECT + 33 DIV COUNT( DISTINCT - col2 ) AS col1 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4476
SELECT + 33 / COUNT ( DISTINCT - col2 ) AS col1 FROM tab1
----
11

query II rowsort
SELECT ALL 22 AS col1, 48 FROM tab2 AS cor0
----
22
48
22
48
22
48

query II rowsort
SELECT DISTINCT - + col0, + 13 AS col1 FROM tab2 AS cor0
----
-46
13
-64
13
-75
13

onlyif mysql # DIV for integer division: 
query II rowsort label-4479
SELECT col2, 33 DIV + col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-4479
SELECT col2, 33 / + col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

query II rowsort
SELECT 49, + col1 + - + 51 AS col0 FROM tab2 AS cor0
----
49
0
49
16
49
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + 43 * - MAX( - 14 ) FROM tab1 cor0
----
602

skipif mysql # not compatible
query I rowsort label-4481
SELECT + 43 * - MAX ( - 14 ) FROM tab1 cor0
----
602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT DISTINCT + 11 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT + 11 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT DISTINCT - + col0 DIV - col0 col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4483
SELECT DISTINCT - + col0 / - col0 col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT DISTINCT + - COUNT( * ), - 83 AS col0 FROM tab2 AS cor0
----
-3
-83

skipif mysql # not compatible
query II rowsort label-4485
SELECT DISTINCT + - COUNT ( * ), - 83 AS col0 FROM tab2 AS cor0
----
-3
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT + 86 DIV 42 AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT + 86 / 42 AS col2 FROM tab2 AS cor0
----
2

query I rowsort
SELECT ( - col0 ) + + col0 - col0 AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT ALL col2 + col1 DIV col1 AS col0 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL col2 + col1 / col1 AS col0 FROM tab1
----
60
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - COUNT( * ) * - 11 + COUNT( * ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-4489
SELECT - COUNT ( * ) * - 11 + COUNT ( * ) AS col1 FROM tab1
----
36

query III rowsort
SELECT - 73 + - col1 + - + col2 AS col2, - ( - 3 ) + + 13 * col2 + 90 AS col1, - + 35 FROM tab0
----
9 values hashing to d390e2726b073a8ac426b5068ee82093

query I rowsort
SELECT ( 46 ) + + 21 * - - col1 FROM tab1
----
1033
151
340

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4492
SELECT col1 DIV - 39 + - - CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
79

skipif mysql # not compatible
query I rowsort label-4492
SELECT col1 / - 39 + - - CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
79

query I rowsort
SELECT ALL + + col0 * + col1 * - + 6 FROM tab0 AS cor0 WHERE 60 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT ALL col0 * - col2 DIV - ( - col2 ) + - col0 * - 2 + - 19 FROM tab0
----
-4
68
78

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL col0 * - col2 / - ( - col2 ) + - col0 * - 2 + - 19 FROM tab0
----
-4
68
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) = NULL AND col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4496
SELECT DISTINCT + 21 AS col2, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
21
9

skipif mysql # not compatible
query II rowsort label-4496
SELECT DISTINCT + 21 AS col2, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
21
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4497
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + col2 AS col1, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 + - col1 col0 FROM tab2 AS cor0
----
-1109
-2637
-4417

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT - MIN( DISTINCT ( 34 ) ) AS col1 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-4500
SELECT - MIN ( DISTINCT ( 34 ) ) AS col1 FROM tab2
----
-34

query I rowsort
SELECT ALL - col1 * + - col1 + + ( - col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
10025
10114
4717

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <> - - 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT ALL - col0 DIV + - col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - col0 / + - col1 FROM tab0 AS cor0
----
0
4
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + - 24 ) + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - ( + 50 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT + col1 IS NULL
----
10
47
99

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT COUNT( * ) * 21 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT COUNT ( * ) * 21 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT - + 48 * + COUNT( * ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - + 48 * + COUNT ( * ) FROM tab2 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT + COUNT( * ) * + - SUM( + col2 ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-4510
SELECT + COUNT ( * ) * + - SUM ( + col2 ) FROM tab1 AS cor0
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT - MAX( ALL + + 81 ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4511
SELECT - MAX ( ALL + + 81 ) FROM tab2 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + - 16 IS NOT NULL
----

query II rowsort
SELECT + ( - + ( - - col0 ) ) AS col1, col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + + col1 * - + col1 + ( col1 ) + + - col2 * ( + + 78 ) col0 FROM tab2 AS cor0
----
-4309
-8911
-8937

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE - col1 <= ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE - col1 <= ( col0 )
----
3

query II rowsort
SELECT - col0 AS col2, + col1 * - col1 FROM tab2
----
-46
-2601
-64
-5929
-75
-4489

query II rowsort
SELECT DISTINCT col2 + + - 52 AS col0, col0 FROM tab2
----
-12
64
-29
46
6
75

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT - 9 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, + 1 * + col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT + 21 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 98 * - col1 AS col1 FROM tab0
----
-2058
-7938
-98

query I rowsort
SELECT ALL 98 * col2 AS col0 FROM tab1
----
5782
6664
9408

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-4523
SELECT ALL - 21 AS col0, CAST( NULL AS DECIMAL ) + AVG ( DISTINCT - col1 ), + - COUNT( * ) AS col1 FROM tab0
----
-21
NULL
-3

skipif mysql # not compatible
query III rowsort label-4523
SELECT ALL - 21 AS col0, CAST ( NULL AS REAL ) + AVG ( DISTINCT - col1 ), + - COUNT ( * ) AS col1 FROM tab0
----
-21
NULL
-3

query I rowsort
SELECT ALL + 58 * + 30 AS col2 FROM tab2
----
1740
1740
1740

query III rowsort
SELECT * FROM tab0 WHERE + col0 BETWEEN + 47 * - 39 + + 71 - - 65 * + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT 83 * - COUNT( * ) AS col1 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT 83 * - COUNT ( * ) AS col1 FROM tab0
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT DISTINCT + col1 DIV ( 11 ) AS col2 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + col1 / ( 11 ) AS col2 FROM tab1
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT + 82 + - - COUNT( * ) AS col1 FROM tab0 cor0
----
85

skipif mysql # not compatible
query I rowsort label-4528
SELECT + 82 + - - COUNT ( * ) AS col1 FROM tab0 cor0
----
85

query I rowsort
SELECT ALL - ( col0 ) + + 62 AS col2 FROM tab2 AS cor0
----
-13
-2
16

query I rowsort
SELECT DISTINCT 72 + - col0 AS col0 FROM tab1 AS cor0
----
-13
-19
21

query I rowsort
SELECT ALL + 12 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT + + 51 * - - 64 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
3264

query I rowsort
SELECT ALL col2 - + 47 FROM tab1
----
12
21
49

query I rowsort
SELECT DISTINCT ( 33 ) FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT DISTINCT - + 80 * - COUNT( * ) + - - MIN( ALL - col2 ) + - - 20 AS col0 FROM tab2 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT - + 80 * - COUNT ( * ) + - - MIN ( ALL - col2 ) + - - 20 AS col0 FROM tab2 AS cor0
----
202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT 7 AS col2, col0 AS col2 FROM tab0
----
7
15
7
87
7
97

query I rowsort
SELECT ALL 83 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query II rowsort
SELECT 13, col2 + 42 AS col1 FROM tab2
----
13
100
13
65
13
82

query II rowsort
SELECT - col1, 75 AS col1 FROM tab0 AS cor0
----
-1
75
-21
75
-81
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 > + col2
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT 18 * col0 FROM tab2 WHERE - 31 + col1 < col0
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - MAX( 35 ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-4543
SELECT - MAX ( 35 ) FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT + ( - SUM( ALL - col2 ) ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4544
SELECT + ( - SUM ( ALL - col2 ) ) AS col2 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT + 38 + + COUNT( * ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-4545
SELECT + 38 + + COUNT ( * ) FROM tab2
----
41

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + 51 * col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT MAX( - 8 ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-4547
SELECT MAX ( - 8 ) FROM tab0
----
-8

query I rowsort
SELECT ALL + ( - 94 ) FROM tab2
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col0 FROM tab1 WHERE NOT ( 79 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 30 BETWEEN col1 AND ( + 19 + 77 )
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT + MAX( ALL + ( - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4551
SELECT + MAX ( ALL + ( - col1 ) ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT col2 - - col1 FROM tab0 WHERE NOT - col2 IS NULL
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 80 * 12 BETWEEN ( col2 ) AND + 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4555
SELECT DISTINCT - COUNT( * ) DIV 52 FROM tab2 WHERE NOT - col0 BETWEEN NULL AND ( col2 - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT - COUNT ( * ) / 52 FROM tab2 WHERE NOT - col0 BETWEEN NULL AND ( col2 - 71 )
----
0

query I rowsort
SELECT DISTINCT 42 * col0 AS col1 FROM tab2
----
1932
2688
3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * ( - col2 ) + + ( - 77 ) ) BETWEEN NULL AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ALL COUNT( col2 ) * 65 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL COUNT ( col2 ) * 65 FROM tab0
----
195

query I rowsort
SELECT ALL - 98 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( col1 ) AS col1 FROM tab2 WHERE NULL BETWEEN - ( col0 ) / - col0 AND ( - col1 + - col0 / col2 )
----

query I rowsort
SELECT col1 * + 67 AS col0 FROM tab1
----
3149
335
938

query I rowsort
SELECT ALL col0 * + 55 AS col1 FROM tab2
----
2530
3520
4125

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) BETWEEN + ( + ( 22 ) ) AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4565
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( CAST( col2 AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-4565
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( CAST ( col2 AS INTEGER ) + col2 )
----

query I rowsort
SELECT 0 AS col2 FROM tab0 WHERE NOT + 10 IS NOT NULL
----

query I rowsort
SELECT ALL 47 * 92 FROM tab2 AS cor0
----
4324
4324
4324

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 66 <= ( col0 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT ( - COUNT( * ) ) + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT ( - COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4570
SELECT col1 - col0 DIV - col0 AS col2 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4570
SELECT col1 - col0 / - col0 AS col2 FROM tab0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT COUNT( * ) + SUM( DISTINCT - col1 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-4571
SELECT COUNT ( * ) + SUM ( DISTINCT - col1 ) FROM tab0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT DISTINCT - CAST( 30 AS SIGNED ) - - col0 * col0 AS col2 FROM tab1 AS cor0
----
2571
7195
8251

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - CAST ( 30 AS INTEGER ) - - col0 * col0 AS col2 FROM tab1 AS cor0
----
2571
7195
8251

query I rowsort
SELECT col1 * - 15 AS col2 FROM tab1 AS cor0
----
-210
-705
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4575
SELECT + 94 * - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1974
-7614
-94

skipif mysql # not compatible
query I rowsort label-4575
SELECT + 94 * - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1974
-7614
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT + 20 * 41 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4576
SELECT + 20 * 41 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT 86 FROM tab1 WHERE NOT ( - col0 * + ( - 83 ) + - col1 ) < NULL
----

query I rowsort
SELECT ALL ( - + 36 ) FROM tab0
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT CAST( + 39 AS SIGNED ) FROM tab0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-4579
SELECT CAST ( + 39 AS INTEGER ) FROM tab0
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT col1 * 71 + 74 FROM tab0 WHERE NOT - col1 IS NULL
----
145
1565
5825

query I rowsort
SELECT DISTINCT - col1 + + 19 AS col1 FROM tab1 AS cor0 WHERE - 76 <> 70 - + 72
----
-28
14
5

query I rowsort
SELECT ALL 86 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
86
86
86

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - col2 * col1 BETWEEN ( + col1 ) AND 92 - - col0 * col2
----
14
47
5

query I rowsort
SELECT + ( - + 68 ) * col2 AS col2 FROM tab2 AS cor0
----
-1564
-2720
-3944

query I rowsort
SELECT ( + col1 ) * - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT CAST( NULL AS SIGNED ) + + AVG ( ALL col2 ) FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 AND ( 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT CAST ( NULL AS INTEGER ) + + AVG ( ALL col2 ) FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 AND ( 53 )
----
NULL

query I rowsort
SELECT DISTINCT - 24 FROM tab0 WHERE NOT NULL = - + col1
----

query I rowsort
SELECT - col0 * + 85 FROM tab0 AS cor0
----
-1275
-7395
-8245

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( + col0 ) - 3 >= + col2
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) BETWEEN ( col1 + 4 ) AND col0 OR NOT + 94 NOT IN ( + col2 * 31 + 13 )
----
15
87
97

query II rowsort
SELECT - col1 AS col1, col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 * col0 AND ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( 20 )
----

query I rowsort
SELECT ALL - col2 + + 86 FROM tab0 AS cor0
----
-13
39
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * 78 / - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4597
SELECT + 11 AS col1, + 97 / ( ( + CAST( NULL AS DECIMAL ) ) ) FROM tab2 AS cor0
----
11
NULL
11
NULL
11
NULL

skipif mysql # not compatible
query II rowsort label-4597
SELECT + 11 AS col1, + 97 / ( ( + CAST ( NULL AS REAL ) ) ) FROM tab2 AS cor0
----
11
NULL
11
NULL
11
NULL

query II rowsort
SELECT - 54 AS col1, 22 FROM tab0 AS cor0
----
-54
22
-54
22
-54
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, 74 col0 FROM tab1 AS cor0
----
59
74
68
74
96
74

query I rowsort
SELECT ALL col1 + + - col2 + - col0 * + col2 FROM tab1
----
-4978
-5069
-6209

query I rowsort
SELECT DISTINCT + 28 FROM tab0 WHERE NOT NULL IN ( col2 * + - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT SUM( + ( + col0 ) ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4602
SELECT SUM ( + ( + col0 ) ) AS col0 FROM tab1
----
227

query I rowsort
SELECT DISTINCT col2 + col2 + - 86 FROM tab0
----
-66
112
8

query I rowsort
SELECT 50 * - 35 FROM tab2 WHERE + ( ( + col2 ) ) IS NOT NULL
----
-1750
-1750
-1750

query III rowsort
SELECT * FROM tab1 WHERE ( + + 40 ) IS NULL
----

query I rowsort
SELECT + 10 + - + col0 + - col1 * col0 FROM tab2
----
-2382
-4982
-5090

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT - 54 DIV col0 + + 64 AS col2 FROM tab0 AS cor0
----
61
64
64

skipif mysql # not compatible
query I rowsort label-4607
SELECT - 54 / col0 + + 64 AS col2 FROM tab0 AS cor0
----
61
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT - 31 + - + COUNT( * ) - + + 92 AS col2 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4608
SELECT - 31 + - + COUNT ( * ) - + + 92 AS col2 FROM tab1 AS cor0
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT ALL - 50 - COUNT( * ) DIV + 67 FROM tab1 AS cor0 WHERE NOT NULL > ( + ( + + 72 ) ) DIV - col1
----
-50

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL - 50 - COUNT ( * ) / + 67 FROM tab1 AS cor0 WHERE NOT NULL > ( + ( + + 72 ) ) / - col1
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * - - col0 col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT DISTINCT - ( 43 ) FROM tab1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL - SUM( - - col0 ) col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4613
SELECT ALL - SUM ( - - col0 ) col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - + 73 AS col1 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL - - 77 AS col0 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT - + col0 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 = - + 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - SUM( - + col0 ) * COUNT( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-4618
SELECT - SUM ( - + col0 ) * COUNT ( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
681

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT col1 DIV col1 * 48 AS col2 FROM tab0 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-4619
SELECT col1 / col1 * 48 AS col2 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT ALL 87 * + 33 FROM tab2 AS cor0
----
2871
2871
2871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT DISTINCT - + 19 * + CAST( ( + - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
1273
1463
969

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT - + 19 * + CAST ( ( + - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
1273
1463
969

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT DISTINCT col2 DIV ( + + 55 ) * - 49 FROM tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT col2 / ( + + 55 ) * - 49 FROM tab1 cor0
----
-49

query I rowsort
SELECT ALL + col2 * 77 * + ( + col2 ) * - 91 + - col2 AS col0 FROM tab1 AS cor0
----
-24391426
-32400436
-64576608

query I rowsort
SELECT + 66 * 94 FROM tab2 cor0
----
6204
6204
6204

onlyif mysql # DIV for integer division: 
query II rowsort label-4625
SELECT DISTINCT + 47 DIV + 53 * 17, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-4625
SELECT DISTINCT + 47 / + 53 * 17, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT 77 >= ( + - 91 )
----

query II rowsort
SELECT ALL + + 45 AS col0, 42 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
45
42
45
42
45
42

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT + MIN( DISTINCT - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + MIN ( DISTINCT - col0 ) FROM tab0
----
-97

query I rowsort
SELECT DISTINCT + 17 FROM tab2 WHERE NOT + col0 * + col2 * + col0 + - 56 - + col1 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT + ( - COUNT( * ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4631
SELECT + ( - COUNT ( * ) ) col2 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT col0 AS col2, + 37 FROM tab1
----
51
37
85
37
91
37

query I rowsort
SELECT DISTINCT - col0 * 57 FROM tab2
----
-2622
-3648
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + SUM( DISTINCT + 5 ) FROM tab2 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4634
SELECT + SUM ( DISTINCT + 5 ) FROM tab2 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL MIN( ALL - ( 87 ) ) AS col0 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL MIN ( ALL - ( 87 ) ) AS col0 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 * col2 + + col2 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT + COUNT( * ) FROM tab2 WHERE + col1 * 78 + - - col0 + + ( + + col2 ) + - col2 * 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4637
SELECT + COUNT ( * ) FROM tab2 WHERE + col1 * 78 + - - col0 + + ( + + col2 ) + - col2 * 59 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 8 NOT IN ( + ( + 58 ) * - col2 + - ( + 92 ) - col2 )
----

query I rowsort
SELECT + col2 * - + col2 + 46 AS col2 FROM tab1 AS cor0
----
-3435
-4578
-9170

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 55 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 NOT BETWEEN col0 AND - + col2 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4642
SELECT ALL + + ( COUNT( * ) ) AS col1, COUNT( * ) * - CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4642
SELECT ALL + + ( COUNT ( * ) ) AS col1, COUNT ( * ) * - CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT DISTINCT 82 * - + 77 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT 82 * - + 77 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE ( NOT ( - col0 * - - 26 NOT IN ( + + 40 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT - + 73 + + col2 DIV + col1 FROM tab1 AS cor0
----
-62
-67
-72

skipif mysql # not compatible
query I rowsort label-4645
SELECT - + 73 + + col2 / + col1 FROM tab1 AS cor0
----
-62
-67
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT + + ( col0 ) + - - 63 * - 83 DIV + 1 - + col2 FROM tab0 WHERE NULL IS NULL
----
-5152
-5231
-5261

skipif mysql # not compatible
query I rowsort label-4646
SELECT + + ( col0 ) + - - 63 * - 83 / + 1 - + col2 FROM tab0 WHERE NULL IS NULL
----
-5152
-5231
-5261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - col0 * + ( - col1 ) col0 FROM tab1
----
59
425
68
4277
96
714

query I rowsort
SELECT 31 * + - 37 FROM tab2
----
-1147
-1147
-1147

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT SUM( col0 ) * + 97 - 11 FROM tab1
----
22008

skipif mysql # not compatible
query I rowsort label-4649
SELECT SUM ( col0 ) * + 97 - 11 FROM tab1
----
22008

query I rowsort
SELECT DISTINCT + 21 * + - col1 AS col2 FROM tab1 AS cor0
----
-105
-294
-987

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4651
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4652
SELECT DISTINCT - MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL COUNT( * ) * - 18 FROM tab2, tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL COUNT ( * ) * - 18 FROM tab2, tab2 AS cor0
----
-162

query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT DISTINCT + COUNT( * ) * - 73 AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT + COUNT ( * ) * - 73 AS col0 FROM tab1
----
-219

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4656
SELECT COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + 76 <> 44 + - col0 * 32
----

query I rowsort
SELECT ALL + col2 * - col0 + col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 46 * col1 AS col1, + col0 col2 FROM tab1 AS cor0
----
2162
91
230
85
644
51

query II rowsort
SELECT + + col2 * col0 AS col1, + 94 AS col1 FROM tab1 AS cor0
----
4896
94
5015
94
6188
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + - col0 ) IS NOT NULL
----

query II rowsort
SELECT - - 99 * - 34, - 62 * + - col1 AS col1 FROM tab2 AS cor0
----
-3366
3162
-3366
4154
-3366
4774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4664
SELECT - + CAST( NULL AS SIGNED ) / - col2 / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT - + CAST ( NULL AS INTEGER ) / - col2 / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 * + col1 col0 FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4666
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 44 NOT IN ( + CAST( - col1 AS SIGNED ), - 59 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4666
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 44 NOT IN ( + CAST ( - col1 AS INTEGER ), - 59 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0, 48 * col1 AS col0 FROM tab1
----
51
672
85
240
91
2256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4668
SELECT ALL CAST( - 90 AS SIGNED ) FROM tab1
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL CAST ( - 90 AS INTEGER ) FROM tab1
----
-90
-90
-90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 16 + + - 73 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 54 + + - 87 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT ALL col2 + + col2 * ( col1 ) FROM tab0
----
198
220
3854

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT BETWEEN col1 AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4674
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) >= + col2
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) >= + col2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 79 IN ( + + 43 * col1, col2 )
----

query II rowsort
SELECT col2, + 49 FROM tab2 AS cor0
----
23
49
40
49
58
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - + 40 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - SUM( DISTINCT - 97 ) AS col1 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4679
SELECT - SUM ( DISTINCT - 97 ) AS col1 FROM tab1 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT + 5 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT + 5 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL + col0 - - col1 AS col2 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 / + 98 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 - - 89 * 1, + col1 col1 FROM tab0 AS cor0
----
-10
1
42
81
79
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT + MAX( - col2 ) col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4684
SELECT + MAX ( - col2 ) col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT + COUNT( * ) * + + 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
324

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT + COUNT ( * ) * + + 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT - COUNT( 33 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT - COUNT ( 33 ) FROM tab1
----
-3

query I rowsort
SELECT ALL ( + + 31 ) * col0 AS col0 FROM tab0 AS cor0
----
2697
3007
465

query I rowsort
SELECT DISTINCT - 40 * - 33 * - 75 FROM tab0 AS cor0
----
-99000

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT ALL + CAST( + - col0 AS SIGNED ) * + + col1 + - col0 + col1 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-4321
-505
-751

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + CAST ( + - col0 AS INTEGER ) * + + col1 + - col0 + col1 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-4321
-505
-751

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col1 / + col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 ) > + 34 + + 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - - ( + col1 ) AS col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query II rowsort label-4695
SELECT ALL SUM( DISTINCT + col1 ) AS col1, + ( - ( - COUNT( * ) ) ) col2 FROM tab2
----
195
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4695
SELECT ALL SUM ( DISTINCT + col1 ) AS col1, + ( - ( - COUNT ( * ) ) ) col2 FROM tab2
----
195
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT COUNT( * ) + + 93 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-4696
SELECT COUNT ( * ) + + 93 FROM tab2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT ALL col2 * 3 DIV + - 17 FROM tab1
----
-10
-12
-16

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL col2 * 3 / + - 17 FROM tab1
----
-10
-12
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 8 * + 85 * + - col1 col1 FROM tab0
----
-142800
-2588760
-67320

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT COUNT( - + col1 ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4699
SELECT COUNT ( - + col1 ) + COUNT ( * ) FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT - CAST( NULL AS SIGNED ) + + + AVG ( - 57 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT - CAST ( NULL AS INTEGER ) + + + AVG ( - 57 ) FROM tab1
----
NULL

query II rowsort
SELECT ALL + col2 * - 70 AS col0, - col2 - + - col0 - ( col2 ) FROM tab2
----
-1610
0
-2800
-16
-4060
-41

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + - - col2 < NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 / - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 * - - col1 + col0 FROM tab1 AS cor0
----
-1390
-150121
-18765

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT ( ( NULL ) >= NULL ) )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 10 ) IS NOT NULL
----

query I rowsort
SELECT - 0 + + - 11 AS col1 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT col1 + - + 76 + - col1 * 62 AS col0 FROM tab1 AS cor0
----
-2943
-381
-930

query I rowsort
SELECT ( - col0 ) + 78 FROM tab1 AS cor0
----
-13
-7
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + + MAX( - + col0 ) * CAST( NULL AS SIGNED ) - - 59 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + + MAX ( - + col0 ) * CAST ( NULL AS INTEGER ) - - 59 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT 91 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT 91 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - - 76 ) AS col2 FROM tab0
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT DISTINCT 61 + + - CAST( - col0 AS SIGNED ) FROM tab0
----
148
158
76

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT 61 + + - CAST ( - col0 AS INTEGER ) FROM tab0
----
148
158
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT DISTINCT + CAST( col2 AS SIGNED ) - - - col0 AS col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT + CAST ( col2 AS INTEGER ) - - - col0 AS col2 FROM tab2
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 - col0 col1 FROM tab0
----
-56
-66
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL - SUM( - + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - SUM ( - + col2 ) AS col1 FROM tab0 AS cor0
----
156

query II rowsort
SELECT + 26 AS col2, col1 * + 62 + - + col2 + 58 * - col1 + - 34 + - 84 AS col0 FROM tab2 AS cor0
----
26
150
26
63
26
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4720
SELECT CAST( NULL AS SIGNED ) / + - 27, - 32 - + + col2 AS col2 FROM tab0
----
NULL
-131
NULL
-42
NULL
-79

skipif mysql # not compatible
query II rowsort label-4720
SELECT CAST ( NULL AS INTEGER ) / + - 27, - 32 - + + col2 AS col2 FROM tab0
----
NULL
-131
NULL
-42
NULL
-79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL - - ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - - ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 * 47 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col0 FROM tab0 AS cor0
----
51
51
51

query II rowsort
SELECT ALL col2 + + col2 AS col1, ( - col2 ) FROM tab2 AS cor0
----
116
-58
46
-23
80
-40

query I rowsort
SELECT ALL 52 * + - col0 FROM tab0
----
-4524
-5044
-780

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT DISTINCT + CAST( 92 AS SIGNED ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + CAST ( 92 AS INTEGER ) FROM tab0
----
92

query I rowsort
SELECT DISTINCT + 82 * - - col0 FROM tab1
----
4182
6970
7462

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 44 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - col1 >= - + col1
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT + COUNT( * ) + - 23 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4732
SELECT + COUNT ( * ) + - 23 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT DISTINCT - + col1 + + ( - - col1 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 / col1 + + + 28 = + ( col0 )
----

query I rowsort
SELECT DISTINCT 61 + - col0 * col2 FROM tab2 WHERE NOT ( + col1 ) / 95 IN ( 43 * 98, 56 * + 77 )
----
-2499
-4289
-997

query I rowsort
SELECT + - 24 * - col2 FROM tab2 AS cor0
----
1392
552
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT DISTINCT - 9 - + CAST( - + col2 AS SIGNED ) * 67 + - col1 AS col1 FROM tab1 AS cor0
----
3939
4500
6409

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT - 9 - + CAST ( - + col2 AS INTEGER ) * 67 + - col1 AS col1 FROM tab1 AS cor0
----
3939
4500
6409

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - COUNT( * ) - + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT + 82 - 62 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT 92 - + col1 + - 15 AS col2 FROM tab0 cor0
----
-4
56
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 17 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 17 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 69 + - 1 FROM tab2 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - 41 * SUM( + 70 ) + + COUNT( * ) AS col1 FROM tab0
----
-8607

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 41 * SUM ( + 70 ) + + COUNT ( * ) AS col1 FROM tab0
----
-8607

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE ( col1 ) BETWEEN - 57 * col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( + + ( col1 ) ) * - 96 + + - col2 AS col0 FROM tab1 AS cor0
----
-1440
-4580
-539

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - + 85 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4748
SELECT ALL col0 AS col1, col0 + + + 51 + + ( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4748
SELECT ALL col0 AS col1, col0 + + + 51 + + ( - CAST ( NULL AS REAL ) ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 * + 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL - ( COUNT( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL - ( COUNT ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - 73 * - + 59 - + SUM( ALL - 45 ) AS col0 FROM tab2 AS cor0
----
4442

skipif mysql # not compatible
query I rowsort label-4751
SELECT - 73 * - + 59 - + SUM ( ALL - 45 ) AS col0 FROM tab2 AS cor0
----
4442

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4752
SELECT CAST( NULL AS SIGNED ), + col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4752
SELECT CAST ( NULL AS INTEGER ), + col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 AS cor0 WHERE NOT - 94 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col0 ) = - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL + + MAX( ALL - 85 ) FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL + + MAX ( ALL - 85 ) FROM tab0 cor0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4756
SELECT DISTINCT + - MAX( - 59 ), + COUNT( * ) + - + 61 AS col2 FROM tab2 AS cor0 WHERE + 47 IS NULL
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-4756
SELECT DISTINCT + - MAX ( - 59 ), + COUNT ( * ) + - + 61 AS col2 FROM tab2 AS cor0 WHERE + 47 IS NULL
----
NULL
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT DISTINCT 90 * CAST( NULL AS SIGNED ) + + 79 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT 90 * CAST ( NULL AS INTEGER ) + + 79 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL - 21 + + SUM( - col1 ) AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL - 21 + + SUM ( - col1 ) AS col1 FROM tab1
----
-87

query I rowsort
SELECT col2 * + col0 + - 24 FROM tab0
----
681
846
9579

query I rowsort
SELECT ALL - ( - 1 ) FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT 66 DIV + 10 col1 FROM tab0
----
6
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4761
SELECT 66 / + 10 col1 FROM tab0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + SUM( - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4762
SELECT + SUM ( - col0 ) FROM tab2
----
-185

query I rowsort
SELECT ALL - + col2 * + col2 * + 94 * + 63 AS col2 FROM tab2 AS cor0
----
-19921608
-3132738
-9475200

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4764
SELECT + + col0 DIV - + col0 AS col2, col0 - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
-1
NULL
-1
NULL
-1
NULL

skipif mysql # not compatible
query II rowsort label-4764
SELECT + + col0 / - + col0 AS col2, col0 - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
-1
NULL
-1
NULL
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT 81 + + - COUNT( * ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT 81 + + - COUNT ( * ) AS col2 FROM tab2
----
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - col1 ) IN ( + + col1 * + - 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL - 43 * + COUNT( DISTINCT + col1 ) * + + COUNT( * ) AS col2 FROM tab2
----
-387

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL - 43 * + COUNT ( DISTINCT + col1 ) * + + COUNT ( * ) AS col2 FROM tab2
----
-387

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + - col2 + + + 54 + col1 + - - col2 + - 65 / + 31 * 39 * - col0 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 16 AS col1 FROM tab1 AS cor0
----
1088
1536
944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL + col0 * - col2 + + CAST( - + 94 AS SIGNED ) - + - 33 AS col0 FROM tab1 AS cor0
----
-4957
-5076
-6249

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + col0 * - col2 + + CAST ( - + 94 AS INTEGER ) - + - 33 AS col0 FROM tab1 AS cor0
----
-4957
-5076
-6249

query I rowsort
SELECT ALL + - 75 AS col1 FROM tab0 cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) FROM tab2 cor0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4773
SELECT + 34 DIV + SUM( ALL - + 73 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4773
SELECT + 34 / + SUM ( ALL - + 73 ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT ALL + col2 * + ( - + CAST( + col1 AS SIGNED ) ) * col0 FROM tab2
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + col2 * + ( - + CAST ( + col1 AS INTEGER ) ) * col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT ALL + 21 DIV + + 33 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + 21 / + + 33 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL ( - ( + - ( - COUNT( * ) ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL ( - ( + - ( - COUNT ( * ) ) ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4777
SELECT col2 * CAST( NULL AS SIGNED ) AS col2, 42 FROM tab0
----
NULL
42
NULL
42
NULL
42

skipif mysql # not compatible
query II rowsort label-4777
SELECT col2 * CAST ( NULL AS INTEGER ) AS col2, 42 FROM tab0
----
NULL
42
NULL
42
NULL
42

query I rowsort
SELECT + 32 * + 60 FROM tab0
----
1920
1920
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT + - 88 * - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-4779
SELECT + - 88 * - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - - 34 * - SUM( ALL + + 30 ) FROM tab1 AS cor0
----
-3060

skipif mysql # not compatible
query I rowsort label-4780
SELECT - - 34 * - SUM ( ALL + + 30 ) FROM tab1 AS cor0
----
-3060

query II rowsort
SELECT col0, 98 AS col0 FROM tab1
----
51
98
85
98
91
98

query I rowsort
SELECT + col0 * - + col0 AS col1 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - MIN( ALL - 60 ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-4783
SELECT - MIN ( ALL - 60 ) FROM tab2 AS cor0
----
60

query I rowsort
SELECT DISTINCT ( - 37 ) FROM tab1 AS cor0
----
-37

query I rowsort
SELECT ALL - 77 AS col1 FROM tab0 AS cor0 WHERE ( - col1 IS NOT NULL )
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT - SUM( - - 82 ) FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-4786
SELECT - SUM ( - - 82 ) FROM tab0 AS cor0
----
-246

query I rowsort
SELECT DISTINCT col2 + - col2 + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + MIN( DISTINCT + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4788
SELECT + MIN ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT + ( - + col1 ) AS col0 FROM tab0 cor0
----
-1
-21
-81

query II rowsort
SELECT + col1, col2 AS col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4791
SELECT ALL + 88 + col1 DIV + col0 FROM tab0
----
88
88
93

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + 88 + col1 / + col0 FROM tab0
----
88
88
93

query I rowsort
SELECT + 6 * col0 FROM tab2
----
276
384
450

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT - - 81 * + - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-243

skipif mysql # not compatible
query I rowsort label-4793
SELECT - - 81 * + - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-243

onlyif mysql # aggregate syntax: 
query II rowsort label-4794
SELECT + ( - COUNT( * ) ), - 43 AS col0 FROM tab0
----
-3
-43

skipif mysql # not compatible
query II rowsort label-4794
SELECT + ( - COUNT ( * ) ), - 43 AS col0 FROM tab0
----
-3
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT SUM( - ( + 93 ) ) FROM tab0 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT SUM ( - ( + 93 ) ) FROM tab0 cor0
----
-279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT - 92 + COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT - 92 + COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - ( + 94 ) + col0 AS col2 FROM tab1 AS cor0
----
-3
-43
-9

query I rowsort
SELECT 67 + - col1 + - + col0 FROM tab0 AS cor0
----
-29
-31
-41

query I rowsort
SELECT ALL - 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4800
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL + + 35 - col0 FROM tab0 AS cor0
----
-52
-62
20

query I rowsort
SELECT 35 AS col0 FROM tab2 cor0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IN ( - col1, - col1 * + 57 + - + 40 + - 75, - CAST( + col1 AS SIGNED ) + - - col1 + - 51, 35 )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IN ( - col1, - col1 * + 57 + - + 40 + - 75, - CAST ( + col1 AS INTEGER ) + - - col1 + - 51, 35 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT DISTINCT SUM( DISTINCT + 76 ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT SUM ( DISTINCT + 76 ) FROM tab2
----
76

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - + ( + 35 ) + col1 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4806
SELECT DISTINCT 60 AS col0, CAST( SUM( ALL - + col2 ) AS SIGNED ) FROM tab0
----
60
-156

skipif mysql # not compatible
query II rowsort label-4806
SELECT DISTINCT 60 AS col0, CAST ( SUM ( ALL - + col2 ) AS INTEGER ) FROM tab0
----
60
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4807
SELECT + COUNT( * ) AS col1, + COUNT( * ) DIV + + MIN( col2 ) col0 FROM tab0
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4807
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) / + + MIN ( col2 ) col0 FROM tab0
----
3
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 15 * - - col0 * - col2 / - + col0 * + ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + - ( + - col0 ) * 81 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - ( + - col0 ) * 81 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col1 * - - ( col2 ) AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + SUM( ALL 19 ) * COUNT( ALL 16 ) AS col1 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-4811
SELECT + SUM ( ALL 19 ) * COUNT ( ALL 16 ) AS col1 FROM tab2 AS cor0
----
171

query I rowsort
SELECT ALL + - 3 * + - col0 * + col1 FROM tab0 AS cor0
----
291
3645
5481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4813
SELECT + 95 AS col0, - COUNT( * ) + - + 49 - - - CAST( - - ( - COUNT( * ) ) AS SIGNED ) * - SUM( + + 2 ) AS col0 FROM tab1 AS cor0
----
95
-70

skipif mysql # not compatible
query II rowsort label-4813
SELECT + 95 AS col0, - COUNT ( * ) + - + 49 - - - CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) * - SUM ( + + 2 ) AS col0 FROM tab1 AS cor0
----
95
-70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + ( col2 ) + + + ( + col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT SUM( ALL + 41 ) AS col0 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-4815
SELECT SUM ( ALL + 41 ) AS col0 FROM tab1 AS cor0
----
123

query I rowsort
SELECT ALL - - 33 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT + MAX( - 88 ) AS col2 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4817
SELECT + MAX ( - 88 ) AS col2 FROM tab2
----
-88

query I rowsort
SELECT - 40 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) * 68 col0 FROM tab2 AS cor0
----
-1564
-2720
-3944

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 * + + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + col1 + col1 * 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 5 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query III rowsort
SELECT ALL * FROM tab0 WHERE - 38 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 + - - col1 AS col0 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT COUNT( * ) + 31 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-4825
SELECT COUNT ( * ) + 31 FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT DISTINCT ( + + COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT ( + + COUNT ( * ) ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT ALL col2 + + col0 DIV - - 55 AS col1 FROM tab2
----
23
41
59

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL col2 + + col0 / - - 55 AS col1 FROM tab2
----
23
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT - - COUNT( * ) * - SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT - - COUNT ( * ) * - SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
-585

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 82 * col0 * + col2 * - 22 * - col1 NOT BETWEEN + - col0 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 / - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4830
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 / - col0 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + + 73 + - - 36 FROM tab0 AS cor0
----
109

query III rowsort
SELECT ALL * FROM tab0 WHERE + 16 <= NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT 57 NOT IN ( col1, ( col2 ) + - col0 )
----

query I rowsort
SELECT 68 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT - 29 * - SUM( ALL col2 ) FROM tab1 AS cor0
----
6467

skipif mysql # not compatible
query I rowsort label-4835
SELECT - 29 * - SUM ( ALL col2 ) FROM tab1 AS cor0
----
6467

query I rowsort
SELECT col0 + + col2 * + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 10 ) * + - 31 FROM tab2 AS cor0
----
310

query I rowsort
SELECT ALL + 48 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4839
SELECT DISTINCT + - MIN( DISTINCT - col0 ) AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-4839
SELECT DISTINCT + - MIN ( DISTINCT - col0 ) AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
91
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 73 * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT + col0 DIV + col2 - - + col2 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-4841
SELECT + col0 / + col2 - - + col2 FROM tab1 AS cor0
----
60
69
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4842
SELECT + ( + - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4842
SELECT + ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT SUM( + + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4843
SELECT SUM ( + + col1 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL COUNT( * ) * - + 43 AS col1 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL COUNT ( * ) * - + 43 AS col1 FROM tab0
----
-129

onlyif mysql # DIV for integer division: 
query II rowsort label-4845
SELECT ALL - col1 DIV - col1, col1 FROM tab2
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-4845
SELECT ALL - col1 / - col1, col1 FROM tab2
----
1
51
1
67
1
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT DISTINCT col1 * ( + - 90 ) DIV - 5 AS col0 FROM tab0
----
1458
18
378

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT col1 * ( + - 90 ) / - 5 AS col0 FROM tab0
----
1458
18
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * - 95 col0 FROM tab0 cor0
----
-855
-855
-855

query I rowsort
SELECT col0 * + col2 + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 * - + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4849
SELECT - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4849
SELECT - - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 26 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # aggregate syntax: 
query II rowsort label-4851
SELECT DISTINCT 63 AS col1, 82 + COUNT( * ) FROM tab0
----
63
85

skipif mysql # not compatible
query II rowsort label-4851
SELECT DISTINCT 63 AS col1, 82 + COUNT ( * ) FROM tab0
----
63
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4852
SELECT - + 70 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4852
SELECT - + 70 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-23

query II rowsort
SELECT DISTINCT - + 11 AS col2, - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-11
46
-11
64
-11
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 + - col1 col2 FROM tab0 AS cor0
----
3
63
83

query I rowsort
SELECT - 87 * + col0 AS col1 FROM tab0 AS cor0
----
-1305
-7569
-8439

query I rowsort
SELECT col2 * + + 28 + - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1567
1813
2637

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT - + 46 DIV - + 21 AS col2 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4857
SELECT - + 46 / - + 21 AS col2 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - col1 + col0 + + - col2 + + - col0 + + col0 * col2 * col2 - + 39 * col0 * + 40 FROM tab0 AS cor0
----
-127051
799277
9607

query II rowsort
SELECT ALL col2 + + col0 AS col1, col0 AS col0 FROM tab2
----
104
64
133
75
69
46

query II rowsort
SELECT ALL col2 - + col2, col0 AS col0 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT 65 NOT IN ( - col2 ) AND - - 90 < NULL
----

query I rowsort
SELECT col0 + col2 + col1 + + - 50 AS col2 FROM tab2
----
131
150
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL + MIN( + 41 ) + - 44 col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4863
SELECT ALL + MIN ( + 41 ) + - 44 col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT ALL COUNT( * ) - + + CAST( + 48 AS SIGNED ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL COUNT ( * ) - + + CAST ( + 48 AS INTEGER ) FROM tab0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT DISTINCT col2 DIV ( + 87 ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT col2 / ( + 87 ) FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT + + 46 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 1 * - 14 + - + 21 >= + 0 - - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT + - CAST( + + 9 AS SIGNED ) FROM tab1 cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-4868
SELECT + - CAST ( + + 9 AS INTEGER ) FROM tab1 cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT DISTINCT + SUM( + - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT + SUM ( + - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT - + ( + - col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + - col1 * - 61 - + 54 + + col0 FROM tab0 AS cor0
----
104
1314
4902

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4872
SELECT - col0 AS col1, + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-4872
SELECT - col0 AS col1, + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query II rowsort
SELECT - + col0 AS col2, - ( + 85 ) + + 97 AS col0 FROM tab2 cor0
----
-46
12
-64
12
-75
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL + MAX( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + MAX ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4875
SELECT DISTINCT AVG ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT AVG ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 17 AS col2 FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT - + 53 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * + 41 * - - 48 AS col2 FROM tab0
----
159408
1968
41328

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT COUNT( * ) * + ( - COUNT( * ) ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4880
SELECT COUNT ( * ) * + ( - COUNT ( * ) ) AS col2 FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( + col0 ) * + col2 + + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 42 * col0 col1, + col1 * - col2 AS col2 FROM tab0 AS cor0
----
3654
-210
4074
-99
630
-3807

query II rowsort
SELECT ALL col2 * - col1, col2 AS col1 FROM tab2
----
-1173
23
-3080
40
-3886
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL - CAST( NULL AS SIGNED ) + - 51 * - 37 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-4884
SELECT ALL - CAST ( NULL AS INTEGER ) + - 51 * - 37 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT - SUM( + 70 ) + + COUNT( - col1 ) FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-4885
SELECT - SUM ( + 70 ) + + COUNT ( - col1 ) FROM tab0 AS cor0
----
-207

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - col2 AND col2
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL >= - + col1 )
----

query I rowsort
SELECT DISTINCT col1 + ( - ( - col1 ) ) * - col2 AS col1 FROM tab1
----
-1330
-290
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-4889
SELECT DISTINCT 32 DIV - col2 - + - col2 AS col2 FROM tab2
----
22
40
58

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT 32 / - col2 - + - col2 AS col2 FROM tab2
----
22
40
58

query I rowsort
SELECT - col0 FROM tab1 WHERE - 97 + col0 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4891
SELECT - COUNT( * ) AS col1, - 64 * - 0 AS col2 FROM tab2
----
-3
0

skipif mysql # not compatible
query II rowsort label-4891
SELECT - COUNT ( * ) AS col1, - 64 * - 0 AS col2 FROM tab2
----
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4892
SELECT DISTINCT + 30, + CAST( col2 AS SIGNED ) + 14 + col1 AS col2 FROM tab0
----
30
114
30
142
30
45

skipif mysql # not compatible
query II rowsort label-4892
SELECT DISTINCT + 30, + CAST ( col2 AS INTEGER ) + 14 + col1 AS col2 FROM tab0
----
30
114
30
142
30
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4893
SELECT ALL SUM( + col2 ) - 38 AS col1, 19 DIV - 28 + 48 AS col1 FROM tab1
----
185
48

skipif mysql # not compatible
query II rowsort label-4893
SELECT ALL SUM ( + col2 ) - 38 AS col1, 19 / - 28 + 48 AS col1 FROM tab1
----
185
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > col0
----

query I rowsort
SELECT ALL ( + 62 ) FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT ALL - 19 + - 48 AS col0 FROM tab0 cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT - - CAST( NULL AS SIGNED ) - - 42 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT - - CAST ( NULL AS INTEGER ) - - 42 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 91 ) FROM tab2 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT + MIN( - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4899
SELECT + MIN ( - col2 ) FROM tab1
----
-96

query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-53

query II rowsort
SELECT ALL + + col0, + col2 AS col2 FROM tab0 AS cor0 WHERE col2 + + - 70 IS NULL
----

query I rowsort
SELECT col2 * - 88 * 53 FROM tab1 AS cor0
----
-275176
-317152
-447744

query I rowsort
SELECT DISTINCT + 11 FROM tab0 WHERE NOT - + ( + col1 ) + - - col0 IS NULL
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT MIN( - - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4904
SELECT MIN ( - - col1 ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 34 + + 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( col1 ) col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT 77 * col1 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT ( + - CAST( NULL AS SIGNED ) ) / - + 52 * + 82 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT ( + - CAST ( NULL AS INTEGER ) ) / - + 52 * + 82 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4909
SELECT col1, CAST( NULL AS DECIMAL ) / - col2 * - 18 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4909
SELECT col1, CAST ( NULL AS REAL ) / - col2 * - 18 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL + COUNT( * ) + + - 46 FROM tab0 WHERE NOT + - col1 BETWEEN - - 4 * + - 15 AND NULL
----
-45

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + COUNT ( * ) + + - 46 FROM tab0 WHERE NOT + - col1 BETWEEN - - 4 * + - 15 AND NULL
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT - - col2 + 1 * + + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-4911
SELECT - - col2 + 1 * + + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT - + ( - col0 ) + - ( - col0 ) FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT + SUM( DISTINCT - col1 ) + - CAST( NULL AS SIGNED ) + + + 46 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT + SUM ( DISTINCT - col1 ) + - CAST ( NULL AS INTEGER ) + + + 46 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT MAX( ( + + col0 ) ) * + + MIN( - col2 ) AS col2 FROM tab2 AS cor0 WHERE col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT MAX ( ( + + col0 ) ) * + + MIN ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE col0 = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4915
SELECT DISTINCT col1 + col0 DIV col0 * col2 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT col1 + col0 / col0 * col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT ALL - CAST( 8 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - CAST ( 8 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT col2 + col1 + - - 96 AS col2 FROM tab0
----
127
196
224

query I rowsort
SELECT ALL 73 + + + col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
160
170
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT 45 * + col2 AS col2 FROM tab2 AS cor0
----
1035
1800
2610

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT + - COUNT( * ) * 97 AS col2, - 83 AS col1 FROM tab0 AS cor0
----
-291
-83

skipif mysql # not compatible
query II rowsort label-4921
SELECT + - COUNT ( * ) * 97 AS col2, - 83 AS col1 FROM tab0 AS cor0
----
-291
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4922
SELECT DISTINCT - ( + + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT - ( + + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 43 * - - col1 + - - 96 - + ( col0 ) AS col2 FROM tab2 cor0
----
-2143
-2860
-3279

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab1 cor0 WHERE NOT 32 - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - - COUNT( * ) * 87 * - 17 * + COUNT( * ) - - COUNT( + ( + col2 ) ) col2 FROM tab0 AS cor0
----
-13308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4925
SELECT - - COUNT ( * ) * 87 * - 17 * + COUNT ( * ) - - COUNT ( + ( + col2 ) ) col2 FROM tab0 AS cor0
----
-13308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 95 AS col2, - 93 * col1 col1 FROM tab1 AS cor0
----
-95
-1302
-95
-4371
-95
-465

query II rowsort
SELECT ALL - col2 AS col0, + col0 + + col1 FROM tab1 AS cor0
----
-59
90
-68
138
-96
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT DISTINCT + 63 * + CAST( + 66 AS SIGNED ) - + col2 + + col0 + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT + 63 * + CAST ( + 66 AS INTEGER ) - + col2 + + col0 + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4929
SELECT 31 - + 10 DIV COUNT( * ) col2 FROM tab2 cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4929
SELECT 31 - + 10 / COUNT ( * ) col2 FROM tab2 cor0
----
28

query I rowsort
SELECT ALL + - col1 * - - col1 + + ( 67 ) FROM tab0 AS cor0
----
-374
-6494
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - 91 * col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 73 - ( col2 ) FROM tab0
----
-26
26
63

query II rowsort
SELECT DISTINCT - col1 + - col2 AS col0, col1 FROM tab0
----
-100
1
-128
81
-31
21

query III rowsort
SELECT * FROM tab2 WHERE + - 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT COUNT( * ) * - 11 AS col2 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4935
SELECT COUNT ( * ) * - 11 AS col2 FROM tab2 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4936
SELECT DISTINCT + 69 DIV + CAST( 24 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
2

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT + 69 / + CAST ( 24 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL - MAX( DISTINCT + col2 ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4937
SELECT ALL - MAX ( DISTINCT + col2 ) col0 FROM tab1
----
-96

query II rowsort
SELECT - 93 AS col2, + 31 FROM tab1
----
-93
31
-93
31
-93
31

query I rowsort
SELECT DISTINCT 64 * + col1 AS col0 FROM tab1 AS cor0
----
3008
320
896

query II rowsort
SELECT DISTINCT - - col0, - col1 AS col0 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4941
SELECT ALL ( COUNT( * ) ) DIV - 17 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL ( COUNT ( * ) ) / - 17 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * - + col0 + + col1 + - 54 * + - ( + + col2 ) FROM tab0 AS cor0 WHERE ( + - col0 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4943
SELECT DISTINCT - 76 DIV + - SUM( ALL + + 10 ) AS col0 FROM tab1 AS cor0 WHERE NOT 94 < + col2
----
3

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT - 76 / + - SUM ( ALL + + 10 ) AS col0 FROM tab1 AS cor0 WHERE NOT 94 < + col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 BETWEEN NULL AND + col2
----

query II rowsort
SELECT + col0 * + col1 * - 93 + col0, + col1 FROM tab1
----
-39440
5
-397670
47
-66351
14

query I rowsort
SELECT col0 * - - ( - ( + col1 ) ) + + col1 - + - 62 * - ( 53 ) AS col0 FROM tab1
----
-3706
-3986
-7516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT - 32 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-109
-83
-99

skipif mysql # not compatible
query I rowsort label-4948
SELECT - 32 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-109
-83
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT + - MAX( ALL + + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT + - MAX ( ALL + + col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT - + 78 * - - COUNT( * ) FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4950
SELECT - + 78 * - - COUNT ( * ) FROM tab2 AS cor0
----
-234

query I rowsort
SELECT 64 - - col1 FROM tab0
----
145
65
85

query I rowsort
SELECT - 10 FROM tab2 WHERE - 85 IS NOT NULL
----
-10
-10
-10

query I rowsort
SELECT - col2 + col0 * + + col0 FROM tab2 AS cor0
----
2093
4056
5567

query I rowsort
SELECT ALL + - col1 - col1 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + SUM( - 12 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-4955
SELECT + SUM ( - 12 ) FROM tab1
----
-36

query I rowsort
SELECT DISTINCT + 95 * + - 10 FROM tab1 WHERE col0 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - - col0 AS col2 FROM tab2
----
141
142
97

query II rowsort
SELECT - col1, - col1 AS col2 FROM tab2
----
-51
-51
-67
-67
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col0 ) col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ( + MIN( DISTINCT - - 57 ) ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-4960
SELECT ( + MIN ( DISTINCT - - 57 ) ) FROM tab1
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 14, 0 * - col0 col2 FROM tab0
----
14
0
14
0
14
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col2 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT DISTINCT 62 * 83 / - CAST( NULL AS SIGNED ) * - AVG ( ALL + col1 ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT 62 * 83 / - CAST ( NULL AS INTEGER ) * - AVG ( ALL + col1 ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 9 + 2 AS col0 FROM tab0 AS cor0
----
-187
-7
-727

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 28 * + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT DISTINCT - SUM( - + col0 ) * + 32 AS col0, COUNT( * ) AS col2 FROM tab0
----
6368
3

skipif mysql # not compatible
query II rowsort label-4966
SELECT DISTINCT - SUM ( - + col0 ) * + 32 AS col0, COUNT ( * ) AS col2 FROM tab0
----
6368
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / + 32 < - 19
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 81 * + 41 NOT IN ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 * 29 * + col1 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( ( + col1 ) ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4971
SELECT - AVG ( ALL - 44 ) FROM tab0 AS cor0 WHERE NOT col1 * - col0 * col0 * + col1 * - 48 * - CAST( NULL AS DECIMAL ) * - col0 / + + 28 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT - AVG ( ALL - 44 ) FROM tab0 AS cor0 WHERE NOT col1 * - col0 * col0 * + col1 * - 48 * - CAST ( NULL AS REAL ) * - col0 / + + 28 IS NULL
----
NULL

query I rowsort
SELECT ALL col2 * ( - 56 ) * + 84 + + col1 FROM tab2 AS cor0
----
-108141
-188083
-272765

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4973
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4973
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT DISTINCT - COUNT( * ) + + - 57 AS col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT - COUNT ( * ) + + - 57 AS col1 FROM tab0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4975
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 56 + 41 FROM tab1
----
NULL
-15
NULL
-15
NULL
-15

skipif mysql # not compatible
query II rowsort label-4975
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 56 + 41 FROM tab1
----
NULL
-15
NULL
-15
NULL
-15

query II rowsort
SELECT DISTINCT col1, 95 AS col2 FROM tab2
----
51
95
67
95
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - SUM( + col1 ) + - COUNT( - - 41 ) AS col0 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4977
SELECT - SUM ( + col1 ) + - COUNT ( - - 41 ) AS col0 FROM tab2 AS cor0
----
-198

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 + - 65 + + 14 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
91
91
91

query I rowsort
SELECT - - 88 + - col1 + + col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND ( - col0 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4982
SELECT * FROM tab1 WHERE + ( CAST( NULL AS SIGNED ) ) * - col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4982
SELECT * FROM tab1 WHERE + ( CAST ( NULL AS INTEGER ) ) * - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 - - 46 * - col2 AS col2 FROM tab1
----
-2773
-3196
-4512

query I rowsort
SELECT DISTINCT ( 64 ) * col1 FROM tab2
----
3264
4288
4928

query I rowsort
SELECT - col2 FROM tab1 WHERE - 99 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - 9 ) FROM tab0
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 70 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT ALL - col2 DIV - 2 AS col2 FROM tab0
----
23
49
5

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - col2 / - 2 AS col2 FROM tab0
----
23
49
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL MIN( ALL - 70 ) AS col2 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL MIN ( ALL - 70 ) AS col2 FROM tab2
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT ALL - col2 DIV - col2 + col1 AS col2 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL - col2 / - col2 + col1 AS col2 FROM tab1
----
15
48
6

query I rowsort
SELECT - 94 * - col2 - col0 AS col0 FROM tab2
----
2116
3696
5377

query III rowsort
SELECT * FROM tab1 WHERE NOT - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT + 84 DIV + COUNT( * ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-4994
SELECT + 84 / + COUNT ( * ) FROM tab2
----
28

query I rowsort
SELECT ALL - 48 / col1 FROM tab2 WHERE + ( col0 ) / + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 34 < col2 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 / + 51 )
----

query I rowsort
SELECT - 85 / + col0 AS col1 FROM tab1 WHERE + 31 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + 11 * + COUNT( * ) FROM tab0 WHERE NOT - col1 * 31 BETWEEN NULL AND 44
----
0

skipif mysql # not compatible
query I rowsort label-5000
SELECT + 11 * + COUNT ( * ) FROM tab0 WHERE NOT - col1 * 31 BETWEEN NULL AND 44
----
0

query I rowsort
SELECT col1 * ( - ( col0 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 95
----

query I rowsort
SELECT ALL + col0 + + 99 * col2 FROM tab1 AS cor0 WHERE ( col0 ) * + col1 IS NOT NULL
----
5926
6823
9555

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT COUNT( * ) * 21 AS col2 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5003
SELECT COUNT ( * ) * 21 AS col2 FROM tab2 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5004
SELECT * FROM tab0 cor0 WHERE NOT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + col1 / + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5004
SELECT * FROM tab0 cor0 WHERE NOT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + col1 / + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 47 * - 96 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 47 * - 96 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT ALL - 41 DIV 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - 41 / 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT DISTINCT - SUM( ALL - 97 ) AS col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT - SUM ( ALL - 97 ) AS col1 FROM tab0 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT MAX( ( col0 ) ) col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5008
SELECT MAX ( ( col0 ) ) col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT + col1 / - col0 FROM tab1 AS cor0 WHERE NOT ( 39 ) IS NOT NULL
----

query I rowsort
SELECT - + 98 * - col2 FROM tab1 cor0
----
5782
6664
9408

query I rowsort
SELECT ALL - - col1 + - 14 * 42 FROM tab2 AS cor0
----
-511
-521
-537

query I rowsort
SELECT - 84 + col1 FROM tab0 AS cor0
----
-3
-63
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col2 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT + 2 * + col0 + 68 DIV col1 AS col0 FROM tab1 cor0
----
106
183
183

skipif mysql # not compatible
query I rowsort label-5014
SELECT + 2 * + col0 + 68 / col1 AS col0 FROM tab1 cor0
----
106
183
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 * col1 col0 FROM tab0 AS cor0
----
1869
7209
89

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE 70 * col0 IS NULL
----

query I rowsort
SELECT ALL + - 6 + col2 FROM tab0 cor0
----
4
41
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT DISTINCT - col2 + - 74 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT - col2 + - 74 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( 90 )
----

query I rowsort
SELECT ALL 57 * - col1 FROM tab1
----
-2679
-285
-798

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col1 * + col2 )
----

query I rowsort
SELECT ALL 82 * - 68 + - col1 AS col1 FROM tab1
----
-5581
-5590
-5623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT - 71 DIV - COUNT( * ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-5023
SELECT - 71 / - COUNT ( * ) AS col0 FROM tab1
----
23

query I rowsort
SELECT + ( col0 ) * + col1 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab0 WHERE ( NULL ) IN ( col2 )
----

query I rowsort
SELECT 56 * + + 32 AS col0 FROM tab1
----
1792
1792
1792

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5027
SELECT * FROM tab1 AS cor0 WHERE ( + 56 ) + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5027
SELECT * FROM tab1 AS cor0 WHERE ( + 56 ) + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ( - 12 ) * - COUNT( * ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5028
SELECT ( - 12 ) * - COUNT ( * ) FROM tab1 AS cor0
----
36

query I rowsort
SELECT ALL + AVG ( - col0 ) AS col2 FROM tab2 WHERE ( col1 BETWEEN ( NULL ) AND ( + col0 ) )
----
NULL

query I rowsort
SELECT DISTINCT + 4 + + 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
75

query I rowsort
SELECT DISTINCT col1 - + col0 * ( col0 ) + col0 FROM tab0 AS cor0
----
-129
-7461
-9311

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5032
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5032
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 86 * + + col0 FROM tab0 AS cor0
----
1290
7482
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT ALL - MAX( 69 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - MAX ( 69 ) FROM tab0 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-5035
SELECT - col2 AS col1, - 23 + - col0 DIV - 2 FROM tab2 AS cor0
----
-23
0
-40
9
-58
14

skipif mysql # not compatible
query II rowsort label-5035
SELECT - col2 AS col1, - 23 + - col0 / - 2 FROM tab2 AS cor0
----
-23
0
-40
9
-58
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 3 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL SUM( 18 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL SUM ( 18 ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT - 61 * 76 FROM tab1
----
-4636
-4636
-4636

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 - - - col1 + col1 ) < ( - 36 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 96 AS col1 FROM tab1 WHERE NOT - col2 + col1 + 29 BETWEEN + col0 AND ( 85 )
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE - col2 > ( + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col1 + - 20 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
-34
47
-67
5
-25

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + + col0 * - + col0 + + 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT ALL 35 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL 35 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5045
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 * + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5045
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 * + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + - 69 ) AS col2 FROM tab0 AS cor0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - col0
----

query I rowsort
SELECT ALL + col2 + - - col2 AS col1 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5049
SELECT * FROM tab0 AS cor0 WHERE NULL <= - col0 * 63 * - col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5049
SELECT * FROM tab0 AS cor0 WHERE NULL <= - col0 * 63 * - col2 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 34 + + + 12 FROM tab1 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT + 19 + 26 - CAST( ( CAST( NULL AS SIGNED ) ) + 45 AS SIGNED ) * col2 AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( - 24, + col1 )
----

skipif mysql # not compatible
query I rowsort label-5051
SELECT + 19 + 26 - CAST ( ( CAST ( NULL AS INTEGER ) ) + 45 AS INTEGER ) * col2 AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( - 24, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL + + COUNT( * ) * + COUNT( * ) FROM tab0 WHERE ( ( NULL ) IS NULL )
----
9

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE ( ( NULL ) IS NULL )
----
9

query I rowsort
SELECT DISTINCT col0 / - - 72 FROM tab2 WHERE ( NOT NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE - 54 / col2 * - 61 + - 97 NOT IN ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-5054
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE - 54 / col2 * - 61 + - 97 NOT IN ( col1 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT COUNT( * ) col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5055
SELECT COUNT ( * ) col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

query II rowsort
SELECT ALL 24 AS col0, 80 * + col2 + - col2 - + + col0 FROM tab2 cor0
----
24
1771
24
3096
24
4507

query I rowsort
SELECT 74 + - col1 AS col0 FROM tab1 AS cor0
----
27
60
69

query I rowsort
SELECT ALL 67 + + - ( col0 ) AS col0 FROM tab2
----
-8
21
3

query I rowsort
SELECT + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - 95 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 45 * - col0 BETWEEN NULL AND ( + col0 / + - col1 + - - col0 - col2 / col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5062
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + - 42 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + CAST ( NULL AS REAL ) * + - 42 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT + 68 * + SUM( DISTINCT + - col0 ) FROM tab2 cor0
----
-12580

skipif mysql # not compatible
query I rowsort label-5064
SELECT + 68 * + SUM ( DISTINCT + - col0 ) FROM tab2 cor0
----
-12580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT + col0 * + col2 * + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
163840
326250
48668

skipif mysql # not compatible
query I rowsort label-5065
SELECT + col0 * + col2 * + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT ALL 45 * col1 AS col1 FROM tab2 AS cor0
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT - COUNT( * ) * + - COUNT( ALL 50 ) + - 40 + + 36 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5067
SELECT - COUNT ( * ) * + - COUNT ( ALL 50 ) + - 40 + + 36 FROM tab2 AS cor0
----
5

query I rowsort
SELECT ALL col1 * - - 42 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
1974
210
588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 29 col1 FROM tab2 AS cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 15, - 4 * - - col1 * - 97 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 87 + col0 NOT IN ( 2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT ALL 58 DIV + - 24 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL 58 / + - 24 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT 9 * col1 FROM tab0
----
189
729
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT - col1 DIV 9 FROM tab2
----
-5
-7
-8

skipif mysql # not compatible
query I rowsort label-5075
SELECT - col1 / 9 FROM tab2
----
-5
-7
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT ALL - 99 DIV + - col1 col0 FROM tab1
----
19
2
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5076
SELECT ALL - 99 / + - col1 col0 FROM tab1
----
19
2
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col1 FROM tab0
----
-27
-27
-27

query II rowsort
SELECT + 0 AS col1, - col0 + - col2 AS col2 FROM tab2
----
0
-104
0
-133
0
-69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 / - col0 * - + 69 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT + SUM( DISTINCT - - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT + SUM ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL ( - - 71 ) * col2 AS col2 FROM tab2 AS cor0
----
1633
2840
4118

query II rowsort
SELECT - - 86, 81 AS col1 FROM tab1 AS cor0
----
86
81
86
81
86
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - COUNT( * ) - ( 52 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-5084
SELECT - COUNT ( * ) - ( 52 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT + - 36 - col1 * + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5086
SELECT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN 21 AND - 27 + 69 + + 75
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < col0 - - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT ALL - 8 DIV + 19 + + 94 AS col0 FROM tab0 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL - 8 / + 19 + + 94 AS col0 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT - col1 + 60 AS col1 FROM tab2
----
-17
-7
9

query III rowsort
SELECT * FROM tab1 WHERE + - col2 NOT IN ( - col2 + - col1, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT IN ( - - 21 + + col2 + col1 * + 84 + + + 74 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 AS col1 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL - col0 - + + col1 AS col0 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT - COUNT( + - 49 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5095
SELECT - COUNT ( + - 49 ) col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5096
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5096
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5097
SELECT ALL + - CAST( NULL AS DECIMAL ) * AVG ( - 69 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL + - CAST ( NULL AS REAL ) * AVG ( - 69 ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 3 < - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 21 * col1 AS col0 FROM tab1 cor0
----
105
294
987

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - + 34
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 67 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = ( 14 + ( 25 ) + - 72 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 * + - ( col2 ) * + col1 / col1 / + 68 * + 78 + ( + col1 ) * - col2 ) NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5104
SELECT + col1 * - + CAST( NULL AS DECIMAL ) / + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT + col1 * - + CAST ( NULL AS REAL ) / + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 14 FROM tab0 AS cor0 WHERE NOT NULL >= + 17 + + 61 / 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT COUNT( ALL col0 ) * + 56 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-5106
SELECT COUNT ( ALL col0 ) * + 56 FROM tab2 AS cor0
----
168

query II rowsort
SELECT DISTINCT + col1 AS col0, 34 + - + col1 * - + ( - col0 ) AS col0 FROM tab0 AS cor0
----
1
-63
21
-1793
81
-1181

query II rowsort
SELECT DISTINCT - - 35 + - + 15, 55 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5109
SELECT DISTINCT - 17 AS col1, COUNT( * ) col1 FROM tab1 AS cor0
----
-17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5109
SELECT DISTINCT - 17 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0
----
-17
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT DISTINCT col2 DIV + - col2 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT col2 / + - col2 AS col1 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 57 + - + col2 + - col1 + - 32 / col1 / - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + 32 * - col1 * + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 * - + col0 = ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL - MIN( DISTINCT + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - MIN ( DISTINCT + col1 ) AS col1 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5116
SELECT + col0 * - col2 + - CAST( NULL AS SIGNED ) AS col2, 0 AS col0 FROM tab2
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-5116
SELECT + col0 * - col2 + - CAST ( NULL AS INTEGER ) AS col2, 0 AS col0 FROM tab2
----
NULL
0
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab2 WHERE 50 BETWEEN ( + col1 ) AND - col2
----

query II rowsort
SELECT col2 AS col1, col2 FROM tab2 cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT + - 17 AS col2 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - col0 + - 96 AS col1 FROM tab1 AS cor0
----
-147
-181
-187

query I rowsort
SELECT - + ( 65 ) FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL - col2 + 36 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
1071
2556
4328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5123
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COUNT( col2 ) + 82 * 54 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5123
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COUNT ( col2 ) + 82 * 54 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5124
SELECT DISTINCT col1 col0, - col2 DIV + + 54 FROM tab1 AS cor0
----
14
-1
47
-1
5
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5124
SELECT DISTINCT col1 col0, - col2 / + + 54 FROM tab1 AS cor0
----
14
-1
47
-1
5
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT ALL + col0 + + - 45 FROM tab0 AS cor0
----
-30
42
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 15 * - - col0 IS NULL
----

query II rowsort
SELECT DISTINCT col2 + - col0 AS col1, 82 - 42 FROM tab2
----
-17
40
-23
40
-24
40

query I rowsort
SELECT ALL - col2 - + + 15 AS col1 FROM tab1
----
-111
-74
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5130
SELECT ALL - col1 col2 FROM tab0 WHERE - col2 * CAST( NULL AS SIGNED ) / col2 * + + 91 / + - ( + + col1 ) * + 96 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5130
SELECT ALL - col1 col2 FROM tab0 WHERE - col2 * CAST ( NULL AS INTEGER ) / col2 * + + 91 / + - ( + + col1 ) * + 96 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - + col0 + - + 29 * ( 26 ) AS col0, - 72 AS col1 FROM tab1 cor0
----
-805
-72
-839
-72
-845
-72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * col1 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 + col2 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT - COUNT( * ) * 70 AS col1 FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-5134
SELECT - COUNT ( * ) * 70 AS col1 FROM tab2 AS cor0
----
-210

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab0 AS cor1 ON 31 IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT DISTINCT COUNT( ( + ( - + col2 ) ) ) * COUNT( * ) * - + 13 AS col0 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT COUNT ( ( + ( - + col2 ) ) ) * COUNT ( * ) * - + 13 AS col0 FROM tab0 AS cor0
----
-117

query II rowsort
SELECT ALL - col2 * ( + 90 ), col2 FROM tab1 AS cor0 WHERE NOT 1 - ( + - col2 ) NOT IN ( + ( + col2 ), - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5138
SELECT DISTINCT - - COUNT( * ) DIV 30 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - - COUNT ( * ) / 30 AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL col1 AS col1, 62 FROM tab1 AS cor0
----
14
62
47
62
5
62

query I rowsort
SELECT + col1 * - 66 AS col2 FROM tab2 AS cor0
----
-3366
-4422
-5082

query I rowsort
SELECT ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 * - col2 FROM tab1
----
51
-1344
85
-295
91
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 42, + col2 col2 FROM tab2
----
-42
23
-42
40
-42
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5144
SELECT + col0 DIV + CAST( - 93 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5144
SELECT + col0 / + CAST ( - 93 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5145
SELECT DISTINCT - 56 * 68 DIV 80 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - 56 * 68 / 80 FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT - 66 * + COUNT( * ) * - + 42 AS col2 FROM tab0
----
8316

skipif mysql # not compatible
query I rowsort label-5146
SELECT - 66 * + COUNT ( * ) * - + 42 AS col2 FROM tab0
----
8316

query II rowsort
SELECT DISTINCT + 6, + col1 FROM tab2
----
6
51
6
67
6
77

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + 70 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - 86 * col2 FROM tab2
----
-100878
-264880
-334196

query I rowsort
SELECT DISTINCT - + col2 * col2 + + + col1 + col2 * - 32 AS col0 FROM tab1 AS cor0
----
-12274
-5364
-6753

query I rowsort
SELECT + 70 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5152
SELECT col0 DIV col0 * - - col0 + + col0, + ( - - 68 ) + - + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
174
69
194
69
30
69

skipif mysql # not compatible
query II rowsort label-5152
SELECT col0 / col0 * - - col0 + + col0, + ( - - 68 ) + - + col2 / - col2 AS col1 FROM tab0 AS cor0
----
174
69
194
69
30
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT DISTINCT - + 83 DIV + 73 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT - + 83 / + 73 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 94 * + 12 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 65745885c8fdd3499d1cc49791f30813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5155
SELECT col0 + - col2 * - CAST( NULL AS SIGNED ) / + + ( + col2 ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5155
SELECT col0 + - col2 * - CAST ( NULL AS INTEGER ) / + + ( + col2 ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 85 + - col0 AS col1 FROM tab2
----
10
21
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT - MAX( - - col2 ) + 79 * COUNT( * ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-5157
SELECT - MAX ( - - col2 ) + 79 * COUNT ( * ) FROM tab0 AS cor0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5158
SELECT + + SUM( ALL + ( col1 ) ) FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-5158
SELECT + + SUM ( ALL + ( col1 ) ) FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
103

query II rowsort
SELECT ALL - 18 AS col1, 37 FROM tab1 AS cor0 WHERE NOT col1 <> + + 93 + + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 94 + + 29 <> - ( + 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 90 NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT ALL col1 DIV - - 20 + + 36 + - col0 FROM tab2 AS cor0
----
-25
-36
-8

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL col1 / - - 20 + + 36 + - col0 FROM tab2 AS cor0
----
-25
-36
-8

query I rowsort
SELECT ALL 71 - + col0 FROM tab0
----
-16
-26
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5164
SELECT - ( + - CAST( NULL AS SIGNED ) ) * + + COUNT( * ) * - - 1 AS col0 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT - ( + - CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) * - - 1 AS col0 FROM tab1, tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + - col2 AND 70
----

query II rowsort
SELECT 23 AS col2, - col1 FROM tab2
----
23
-51
23
-67
23
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT COUNT( * ) col1 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5167
SELECT COUNT ( * ) col1 FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 3 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5169
SELECT ALL - col1 AS col0, CAST( - 0 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-5169
SELECT ALL - col1 AS col0, CAST ( - 0 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT + col0 DIV - + ( col0 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5170
SELECT + col0 / - + ( col0 ) FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5171
SELECT SUM( ALL + ( CAST( + col1 AS SIGNED ) ) ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5171
SELECT SUM ( ALL + ( CAST ( + col1 AS INTEGER ) ) ) AS col1 FROM tab2
----
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL COUNT( * ) * SUM( + 45 ) FROM tab1 cor0
----
405

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL COUNT ( * ) * SUM ( + 45 ) FROM tab1 cor0
----
405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5174
SELECT + - MIN( + + CAST( NULL AS SIGNED ) ) * + AVG ( DISTINCT + CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT + - MIN ( + + CAST ( NULL AS INTEGER ) ) * + AVG ( DISTINCT + CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT - 99 + col0 * + col0 FROM tab2 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) + 93 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5175
SELECT - 99 + col0 * + col0 FROM tab2 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) + 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 68 * - col2 col0, + 54 * col2 FROM tab0 AS cor0
----
-3196
2538
-6732
5346
-680
540

query I rowsort
SELECT + 23 * 3 FROM tab1
----
69
69
69

query I rowsort
SELECT ALL + col0 + - 59 * col0 FROM tab0
----
-5046
-5626
-870

query I rowsort
SELECT + col1 * - 42 AS col2 FROM tab0
----
-3402
-42
-882

query I rowsort
SELECT - 89 * + - 5 * - col0 AS col1 FROM tab1
----
-22695
-37825
-40495

query I rowsort
SELECT DISTINCT - 40 * ( + col0 ) AS col2 FROM tab2
----
-1840
-2560
-3000

query II rowsort
SELECT DISTINCT 77 + - col2 + + 36 + - col0 + col0, - col2 * + - col2 * + + col2 AS col0 FROM tab0
----
103
1000
14
970299
66
103823

query II rowsort
SELECT DISTINCT + + 60 AS col2, - 40 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT ALL + col0 DIV + 37 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + col0 / + 37 FROM tab1
----
1
2
2

query I rowsort
SELECT ALL - col2 * - + ( - col1 ) AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT ALL - col0 / ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - col0 / ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT - 17 + + SUM( DISTINCT - 22 ) + - 50 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5189
SELECT - 17 + + SUM ( DISTINCT - 22 ) + - 50 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT DISTINCT + + col2 * ( + - col0 ) * - col2 FROM tab2 cor0 WHERE - 58 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT SUM( DISTINCT + 25 ) - COUNT( * ) FROM tab1 WHERE NOT ( NULL NOT BETWEEN 57 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT SUM ( DISTINCT + 25 ) - COUNT ( * ) FROM tab1 WHERE NOT ( NULL NOT BETWEEN 57 AND NULL )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5193
SELECT - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5193
SELECT - + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + - col2 * 72 - - - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL COUNT( + - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL COUNT ( + - col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT - col2 - col2 * + CAST( col0 AS SIGNED ) + + 71 + + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-5298
-6265
-9381

skipif mysql # not compatible
query I rowsort label-5197
SELECT - col2 - col2 * + CAST ( col0 AS INTEGER ) + + 71 + + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-5298
-6265
-9381

query II rowsort
SELECT DISTINCT 1, + col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

query I rowsort
SELECT - ( col0 ) + + ( 96 ) * - col2 AS col0 FROM tab0 cor0
----
-1047
-4527
-9601

query I rowsort
SELECT + + col1 + + 55 FROM tab1 AS cor0
----
102
60
69

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + - 60 AND + col0
----
-15
-97

query I rowsort
SELECT DISTINCT - - col2 + + 24 + col2 AS col2 FROM tab0 AS cor0
----
118
222
44

query II rowsort
SELECT ALL - - col2 * - 38 / + col0 * - col0 * - col1 AS col2, + col1 FROM tab0 WHERE ( NULL ) <> 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT 51 * - MIN( - col1 ) FROM tab0
----
4131

skipif mysql # not compatible
query I rowsort label-5204
SELECT 51 * - MIN ( - col1 ) FROM tab0
----
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL + SUM( ALL - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + SUM ( ALL - + col2 ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT COUNT( DISTINCT - ( 82 ) ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT COUNT ( DISTINCT - ( 82 ) ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + 19 * col0 AS col2 FROM tab2 cor0
----
1216
1425
874

query I rowsort
SELECT DISTINCT - ( - + ( col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT + 13 * - - 46 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
598
598
598

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 87 * col1 / - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL MIN( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL MIN ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + col0 / - ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL col2 + - 57 + col1 * 94 FROM tab0 AS cor0
----
136
1927
7604

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT DISTINCT - + 39 + - col2 AS col2 FROM tab2 AS cor0
----
-62
-79
-97

query I rowsort
SELECT ALL col1 + - - col0 AS col0 FROM tab0
----
108
96
98

query I rowsort
SELECT 83 * - col1 FROM tab0
----
-1743
-6723
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT - MAX( 74 ) AS col1 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-5219
SELECT - MAX ( 74 ) AS col1 FROM tab1
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col1 col2 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5221
SELECT ALL - CAST( + 68 AS SIGNED ) AS col2, 18 - + - COUNT( * ) FROM tab2 AS cor0
----
-68
21

skipif mysql # not compatible
query II rowsort label-5221
SELECT ALL - CAST ( + 68 AS INTEGER ) AS col2, 18 - + - COUNT ( * ) FROM tab2 AS cor0
----
-68
21

query I rowsort
SELECT col2 * - - col0 FROM tab2 AS cor0 WHERE 40 NOT BETWEEN - 59 * - col0 + - + col2 AND - col1
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5223
SELECT DISTINCT + 66 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + 66 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
66

query I rowsort
SELECT ALL - + col0 - + + 30 AS col2 FROM tab2 AS cor0
----
-105
-76
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5225
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT + CAST( NULL AS SIGNED ) + - col0 * + col0 * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT + CAST ( NULL AS INTEGER ) + - col0 * + col0 * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 50 - + + col0 FROM tab2 AS cor0
----
-14
-25
4

query I rowsort
SELECT ALL col2 - - - col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + - 24 - + col1 * - col1 * + 36 * + ( - + col0 ) AS col1 FROM tab0 AS cor0 WHERE col1 <= - 45
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT col1 DIV + ( + - 65 ) AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5230
SELECT col1 / + ( + - 65 ) AS col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + - 35 AS col2 FROM tab1 cor0
----
-35

query I rowsort
SELECT ( 21 ) AS col2 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT ALL - col2 * + ( + 61 ) FROM tab0
----
-2867
-6039
-610

query I rowsort
SELECT DISTINCT - col0 * - 33 * 75 AS col1 FROM tab0
----
215325
240075
37125

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + COUNT( * ) * - + COUNT( * ) * + + 20 AS col1 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-5235
SELECT + COUNT ( * ) * - + COUNT ( * ) * + + 20 AS col1 FROM tab2
----
-180

query II rowsort
SELECT - col0 AS col1, ( col0 ) AS col0 FROM tab1
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + col2 * col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT - MIN( + 90 ) AS col0 FROM tab0 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5239
SELECT - MIN ( + 90 ) AS col0 FROM tab0 cor0
----
-90

query I rowsort
SELECT ( 96 ) AS col1 FROM tab0 AS cor0
----
96
96
96

query II rowsort
SELECT DISTINCT - 21, col1 FROM tab2
----
-21
51
-21
67
-21
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT DISTINCT 76 * + - 37 + - - COUNT( ALL 44 ) AS col2 FROM tab0
----
-2809

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT 76 * + - 37 + - - COUNT ( ALL 44 ) AS col2 FROM tab0
----
-2809

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT col2 + - - col2 DIV + 31 AS col2 FROM tab2
----
23
41
59

skipif mysql # not compatible
query I rowsort label-5243
SELECT col2 + - - col2 / + 31 AS col2 FROM tab2
----
23
41
59

query I rowsort
SELECT ALL 97 + - col1 * - 22 * - - col2 AS col1 FROM tab1
----
29665
6587
70409

onlyif mysql # aggregate syntax: 
query II rowsort label-5245
SELECT ALL 64 col1, - COUNT( * ) FROM tab0
----
64
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5245
SELECT ALL 64 col1, - COUNT ( * ) FROM tab0
----
64
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col0 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL SUM( - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL SUM ( - - col1 ) FROM tab2
----
195

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( + col0 ) IS NULL )
----
51
85
91

query I rowsort
SELECT DISTINCT - col0 * + 50 + + col0 * - col0 + - + 26 AS col0 FROM tab0 AS cor0
----
-1001
-11945
-14285

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + - 68 AS col2 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT - col0 * col0 + + 13 AS col0 FROM tab2 AS cor0
----
-2103
-4083
-5612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5253
SELECT - - COUNT( * ) DIV - - COUNT( * ) + 22 AS col2 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5253
SELECT - - COUNT ( * ) / - - COUNT ( * ) + 22 AS col2 FROM tab1 AS cor0
----
23

query I rowsort
SELECT col2 + col2 AS col1 FROM tab2 cor0 WHERE + 61 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 84 + - - 38 FROM tab0 AS cor0
----
122

query I rowsort
SELECT DISTINCT 69 + 64 AS col2 FROM tab1
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL + 34 - + CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
-13
-65
24

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL + 34 - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
-13
-65
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT ALL col0 DIV - - col0 + 15 * + 66 FROM tab2
----
991
991
991

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL col0 / - - col0 + 15 * + 66 FROM tab2
----
991
991
991

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT DISTINCT + COUNT( * ) - - MAX( col1 ) AS col0 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT + COUNT ( * ) - - MAX ( col1 ) AS col0 FROM tab2
----
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 >= + - 72
----
15
81
47

query I rowsort
SELECT col2 - - - 69 * - col1 AS col0 FROM tab1
----
1062
3311
404

query I rowsort
SELECT ALL col1 - + col2 + + col0 + - - 76 - - - col0 - - - col1 FROM tab0
----
-23
29
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ( COUNT( * ) ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5263
SELECT ( COUNT ( * ) ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL MAX( col1 ) * - + 24 FROM tab2 AS cor0
----
-1848

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL MAX ( col1 ) * - + 24 FROM tab2 AS cor0
----
-1848

query I rowsort
SELECT ALL - col1 * + 79 - - col1 FROM tab0 AS cor0
----
-1638
-6318
-78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 > + 12
----

query I rowsort
SELECT ALL col1 * 22 * + - 30 AS col0 FROM tab0 AS cor0
----
-13860
-53460
-660

onlyif mysql # DIV for integer division: 
query I rowsort label-5268
SELECT DISTINCT - 4 DIV + col2 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT - 4 / + col2 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT - 32 DIV 22 * col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5269
SELECT - 32 / 22 * col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT - SUM( - 86 ) FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-5270
SELECT - SUM ( - 86 ) FROM tab1 AS cor0
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5271
SELECT - 21 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-21
NULL
-21
NULL
-21
NULL

skipif mysql # not compatible
query II rowsort label-5271
SELECT - 21 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-21
NULL
-21
NULL
-21
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - col2 * 65 + - col0 + - col0 * - 36 * + - 37 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT DISTINCT + MIN( DISTINCT + - 23 ) + 36 FROM tab2, tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT + MIN ( DISTINCT + - 23 ) + 36 FROM tab2, tab2 AS cor0
----
13

query I rowsort
SELECT ALL + 85 * - col0 AS col1 FROM tab2
----
-3910
-5440
-6375

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 11 / col1 * col1 = + 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT DISTINCT + COUNT( * ) * + 64 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT + COUNT ( * ) * + 64 FROM tab2 AS cor0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT ALL + ( col1 ) DIV - col2 * - ( + + col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + ( col1 ) / - col2 * - ( + + col2 ) FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - col1 AS col0, + 61 * + col1 FROM tab1
----
-14
854
-47
2867
-5
305

query I rowsort
SELECT DISTINCT + 6 * - col2 AS col2 FROM tab2
----
-138
-240
-348

query I rowsort
SELECT ALL - - ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5281
SELECT - 23 AS col2, COUNT( * ) FROM tab1 AS cor0
----
-23
3

skipif mysql # not compatible
query II rowsort label-5281
SELECT - 23 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-23
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + + + 9 AS col0 FROM tab0 AS cor0
----
-1
-38
-90

query II rowsort
SELECT DISTINCT - + col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL + 57 FROM tab1 AS cor0 WHERE ( col1 ) > NULL
----

query I rowsort
SELECT 42 * + - col2 + - col1 + + 43 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 17 + + col2, + col0 AS col1 FROM tab1
----
42
85
51
91
79
51

query I rowsort
SELECT ALL + 11 + + col1 FROM tab0
----
12
32
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT ALL col1 - - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL col1 - - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col2 ) - col1 AS col2 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT MIN( ALL - + 53 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-5291
SELECT MIN ( ALL - + 53 ) FROM tab2
----
-53

query II rowsort
SELECT + - col1 * + - 80 + - 6, - col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 80 IS NULL
----

query I rowsort
SELECT + 45 * col2 + col0 FROM tab2 AS cor0
----
1081
1864
2685

query I rowsort
SELECT col1 + + + 21 FROM tab0
----
102
22
42

query III rowsort
SELECT * FROM tab1 WHERE - + col1 BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5297
SELECT + col2 + - 60 col0 FROM tab2 WHERE NOT col1 BETWEEN - 55 AND + 83 + + - col1 + + ( - CAST( - 27 AS DECIMAL ) )
----
-2
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5297
SELECT + col2 + - 60 col0 FROM tab2 WHERE NOT col1 BETWEEN - 55 AND + 83 + + - col1 + + ( - CAST ( - 27 AS REAL ) )
----
-2
-20

query I rowsort
SELECT ALL col0 * col1 * col1 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query II rowsort label-5299
SELECT DISTINCT - COUNT( * ) AS col0, - MIN( DISTINCT - - col1 ) * - + MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-3
-1173

skipif mysql # not compatible
query II rowsort label-5299
SELECT DISTINCT - COUNT ( * ) AS col0, - MIN ( DISTINCT - - col1 ) * - + MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-3
-1173

query I rowsort
SELECT + - 18 AS col2 FROM tab0 AS cor0 WHERE NOT - 44 IS NOT NULL
----

query I rowsort
SELECT 83 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
83
83
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5302
SELECT ALL - 88, ( + 51 ) DIV + COUNT( * ) + + 14 col0 FROM tab2 AS cor0
----
-88
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5302
SELECT ALL - 88, ( + 51 ) / + COUNT ( * ) + + 14 col0 FROM tab2 AS cor0
----
-88
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT - - col2 DIV - - 50 col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5303
SELECT - - col2 / - - 50 col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5304
SELECT ALL MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col0 * col2 * - 9 FROM tab0
----
-6345
-7830
-86427

query I rowsort
SELECT DISTINCT - AVG ( col2 ) FROM tab2 WHERE NOT NULL NOT IN ( - - col1, 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL - ( - - MAX( + col2 ) ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - ( - - MAX ( + col2 ) ) AS col2 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT - col2 DIV 97 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5308
SELECT - col2 / 97 AS col0 FROM tab0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 2 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT 86 * - - 73 * - col2 FROM tab2
----
-144394
-251120
-364124

query I rowsort
SELECT DISTINCT ( + 75 ) * + + 70 FROM tab2 AS cor0
----
5250

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 / + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT - - COUNT( * ) + 85 AS col2 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5313
SELECT - - COUNT ( * ) + 85 AS col2 FROM tab2 AS cor0
----
88

query I rowsort
SELECT col1 + + col1 - col0 * + col0 AS col1 FROM tab2
----
-2014
-3942
-5491

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT DISTINCT + + COUNT( * ) * - 33 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-297

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT + + COUNT ( * ) * - 33 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-297

query I rowsort
SELECT DISTINCT + 78 * - - col0 FROM tab2
----
3588
4992
5850

query I rowsort
SELECT - 11 AS col0 FROM tab2 WHERE NULL IS NULL
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col1 FROM tab0 cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5319
SELECT - MIN( ALL + + ( + ( + col0 ) ) ) DIV - 57 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT - MIN ( ALL + + ( + ( + col0 ) ) ) / - 57 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - col2 * - - col1 + + col0 * - 91 AS col0 FROM tab1 cor0 WHERE + 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT DISTINCT + 1 * COUNT( * ) + + + 22 * - 5 FROM tab0 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT + 1 * COUNT ( * ) + + + 22 * - 5 FROM tab0 AS cor0
----
-107

query I rowsort
SELECT DISTINCT + col2 + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT ALL - + col2 + - col1 + + - col0 * + col0 + - col1 FROM tab2 AS cor0
----
-2241
-4290
-5817

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT - ( 5 ) - - col0 DIV + col2 FROM tab1
----
-4
-4
-5

skipif mysql # not compatible
query I rowsort label-5324
SELECT - ( 5 ) - - col0 / + col2 FROM tab1
----
-4
-4
-5

query I rowsort
SELECT DISTINCT - 18 + - 73 * col2 FROM tab2
----
-1697
-2938
-4252

query III rowsort
SELECT * FROM tab1 WHERE + 37 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT ALL ( - ( - + 54 ) ) DIV col1 * col0 FROM tab2
----
0
0
46

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL ( - ( - + 54 ) ) / col1 * col0 FROM tab2
----
0
0
46

query I rowsort
SELECT ALL + 57 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5329
SELECT CAST( NULL AS SIGNED ) * + CAST( + - col1 AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT CAST ( NULL AS INTEGER ) * + CAST ( + - col1 AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT + CAST( NULL AS SIGNED ) / - 92 - - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT + CAST ( NULL AS INTEGER ) / - 92 - - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5331
SELECT - CAST( NULL AS DECIMAL ) * + - ( col1 ) * + col0 + 96 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT - CAST ( NULL AS REAL ) * + - ( col1 ) * + col0 + 96 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 94 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE + 73 * + col1 * + 29 <> + - 22
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 91 col1 FROM tab1 cor0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5335
SELECT - + CAST( CAST( - ( col2 ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5335
SELECT - + CAST ( CAST ( - ( col2 ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 >= NULL
----

query II rowsort
SELECT ALL + 20, col0 FROM tab0
----
20
15
20
87
20
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5339
SELECT - 49 DIV - ( col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5339
SELECT - 49 / - ( col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * + - ( + + col0 ) FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col1, col1 * - - 52 )
----

query I rowsort
SELECT ALL + 55 + + col0 AS col2 FROM tab1 AS cor0
----
106
140
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col2 FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND - + 82
----

query II rowsort
SELECT ALL + col0 * + - col0, col2 AS col0 FROM tab0
----
-225
47
-7569
10
-9409
99

query II rowsort
SELECT 96 + - - col2 AS col2, + ( - + 25 ) FROM tab0
----
106
-25
143
-25
195
-25

query I rowsort
SELECT - 79 + - + col0 FROM tab0
----
-166
-176
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5347
SELECT + 67 DIV col0 * - col0 + + col2 FROM tab2 AS cor0
----
-23
-24
58

skipif mysql # not compatible
query I rowsort label-5347
SELECT + 67 / col0 * - col0 + + col2 FROM tab2 AS cor0
----
-23
-24
58

query I rowsort
SELECT + - 53 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-53
-53
-53

query I rowsort
SELECT + col2 + 68 AS col0 FROM tab0 cor0
----
115
167
78

query I rowsort
SELECT ALL col1 * ( - 57 ) FROM tab1 AS cor0
----
-2679
-285
-798

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 52 * - col1 IS NULL
----

query I rowsort
SELECT ALL - - 47 AS col0 FROM tab2 cor0
----
47
47
47

query I rowsort
SELECT DISTINCT + + ( - col2 ) AS col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT CAST( - + col2 AS SIGNED ) col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5355
SELECT CAST ( - + col2 AS INTEGER ) col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL COUNT( * ) * + ( - - COUNT( * ) ) + COUNT( * ) col0 FROM tab2
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5356
SELECT ALL COUNT ( * ) * + ( - - COUNT ( * ) ) + COUNT ( * ) col0 FROM tab2
----
12

query I rowsort
SELECT DISTINCT - 34 - col1 AS col0 FROM tab0
----
-115
-35
-55

query I rowsort
SELECT 8 FROM tab0 WHERE col0 IS NOT NULL
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT DISTINCT SUM( col1 ) - - 37 col2 FROM tab0
----
140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5359
SELECT DISTINCT SUM ( col1 ) - - 37 col2 FROM tab0
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-5360
SELECT col1 - - 89 DIV + col0 AS col2 FROM tab1
----
15
47
6

skipif mysql # not compatible
query I rowsort label-5360
SELECT col1 - - 89 / + col0 AS col2 FROM tab1
----
15
47
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + 51 - MAX( + 57 ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5361
SELECT + 51 - MAX ( + 57 ) AS col2 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT 20 - col1 FROM tab2 AS cor0
----
-31
-47
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT + - col1 + + 80 FROM tab0 WHERE NULL IS NULL OR NOT + col0 = + - CAST( + ( + - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
-1
59
79

skipif mysql # not compatible
query I rowsort label-5363
SELECT + - col1 + + 80 FROM tab0 WHERE NULL IS NULL OR NOT + col0 = + - CAST ( + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
-1
59
79

query I rowsort
SELECT DISTINCT ( 73 ) FROM tab0
----
73

query I rowsort
SELECT DISTINCT + - 53 AS col1 FROM tab1 AS cor0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 6 AS col1, 78 col2 FROM tab0 cor0
----
6
78
6
78
6
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5367
SELECT 31 AS col0, - MAX( + - col2 ) - - 37 FROM tab0 AS cor0
----
31
47

skipif mysql # not compatible
query II rowsort label-5367
SELECT 31 AS col0, - MAX ( + - col2 ) - - 37 FROM tab0 AS cor0
----
31
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + ( + 43 ) - + col0 AND 17 + - col0
----

query I rowsort
SELECT DISTINCT - - 51 + - 8 FROM tab0 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL + COUNT( * ) * + 98 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + COUNT ( * ) * + 98 FROM tab2 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT DISTINCT - COUNT( ALL + 7 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT - COUNT ( ALL + 7 ) FROM tab1
----
-3

query II rowsort
SELECT ALL - 56 + - col1 * + - 69, 60 AS col0 FROM tab2
----
3463
60
4567
60
5257
60

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT - + col2 * + col1 + - col0 <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT + CAST( NULL AS SIGNED ) / 8 * - col1 / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT + CAST ( NULL AS INTEGER ) / 8 * - col1 / col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - 74 AS col0, + col0 AS col2 FROM tab2 WHERE NOT - 0 - + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + 30 * - + col2 + + col0 = 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL + COUNT( * ) + 61 + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + COUNT ( * ) + 61 + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - MAX( DISTINCT - col0 ) + - - 95 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-5379
SELECT - MAX ( DISTINCT - col0 ) + - - 95 FROM tab2 AS cor0
----
141

query I rowsort
SELECT + 77 + + col1 FROM tab2 cor0
----
128
144
154

query I rowsort
SELECT DISTINCT 87 + + 64 FROM tab1 AS cor0
----
151

query I rowsort
SELECT - - 23 - col0 + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
363
4209
686

query I rowsort
SELECT ALL + ( 84 ) AS col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - col2 + - ( + col2 ) + + 37 + col1 AS col0 FROM tab0 AS cor0
----
-160
24
38

query I rowsort
SELECT - - 84 - + col1 AS col1 FROM tab0 AS cor0
----
3
63
83

query I rowsort
SELECT DISTINCT - 4 + 4 + + col0 * + col2 + col0 * + 41 + + col0 * - col1 * col2 AS col0 FROM tab2 AS cor0
----
-191936
-284025
-51014

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + 15 NOT BETWEEN + + col0 AND NULL )
----

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - 91 ) AS col0 FROM tab1 WHERE + 38 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT DISTINCT - col0 + + + col1 DIV col2 FROM tab0
----
-14
-85
-97

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT - col0 + + + col1 / col2 FROM tab0
----
-14
-85
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5390
SELECT * FROM tab2 WHERE - 49 BETWEEN + 3 * - col1 AND - + col2 + + col2 + + CAST( + 41 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5390
SELECT * FROM tab2 WHERE - 49 BETWEEN + 3 * - col1 AND - + col2 + + col2 + + CAST ( + 41 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col0 + - ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 + - col0, col1 - col2 AS col2 FROM tab1
----
-23
-21
-26
-54
45
-82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 53 * + ( col2 ) * - ( + col2 ) - 38 * + 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT - + CAST( NULL AS SIGNED ) * + 9 * - 5 / - - 62 + + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - ( col1 ) * + 7 <= + + col1
----

skipif mysql # not compatible
query I rowsort label-5394
SELECT - + CAST ( NULL AS INTEGER ) * + 9 * - 5 / - - 62 + + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - ( col1 ) * + 7 <= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT + SUM( ALL 8 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5395
SELECT + SUM ( ALL 8 ) FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT - MIN( col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5396
SELECT - MIN ( col2 ) FROM tab2 cor0
----
-23

query I rowsort
SELECT + + 60 * - - col2 FROM tab1 cor0
----
3540
4080
5760

query I rowsort
SELECT 9 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL - + MIN( DISTINCT + + 9 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - + MIN ( DISTINCT + + 9 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL <> 9
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5401
SELECT - - COUNT( * ) AS col0, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5401
SELECT - - COUNT ( * ) AS col0, CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT - MAX( + ( - 46 ) ) AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5402
SELECT - MAX ( + ( - 46 ) ) AS col0 FROM tab0 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL + COUNT( * ) * + - 66 FROM tab2 AS cor0 WHERE NULL < col1
----
0

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + COUNT ( * ) * + - 66 FROM tab2 AS cor0 WHERE NULL < col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT - COUNT( - col0 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - COUNT ( - col0 ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN - col0 * col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN - col0 * col2 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5406
SELECT ALL COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5406
SELECT ALL COUNT ( * ) AS col1, CAST ( NULL AS REAL ) FROM tab2
----
3
NULL

query I rowsort
SELECT 25 + col0 AS col0 FROM tab0
----
112
122
40

query I rowsort
SELECT + col2 * - ( + col2 ) * 11 * - 24 + 38 AS col1 FROM tab0
----
2587502
26438
583214

query I rowsort
SELECT col2 * + + col0 AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT 73 * - col2 FROM tab1
----
-4307
-4964
-7008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT ( MIN( ALL - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT ( MIN ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5412
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( + - ( CAST( NULL AS SIGNED ) ) ) * - 23 * + + 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5412
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( + - ( CAST ( NULL AS INTEGER ) ) ) * - 23 * + + 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 64 ) FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT MAX( + + col0 ) * + MAX( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
9409

skipif mysql # not compatible
query I rowsort label-5414
SELECT MAX ( + + col0 ) * + MAX ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
9409

query I rowsort
SELECT ALL - + ( + 65 ) AS col1 FROM tab1 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - 74 + - MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
-149

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 74 + - MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - + COUNT( * ) + - 68 AS col0 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-5417
SELECT - + COUNT ( * ) + - 68 AS col0 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT ( + + ( 79 ) ) + - + col0 AS col2 FROM tab0 AS cor0
----
-18
-8
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5419
SELECT ALL - 56 * COUNT( ALL - col2 ) AS col0, + 65 FROM tab2 AS cor0
----
-168
65

skipif mysql # not compatible
query II rowsort label-5419
SELECT ALL - 56 * COUNT ( ALL - col2 ) AS col0, + 65 FROM tab2 AS cor0
----
-168
65

query I rowsort
SELECT DISTINCT ( + + 2 ) * - - ( 41 ) FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL - 87 * - COUNT( * ) AS col2 FROM tab2 cor0
----
261

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - 87 * - COUNT ( * ) AS col2 FROM tab2 cor0
----
261

query I rowsort
SELECT DISTINCT + 97 + - col0 AS col1 FROM tab0 AS cor0
----
0
10
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5423
SELECT - CAST( - col1 AS SIGNED ) col1, 20 * - 95 AS col2 FROM tab2 AS cor0
----
51
-1900
67
-1900
77
-1900

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5423
SELECT - CAST ( - col1 AS INTEGER ) col1, 20 * - 95 AS col2 FROM tab2 AS cor0
----
51
-1900
67
-1900
77
-1900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5424
SELECT DISTINCT + col0 * + 63 * + col2 / CAST( NULL AS SIGNED ) + col1 * + - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT + col0 * + 63 * + col2 / CAST ( NULL AS INTEGER ) + col1 * + - col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 * 4 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 22, + col2 AS col2 FROM tab2
----
-22
23
-22
40
-22
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5428
SELECT + 39, CAST( - ( + - 9 ) AS SIGNED ) AS col2, ( - 30 ) AS col0 FROM tab0
----
9 values hashing to 05283e5fd1ad809c0c93a414a3bc6399

skipif mysql # not compatible
query III rowsort label-5428
SELECT + 39, CAST ( - ( + - 9 ) AS INTEGER ) AS col2, ( - 30 ) AS col0 FROM tab0
----
9 values hashing to 05283e5fd1ad809c0c93a414a3bc6399

query II rowsort
SELECT DISTINCT - 54 AS col0, + 41 AS col2 FROM tab1
----
-54
41

query I rowsort
SELECT DISTINCT ( + + 18 ) * + col2 AS col2 FROM tab2
----
1044
414
720

query II rowsort
SELECT ALL col0, + 79 FROM tab0
----
15
79
87
79
97
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5432
SELECT ALL * FROM tab2 WHERE + col0 + CAST( 67 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5432
SELECT ALL * FROM tab2 WHERE + col0 + CAST ( 67 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT + COUNT( * ) * - + 19 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + COUNT ( * ) * - + 19 FROM tab1
----
-57

query II rowsort
SELECT col2 AS col0, col1 * - col0 AS col1 FROM tab2
----
23
-2346
40
-4928
58
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5435
SELECT DISTINCT CAST( 89 AS SIGNED ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT CAST ( 89 AS INTEGER ) FROM tab2
----
89

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 + - col1 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT - col2 * - col1 - col0 * 1 AS col2 FROM tab0
----
123
2
3792

query III rowsort
SELECT * FROM tab2 WHERE + col1 - 3 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT ALL + CAST( col1 AS SIGNED ) FROM tab2 WHERE - 9 < NULL
----

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + CAST ( col1 AS INTEGER ) FROM tab2 WHERE - 9 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5441
SELECT 29 * CAST( col1 AS SIGNED ) AS col2 FROM tab0 WHERE NULL < col0
----

skipif mysql # not compatible
query I rowsort label-5441
SELECT 29 * CAST ( col1 AS INTEGER ) AS col2 FROM tab0 WHERE NULL < col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * col0 col1 FROM tab1 WHERE NOT NULL <= ( + col2 - 58 )
----

query I rowsort
SELECT DISTINCT 25 + + 6 FROM tab1
----
31

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col1 AND - col0 / 10 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5445
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + 60 NOT IN ( + 67 * - 76 )
----

skipif mysql # not compatible
query III rowsort label-5445
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + 60 NOT IN ( + 67 * - 76 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5446
SELECT COUNT( CAST( - col0 AS DECIMAL ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5446
SELECT COUNT ( CAST ( - col0 AS REAL ) ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN col2 * 60 AND col0 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + ( col2 ) - - col2 * + ( col1 ) ) NOT BETWEEN + 47 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col1 FROM tab1
----
-11

query I rowsort
SELECT col0 * 91 FROM tab1 WHERE NOT col2 NOT IN ( - 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL + ( MIN( 83 ) ) + 51 AS col1 FROM tab2
----
134

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL + ( MIN ( 83 ) ) + 51 AS col1 FROM tab2
----
134

query I rowsort
SELECT 66 * col2 AS col2 FROM tab2
----
1518
2640
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL - 45 - COUNT( * ) * COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - 45 - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-54

query I rowsort
SELECT + 75 * 19 FROM tab0
----
1425
1425
1425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5456
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL col1 + 66 FROM tab2
----
117
133
143

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + ( + 7 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 91 FROM tab0 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5460
SELECT COUNT( DISTINCT ( col1 ) ) col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN + CAST( NULL AS SIGNED ) AND col0 + - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5460
SELECT COUNT ( DISTINCT ( col1 ) ) col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND col0 + - col0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 31 * col0 <= - col0 * - 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 / - AVG ( - 64 ) col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT - COUNT( * ) - - 28 * 26 AS col2 FROM tab1 AS cor0
----
725

skipif mysql # not compatible
query I rowsort label-5463
SELECT - COUNT ( * ) - - 28 * 26 AS col2 FROM tab1 AS cor0
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT MIN( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT MIN ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT COUNT( ALL col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT COUNT ( ALL col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL + MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT ( 77 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT ( 77 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT - SUM( 82 ) AS col2 FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5468
SELECT - SUM ( 82 ) AS col2 FROM tab0 AS cor0
----
-246

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > - 36 / col0 + 36 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) BETWEEN + col1 AND ( 70 / 58 )
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) BETWEEN + col1 AND ( 70 / 58 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL + ( COUNT( * ) ) * - 95 AS col1 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + ( COUNT ( * ) ) * - 95 AS col1 FROM tab1 AS cor0
----
-285

query I rowsort
SELECT ALL col0 * + col0 * 52 AS col2 FROM tab1 AS cor0
----
135252
375700
430612

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL - 5 * COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - 5 * COUNT ( * ) FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5475
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 + - CAST( NULL AS SIGNED ) * col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5475
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 + - CAST ( NULL AS INTEGER ) * col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5476
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST( 73 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5476
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST ( 73 AS INTEGER ) )
----

query I rowsort
SELECT - ( - - col1 ) * + - col2 AS col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT - col2 * - 90 FROM tab2
----
2070
3600
5220

onlyif mysql # DIV for integer division: 
query I rowsort label-5479
SELECT + + 15 DIV ( + col2 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5479
SELECT + + 15 / ( + col2 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5480
SELECT ALL + 75 DIV - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL + 75 / - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-25

query II rowsort
SELECT + col1 AS col0, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5482
SELECT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5482
SELECT - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 23 / 22 ) > col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * + 48 AS col1 FROM tab2 AS cor0
----
-1104
-1920
-2784

query I rowsort
SELECT 59 + + col0 FROM tab2 AS cor0
----
105
123
134

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 - 37 + 24 BETWEEN - col0 AND + col1 * - ( - 84 )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5487
SELECT 17 + SUM( DISTINCT + 16 ) AS col2 FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * - col2 + + col2 / col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT 17 + SUM ( DISTINCT + 16 ) AS col2 FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) * - col2 + + col2 / col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 + + col0 FROM tab0 AS cor0 WHERE + 47 * + - 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT - ( + COUNT( * ) ) * - + MIN( + col2 ) + 68 FROM tab2 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-5489
SELECT - ( + COUNT ( * ) ) * - + MIN ( + col2 ) + 68 FROM tab2 AS cor0
----
137

query I rowsort
SELECT DISTINCT col2 * - ( col0 ) + + 61 AS col1 FROM tab0 cor0
----
-644
-809
-9542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 63 col2, col0 AS col1 FROM tab1 cor0
----
-63
51
-63
85
-63
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL + 12 + + COUNT( * ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + 12 + + COUNT ( * ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col0 + - 8 - - 57 * col1 AS col0 FROM tab2 AS cor0
----
2853
3736
4317

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL + COUNT( * ) * + 33 + - 57 AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + COUNT ( * ) * + 33 + - 57 AS col0 FROM tab2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT - COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + 82 NOT BETWEEN col2 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT - CAST( - + col2 AS SIGNED ) * + + col1 col0 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5497
SELECT - CAST ( - + col2 AS INTEGER ) * + + col1 col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT + MIN( - col1 ) * - COUNT( * ) + + 51 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + MIN ( - col1 ) * - COUNT ( * ) + + 51 FROM tab1
----
192

query I rowsort
SELECT DISTINCT col1 * - - 65 * + col2 * - col1 AS col1 FROM tab0
----
-20043855
-286650
-6435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT + CAST( NULL AS SIGNED ) * + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT + CAST ( NULL AS INTEGER ) * + + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 64 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) AS col1 FROM tab0 WHERE NOT + col1 = ( - - 5 + + col0 * + col0 )
----
15
87
97

query I rowsort
SELECT + col0 * - + 65 AS col1 FROM tab2
----
-2990
-4160
-4875

query I rowsort
SELECT + 27 * + + ( - 30 ) AS col2 FROM tab2
----
-810
-810
-810

query I rowsort
SELECT DISTINCT - 50 FROM tab0 cor0 WHERE NOT - col1 + col1 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT DISTINCT + CAST( AVG ( 39 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( + ( - 60 ) ) BETWEEN - col0 AND ( + col1 )
----
39

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + CAST ( AVG ( 39 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( + ( - 60 ) ) BETWEEN - col0 AND ( + col1 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL - 74 * - COUNT( * ) + + 92 AS col0 FROM tab0 cor0
----
314

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL - 74 * - COUNT ( * ) + + 92 AS col0 FROM tab0 cor0
----
314

query III rowsort
SELECT * FROM tab1 WHERE + + 46 BETWEEN ( + col0 + ( 86 ) + ( col1 ) ) AND ( col0 )
----

query I rowsort
SELECT col0 + - 57 AS col0 FROM tab2
----
-11
18
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5510
SELECT - 94 + + - MAX( ALL - col0 ) AS col1, MIN( DISTINCT + + 18 ) FROM tab2
----
-48
18

skipif mysql # not compatible
query II rowsort label-5510
SELECT - 94 + + - MAX ( ALL - col0 ) AS col1, MIN ( DISTINCT + + 18 ) FROM tab2
----
-48
18

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 62 * + 90 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL + ( - ( - col2 ) ) AS col2 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + ( col2 ) + 34 BETWEEN NULL AND - 12
----

query I rowsort
SELECT - 73 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 99 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL - ( COUNT( DISTINCT - 51 ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL - ( COUNT ( DISTINCT - 51 ) ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0 AND NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5519
SELECT DISTINCT COUNT( * ), 52 AS col0 FROM tab1 cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-5519
SELECT DISTINCT COUNT ( * ), 52 AS col0 FROM tab1 cor0
----
3
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col1 FROM tab0
----
44
44
44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * - - col2 + 16 + + 91 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5522
SELECT - col2 * - col2 AS col0, CAST( - ( + col2 ) AS SIGNED ) FROM tab0
----
100
-10
2209
-47
9801
-99

skipif mysql # not compatible
query II rowsort label-5522
SELECT - col2 * - col2 AS col0, CAST ( - ( + col2 ) AS INTEGER ) FROM tab0
----
100
-10
2209
-47
9801
-99

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 AS col1 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT MAX( - 36 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-5524
SELECT MAX ( - 36 ) FROM tab1
----
-36

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( NULL NOT IN ( + col2, + col0 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT DISTINCT + 2 * COUNT( * ) FROM tab1 WHERE CAST( + col2 AS SIGNED ) * + col1 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT + 2 * COUNT ( * ) FROM tab1 WHERE CAST ( + col2 AS INTEGER ) * + col1 IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT DISTINCT + MIN( + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT + MIN ( + col2 ) AS col1 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 97 AND - col2 * 80
----

query I rowsort
SELECT DISTINCT + col1 * col2 + + col1 FROM tab0 AS cor0
----
100
231
3888

query II rowsort
SELECT - col0 AS col0, + 36 AS col2 FROM tab0 AS cor0
----
-15
36
-87
36
-97
36

query I rowsort
SELECT DISTINCT col2 + + - 11 * - 95 * + - col2 AS col0 FROM tab2 AS cor0 WHERE 75 IS NOT NULL
----
-24012
-41760
-60552

query I rowsort
SELECT ALL - ( - 6 ) FROM tab1 AS cor0
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT DISTINCT 16 + + col0 - + - col0 - - + col1 * + - col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
127
211

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT 16 + + col0 - + - col0 - - + col1 * + - col2 / - col2 AS col1 FROM tab0 AS cor0
----
127
211

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5535
SELECT * FROM tab1 WHERE NULL IN ( + col0 - + - col1, - col1 ) AND + col2 * 90 * + col1 < ( CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5535
SELECT * FROM tab1 WHERE NULL IN ( + col0 - + - col1, - col1 ) AND + col2 * 90 * + col1 < ( CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT 20 * MAX( - + ( + + ( 88 ) ) ) + - 9 AS col2 FROM tab0
----
-1769

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT 20 * MAX ( - + ( + + ( 88 ) ) ) + - 9 AS col2 FROM tab0
----
-1769

query I rowsort
SELECT DISTINCT - ( - 36 ) + + col2 + + - col2 + + 88 * - ( + col0 * col0 ) FROM tab1 WHERE NOT ( + 33 ) <> NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL >= - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5539
SELECT - + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + 59 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT - - SUM( ALL + 4 ) AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5541
SELECT - - SUM ( ALL + 4 ) AS col0 FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT DISTINCT + + CAST( + 87 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
40
73
82

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT + + CAST ( + 87 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
40
73
82

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5544
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( col2 * + CAST( col1 AS DECIMAL ) + - col0 + + col1 * - col1 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5544
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( col2 * + CAST ( col1 AS REAL ) + - col0 + + col1 * - col1 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col0 BETWEEN - 91 * col0 AND ( + - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5546
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN CAST( NULL AS DECIMAL ) AND col0
----

skipif mysql # not compatible
query III rowsort label-5546
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS REAL ) AND col0
----

query I rowsort
SELECT DISTINCT + 44 FROM tab0 cor0 WHERE ( NOT ( + col0 IS NULL ) )
----
44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND + + col0
----

query I rowsort
SELECT DISTINCT - col1 * - 69 FROM tab2
----
3519
4623
5313

query I rowsort
SELECT DISTINCT - 53 FROM tab2 WHERE + 84 BETWEEN ( - 17 ) AND ( + 44 + + col1 )
----
-53

query I rowsort
SELECT + col1 + + 47 AS col1 FROM tab2
----
114
124
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT ALL - ( + col0 ) + - col0 + col2 DIV + 80 + - - col0 + + + col0 * + col2 AS col0 FROM tab2
----
1012
2496
4275

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - ( + col0 ) + - col0 + col2 / + 80 + - - col0 + + + col0 * + col2 AS col0 FROM tab2
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ALL COUNT( * ) * + - 62 AS col1 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL COUNT ( * ) * + - 62 AS col1 FROM tab1
----
-186

query I rowsort
SELECT + col1 * - + col1 / + ( col2 ) + col2 FROM tab2 WHERE + 18 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col2 col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5556
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL - + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 64 IS NOT NULL
----

query I rowsort
SELECT col2 * + col1 * - col2 AS col0 FROM tab1 cor0
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT - 75 AS col0 FROM tab0 cor0
----
-75
-75
-75

query I rowsort
SELECT ( + - 10 ) FROM tab0 AS cor0
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT + col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT ( 82 ) DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5563
SELECT ( 82 ) / col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5564
SELECT DISTINCT * FROM tab1 WHERE - col1 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5564
SELECT DISTINCT * FROM tab1 WHERE - col1 >= + CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT - + CAST( NULL AS SIGNED ) * col0 * - col2 * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT - + CAST ( NULL AS INTEGER ) * col0 * - col2 * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT + - 56 * - 25 + - MIN( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
1341

skipif mysql # not compatible
query I rowsort label-5568
SELECT + - 56 * - 25 + - MIN ( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
1341

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> + col1
----

query II rowsort
SELECT ALL + ( - - col0 ) AS col2, 90 - - - col1 + + + 22 AS col2 FROM tab0 AS cor0
----
15
31
87
91
97
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5571
SELECT ALL CAST( NULL AS SIGNED ) * - + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL CAST ( NULL AS INTEGER ) * - + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 16 NOT IN ( + col1, - 81 * + col0, - col0 * - + col2 + - + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT + COUNT( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5574
SELECT DISTINCT + COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + col0 + - 43 * + 71 / - 43 FROM tab2 WHERE NOT - ( - + col2 ) - + + 93 - col0 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5576
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT IN ( - CAST( 15 AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-5576
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT IN ( - CAST ( 15 AS INTEGER ) + - col2 )
----

query II rowsort
SELECT + 32 AS col1, 95 FROM tab2
----
32
95
32
95
32
95

query II rowsort
SELECT + col0 AS col1, - col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
46
-46
64
-64
75
-75

query I rowsort
SELECT DISTINCT col0 * - + col1 + + 52 AS col2 FROM tab2 cor0
----
-2294
-4876
-4973

query I rowsort
SELECT - col0 FROM tab0 WHERE - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT + ( 88 ) + + SUM( - col2 ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5581
SELECT + ( 88 ) + + SUM ( - col2 ) FROM tab0 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5582
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * + ( - 9 ) BETWEEN - CAST( NULL AS SIGNED ) * + CAST( ( col1 ) AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5582
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) * + ( - 9 ) BETWEEN - CAST ( NULL AS INTEGER ) * + CAST ( ( col1 ) AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab1 cor0 WHERE NULL IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 + 50 col0, 60 + + col1 FROM tab1 AS cor0
----
55
65
64
74
97
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT + MAX( ALL - - col1 ) FROM tab1 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT + MAX ( ALL - - col1 ) FROM tab1 WHERE - col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + col2 NOT BETWEEN NULL AND - - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= + col1 + col0 + 6
----

query III rowsort
SELECT * FROM tab2 WHERE - 48 * col0 * + col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5589
SELECT ALL 74 * 75 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL 74 * 75 - + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * + 62 - ( 78 ) * + col2 * + - 55 FROM tab0 AS cor0
----
206652
424772
44202

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - col1 <> + 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, - col0 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + col2 + - 48 * - col1 AS col1 FROM tab1 AS cor0
----
2324
299
768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT DISTINCT - + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) + + + ( + + 85 ) AS col0 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT - + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + + + ( + + 85 ) AS col0 FROM tab0 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + + col1 * - col2 col0, col0 FROM tab0
----
-178929
15
-2100
87
-9801
97

query I rowsort
SELECT - col0 * col0 * - col1 AS col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT 86 * 30 AS col1 FROM tab2
----
2580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT DISTINCT - + 63 * - CAST( NULL AS SIGNED ) - - + 93 / - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT - + 63 * - CAST ( NULL AS INTEGER ) - - + 93 / - col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - ( - + ( - col1 ) ) > + col2
----
51
14
96
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 12, col1 col0 FROM tab1 AS cor0
----
12
14
12
47
12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL - - SUM( ALL - + 6 ) FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL - - SUM ( ALL - + 6 ) FROM tab0 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - SUM( col2 ) * + 27 FROM tab2 AS cor0
----
-3267

skipif mysql # not compatible
query I rowsort label-5602
SELECT - SUM ( col2 ) * + 27 FROM tab2 AS cor0
----
-3267

query I rowsort
SELECT + - 49 * 95 FROM tab1 AS cor0
----
-4655
-4655
-4655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( + col0 ) col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5604
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( + col0 ) col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT + + COUNT( ALL - 42 ) + + SUM( - 47 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 - - - 18 IS NULL
----
-138

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + + COUNT ( ALL - 42 ) + + SUM ( - 47 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 - - - 18 IS NULL
----
-138

query I rowsort
SELECT + + col2 * + col0 * col1 * - - 69 + - col0 FROM tab2 AS cor0
----
13601216
20109975
3723056

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - col1 NOT IN ( - 16, - ( - col0 ), col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5608
SELECT col1 DIV 70 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5608
SELECT col1 / 70 AS col1 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( 78 ) col2 FROM tab2
----
-3978
-5226
-6006

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - col2 + - col0 AS col0 FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT + col1 + - 31 FROM tab1
----
-17
-26
16

query I rowsort
SELECT DISTINCT + col1 + ( + col0 ) FROM tab0
----
108
96
98

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 21 AS col0, col1 col0 FROM tab1 AS cor0
----
21
14
21
47
21
5

query I rowsort
SELECT DISTINCT 80 * - - col1 FROM tab2 AS cor0
----
4080
5360
6160

query I rowsort
SELECT + col1 * + ( - col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL col2 + col2 * - - col2 * + - col1 FROM tab2
----
-123160
-225330
-26956

query I rowsort
SELECT DISTINCT + col2 * col0 + + + 29 AS col2 FROM tab2
----
1087
2589
4379

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT ALL col2 DIV col2 + - col1 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL col2 / col2 + - col1 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT ALL + 59 * - col2 * + - col1